/* ===== Velo — light, embossed (Velo loop diagram style) ===== */
:root {
  --bg: #f2f2f0;          /* page bg — warm cream */
  --bg-2: #fafaf8;         /* shell */
  --surface: #fafaf8;
  --surface-2: #ececea;    /* hover surface */
  --surface-3: #ffffff;    /* white face cards */
  --face: #ffffff;
  --face-2: #f4f4f1;

  --ink: #2a2a28;          /* primary text — near-black warm */
  --ink-2: #4a4a48;
  --mute: #6e6e6a;
  --mute-2: #a6a6a2;
  --line: rgba(0,0,0,0.06);
  --line-2: rgba(0,0,0,0.03);
  --line-strong: rgba(0,0,0,0.10);

  /* ===== Brand: Velo blue (matches reference) ===== */
  --accent: #2f6ff0;        /* primary blue */
  --accent-2: #5b8aff;       /* lighter blue (highlights) */
  --accent-soft: #5b8aff;
  --accent-ink: #ffffff;     /* white text on blue */
  --accent-grad-1: #2f6ff0;
  --accent-grad-2: #4f7cf7;
  --accent-grad-3: #5b8aff;
  --accent-gradient: linear-gradient(135deg, var(--accent-grad-1) 0%, var(--accent-grad-2) 55%, var(--accent-grad-3) 100%);
  --accent-glow: rgba(47, 111, 240, 0.55);
  --accent-glow-soft: rgba(47, 111, 240, 0.12);

  /* Embossed inset highlight — subtle white top + faint dark bottom */
  --inset: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(0,0,0,0.04);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.05), 0 8px 18px -10px rgba(0,0,0,0.18);
  --shadow-card-lg: 0 2px 4px rgba(0,0,0,0.05), 0 22px 38px -16px rgba(0,0,0,0.22);
  --shadow-engine: 0 4px 8px rgba(0,0,0,0.06), 0 36px 60px -22px rgba(0,0,0,0.28);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  background-image: radial-gradient(1400px 900px at 50% 0%, #f7f7f5, var(--bg) 70%);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace; }

.accent-grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 26px -12px rgba(47, 111, 240, 0.55);
}
.btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 14px 32px -12px rgba(47, 111, 240, 0.7);
}

.btn--ghost {
  border-color: rgba(0, 0, 0, 0.14);
  color: var(--ink);
  background: var(--face);
  box-shadow: var(--inset), 0 1px 2px rgba(0,0,0,0.04);
}
.btn--ghost:hover {
  border-color: rgba(0, 0, 0, 0.32);
  background: var(--face);
  box-shadow: var(--inset), 0 2px 6px rgba(0,0,0,0.08);
}

.btn .arrow {
  display: inline-block;
  font-weight: 600;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 242, 240, 0.78);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
}
.nav-inner .brand { justify-self: start; }
.nav-inner .nav-tagline { justify-self: center; }
.nav-inner .nav-cta { justify-self: end; }

