/* ============================================================
   BLANQ — main.css
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bone: #f3efe6;
  --bone-2: #eae4d6;
  --bone-3: #ddd5c2;
  --ink: #171309;
  --ink-2: #5b5342;
  --clay: #b4472b;
  --clay-deep: #8f3820;
  --line: rgba(23, 19, 9, 0.14);
  --line-strong: rgba(23, 19, 9, 0.34);
  --ink-dark-bg: #14100a;
  --bone-on-ink: #efe9dc;
  --muted-on-ink: #9c9280;
  --line-on-ink: rgba(239, 233, 220, 0.16);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 4.5vw, 72px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body[data-loading] { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--clay); color: var(--bone); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.clay { color: var(--clay); }
em { font-style: italic; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 9990; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 25px); }
  66% { transform: translate(30px, -35px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9980;
  width: 100%; height: 2px;
  background: var(--clay);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
  .cursor__dot {
    position: fixed; top: -3px; left: -3px; width: 6px; height: 6px;
    background: var(--clay); border-radius: 50%;
  }
  .cursor__ring {
    position: fixed; top: -20px; left: -20px; width: 40px; height: 40px;
    border: 1px solid var(--line-strong); border-radius: 50%;
    display: grid; place-items: center;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
                top 0.35s var(--ease-out), left 0.35s var(--ease-out),
                background-color 0.35s, border-color 0.35s;
  }
  .cursor__label {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--bone); opacity: 0;
    transition: opacity 0.25s; white-space: nowrap;
  }
  .cursor.is-active .cursor__ring {
    width: 88px; height: 88px; top: -44px; left: -44px;
    background: rgba(23, 19, 9, 0.82); border-color: transparent;
    backdrop-filter: blur(2px);
  }
  .cursor.is-active .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor [role="button"], body.has-cursor summary { cursor: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.8s var(--ease-inout);
}
.preloader.is-done { transform: translateY(-101%); }
.preloader__word {
  font-family: var(--font-serif);
  font-size: clamp(56px, 12vw, 150px);
  color: var(--bone-on-ink);
  display: flex; line-height: 1;
}
.preloader__word span {
  display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(4deg);
  animation: pre-letter 0.7s var(--ease-out) forwards;
}
.preloader__word span:nth-child(1) { animation-delay: 0.05s; }
.preloader__word span:nth-child(2) { animation-delay: 0.13s; }
.preloader__word span:nth-child(3) { animation-delay: 0.21s; }
.preloader__word span:nth-child(4) { animation-delay: 0.29s; }
.preloader__word span:nth-child(5) { animation-delay: 0.37s; }
.preloader__word span:nth-child(6) { animation-delay: 0.5s; }
.preloader__dot { color: var(--clay); }
@keyframes pre-letter { to { opacity: 1; transform: translateY(0) rotate(0); } }
.preloader__count {
  position: absolute; right: var(--gutter); bottom: 28px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  color: var(--muted-on-ink);
}

/* ---------- Buttons ----------
   The pill's fill (::before) and the clay hover wipe (::after) both sit on
   negative z-index layers inside an isolated stacking context, so the label —
   a plain text node — always paints above them. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px;
  background: transparent; color: var(--bone);
  border-radius: 100px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease-out), border-color 0.35s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--ink); border-radius: inherit;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--clay); border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::after { transform: translateY(0); }
.btn--small { padding: 11px 22px; font-size: 13px; }
.btn--ghost { color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost::before { background: transparent; }
.btn--ghost:hover { color: var(--bone); border-color: transparent; }
.btn--light { color: var(--ink); }
.btn--light::before { background: var(--bone); }
.btn--light:hover { color: var(--bone); }
.btn--ghost-light { color: var(--bone-on-ink); border: 1px solid var(--line-on-ink); }
.btn--ghost-light::before { background: transparent; }
.btn--ghost-light:hover { border-color: transparent; color: var(--bone); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(243, 239, 230, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
}
.nav__logo {
  font-family: var(--font-serif); font-size: 30px; line-height: 1;
  letter-spacing: -0.01em;
}
.nav__logo-dot { color: var(--clay); }
.nav__links { display: flex; gap: 6px; }
.nav__link {
  font-size: 13.5px; font-weight: 500; padding: 8px 12px;
  border-radius: 100px; position: relative;
  transition: background-color 0.3s;
}
.nav__link:hover { background: rgba(23, 19, 9, 0.06); }
.nav__link.is-active { color: var(--clay); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__burger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 24px; height: 1.7px; background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger.is-open span:first-child { transform: translateY(4.35px) rotate(45deg); }
.nav__burger.is-open span:last-child { transform: translateY(-4.35px) rotate(-45deg); }
.nav.menu-open { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.menu-open .nav__logo { color: var(--bone-on-ink); }
.nav.menu-open .nav__burger span { background: var(--bone-on-ink); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 890;
  background: var(--ink); color: var(--bone-on-ink);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-inout);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0% 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__link {
  font-family: var(--font-serif); font-size: clamp(40px, 9vh, 64px); line-height: 1.16;
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--line-on-ink); padding: 8px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link em { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--clay); }
.menu__foot { display: flex; flex-direction: column; gap: 4px; color: var(--muted-on-ink); font-size: 14px; }
.menu__foot a { color: var(--bone-on-ink); font-size: 18px; }

/* ---------- Sections shared ---------- */
.section { padding: clamp(90px, 12vw, 170px) var(--gutter); position: relative; }
.section--dark { background: var(--ink-dark-bg); color: var(--bone-on-ink); }
.section__head { max-width: 1120px; margin-bottom: clamp(48px, 6vw, 96px); }
.eyebrow {
  color: var(--clay); display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--clay); }
