/* ══════════════════════════════════════════
   SUBSALT — Design System v5
   Brand: Warm Carbon + Sienna Red
   Type: Plus Jakarta Sans / JetBrains Mono
   Visual: Celmins noise fields
   ══════════════════════════════════════════ */

/* ── Self-hosted fonts (variable, latin + latin-ext) ── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --carbon: #141414;
  --graphite: #1E1E1E;
  --surface: #262626;
  --deep: #0E1117;
  --deep-warm: #121214;
  --sienna: #B84A3C;
  --clay: #D4685A;
  --blush: #E89888;
  --slate-blue: #3A5A7C;
  --sand: #C4A87A;
  --wg-800: #2C2926;
  --wg-600: #6B6560;
  --wg-400: #A39E98;
  --wg-200: #D4D0CC;
  --wg-100: #ECEAE7;
  --wg-50: #F0EDE8;
  --white: #FFFFFF;
  --success: #4A9E6B;
  --warning: #D4933A;
  --max-width: 1140px;
  --max-width-wide: 1300px;
  --narrow: 720px;
  --nav-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Plus Jakarta Sans', -apple-system, sans-serif; background: var(--deep); color: var(--wg-200); line-height: 1.6; font-size: 15px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; top: -100%; left: 24px; z-index: 200; padding: 8px 16px; background: var(--sienna); color: var(--white); font-size: 14px; font-weight: 700; border-radius: 0 0 6px 6px; }
.skip-link:focus { top: 0; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container, .container-narrow { padding: 0 40px; } }

/* ── Sections ── */
.sec { padding: 120px 0; position: relative; overflow: hidden; }
.sec-sm { padding: 72px 0; position: relative; overflow: hidden; }
.sec-tight { padding: 56px 0; position: relative; overflow: hidden; }
@media (max-width: 768px) { .sec { padding: 80px 0; } .sec-sm { padding: 56px 0; } .sec-tight { padding: 40px 0; } }

/* Backgrounds */
.bg-dark { background: var(--deep); color: var(--wg-200); }
.page-warm .bg-dark,
.page-warm .page-hero { background: var(--deep-warm); }
.bg-light { background: var(--wg-50); color: var(--wg-600); }

/* Section transition bleeds — two-sided fade + accent line */
.sec-bleed-to-dark::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(14,17,23,0.2));
  pointer-events: none;
  z-index: 0;
}
.sec-bleed-from-light::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, transparent, rgba(240,237,232,0.15));
  pointer-events: none;
  z-index: 0;
}
.sec-bleed-to-light::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(240,237,232,0.15));
  pointer-events: none;
  z-index: 0;
}
.sec-bleed-from-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, transparent, rgba(14,17,23,0.15));
  pointer-events: none;
  z-index: 0;
}

/* Transition accent line */
.sec-transition-line {
  position: relative;
}
.sec-transition-line > .transition-rule {
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(60,120,160,0.2) 30%, rgba(60,120,160,0.2) 70%, transparent);
  z-index: 2;
}
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4 { color: var(--carbon); }
.bg-light .eyebrow { color: var(--sienna); }
.bg-light .lead { color: var(--wg-600); }

/* Accent: same dark bg, subtle top/bottom line — not a colored box */
.bg-accent {
  background: var(--deep);
  color: var(--wg-200);
  box-shadow: inset 0 1px 0 var(--wg-800), inset 0 -1px 0 var(--wg-800);
}
.bg-accent h1, .bg-accent h2, .bg-accent h3 { color: var(--white); }
.bg-accent .eyebrow { color: var(--blush); }
.bg-accent .lead { color: var(--wg-400); }

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--white); font-weight: 800; line-height: 1.06; }
h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.045em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
h4 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.35; font-weight: 700; }
.display { font-size: clamp(72px, 10vw, 140px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; color: var(--clay); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blush); margin-bottom: 12px; }
.eyebrow-credential { font-family: 'JetBrains Mono', monospace; font-weight: 500; letter-spacing: 0.1em; font-size: 11px; }
.lead { font-size: clamp(16px, 1.3vw, 18px); font-weight: 300; color: var(--wg-400); line-height: 1.65; max-width: 540px; }
.body-text { font-size: 15px; color: var(--wg-400); line-height: 1.7; max-width: 600px; }
.bg-light .body-text { color: var(--wg-600); }
.body-text a { color: var(--sienna); text-decoration: underline; text-decoration-color: rgba(184,74,60,0.35); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.body-text a:hover { color: var(--clay); text-decoration-color: rgba(184,74,60,0.7); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 15px; font-weight: 700; border-radius: 8px; transition: all 0.2s; white-space: nowrap; }
.btn-primary { background: var(--sienna); color: var(--white); }
.btn-primary:hover { background: var(--clay); transform: translateY(-1px); }
.btn-ghost { color: var(--wg-200); }
.btn-ghost:hover { color: var(--white); }
.btn-ghost .arrow { display: inline-block; transition: transform 0.2s; }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.bg-light .btn-ghost { color: var(--wg-600); }
.bg-light .btn-ghost:hover { color: var(--carbon); }

/* ══════════════════════════════════════════
   SURFACE TEXTURES (Celmins effect — real images)
   ══════════════════════════════════════════ */
.surface {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background-size: cover; background-position: center;
}

/* Surface textures — only bg-ocean.jpg is active */
.surface-ocean { background-image: url('../assets/bg-ocean.jpg'); }

/* Ocean texture on light sections — inverted so it reads as light surface with dark texture */
.surface-ocean-light {
  background-image: url('../assets/bg-ocean.jpg');
  filter: invert(1) brightness(1.1) contrast(0.7);
}

/* Oil sheen bloom container */
.sheen {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none; mix-blend-mode: normal;
}
.sheen-light { mix-blend-mode: normal; }
.sheen-bloom { position: absolute; border-radius: 50%; }

/* Vignette / edge control */
.surface-vignette { position: absolute; inset: 0; pointer-events: none; }

/* ══════════════════════════════════════════
   NEWS BANNER
   ══════════════════════════════════════════ */
.news-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 24px;
  background: var(--sienna);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 101;
  margin-top: var(--nav-height);
}
.news-banner:hover { background: var(--clay); }
.news-banner-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  flex-shrink: 0;
}
.news-banner-text { line-height: 1.3; }
@media (max-width: 600px) {
  .news-banner { font-size: 12px; gap: 8px; padding: 10px 16px; }
}