.nav-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--mute);
  white-space: nowrap;
  user-select: none;
}
.nav-tagline__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 3px rgba(47, 111, 240, 0.12),
    0 0 8px rgba(47, 111, 240, 0.55);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .nav-tagline { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-inner .brand { justify-self: start; }
  .nav-inner .nav-cta { justify-self: end; }
}
/* ===== Wordmark logo ===== */
.wm {
  display: inline-flex;
  align-items: baseline;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
  position: relative;
}
.wm-helvetica-grad {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-style: normal;
  font-size: 26px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-rendering: optimizeLegibility;
}
.wm-tight {
  font-weight: 800;
  letter-spacing: -0.055em;
  font-style: oblique 6deg;
  font-size: 24px;
  color: var(--accent);
}
.wm-cursor {
  font-weight: 700;
  letter-spacing: -0.02em;
  gap: 2px;
  color: var(--accent);
}
.wm-cursor .wm-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  align-self: center;
  margin-left: 4px;
  margin-bottom: -1px;
}
.wm-slash {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 19px;
  color: var(--accent);
}
.wm-slash .wm-slash-mark {
  color: var(--ink);
  margin-left: 1px;
}
.wm-contrast {
  letter-spacing: -0.04em;
  font-size: 23px;
  color: var(--accent);
}
.wm-contrast .wm-heavy { font-weight: 800; }
.wm-contrast .wm-light { font-weight: 400; color: color-mix(in oklab, var(--accent) 60%, var(--mute)); }
.wm-underline {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 21px;
  color: var(--accent);
}
.wm-underline .wm-rule {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--ink);
  transition: width .25s ease;
}
.brand:hover .wm-underline .wm-rule { width: 100%; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a { color: var(--ink-2); transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 9px 16px; font-size: 11.5px; letter-spacing: 0.08em; }

/* ===== Hero ===== */
.hero {
  padding: 96px 0 0;
  position: relative;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 9999px;
  background: var(--surface-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1.hero-title {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 auto;
  max-width: 14ch;
  color: var(--ink);
}
h1.hero-title em {
  font-style: normal;
  color: var(--mute);
  font-weight: 700;
}
h1.hero-title .accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-sub {
  margin: 24px auto 0;
  font-size: 18px;
  color: var(--ink-2);
  max-width: 60ch;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions .meta {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  flex-basis: 100%;
  text-align: center;
  margin-top: 4px;
}

/* ===== Hero numbers strip ===== */
.hero-numbers {
  margin: 36px auto 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 24px;
  font-family: 'Manrope', -apple-system, system-ui, sans-serif;
}
.hero-numbers .step-num {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.hero-numbers .step-num .v {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-numbers .step-num .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.hero-numbers .arrow {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  align-self: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 14px;
}

/* ===== Hero glow background ===== */
.hero {
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  pointer-events: none;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 900px;
  height: 70%;
  background: radial-gradient(ellipse at 50% 40%, var(--accent) 0%, transparent 60%);
  opacity: 0.08;
  filter: blur(60px);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .hero-numbers { gap: 12px 14px; }
  .hero-numbers .arrow { padding-bottom: 0; align-self: flex-end; }
  .hero-glow { width: 120%; opacity: 0.08; }
}

/* ===== Conveyor ===== */
.conveyor-wrap {
  margin-top: 32px;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 24px;
  background:
    repeating-linear-gradient(90deg, transparent 0 79px, var(--line-2) 79px 80px),
    var(--surface);
  overflow: hidden;
}
.conveyor-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  margin-bottom: 16px;
  background: var(--face);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--inset), 0 1px 2px rgba(0,0,0,0.04);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.conveyor-status .conv-status-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 600;
}
.conveyor-status .conv-status-mid { color: var(--mute); }
.conveyor-status .conv-rendering { color: #c97a13; font-weight: 700; }
.conveyor-status .conv-locked { color: var(--accent); font-weight: 700; }
.conveyor-status .conv-status-right { color: var(--ink); font-weight: 600; }

.conveyor-rails {
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.conveyor-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute-2);
}
.conveyor-legend .legend-state { display: inline-flex; align-items: center; gap: 14px; justify-content: center; }
.conveyor-legend .legend-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin: 0 6px 0 0;
  vertical-align: middle;
}
.conveyor-legend .legend-dot--win { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow-soft); }
.conveyor-legend .legend-dot--lose { background: #d65a48; }
.conveyor-legend .legend-dot--test { background: #c97a13; }

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  box-shadow: 0 0 0 3px var(--accent-glow-soft), 0 0 8px var(--accent-glow);
  animation: live-blink 1.1s ease-in-out infinite;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.45;
  animation: live-ring 1.6s ease-out infinite;
}
@keyframes live-blink {
  0%, 60%, 100% { opacity: 1; }
  70%, 90% { opacity: 0.35; }
}
@keyframes live-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

.conveyor-track {
  display: flex;
  gap: 14px;
  width: max-content;
  /* Composite to its own GPU layer: marquee = single layer transform, no
     per-frame paint of the 40 cards. */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout paint style;
  animation: marquee 90s linear infinite;
  /* Hover does NOT pause — animation runs continuously */
}
@keyframes marquee {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .conveyor-track { animation: none; }
}

.creative {
  width: 156px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--face);
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line);
  /* Single soft drop shadow — multi-layer shadows on 40 cards = paint cost. */
  box-shadow: 0 8px 18px -10px rgba(0,0,0,0.18);
  /* Each card paints into its own layer; one card's content change won't
     invalidate neighbours during the marquee. */
  contain: layout paint style;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.creative-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  user-select: none;
  -webkit-user-drag: none;
  /* Lift to its own layer so the image bitmap is uploaded once, not re-painted
     on each marquee frame. */
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  pointer-events: none;
}
.creative .tag {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  /* Solid translucent black instead of backdrop-filter — backdrop-filter is
     expensive per element and we have 40 of them scrolling. */
  background: rgba(10, 10, 10, 0.85);
  color: #ffffff;
  padding: 3px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  z-index: 2;
}
.creative .perf {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 8px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: white;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
.creative .perf .ipm.win { color: #c8ff8e; }
.creative .perf .ipm.lose { color: #ff9e8c; }
.creative .perf .ipm.test { color: #ffd778; }

.creative.win::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 0 3px var(--accent-glow-soft), 0 0 16px -2px var(--accent-glow);
}

.creative-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  pointer-events: none;
  padding: 26px 8px 30px;
}
.creative-art-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.02em;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 4px 7px;
  border-radius: 4px;
  max-width: 92%;
}

/* ===== Section common ===== */
section { padding: 112px 0; }
/* Mechanism: tighter top/bottom so the engine — not the scattering — drives the
   spacing to neighbouring sections. Field has overflow: visible, so creatives
   may spill into adjacent sections' backgrounds (intentional). */
#how { padding: 32px 0 0; overflow: visible; }
#how + .cta-banner { margin-top: 0; }
.section-head {
  display: block;
  text-align: center;
  max-width: 880px;
  margin: 0 auto 56px;
}
.section-head .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--mute); letter-spacing: 0.08em; }

