/* ============================================================
   Crossover Labs — styles.css v3 (Atelier)
   Editorial-light · gallery atmosphere · single Clay accent
   See DESIGN.md for the full system spec.
   ============================================================ */

:root {
  /* Palette — Atelier (light / day gallery)
     RGB channel vars feed both the named tokens and any rgba(..., alpha)
     overlay so dark-mode overrides flip everything in one place. */
  --chalk-rgb: 245, 242, 236;
  --ink-rgb: 27, 26, 24;
  --paper-rgb: 236, 230, 217;
  --clay-rgb: 107, 79, 58;
  --moss-rgb: 92, 122, 79;

  --chalk: rgb(var(--chalk-rgb));   /* primary canvas, warm off-white */
  --chalk-deep: #EFEBE0;            /* nav/scroll surface tint */
  --paper: rgb(var(--paper-rgb));   /* alt section background */
  --ink: rgb(var(--ink-rgb));       /* primary type, sculpture material */
  --ink-soft: #2C2A26;              /* slightly softened ink for body */
  --stone: #6E6A62;                 /* secondary text */
  --stone-soft: #9B978E;            /* tertiary text, mono labels */
  --hair: rgba(var(--ink-rgb), 0.10);
  --hair-strong: rgba(var(--ink-rgb), 0.22);

  --clay: rgb(var(--clay-rgb));     /* the ONE accent */
  --clay-deep: #533C2C;             /* clay hover */
  --clay-soft: #A07A5C;             /* clay at lower contrast */

  --moss: rgb(var(--moss-rgb));     /* availability dot — non-accent craft moment */

  /* Liquid-glass tokens — used by .reel-tile, .outcome-tile, section
     glass surfaces. Highlight = light catching the top edge; shadow =
     depth at bottom edge + outer lift. Theme-aware so the same
     classes read as glass in both light and dark. */
  --glass-highlight: rgba(255, 255, 255, 0.55);
  --glass-highlight-soft: rgba(255, 255, 255, 0.18);
  --glass-shadow: rgba(0, 0, 0, 0.08);
  --glass-shadow-deep: rgba(0, 0, 0, 0.16);
  --glass-tint: rgba(var(--paper-rgb), 0.42);

  /* Typography */
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.2, .4, 1);

  /* Layout */
  --max-w: 1200px;
  --max-w-edge: 1440px;
  --page-pad: clamp(24px, 5vw, 80px);
  --nav-h: 76px;
  --gap-section: clamp(96px, 14vw, 180px);

  color-scheme: light;
}

/* ============================================================
   DARK MODE — "after-hours gallery"
   Warm near-black canvas + warm bone type. Same restraint, same
   single-clay-accent rule, just lit from the other side.
   Inverted sections (.process, dark reel-tiles, footer) flip with
   the palette: in dark mode their bg becomes bone, so they read as
   the light counterpoint to the dark canvas — preserving the
   intentional contrast inversion in either theme.
   ============================================================ */
[data-theme="dark"] {
  --chalk-rgb: 20, 19, 15;       /* warm near-black, not pure black */
  --ink-rgb: 232, 226, 210;      /* warm bone, not pure white */
  --paper-rgb: 31, 29, 23;       /* slightly raised dark surface */
  --clay-rgb: 181, 138, 102;     /* warmer clay — pops on dark canvas */
  --moss-rgb: 122, 153, 104;     /* brighter moss */

  --chalk-deep: #1B1A16;         /* nav scrolled surface in dark */
  --ink-soft: #D4CCBA;           /* softened bone for body */
  --stone: #8A857A;              /* secondary text */
  --stone-soft: #6B665B;         /* tertiary text, mono labels */

  --clay-deep: #A07A5C;          /* hover */
  --clay-soft: #C9A582;          /* lower-contrast bourbon */

  /* Glass tokens for dark mode — softer highlights (white reads strong
     on dark surfaces, so back it off) and stronger depth shadows
     (more contrast available against a near-black canvas). */
  --glass-highlight: rgba(255, 255, 255, 0.18);
  --glass-highlight-soft: rgba(255, 255, 255, 0.07);
  --glass-shadow: rgba(0, 0, 0, 0.30);
  --glass-shadow-deep: rgba(0, 0, 0, 0.50);
  --glass-tint: rgba(var(--paper-rgb), 0.38);

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--chalk);
  overflow-x: hidden;
  max-width: 100vw;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--ink); color: var(--chalk); }

/* ============================================================
   3D X canvas (sculpture pedestal)
   Sits behind everything; the matte ceramic X owns the hero.
   Faded out as the user scrolls past the hero.
   ============================================================ */
.site-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
  z-index: 0;
}
.has-3d-x .site-3d-canvas { opacity: var(--x-opacity, 0.95); }
.has-3d-x .hero-cross { display: none; }

/* When 3D is unavailable we fall back to an SVG ink-line cross. */
.hero-cross {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ============================================================
   NAV — minimal, no glass, no fixed bg until scrolled
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  z-index: 50;
  background: transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(var(--chalk-rgb), 0.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--hair);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
  transition: transform .6s var(--ease-spring);
}
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-word { display: inline-flex; align-items: baseline; gap: 0; }
.logo-word-accent {
  font-style: italic;
  color: var(--clay);
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-body);
  font-size: 14px;
}
.nav-links a {
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .2s var(--ease-out), background .2s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover { background: var(--hair); }

.nav-cta {
  background: var(--clay) !important;
  color: var(--chalk) !important;
  padding: 11px 20px !important;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  transition: background .25s var(--ease-out), transform .35s var(--ease-spring);
}
.nav-cta:hover {
  background: var(--clay-deep) !important;
  transform: translateY(-1px);
}

/* Theme toggle — gibbous-circle glyph, half-filled with currentColor.
   Always shows the same icon (theme-as-balance, not sun/moon cliche).
   Rotates 180° on click so the filled half flips, signaling state change. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--hair);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  margin-left: 4px;
  transition:
    color .25s var(--ease-out),
    background .25s var(--ease-out),
    border-color .25s var(--ease-out),
    transform .55s var(--ease-spring);
}
.theme-toggle svg { display: block; transition: transform .55s var(--ease-spring); }
.theme-toggle:hover {
  border-color: var(--hair-strong);
  background: var(--hair);
}
[data-theme="dark"] .theme-toggle svg { transform: rotate(180deg); }
.theme-toggle:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* Mobile menu toggle — three stacked bars that smoothly converge to the
   center of the button on open, top/bottom rotating ±45° to form an X
   while the middle bar squeezes to nothing. Bars are absolutely
   positioned around true center so they pivot cleanly without any
   layout-driven shift between states. */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hair);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.5px;
  margin: 0;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform .5s cubic-bezier(.5, 1.4, .4, 1),
    opacity .2s var(--ease-out);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 6.5px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 6.5px)); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) scaleX(0); opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu[hidden] { display: none !important; }
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--chalk);
  z-index: 49;
  padding: 48px var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu a {
  font-family: var(--f-display);
  font-size: 44px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.theme-toggle--mobile {
  align-self: flex-start;
  width: auto;
  height: auto;
  padding: 14px 18px;
  margin-top: 16px;
  margin-left: 0;
  gap: 12px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.theme-toggle--mobile .theme-toggle-label { display: inline-block; }

/* ============================================================
   HERO — spectacular: huge serif headline + matte X sculpture
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* vh-aware top/bottom padding so short viewports (laptops, half-windows)
     don't lose 150px+ to fixed padding before the type even starts. */
  padding:
    calc(var(--nav-h) + clamp(20px, min(5vw, 6vh), 80px))
    var(--page-pad)
    clamp(28px, min(4vw, 5vh), 72px);
  display: flex;
  align-items: center;
  z-index: 1;
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--max-w-edge);
  margin: 0 auto;
  z-index: 2;
}
.hero-content {
  max-width: 920px;
  /* Flex column lets us guarantee the primary CTA sits within the
     viewport on any aspect ratio — vertical rhythm uses min(vw, vh) so
     the title shrinks before it can push the CTA off-screen. */
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Eyebrow — mono small caps with moss availability dot */
.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: calc(clamp(16px, 3.6vh, 36px) * var(--hero-fit, 1));
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(var(--moss-rgb), 0.18);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--moss-rgb), 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(var(--moss-rgb), 0.06); }
}