/* ══════════════════════════════════════════
   NAV
   ══════════════════════════════════════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-height); display: flex; align-items: center; transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(14,17,23,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,0.04); }
.nav .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo { height: 26px; filter: invert(1); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; list-style: none; flex: 1; justify-content: flex-start; gap: 40px; padding-left: 64px; }
.nav-links > li:last-child { margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--wg-200); transition: color 0.2s; letter-spacing: -0.01em; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.nav-cta {
  font-weight: 700;
  color: var(--white);
  background: var(--sienna);
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s;
}
.nav-links a.nav-cta:hover {
  background: var(--clay);
  color: var(--white);
  transform: translateY(-1px);
}
.nav-toggle { display: none; width: 24px; height: 24px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--wg-200); border-radius: 1px; transition: all 0.3s; transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(2.5px,2.5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(2.5px,-2.5px); }
.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--deep); z-index: 99; padding: 40px 24px; }
.mobile-menu.open { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a { font-size: 20px; font-weight: 600; color: var(--wg-200); padding: 16px 0; border-bottom: 1px solid var(--wg-800); }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--white); }
@media (max-width: 768px) { .nav-links { display: none; } .nav-toggle { display: flex; } }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer { background: rgba(20,20,20,1); border-top: 1px solid var(--wg-800); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.footer-brand p { font-size: 14px; color: var(--wg-400); line-height: 1.7; max-width: 280px; margin-top: 16px; }
.footer-logo { height: 22px; filter: invert(1); }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wg-400); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--wg-400); margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--wg-200); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--wg-800); font-size: 13px; color: var(--wg-400); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero { padding-top: calc(var(--nav-height) + 120px); padding-bottom: 120px; position: relative; overflow: hidden; min-height: 85vh; display: flex; align-items: center; }
@media (max-width: 768px) { .hero { padding-top: calc(var(--nav-height) + 60px); padding-bottom: 60px; min-height: auto; } }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 40px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* (datavant-badge and gap-ring-mark removed — badge was removed from hero, mark not yet deployed) */

/* ══════════════════════════════════════════
   USE CASE CARDS — input → output
   ══════════════════════════════════════════ */
.use-case-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.use-case-card {
  display: grid;
  grid-template-columns: 2fr auto 3fr;
  gap: 0;
  align-items: center;
  padding: 0;
}
.use-case-input {
  padding: 28px 24px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px 0 0 12px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.use-case-query {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  color: var(--wg-200);
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0;
}
.use-case-query--sql .sql-kw {
  color: var(--blush);
}
.use-case-input-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--wg-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 12px;
}
.use-case-divider {
  padding: 0 16px;
  color: var(--wg-600);
  font-size: 18px;
}
.use-case-output {
  padding: 28px 28px;
}
.use-case-output p {
  font-size: 15px;
  color: var(--wg-400);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .use-case-card { grid-template-columns: 1fr; }
  .use-case-input { border-radius: 12px 12px 0 0; }
  .use-case-divider { padding: 8px 24px; text-align: left; }
  .use-case-output { padding: 20px 24px; }
}

/* Three-up vertical use-case cards */
.use-case-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.use-case-trio .use-case-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.use-case-trio .use-case-input {
  border-radius: 12px 12px 0 0;
  padding: 24px 24px 16px;
  flex: 1;
}
.use-case-trio .use-case-divider { display: none; }
.use-case-trio .use-case-output {
  padding: 16px 24px 24px;
}
.use-case-trio .use-case-output p { font-size: 14px; }

@media (max-width: 1024px) {
  .use-case-trio { grid-template-columns: 1fr; }
  .use-case-trio .use-case-card { display: grid; grid-template-columns: 2fr auto 3fr; }
  .use-case-trio .use-case-input { border-radius: 12px 0 0 12px; padding: 28px 24px; flex: unset; }
  .use-case-trio .use-case-divider { display: block; }
  .use-case-trio .use-case-output { padding: 28px 28px; }
  .use-case-trio .use-case-output p { font-size: 15px; }
}
@media (max-width: 768px) {
  .use-case-trio .use-case-card { grid-template-columns: 1fr; }
  .use-case-trio .use-case-input { border-radius: 12px 12px 0 0; }
  .use-case-trio .use-case-divider { padding: 8px 24px; text-align: left; }
  .use-case-trio .use-case-output { padding: 20px 24px; }
}
@media (max-width: 480px) {
  .use-case-trio { gap: 16px; }
  .use-case-trio .use-case-input { padding: 24px 20px; }
  .use-case-trio .use-case-output { padding: 20px 20px 24px; }
  .use-case-trio .use-case-output p { font-size: 14px; }
}

/* Bridge — full-width transition statement between sections */
/* Bridge — gradient transition from dark to light */
.bridge-gradient {
  height: 80px;
  background: linear-gradient(to bottom, var(--deep) 0%, var(--wg-50) 100%);
}
.page-warm .bridge-gradient {
  background: linear-gradient(to bottom, var(--deep-warm) 0%, var(--wg-50) 100%);
}
.bridge-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  color: var(--wg-600);
  letter-spacing: -0.02em;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 56px;
}

/* CTA compliance beat — pre-CTA credential line */
.cta-compliance-beat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--blush);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  opacity: 0.85;
}

.page-hero { padding-top: calc(var(--nav-height) + 80px); padding-bottom: 64px; position: relative; overflow: hidden; }
.sec-bleed, .page-hero--bleed { overflow: visible; }
.page-hero--tall { padding-top: calc(var(--nav-height) + 120px); padding-bottom: 48px; min-height: 50vh; display: flex; align-items: center; }
.page-hero-visual {
  position: absolute;
  left: 65%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
@media (max-width: 900px) {
  .page-hero-visual { display: none; }
  .page-hero--tall { min-height: auto; }
}
.page-hero h1 { margin-bottom: 12px; }

/* ══════════════════════════════════════════
   GRIDS
   ══════════════════════════════════════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 768px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card { background: linear-gradient(180deg, #222 0%, #1a1a1a 100%); border: 1px solid var(--wg-800); border-radius: 12px; padding: 32px 28px; transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s; box-shadow: 0 2px 12px rgba(0,0,0,0.2); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: linear-gradient(90deg, transparent 0%, rgba(60,120,160,0.25) 20%, rgba(60,120,160,0.25) 80%, transparent 100%); z-index: 1; }
.card:hover { border-color: var(--wg-600); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.bg-light .card { background: var(--white); border-color: var(--wg-100); border-left: 3px solid var(--sienna); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.bg-light .card:hover { border-color: var(--wg-100); border-left-color: var(--clay); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.bg-light .card p { color: var(--wg-600); }
.card h3, .card h4 { margin-bottom: 8px; }
.card-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.card-title-row h3 { margin-bottom: 0; }
.card-title-row .tag { margin-bottom: 0; }
.card p { font-size: 14px; color: var(--wg-400); line-height: 1.65; }
.card-icon { width: 44px; height: 44px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; background: rgba(184,74,60,0.08); border-radius: 10px; }
.card-icon svg { width: 22px; height: 22px; }

/* Tags */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; margin-bottom: 16px; }
.tag-soon { background: rgba(212,147,58,0.12); color: var(--warning); }
.tag-road { background: rgba(58,90,124,0.12); color: var(--slate-blue); }
.tag-dot { width: 6px; height: 6px; border-radius: 50%; }
.tag-soon .tag-dot { background: var(--warning); }
.tag-road .tag-dot { background: var(--slate-blue); }