/* ===== Section marker (centered, minimal — mono tag only) ===== */
.section-marker {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: none;
  margin-bottom: 20px;
}
.section-marker__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1;
}

.section-head h2 {
  margin: 0 auto;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 700;
  max-width: 22ch;
  color: var(--ink);
}
.section-head h2 em { font-style: normal; color: var(--mute); font-weight: 700; }
.section-head .lede {
  margin: 20px auto 0;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.55;
  max-width: 60ch;
}

/* ===== Logo strips ===== */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-strip .cell {
  padding: 28px 16px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  font-size: 17px;
  position: relative;
  transition: color .2s, background .2s;
}
.logo-strip .cell:last-child { border-right: none; }
.logo-strip .cell:hover { color: var(--ink); background: var(--surface-2); }

/* ===== Brand strip (Networks + Stack — borderless, hover-only highlight) ===== */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.brand-strip--secondary { margin-top: 0; }

.brand-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 20px 16px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink-2);
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor: default;
}
.brand-cell:hover {
  background: var(--face);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--inset), var(--shadow-card);
}
.brand-icon {
  grid-row: 1 / span 2;
  grid-column: 1;
  align-self: center;
  display: inline-flex;
  color: var(--mute);
  transition: color .2s ease;
  flex-shrink: 0;
}
.brand-cell:hover .brand-icon { color: var(--accent); }
.brand-name {
  grid-row: 1;
  grid-column: 2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: inherit;
  line-height: 1.2;
}
.brand-sub {
  grid-row: 2;
  grid-column: 2;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute-2);
  margin-top: 4px;
  line-height: 1.2;
}
.brand-cell:has(.brand-icon) .brand-name { grid-row: 1; }
.brand-cell:not(:has(.brand-sub)) .brand-name { grid-row: 1 / span 2; align-self: center; }

.brand-cell--text {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  padding: 22px 14px;
}
.brand-cell--text .brand-name {
  grid-row: 1;
  grid-column: 1;
  text-align: center;
  font-weight: 500;
}
.brand-cell--text .brand-name--muted { color: var(--mute); }
.brand-cell--text .brand-sub {
  grid-row: 2;
  grid-column: 1;
  text-align: center;
}

@media (max-width: 880px) {
  .brand-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  /* 5 items per strip → orphan cells in 2/3-col grids; stack to 1 col so each
     item gets a clean full-width row. */
  .brand-strip { grid-template-columns: 1fr; gap: 2px; margin-top: 4px; }
  .brand-cell { padding: 14px 16px; }
  .brand-cell--text { padding: 14px 16px; text-align: left; justify-items: start; grid-template-columns: 1fr; }
  .brand-cell--text .brand-name,
  .brand-cell--text .brand-sub { text-align: left; }
}

/* ===== CTA tooltip — closed beta info shown on hover ===== */
.cta-tip {
  position: relative;
  display: inline-flex;
}
.cta-tip__label {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--face);
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  border: 1px solid var(--line);
  z-index: 5;
  box-shadow: var(--inset), 0 8px 20px -8px rgba(0, 0, 0, 0.18);
}
.cta-tip__label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--face);
}
.cta-tip:hover .cta-tip__label,
.cta-tip:focus-within .cta-tip__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Nav button is at the top of the viewport — flip the tooltip below the button
   so it doesn't get clipped above the screen edge. */
.nav-cta .cta-tip__label {
  bottom: auto;
  top: calc(100% + 10px);
}
.nav-cta .cta-tip__label::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--face);
}
@media (max-width: 720px) {
  .cta-tip__label { font-size: 10px; padding: 6px 10px; white-space: normal; max-width: 240px; text-align: center; }
}

.studios {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.studios .cell {
  padding: 32px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  text-align: center;
}
.studios .cell:nth-child(6n) { border-right: none; }
.studios .cell:nth-last-child(-n+6) { border-bottom: none; }
.studios .name { font-size: 16px; letter-spacing: -0.01em; font-weight: 500; }
.studios .meta { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--mute); margin-top: 4px; letter-spacing: 0.04em; }

