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

:root {
  /* Palette — v4 SIGNAL / THRESHOLD.
     Light = "day ops": stark cool white + graphite ink + print-weight volt.
     RGB channel vars feed both the named tokens and any rgba(..., alpha)
     overlay so theme overrides flip everything in one place. */
  --chalk-rgb: 255, 255, 255;
  --ink-rgb: 11, 14, 18;
  --paper-rgb: 238, 241, 244;
  --signal-rgb: 69, 122, 0;
  --moss-rgb: 62, 122, 82;

  --chalk: rgb(var(--chalk-rgb));   /* primary canvas, stark cool white */
  --chalk-deep: #F3F5F7;            /* nav/scroll surface tint */
  --paper: rgb(var(--paper-rgb));   /* alt section background, cool grey */
  --ink: rgb(var(--ink-rgb));       /* primary type, cool graphite */
  --ink-soft: #262B33;              /* slightly softened ink for body */
  --stone: #4E5560;                 /* secondary text */
  --stone-soft: #8A93A0;            /* tertiary text, mono labels */
  --hair: rgba(var(--ink-rgb), 0.10);
  --hair-strong: rgba(var(--ink-rgb), 0.22);

  --signal: rgb(var(--signal-rgb)); /* the ONE accent — volt, print weight */
  --signal-deep: #365F00;           /* hover */
  --signal-soft: #6FA81E;           /* lower-contrast volt */

  --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: "Space Grotesk", "Inter Tight", system-ui, sans-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 — "SIGNAL FIELD" (the default world)
   Cool blue-shifted near-black canvas, cool bone-white type, volt
   accent. The observatory floor at night: one wall of live signal.
   Inverted sections (.process, dark reel-tiles, footer) flip with
   the palette in either theme, preserving the intentional
   contrast inversion.
   ============================================================ */
[data-theme="dark"] {
  --chalk-rgb: 7, 9, 12;         /* cool near-black, blue-shifted */
  --ink-rgb: 234, 241, 246;      /* cool paper-white */
  --paper-rgb: 13, 19, 26;       /* slightly raised dark surface */
  --signal-rgb: 200, 255, 61;    /* volt — the live accent */
  --moss-rgb: 87, 199, 135;      /* brighter moss */

  --chalk-deep: #0A0E13;         /* nav scrolled surface in dark */
  --ink-soft: #C6D2DC;           /* softened body */
  --stone: #9FAFBD;              /* secondary text */
  --stone-soft: #6C7E8F;         /* tertiary text, mono labels */

  --signal-deep: #A8E01F;        /* hover */
  --signal-soft: #DBFF7A;        /* lower-contrast volt */

  /* 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(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--ink); color: var(--chalk); }

/* ============================================================
   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(--signal);
  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(--signal) !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(--signal-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(--signal); 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; }

/* ============================================================
   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(--signal);
  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(--signal);
  opacity: 0.6;
}
.demo-caption-num {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}
.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(--signal-soft); }
.demo-caption--invert .demo-caption-desc { color: var(--chalk); }
.demo-caption--invert::after { background: var(--signal-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(--signal);
  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(--signal); 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(--signal);
  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(--signal);
  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(--signal); 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(--signal-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(--signal-rgb), 0.10); border-color: var(--signal-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(--signal);
}

.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(--signal-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(--signal); 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(--signal); color: var(--chalk); }
.slack-mock-text { color: var(--ink); line-height: 1.3; }
.slack-mock-msg--fix .slack-mock-text { color: var(--signal); }
.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(--signal);
  color: var(--chalk);
  padding: 15px 26px;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.btn-primary:hover { background: var(--signal-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); }

/* ============================================================
   MARQUEE — old → new editorial ticker
   ============================================================ */
.marquee {
  background: var(--paper);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
  /* rightward: the old-to-new pairs travel toward the new world */
  animation: marquee 60s linear infinite reverse;
  padding-left: 14px;
}
.marquee-track span {
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 400;
}
/* item pattern is [old][sym][new][dot] — strike the old state */
.marquee-track span:nth-child(4n + 1) {
  color: var(--stone);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.marquee-track .sym {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 13.5px;
  color: var(--signal);
  padding: 0 4px;
}
.marquee-track .dot {
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: rgba(var(--ink-rgb), 0.3);
  display: inline-block;
  margin: 0 18px;
  align-self: center;
  position: relative;
  top: -3px;
  transform: rotate(45deg);
}
@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(--signal);
}
.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(--signal); }
.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(--signal); }
.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(--signal);
  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(--signal);
  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(--signal); }
