/* ════════════════════════════════════════════════════════════
   FABLE — design system
   bg: near-black warm · ink: ivory · accent: burnt sienna
   type: Inter / Instrument Serif (italic accents) / IBM Plex Mono
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0a0a0b;
  --bg-raise:  #101012;
  --bg-card:   #0e0e10;
  --ink:       #eceae3;
  --ink-dim:   #9b988f;
  --ink-faint: #5d5b55;
  --hairline:  rgba(236, 234, 227, 0.09);
  --hairline-strong: rgba(236, 234, 227, 0.18);
  --accent:    #d4673a;
  --accent-soft: rgba(212, 103, 58, 0.14);
  --good:      #8fae8b;

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

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0b; }

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.accent { color: var(--accent); }

section { scroll-margin-top: 96px; }

/* ── Film grain ─────────────────────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.4%); }
  50%  { transform: translate(1.2%, -1.8%); }
  75%  { transform: translate(-1.6%, -0.8%); }
  100% { transform: translate(0, 0); }
}

/* ── Scroll progress ────────────────────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 110;
  background: transparent;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease-out),
              border-color 0.45s,
              background-color 0.45s;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--hairline);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 560;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.nav__mark {
  flex: none;
  display: block;
  filter: brightness(0) invert(0.93) sepia(0.04);
}
.nav__tag {
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid var(--hairline-strong);
  font-size: 9px;
  color: var(--ink-faint);
}
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 450;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; gap: 10px; align-items: center; }

/* mobile burger + menu */
.nav__burger {
  display: none;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 99px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: 10px var(--gutter) 26px;
  background: rgba(10, 10, 11, 0.98);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.nav__menu a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  padding: 15px 2px;
  border-bottom: 1px solid var(--hairline);
}
.nav__menu-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
}
.nav__menu-actions .btn { flex: 1; justify-content: center; }
.nav.is-open .nav__menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.nav.is-open {
  background: rgba(10, 10, 11, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--hairline);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s,
              transform 0.2s var(--ease-out);
  will-change: transform;
}
.btn--lg { padding: 13px 26px; font-size: 14.5px; }
.btn--solid {
  background: var(--ink);
  color: #0c0c0d;
}
.btn--solid:hover { background: #fff; }
.btn--ghost {
  color: var(--ink-dim);
  border-color: var(--hairline-strong);
  background: transparent;
}
.btn--ghost:hover { color: var(--ink); border-color: var(--ink-dim); }
.btn .arrow { transition: transform 0.3s var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateY(3px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 30% 42%, transparent 30%, rgba(10,10,11,0.6) 100%),
    linear-gradient(180deg, rgba(10,10,11,0.55) 0%, transparent 22%, transparent 62%, var(--bg) 97%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--gutter) 80px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  background: rgba(10, 10, 11, 0.45);
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); opacity: 1; }
  50%      { box-shadow: 0 0 0 7px transparent; opacity: 0.6; }
}

.hero__title {
  font-size: clamp(40px, 6.6vw, 88px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.042em;
  margin-bottom: 32px;
  max-width: 26ch;
}
.hero__title .serif { font-size: 1.04em; }
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__title .line > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-out);
}
body.is-ready .hero__title .line:nth-child(1) > span { transform: none; transition-delay: 0.10s; }
body.is-ready .hero__title .line:nth-child(2) > span { transform: none; transition-delay: 0.22s; }

.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-dim);
  max-width: 54ch;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

.reveal-line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
body.is-ready .reveal-line { opacity: 1; transform: none; }
body.is-ready .hero__eyebrow      { transition-delay: 0.05s; }
body.is-ready .hero__sub          { transition-delay: 0.38s; }
body.is-ready .hero__cta          { transition-delay: 0.5s; }
body.is-ready .hero__stats        { transition-delay: 0.66s; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(28px, 5vw, 72px);
  justify-content: start;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
}
.hero__stats dt { margin-bottom: 6px; font-size: 10px; color: var(--ink-faint); }
.hero__stats dd {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.hero__scrollcue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-decoration: none;
  font-size: 9px;
  color: var(--ink-faint);
  letter-spacing: 0.3em;
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 6px); opacity: 0.25; }
}