/* ===== Production numbers (4 big stats — borderless, breathing) ===== */
.production-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 48px;
  margin: 0 auto 80px;
  max-width: 1100px;
}
.production-numbers .pn-cell {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
.production-numbers .pn-v {
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.production-numbers .pn-cell--accent .pn-v {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.production-numbers .pn-v .pn-unit {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--mute);
  letter-spacing: -0.01em;
  -webkit-text-fill-color: var(--mute);
}
.production-numbers .pn-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 4px;
}
.production-numbers .pn-d { display: none; }

@media (max-width: 880px) {
  .production-numbers { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 520px) {
  .production-numbers { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}

/* Tier grid — borderless loose layout */
.production-numbers + .studios {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px 24px;
  border: none !important;
  margin-top: 0;
}
.production-numbers + .studios .cell {
  padding: 12px 8px;
  border: none !important;
  text-align: center;
}
.production-numbers + .studios .cell .name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.production-numbers + .studios .cell .meta { display: none; }
@media (max-width: 880px) {
  .production-numbers + .studios { grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
}
@media (max-width: 520px) {
  .production-numbers + .studios { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
}

/* ===== Loop steps — embossed cards on light bg ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border: none;
  /* Stack above the scattered creatives spilling up from the diagram below. */
  position: relative;
  z-index: 2;
}

/* ===== Mechanism diagram (inlined, scroll-tied) =====
   All children scoped under .mechanism-stage to avoid name collisions with
   site-wide classes (.row, .pad, .engine, .lit, etc.). */
.mechanism-stage {
  --orange: #2f6ff0;
  --orange-2: #5b8aff;
  --face: #ffffff;
  --face-2: #f4f4f1;
  --ink-3: #a6a6a2;
  --shell-line: rgba(0,0,0,0.06);
  --m-inset: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(0,0,0,0.04);
  margin-top: 16px;
  position: relative;
  /* Allow scattered creatives to spill into adjacent sections' background. */
  overflow: visible;
}
.mechanism-stage .stage-inner {
  position: relative;
  width: 100%;
  padding: 16px 0;
  --p1: 0; --p2: 0; --pCard: 0;
}

/* creatives field overlay */
.mechanism-stage .field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.mechanism-stage .ft {
  position: absolute;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--face) 0%, var(--face-2) 100%);
  box-shadow: var(--m-inset), 0 1px 2px rgba(0,0,0,0.04), 0 8px 18px -10px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transform:
    translate(calc(var(--dx, 0px) * var(--p2, 0)), calc(var(--dy, 0px) * var(--p2, 0)))
    rotate(var(--rot, 0deg));
  opacity: calc(var(--fop, 0.5) * var(--p2, 0));
  overflow: hidden;
  will-change: transform, opacity;
}
.mechanism-stage .ft .ico { display: flex; align-items: center; justify-content: center; color: inherit; }
.mechanism-stage .ft .ico svg { width: 100%; height: 100%; display: block; }
.mechanism-stage .ft .corner-tag {
  position: absolute; top: 3px; left: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 7px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 1px 3px; border-radius: 2px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.04);
  line-height: 1;
}
.mechanism-stage .ft.lit {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  box-shadow: var(--m-inset), 0 0 0 1.5px rgba(47,111,240,0.35), 0 0 12px rgba(47,111,240,0.45), 0 12px 22px -10px rgba(0,0,0,0.22);
  color: var(--orange);
}
.mechanism-stage .ft.lit .corner-tag {
  color: var(--orange);
  background: rgba(47,111,240,0.06);
  border-color: rgba(47,111,240,0.22);
}

/* layout: 3 columns — fixed left/right widths so the leftmost pad's left
   edge and the out-card's right edge align with the steps grid (Data/Loop). */
.mechanism-stage .row {
  display: grid;
  grid-template-columns: 232px 1fr 380px;
  align-items: center;
  gap: 0;
  min-height: 320px;
  position: relative;
}
.mechanism-stage .inputs {
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-end;
  padding-right: 32px;
  position: relative;
  z-index: 4;
}
.mechanism-stage .pad {
  position: relative;
  width: 200px;
  background: linear-gradient(180deg, var(--face) 0%, var(--face-2) 100%);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--m-inset), 0 1px 2px rgba(0,0,0,0.05), 0 8px 18px -10px rgba(0,0,0,0.18);
  display: flex; align-items: center; gap: 12px;
}
.mechanism-stage .pad .led {
  width: 8px; height: 8px; border-radius: 50%;
  background: #d6d6d2;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.18), inset 0 -1px 0 rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.mechanism-stage .pad.on .led {
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(47,111,240,0.12), 0 0 10px rgba(47,111,240,0.55);
  animation: mech-padLed 5s ease-in-out infinite;
}
@keyframes mech-padLed {
  0%, 22%   { box-shadow: 0 0 0 3px rgba(47,111,240,0.12), 0 0 10px rgba(47,111,240,0.55); transform: scale(1); }
  8%        { box-shadow: 0 0 0 6px rgba(47,111,240,0.20), 0 0 18px rgba(47,111,240,0.95); transform: scale(1.15); }
  35%, 100% { box-shadow: 0 0 0 3px rgba(47,111,240,0.06), 0 0 6px rgba(47,111,240,0.30); transform: scale(1); opacity: 0.55; }
}
.mechanism-stage .pad .lbl {
  font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: -0.005em;
  line-height: 1.2;
}