/* ══════════════════════════════════════════
   PROBLEM SPLIT LAYOUT — 40/60
   ══════════════════════════════════════════ */
.problem-split {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
  align-items: center;
}
.problem-copy { max-width: 420px; }
@media (max-width: 900px) {
  .problem-split { grid-template-columns: 1fr; gap: 40px; }
  .problem-copy { max-width: none; }
}

/* ══════════════════════════════════════════
   SOLUTION LAYOUT — intro left, journey block right
   ══════════════════════════════════════════ */
.solution-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .solution-wide { padding: 0 40px; } }
.solution-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
.solution-copy {
  max-width: 380px;
  padding-top: 28px;
}
.solution-copy .eyebrow { margin-bottom: 10px; }
.solution-copy h2 { margin-bottom: 16px; }
.solution-copy .lead { margin-top: 0; }
@media (max-width: 900px) {
  .solution-split { grid-template-columns: 1fr; gap: 40px; }
  .solution-copy { max-width: none; position: static; }
}

/* ── Journey Block — single container, two steps ── */
.journey-block {
  background: linear-gradient(180deg, #222 0%, #1a1a1a 100%);
  border: 1px solid var(--wg-800);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}
.journey-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(60,120,160,0.25) 20%, rgba(60,120,160,0.25) 80%, transparent 100%);
  z-index: 1;
}
.journey-step {
  padding: 28px 28px;
}
.journey-step--02 {
  padding-left: 40px;
}
.journey-step--03 {
  padding-left: 80px;
}
.journey-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.journey-step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--blush);
  letter-spacing: 0.04em;
}
.journey-step-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--wg-400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.journey-step-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--warning);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-left: auto;
}

/* Two-column interior: desc left, list right */
.journey-step-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.journey-step h3 {
  margin-bottom: 8px;
}
.journey-step-desc {
  font-size: 14px;
  color: var(--wg-400);
  line-height: 1.65;
}
.journey-step .early-access {
  margin-top: 12px;
}
.journey-list-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--wg-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Directional divider — neutral, fades in from left */
.journey-divider {
  height: 1px;
  margin: 0 28px 0 40px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.08) 100%);
}

@media (max-width: 600px) {
  .journey-step-body { grid-template-columns: 1fr; gap: 16px; }
  .journey-step--02 { padding-left: 28px; }
  .journey-step--03 { padding-left: 48px; }
  .journey-divider { margin-left: 28px; }
}

/* ── Journey Block — horizontal variant (lightweight steps) ── */
/* Use when steps are a label + one sentence. Vertical is for dense interiors. */
.journey-block--horizontal {
  display: flex;
}
.journey-block--horizontal .journey-step {
  flex: 1;
  padding: 28px 24px;
}
.journey-block--horizontal .journey-step-body {
  display: block; /* override the 1fr 1fr grid */
}
.journey-block--horizontal .journey-divider {
  width: 1px;
  height: auto;
  margin: 16px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
}
@media (max-width: 768px) {
  .journey-block--horizontal { flex-direction: column; }
  .journey-block--horizontal .journey-divider {
    width: auto;
    height: 1px;
    margin: 0 28px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  }
}

/* Journey block — light section overrides */
.bg-light .journey-block {
  background: var(--white);
  border-color: var(--wg-100);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.bg-light .journey-block::before {
  background: linear-gradient(90deg, transparent 0%, rgba(184,74,60,0.2) 20%, rgba(184,74,60,0.2) 80%, transparent 100%);
}
.bg-light .journey-step-num { color: var(--sienna); }
.bg-light .journey-step-label { color: var(--wg-600); }
.bg-light .journey-step-desc { color: var(--wg-600); }
.bg-light .journey-divider {
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.06) 30%, rgba(0,0,0,0.06) 100%);
}
.bg-light .journey-block--horizontal .journey-divider {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.06) 50%, transparent 100%);
}
@media (max-width: 768px) {
  .bg-light .journey-block--horizontal .journey-divider {
    background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.06) 50%, transparent 100%);
  }
}

/* ── When To Use What — two-card side by side ── */
.wtu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) { .wtu-grid { grid-template-columns: 1fr; } }
.wtu-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.wtu-list {
  list-style: none;
}
.wtu-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  color: var(--wg-400);
  line-height: 1.65;
  padding: 10px 0;
}
.wtu-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sienna);
  opacity: 0.6;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Security Badges — real SOC2 + HIPAA certification imagery ── */
.security-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
.security-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.security-badge-visual {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}
.security-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.security-badge-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--wg-200);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.4;
}
.security-badge-desc {
  font-size: 12px;
  color: var(--wg-400);
  letter-spacing: 0.01em;
}
.security-badge-divider {
  width: 1px;
  height: 88px;
  background: rgba(255,255,255,0.1);
}
@media (max-width: 600px) {
  .security-badges { flex-direction: column; gap: 32px; }
  .security-badge-divider { width: 48px; height: 1px; }
  .security-badge-visual { width: 72px; height: 72px; }
}
.bg-light .security-badge-label { color: var(--wg-800); }
.bg-light .security-badge-divider { background: rgba(0,0,0,0.1); }