.section__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(42px, 6.4vw, 96px);
  line-height: 1.02; letter-spacing: -0.01em;
  text-wrap: balance;
}
.section__title em { color: var(--ink-2); }
.section--dark .section__title em { color: var(--muted-on-ink); }
.section__note {
  margin-top: 26px; max-width: 560px;
  font-size: 16.5px; color: var(--ink-2); line-height: 1.65;
}
.section--dark .section__note { color: var(--muted-on-ink); }
.section__note--aside {
  margin-top: 14px; font-size: 15px;
  border-left: 2px solid var(--clay); padding-left: 14px;
}

/* Reveal primitives (JS toggles .in-view) */
.reveal-line { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-line.in-view { opacity: 1; transform: none; }
.split-reveal .word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
}
.split-reveal .word > span {
  display: inline-block; transform: translateY(115%);
  transition: transform 1s var(--ease-out);
}
.split-reveal.in-view .word > span { transform: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(140px, 18vh, 210px) var(--gutter) 0; position: relative; }
.hero__inner { max-width: 1400px; }
.hero__eyebrow { color: var(--clay); margin-bottom: 30px; }
.hero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(52px, 9.6vw, 148px);
  line-height: 0.98; letter-spacing: -0.015em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease-out); }
.hero__line:nth-child(2) > span { transition-delay: 0.09s; }
.hero__line:nth-child(3) > span { transition-delay: 0.18s; }
body.is-ready .hero__line > span { transform: none; }
.hero__title em { color: var(--clay); }
.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-top: clamp(36px, 4vw, 60px); flex-wrap: wrap;
}
.hero__sub { max-width: 520px; font-size: 17px; color: var(--ink-2); line-height: 1.65; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: clamp(36px, 4vw, 56px); color: var(--ink-2); }
/* only the hero's own reveals wait for the headline; in-page reveals fire immediately */
.hero .reveal-line { transition-delay: 0.35s; }
.hero .hero__meta.reveal-line { transition-delay: 0.5s; }
.hero__scroll {
  position: absolute; right: var(--gutter); top: calc(100vh - 84px);
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-2);
  animation: scroll-bob 2.6s var(--ease-inout) infinite;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 34px; background: var(--line-strong);
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(7px); opacity: 0.5; }
}

/* ---------- Reel ---------- */
.reel { padding: clamp(56px, 7vw, 100px) 0 0; display: flex; justify-content: center; }
.reel__frame {
  position: relative; width: min(920px, 92vw); aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 6px;
  transform-origin: center top;
  background: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(23, 19, 9, 0.35);
}
.reel__media, .reel__media video, .reel__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.reel__media video { opacity: 0; transition: opacity 0.8s ease; }
.reel__media video.is-showing { opacity: 1; }
.reel__poster { z-index: 0; }
.reel__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(23,19,9,0.25) 0%, transparent 30%, transparent 62%, rgba(23,19,9,0.45) 100%);
  pointer-events: none;
}
.reel__slate {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 22px; color: var(--bone-on-ink);
}
.reel__client { color: #fff; }
.reel__tc { font-variant-numeric: tabular-nums; }
.reel__dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--clay); margin-right: 9px; vertical-align: 1px;
  animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