.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(--signal);
  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(--signal);
}
.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(--signal); }
.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(--signal);
  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(--signal);
}
.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(--signal);
}
.section-cta-link:hover::before {
  width: 22px;
  background: var(--signal);
}
.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(--signal-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(--signal-soft); }
.section-cta--invert .section-cta-link:hover::before { background: var(--signal-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(--signal); }
.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(--signal); 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(--signal); }
.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(--signal-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(--signal); }
.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(--signal);
  border-bottom: 1px solid var(--signal);
}
.booking-fallback:hover { color: var(--signal-deep); border-bottom-color: var(--signal-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(--signal); }

/* ============================================================
   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(--signal); }
.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(--signal); }
.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(--signal); }
.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(--signal);
  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(--signal); }

/* ============================================================
   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;
  }
}

/* ============================================================
   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(--signal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  white-space: nowrap;
}
.work-link:hover { border-bottom-color: var(--signal); }
.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; }
}

/* ============================================================
   v4 SIGNAL — display-face discipline
   Space Grotesk carries weight and tracking; the accent is color,
   never a synthetic italic (the face has no italic axis).
   ============================================================ */
.hero-title, .section-title, .contact-title, .book-title, .newsletter-title,
.dispatch-strip-title, .manifesto p, .outcome-tile h3, .service h3,
.step-body h3, .section-cta-text, .work-name, .mobile-menu a, .stat-num,
.channel-value, .events-title, .event-title {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo { font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.hero-title em, .section-title em, .contact-title em, .book-title em,
.newsletter-title em, .dispatch-strip-title em, .manifesto p em,
.outcome-tile h3 em, .service h3 em, .who-card p em, .section-cta-text em,
.events-title em, .event-title em, .logo-word-accent {
  font-style: normal;
  color: var(--signal);
}
.who-card p { font-weight: 500; letter-spacing: -0.015em; }

/* ============================================================
   v4 XO-HERO — THE THRESHOLD
   Two mirrored worlds, one draggable volt seam. The hero is
   theme-INDEPENDENT by design: you always cross from the printed
   old world into the dark signal world; the theme toggle governs
   the site below the fold. Colors here are deliberate literals.
   ============================================================ */
:root {
  --xo-bg: #07090C;
  --xo-bg-2: #0A0E13;
  --xo-line: #1A222C;
  --xo-line-2: #232E3A;
  --xo-ink: #EAF1F6;
  --xo-ink-2: #9FAFBD;
  --xo-ink-3: #6C7E8F;
  --xo-volt: #C8FF3D;
  --xo-volt-ink: #111A02;
  --xo-paper: #E7E9E8;
  --xo-pline: #C3C7C4;
  --xo-pink: #15181B;
  --xo-pink-2: #4A5054;
  --xo-pink-3: #8B918E;
  --xo-seam: 50%;
}
/* the site nav appears once you scroll past the threshold */
.has-xo-hero .nav:not(.scrolled) { opacity: 0; pointer-events: none; }
.has-xo-hero .nav { transition: opacity .35s var(--ease-out), background .35s var(--ease-out), border-color .35s var(--ease-out); }

.xo-hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; cursor: ew-resize; z-index: 1; }
.xo-layer { position: absolute; inset: 0; overflow: hidden; }
.xo-layer.xo-old { background: var(--xo-paper); color: var(--xo-pink); z-index: 1; }
.xo-layer.xo-old::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(21,24,27,.13) 1px, transparent 1.4px);
  background-size: 7px 7px;
}
.xo-layer.xo-old::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21,24,27,.06) 0%, transparent 18%, transparent 82%, rgba(21,24,27,.08) 100%);
}
.xo-layer.xo-new {
  background: var(--xo-bg); color: var(--xo-ink); z-index: 2;
  clip-path: inset(0 0 0 var(--xo-seam));
  -webkit-clip-path: inset(0 0 0 var(--xo-seam));
}
.xo-wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