/* The main act — billboard serif headline.
   Font-size uses min(vw, vh) so on short/landscape viewports the title
   shrinks before it can push the CTAs off-screen. Capped at 108px so
   the full hero (eyebrow → title → sub → CTA → stats) fits a 13" laptop. */
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: calc(clamp(44px, min(8vw, 9.2vh), 96px) * var(--hero-fit, 1));
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: calc(clamp(18px, 3.2vh, 32px) * var(--hero-fit, 1));
  max-width: 14ch;
}
.hero-line {
  display: block;
}
.hero-em {
  font-style: italic;
  color: var(--ink);
  position: relative;
  display: inline-block;
  /* ever so slightly oversized vs. the rest — gallery focal type */
  font-size: 1.06em;
  letter-spacing: -0.03em;
}

/* Framer-style word-mask reveal containers — each word is clipped by the
   outer .hero-word; .hero-word-inner is what slides+blurs in. */
.hero-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Room for descenders + italic slant so masked clip doesn't shave glyphs */
  padding: 0.06em 0.04em 0.18em;
  margin: -0.06em -0.04em -0.18em;
  line-height: inherit;
}
.hero-em .hero-word {
  /* Italic slant runs to the right — extra padding so the tip never clips */
  padding-right: 0.18em;
  margin-right: -0.18em;
}
.hero-word-inner {
  display: inline-block;
  will-change: transform, filter, opacity;
  transform: translateZ(0);
}
/* Hand-drawn ink underline arc beneath the italic word */
.hero-em-underline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.04em;
  width: 104%;
  height: 0.28em;
  pointer-events: none;
  overflow: visible;
}
.hero-em-underline path {
  stroke: var(--clay);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 1.6s var(--ease-out) 0.6s forwards;
}
.js-init .hero-em-underline path { animation: none; stroke-dashoffset: 600; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.hero-sub {
  font-family: var(--f-body);
  font-size: calc(clamp(15px, 1.3vw, 19px) * var(--hero-fit, 1));
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: calc(clamp(20px, 3.2vh, 40px) * var(--hero-fit, 1));
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: calc(20px * var(--hero-fit, 1));
  margin-bottom: calc(clamp(16px, 2.4vh, 32px) * var(--hero-fit, 1));
}

/* ============================================================
   HERO CTA — slim hairline pill, single line, artsy interior.
   Reads as a button (rounded hairline border, fills on hover) but
   stays light enough that the page feels gallery, not marketing.
   Meta line moved out (now .hero-meta below) so the pill collapses
   to a single line.
   ============================================================ */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--hero-fit, 1));
  text-decoration: none;
  color: var(--ink);
  position: relative;
  isolation: isolate;
  padding:
    calc(clamp(10px, 1.0vw, 14px) * var(--hero-fit, 1))
    calc(clamp(18px, 1.6vw, 26px) * var(--hero-fit, 1));
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  transition:
    background-color .35s var(--ease-out),
    color .35s var(--ease-out),
    border-color .35s var(--ease-out);
}
.hero-cta:hover {
  background: var(--ink);
  color: var(--chalk);
  border-color: var(--ink);
}
.hero-cta-inner {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.18em 0.28em;
  font-family: var(--f-display);
  font-size: calc(clamp(18px, min(2.2vw, 3vh), 26px) * var(--hero-fit, 1));
  line-height: 1;
  letter-spacing: -0.02em;
  color: inherit;
}
.hero-cta-pre {
  font-weight: 400;
}
.hero-cta-word {
  position: relative;
  display: inline-block;
  color: var(--clay);
  transition: color .35s var(--ease-out);
}
.hero-cta:hover .hero-cta-word { color: var(--clay-soft); }
.hero-cta-word em {
  font-style: italic;
  color: inherit;
  display: inline-block;
  transition: transform .5s var(--ease-spring);
}
.hero-cta:hover .hero-cta-word em {
  transform: translateX(2px) skewX(-3deg);
}
.hero-cta-underline {
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.16em;
  width: 106%;
  height: 0.28em;
  pointer-events: none;
  overflow: visible;
  color: currentColor;
  opacity: 0.55;
}
.hero-cta-underline path {
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: cta-draw 1.4s var(--ease-out) 1.6s forwards;
}
.hero-cta-arrow {
  width: calc(clamp(28px, 2.8vw, 44px) * var(--hero-fit, 1));
  height: calc(clamp(12px, 1.2vw, 18px) * var(--hero-fit, 1));
  margin-left: 4px;
  color: var(--clay);
  align-self: center;
  flex-shrink: 0;
  transition: color .35s var(--ease-out);
}
.hero-cta:hover .hero-cta-arrow { color: var(--clay-soft); }
.hero-cta-arrow-shaft,
.hero-cta-arrow-head {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: cta-draw 1.2s var(--ease-out) 2.0s forwards;
}
.hero-cta-arrow-head {
  animation-delay: 2.4s;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.hero-cta:hover .hero-cta-arrow {
  animation: cta-arrow-bob 1.4s var(--ease-out) infinite;
}
@keyframes cta-draw { to { stroke-dashoffset: 0; } }
@keyframes cta-arrow-bob {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
/* Secondary CTA — italic-clay editorial text link, paired with the
   primary pill. Same gallery vocabulary as the rest of the hero
   (italic clay accent, hand-drawn arrow), but no surface — just a
   line of type so only the primary carries weight. */
.hero-cta-aux {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--f-display);
  font-size: calc(clamp(17px, min(1.6vw, 2.2vh), 22px) * var(--hero-fit, 1));
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--stone);
  padding: 4px 0;
  transition: color .25s var(--ease-out);
}
.hero-cta-aux em {
  font-style: italic;
  color: var(--clay);
  transition: color .25s var(--ease-out);
}
.hero-cta-aux svg { align-self: center; transition: transform .35s var(--ease-spring); }
.hero-cta-aux:hover { color: var(--ink); }
.hero-cta-aux:hover em { color: var(--clay-deep); }
.hero-cta-aux:hover svg { transform: translateX(4px); }

/* Standalone meta caption — was inside the pill, now sits below
   both CTAs as a quiet credibility line. Pulled out so the pill
   could collapse to a single line. */
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: calc(clamp(14px, 2vh, 22px) * var(--hero-fit, 1));
}
.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(var(--moss-rgb), 0.18);
}

/* ============================================================
   X-TRAIL CANVAS — cursor leaves fading X marks
   ============================================================ */
.x-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
  display: block;
}

/* ============================================================
   STORY-LINE — TWO scroll-drawn paths weaving down the left margin.
   Path A stroke = currentColor (clay via .story-line color).
   Path B stroke = ink/bone via var(--ink) so the crossings read as
   distinct threads, not one fat line. Container is wider than a
   single-line build to give the wobbles room to actually cross.
   ============================================================ */