/* static gray flow line — draws in left→right with --p1 */
.mechanism-stage .pad::after {
  content: ""; position: absolute;
  right: calc(var(--gap1, 140px) * -1); top: 50%; transform: translateY(-50%);
  width: var(--gap1, 140px); height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0.10), rgba(0,0,0,0.04));
  background-size: calc(var(--p1, 0) * 100%) 100%;
  background-repeat: no-repeat;
}
.mechanism-stage .pad::before {
  content: ""; position: absolute;
  right: calc(var(--gap1, 140px) * -1); top: 50%; transform: translate(0, -50%);
  width: var(--gap1, 140px); height: 5px;
  background: linear-gradient(to right, transparent 0%, rgba(47,111,240,0) 30%, rgba(47,111,240,0.95) 50%, rgba(47,111,240,0) 70%, transparent 100%);
  background-size: 220% 100%;
  background-position: calc(220% - var(--p1, 0) * 280%) 50%;
  background-repeat: no-repeat;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
}
.mechanism-stage .pad.on::before { opacity: 1; }

.mechanism-stage .pad.more {
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.18);
  box-shadow: none;
  color: var(--mute);
  padding-top: 8px; padding-bottom: 8px;
}
.mechanism-stage .pad.more .led {
  background: transparent;
  border: 1px dashed rgba(0,0,0,0.25);
  box-shadow: none;
  animation: none;
}
.mechanism-stage .pad.more .lbl {
  color: var(--mute); font-weight: 500; font-size: 12.5px;
  display: flex; align-items: center; gap: 6px;
}
.mechanism-stage .pad.more .lbl b { color: var(--ink); font-weight: 600; }
.mechanism-stage .pad.more .dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.mechanism-stage .pad.more .dots i {
  width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3);
  animation: mech-blink 1.4s infinite ease-in-out;
}
.mechanism-stage .pad.more .dots i:nth-child(2) { animation-delay: .2s; }
.mechanism-stage .pad.more .dots i:nth-child(3) { animation-delay: .4s; }
.mechanism-stage .pad.more::after {
  background: none;
  border-top: 1px dashed rgba(0,0,0,0.28);
  height: 0; top: 50%;
  left: 100%; right: auto;
  width: calc(var(--gap1, 140px) * var(--p1, 0));
}
.mechanism-stage .pad.more::before {
  opacity: 1;
  background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.30) 50%, rgba(0,0,0,0) 70%, transparent 100%);
  background-size: 220% 100%;
  background-position: calc(220% - var(--p1, 0) * 280%) 50%;
  background-repeat: no-repeat;
}