/* Deployment pill — mono-typography pill under the data flow diagram, color-rhymed with the central circle node (subtle sienna tint + border). */
.deploy-pill-wrap {
  text-align: center;
  margin-top: 48px;
}
.deploy-pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: rgba(184,74,60,0.06);
  border: 1px solid rgba(184,74,60,0.20);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--wg-800);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  max-width: calc(100% - 48px);
}
.deploy-pill-text { white-space: nowrap; }
.deploy-pill-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sienna);
  margin: 0 14px;
  flex-shrink: 0;
  opacity: 0.7;
}
@media (max-width: 600px) {
  .deploy-pill {
    flex-direction: column;
    padding: 14px 24px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .deploy-pill-text { white-space: normal; text-align: center; }
  .deploy-pill-dot { margin: 8px 0; }
}

/* ══════════════════════════════════════════
   SCALE TIERS — Pain section structural visual
   Single-row per tier: volume | state | density.
   Tier 3 density overflows its column with a
   right-edge mask fade — the clip IS the argument.
   ══════════════════════════════════════════ */
.scale-tiers {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 640px;
}
.scale-tier {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scale-volume { flex: 0 0 180px; color: var(--wg-800); }
.scale-volume-unit { color: var(--wg-400); font-weight: 400; }
.scale-state { flex: 0 0 80px; color: var(--wg-600); }
.scale-state--alarm { color: var(--sienna); }

.scale-density {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  overflow: hidden;
  position: relative;
}
.scale-density--overflow {
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent 100%);
          mask-image: linear-gradient(to right, #000 78%, transparent 100%);
}
.scale-density-bar {
  height: 100%;
  background-image: radial-gradient(circle, currentColor 2.5px, transparent 3px);
  background-size: 12px 100%;
  background-repeat: repeat-x;
  background-position: left center;
  transform-origin: left center;
}
.scale-density-bar[data-scale="low"]  { width: 30%;  color: var(--wg-600); }
.scale-density-bar[data-scale="mid"]  { width: 72%;  color: var(--carbon); }
.scale-density-bar[data-scale="high"] { width: 200%; color: var(--sienna); }

/* Scroll-in: tiers animate in sequence once parent .fade-in becomes visible.
   JS-gated so no-JS renders them at final state. */
.js .scale-density-bar {
  transform: scaleX(0);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.visible .scale-tier:nth-child(1) .scale-density-bar { transform: scaleX(1); transition-delay: 0.2s; }
.fade-in.visible .scale-tier:nth-child(2) .scale-density-bar { transform: scaleX(1); transition-delay: 0.8s; }
.fade-in.visible .scale-tier:nth-child(3) .scale-density-bar { transform: scaleX(1); transition-delay: 1.6s; transition-duration: 1.3s; }

@media (max-width: 900px) {
  .scale-tiers { max-width: none; }
  .scale-tier { gap: 14px; font-size: 10px; }
  .scale-volume { flex: 0 0 140px; }
  .scale-state { flex: 0 0 68px; }
  .scale-density { height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .scale-density-bar { transform: scaleX(1); transition: none; }
}

/* ══════════════════════════════════════════
   PROOF TICKER — full-bleed horizontal strip
   ══════════════════════════════════════════ */
.proof-ticker-wrap {
  width: 90vw;
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 0;
  border-top: 1px solid var(--wg-200);
  border-bottom: 1px solid var(--wg-200);
}
.proof-ticker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.proof-ticker-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--carbon);
  padding: 0 48px;
}
.proof-ticker-mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}
.proof-ticker-divider {
  width: 1px;
  height: 32px;
  background: var(--wg-200);
  flex-shrink: 0;
}
.bg-dark .proof-ticker-wrap { border-top-color: rgba(255,255,255,0.1); border-bottom-color: rgba(255,255,255,0.1); }
.bg-dark .proof-ticker-item { color: var(--wg-200); }
.bg-dark .proof-ticker-divider { background: rgba(255,255,255,0.15); }
.proof-ticker-prefix {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--wg-600);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bg-dark .proof-ticker-prefix { color: var(--wg-400); }
@media (max-width: 768px) {
  .proof-ticker-wrap { width: 100%; padding: 24px 24px; }
  .proof-ticker { flex-direction: column; gap: 16px; }
  .proof-ticker-divider { width: 48px; height: 1px; }
  .proof-ticker-item { padding: 0; }
}

/* ══════════════════════════════════════════
   TESTIMONIAL
   ══════════════════════════════════════════ */
.testimonial {
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 40px 40px 32px;
  background: var(--white);
  border: 1px solid var(--wg-100);
  border-left: 3px solid var(--sienna);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}
.testimonial-mark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--sienna);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  left: 28px;
}
.testimonial-quote {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--wg-800);
  margin-bottom: 20px;
}
.testimonial-attr {
  margin-bottom: 12px;
}
.testimonial-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--carbon);
}
.testimonial-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--wg-400);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.testimonial-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sienna);
  text-decoration: underline;
  text-decoration-color: rgba(184,74,60,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.testimonial-link:hover {
  color: var(--clay);
  text-decoration-color: var(--clay);
}
.testimonial-link svg {
  width: 14px;
  height: 14px;
}

/* ══════════════════════════════════════════
   DATA FLOW VISUALIZATION
   ══════════════════════════════════════════ */
.data-flow { margin-top: 96px; }

/* ── Narration ── */
.df-narration {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding-top: 16px; margin-bottom: 40px; min-height: 24px;
}
.df-narr {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--wg-400);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.df-narr.df-visible { opacity: 1; transform: translateY(0); }
.df-narr-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--clay); flex-shrink: 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.df-narr-dot.df-visible { opacity: 0.6; }

/* ── Canvas ── */
.df-canvas { position: relative; width: 100%; overflow: visible; }
.df-edge-layer { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; }

/* ── Terminal dots (SVG) ── */
.df-terminal { transition: opacity 0.4s ease, r 0.4s ease; }
.df-term-dim { fill: rgba(255,255,255,0.12); }
.df-term-sienna { fill: rgba(184,74,60,0.35); }
.df-term-green { fill: rgba(74,158,107,0.35); }

/* ── Nodes (HTML) — gradient fills, accent lines, inner shadows ── */
.df-node {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(34,34,34,1) 0%, rgba(24,24,24,1) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  /* Top accent line via pseudo-element */
  overflow: hidden;
}
.df-node::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent 100%);
  z-index: 3;
}
.df-node.df-active {
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2), 0 0 20px rgba(255,255,255,0.03);
}

/* Node text — consistent recipe */
.df-node-label {
  font-size: 13px; font-weight: 700; color: var(--white);
  line-height: 1.2;
}
.df-node-sub {
  font-size: 10px; color: var(--wg-400); margin-top: 4px;
  line-height: 1.3;
}

/* ── Product nodes (synthetic, runtime) — teal accent, inner shadow ── */
.df-node--synthetic,
.df-node--runtime {
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 1px 4px rgba(0,0,0,0.3);
}
.df-node--synthetic::before,
.df-node--runtime::before {
  background: linear-gradient(90deg, transparent 0%, rgba(60,120,160,0.35) 20%, rgba(60,120,160,0.35) 80%, transparent 100%);
}
.df-node--synthetic.df-active,
.df-node--runtime.df-active {
  border-color: rgba(60,120,160,0.4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 1px 4px rgba(0,0,0,0.3), 0 0 24px rgba(60,120,160,0.08);
}

/* ── Source node — subdued ── */
.df-node--source {
  background: rgba(22,22,26,1);
  border-color: rgba(255,255,255,0.04);
  box-shadow: none;
}
.df-node--source::before { background: none; }
.df-node--source .df-node-label { opacity: 0.7; }

/* ── Expert determination circle boundary ── */
.df-circle-main {
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.25)) drop-shadow(0 0 30px rgba(184,74,60,0.1));
}
.df-circle-label {
  position: absolute;
  z-index: 2;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.df-circle-label-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  color: var(--blush);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.8s ease, color 0.8s ease;
}
.df-circle-label .df-expert-cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  color: var(--blush);
  letter-spacing: 0.04em;
  opacity: 0.4;
  transition: opacity 0.8s ease;
}
.df-circle-label--active .df-circle-label-title {
  color: var(--white);
  opacity: 1;
  text-shadow: 0 0 20px rgba(184,74,60,0.4), 0 0 40px rgba(184,74,60,0.15);
}
.df-circle-label--active .df-expert-cite {
  color: var(--white);
  opacity: 0.7;
  text-shadow: 0 0 12px rgba(184,74,60,0.3);
}