.story-line {
  position: fixed;
  top: 0;
  left: clamp(10px, 2vw, 28px);
  width: clamp(22px, 3vw, 48px);
  height: 100vh;
  pointer-events: none;
  z-index: 30;
  color: var(--clay);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.story-line-path--b { stroke: var(--ink); }
.story-line.is-active { opacity: 0.55; }
@media (max-width: 720px) {
  .story-line {
    left: 6px;
    width: 18px;
  }
  .story-line.is-active { opacity: 0.4; }
}

/* ============================================================
   LIVE MICRO-DEMOS — proof-of-skill baked into stack/services/process
   ============================================================ */
/* Demos are always exposed — the cards earn their height. The hover-
   to-reveal pattern hid them from anyone who didn't think to hover,
   which is most visitors. */
.demo {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

/* Gallery exhibit caption — art-meets-tech: mono "Exhibit N°" eyebrow
   over an italic-serif descriptor. Pairs with the technical body below. */
.demo-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  position: relative;
}
.demo-caption::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--clay);
  opacity: 0.6;
}
.demo-caption-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}
.demo-caption-desc {
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.demo-caption-desc em { font-style: italic; }

/* Inverted caption inside dark surfaces (terminal) */
.demo-caption--invert .demo-caption-num { color: var(--clay-soft); }
.demo-caption--invert .demo-caption-desc { color: var(--chalk); }
.demo-caption--invert::after { background: var(--clay-soft); }

/* Reel tiles have dark text on light bg by default — caption inherits */
.reel-tile .demo-caption-desc { color: var(--ink); }

/* Claude — chat bubble demo */
.demo-chat { display: flex; flex-direction: column; gap: 8px; }
.demo-chat-msg {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 92%;
  letter-spacing: 0;
}
.demo-chat-msg--you {
  background: rgba(var(--chalk-rgb), 0.06);
  color: var(--chalk);
  align-self: flex-end;
  border: 1px solid rgba(var(--chalk-rgb), 0.16);
}
.reel-tile:not([class*="--dark"]) .demo-chat-msg--you {
  background: rgba(var(--ink-rgb), 0.06);
  color: var(--ink);
  border-color: var(--hair);
}
.demo-chat-msg--bot {
  background: var(--clay);
  color: var(--chalk);
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
}
.demo-chat-bot-typing { display: inline-flex; gap: 4px; }
.demo-chat-bot-typing span {
  width: 5px; height: 5px; border-radius: 999px;
  background: rgba(var(--chalk-rgb), 0.7);
  animation: chat-typing 1.1s var(--ease-out) infinite;
}
.demo-chat-bot-typing span:nth-child(2) { animation-delay: 0.18s; }
.demo-chat-bot-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes chat-typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

/* Three.js — wireframe X canvas */
.demo-three {
  display: flex;
  justify-content: center;
}
.demo-three canvas {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 240 / 140;
}

/* ============================================================
   REEL TILE DEMOS — Next.js / Supabase / Vercel / Stripe.
   Each is a tiny mock tied to the brand's claim: file tree,
   table populating, deploy steps, payment line items. Light
   CSS keyframes only, no JS per tile.
   ============================================================ */

/* Next.js — file tree */
.demo-next-tree {
  list-style: none;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.demo-next-tree li {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(-4px);
  animation: tree-in .6s var(--ease-out) forwards;
}
.demo-next-tree li:nth-child(1) { animation-delay: 0.05s; }
.demo-next-tree li:nth-child(2) { animation-delay: 0.20s; }
.demo-next-tree li:nth-child(3) { animation-delay: 0.35s; }
.demo-next-tree li:nth-child(4) { animation-delay: 0.50s; }
.demo-next-tree li:nth-child(5) { animation-delay: 0.65s; }
.demo-next-tree li:nth-child(6) { animation-delay: 0.80s; }
.demo-next-indent  { padding-left: 14px; }
.demo-next-indent2 { padding-left: 28px; color: var(--stone); }
.demo-next-glyph { color: var(--clay); font-size: 9px; }
.demo-next-icon  { color: var(--stone-soft); font-size: 9px; }
@keyframes tree-in { to { opacity: 1; transform: translateX(0); } }

/* Supabase — table populating */
.demo-supa-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 10.5px;
}
.demo-supa-table th {
  text-align: left;
  font-weight: 500;
  color: var(--clay);
  padding: 4px 8px;
  border-bottom: 1px solid var(--hair-strong);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.demo-supa-table td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-soft);
}
.demo-supa-table tbody tr {
  opacity: 0;
  animation: row-in .55s var(--ease-out) forwards;
}
.demo-supa-table tbody tr:nth-child(1) { animation-delay: 0.10s; }
.demo-supa-table tbody tr:nth-child(2) { animation-delay: 0.30s; }
.demo-supa-table tbody tr:nth-child(3) { animation-delay: 0.50s; }
.demo-supa-table tbody tr:nth-child(4) { animation-delay: 0.70s; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(3px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Vercel — deploy steps */
.demo-vercel-list {
  list-style: none;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.demo-vercel-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(3px);
  animation: row-in .5s var(--ease-out) forwards;
}
.demo-vercel-list li:nth-child(1) { animation-delay: 0.10s; }
.demo-vercel-list li:nth-child(2) { animation-delay: 0.30s; }
.demo-vercel-list li:nth-child(3) { animation-delay: 0.50s; }
.demo-vercel-list li:nth-child(4) { animation-delay: 0.70s; }
.demo-vercel-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 10px;
  color: var(--moss);
  flex-shrink: 0;
}
.demo-vercel-check--live {
  color: var(--clay);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Stripe — line items totaling */
.demo-stripe-list {
  list-style: none;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.7;
}
.demo-stripe-list li {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hair);
  opacity: 0;
  transform: translateY(3px);
  animation: row-in .5s var(--ease-out) forwards;
}
.demo-stripe-list li:nth-child(1) { animation-delay: 0.10s; }
.demo-stripe-list li:nth-child(2) { animation-delay: 0.30s; }
.demo-stripe-list li:nth-child(3) { animation-delay: 0.50s; }
.demo-stripe-list li:nth-child(4) { animation-delay: 0.80s; }
.demo-stripe-amt { color: var(--ink); font-variant-numeric: tabular-nums; }
.demo-stripe-total {
  margin-top: 4px;
  padding-top: 6px !important;
  border-top: 1px solid var(--hair-strong);
  border-bottom: none !important;
  color: var(--ink) !important;
  font-weight: 500;
}
.demo-stripe-total .demo-stripe-amt { color: var(--clay); font-size: 13px; }

/* Process terminal */
.demo-term {
  background: var(--ink);
  color: var(--chalk);
  padding: 18px 20px;
  border-radius: 6px;
}
.demo-term-body {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
}
.demo-term-prompt { color: var(--clay-soft); margin-right: 4px; }
.demo-term-caret {
  display: inline-block;
  animation: term-blink 1s steps(2) infinite;
}
@keyframes term-blink { 50% { opacity: 0; } }

/* ============================================================
   X-CURSOR — desktop custom cursor
   ============================================================ */
.x-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  pointer-events: none;
  z-index: 100;
  /* Hardcoded dark ink — NOT var(--ink). The mix-blend-mode:difference
     + filter:invert(1) trick below only adapts the cursor to any
     background when the source color is dark; if we used var(--ink),
     dark mode would flip it to bone and the cursor would render
     near-black on the near-black canvas (invisible). */
  color: #1B1A18;
  display: none;
  mix-blend-mode: difference;
  filter: invert(1);
  transition: transform .25s var(--ease-spring), opacity .2s var(--ease-out);
  will-change: transform;
}
.x-cursor svg { width: 100%; height: 100%; overflow: visible; }
.x-cursor-h, .x-cursor-v {
  transform-origin: 12px 12px;
  transition: transform .35s var(--ease-spring);
}
.x-cursor.is-x .x-cursor-h { transform: rotate(45deg); }
.x-cursor.is-x .x-cursor-v { transform: rotate(-45deg); }
.x-cursor.is-active { transform: scale(1.6); }
@media (hover: hover) and (pointer: fine) {
  .x-cursor { display: block; }
  /* Hide native cursor on interactive elements when custom cursor active */
  html.has-x-cursor,
  html.has-x-cursor a,
  html.has-x-cursor button,
  html.has-x-cursor [role="button"] { cursor: none; }
}

/* ============================================================
   PROCESS STEP VISUALS — always-on demos for "design in public"
   (Figma-style mock with animated cursor) and "ship fast"
   (looping terminal). Visible on every viewport size.
   ============================================================ */
.step-visual {
  position: relative;
}