/* ── Trusted by ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.trusted {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(64px, 8vw, 110px) 0 clamp(44px, 5vw, 68px);
  text-align: center;
}
.trusted__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 50% 26%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(236, 234, 227, 0.05), transparent 60%);
}
.trusted__eyebrow {
  color: var(--accent);
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}
.trusted__eyebrow::before, .trusted__eyebrow::after {
  content: "";
  height: 1px;
  width: 44px;
  background: var(--hairline-strong);
}
.trusted__title {
  position: relative;
  margin: 0 auto 14px;
  padding: 0 var(--gutter);
}

/* giant odometer numeral */
.trusted__num {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  font-size: clamp(84px, 13vw, 184px);
  font-weight: 560;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 18px;
  text-shadow: 0 0 80px rgba(212, 103, 58, 0.25);
}
.odo__col {
  display: block;
  overflow: hidden;
  height: 1em;
}
.odo__reel {
  display: flex;
  flex-direction: column;
  transition: transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.odo__reel span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
}
.odo__char { display: block; line-height: 1; }
.odo__char--accent { color: var(--accent); }

.trusted__line {
  display: block;
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.25;
  max-width: 30ch;
  margin: 0 auto;
}
.trusted__line .serif { color: var(--ink-dim); font-size: 1.04em; }
.trusted__sub {
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 56ch;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.trusted__rows {
  margin-top: clamp(40px, 5vw, 62px);
  display: grid;
  gap: 26px;
}
.trusted__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.trusted__track {
  display: flex;
  width: max-content;
  animation: trusted-marquee 38s linear infinite;
}
.trusted__track--reverse {
  animation-direction: reverse;
  animation-duration: 48s;
}
.trusted__marquee:hover .trusted__track { animation-play-state: paused; }
.trusted__track ul {
  display: flex;
  align-items: center;
  list-style: none;
}
.trusted__track li {
  flex: none;
  padding: 6px clamp(26px, 3.4vw, 52px);
}
.trusted__name {
  display: block;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #edeef0;
  opacity: 0.62;
  transition: opacity 0.3s;
}
.trusted__track li:hover .trusted__name { opacity: 1; }
@keyframes trusted-marquee {
  to { transform: translateX(-50%); }
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 160px) var(--gutter) 0;
}
.section__head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__index {
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section__index::after {
  content: "";
  height: 1px;
  width: 56px;
  background: var(--hairline-strong);
}
.section__title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.section__title .serif { font-size: 1.05em; }
.section__lede { color: var(--ink-dim); font-size: clamp(15px, 1.5vw, 17.5px); max-width: 52ch; }

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Demo ───────────────────────────────────────────────────── */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  align-items: stretch;
}
.demo__console {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 460px;
}
.demo__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 10px;
  color: var(--ink-faint);
}
.demo__chrome .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--hairline-strong);
}
.demo__chrome-title { margin-left: 8px; }
.demo__replay {
  margin-left: auto;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--ink-dim);
  font-size: 9.5px;
  padding: 4px 9px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.demo__replay:hover { color: var(--ink); border-color: var(--ink-dim); }

.demo__prompt {
  padding: 18px 18px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.01em;
  min-height: 86px;
}
.demo__caret-label { color: var(--accent); margin-right: 8px; }
.caret {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.demo__log {
  list-style: none;
  padding: 6px 18px 20px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 2.15;
  color: var(--ink-dim);
}
.demo__log li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.demo__log li.on { opacity: 1; transform: none; }
.demo__log b { color: var(--ink); font-weight: 500; }
.log__time { color: var(--ink-faint); margin-right: 10px; font-size: 10px; }
.log__done { color: var(--good); }
.log__done b { color: var(--good); }

/* slide preview */
.demo__slide {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo__slide svg { width: 100%; height: auto; display: block; }
.demo__slide figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 9.5px;
  color: var(--ink-faint);
}
.demo__badge { flex: none; }
.demo__badge {
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 9px;
  transition: color 0.4s, background-color 0.4s, border-color 0.4s;
}
.demo__badge.is-done {
  color: var(--good);
  background: rgba(143, 174, 139, 0.1);
  border-color: rgba(143, 174, 139, 0.25);
}

/* slide svg internals */
.sl { transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.sl-frame {
  fill: #0b0b0d;
  stroke: var(--hairline-strong);
  stroke-width: 1;
}
.sl-el    { fill: rgba(236, 234, 227, 0.5); }
.sl-dim   { fill: rgba(236, 234, 227, 0.16); }
.sl-foot  { fill: rgba(236, 234, 227, 0.12); }
.sl-rule  { stroke: var(--hairline-strong); stroke-width: 1; }
.sl-axis  { stroke: rgba(236, 234, 227, 0.3); stroke-width: 1; }
.sl-conn  { stroke: rgba(236, 234, 227, 0.22); stroke-width: 1; stroke-dasharray: 3 3; }
.sl-bar         { fill: rgba(236, 234, 227, 0.34); }
.sl-bar--up     { fill: rgba(143, 174, 139, 0.55); }
.sl-bar--down   { fill: rgba(212, 103, 58, 0.6); }
.sl-bar--total  { fill: rgba(236, 234, 227, 0.5); }

.sl[data-k] { opacity: 0; transform: translateY(8px); }
.demo__slide.is-built .sl[data-k] { opacity: 1; transform: none; }
.demo__slide.is-built .sl[data-k="1"] { transition-delay: 0.05s; }
.demo__slide.is-built .sl[data-k="2"] { transition-delay: 0.35s; }
.demo__slide.is-built .sl[data-k="3"] { transition-delay: 0.65s; }
.demo__slide.is-built .sl[data-k="4"] { transition-delay: 0.9s; }
.demo__slide.is-built .sl[data-k="5"] { transition-delay: 1.15s; }
.demo__slide.is-built .sl[data-k="6"] { transition-delay: 1.4s; }
.demo__slide.is-built .sl[data-k="7"] { transition-delay: 1.7s; }

/* ── Live capture video ─────────────────────────────────────── */
.capture {
  margin-top: 22px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 14px 12px;
}
.capture video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #000;
}
.capture figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 6px 2px;
  font-size: 9.5px;
  color: var(--ink-faint);
}