/* engine */
.mechanism-stage .engine-col {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  z-index: 3;
}
.mechanism-stage .engine {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f1 100%);
  box-shadow: var(--m-inset), 0 4px 8px rgba(0,0,0,0.06), 0 36px 60px -22px rgba(0,0,0,0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px;
  flex-shrink: 0;
  z-index: 3;
}
.mechanism-stage .engine::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -18px; height: 28px;
  background: radial-gradient(closest-side, rgba(0,0,0,0.18), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.mechanism-stage .engine .ring {
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f0f0ed 70%, #e3e3e0 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.95), inset 0 -2px 4px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.06), 0 14px 22px -12px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  position: relative;
}
.mechanism-stage .engine .ring .core-led {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(47,111,240,0.10), 0 0 14px rgba(47,111,240,0.7);
  animation: mech-enginePulse 5s ease-in-out infinite;
}
@keyframes mech-enginePulse {
  0%, 18%   { box-shadow: 0 0 0 4px rgba(47,111,240,0.06), 0 0 10px rgba(47,111,240,0.35); transform: scale(0.92); }
  35%       { box-shadow: 0 0 0 10px rgba(47,111,240,0.18), 0 0 28px rgba(47,111,240,1.0); transform: scale(1.18); }
  50%       { box-shadow: 0 0 0 14px rgba(47,111,240,0.22), 0 0 36px rgba(47,111,240,1.0); transform: scale(1.25); }
  62%       { box-shadow: 0 0 0 10px rgba(47,111,240,0.18), 0 0 28px rgba(47,111,240,1.0); transform: scale(1.18); }
  80%, 100% { box-shadow: 0 0 0 4px rgba(47,111,240,0.06), 0 0 10px rgba(47,111,240,0.35); transform: scale(0.92); }
}
.mechanism-stage .engine h2 {
  margin: 0;
  font-size: 15px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
}
.mechanism-stage .engine .sub {
  margin-top: 4px;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.02em;
}

/* output */
.mechanism-stage .outputs {
  display: flex; align-items: center; justify-content: flex-end;
  padding-left: 0;
  position: relative;
  z-index: 4;
}
.mechanism-stage .out-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, var(--face) 0%, var(--face-2) 100%);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: var(--m-inset), 0 2px 4px rgba(0,0,0,0.05), 0 22px 38px -16px rgba(0,0,0,0.22);
  text-align: left;
  display: flex; flex-direction: column;
  animation: mech-outStage 5s ease-in-out infinite;
  opacity: var(--pCard, 0);
  transform: translateY(calc((1 - var(--pCard, 0)) * 16px));
}
@keyframes mech-outStage {
  0%, 55%, 95%, 100% { box-shadow: var(--m-inset), 0 2px 4px rgba(0,0,0,0.05), 0 22px 38px -16px rgba(0,0,0,0.22); }
  72%                { box-shadow: var(--m-inset), 0 0 0 1px rgba(47,111,240,0.18), 0 0 32px rgba(47,111,240,0.18), 0 22px 38px -16px rgba(0,0,0,0.22); }
}
.mechanism-stage .swan-line {
  margin: 0;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--ink); line-height: 1.35;
}
.mechanism-stage .swan-line em {
  font-style: italic; color: var(--orange); font-weight: 600;
}
.mechanism-stage .out-card .grid {
  margin-top: 14px;
  display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px;
}
.mechanism-stage .out-card .legend {
  margin-top: 12px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mechanism-stage .out-card .legend-swatch {
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--orange);
  box-shadow: 0 0 0 1.5px rgba(47,111,240,0.3), 0 0 8px rgba(47,111,240,0.45);
  flex-shrink: 0;
}
.mechanism-stage .out-card .legend-text {
  font-size: 11px; color: var(--mute); font-weight: 500;
  letter-spacing: 0.02em;
}
.mechanism-stage .out-card .grid i {
  aspect-ratio: 1/1.15;
  border-radius: 3px; background: #e2e2dd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.04);
  position: relative;
}
.mechanism-stage .out-card .grid i.dim { background: #ebebe6; }
.mechanism-stage .out-card .grid i.lit { background: linear-gradient(180deg, #d6d6d0, #c2c2bc); }
.mechanism-stage .out-card .grid i.swan {
  background: var(--orange);
  box-shadow: 0 0 0 1.5px rgba(47,111,240,0.3), 0 0 10px rgba(47,111,240,0.7), 0 0 22px rgba(47,111,240,0.45);
  animation: mech-swanPulse 2.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes mech-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes mech-swanPulse {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(47,111,240,0.3), 0 0 10px rgba(47,111,240,0.7), 0 0 22px rgba(47,111,240,0.45); }
  50%      { box-shadow: 0 0 0 2.5px rgba(47,111,240,0.45), 0 0 16px rgba(47,111,240,0.95), 0 0 36px rgba(47,111,240,0.65); }
}

/* mobile: stack columns vertically; flow lines hidden */
@media (max-width: 1100px) {
  .mechanism-stage .stage-inner { padding: 24px 0; }
  .mechanism-stage .row { display: flex; flex-direction: column; gap: 32px; align-items: center; padding: 0; min-height: 0; }
  .mechanism-stage .pad::after,
  .mechanism-stage .pad::before { display: none; }
  .mechanism-stage .inputs { align-items: center; padding-right: 0; }
  .mechanism-stage .outputs { justify-content: center; padding-left: 0; }
  .mechanism-stage .out-card { width: 100%; max-width: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .mechanism-stage .stage-inner { --p1: 1 !important; --p2: 1 !important; --pCard: 1 !important; }
  .mechanism-stage .pad.on .led,
  .mechanism-stage .engine .ring .core-led,
  .mechanism-stage .out-card,
  .mechanism-stage .pad.more .dots i,
  .mechanism-stage .out-card .grid i.swan { animation: none !important; }
}
.step {
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--face);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--inset), 0 1px 2px rgba(0,0,0,0.04);
}
.step:last-child { border-right: 1px solid var(--line); }
.step .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step .num .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.step h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
}
.step p {
  margin: 0;
  color: var(--mute);
  font-size: 14.5px;
  line-height: 1.5;
}
.step .visual {
  margin-top: auto;
  padding-top: 20px;
}

/* ===== Case study ===== */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 48px;
}
.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}
.stat .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--mute); letter-spacing: 0.06em; text-transform: uppercase; }
.stat .value {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-top: 8px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
}
.stat .value .unit { font-size: 22px; color: var(--mute); font-weight: 500; letter-spacing: -0.01em; }
.stat .value.up {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .desc { margin-top: 8px; color: var(--mute); font-size: 13px; max-width: 28ch; }

.case-quote {
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 36ch;
  color: var(--ink);
  font-weight: 500;
}
.case-quote em { font-style: normal; color: var(--mute); }
.case-attrib {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.case-attrib .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.case-attrib .who { font-size: 14px; color: var(--ink); }
.case-attrib .who .role { color: var(--mute); font-size: 12px; }

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  font-size: 13px;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-grid h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  font-weight: 500;
  margin: 0 0 16px;
}
.footer-grid a { display: block; padding: 4px 0; color: var(--ink-2); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* ===== CTA Banner — light embossed surface ===== */
.cta-banner {
  background: var(--face);
  color: var(--ink);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--inset);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}
.cta-banner h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  font-weight: 700;
  max-width: 16ch;
}
.cta-banner h2 em { font-style: normal; color: var(--mute); font-weight: 700; }
.cta-banner .btn--primary { background: var(--accent-gradient); color: var(--accent-ink); }
.cta-banner .btn--primary:hover { filter: brightness(1.08); }