/* Figma mock UI + animated cursor */
.figma-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--chalk);
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--f-mono);
}
.figma-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  height: 22px;
  box-sizing: border-box;
}
.figma-bar-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hair-strong);
}
.figma-bar-name {
  margin-left: 8px;
  font-size: 9px;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.figma-canvas {
  position: relative;
  width: 100%;
  height: calc(100% - 22px);
  background: linear-gradient(var(--chalk-deep), var(--chalk));
  background-size: 8px 8px;
  background-image:
    linear-gradient(to right, rgba(var(--ink-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--ink-rgb), 0.04) 1px, transparent 1px);
}
.figma-block {
  position: absolute;
  background: var(--chalk);
  border: 1px solid var(--hair-strong);
  border-radius: 3px;
}
.figma-block--header { top: 8%; left: 6%; width: 88%; height: 14%; }
.figma-block--card-a { top: 28%; left: 6%; width: 40%; height: 44%; }
.figma-block--card-b { top: 28%; left: 52%; width: 42%; height: 44%; background: rgba(var(--clay-rgb), 0.10); border-color: var(--clay-soft); }
.figma-block--footer { top: 78%; left: 6%; width: 88%; height: 14%; }

.figma-comment {
  position: absolute;
  top: 32%;
  left: 64%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 6px;
  background: var(--ink);
  color: var(--chalk);
  border-radius: 999px;
  font-size: 9px;
  font-family: var(--f-mono);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transform-origin: left bottom;
  animation: figma-comment 8s var(--ease-out) infinite;
}
.figma-comment-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--clay);
}

.figma-cursor {
  position: absolute;
  width: 14px;
  height: 18px;
  top: 88%;
  left: 6%;
  filter: drop-shadow(0 1.5px 2px rgba(var(--ink-rgb), 0.18));
  animation: figma-cursor-path 8s cubic-bezier(.5, 0, .25, 1) infinite;
}

@keyframes figma-cursor-path {
  /* Loops: enter from bottom-left → header → card-a → card-b (drops comment)
     → footer → out. Pause beats at each landing. */
  0%   { top: 88%; left: 6%; }
  10%  { top: 12%; left: 18%; }
  18%  { top: 12%; left: 18%; }
  28%  { top: 48%; left: 18%; }
  36%  { top: 48%; left: 18%; }
  46%  { top: 34%; left: 62%; }
  64%  { top: 34%; left: 62%; }
  74%  { top: 80%; left: 38%; }
  82%  { top: 80%; left: 38%; }
  100% { top: 88%; left: 6%; }
}
@keyframes figma-comment {
  0%, 44%   { opacity: 0; transform: translateY(4px) scale(0.92); }
  50%, 64%  { opacity: 1; transform: translateY(0) scale(1); }
  72%, 100% { opacity: 0; transform: translateY(4px) scale(0.92); }
}

/* Looping terminal */
.step-term {
  width: 100%;
  background: var(--ink);
  color: var(--chalk);
  border-radius: 4px;
  border: 1px solid var(--ink);
  overflow: hidden;
  font-family: var(--f-mono);
}
.step-term-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(var(--chalk-rgb), 0.04);
  border-bottom: 1px solid rgba(var(--chalk-rgb), 0.08);
  height: 22px;
  box-sizing: border-box;
}
.step-term-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(var(--chalk-rgb), 0.18);
}
.step-term-name {
  margin-left: 8px;
  font-size: 9px;
  color: rgba(var(--chalk-rgb), 0.5);
  letter-spacing: 0.06em;
}
.step-term-body {
  font-size: 11.5px;
  line-height: 1.65;
  padding: 14px 14px 16px;
  /* pre-wrap so any single line longer than the terminal width
     wraps instead of bleeding past the clipped edge. */
  white-space: pre-wrap;
  word-break: break-word;
  /* FIXED height (not min-height) so the typewriter cycle — which
     fills lines top→bottom and clears between cycles — never causes
     the .step-term to grow/shrink and shift the page layout. */
  height: 110px;
  overflow: hidden;
  box-sizing: border-box;
}
.step-term-prompt { color: var(--clay-soft); margin-right: 4px; }
.step-term-caret {
  display: inline-block;
  animation: term-blink 1s steps(2) infinite;
}

/* Step 01 — discovery call mock (transcript-style chat exchange).
   4 messages animate in sequence + loop so the visual matches the
   "one call, no jargon" copy. Same window-frame language as figma
   + terminal mocks. */
.call-mock {
  width: 100%;
  background: var(--chalk);
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--f-mono);
}
.call-mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  height: 22px;
  box-sizing: border-box;
}
.call-mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hair-strong);
}
.call-mock-name {
  margin-left: 8px;
  font-size: 9px;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.call-mock-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px 14px;
  min-height: 130px;
}
.call-mock-msg {
  font-size: 10.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  animation: call-msg-in 7.2s var(--ease-out) infinite;
}
.call-mock-msg span {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 8px;
  max-width: 88%;
}
.call-mock-msg--you { align-self: flex-end; text-align: right; }
.call-mock-msg--you span { background: var(--paper); color: var(--ink); }
.call-mock-msg--us  { align-self: flex-start; }
.call-mock-msg--us  span { background: var(--clay); color: var(--chalk); }
.call-mock-msg:nth-child(1) { animation-delay: 0.0s; }
.call-mock-msg:nth-child(2) { animation-delay: 1.6s; }
.call-mock-msg:nth-child(3) { animation-delay: 3.2s; }
.call-mock-msg:nth-child(4) { animation-delay: 4.8s; }
@keyframes call-msg-in {
  /* visible from the message's own delay through end of cycle */
  0%, 4%   { opacity: 0; transform: translateY(4px); }
  6%, 92%  { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(-2px); }
}

/* Step 04 — Slack-style notification mock (incident + fix).
   Tells the post-launch-care story via 3 messages: alert →
   acknowledge → resolved. Loops every 6.4s. */
.slack-mock {
  width: 100%;
  background: var(--chalk);
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--f-mono);
}
.slack-mock-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  height: 22px;
  box-sizing: border-box;
}
.slack-mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--hair-strong);
}
.slack-mock-name {
  margin-left: 8px;
  font-size: 9px;
  color: var(--stone);
  letter-spacing: 0.04em;
}
.slack-mock-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  min-height: 130px;
}
.slack-mock-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  opacity: 0;
  transform: translateX(-4px);
  animation: slack-msg-in 6.4s var(--ease-out) infinite;
}
.slack-mock-avatar {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--chalk);
  font-size: 10px;
  flex-shrink: 0;
}
.slack-mock-avatar--alert { background: var(--clay); color: var(--chalk); }
.slack-mock-text { color: var(--ink); line-height: 1.3; }
.slack-mock-msg--fix .slack-mock-text { color: var(--clay); }
.slack-mock-msg:nth-child(1) { animation-delay: 0.0s; }
.slack-mock-msg:nth-child(2) { animation-delay: 1.6s; }
.slack-mock-msg:nth-child(3) { animation-delay: 3.2s; }
@keyframes slack-msg-in {
  0%, 5%   { opacity: 0; transform: translateX(-4px); }
  8%, 92%  { opacity: 1; transform: translateX(0); }
  100%     { opacity: 0; }
}

/* Buttons — one solid Clay pill + one ghost-text-with-ink-underline */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  text-decoration: none;
  transition: transform .35s var(--ease-spring), background .25s var(--ease-out), color .25s var(--ease-out);
}
.btn-primary {
  background: var(--clay);
  color: var(--chalk);
  padding: 16px 28px;
  border-radius: 999px;
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-primary svg { transition: transform .35s var(--ease-spring); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  color: var(--ink);
  padding: 16px 8px;
  background: none;
  position: relative;
}
.btn-ghost::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 12px;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .45s var(--ease-out);
}
.btn-ghost:hover::after { transform: scaleX(1); }