/* Sound toggle — always visible (touch-friendly), matches the slate chrome */
.reel__sound {
  position: absolute; z-index: 4; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 100px;
  background: rgba(20, 16, 10, 0.62); color: var(--bone-on-ink);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.3s, color 0.3s;
}
.reel__sound:hover { background: var(--clay); color: var(--bone); }
.reel__sound svg { width: 15px; height: 15px; flex: 0 0 auto; overflow: visible; }
.reel__spk { fill: currentColor; }
.reel__wave, .reel__slash { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.reel__wave { opacity: 0; }
.reel__sound.is-on .reel__wave { opacity: 1; }
.reel__sound.is-on .reel__slash { opacity: 0; }
@media (max-width: 560px) {
  .reel__sound { top: 10px; right: 10px; padding: 7px 11px; }
  .reel__sound-label { display: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: clamp(60px, 8vw, 110px) 0 0;
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.marquee__track { display: flex; width: max-content; padding-bottom: clamp(18px, 2vw, 30px); }
.marquee__group {
  display: flex; align-items: baseline; gap: 34px; padding-right: 34px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 84px); line-height: 1.1;
  white-space: nowrap;
}
.marquee__group em { color: var(--clay); }
.marquee__group i {
  font-style: normal; font-size: 0.35em; color: var(--clay);
  transform: translateY(-0.9em); display: inline-block;
}

/* ---------- Image showcase (vanilla port of the 21st.dev ruixen.ui
   CardStack: 3D fan, drag, keyboard, dots, auto-advance — geometry
   and interaction live in js/main.js; shadcn theme tokens replaced
   with the site palette) */
/* Showcase stack geometry. Its own config: the case-study hero sets
   --stack-w / --stack-ar on .cstack--hero and never reads these, so the
   two instances can be retuned independently. Card width drives the whole
   arrangement — paint() derives fan spacing from offsetWidth, so the side
   cards and their spread scale with the centre card automatically. */
.cstack {
  overflow-x: clip;
  --sc-w: 720px;
  /* The showcase keeps its own 1.625 frame rather than the hero's 16:9 —
     matching Vespera's width, not its crop. */
  --sc-ar: 1.625;
}
.cstack__stage {
  position: relative; margin: 0 auto;
  height: calc(var(--sc-w) / var(--sc-ar) + 115px); max-width: 1200px;
  perspective: 1100px;
}
.cstack__stage:focus-visible { outline: 2px solid var(--clay); outline-offset: 10px; border-radius: 12px; }
.cstack__card {
  position: absolute; left: 50%; bottom: 48px;
  width: var(--sc-w); height: calc(var(--sc-w) / var(--sc-ar));
  transform: translate(-50%, 0);
  border-radius: 16px; overflow: hidden;
  border: 4px solid rgba(23, 19, 9, 0.08);
  background: var(--ink);
  box-shadow: 0 26px 60px -22px rgba(23, 19, 9, 0.5);
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease-out), opacity 0.4s ease;
  will-change: transform;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.cstack__card.is-active { cursor: grab; }
.cstack__card.is-dragging { cursor: grabbing; transition: opacity 0.4s ease; }
.cstack__card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.cstack__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(20, 16, 10, 0.72) 100%);
}
.cstack__meta {
  position: absolute; left: 22px; right: 22px; bottom: 16px;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--bone-on-ink); pointer-events: none;
}
.cstack__title { font-family: var(--font-serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1; }
.cstack__desc { color: rgba(239, 233, 220, 0.78); }
.cstack__nav { display: flex; align-items: center; justify-content: center; gap: 24px; }
.cstack__dots { display: flex; gap: 8px; }
.cstack__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 0.3s, transform 0.3s;
}
.cstack__dot:hover { background: var(--ink-2); }
.cstack__dot.is-active { background: var(--clay); transform: scale(1.3); }
.cstack__open { color: var(--ink-2); transition: color 0.3s; }
.cstack__open:hover { color: var(--clay); }
/* Stage height and card height both follow --sc-w, so each step only
   needs to restate the width. The fan measures ~2.38x the card width, so
   the extra 900px step exists to keep the outer two cards on screen through
   the tablet range instead of dropping them almost entirely off it. */
@media (max-width: 1100px) { .cstack { --sc-w: 560px; } }
@media (max-width: 900px)  { .cstack { --sc-w: 460px; } }
@media (max-width: 760px)  { .cstack { --sc-w: min(80vw, 420px); } }

/* ---------- Work ---------- */
/* The portfolio block is centred at up to 1560px so left and right
   margins stay equal on wide screens; the heading is centred on the
   same axis so it keeps sharing a left edge with the cards. Below
   ~1690px the grid already fills the content width, so this is a
   no-op there, and the 1560 ceiling keeps the feature card inside a
   900px-tall viewport on ultrawide.
   Every card's ratio matches its clip's, so hover video is uncropped. */