/* ── Output nodes — green accent, inner shadow ── */
.df-node--output-syn,
.df-node--output-real {
  background: linear-gradient(180deg, rgba(30,30,30,1) 0%, rgba(22,22,22,1) 100%);
  border-color: rgba(74,158,107,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 3px rgba(0,0,0,0.25);
}
.df-node--output-syn::before,
.df-node--output-real::before {
  background: linear-gradient(90deg, transparent 0%, rgba(74,158,107,0.3) 20%, rgba(74,158,107,0.3) 80%, transparent 100%);
}
.df-node--output-syn.df-active,
.df-node--output-real.df-active {
  border-color: rgba(74,158,107,0.45);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 3px rgba(0,0,0,0.25), 0 0 20px rgba(74,158,107,0.08);
}
.df-out-check {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 500; color: #6BC48D;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.df-out-label {
  font-size: 11px; font-weight: 700; color: var(--white); margin-top: 3px; opacity: 0.8;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .data-flow { margin-top: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .df-canvas { min-width: 700px; }
}

/* ══════════════════════════════════════════
   PRODUCT DATA FLOW — Light variant
   Full diagram with gradient circle, frosted
   glass product nodes, subdued external nodes.
   ══════════════════════════════════════════ */
.pdf-data-flow {
  margin-top: 48px;
  contain: layout paint;
  isolation: isolate;
}
@media (max-width: 768px) {
  .pdf-data-flow { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pdf-data-flow .pdf-canvas { min-width: 720px; }
}
/* Pre-lit state: show nodes as active before animation JS takes over */
.pdf-prelit .pdf-node { background: rgba(255,255,255,0.70); border-color: rgba(184,74,60,0.15); border-left-color: rgba(184,74,60,0.45); }
.pdf-prelit .pdf-node .pdf-node-label { color: var(--wg-800); }
.pdf-prelit .pdf-node--source { background: var(--wg-50); border-color: var(--wg-200); }
.pdf-prelit .pdf-node--output-syn,
.pdf-prelit .pdf-node--output-real { border-color: rgba(74,158,107,0.35); }
.pdf-narration {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding-top: 16px; margin-bottom: 40px; min-height: 24px;
}
.pdf-narr {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--wg-600);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pdf-narr.pdf-visible { opacity: 1; transform: translateY(0); }
.pdf-narr-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--sienna); flex-shrink: 0;
  opacity: 0; transition: opacity 0.6s ease;
}
.pdf-narr-dot.pdf-visible { opacity: 0.6; }

.pdf-canvas { position: relative; width: 100%; overflow: visible; }
.pdf-edge-layer { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; }

/* Bloom halo behind circle — base layer is the dim resting state, ::before is the bright flash layer that crossfades on top via opacity (GPU-friendly, no background repaints) */
.pdf-circle-bloom {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,74,60,0.14) 0%, rgba(184,74,60,0.08) 25%, rgba(184,74,60,0.03) 55%, transparent 80%);
  pointer-events: none; z-index: 0;
  transition: transform 0.8s ease;
  will-change: transform;
}
.pdf-circle-bloom::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,74,60,0.26) 0%, rgba(184,74,60,0.14) 25%, rgba(184,74,60,0.05) 55%, transparent 80%);
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
  pointer-events: none;
}
.pdf-bloom-flash {
  transform: scale(1.06);
}
.pdf-bloom-flash::before {
  opacity: 1;
}

.pdf-terminal { transition: all 0.4s ease; }
.pdf-term-sienna { fill: rgba(184,74,60,0.3); }
.pdf-term-dim { fill: rgba(0,0,0,0.06); }
.pdf-term-green { fill: rgba(74,158,107,0.25); }