/* Stats — much subtler than before, hairline-divided */
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--hair);
  padding-top: calc(clamp(14px, 2.6vh, 24px) * var(--hero-fit, 1));
  max-width: 720px;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 24px;
}
.stat-num {
  font-family: var(--f-display);
  font-size: calc(clamp(24px, 2.8vw, 36px) * var(--hero-fit, 1));
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.stat-sep { display: none; }

/* JS-init — hold initial hidden state until anime.js takes over.
   Word-split lines stay visible (their word-inners are hidden); the title
   container is hidden as a whole until JS finishes splitting and reveals it. */
.js-init .hero-title,
.js-init .eyebrow,
.js-init .hero-sub,
.js-init .hero-cta,
.js-init .hero-cta-aux,
.js-init .hero-stats { opacity: 0; }
.js-init .hero-word-inner {
  opacity: 0;
  transform: translateY(110%);
  filter: blur(12px);
}

/* ============================================================
   MARQUEE — old → new editorial ticker
   ============================================================ */
.marquee {
  background: var(--glass-tint);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid var(--glass-highlight);
  border-bottom: 1px solid var(--glass-shadow);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight-soft),
    inset 0 -1px 0 var(--glass-shadow);
  overflow: hidden;
  padding: 28px 0;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: inline-flex;
  align-items: baseline;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 90s linear infinite;
  padding-left: 24px;
}
.marquee-track span {
  font-family: var(--f-body);
  font-size: 22px;
  color: var(--ink);
  font-weight: 400;
}
.marquee-track .sym {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 28px;
  color: var(--clay);
  padding: 0 4px;
}
.marquee-track .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
  display: inline-block;
  margin: 0 16px;
  align-self: center;
  position: relative;
  top: -3px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION SHELL — eyebrow over hairline over big serif title
   ============================================================ */
section { position: relative; z-index: 1; }
/* .nav is intentionally excluded — it's position: fixed (line 110); listing
   it here previously clobbered that, putting the nav in-flow and shoving
   the hero down by --nav-h, which pushed the stats row below the fold. */
main, .hero, .services, .reel, .process, .who, .manifesto, .contact, .footer, .marquee, .outcomes {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  margin-bottom: 80px;
}
.section-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-soft);
  margin-bottom: 28px;
}
.section-tag::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--hair-strong);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 18ch;
  margin-bottom: 24px;
}
.section-title em {
  font-style: italic;
  color: var(--clay);
}
.section-lede {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ============================================================
   SERVICES — 3-col editorial card grid (was 6-col chunky)
   ============================================================ */
.services { padding: var(--gap-section) 0; }
.service-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: var(--chalk);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .35s var(--ease-spring), border-color .25s var(--ease-out);
  position: relative;
}
.service:hover {
  transform: translateY(-3px);
  border-color: var(--hair-strong);
}
.service-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone-soft);
  margin-bottom: 4px;
}
.service-icon {
  width: 36px;
  height: 36px;
  color: var(--ink);
  margin-bottom: 8px;
}
.service h3 {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.service h3 em { font-style: italic; color: var(--clay); }
.service p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.service-list {
  list-style: none;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-list li {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--stone);
}

/* ============================================================
   STACK — 6 opinionated cards in a clean grid + logo strip
   ============================================================ */
/* Liquid glass — three layers + (in Chrome/Edge) actual SVG-driven
   refractive distortion via the #liquid-glass filter referenced in
   index.html. Layers: translucent tint, blur+saturate backdrop,
   inset specular highlight at top + depth shadow at bottom. The
   SVG feDisplacementMap progressive enhancement bends what's behind
   along the surface. Safari/Firefox can't use SVG inside backdrop-
   filter (Apple's own webkit limitation, ironically) so they keep
   the pure-CSS treatment. */
.reel {
  padding: var(--gap-section) 0;
  background: var(--glass-tint);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid var(--glass-highlight);
  border-bottom: 1px solid var(--glass-shadow);
  box-shadow:
    inset 0 1.5px 0 var(--glass-highlight-soft),
    inset 0 -1px 0 var(--glass-shadow);
}
.reel-track {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.reel-tile {
  /* Liquid glass — translucent tint + backdrop refraction + specular
     highlights. The card sits on the glass section bg, so backdrop-
     filter has plenty of background (chrome 3D X + canvas) to refract.
     Inset highlight at top edge + depth shadow at bottom + outer drop
     shadow give the card visible "thickness". */
  background: var(--glass-tint);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-highlight-soft);
  border-radius: 6px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow:
    inset 0 1.5px 0 var(--glass-highlight),
    inset 0 -1px 0 var(--glass-shadow),
    0 8px 32px var(--glass-shadow-deep);
  transition:
    transform .35s var(--ease-spring),
    border-color .25s var(--ease-out),
    box-shadow .35s var(--ease-out);
}
.reel-tile:hover {
  transform: translateY(-3px);
  border-color: var(--glass-highlight);
  box-shadow:
    inset 0 1.5px 0 var(--glass-highlight),
    inset 0 -1px 0 var(--glass-shadow),
    0 14px 40px var(--glass-shadow-deep);
}
.reel-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.reel-tile-num { color: var(--clay); }
.reel-tile-tag { color: var(--stone-soft); }
.reel-tile h3 {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 8px;
}
.reel-tile p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Logo strip — restrained, monochrome ink */
.stack-logos {
  max-width: var(--max-w);
  margin: 64px auto 0;
  padding: 0 var(--page-pad);
}
.stack-logos-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-soft);
  margin-bottom: 24px;
  padding-left: 2px;
}
.stack-logos-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.stack-logos-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 12px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--chalk);
  transition: transform .25s var(--ease-spring), border-color .25s var(--ease-out);
}
.stack-logos-grid li:hover {
  transform: translateY(-2px);
  border-color: var(--hair-strong);
}
.stack-logos-grid img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity .25s var(--ease-out), filter .35s var(--ease-out);
  /* Tint black-filled SVGs to warm ink (--ink #1B1A18) for the
     editorial monochrome read. Dark-mode override below flips this
     so the same black SVGs read as warm bone on the dark canvas. */
  filter: invert(7%) sepia(8%) saturate(1011%) hue-rotate(8deg) brightness(96%) contrast(91%);
}
[data-theme="dark"] .stack-logos-grid img {
  filter: invert(94%) sepia(8%) saturate(180%) hue-rotate(2deg) brightness(94%) contrast(88%);
}
.stack-logos-grid li:hover img { opacity: 1; }
.stack-logos-grid span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ============================================================
   PROCESS — 4 steps, editorial list, no dark surface
   ============================================================ */
.process { padding: var(--gap-section) 0; }
.process-list {
  list-style: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 96px 1fr 240px;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--hair);
}
.process-step:last-child { border-bottom: 1px solid var(--hair); }
.step-num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.02em;
}
.step-body h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.step-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
.step-visual {
  color: var(--ink);
  opacity: 1;
}
/* No general .step-visual svg sizing — every step now uses a window
   mock (call/figma/term/slack) with its own dimensions. A blanket
   svg { max-width } rule would scale the figma cursor (a child SVG)
   to fill the column, which was the "massive mouse" bug. */

/* ============================================================
   OUTCOMES — 2x2 quiet grid
   ============================================================ */