.xo-comp { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.xo-lnav {
  width: 100%; max-width: 1280px; flex: 0 0 auto; position: relative;
  height: calc(72px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em;
}
.xo-lnav .xo-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: inherit; }
.xo-lnav .xo-brand svg { width: 22px; height: 22px; }
.xo-old .xo-brand svg line { stroke: var(--xo-pink); stroke-width: 2.6; }
.xo-new .xo-brand svg line { stroke: var(--xo-ink); stroke-width: 2.6; }
.xo-new .xo-brand svg line.hot { stroke: var(--xo-volt); }
.xo-lnav .xo-est { position: absolute; left: 50%; transform: translateX(-50%); text-transform: uppercase; }
.xo-old .xo-est { color: var(--xo-pink-3); }
.xo-new .xo-est { color: var(--xo-ink-3); }
.xo-lnav-right { display: flex; align-items: center; gap: 22px; }
.xo-lnav-links { display: flex; gap: 22px; }
.xo-lnav-links a, .xo-lnav-links span { color: inherit; }
.xo-old .xo-lnav-links { color: var(--xo-pink-2); }
.xo-new .xo-lnav-links { color: var(--xo-ink-2); }
.xo-new .xo-lnav-links a:hover { color: var(--xo-ink); }
.xo-lnav .xo-navcta { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; min-width: 124px; border: 1px solid; letter-spacing: .06em; color: inherit; }
.xo-old .xo-navcta { border-color: var(--xo-pink-3); color: var(--xo-pink-2); border-style: dashed; }
.xo-new .xo-navcta { border-color: var(--xo-line-2); color: var(--xo-ink); }
.xo-new .xo-navcta:hover { border-color: var(--xo-volt); color: var(--xo-volt); }
/* hamburger for mobile (real one lives in the new layer) */
.xo-burger { display: none; width: 40px; height: 40px; border: 1px solid; background: none; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0; }
.xo-burger i { display: block; width: 16px; height: 2px; background: currentColor; }
.xo-old .xo-burger { border-color: var(--xo-pline); color: var(--xo-pink-2); border-style: dashed; }
.xo-new .xo-burger { border-color: var(--xo-line-2); color: var(--xo-ink); }

.xo-stage { flex: 1; width: 100%; max-width: 1280px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.xo-chips {
  display: flex; width: 100%; justify-content: space-between; gap: 16px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 44px;
}
.xo-chip { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 13px; height: 36px; border: 1px solid; min-width: 300px; }
.xo-chip .xo-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.xo-old .xo-chip { border-color: var(--xo-pline); color: var(--xo-pink-2); border-style: dashed; background: rgba(255,255,255,.35); }
.xo-old .xo-chip .xo-dot { background: var(--xo-pink-3); }
.xo-new .xo-chip { border-color: var(--xo-line-2); color: var(--xo-ink-2); background: rgba(7,9,12,.35); }
.xo-new .xo-chip .xo-dot { background: var(--xo-volt); box-shadow: 0 0 9px var(--xo-volt); animation: pulse 2.4s ease-in-out infinite; }

.xo-title {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.03em; line-height: .96;
  font-size: clamp(40px, 7.6vw, 104px); text-wrap: balance; margin: 0;
}
.xo-title .xo-word { display: block; font-size: clamp(54px, 10.4vw, 146px); letter-spacing: -0.02em; line-height: 1.02; }
.xo-old .xo-title { color: var(--xo-pink); }
.xo-old .xo-title .xo-word { color: transparent; -webkit-text-stroke: 2px var(--xo-pink-2); }
.xo-new .xo-title { color: var(--xo-ink); }
.xo-new .xo-title .xo-word { color: var(--xo-volt); text-shadow: 0 0 34px rgba(200,255,61,.28); }

.xo-sub { margin-top: 50px; max-width: 62ch; font-family: var(--f-body); font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; }
.xo-old .xo-sub { color: var(--xo-pink-2); }
.xo-new .xo-sub { color: var(--xo-ink-2); }
.xo-new .xo-sub strong { color: var(--xo-ink); font-weight: 500; }
.xo-old .xo-sub strong { color: var(--xo-pink); font-weight: 500; }

.xo-ctas { display: flex; gap: 14px; margin-top: 40px; justify-content: center; flex-wrap: wrap; }
.xo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-size: 13.5px; font-weight: 700; letter-spacing: .03em;
  padding: 0 26px; height: 50px; min-width: 210px; border-radius: 2px; color: inherit;
}
.xo-old .xo-btn-a { border: 1px dashed var(--xo-pink-2); color: var(--xo-pink-2); background: rgba(255,255,255,.4); text-decoration: line-through; text-decoration-thickness: 1px; }
.xo-old .xo-btn-b { border: 1px dashed var(--xo-pline); color: var(--xo-pink-3); }
.xo-new .xo-btn-a { background: var(--xo-volt); color: var(--xo-volt-ink); border: 1px solid var(--xo-volt); }
.xo-new .xo-btn-a:hover { background: #DBFF7A; border-color: #DBFF7A; transform: translateY(-1px); }
.xo-new .xo-btn-b { border: 1px solid var(--xo-line-2); color: var(--xo-ink); }
.xo-new .xo-btn-b:hover { border-color: var(--xo-ink-2); }

.xo-foot {
  flex: 0 0 auto; width: 100%; max-width: 1280px; padding: 18px 0 96px;
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.xo-foot > span { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; }
.xo-old .xo-foot { color: var(--xo-pink-3); }
.xo-new .xo-foot { color: var(--xo-ink-3); }
.xo-new .xo-foot .hot { color: var(--xo-volt); }

/* the seam */
.xo-seam { position: absolute; top: 0; bottom: 0; left: var(--xo-seam); z-index: 10; width: 0; }
/* invisible full-height grab strip: a fat touch target along the line.
   touch-action:none keeps the browser from stealing the gesture for
   page scroll mid-drag (the page still scrolls from everywhere else). */
.xo-seam-grab {
  position: absolute; top: 0; bottom: 0; left: -22px; width: 44px;
  touch-action: none; cursor: ew-resize;
}
.xo-seam-line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--xo-volt); box-shadow: 0 0 18px rgba(200,255,61,.55), 0 0 2px var(--xo-volt); pointer-events: none; }
.xo-handle {
  position: absolute; top: var(--xo-handle-top, 50%); left: 0; transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--xo-bg); border: 2px solid var(--xo-volt); color: var(--xo-volt);
  cursor: ew-resize; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(200,255,61,.35); padding: 0;
  touch-action: none;
}
.xo-handle::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; }
/* flanking cue arrows: each speaks its world's language; they ride the
   handle's measured top and never intercept the drag */