/* Product nodes — opaque tinted white inside the circle (no backdrop-filter, avoids per-frame GPU recapture) */
.pdf-node {
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-radius: 10px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(184,74,60,0.10);
  border-left: 2px solid rgba(184,74,60,0.30);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
}
.pdf-node::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(184,74,60,0.08) 20%, rgba(184,74,60,0.08) 80%, transparent 100%);
  z-index: 3;
}
.pdf-node.pdf-active {
  background: rgba(255,255,255,0.70);
  border-color: rgba(184,74,60,0.15);
  border-left-color: rgba(184,74,60,0.45);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.pdf-node.pdf-active .pdf-node-label { color: var(--wg-800); }
.pdf-node-label { font-size: 12px; font-weight: 600; color: var(--wg-600); line-height: 1.2; transition: color 0.5s ease; }
.pdf-node-sub { font-size: 9px; color: var(--wg-400); margin-top: 4px; line-height: 1.3; }

/* External nodes — subdued, peripheral */
.pdf-node--source {
  background: var(--wg-50); backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid var(--wg-200); border-left: 1px solid var(--wg-200); box-shadow: none;
}
.pdf-node--source::before { background: none; }
.pdf-node--source .pdf-node-label { color: var(--wg-400); font-weight: 500; }
.pdf-node--source .pdf-node-sub { color: var(--wg-400); opacity: 0.7; }
.pdf-node--source.pdf-active { background: var(--wg-50); border-color: var(--wg-200); box-shadow: none; }
.pdf-node--source.pdf-active .pdf-node-label { color: var(--wg-600); }

.pdf-node--output-syn,
.pdf-node--output-real {
  background: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 1px solid rgba(74,158,107,0.12); border-left: 1px solid rgba(74,158,107,0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.pdf-node--output-syn::before,
.pdf-node--output-real::before {
  background: linear-gradient(90deg, transparent 0%, rgba(74,158,107,0.15) 20%, rgba(74,158,107,0.15) 80%, transparent 100%);
}
.pdf-node--output-syn.pdf-active,
.pdf-node--output-real.pdf-active {
  border-color: rgba(74,158,107,0.3);
}
.pdf-out-check {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 500; color: var(--success);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pdf-out-label {
  font-size: 11px; font-weight: 600; color: var(--wg-600); margin-top: 3px;
}

/* Circle — gradient fill, strong stroke */
.pdf-circle-main { /* stroke animated via Web Animations API in JS */ }
.pdf-circle-outer { transition: stroke-opacity 0.8s ease; }
.pdf-circle-outer.pdf-circle-flash { stroke-opacity: 0.25; }

/* Label — inside circle, centered between nodes */
.pdf-circle-label {
  position: absolute; z-index: 2;
  transform: translateX(-50%);
  text-align: center; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.pdf-circle-label-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  color: var(--sienna);
  letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.8s ease, color 0.8s ease, text-shadow 0.8s ease;
}
.pdf-circle-label--active .pdf-circle-label-title {
  color: var(--wg-800); opacity: 1;
  text-shadow: 0 0 20px rgba(184,74,60,0.25);
}

@media (max-width: 768px) {
  .pdf-data-flow { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pdf-canvas { min-width: 740px; overflow: hidden; }
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.cta-section { text-align: center; padding: 140px 0; position: relative; overflow: hidden; }
.cta-section h2 { margin-bottom: 16px; }
.cta-headline { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; }
.cta-section .lead { margin: 0 auto 36px; text-align: center; }
.cta-aside { font-size: 14px; color: var(--wg-400); margin-top: 16px; }
.cta-aside-link { color: var(--blush); text-decoration: underline; text-underline-offset: 2px; }
.cta-aside-link:hover { color: var(--white); }

/* Light CTA variant — for inner pages ending on dark → light */
.cta-section--light { background: var(--wg-50); color: var(--wg-800); }
.cta-section--light .cta-headline { color: var(--wg-800); }
.cta-section--light .lead { color: var(--wg-600); }
.cta-section--light .cta-compliance-beat { color: var(--sienna); }

@media (max-width: 768px) { .cta-section { padding: 80px 0; } }

/* ══════════════════════════════════════════
   CALLOUT (accent stripe section)
   ══════════════════════════════════════════ */
.callout-section { padding: 56px 0; text-align: center; position: relative; overflow: hidden; }

/* ══════════════════════════════════════════
   "WHAT DISAPPEARS" LIST
   ══════════════════════════════════════════ */
.vanish-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vanish-list li { font-size: 14px; color: var(--wg-200); display: flex; align-items: center; gap: 10px; }
.vanish-list .strike { text-decoration: line-through; text-decoration-color: var(--clay); color: var(--wg-400); }
.vanish-list svg { flex-shrink: 0; }

/* ══════════════════════════════════════════
   VANISH BLOCK — animated strikethrough
   ══════════════════════════════════════════ */
.vanish-block {
  padding-left: 72px;
}

.vanish-block-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--wg-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.vanish-list--animated {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vanish-list--animated li {
  display: block;
}
.vanish-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--wg-300, #bbb8b4);
  line-height: 1.3;
  position: relative;
  display: inline;
  transition: color 0.8s ease;
}
.vanish-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2.5px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Staggered — slow, deliberate elimination */
.fade-in.visible .vanish-list--animated li:nth-child(1) .vanish-line { transform: scaleX(1); transition-delay: 1.2s; }
.fade-in.visible .vanish-list--animated li:nth-child(2) .vanish-line { transform: scaleX(1); transition-delay: 2.4s; }
.fade-in.visible .vanish-list--animated li:nth-child(3) .vanish-line { transform: scaleX(1); transition-delay: 3.6s; }
.fade-in.visible .vanish-list--animated li:nth-child(4) .vanish-line { transform: scaleX(1); transition-delay: 4.5s; }
.fade-in.visible .vanish-list--animated li:nth-child(1) .vanish-text { color: var(--wg-600); transition-delay: 1.2s; }
.fade-in.visible .vanish-list--animated li:nth-child(2) .vanish-text { color: var(--wg-600); transition-delay: 2.4s; }
.fade-in.visible .vanish-list--animated li:nth-child(3) .vanish-text { color: var(--wg-600); transition-delay: 3.6s; }
.fade-in.visible .vanish-list--animated li:nth-child(4) .vanish-text { color: var(--wg-600); transition-delay: 4.5s; }

@media (prefers-reduced-motion: reduce) {
  .vanish-line { transform: scaleX(1); transition: none; }
  .vanish-text { color: var(--wg-600); transition: none; }
}

.early-access { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blush); margin-top: 16px; text-decoration: underline; text-decoration-color: rgba(232,152,136,0.3); text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.early-access:hover { color: var(--white); text-decoration-color: rgba(255,255,255,0.4); }
.early-access svg { width: 14px; height: 14px; }

/* ══════════════════════════════════════════
   PRODUCT PAGE
   ══════════════════════════════════════════ */
/* Runtime visual — mock analysis output with de-identification badge */
.runtime-visual { padding-top: 4px; }
.runtime-mock {
  background: var(--white);
  border: 1px solid var(--wg-100);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
  overflow: hidden;
}
.runtime-mock-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--wg-100);
}
.runtime-mock-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wg-400);
}
.runtime-mock-subtitle {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  color: var(--wg-600);
  margin-top: 6px;
}
.runtime-mock-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--carbon);
  line-height: 1.3;
  margin-top: 14px;
}
.runtime-mock-body { padding: 20px 32px; }
.runtime-mock-chart {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.runtime-mock-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  margin-top: 4px;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(0,0,0,0.06);
}
.runtime-mock-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
}
.runtime-mock-stat-key {
  font-size: 9px;
  font-weight: 500;
  color: var(--wg-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.runtime-mock-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--carbon);
}
.runtime-mock-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.runtime-mock-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  background: rgba(74,158,107,0.07);
  border-top: 1px solid rgba(74,158,107,0.18);
}
.runtime-mock-badge-icon {
  color: var(--success);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.runtime-mock-badge-icon svg { width: 26px; height: 26px; }
.runtime-mock-badge-text { flex: 1; min-width: 0; }
.runtime-mock-badge-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--carbon);
  letter-spacing: 0.01em;
}
.runtime-mock-badge-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--wg-600);
  letter-spacing: 0.02em;
  margin-top: 3px;
}
.runtime-mock-badge-link {
  color: var(--sienna);
  font-weight: 600;
  white-space: nowrap;
}

/* Runtime split — copy left, 2×2 grid right (wide container) */
.runtime-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.runtime-copy { padding-top: 8px; }
@media (max-width: 900px) {
  .runtime-split { grid-template-columns: 1fr; gap: 40px; }
}

/* (deploy-row / deploy-card removed — section now uses journey-block) */

/* ══════════════════════════════════════════
   USE CASE CARDS
   ══════════════════════════════════════════ */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.uc-card { background: var(--white); border: 1px solid var(--wg-100); border-left: 3px solid var(--sienna); border-radius: 14px; padding: 36px 28px; transition: border-color 0.2s, transform 0.25s, box-shadow 0.25s; }
.uc-card:hover { border-left-color: var(--clay); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.uc-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.uc-card h3 { margin-bottom: 16px; }
.uc-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.uc-problem .uc-label { color: var(--wg-400); }
.uc-fix .uc-label { color: var(--clay); }
.uc-problem, .uc-fix { margin-bottom: 12px; }
.uc-problem p { font-size: 14px; line-height: 1.6; color: var(--wg-600); }
.uc-fix p { font-size: 14px; line-height: 1.6; color: var(--carbon); }
.uc-stat { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--wg-100); }
.uc-stat-num { font-size: 24px; font-weight: 800; color: var(--sienna); letter-spacing: -0.03em; }
.uc-stat-label { font-size: 13px; color: var(--wg-400); }