/* tiny accents */
.tick {
  display: inline-block;
  width: 14px; height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 8px;
}

/* ===== Run Matrix (hero visual) ===== */
.run-matrix {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 14px 12px;
  box-shadow:
    0 24px 60px -24px rgba(0, 0, 0, 0.7),
    0 0 0 1px var(--line) inset;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.run-matrix__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.run-matrix__chrome .rm-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: pulse 1.6s ease-out infinite;
}
.run-matrix__chrome .rm-progress { color: var(--ink-2); }
.run-matrix__chrome .rm-locked { color: var(--accent); font-weight: 700; }

.run-matrix__grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.rm-cell {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.96);
  transition: transform 120ms ease;
}
.run-matrix.is-revealed .rm-cell {
  animation: rm-cell-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes rm-cell-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.rm-cell:hover { transform: scale(1.04); z-index: 1; }
.rm-tag {
  position: absolute;
  top: 3px; left: 3px;
  font-size: 7px;
  letter-spacing: 0.04em;
  background: rgba(10, 10, 10, 0.7);
  color: rgba(255, 255, 255, 0.85);
  padding: 1px 3px;
  border-radius: 2px;
}
.rm-ipm {
  position: absolute;
  bottom: 3px; right: 3px;
  font-size: 8px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 1px 3px;
  border-radius: 2px;
}
.rm-cell--win { border: 1.5px solid var(--accent); }
.run-matrix.is-revealed .rm-cell--win {
  animation:
    rm-cell-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    rm-win-pulse 2.4s ease-in-out 600ms infinite alternate;
}
@keyframes rm-win-pulse {
  from { box-shadow: 0 0 8px -2px var(--accent); }
  to   { box-shadow: 0 0 18px -2px var(--accent); }
}

.run-matrix__caption {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}
.rm-accent { color: var(--accent); font-weight: 700; }

/* ===== Hero responsive ===== */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .run-matrix__grid { gap: 3px; }
  .rm-tag { display: none; }
  .rm-ipm { font-size: 7px; padding: 1px 2px; }
  .run-matrix__chrome { font-size: 9px; padding: 6px 10px; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .run-matrix .rm-cell,
  .run-matrix .rm-cell--win {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .run-matrix__chrome .rm-dot { animation: none !important; }
}

/* ===== Playbook (Mechanism) — step cards ===== */
.step {
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  cursor: default;
  outline: none;
}
.step:hover,
.step:focus-visible {
  background: var(--face);
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--inset), 0 12px 28px -14px rgba(0,0,0,0.16);
}
.step:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.step h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.step-rule {
  flex: 0 0 16px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  transition: opacity 200ms ease, flex-basis 200ms ease;
  align-self: center;
}
.step:last-child .step-rule { display: none; }
.step:hover .step-rule,
.step:focus-visible .step-rule { opacity: 0.85; flex-basis: 28px; }

/* SVG reveal */
.sv-source, .sv-target, .sv-output, .sv-matrix, .render-pulse {
  opacity: 1;
  transition: opacity 320ms ease calc(var(--step-delay, 0ms) + var(--i, 0) * 60ms);
}
.step:not(.is-revealed) .sv-source,
.step:not(.is-revealed) .sv-target,
.step:not(.is-revealed) .sv-output,
.step:not(.is-revealed) .sv-matrix,
.step:not(.is-revealed) .render-pulse {
  opacity: 0;
}
.sv-target { transition-delay: calc(var(--step-delay, 0ms) + 320ms); }
.sv-output { transition-delay: calc(var(--step-delay, 0ms) + 380ms); }

.sv-path {
  stroke-dasharray: 240;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms cubic-bezier(0.65, 0, 0.35, 1) calc(var(--step-delay, 0ms) + 240ms);
}
.step:not(.is-revealed) .sv-path { stroke-dashoffset: 240; }

/* Active hover effects per diagram */
.sv--data .sv-target { transition: filter 250ms ease; }
.sv--data.is-active .sv-target { filter: drop-shadow(0 0 8px var(--accent)); }

.sv--synthesis .sv-cell--win { transition: filter 250ms ease, stroke-width 250ms ease; }
.sv--synthesis.is-active .sv-cell--win {
  filter: drop-shadow(0 0 5px var(--accent));
  stroke-width: 1.5;
}

.sv--production .sv-output { transition: filter 250ms ease; }
.sv--production.is-active .sv-output { filter: drop-shadow(0 0 8px var(--accent)); }

.sv--production .render-pulse circle {
  animation: render-pulse 1.2s ease-in-out infinite;
}
.sv--production .render-pulse circle:nth-child(2) { animation-delay: 0.4s; }
.sv--production .render-pulse circle:nth-child(3) { animation-delay: 0.8s; }
.sv--production.is-active .render-pulse circle { animation-duration: 0.5s; }
@keyframes render-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.sv--loop .sv-output { transition: filter 250ms ease; }
.sv--loop.is-active .sv-output { filter: drop-shadow(0 0 8px var(--accent)); }

/* Steps responsive */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sv-source, .sv-target, .sv-output, .sv-matrix, .render-pulse {
    opacity: 1 !important;
    transition: none !important;
  }
  .sv-path { stroke-dashoffset: 0 !important; transition: none !important; }
  .step-rule { transition: none !important; }
  .render-pulse circle { animation: none !important; opacity: 0.6 !important; }
  .sv--data.is-active .sv-target,
  .sv--production.is-active .sv-output,
  .sv--loop.is-active .sv-output,
  .sv--synthesis.is-active .sv-cell--win { filter: none !important; }
}