.xo-arrow {
  position: absolute; top: var(--xo-handle-top, 50%); transform: translate(-50%,-50%);
  pointer-events: none; display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .4s ease;
}
.xo-arrow-old {
  left: -52px; width: 24px; height: 24px; background: #C0C0C0;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #FFFFFF, inset -2px -2px 0 #808080, inset 2px 2px 0 #DFDFDF;
}
.xo-arrow-old svg { width: 10px; height: 10px; }
.xo-arrow-new { left: 52px; width: 24px; height: 24px; color: var(--xo-volt); }
.xo-arrow-new svg { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(200,255,61,.6)); }
/* idle: a light alternating pulse outward, inviting the drag */
.xo-idle .xo-arrow-old { animation: xo-nudge-l 2.2s ease-in-out infinite; }
.xo-idle .xo-arrow-new { animation: xo-nudge-r 2.2s ease-in-out infinite; }
@keyframes xo-nudge-l {
  0%, 100% { transform: translate(-50%,-50%); opacity: 0; }
  50% { transform: translate(calc(-50% - 5px),-50%); opacity: 1; }
}
@keyframes xo-nudge-r {
  0%, 100% { transform: translate(-50%,-50%); opacity: 0; }
  50% { transform: translate(calc(-50% + 5px),-50%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .xo-idle .xo-arrow-old, .xo-idle .xo-arrow-new { animation: none; }
}
.xo-handle svg { width: 18px; height: 18px; }
.xo-handle svg line { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.xo-handle:focus-visible { outline: 2px solid var(--xo-volt); outline-offset: 4px; }
.xo-tip {
  position: absolute; bottom: 118px; left: 0; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--xo-volt); text-transform: uppercase; white-space: nowrap;
  background: rgba(7,9,12,.82); border: 1px solid rgba(200,255,61,.4); padding: 7px 12px;
}

/* stat strip riding the bottom of the threshold — the new world's ground */
.xo-stats {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  border-top: 1px solid var(--xo-line);
  background: rgba(7,9,12,.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.xo-stat-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.xo-stat { padding: 18px 28px; border-left: 1px solid var(--xo-line); display: flex; flex-direction: column; gap: 2px; color: var(--xo-ink); }
.xo-stat:first-child { border-left: none; }
.xo-stat b { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.xo-stat b i { font-style: normal; color: var(--xo-volt); }
.xo-stat span { font-family: var(--f-mono); font-size: 10.5px; color: var(--xo-ink-3); text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 900px) {
  .xo-lnav-links { display: none; }
}
@media (max-width: 720px) {
  .xo-lnav .xo-est { display: none; }
  .xo-lnav .xo-navcta { display: none; }
  .xo-burger { display: flex; }
  #xo-clock { display: none; }
  .xo-chips { flex-direction: column; align-items: center; gap: 9px; margin-bottom: 30px; }
  .xo-hero { min-height: 560px; }
  .xo-sub { font-size: 16px; }
  .xo-tip { display: none; }
  .xo-foot { padding-bottom: 76px; }
  .xo-stats { background: rgba(7,9,12,.94); backdrop-filter: none; -webkit-backdrop-filter: none;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  /* one slim row: grounds the hero without blocking it */
  .xo-stat-grid { grid-template-columns: repeat(4,1fr); }
  .xo-stat { padding: 8px 4px 9px; gap: 1px; align-items: center; text-align: center; }
  .xo-stat b { font-size: 15px; }
  .xo-stat span { font-size: 7px; letter-spacing: .05em; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .xo-new .xo-chip .xo-dot { animation: none; }
}

/* ============================================================
   v4.1 OLD WORLD = WINDOWS 9x DESKTOP
   The dead side of the threshold is a 1997 operating system:
   teal desktop, beveled grey chrome, tooltip chips, a hung fax
   dialog. Mirror GEOMETRY is untouched (boxes keep size and
   position; the h1/sub keep their fonts so the seam still
   slices mid-glyph). Hard offset shadows and bevels are the
   period idiom and intentionally break the new world's
   hairline rule inside this layer only.
   ============================================================ */
.xo-layer.xo-old { background: #008080; }
.xo-old::before { /* 2px checker dither, the teal desktop texture */
  background-image:
    linear-gradient(45deg, rgba(0,0,0,.10) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.10) 75%),
    linear-gradient(45deg, rgba(0,0,0,.10) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.10) 75%);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
  opacity: .45;
}
.xo-old::after { background: none; }

/* window-chrome nav bar */
.xo-old .xo-lnav::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50vw; right: -50vw;
  background: #C0C0C0; z-index: -1;
  box-shadow: inset 1px 1px 0 #FFFFFF, inset -1px -1px 0 #808080, 0 2px 0 rgba(0,0,0,.25);
}
.xo-old .xo-brand { color: #000; }
.xo-old .xo-brand svg line { stroke: #000; }
.xo-old .xo-est { color: #000080; }
.xo-old .xo-lnav-links { color: #1A1A1A; }
.xo-old .xo-navcta {
  border: none; color: #000; background: #C0C0C0;
  font-family: 'Silkscreen', var(--f-mono); font-size: 8.5px; letter-spacing: 0;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #FFFFFF, inset -2px -2px 0 #808080, inset 2px 2px 0 #DFDFDF;
}
.xo-old .xo-burger { border: none; color: #000; background: #C0C0C0;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #FFFFFF, inset -2px -2px 0 #808080, inset 2px 2px 0 #DFDFDF; }

/* chips: a tooltip and a sunken status cell */
.xo-old .xo-chip { border: none; letter-spacing: 0; font-family: 'Silkscreen', var(--f-mono); font-size: 9.5px; }
.xo-old .xo-chips .xo-chip:first-child {
  background: #FFFFE1; color: #000; border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3);
}
.xo-old .xo-chips .xo-chip:last-child {
  background: #C0C0C0; color: #000;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #FFFFFF;
}
.xo-old .xo-chip .xo-dot { background: #CC0000; border-radius: 0; box-shadow: inset -1px -1px 0 rgba(0,0,0,.4); }

/* headline: same font and metrics (the seam slices mid-glyph),
   period colors only */
.xo-old .xo-title { color: #000; }
.xo-old .xo-title .xo-word { -webkit-text-stroke: 2px #000080; }
.xo-old .xo-sub { color: #E4F1EE; }
.xo-old .xo-sub strong { color: #FFFFFF; }

/* CTAs as period buttons: the primary is a DISABLED control */
.xo-old .xo-btn { font-family: 'Silkscreen', var(--f-mono); font-size: 10px; letter-spacing: 0; }
.xo-old .xo-btn-a {
  border: none; background: #C0C0C0; text-decoration: none;
  color: #808080; text-shadow: 1px 1px 0 #FFFFFF; /* Win9x disabled emboss */
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #FFFFFF, inset -2px -2px 0 #808080, inset 2px 2px 0 #DFDFDF;
}
.xo-old .xo-btn-b {
  border: none; background: #C0C0C0; color: #000;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #FFFFFF, inset -2px -2px 0 #808080, inset 2px 2px 0 #DFDFDF;
  outline: 1px dotted #000; outline-offset: -6px; /* default-button focus rect */
}

/* foot: sunken status-bar cells */
.xo-old .xo-foot { color: #000; }
.xo-old .xo-foot > span {
  background: #C0C0C0;
  font-family: 'Silkscreen', var(--f-mono); font-size: 8.5px; letter-spacing: 0;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #FFFFFF;
}

/* set dressing: desktop icons + the hung dialog (absolute, no flow) */
.xo-deco { position: absolute; inset: 0; pointer-events: none; }
.xo-icons { position: absolute; left: 26px; top: 29%; display: flex; flex-direction: column; gap: 26px; width: 96px; }
.xo-icon { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.xo-icon-glyph { width: 34px; height: 40px; background: #FFFFFF; border: 1px solid #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,.3); position: relative; }
.xo-icon-glyph::before { content: ""; position: absolute; left: 5px; right: 5px; top: 7px; height: 22px;
  background: repeating-linear-gradient(180deg, #9AA6B2 0 2px, transparent 2px 6px); }
.xo-icon-xls::before { background: repeating-linear-gradient(180deg, #2E7D32 0 2px, transparent 2px 6px); }
.xo-icon-fax { background: #C0C0C0; }
.xo-icon-fax::before { background: repeating-linear-gradient(180deg, #404040 0 2px, transparent 2px 6px); }
.xo-icon-label { font-family: 'Silkscreen', var(--f-mono); font-size: 8px; color: #FFFFFF;
  background: #008080; padding: 1px 3px; text-align: center; }
.xo-icon:first-child .xo-icon-label { background: #000080; outline: 1px dotted #FFFF00; } /* selected icon */

.xo-dialog { position: absolute; left: 30px; bottom: 23%; width: 280px;
  background: #C0C0C0; box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #DFDFDF, 3px 3px 0 rgba(0,0,0,.3);
  border: 1px solid #000; }
.xo-dialog-title { display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(90deg, #000080, #1084D0); color: #FFF; padding: 4px 6px;
  font-family: 'Silkscreen', var(--f-mono); font-size: 9px; }
.xo-dialog-x { width: 16px; height: 14px; background: #C0C0C0; color: #000; text-align: center;
  line-height: 12px; font-size: 9px;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #FFFFFF; }
.xo-dialog-body { display: flex; gap: 12px; align-items: center; padding: 16px 14px; }
.xo-dialog-ico { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #FFCC00;
  border: 1px solid #000; color: #000; font-weight: 700; text-align: center; line-height: 28px;
  font-family: 'Silkscreen', var(--f-mono); font-size: 14px; }
.xo-dialog-body p { margin: 0; font-family: 'Silkscreen', var(--f-mono); font-size: 9px; color: #000; line-height: 1.6; }
.xo-dialog-btns { display: flex; justify-content: center; gap: 10px; padding: 0 14px 16px; }
.xo-dialog-btn { background: #C0C0C0; color: #000; padding: 5px 14px; min-width: 72px; text-align: center;
  font-family: 'Silkscreen', var(--f-mono); font-size: 8.5px;
  box-shadow: inset -1px -1px 0 #404040, inset 1px 1px 0 #FFFFFF, inset -2px -2px 0 #808080, inset 2px 2px 0 #DFDFDF; }
.xo-dialog-btns .xo-dialog-btn:first-child { outline: 1px dotted #000; outline-offset: -5px; }
.xo-dialog--toast { left: 140px; bottom: 16%; width: 235px; }

@media (max-width: 1180px) { .xo-icons { display: none; } }
@media (max-width: 720px) {
  /* the desk clutter shows through, faded, behind the content */
  .xo-icons { display: flex; left: 10px; top: 18%; gap: 16px; opacity: .55;
    transform: scale(.85); transform-origin: top left; }
  .xo-dialog { opacity: .5; left: 12px; bottom: 24%; width: 218px; }
  .xo-dialog--toast { left: auto; right: 12px; top: 15%; bottom: auto; width: 196px; }
}