/* ── Capability cards ───────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.card {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 30px 28px 36px;
  position: relative;
  transition: background-color 0.35s;
}
.card:hover { background: var(--bg-raise); }
.card::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 0.5s var(--ease-out);
}
.card:hover::after { width: 100%; }
.card__index { color: var(--ink-faint); margin-bottom: 38px; font-size: 10px; }
.card h3 {
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.card p { font-size: 14px; color: var(--ink-dim); line-height: 1.65; }

/* staggered card reveal */
.cards .card { transition-property: opacity, transform, background-color; }
.cards .card:nth-child(2).reveal, .cards .card:nth-child(5).reveal { transition-delay: 0.1s; }
.cards .card:nth-child(3).reveal, .cards .card:nth-child(6).reveal { transition-delay: 0.2s; }

/* ── Pipeline ───────────────────────────────────────────────── */
.pipe {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  counter-reset: stage;
  position: relative;
}
.pipe::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  opacity: 0.5;
}
.pipe__stage {
  padding: 28px 18px 12px 0;
  position: relative;
}
.pipe__stage + .pipe__stage { padding-left: 18px; }
.pipe__stage + .pipe__stage::before {
  content: "";
  position: absolute;
  left: 0; top: 28px; bottom: 12px;
  width: 1px;
  background: var(--hairline);
}
.pipe--three { grid-template-columns: repeat(3, 1fr); }
.pipe--three .pipe__stage { padding-bottom: 28px; }
.pipe--three .pipe__stage h3 { font-size: 18px; margin-top: 34px; }
.pipe__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.pipe__row .pipe__num { margin-bottom: 0; }
.pipe__meta { color: var(--ink-faint); font-size: 9.5px; }
.pipe__num { color: var(--accent); margin-bottom: 16px; font-size: 10px; }
.pipe__stage h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.pipe__stage p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.6; }

/* ── Quotes ─────────────────────────────────────────────────── */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.quote {
  background: var(--bg-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transition: background-color 0.3s;
}
.quote:hover { background: var(--bg-raise); }
.quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0;
  flex: 1;
}
.quote footer {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote footer span:first-child { font-size: 13px; font-weight: 500; }
.quote footer .mono { font-size: 9px; color: var(--ink-faint); }

/* ── Security ───────────────────────────────────────────────── */
.sec-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.sec-grid li {
  background: var(--bg-card);
  padding: 26px 24px 30px;
  transition: background-color 0.3s;
}
.sec-grid li:hover { background: var(--bg-raise); }
.sec-grid li > .mono {
  display: block;
  color: var(--ink);
  font-size: 10.5px;
  margin-bottom: 12px;
}
.sec-grid li > .mono::before {
  content: "■ ";
  color: var(--accent);
  font-size: 8px;
  vertical-align: 1px;
}
.sec-grid p { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }

/* ── Research note ──────────────────────────────────────────── */
.section--research { padding-bottom: 0; }
.research {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 90% at 85% -10%, var(--accent-soft), transparent 60%),
    var(--bg-card);
  padding: clamp(40px, 6vw, 76px);
}
.research .section__index { margin-bottom: 34px; }
.research blockquote p {
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 34px;
}
.research blockquote .serif { font-size: 1.06em; }
.research__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 880px;
}
.research__body p { color: var(--ink-dim); font-size: 14.5px; }
.research__body .serif { color: var(--ink); }
.research__sig { margin-top: 40px; color: var(--ink-faint); font-size: 10px; }