.work .section__head, .work__grid { max-width: 1560px; margin-inline: auto; }
.work__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.case { display: block; grid-column: span 6; position: relative; }
.case--feature { grid-column: 1 / span 12; }
.case:nth-child(2) { grid-column: 1 / span 7; }
.case:nth-child(3) { grid-column: 8 / span 5; margin-top: clamp(0px, 3vw, 60px); align-self: start; }
.case:nth-child(4) { grid-column: 1 / span 3; }
.case:nth-child(5) { grid-column: 5 / span 8; margin-top: clamp(0px, 2vw, 40px); align-self: start; }
.case__media {
  position: relative; overflow: hidden; border-radius: 6px;
  aspect-ratio: 16 / 9; background: var(--bone-2);
  clip-path: inset(6% 4% round 6px);
  transition: clip-path 1.1s var(--ease-out);
}
/* Elanor's clip is shot 9:16 — its card matches, so nothing is cropped */
.case--vert .case__media { aspect-ratio: 9 / 16; }
.case.in-view .case__media { clip-path: inset(0 0 round 6px); }
.case__media img, .case__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), opacity 0.6s ease;
}
.case__video { opacity: 0; z-index: 1; }
.case:hover .case__video.is-loaded, .case:focus-visible .case__video.is-loaded { opacity: 1; }
.case:hover .case__media img { transform: scale(1.045); }
.case__meta { padding: 18px 4px 0; }
.case__meta-top {
  display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  color: var(--ink-2); margin-bottom: 8px;
}
.case__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; }
.case__title em { color: var(--ink-2); }
.case { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.case.in-view { opacity: 1; transform: none; }

/* ---------- Capabilities ---------- */
.caps { border-top: 1px solid var(--line); }
.caps__list { list-style: none; position: relative; }
.caps__row {
  display: grid; grid-template-columns: 80px 1fr 1.1fr;
  gap: clamp(16px, 3vw, 44px); align-items: baseline;
  padding: clamp(26px, 3.4vw, 44px) 4px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.5s var(--ease-out);
}
.caps__row:first-child { border-top: 1px solid var(--line); }
.caps__row:hover { padding-left: clamp(10px, 1.6vw, 26px); }
.caps__num { color: var(--clay); }
.caps__name {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(30px, 4.2vw, 60px); line-height: 1.05;
  transition: color 0.4s;
}
.caps__row:hover .caps__name { color: var(--clay); }
.caps__desc { color: var(--ink-2); font-size: 16px; max-width: 460px; }
.caps__preview {
  position: fixed; z-index: 800; width: min(340px, 30vw); aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: scale(0.9) rotate(-2deg);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
  box-shadow: 0 30px 60px -18px rgba(23, 19, 9, 0.4);
  top: 0; left: 0;
}
.caps__preview.is-on { opacity: 1; transform: scale(1) rotate(0); }
.caps__preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.process__stack { display: flex; flex-direction: column; gap: 22px; max-width: 1120px; }
.process__card {
  position: sticky; top: 110px;
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(28px, 4vw, 56px);
  box-shadow: 0 -18px 40px -30px rgba(23, 19, 9, 0.4);
  overflow: hidden;
}
.process__ghost {
  position: absolute; right: clamp(16px, 4vw, 60px); bottom: -0.18em;
  font-family: var(--font-serif); font-size: clamp(120px, 16vw, 240px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(23, 19, 9, 0.16);
  pointer-events: none; user-select: none;
}
.process__card:nth-child(2) { top: 130px; background: #ece6d7; }
.process__card:nth-child(3) { top: 150px; background: #eee9db; }
.process__card:nth-child(4) { top: 170px; background: #f0ecdf; }
.process__card-head { display: flex; justify-content: space-between; margin-bottom: 22px; }
.process__num { color: var(--clay); }
.process__time { color: var(--ink-2); }
.process__card h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 56px); line-height: 1; margin-bottom: 14px;
}
.process__card p { max-width: 560px; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }

/* ---------- Manifesto (scroll-scrubbed text) ---------- */
.manifesto { display: flex; justify-content: center; border-top: 1px solid var(--line); }
.manifesto__text {
  max-width: 980px;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.18; letter-spacing: -0.01em;
  text-align: center; text-wrap: balance;
}
.manifesto__text em { color: var(--clay); }
.manifesto__text .m-word { opacity: 0.14; transition: opacity 0.35s linear; }
.manifesto__text .m-word.is-lit { opacity: 1; }

/* ---------- Proof (magnifier) ---------- */
.proof__stage {
  position: relative; max-width: 1120px; margin: 0 auto;
  border-radius: 8px; overflow: hidden;
  cursor: none;
}
.proof__stage img { width: 100%; height: auto; }
.proof__lens {
  position: absolute; width: 210px; height: 210px; border-radius: 50%;
  border: 1px solid rgba(239, 233, 220, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), inset 0 0 0 6px rgba(20, 16, 10, 0.55);
  background-repeat: no-repeat;
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
  transform: translate(-50%, -50%);
}
.proof__stage:hover .proof__lens, .proof__stage.is-touched .proof__lens { opacity: 1; }
.proof__hint {
  position: absolute; bottom: 18px; left: 22px;
  color: var(--bone-on-ink); opacity: 0.85;
  transition: opacity 0.4s;
}
.proof__stage:hover .proof__hint { opacity: 0; }
.proof__caption { margin-top: 18px; text-align: center; color: var(--muted-on-ink); }

/* ---------- Formats ---------- */
.formats__row {
  display: flex; gap: clamp(20px, 3vw, 44px);
  align-items: flex-end; justify-content: center; flex-wrap: wrap;
}
.format { flex: 1 1 300px; max-width: 560px; }
.format--phone { flex: 0 1 250px; }
.format--feed { flex: 0 1 340px; }
.format__frame {
  border-radius: 8px; overflow: hidden; background: var(--bone-2);
  aspect-ratio: 16 / 9; position: relative;
  border: 1px solid var(--line);
}
.format--feed .format__frame { aspect-ratio: 1 / 1; }
.format__frame--phone {
  aspect-ratio: 9 / 19.2; border-radius: 34px;
  border: 8px solid var(--ink); background: var(--ink);
  box-shadow: 0 30px 70px -25px rgba(23, 19, 9, 0.5);
}
.format__notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 36%; height: 20px; background: var(--ink); border-radius: 12px; z-index: 3;
}
.format__frame video, .format__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.format__frame--phone video { border-radius: 24px; }
.format figcaption { margin-top: 14px; color: var(--ink-2); text-align: center; }
.format { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.format.in-view { opacity: 1; transform: none; }
.format:nth-child(2).in-view { transition-delay: 0.12s; }
.format:nth-child(3).in-view { transition-delay: 0.24s; }

/* ---------- Numbers ---------- */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.numbers__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  max-width: 1240px; margin: 0 auto;
}
.numbers__item { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.numbers__value {
  font-family: var(--font-serif); font-size: clamp(48px, 6vw, 92px); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.numbers__label { color: var(--ink-2); }

/* ---------- Voices ---------- */
.voices__slider { max-width: 980px; }
.voices__viewport { position: relative; min-height: 320px; }
.voice {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
}
.voice.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.voice__quote {
  font-family: var(--font-serif); font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance;
}
.voice__quote::before {
  content: "✦"; display: block; color: var(--clay);
  font-size: 0.4em; margin-bottom: 0.9em;
}
.voice__who { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.voice__who img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; filter: saturate(0.92); }
.voice__who cite { font-style: normal; font-weight: 600; font-size: 16px; display: block; }
.voice__who .mono { color: var(--ink-2); }
.voice__answer {
  margin-top: 30px; max-width: 62ch;
  border-top: 1px solid var(--line-strong); padding-top: 22px;
}
.voice__answer-label { color: var(--clay); margin-bottom: 10px; }
.voice__answer p:last-child { color: var(--ink-2); font-size: 17px; line-height: 1.62; }
.voices__nav { display: flex; align-items: center; gap: 22px; margin-top: 44px; }
.voices__btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 18px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.voices__btn:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.voices__dots { display: flex; gap: 8px; }
.voices__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-strong);
  transition: background-color 0.3s, transform 0.3s;
}
.voices__dot.is-active { background: var(--clay); transform: scale(1.3); }

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 34px); align-items: stretch;
}
.plan {
  border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 26px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  opacity: 0; transform: translateY(40px);
}
.plan.in-view { opacity: 1; transform: none; }
.plan:nth-child(2).in-view { transition-delay: 0.1s; }
.plan:nth-child(3).in-view { transition-delay: 0.2s; }
.plan:nth-child(4).in-view { transition-delay: 0.3s; }
.plan:hover { box-shadow: 0 30px 60px -30px rgba(23, 19, 9, 0.35); }
.plan--featured { background: var(--ink); color: var(--bone-on-ink); border-color: var(--ink); }
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--clay); color: var(--bone); padding: 5px 14px; border-radius: 100px;
}
.plan__name { font-family: var(--font-serif); font-weight: 400; font-size: 30px; }
.plan__price { font-family: var(--font-serif); font-size: clamp(34px, 2.9vw, 50px); line-height: 1; margin-top: 10px; }
/* Custom/Enterprise carries no number; it still occupies the price slot so
   the four heads — name, price, one-liner — sit on the same baselines. */