.outcomes {
  padding: var(--gap-section) 0;
  background: var(--glass-tint);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid var(--glass-highlight);
  border-bottom: 1px solid var(--glass-shadow);
  box-shadow:
    inset 0 1.5px 0 var(--glass-highlight-soft),
    inset 0 -1px 0 var(--glass-shadow);
}
.outcomes-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.outcome-tile {
  background: var(--glass-tint);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--glass-highlight-soft);
  border-radius: 6px;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  position: relative;
  min-height: 320px;
  box-shadow:
    inset 0 1.5px 0 var(--glass-highlight),
    inset 0 -1px 0 var(--glass-shadow),
    0 10px 36px var(--glass-shadow-deep);
  transition:
    transform .35s var(--ease-spring),
    border-color .25s var(--ease-out),
    box-shadow .35s var(--ease-out);
}
.outcome-tile:hover {
  transform: translateY(-3px);
  border-color: var(--glass-highlight);
  box-shadow:
    inset 0 1.5px 0 var(--glass-highlight),
    inset 0 -1px 0 var(--glass-shadow),
    0 16px 44px var(--glass-shadow-deep);
}
.outcome-num {
  position: absolute;
  top: 32px;
  left: 44px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 64px;
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.02em;
}
.outcome-tile h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.outcome-tile h3 em { font-style: italic; color: var(--clay); }
.outcome-tile p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.outcome-foot {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
  margin-top: 8px;
}

/* ============================================================
   WHO — editorial pull-quote cards
   ============================================================ */
.who { padding: var(--gap-section) 0; }
.who-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.who-card {
  background: var(--chalk);
  border: 1px solid var(--hair);
  border-radius: 4px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color .25s var(--ease-out), transform .35s var(--ease-spring);
}
.who-card:hover {
  border-color: var(--hair-strong);
  transform: translateY(-3px);
}
.who-quote-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 80px;
  line-height: 0.5;
  color: var(--clay);
  height: 40px;
  margin-bottom: -20px;
}
.who-card p {
  font-family: var(--f-display);
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex: 1;
}
.who-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

/* ============================================================
   MANIFESTO — single big serif statement
   ============================================================ */
.manifesto {
  padding: var(--gap-section) 0;
  background: var(--glass-tint);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid var(--glass-highlight);
  border-bottom: 1px solid var(--glass-shadow);
  box-shadow:
    inset 0 1.5px 0 var(--glass-highlight-soft),
    inset 0 -1px 0 var(--glass-shadow);
}
.manifesto-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
  text-align: center;
}
.manifesto-mark {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--clay);
}
.manifesto-mark svg { animation: slowSpin 24s linear infinite; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.manifesto p {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.manifesto p em { font-style: italic; color: var(--clay); }
.manifesto-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--chalk);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .3s var(--ease-out), transform .35s var(--ease-spring), color .3s var(--ease-out);
}
.manifesto-cta:hover {
  background: var(--clay);
  color: var(--chalk);
  transform: translateY(-2px);
}
.manifesto-cta svg { transition: transform .35s var(--ease-spring); }
.manifesto-cta:hover svg { transform: translateX(5px); }

/* ============================================================
   SECTION CTA — full-width row dropped at the end of major sections
   ============================================================ */
.section-cta {
  margin-top: clamp(48px, 6vw, 96px);
  border-top: 1px solid var(--hair);
}
.section-cta-inner {
  max-width: var(--max-w-edge);
  margin: 0 auto;
  padding: clamp(28px, 3.5vw, 44px) var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.section-cta-text {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  max-width: 56ch;
}
.section-cta-text em {
  font-style: italic;
  color: var(--clay);
}
.section-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 14px 0 14px 22px;
  position: relative;
  white-space: nowrap;
  transition: color .25s var(--ease-out);
  flex-shrink: 0;
}
.section-cta-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transition: width .45s var(--ease-out), background .25s var(--ease-out);
}
.section-cta-link:hover {
  color: var(--clay);
}
.section-cta-link:hover::before {
  width: 22px;
  background: var(--clay);
}
.section-cta-link svg { transition: transform .35s var(--ease-spring); }
.section-cta-link:hover svg { transform: translateX(6px); }

/* Inverted variant — sits inside the dark .process section. Process has
   ink background, so swap text/border colors. */
.section-cta--invert { border-top-color: rgba(var(--chalk-rgb), 0.14); }
.section-cta--invert .section-cta-text { color: var(--chalk); }
.section-cta--invert .section-cta-text em { color: var(--clay-soft); }
.section-cta--invert .section-cta-link { color: var(--chalk); }
.section-cta--invert .section-cta-link::before { background: var(--chalk); }
.section-cta--invert .section-cta-link:hover { color: var(--clay-soft); }
.section-cta--invert .section-cta-link:hover::before { background: var(--clay-soft); }

/* ============================================================
   CONTACT — two-channel + form
   ============================================================ */
.contact { padding: var(--gap-section) 0; }
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left .section-tag { margin-bottom: 24px; }
.contact-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-title em { font-style: italic; color: var(--clay); }
.contact-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 40px;
  max-width: 44ch;
}
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hair);
}
.channel {
  display: grid;
  grid-template-columns: 100px 1fr 24px;
  gap: 20px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--hair);
  align-items: center;
  color: var(--ink);
  transition: padding .35s var(--ease-spring);
}
.channel:hover { padding-left: 12px; }
.channel-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
}
.channel-value {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.channel svg { color: var(--clay); transition: transform .35s var(--ease-spring); }
.channel:hover svg { transform: translateX(4px); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
}
.field small {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--stone-soft);
  margin-left: 4px;
}
.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair-strong);
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--ink);
  padding: 12px 0;
  outline: none;
  transition: border-color .25s var(--ease-out);
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--clay); }
.field input::placeholder,
.field textarea::placeholder { color: var(--stone-soft); }
.btn-submit { align-self: flex-start; margin-top: 8px; }
.form-status {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
  min-height: 18px;
}
.form-status.error { color: var(--clay-deep); }

/* ============================================================
   BOOK PAGE — dedicated /book.html with the Calendly inline
   widget. Editorial header (mono eyebrow + Instrument-Serif
   title + body lede), then a hairline-framed iframe, then a
   three-column meta row (email / response time / studio).
   Iframe theme params are kept in sync with [data-theme] by
   script.js#calendlyEmbed — light = chalk/ink/clay,
   dark = warm-near-black/bone/warm-clay.
   ============================================================ */
.book-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h, 72px) + 80px) var(--page-pad) 120px;
  display: grid;
  gap: 56px;
}
.book-head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.book-head .section-tag { margin: 0; }
.book-title {
  font-family: var(--f-display);
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}
.book-title em { font-style: italic; color: var(--clay); }
.book-lede {
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
.booking-frame {
  position: relative;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  background: var(--chalk);
  overflow: hidden;
  transition: border-color .35s var(--ease-out);
}
.booking-frame:hover { border-color: rgba(var(--ink-rgb), 0.32); }
.calendly-iframe {
  display: block;
  width: 100%;
  min-width: 320px;
  height: 820px;
  border: 0;
  background: var(--chalk);
  color-scheme: light;
}
[data-theme="dark"] .calendly-iframe { color-scheme: dark; background: var(--chalk); }
.booking-fallback {
  display: inline-block;
  padding: 16px 20px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  border-bottom: 1px solid var(--clay);
}
.booking-fallback:hover { color: var(--clay-deep); border-bottom-color: var(--clay-deep); }
.book-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  margin: 0;
}
.book-meta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 0 0;
}
.book-meta-col + .book-meta-col { padding-left: 32px; border-left: 1px solid var(--hair); }
.book-meta-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
}
.book-meta-value {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
a.book-meta-value { transition: color .25s var(--ease-out); }
a.book-meta-value:hover { color: var(--clay); }

/* ============================================================
   NEWSLETTER — slim dispatch strip on paper, inline form
   ============================================================ */
.newsletter {
  background: var(--paper);
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--hair);
}
.newsletter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: end;
}
.newsletter-copy .section-tag { margin-bottom: 24px; }
.newsletter-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 18px;
}
.newsletter-title em { font-style: italic; color: var(--clay); }
.newsletter-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0;
}
.newsletter-form {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
}
.newsletter-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}
.newsletter-field-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
}
.newsletter-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hair-strong);
  font-family: var(--f-body);
  font-size: 17px;
  color: var(--ink);
  padding: 12px 0;
  outline: none;
  transition: border-color .25s var(--ease-out);
}
.newsletter-field input:focus { border-bottom-color: var(--clay); }
.newsletter-field input::placeholder { color: var(--stone-soft); }
.newsletter-submit { white-space: nowrap; }