/* ── CTA ────────────────────────────────────────────────────── */
.section--cta { padding-bottom: clamp(90px, 12vw, 150px); }
.cta {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) var(--gutter);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.cta::before, .cta::after {
  content: "+";
  position: absolute;
  top: -11px;
  color: var(--ink-faint);
  font-size: 15px;
  font-family: var(--font-mono);
}
.cta::before { left: -5px; }
.cta::after  { right: -5px; }
.cta__eyebrow { margin-bottom: 26px; color: var(--accent); }
.cta h2 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.cta h2 .serif { font-size: 1.05em; }
.cta__sub {
  color: var(--ink-dim);
  max-width: 50ch;
  margin: 0 auto 40px;
  font-size: 15.5px;
}
.cta__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cta__input {
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  border-radius: 99px;
  color: var(--ink);
  padding: 13px 22px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  width: min(320px, 80vw);
  outline: none;
  transition: border-color 0.25s;
}
.cta__input::placeholder { color: var(--ink-faint); }
.cta__input:focus { border-color: var(--accent); }
.cta__fine { font-size: 9.5px; color: var(--ink-faint); transition: color 0.3s; }
.cta__fine.is-ok { color: var(--good); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--hairline); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 48px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.footer__logo {
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
.footer__logo img { filter: brightness(0) invert(0.93) sepia(0.04); }
.footer__brand .mono { font-size: 9px; color: var(--ink-faint); line-height: 1.9; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 110px); }
.footer__head { font-size: 9.5px; color: var(--ink-faint); margin-bottom: 16px; }
.footer__cols a {
  display: block;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 10px;
  transition: color 0.25s;
}
.footer__cols a:hover { color: var(--ink); }
.footer__base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--gutter) 30px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--ink-faint);
}

/* ── Subpages: shared ───────────────────────────────────────── */
.page-head { padding-top: clamp(140px, 16vw, 200px); }
.section--tight { padding-top: clamp(44px, 6vw, 72px); }
.nav__links a[aria-current="page"] { color: var(--ink); }

/* ── Cases index ────────────────────────────────────────────── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 14px 20px;
  transition: border-color 0.3s, transform 0.5s var(--ease-out),
              opacity 0.9s var(--ease-out);
}
.case-card:hover { border-color: var(--hairline-strong); transform: translateY(-3px); }
.case-card figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  margin-bottom: 16px;
  aspect-ratio: 1200 / 1013;
  background: var(--bg-raise);
}
.case-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-card__meta { font-size: 9px; color: var(--ink-faint); margin: 0 6px 10px; }
.case-card h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 6px 8px;
}
.case-card__excerpt {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.55;
  margin: 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* archive */
.archive {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
}
.archive__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
}
.archive__label { color: var(--ink-faint); font-size: 9.5px; }
.archive__search {
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  border-radius: 99px;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  width: min(300px, 60vw);
  outline: none;
  transition: border-color 0.25s;
}
.archive__search:focus { border-color: var(--accent); }
.archive__search::placeholder { color: var(--ink-faint); }
.archive__list { list-style: none; max-height: 560px; overflow-y: auto; }
.archive__list a {
  display: grid;
  grid-template-columns: 110px 150px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 13px 22px;
  text-decoration: none;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.2s, color 0.2s;
}
.archive__list li:last-child a { border-bottom: none; }
.archive__list a:hover { background: var(--bg-raise); color: var(--ink); }
.archive__date, .archive__firm { font-size: 9px; color: var(--ink-faint); }
.archive__title { font-size: 13.5px; line-height: 1.45; }
.archive__empty { padding: 26px 22px; color: var(--ink-faint); }