.plan__price--quote { font-style: italic; color: var(--ink-2); }
.plan__from { color: var(--ink-2); margin-right: 6px; }
.plan--featured .plan__from { color: var(--muted-on-ink); }
/* Reserve two lines so a one-line summary next to a two-line one doesn't
   push its neighbour's bullet list out of alignment in the 2x2 layout. */
.plan__desc { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--ink-2); min-height: 2.9em; }
.plan--featured .plan__desc { color: var(--muted-on-ink); }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan__list li {
  padding-left: 22px; position: relative; font-size: 15px; color: var(--ink-2);
}
.plan--featured .plan__list li { color: var(--muted-on-ink); }
.plan__list li::before {
  content: "✦"; position: absolute; left: 0; top: 1px;
  color: var(--clay); font-size: 10px;
}
.plan__cta { width: 100%; }
.plan--featured .plan__cta { color: var(--ink); }
.plan--featured .plan__cta::before { background: var(--bone); }
.plan--featured .plan__cta:hover { color: var(--bone); }

/* ---------- FAQ ---------- */
.faq__list { max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px; cursor: pointer;
  font-family: var(--font-serif); font-size: clamp(21px, 2.4vw, 30px); line-height: 1.2;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--clay); }
.faq__icon {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); position: relative;
  transition: transform 0.45s var(--ease-out), background-color 0.3s;
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.6px; background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.45s var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--ink); color: var(--bone); border-color: var(--ink); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 4px 30px; max-width: 640px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }

/* ---------- Footer ---------- */
.footer { padding: clamp(110px, 14vw, 190px) var(--gutter) 40px; }
.footer__cta { text-align: center; margin-bottom: clamp(90px, 10vw, 150px); }
.footer__cta .eyebrow { justify-content: center; display: inline-flex; }
.footer__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(64px, 13vw, 210px); line-height: 0.95; letter-spacing: -0.02em;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.22em;
  margin: 10px 0 30px;
}
.footer__word { display: inline-block; overflow: hidden; }
.footer__word em { color: var(--muted-on-ink); }
.footer__sub { color: var(--muted-on-ink); max-width: 460px; margin: 0 auto 40px; font-size: 16.5px; }
.footer__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.footer__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  border-top: 1px solid var(--line-on-ink);
  padding-top: 50px; max-width: 1240px; margin: 0 auto;
}
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col a { color: var(--bone-on-ink); opacity: 0.85; transition: opacity 0.3s, color 0.3s; width: fit-content; }
.footer__col a:hover { opacity: 1; color: #fff; }
.footer__col span { color: var(--muted-on-ink); }
.footer__col-label { color: var(--clay); margin-bottom: 6px; }
.footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted-on-ink);
  border-top: 1px solid var(--line-on-ink);
  margin-top: 50px; padding-top: 26px;
  max-width: 1240px; margin-left: auto; margin-right: auto;
}
.footer__top { color: var(--bone-on-ink); }
.footer__top:hover { color: var(--clay); }