/* ===== Universal nowrap fixes (apply at all sizes) ===== */
.nav-links a { white-space: nowrap; }
.conveyor-meta .label { white-space: nowrap; }

/* ===== Tablet (≤880px) ===== */
@media (max-width: 880px) {
  section { padding: 72px 0; }
  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
    max-width: none;
  }
  .section-head h2 { max-width: none; }
  .section-head .lede { max-width: none; }
  .conveyor-status {
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .conveyor-legend { flex-wrap: wrap; gap: 8px 14px; }
  .case {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 36px;
  }
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
  }
  .hero { padding-top: 56px; }
  .hero-actions .meta {
    margin-left: 0;
    flex-basis: 100%;
  }
}

/* ===== Mobile (≤720px) ===== */
@media (max-width: 720px) {
  section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .conveyor-legend .legend-axes { display: none; }
  .nav-inner { height: 56px; }
  .nav-links { display: none; }
  .nav-cta .btn--ghost { display: none; }
  .nav-cta .btn { padding: 8px 14px; font-size: 11px; }
  .case-stats { grid-template-columns: 1fr 1fr; gap: 24px 28px; }
  .stat .value { font-size: 44px; }
  .stat .value .unit { font-size: 18px; }
  .case-quote { font-size: 18px; max-width: none; }
  .cta-banner { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .logo-strip .cell { padding: 22px 12px; font-size: 15px; }
  .logo-strip .cell:nth-child(3n) { border-right: none; }
  .logo-strip .cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .logo-strip + .logo-strip .cell { font-size: 12px !important; padding: 16px 10px; }
  .studios { grid-template-columns: repeat(3, 1fr); }
  .studios .cell:nth-child(6n) { border-right: 1px solid var(--line); }
  .studios .cell:nth-child(3n) { border-right: none; }
  .studios .cell:nth-last-child(-n+6) { border-bottom: 1px solid var(--line); }
  .studios .cell:nth-last-child(-n+3) { border-bottom: none; }
  .step .visual svg { max-width: 480px; margin: 0 auto; display: block; }
}

/* ===== Small mobile (≤520px) ===== */
@media (max-width: 520px) {
  h1.hero-title { font-size: clamp(40px, 11vw, 56px); max-width: 100%; }
  .hero-sub { font-size: 16px; }
  .section-head h2 { font-size: clamp(28px, 8vw, 40px); }
  .section-head .lede { font-size: 15px; }
  .cta-banner h2 { font-size: clamp(28px, 8vw, 40px); }
  .cta-banner { padding: 56px 0; }
  .case-stats { grid-template-columns: 1fr; gap: 24px; }
  .stat .value { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .logo-strip .cell { padding: 18px 10px; font-size: 14px; }
  .logo-strip .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .logo-strip .cell:nth-child(2n) { border-right: none; }
  .logo-strip .cell:nth-last-child(-n+2) { border-bottom: none; }
  .studios { grid-template-columns: repeat(2, 1fr); }
  .studios .cell { padding: 24px 12px; }
  .studios .cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .studios .cell:nth-child(2n) { border-right: none; }
  .studios .cell:nth-last-child(-n+2) { border-bottom: none; }
  .conveyor-wrap { padding: 22px 0; }
  .creative { width: 124px; }
  .creative-art-pill { font-size: 8px; padding: 3px 5px; }
  .nav-cta .btn .arrow { display: none; }
}