/* ============================================================
   DISPATCH STRIP — slim newsletter ribbon between marquee + services
   ============================================================ */
.dispatch-strip {
  background: var(--chalk);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 28px 0;
}
.dispatch-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.dispatch-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.dispatch-strip-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.dispatch-strip-title em { font-style: italic; color: var(--clay); }
.dispatch-strip-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
  margin: 0;
}
.dispatch-strip-form {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.dispatch-strip-form input[type="email"] {
  width: clamp(220px, 28vw, 320px);
  background: var(--chalk-deep);
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--ink);
  padding: 11px 18px;
  outline: none;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.dispatch-strip-form input[type="email"]:focus {
  border-color: var(--clay);
  background: var(--chalk);
}
.dispatch-strip-form input[type="email"]::placeholder { color: var(--stone-soft); }
.dispatch-strip-submit {
  padding: 11px 22px;
  font-size: 14px;
  white-space: nowrap;
}

/* ============================================================
   X-SEND ICON — brand mark replaces the generic arrow on newsletter
   CTAs. Two faded wake trails converge into a mini squircle-X (the
   logo). On hover the trails brighten and extend, the X bumps right,
   the cross strokes redraw — echoing the hero's crossing paths.
   ============================================================ */
.x-send {
  overflow: visible;
  /* override the generic .btn-primary svg translate so we can compose
     our own choreography */
  transition: transform .45s var(--ease-spring);
  margin-left: 2px;
}
.x-send .x-send-trail {
  opacity: 0.4;
  stroke-dasharray: 18;
  stroke-dashoffset: 10;          /* hidden by ~55% by default */
  transition:
    opacity .35s var(--ease-out),
    stroke-dashoffset .55s var(--ease-out);
}
.x-send .x-send-mark {
  transition: transform .45s var(--ease-spring);
  transform-origin: center;
  transform-box: fill-box;
}
.x-send .x-send-frame {
  transition: opacity .35s var(--ease-out);
  opacity: 0.55;
}
.x-send .x-send-cross {
  transition: transform .45s var(--ease-spring);
  transform-origin: center;
  transform-box: fill-box;
}

/* Hover state scoped to the newsletter buttons only — we don't want
   this choreography on every .btn-primary svg site-wide.
   Pieces on hover:
   - whole icon translates +4px (the brand mark "sends")
   - wake trails brighten and fully draw, signaling motion-from-left
   - squircle frame brightens to full ink
   - inner X cross briefly tilts to a "+", echoing the hero's crossing
     paths intersecting */
.dispatch-strip-submit:hover .x-send,
.newsletter-submit:hover .x-send,
.dispatch-strip-submit:focus-visible .x-send,
.newsletter-submit:focus-visible .x-send {
  transform: translateX(4px);
}
.dispatch-strip-submit:hover .x-send .x-send-trail,
.newsletter-submit:hover .x-send .x-send-trail,
.dispatch-strip-submit:focus-visible .x-send .x-send-trail,
.newsletter-submit:focus-visible .x-send .x-send-trail {
  opacity: 1;
  stroke-dashoffset: 0;
}
.dispatch-strip-submit:hover .x-send .x-send-frame,
.newsletter-submit:hover .x-send .x-send-frame,
.dispatch-strip-submit:focus-visible .x-send .x-send-frame,
.newsletter-submit:focus-visible .x-send .x-send-frame {
  opacity: 1;
}
.dispatch-strip-submit:hover .x-send .x-send-cross,
.newsletter-submit:hover .x-send .x-send-cross,
.dispatch-strip-submit:focus-visible .x-send .x-send-cross,
.newsletter-submit:focus-visible .x-send .x-send-cross {
  transform: rotate(45deg) scale(0.92);
}

/* Respect reduced motion: keep the brighten, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .x-send,
  .x-send .x-send-trail,
  .x-send .x-send-mark,
  .x-send .x-send-cross {
    transition: opacity .2s ease, stroke-dashoffset .2s ease;
  }
  .dispatch-strip-submit:hover .x-send,
  .newsletter-submit:hover .x-send,
  .dispatch-strip-submit:hover .x-send .x-send-cross,
  .newsletter-submit:hover .x-send .x-send-cross,
  .dispatch-strip-submit:focus-visible .x-send,
  .newsletter-submit:focus-visible .x-send,
  .dispatch-strip-submit:focus-visible .x-send .x-send-cross,
  .newsletter-submit:focus-visible .x-send .x-send-cross {
    transform: none;
  }
}

/* ============================================================
   FOOTER — light, hairline-divided
   ============================================================ */
.footer {
  background: var(--glass-tint);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-top: 1px solid var(--glass-highlight);
  box-shadow: inset 0 1.5px 0 var(--glass-highlight-soft);
  padding: 80px 0 40px;
}

/* Real liquid glass progressive enhancement — layers the SVG
   <feDisplacementMap> filter on top of the blur+saturate so the bg
   refracts what's behind through a turbulence-driven warp. Modern
   Safari (and Chrome/Edge) accept url() inside backdrop-filter and
   render the displacement; older browsers fall back to the rules
   above (pure CSS specular + blur). */
@supports (backdrop-filter: url("#x")) {
  .reel,
  .outcomes,
  .marquee,
  .manifesto,
  .footer {
    backdrop-filter: blur(20px) saturate(190%) url(#liquid-glass);
  }
  .reel-tile,
  .outcome-tile {
    backdrop-filter: blur(18px) saturate(200%) url(#liquid-glass);
  }
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.footer-left .logo {
  margin-bottom: 24px;
}
.footer-note {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.55;
}
.footer-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-head {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-soft);
  margin-bottom: 8px;
}
.footer-col a {
  font-size: 15px;
  color: var(--ink);
  transition: color .2s var(--ease-out);
}
.footer-col a:hover { color: var(--clay); }

/* ============================================================
   SCROLL REVEAL
   Legacy block-fade kept for any element still tagged .reveal —
   the new flow system below is what handles section-level reveals.
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   FLOW REVEAL — Framer-style cascade (CSS-only, JS just toggles
   .flow-in on the trigger parent and sets the --i index on each
   child for staggered transition-delay).
   ============================================================ */

/* Word-mask containers — section-titles get split into these at runtime */
.flow-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.06em 0.04em 0.18em;
  margin: -0.06em -0.04em -0.18em;
  line-height: inherit;
}
em .flow-word { padding-right: 0.18em; margin-right: -0.18em; }
.flow-word-inner {
  display: inline-block;
  will-change: transform, filter, opacity;
  transform: translateY(108%);
  opacity: 0;
  filter: blur(10px);
  transition:
    transform 1.05s var(--ease-out) calc(var(--i, 0) * 55ms),
    opacity 1.05s var(--ease-out) calc(var(--i, 0) * 55ms),
    filter 1.05s var(--ease-out) calc(var(--i, 0) * 55ms);
}
/* Manifesto cascade is snappier — the line is short and load-bearing,
   so a long word-mask reveal makes it feel like the text "didn't make
   it" if the viewer scrolls past mid-animation. */
.manifesto-inner .flow-word-inner {
  filter: blur(6px);
  transition:
    transform .6s var(--ease-out) calc(var(--i, 0) * 28ms),
    opacity .6s var(--ease-out) calc(var(--i, 0) * 28ms),
    filter .6s var(--ease-out) calc(var(--i, 0) * 28ms);
}
.flow-in .flow-word-inner,
.flow-trigger.flow-in .flow-word-inner {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

/* Block-level lift+blur reveal — applied to section tags, cards,
   list items, paragraphs. Cascade index via inline --i. */
.flow-up {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition:
    opacity .85s var(--ease-out) calc(var(--i, 0) * 70ms),
    transform .85s var(--ease-out) calc(var(--i, 0) * 70ms),
    filter .85s var(--ease-out) calc(var(--i, 0) * 70ms);
}
.flow-trigger.flow-in .flow-up,
.flow-up.flow-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Subtler variants for dense grids where 28px would feel like a slam */
.flow-up--soft {
  transform: translateY(18px);
  filter: blur(6px);
}

/* Card-style reveals (services, outcomes, who) get a gentle scale-in */
.flow-up--card {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity .95s var(--ease-out) calc(var(--i, 0) * 80ms),
    transform .95s var(--ease-spring) calc(var(--i, 0) * 80ms),
    filter .95s var(--ease-out) calc(var(--i, 0) * 80ms);
}
.flow-trigger.flow-in .flow-up--card {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Hero scroll-out parallax — hero copy slides up + dims as you leave */
.hero-content {
  will-change: transform, opacity;
  transition: opacity .2s linear;
}

@media (prefers-reduced-motion: reduce) {
  .flow-up, .flow-up--card, .flow-word-inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .reel-track { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-logos-grid { grid-template-columns: repeat(4, 1fr); }
  /* Tablet: keep step visuals visible (smaller, beside the body). */
  .process-step { grid-template-columns: 64px 1fr 200px; }
  .step-visual { width: 200px; }
  .contact-inner { grid-template-columns: 1fr; gap: 64px; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero { padding: calc(var(--nav-h) + 40px) 20px 48px; min-height: 100vh; min-height: 100dvh; }
  .hero-title { font-size: clamp(42px, min(13.5vw, 10vh), 84px); max-width: 100%; letter-spacing: -0.028em; }
  .hero-em { font-size: 1.04em; }
  .hero-sub { font-size: 17px; }
  .hero-ctas { gap: 14px; }
  .btn-primary, .btn-ghost { flex: 1 1 auto; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 18px 16px; padding-top: 18px; max-width: 100%; }
  .stat { flex: 1 0 calc(50% - 8px); padding-right: 0; }

  .marquee-track span { font-size: 18px; }
  .marquee-track .sym { font-size: 22px; }

  .section-head { margin-bottom: 56px; padding: 0 20px; }
  .section-title { font-size: clamp(34px, 9vw, 56px); }

  .services, .reel, .process, .outcomes, .who, .manifesto, .contact, .newsletter { padding: 80px 0; }

  .service-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
  .service { padding: 28px 24px; }
  .service h3 { font-size: 28px; }

  .reel-track { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
  .reel-tile h3 { font-size: 30px; }

  .stack-logos { margin-top: 48px; padding: 0 20px; }
  .stack-logos-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stack-logos-grid li { padding: 16px 8px; gap: 8px; }
  .stack-logos-grid img { width: 22px; height: 22px; }
  .stack-logos-grid span { font-size: 9px; }

  .process-list { padding: 0 20px; }
  /* Mobile: step-visual stacks below body for steps that have always-on demos */
  .process-step { grid-template-columns: 48px 1fr; gap: 20px; padding: 32px 0; }
  .process-step .step-visual { display: none; }
  .process-step.process-step--has-demo { grid-template-areas: "num body" "viz viz"; grid-template-columns: 48px 1fr; }
  .process-step--has-demo .step-num { grid-area: num; }
  .process-step--has-demo .step-body { grid-area: body; }
  .process-step--has-demo .step-visual { grid-area: viz; display: block; width: 100%; margin-top: 20px; }
  .step-num { font-size: 40px; }
  .step-body h3 { font-size: 26px; }

  .outcomes-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
  .outcome-tile { padding: 36px 28px; min-height: auto; }
  .outcome-num { position: static; margin-bottom: 16px; }

  .who-grid { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; }
  .who-card p { font-size: 19px; }

  .manifesto p { font-size: 30px; }
  .manifesto-cta { margin-top: 36px; padding: 14px 24px; font-size: 14.5px; }

  .section-cta { margin-top: 56px; }
  .section-cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 20px; }
  .section-cta-text { font-size: 22px; }
  .section-cta-link { padding: 10px 0 10px 18px; }

  .contact-inner { padding: 0 20px; gap: 48px; }
  .channel { grid-template-columns: 80px 1fr 20px; gap: 16px; padding: 20px 4px; }
  .channel-value { font-size: 18px; }
  .book-page { padding: calc(var(--nav-h, 64px) + 48px) 20px 80px; gap: 40px; }
  .book-title { font-size: clamp(38px, 11vw, 56px); }
  .book-lede { font-size: 17px; }
  .calendly-iframe { height: 1080px; }
  .book-meta { grid-template-columns: 1fr; gap: 0; }
  .book-meta-col { padding: 20px 0 0; }
  .book-meta-col + .book-meta-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }

  .newsletter-inner { padding: 0 20px; gap: 36px; }
  .newsletter-title { font-size: clamp(30px, 8vw, 44px); }
  .newsletter-form { flex-direction: column; align-items: stretch; gap: 24px; }
  .newsletter-submit { width: 100%; justify-content: center; }

  .dispatch-strip { padding: 24px 0; }
  .dispatch-strip-inner { grid-template-columns: 1fr; gap: 16px; padding: 0 20px; align-items: stretch; }
  .dispatch-strip-form { width: 100%; }
  .dispatch-strip-form input[type="email"] { flex: 1 1 auto; width: auto; min-width: 0; }
  .dispatch-strip-submit { padding: 12px 20px; }

  .footer { padding: 60px 0 32px; }
  .footer-inner { padding: 0 20px; }
  .footer-right { grid-template-columns: 1fr; gap: 32px; }
}

/* Small phone (iPhone SE / mini, foldable closed) — tighten everything */
@media (max-width: 380px) {
  .hero { padding: calc(var(--nav-h) + 28px) 18px 40px; }
  .hero-title { font-size: clamp(38px, min(12.5vw, 9vh), 56px); }
  .hero-sub { font-size: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.16em; }
  .hero-ctas { gap: 10px; }
  .btn-primary, .btn-ghost { font-size: 15px; padding: 13px 20px; }
  .hero-stats { gap: 14px 10px; padding-top: 14px; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 9.5px; letter-spacing: 0.16em; }
}

/* Short viewport (landscape phone, half-window): hero shrinks to fit so
   the primary CTA stays in viewport. Stats hidden on very short windows
   since they're a "cherry on top" element, not load-bearing. */
@media (max-height: 640px) and (max-width: 1024px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 32px; }
  .hero-title { font-size: clamp(36px, min(8.5vw, 11vh), 72px); }
}
@media (max-height: 540px) {
  .hero-stats { display: none; }
}

/* Large desktop — let the type breathe wider.
   Multiply by --hero-fit so the JS scale-to-fit can still shrink the
   title on short viewports (e.g. 1920×950 laptop screens). */
@media (min-width: 1441px) {
  .hero-title { font-size: calc(clamp(112px, 8.6vw, 152px) * var(--hero-fit, 1)); max-width: 16ch; }
  .hero-sub { font-size: calc(22px * var(--hero-fit, 1)); max-width: 60ch; }
}

/* Ultrawide / 4K — cap content, X gets more room to breathe in margin */
@media (min-width: 1921px) {
  .hero-content { max-width: 1120px; }
  .hero-title { font-size: calc(clamp(132px, 7.5vw, 176px) * var(--hero-fit, 1)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .has-3d-x .site-3d-canvas { opacity: 0.6; }
}

/* ============================================================
   WORK — selected client builds (editorial hairline rows)
   ============================================================ */
.work { padding: var(--gap-section) 0 0; }

.work-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  list-style: none;
}
.work-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--hair);
}
.work-list .work-row:last-child { border-bottom: 1px solid var(--hair); }
.work-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--stone-soft);
}
.work-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
}
.work-desc {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 56ch;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}
.work-link:hover { border-bottom-color: var(--clay); }
.work-link svg { transition: transform 0.2s ease; }
.work-link:hover svg { transform: translate(2px, -2px); }

@media (max-width: 720px) {
  .work-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .work-num { display: none; }
}