/* ---------- Case modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 950;
  display: grid; place-items: center;
  visibility: hidden; pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(20, 16, 10, 0.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.45s;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(1060px, 94vw); max-height: 90vh; overflow-y: auto;
  background: var(--bone); border-radius: 12px;
  transform: translateY(60px) scale(0.98); opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.45s;
  scrollbar-width: thin;
}
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__close {
  position: absolute; z-index: 5; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(23, 19, 9, 0.75); color: var(--bone);
  display: grid; place-items: center; font-size: 15px;
  transition: background-color 0.3s, transform 0.3s;
}
.modal__close:hover { background: var(--clay); transform: rotate(90deg); }
.modal__media { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.modal__media video, .modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* vertical pieces sit letterboxed on the ink stage instead of being cropped to 16:9 */
.modal__media--contain video, .modal__media--contain img { object-fit: contain; }
.modal__body { padding: clamp(28px, 4vw, 52px); }
.modal__kicker { color: var(--clay); margin-bottom: 14px; }
.modal__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin-bottom: 18px; }
.modal__text { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; max-width: 640px; }
.modal__stats {
  display: flex; gap: 34px; flex-wrap: wrap; margin-top: 30px;
  padding-top: 26px; border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.modal__stats b { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 30px; color: var(--ink); margin-bottom: 2px; letter-spacing: 0; }

/* ---------- Case-study pages ---------- */
.casehero { padding: clamp(130px, 16vh, 190px) var(--gutter) 0; }
.casehero__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--ink-2); transition: color 0.3s; }
.casehero__back:hover { color: var(--clay); }
.casehero__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(64px, 12vw, 180px); line-height: 0.95; letter-spacing: -0.02em;
}
.casehero__desc { margin-top: 28px; max-width: 640px; font-size: 17px; color: var(--ink-2); line-height: 1.65; }
.casehero__facts {
  display: flex; flex-wrap: wrap; gap: 10px 36px;
  margin-top: clamp(30px, 4vw, 52px); padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.casehero__media { margin: clamp(40px, 6vw, 80px) auto 0; max-width: 1400px; border-radius: 8px; overflow: hidden; }
.casehero__media img { width: 100%; height: auto; }

/* Case-study hero card stack — same component as the homepage showcase,
   without hrefs, overlay text or auto-advance. 16:9 frame matches the
   source stills. */
.cstack--hero {
  margin: clamp(40px, 6vw, 76px) 0 0;
  /* --stack-ar is set per page to the brand's own still ratio, so each
     hero frame matches its source images instead of a fixed shape. */
  --stack-w: 720px;
  --stack-ar: 1.778;
}
.cstack--hero .cstack__stage { height: calc(var(--stack-w) / var(--stack-ar) + 115px); }
.cstack--hero .cstack__card {
  width: var(--stack-w);
  height: calc(var(--stack-w) / var(--stack-ar));
  bottom: 56px;
}
.cstack--hero .cstack__nav { margin-top: 4px; }
/* Same ladder as the showcase, and for the same reason: without the 900px
   step a 560px card fans wider than a tablet viewport and pushes the outer
   two cards most of the way off screen. */
@media (max-width: 1100px) { .cstack--hero { --stack-w: 560px; } }
@media (max-width: 900px)  { .cstack--hero { --stack-w: 460px; } }
@media (max-width: 760px)  { .cstack--hero { --stack-w: min(80vw, 420px); } }

/* Films — ratio-driven masonry, no featured lead piece. Card size comes
   from each clip's own aspect ratio (16:9 wider, 9:16 narrower+taller),
   never from editorial hierarchy. The layout mode is set by video count:
     --many (3+) 6-col grid | --two side-by-side | --one single card
   and a section with zero videos is removed from the page entirely. */
.films__grid { max-width: 1120px; margin: 0 auto; }
.films__grid--many {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(24px, 3vw, 44px); align-items: start;
}
.films__grid--many .film--wide { grid-column: span 3; }
.films__grid--many .film--tall { grid-column: span 2; }
.films__grid--two {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(24px, 3vw, 44px); align-items: flex-start;
}
.films__grid--two .film--wide { flex: 0 1 520px; }
.films__grid--two .film--tall { flex: 0 1 320px; }
.films__grid--one { display: flex; justify-content: center; }
.films__grid--one .film--wide { flex: 0 1 820px; }
.films__grid--one .film--tall { flex: 0 1 380px; }
.film { min-width: 0; }

/* --masonry: the stills grid's arrangement applied to films, so the two
   sections read as one system when you scroll between them. Same column
   count, same gutter, same 1024/640 steps, same full-bleed width (no
   1120px cap) — each card still sized only by its own clip ratio, which
   here comes from .film__frame's aspect-ratio rather than an image's
   intrinsic height. Purely geometric: every behaviour on these cards is
   bound to the DOM, not the layout, so none of it is touched. */
.films__grid--masonry {
  max-width: none;
  columns: 3; column-gap: clamp(20px, 3vw, 44px);
}
.films__grid--masonry .film {
  break-inside: avoid;
  margin: 0 0 clamp(20px, 3vw, 44px);
}
@media (max-width: 1024px) { .films__grid--masonry { columns: 2; } }
@media (max-width: 640px)  { .films__grid--masonry { columns: 1; } }
/* A lone film has nothing to arrange: one card in a 3-column masonry sits
   at a third of the width with two dead columns beside it. Centre it at
   the width it had under --one instead. Count-adaptive like the variants
   this replaced, so adding a second film hands it back to the columns. */
.films__grid--masonry:has(.film:only-child) {
  columns: 1; max-width: 820px; margin-inline: auto;
}
.films__grid--masonry:has(.film--tall:only-child) { max-width: 380px; }

/* Film card — click opens the lightbox with sound (js/case.js) */
.film__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
  background: var(--ink); cursor: pointer;
  box-shadow: 0 30px 80px -30px rgba(23, 19, 9, 0.35);
}
.film--tall .film__frame { aspect-ratio: 9 / 16; }
/* muted preview that plays in place on hover */
.film__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; z-index: 1; transition: opacity 0.5s ease;
}
.film__frame:hover .film__preview.is-loaded { opacity: 1; }
.film__frame video, .film__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* a 9:16 clip sits in a 9:16 card, so cover is an exact fit — no letterbox needed */
.film__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 19, 9, 0.55) 100%);
  transition: opacity 0.4s;
}
.film__play {
  position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(68px, 8vw, 96px); height: clamp(68px, 8vw, 96px); border-radius: 50%;
  background: var(--clay); display: grid; place-items: center;
  transition: transform 0.35s var(--ease-out), opacity 0.3s, background-color 0.3s;
  pointer-events: none;
}
.film__play::before {
  content: ""; display: block; margin-left: 5px;
  border-left: 19px solid var(--bone);
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.film__frame:hover .film__play { transform: translate(-50%, -50%) scale(1.08); }
.film__slate {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; gap: 12px;
  padding: 15px 20px; color: var(--bone-on-ink);
  transition: opacity 0.4s;
}
.film figcaption { margin-top: 14px; color: var(--ink-2); }

/* Stills gallery — masonry columns, native aspect ratios (no crops) */
.stills__grid { columns: 3; column-gap: clamp(20px, 3vw, 44px); }
.still {
  display: block; width: 100%; padding: 0; margin: 0 0 clamp(20px, 3vw, 44px);
  break-inside: avoid; border-radius: 6px; overflow: hidden;
  background: var(--bone-2); cursor: pointer;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.still.in-view { opacity: 1; transform: none; }
.still img { width: 100%; height: auto; display: block; transition: transform 0.8s var(--ease-out); }
.still:hover img { transform: scale(1.03); }
@media (max-width: 1024px) { .stills__grid { columns: 2; } }
@media (max-width: 640px) { .stills__grid { columns: 1; } }

/* Prev / next brand */
.pagenav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pagenav a {
  padding: clamp(36px, 5vw, 64px) var(--gutter);
  display: flex; flex-direction: column; gap: 12px;
  transition: background-color 0.3s;
}
.pagenav a:hover { background: rgba(23, 19, 9, 0.045); }
.pagenav a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.pagenav__label { color: var(--clay); }
.pagenav__name { font-family: var(--font-serif); font-size: clamp(30px, 4.5vw, 56px); line-height: 1.05; }
.pagenav__name em { color: var(--ink-2); }
.pagenav a:hover .pagenav__name { color: var(--clay); }

/* Fullscreen lightbox (stills + films; injected by js/case.js) */
.lightbox { position: fixed; inset: 0; z-index: 970; display: none; }
.lightbox.is-open { display: block; }
.lightbox__backdrop {
  position: absolute; inset: 0; background: rgba(20, 16, 10, 0.93);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lightbox__stage {
  position: absolute; inset: clamp(56px, 9vh, 84px) clamp(64px, 8vw, 120px);
  display: grid; place-items: center;
  /* definite 100% tracks so the media's max-width/height percentages resolve */
  grid-template-rows: 100%; grid-template-columns: 100%;
}
.lightbox__stage img, .lightbox__stage video {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
}
.lightbox__close {
  position: absolute; z-index: 5; top: 18px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(239, 233, 220, 0.12); color: var(--bone-on-ink);
  display: grid; place-items: center; font-size: 15px;
  transition: background-color 0.3s, transform 0.3s;
}
.lightbox__close:hover { background: var(--clay); transform: rotate(90deg); }
.lightbox__nav {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-on-ink); color: var(--bone-on-ink);
  display: grid; place-items: center; font-size: 18px;
  transition: background-color 0.3s, border-color 0.3s;
}
.lightbox__nav:hover { background: var(--clay); border-color: var(--clay); color: var(--bone); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__caption {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 22px;
  color: var(--bone-on-ink); pointer-events: none;
}
.lightbox__count { color: var(--muted-on-ink); }
@media (max-width: 640px) {
  .lightbox__stage { inset: 60px 10px 56px; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* CTA band + compact footer */
.casecta { text-align: center; }
.casecta__title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 7vw, 96px); line-height: 1.02; margin-bottom: 36px;
  text-wrap: balance;
}
.casecta__title em { color: var(--muted-on-ink); }
.casefoot {
  background: var(--ink-dark-bg); color: var(--muted-on-ink);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--gutter); border-top: 1px solid var(--line-on-ink);
}

/* ---------- Responsive ---------- */
/* Pricing steps 4 -> 2 -> 1. Four across needs real width; below that a 2x2
   keeps every row full, so the featured card never sits beside a gap. */
@media (max-width: 1200px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
}
@media (max-width: 1024px) {
  .caps__row { grid-template-columns: 54px 1fr; }
  .caps__desc { grid-column: 2; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 50px 20px; }
}
@media (max-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr; max-width: 620px; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__right .btn { display: none; }
  .work__grid { display: flex; flex-direction: column; }
  .case, .case--feature { width: 100%; margin-top: 0 !important; }
  .case__media { aspect-ratio: 16 / 9; }
  /* the vertical card keeps its true 9:16 but is width-capped so it
     doesn't run off the bottom of a phone screen */
  .case--vert { max-width: 300px; }
  .case--vert .case__media { aspect-ratio: 9 / 16; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .caps__preview { display: none; }
  /* films: 2 columns on tablet */
  .films__grid--many { grid-template-columns: repeat(4, 1fr); }
  .films__grid--many .film--wide { grid-column: span 2; }
  .films__grid--many .film--tall { grid-column: span 2; }
  .pagenav { grid-template-columns: 1fr; }
  .pagenav a + a { border-left: 0; border-top: 1px solid var(--line); text-align: left; align-items: flex-start; }
  .voices__viewport { min-height: 420px; }
  .process__card { position: static; }
  .process__ghost { display: none; }
}
@media (max-width: 560px) {
  .case__meta-top { flex-direction: column; }
}
/* films: single column on mobile */
@media (max-width: 640px) {
  .films__grid--many { grid-template-columns: 1fr; }
  .films__grid--many .film--wide,
  .films__grid--many .film--tall { grid-column: span 1; }
  .films__grid--two .film--wide,
  .films__grid--two .film--tall,
  .films__grid--one .film--wide,
  .films__grid--one .film--tall { flex: 1 1 100%; }
  .films__grid--two .film--tall,
  .films__grid--one .film--tall { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .formats__row { align-items: center; }
  .format, .format--phone, .format--feed { flex: 1 1 100%; max-width: 100%; }
  .format--phone { max-width: 260px; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .modal__stats { gap: 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .reveal-line, .case, .plan, .format, .still,
  .hero__line > span, .split-reveal .word > span {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .preloader { display: none; }
  body[data-loading] { overflow: auto; }
  .marquee__track { transform: none !important; }
  .case__media { clip-path: inset(0 0 round 6px) !important; }
  /* showcase keeps its fan layout but snaps instantly between cards */
  .cstack__card { transition: none !important; }
  /* no reel player is built under reduced motion, so hide its control */
  .reel__sound { display: none; }
}