/* ══════════════════════════════════════════
   TEAM
   ══════════════════════════════════════════ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.team-card { text-align: center; }
.team-avatar { width: 80px; height: 80px; margin: 0 auto 16px; background: var(--graphite); border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--wg-800); font-size: 20px; font-weight: 700; color: var(--wg-600); }
.team-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.team-role { font-size: 13px; color: var(--wg-400); }

/* ══════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════ */
.contact-card { max-width: 560px; margin: 0 auto; background: var(--graphite); border: 1px solid var(--wg-800); border-radius: 20px; padding: 64px 48px; text-align: center; }
.contact-card h2 { margin-bottom: 16px; font-size: clamp(24px, 3vw, 32px); }
.contact-card .body-text { margin: 0 auto 32px; text-align: center; }
.contact-email { font-size: 14px; color: var(--wg-600); margin-top: 24px; }
.contact-email a { color: var(--clay); text-decoration: underline; text-decoration-color: rgba(212,104,90,0.3); text-underline-offset: 2px; }
.contact-email a:hover { text-decoration-color: var(--clay); }

/* ══════════════════════════════════════════
   PERSONA CARDS (used on inner pages)
   ══════════════════════════════════════════ */
.persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .persona-grid { grid-template-columns: 1fr; } }
.persona-card { background: var(--graphite); border: 1px solid var(--wg-800); border-radius: 12px; padding: 28px 24px; text-align: center; transition: border-color 0.2s, transform 0.25s; display: block; }
.persona-card:hover { border-color: var(--clay); transform: translateY(-2px); }
.persona-card svg { margin: 0 auto 16px; }
.persona-card h4 { margin-bottom: 6px; font-size: 16px; color: var(--white); }
.persona-card p { font-size: 13px; color: var(--wg-200); line-height: 1.5; margin-bottom: 12px; }
.persona-card .persona-link { font-size: 13px; font-weight: 600; color: var(--clay); }
.persona-card:hover .persona-link { color: var(--blush); text-decoration: underline; text-underline-offset: 2px; }

/* ══════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════ */
/* Fade-in only hides content when JS is confirmed available to reveal it.
   Without .js on <html>, content stays visible (no blank sections). */
.js .fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ══════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════ */
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 40px; }
.mt-2xl { margin-top: 64px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.mb-xl { margin-bottom: 40px; }
.mb-2xl { margin-bottom: 64px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ══════════════════════════════════════════
   MANIFESTO (Healthcare AI page)
   Editorial register: larger reading type, narrower prose column,
   display title sized between h1 and .display, mono metadata.

   Sticky-reveal chapter panels: each panel is `position: sticky; top: 0;
   min-height: 100vh` with a dark background fill. As the reader scrolls,
   later panels rise from below and cover the previous one at top=0, creating
   a deck-of-cards advancement through the argument. Mobile falls back to
   natural scroll (sticky disabled).
   ══════════════════════════════════════════ */
/* Scroll indicator — subtle pulsing line at the bottom of panels.
   Uses a real element (.scroll-hint) for reliable rendering in
   sticky flex containers. */
@keyframes scroll-hint {
  0%, 100% { opacity: 0.35; transform: translateX(-50%) rotate(-45deg) translateY(0); }
  50% { opacity: 0.75; transform: translateX(-50%) rotate(-45deg) translateY(6px); }
}

.scroll-hint {
  position: fixed;
  bottom: 44px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-left: 1.5px solid var(--wg-400);
  border-bottom: 1.5px solid var(--wg-400);
  border-right: none;
  border-top: none;
  background: none;
  transform: translateX(-50%) rotate(-45deg);
  animation: scroll-hint 2.2s ease-in-out infinite;
  z-index: 100;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint {
    animation: none;
    opacity: 0.4;
  }
}

.manifesto-hero {
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 96px) 0 56px;
  overflow: hidden;
  background: var(--deep);
}

.page-warm .manifesto-hero { background: var(--deep-warm); }

.manifesto-hero-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.manifesto-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--wg-100);
  margin: 0 0 72px 0;
  max-width: 920px;
}

.manifesto-title::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(60,120,160,0.75), rgba(60,120,160,0.15));
  margin-bottom: 40px;
}

.manifesto-contents {
  max-width: 680px;
}

.manifesto-contents-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wg-600);
  margin: 0 0 18px 0;
}

.manifesto-contents ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--wg-800);
}

.manifesto-contents li {
  border-bottom: 1px solid var(--wg-800);
}

.manifesto-contents-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  padding: 18px 0;
  color: var(--wg-200);
  text-decoration: none;
  transition: color 0.2s;
}

a.manifesto-contents-item:hover {
  color: var(--wg-100);
}

a.manifesto-contents-item:hover .manifesto-contents-num {
  color: var(--sienna);
}

.manifesto-contents-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--wg-400);
  transition: color 0.2s;
}

.manifesto-contents-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.manifesto-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 128px 0;
  overflow: hidden;
  background: var(--deep);
  display: flex;
  align-items: center;
}

.page-warm .manifesto-panel { background: var(--deep-warm); }

.manifesto-panel > .manifesto-prose,
.manifesto-panel > .manifesto-triptych {
  width: 100%;
  position: relative;
  z-index: 2;
}

.manifesto-panel--figure { padding: 64px 0; }

/* Explicit z-index stacking so later panels paint over earlier. */
.manifesto-panel--p1 { z-index: 2; }
.manifesto-panel--p2 { z-index: 3; }
.manifesto-panel--p3 { z-index: 4; }
.manifesto-panel--p4 { z-index: 5; }
.manifesto-panel--p5 { z-index: 6; }
.manifesto-panel--p6 { z-index: 7; }
.manifesto-panel--p7 { z-index: 8; }
.manifesto-panel--p8 { z-index: 9; }
.manifesto-panel--p9 { z-index: 10; }
.manifesto-panel--p10 { z-index: 11; }
.manifesto-panel--p11 { z-index: 12; }
.manifesto-panel--p12 { z-index: 13; }

.manifesto-prose {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.manifesto-prose p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(17px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 1.75;
  color: var(--wg-200);
  margin: 0 0 28px 0;
}

.manifesto-prose p:last-child {
  margin-bottom: 0;
}

.manifesto-prose em {
  font-style: italic;
  color: var(--wg-100);
}

.manifesto-first::first-letter {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  float: left;
  font-size: 78px;
  line-height: 0.88;
  margin: 6px 12px -4px -2px;
  color: var(--wg-100);
  letter-spacing: -0.02em;
}

/* Chapter header (inside prose column, at top of chapter's opening panel) */
.manifesto-chapter-header {
  margin: 0 0 40px 0;
  scroll-margin-top: 96px;
}

.manifesto-chapter-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wg-600);
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.manifesto-chapter-num::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, rgba(60,120,160,0.7), rgba(60,120,160,0.1));
  display: block;
}

