@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/Montserrat-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --paper: #f2f2ef;
  --ink: #0b0b0b;
  --muted: #777772;
  --line: rgba(11, 11, 11, .16);
  --pad: clamp(18px, 3.4vw, 56px);
  --max: 1680px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat";
  font-size: 16px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.page {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  letter-spacing: -.02em;
}

.mark {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar__meta {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .01em;
}

.hero {
  padding: clamp(72px, 11vw, 170px) 0 clamp(88px, 12vw, 180px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 32vw);
  gap: clamp(36px, 8vw, 140px);
  align-items: end;
}

.hero h1 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(64px, 10vw, 170px);
  font-weight: 520;
  line-height: .84;
  letter-spacing: -.075em;
}

.hero h1 span { display: block; }

.studio-title {
  font-family: "Montserrat";
  font-weight: 300 !important;
  letter-spacing: -.075em !important;
}

.studio-title__tt {
  font-weight: 500;
  letter-spacing: -.085em;
}

.hero__copy {
  max-width: 460px;
  padding-bottom: .7em;
}

.hero__copy p {
  margin: 0 0 28px;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.28;
  letter-spacing: -.035em;
}

.hero__note {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero__note::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}

.cases { border-top: 1px solid var(--line); }

.case {
  padding: clamp(38px, 5vw, 76px) 0 clamp(84px, 10vw, 150px);
  border-bottom: 1px solid var(--line);
}

.case__head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(260px, 35vw);
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
  margin-bottom: clamp(28px, 4vw, 58px);
}

.case__index,
.eyebrow {
  font-size: 12px;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.case__title {
  margin: -.12em 0 0;
  font-size: clamp(38px, 5vw, 76px);
  line-height: .95;
  font-weight: 500;
  letter-spacing: -.055em;
}

.case__summary {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.45;
  letter-spacing: -.025em;
}

.compare {
  --position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 873;
  overflow: hidden;
  background: #d9d9d5;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.compare__before {
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

.compare__line {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 1px;
  background: rgba(255,255,255,.96);
  transform: translateX(-.5px);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.07);
}

.compare__handle {
  position: absolute;
  z-index: 6;
  left: var(--position);
  top: 50%;
  width: clamp(46px, 4vw, 62px);
  height: clamp(46px, 4vw, 62px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(242,242,239,.94);
  border: 1px solid rgba(11,11,11,.14);
  display: grid;
  place-items: center;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
}

.compare__handle::before {
  content: "←  →";
  white-space: pre;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.05em;
}

.compare__label {
  position: absolute;
  z-index: 7;
  top: clamp(12px, 1.7vw, 24px);
  padding: 8px 10px 7px;
  background: rgba(242,242,239,.88);
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .1em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.compare__label--before { left: clamp(12px, 1.7vw, 24px); }
.compare__label--after { right: clamp(12px, 1.7vw, 24px); }

.compare__range {
  position: absolute;
  z-index: 10;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

/* Frame-by-frame scene animation */
.sequence {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d9d9d5;
  isolation: isolate;
}

.sequence__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms cubic-bezier(.2,.75,.2,1);
  pointer-events: none;
}

.sequence__frame.is-active {
  opacity: 1;
  z-index: 1;
}

.sequence__chrome {
  position: absolute;
  z-index: 4;
  top: clamp(12px, 1.7vw, 24px);
  left: clamp(12px, 1.7vw, 24px);
  right: clamp(12px, 1.7vw, 24px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

.sequence__label,
.sequence__counter,
.sequence__toggle {
  background: rgba(242,242,239,.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.sequence__label,
.sequence__counter { padding: 8px 10px 7px; }
.sequence__counter b { font-weight: 650; }

.sequence__toggle {
  position: absolute;
  z-index: 5;
  right: clamp(12px, 1.7vw, 24px);
  bottom: clamp(12px, 1.7vw, 24px);
  border: 0;
  padding: 10px 12px 9px;
  cursor: pointer;
}

.sequence__toggle:hover { background: rgba(242,242,239,.98); }
.sequence__toggle:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.sequence__progress {
  position: absolute;
  z-index: 5;
  left: clamp(12px, 1.7vw, 24px);
  bottom: clamp(12px, 1.7vw, 24px);
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.sequence__progress span {
  width: 28px;
  height: 2px;
  background: rgba(242,242,239,.48);
  transition: background-color 180ms ease;
}

.sequence__progress span.is-active { background: rgba(242,242,239,.98); }

.case__foot {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(260px, 35vw);
  gap: clamp(18px, 3vw, 48px);
  margin-top: 18px;
  align-items: start;
}

.drag-hint {
  grid-column: 2;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.services {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  color: var(--muted);
  font-size: 13px;
}

.services span::before { content: "— "; }

.approach {
  padding: clamp(90px, 12vw, 180px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 42vw);
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.approach__eyebrow { margin-bottom: 28px; }

.approach h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 108px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.065em;
}

.approach__copy {
  display: grid;
  gap: 30px;
}

.approach__copy p {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.35;
  letter-spacing: -.03em;
}

.approach__rules { border-top: 1px solid var(--line); }

.approach__rule {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.approach__rule b { font-weight: 600; }
.approach__rule span { color: var(--muted); }

.contact {
  min-height: min(76vh, 780px);
  padding: clamp(90px, 13vw, 190px) 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 100px;
}

.contact__lead {
  max-width: 1200px;
  font-size: clamp(48px, 7vw, 112px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 500;
}

.contact__lead span { color: var(--muted); }

.contact__bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.75,.2,1), transform .7s cubic-bezier(.2,.75,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .topbar { min-height: 68px; }
  .topbar__meta { display: none; }
  .hero { grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { font-size: clamp(62px, 18vw, 120px); }
  .hero__copy { padding: 0; max-width: 540px; }
  .case__head,
  .case__foot { grid-template-columns: 46px minmax(0, 1fr); }
  .case__summary { grid-column: 2; max-width: 680px; }
  .drag-hint { grid-column: 2; }
  .services { grid-column: 2; }
  .approach { grid-template-columns: 1fr; }
  .approach h2 { max-width: 700px; }
}

@media (max-width: 560px) {
  :root { --pad: 16px; }
  .hero { padding-top: 58px; padding-bottom: 88px; }
  .hero h1 { font-size: clamp(58px, 20vw, 92px); }
  .hero h1 .outline { -webkit-text-stroke-width: 1px; }
  .case { padding-top: 30px; padding-bottom: 82px; }
  .case__head { display: block; margin-bottom: 24px; }
  .case__index { margin-bottom: 24px; }
  .case__title { font-size: clamp(40px, 13vw, 62px); margin-bottom: 22px; }
  .case__summary { max-width: 95%; }
  .compare { aspect-ratio: 4 / 3; }
  .compare img { object-fit: cover; object-position: center; }
  .sequence { aspect-ratio: 4 / 3; }
  .sequence__frame { object-fit: cover; }
  .sequence__progress span { width: 20px; }
  .case__foot { display: block; margin-top: 14px; }
  .drag-hint { margin-bottom: 16px; }
  .services { gap: 5px 12px; }
  .approach { padding: 92px 0; }
  .contact { min-height: 650px; }
  .contact__bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sequence__frame { transition: none; }
}

/* V5 — cases start immediately after the compact Studio T&T header */
.cases--first {
  border-top: 0;
}

.cases--first > .case:first-child {
  padding-top: clamp(42px, 5vw, 76px);
}