/* ── Case article ───────────────────────────────────────────── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(140px, 16vw, 200px) var(--gutter) clamp(90px, 10vw, 130px);
}
.article__head { margin-bottom: 36px; }
.article__meta { margin-bottom: 22px; color: var(--ink-faint); }
.article__meta a { color: var(--accent); text-decoration: none; }
.article__meta a:hover { text-decoration: underline; }
.article__head h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.article__tag {
  display: inline-block;
  font-size: 9px;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 99px;
  padding: 5px 12px;
}
.article__figure {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 40px;
}
.article__figure img { display: block; width: 100%; height: auto; }
.article__body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-dim);
  margin-bottom: 22px;
}
.article__body p:first-child {
  color: var(--ink);
  font-size: 18px;
}
.article__pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
  margin: 48px 0;
}
.article__pager-slot {
  background: var(--bg-card);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  transition: background-color 0.25s, color 0.25s;
}
.article__pager-slot.is-next { text-align: right; }
.article__pager-slot:hover { background: var(--bg-raise); color: var(--ink); }
.article__pager-slot .mono { font-size: 9px; color: var(--accent); }
.article__cta {
  text-align: center;
  border-top: 1px solid var(--hairline);
  padding-top: 44px;
}
.article__cta .mono { color: var(--accent); margin-bottom: 16px; }
.article__cta h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.article__cta .hero__cta { justify-content: center; margin-bottom: 0; }

/* ── Careers ────────────────────────────────────────────────── */
.snapshot {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(28px, 5vw, 64px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--bg-card);
  padding: clamp(28px, 4.5vw, 56px);
}
.snapshot__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-content: start;
}
.snapshot__stats dt { font-size: 9.5px; color: var(--ink-faint); margin-bottom: 5px; }
.snapshot__stats dd {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.snapshot__body p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 16px; }
.snapshot__body p:last-child { margin-bottom: 0; }

.role {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--bg-card);
  overflow: hidden;
}
.role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 18px clamp(22px, 3.5vw, 40px);
  border-bottom: 1px solid var(--hairline);
  font-size: 9.5px;
  color: var(--ink-dim);
}
.role__meta span::before { content: "■ "; color: var(--accent); font-size: 7px; vertical-align: 1px; }
.role__posted { margin-left: auto; color: var(--ink-faint); }
.role__posted::before { display: none; }
.role__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(26px, 4vw, 44px) clamp(22px, 3.5vw, 40px);
}
.role__main h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
}
.role__main h3:first-child { margin-top: 0; }
.role__main > p { color: var(--ink-dim); font-size: 14.5px; }
.role__groups { display: grid; gap: 26px; }
.role__group-head { color: var(--ink); font-size: 10px; margin-bottom: 10px; }
.role__groups ul, .role__list, .role__side ul { list-style: none; }
.role__groups li, .role__list li, .role__side li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.55;
}
.role__groups li::before, .role__list li::before, .role__side li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 2px;
}
.role__side {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(24px, 3vw, 40px);
  align-self: start;
  position: sticky;
  top: 96px;
}
.role__side-head { color: var(--ink); font-size: 10px; margin-bottom: 14px; }
.role__apply { margin-top: 22px; width: 100%; justify-content: center; }
.role__fine { font-size: 8.5px; color: var(--ink-faint); margin-top: 12px; text-align: center; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pipe { grid-template-columns: repeat(3, 1fr); border-top: none; }
  .pipe::before { display: none; }
  .pipe__stage { border-top: 1px solid var(--hairline); padding-left: 0; padding-right: 18px; }
  .pipe__stage:nth-child(3n + 1)::before { display: none; }
  .pipe__stage:nth-child(3n + 1) { padding-left: 0; }
}
@media (max-width: 960px) {
  .nav__links, .nav__tag { display: none; }
  .nav__burger { display: flex; }
  .nav__menu { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .demo { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .snapshot { grid-template-columns: 1fr; }
  .snapshot__stats { grid-template-columns: 1fr 1fr; }
  .role__grid { grid-template-columns: 1fr; }
  .role__side { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 26px; position: static; }
  .archive__list a { grid-template-columns: 92px 1fr; }
  .archive__title { grid-column: 1 / -1; }
  .hero__stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
  .research__body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cards, .sec-grid, .pipe, .cases-grid { grid-template-columns: 1fr; }
  .article__pager { grid-template-columns: 1fr; }
  .hero__eyebrow { font-size: 9px; padding: 7px 11px; letter-spacing: 0.1em; }
  .pipe__stage::before { display: none !important; }
  .pipe__stage { padding-left: 0 !important; }
  .nav__actions .btn--ghost { display: none; }
  .hero__inner { padding-top: 110px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .pulse-dot, .caret, .hero__scrollcue { animation: none; }
  .trusted__track { animation: none; width: 100%; }
  .trusted__track ul { flex-wrap: wrap; justify-content: center; width: 100%; }
  .trusted__dup { display: none; }
  .trusted__marquee { -webkit-mask-image: none; mask-image: none; }
  .reveal, .reveal-line, .hero__title .line > span,
  .demo__log li, .sl, .btn { transition: none !important; }
  .reveal, .reveal-line { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}