.manifesto-chapter-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--wg-100);
  margin: 0;
  max-width: 100%;
}

/* Triptych — three-era comparison figure.
   Three frames stacked vertically at full panel width. Each frame shows
   one era's pipeline state; animation plays on first scroll-into-view.
   A footer line below all three frames carries the throughput insight. */
.manifesto-triptych {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.manifesto-triptych-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.manifesto-triptych-frame {
  display: flex;
  flex-direction: column;
}

.manifesto-triptych-frame + .manifesto-triptych-frame {
  padding-top: 24px;
  border-top: 1px solid var(--wg-800);
}

/* Compare variant — two frames side-by-side instead of stacked.
   Used for the Training vs Inference figure in Chapter 3. */
.manifesto-triptych--compare .manifesto-triptych-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.manifesto-triptych--compare .manifesto-triptych-frame + .manifesto-triptych-frame {
  padding-top: 0;
  border-top: none;
  border-left: 1px solid var(--wg-800);
}

.manifesto-triptych-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--wg-100);
  margin: 0 0 16px 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.manifesto-triptych-label-rate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wg-600);
}

.manifesto-triptych-pipeline {
  display: block;
  width: 100%;
  height: auto;
}

.manifesto-triptych-footer {
  margin: 48px auto 0;
  padding: 28px 24px 0;
  max-width: 720px;
  border-top: 1px solid var(--wg-800);
  text-align: center;
}

.manifesto-triptych-footer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184,74,60,0.75);
  margin: 0 0 4px 0;
}

.manifesto-triptych-footer-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 400;
  color: var(--wg-400);
  margin: 0;
  line-height: 1.55;
}

/* Dot entry animation — dots fade (and moving dots slide in from the left)
   with a subtle stagger when the frame first enters the viewport. Driven by
   the `.visible` class added by ai-readiness.js on first intersection.
   Moving dots (incoming stream) are wrapped in <g class="dot-moving"> along
   with a trailing gradient line; static dots (piled, abandoned, processed)
   fade in place. */
.manifesto-triptych-frame .pipe-dot {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.manifesto-triptych-frame .dot-moving {
  transform: translateX(-30px);
}

.manifesto-triptych-frame.visible .pipe-dot {
  opacity: 1;
}

.manifesto-triptych-frame.visible .dot-moving {
  transform: translateX(0);
}

.manifesto-triptych-frame.visible .pipe-dot[data-delay="0"] { transition-delay: 0.10s; }
.manifesto-triptych-frame.visible .pipe-dot[data-delay="1"] { transition-delay: 0.18s; }
.manifesto-triptych-frame.visible .pipe-dot[data-delay="2"] { transition-delay: 0.26s; }
.manifesto-triptych-frame.visible .pipe-dot[data-delay="3"] { transition-delay: 0.34s; }
.manifesto-triptych-frame.visible .pipe-dot[data-delay="4"] { transition-delay: 0.42s; }
.manifesto-triptych-frame.visible .pipe-dot[data-delay="5"] { transition-delay: 0.50s; }
.manifesto-triptych-frame.visible .pipe-dot[data-delay="6"] { transition-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  .manifesto-triptych-frame .pipe-dot,
  .manifesto-triptych-frame .dot-moving {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Resolved queue — continuous flowing animation ── */
@keyframes flow-dot-traverse {
  from { transform: translateX(-80px); }
  to   { transform: translateX(900px); }
}

.manifesto-resolved-pipeline .flow-dot {
  animation: flow-dot-traverse 5s linear infinite;
  animation-delay: var(--d, 0s);
  animation-play-state: paused;
}

.manifesto-triptych-frame.animating .flow-dot {
  animation-play-state: running;
}

/* Progressive glow — halo fades in as the dot travels left to right.
   Dots enter plain, gain certification glow mid-pipeline, fully
   illuminated by the time they pass through the barrier's gap. */
@keyframes halo-appear {
  0%   { opacity: 0; }
  20%  { opacity: 0; }
  45%  { opacity: 0.5; }
  70%  { opacity: 1; }
  100% { opacity: 1; }
}

.manifesto-resolved-pipeline .flow-halo {
  opacity: 0;
  animation: halo-appear 5s linear infinite;
  animation-delay: var(--d, 0s);
  animation-play-state: paused;
}

.manifesto-triptych-frame.animating .flow-halo {
  animation-play-state: running;
}

@media (prefers-reduced-motion: reduce) {
  .manifesto-resolved-pipeline .flow-dot {
    animation: none;
    opacity: 1;
    transform: translateX(var(--static-x, 400px));
  }
  .manifesto-resolved-pipeline .flow-halo {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 768px) {
  /* Disable sticky-reveal on mobile — panels flow naturally */
  .manifesto-hero,
  .manifesto-panel {
    position: static;
    min-height: auto;
    display: block;
    padding: 88px 0;
  }
  .manifesto-hero {
    padding: calc(var(--nav-height) + 64px) 0 48px;
  }
  .manifesto-panel--figure { padding: 64px 0; }

  .manifesto-title {
    font-size: clamp(36px, 9vw, 56px);
    margin-bottom: 56px;
    max-width: 100%;
  }
  .manifesto-title::before {
    width: 36px;
    margin-bottom: 28px;
  }
  .manifesto-contents-label { margin-bottom: 14px; }
  .manifesto-contents-item {
    grid-template-columns: 44px 1fr;
    padding: 14px 0;
  }
  .manifesto-contents-title { font-size: 15px; }

  .manifesto-prose p { font-size: 17px; line-height: 1.72; }
  .manifesto-first::first-letter {
    font-size: 60px;
    margin: 4px 10px -4px -1px;
  }
  .manifesto-chapter-header { margin-bottom: 32px; }
  .manifesto-chapter-num::before { width: 24px; }
  .manifesto-chapter-title { font-size: clamp(26px, 6.5vw, 34px); }

  .manifesto-triptych { padding: 0 24px; }
  .manifesto-triptych-grid { gap: 32px; }
  .manifesto-triptych-footer { margin-top: 40px; padding-top: 22px; }
  .manifesto-triptych--compare .manifesto-triptych-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .manifesto-triptych--compare .manifesto-triptych-frame + .manifesto-triptych-frame {
    padding-top: 24px;
    border-top: 1px solid var(--wg-800);
    padding-left: 0;
    border-left: none;
  }
  /* Remove blur filter on mobile for resolved queue performance */
  .manifesto-resolved-pipeline .flow-halo { filter: none; }
  /* Hide scroll indicator on mobile */
  .scroll-hint { display: none; }
}
