/* glotiAfrica — Consulting Authority */

:root {
  /* navy palette · green accent · regular density */
  --fg: #13316B;
  --paper: #FBFCFE;
  --slate: #5C6B86;
  --line: rgba(19, 49, 107, 0.10);
  --line-strong: rgba(19, 49, 107, 0.20);
  --soft: #EEF3FA;
  --chip: #1B3F87;
  --accent: #5DBE3C;
  --accent-soft: #E6F5DD;
  --accent-ink: #163307;
  --gutter: 26px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  background: var(--paper);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  --max: 1320px;
  --gut: var(--gutter, 26px);
  background: var(--paper);
  color: var(--fg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ───── Type ───── */
.display, .sh-title, .narrative-h, .feature-h, .flow-h, .trust-h, .final-h {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display em, .final-h em, .narrative-h em {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.mono, .mono-tag, .lr-time, .lr-id, .lr-amt, .lr-status, .key-chip,
.flow-side, .footer-bot .mono {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss02";
}
.mono-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: 0.85;
}
.mono-tag-dim { opacity: 0.5; }
.mono-tag-on-dark { color: var(--paper); opacity: 0.7; }

/* ───── Buttons ───── */
.btn {
  --bh: 38px;
  display: inline-flex; align-items: center; gap: 8px;
  height: var(--bh);
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 0.5px solid transparent;
  transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-lg { --bh: 48px; padding: 0 20px; font-size: 15px; }
.btn-arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--fg);
  color: var(--paper);
}
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-primary.btn-on-dark { background: var(--accent); color: var(--accent-ink); }
.btn-primary.btn-on-dark:hover { background: var(--paper); color: var(--fg); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--fg); color: var(--paper); border-color: var(--fg); }
.btn-ghost-on-dark { color: var(--paper); border-color: rgba(246,244,238,.28); }
.btn-ghost-on-dark:hover { background: var(--paper); color: var(--fg); border-color: var(--paper); }

/* ───── Nav ───── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease, color .35s ease;
}
.nav-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gut);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 56px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--paper);
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 16px;
  transition: color .35s ease;
}
.brand-mark { display: inline-flex; color: var(--paper); transition: color .35s ease; }
.brand-word-em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  font-size: 18px;
  position: relative; top: 1px;
}
.brand-lg { font-size: 19px; }

.nav-links {
  display: flex; gap: 38px; justify-content: center;
  font-size: 17.5px;
}
.nav-links a {
  color: var(--paper); text-decoration: none; opacity: 0.94;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: opacity .2s ease, color .35s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-mono {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  opacity: 0.78 !important;
}
.nav-cta { display: flex; gap: 8px; justify-content: flex-end; }

/* Nav buttons — light treatment over the hero */
.nav .btn-ghost { color: var(--paper); border-color: rgba(246, 244, 238, 0.32); }
.nav .btn-ghost:hover { background: var(--paper); color: var(--fg); border-color: var(--paper); }
.nav .btn-primary { background: var(--accent); color: var(--accent-ink); }
.nav .btn-primary:hover { background: var(--paper); color: var(--fg); }

/* Scrolled nav — dark treatment over paper */
.nav-scrolled .brand,
.nav-scrolled .brand-mark { color: var(--fg); }
.nav-scrolled .nav-links a { color: var(--fg); opacity: 0.85; }
.nav-scrolled .nav-mono { color: var(--fg) !important; opacity: 0.65 !important; }
.nav-scrolled .btn-ghost { color: var(--fg); border-color: var(--line-strong); }
.nav-scrolled .btn-ghost:hover { background: var(--fg); color: var(--paper); border-color: var(--fg); }
.nav-scrolled .btn-primary { background: var(--fg); color: var(--paper); }
.nav-scrolled .btn-primary:hover { background: var(--accent); color: var(--accent-ink); }


/* Brand logo image */
.brand-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; display: block; background: #fff; padding: 2px; }
.brand-lg .brand-logo { width: 32px; height: 32px; }
.brand-logo-on-dark { background: #fff; }
.brand-logo-only { padding: 0; }
.brand-logo-only .brand-logo { border-radius: 12px; padding: 0; }
.nav .brand-logo-only { margin: -8px 0; }
.nav .brand-logo-only .brand-logo { width: 96px; height: 80px; }

/* ───── Mobile menu mechanics ───── */
.nav-collapse { display: contents; }
.nav-hamburger {
  display: none;
  appearance: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  cursor: pointer;
  position: relative;
  z-index: 52;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--paper);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s ease, opacity .25s ease, background .3s ease;
}
.nav-scrolled .nav-hamburger span { background: var(--fg); }
.nav-open .nav-hamburger span { background: var(--paper); }
.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(11, 18, 32, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 48;
}
.nav-open .nav-scrim { opacity: 1; }

/* ───── Hero ───── */
.hero {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 96px var(--gut) 112px;
  color: var(--paper);
  overflow: hidden;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero > .hero-meta, .hero > .hero-grid { max-width: var(--max); width: 100%; margin-left: auto; margin-right: auto; position: relative; z-index: 2; }
.hero .display, .hero .hero-stats dd, .hero .hero-stats dt, .hero .stat-sub, .hero .lede { color: var(--paper); }
.hero .display em { color: var(--accent); }
.hero .mono-tag { color: var(--paper); }
.hero .mono-tag-dim { color: rgba(246,244,238,.65); }
.hero .hero-stats { border-top-color: rgba(246,244,238,.18); }
.hero .hero-meta { border-bottom-color: rgba(246,244,238,.18); }
.hero .btn-ghost { color: var(--paper); border-color: rgba(246,244,238,.32); }
.hero .btn-ghost:hover { background: var(--paper); color: var(--fg); border-color: var(--paper); }
.hero .btn-primary { background: var(--accent); color: var(--accent-ink); }
.hero .btn-primary:hover { background: var(--paper); color: var(--fg); }

.hero-carousel { position: absolute; inset: 0; z-index: 0; background: var(--fg); }
.hc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hc-slide.hc-on { opacity: 1; }
.hc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.hc-slide image-slot { width: 100%; height: 100%; display: block; --image-slot-placeholder-color: rgba(246,244,238,.45); }
.hero-scrim { position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(180deg, rgba(11,18,32,0.10) 0%, rgba(11,18,32,0.25) 45%, rgba(11,18,32,0.78) 100%),
  linear-gradient(90deg, rgba(11,18,32,0.50) 0%, rgba(11,18,32,0.05) 70%); pointer-events: none; }
.hc-controls { position: absolute; right: var(--gut); top: 24px; z-index: 3; display: flex; gap: 8px; }
.hc-dot { appearance: none; width: 28px; height: 4px; padding: 0; border: 0; background: rgba(246,244,238,.30); border-radius: 999px; cursor: pointer; transition: background .25s ease, width .25s ease; }
.hc-dot:hover { background: rgba(246,244,238,.55); }
.hc-dot-on { background: var(--accent); width: 44px; }
.hero-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 0.5px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-grid.hero-field { grid-template-columns: 1fr; }
.hero-field .hero-copy { max-width: min(1080px, 78vw); }
.hero-editorial { grid-template-columns: 1.2fr 1fr; }
.hero-split { grid-template-columns: 1fr 1fr; }

.display {
  font-size: clamp(56px, 7.2vw, 120px);
  line-height: 0.94;
  margin: 0 0 32px;
}
.hero .hero-lede {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  color: rgba(246,244,238,.88);
  max-width: 56ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-lede-em { color: var(--paper); font-weight: 500; }
.lede {
  font-size: 18px; line-height: 1.55;
  color: var(--slate);
  max-width: 36ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

/* Per-slide heading/lede fade-in (driven by React key remount) */
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero .display { animation: hero-text-in .85s cubic-bezier(.2,.7,.2,1) both; }
.hero .hero-lede { animation: hero-text-in .85s cubic-bezier(.2,.7,.2,1) .08s both; }

/* Scroll cue — animated mouse indicator at hero bottom */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 36px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  color: var(--paper);
  text-decoration: none;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color .25s ease, opacity .25s ease, transform .25s ease;
}
.scroll-cue:hover { transform: translate(-50%, 3px); }
.scroll-cue-arrow {
  width: 32px; height: 50px;
  border: 2px solid var(--paper);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 2px 18px rgba(11, 18, 32, 0.35);
}
.scroll-cue-arrow::after {
  content: "";
  position: absolute;
  left: 50%; top: 9px;
  width: 3px; height: 10px;
  background: var(--paper);
  border-radius: 3px;
  transform: translate(-50%, 0);
  animation: scroll-cue-dot 1.9s ease-in-out infinite;
}
@keyframes scroll-cue-dot {
  0%, 100% { transform: translate(-50%, 0); opacity: 1; }
  45%      { transform: translate(-50%, 22px); opacity: 0; }
  46%      { transform: translate(-50%, 0); opacity: 0; }
}
.scroll-cue-label { opacity: 0.92; text-shadow: 0 1px 12px rgba(11, 18, 32, 0.45); }
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-arrow::after { animation: none; }
}
.hero-lede {
  color: rgba(246,244,238,.82);
  font-size: 17px;
  line-height: 1.55;
  max-width: 56ch;
  margin: 0 0 4px;
  text-wrap: pretty;
}
.hero-lede-em { color: var(--paper); font-weight: 500; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 36px;
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 0.5px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.hero-stats dd {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.stat-sub {
  font-size: 13px; color: var(--slate); font-weight: 400;
  letter-spacing: 0;
}

/* Field (rural Kenya photo) */
.field { margin: 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.field image-slot { border: 0.5px solid var(--line-strong); border-radius: 6px; background: var(--soft); overflow: hidden; }
.field-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 4px; }
.field-cap-loc { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); letter-spacing: 0.04em; }
.field-overlay { position: absolute; left: 14px; bottom: 56px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px) saturate(140%); -webkit-backdrop-filter: blur(8px) saturate(140%); border: 0.5px solid var(--line-strong); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 11px; pointer-events: none; }
.fo-row { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.fo-row-dim { color: var(--slate); }
.fo-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); animation: fo-pulse 1.6s ease-in-out infinite; }
@keyframes fo-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }
.fo-row .mono { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.04em; }

/* Plot */
.plot {
  border: 0.5px solid var(--line-strong);
  background: var(--paper);
  border-radius: 6px;
  padding: 18px;
  position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.plot::before {
  content: ""; position: absolute; inset: -1px;
  border: 0.5px solid var(--line);
  border-radius: 6px; pointer-events: none;
  transform: translate(8px, 8px);
  z-index: -1;
}
.plot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.plot-title { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.plot-legend { display: flex; gap: 16px; font-size: 11px; color: var(--slate); font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
.plot-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
.dot-accent { background: var(--accent); }
.dot-fg { background: var(--fg); }
.dot-slate { background: var(--slate); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; vertical-align: baseline; }
.plot-svg { width: 100%; height: 220px; display: block; }
.plot-axes {
  display: grid; grid-template-columns: repeat(5, 1fr);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px; color: var(--slate);
  padding: 4px 0 12px;
  border-bottom: 0.5px solid var(--line);
}
.plot-ledger {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.ledger-row {
  display: grid;
  grid-template-columns: 64px 70px 1fr 80px 84px;
  gap: 10px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  padding: 6px 0;
  border-bottom: 0.5px dashed var(--line);
}
.ledger-row:last-child { border-bottom: 0; }
.lr-time { color: var(--slate); }
.lr-id { color: var(--fg); opacity: 0.7; }
.lr-label { color: var(--fg); }
.lr-amt { text-align: right; font-variant-numeric: tabular-nums; }
.lr-status { text-align: right; }
.lr-settled { color: var(--accent); }
.lr-cleared { color: var(--slate); }

/* Editorial hero */
.editorial { display: flex; flex-direction: column; gap: 28px; }
.ed-quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
}
.ed-pull {
  font-family: "Instrument Serif", serif;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.25;
  margin: 14px 0 8px;
  letter-spacing: -0.01em;
}
.ed-attr { color: var(--slate); font-size: 13px; margin: 0; }
.ed-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); }
.ed-stat { padding: 22px 24px; border-right: 0.5px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ed-stat:last-child { border-right: 0; }
.ed-stat-num {
  font-size: 64px; font-weight: 500; letter-spacing: -0.04em; line-height: 0.9;
  font-feature-settings: "tnum";
}
.ed-stat-num sup { font-size: 22px; font-weight: 400; vertical-align: top; margin-left: 2px; opacity: 0.7; }
.ed-stat-emph .ed-stat-num { color: var(--accent); }
.ed-stat-lbl {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--slate);
}

/* Split hero */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; height: 100%; }
.split-tile { border: 0.5px solid var(--line-strong); border-radius: 6px; aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.split-image { background: var(--soft); }
.ph-stripe {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.04) 14px 15px);
}
.ph-label {
  position: absolute; left: 12px; bottom: 12px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase;
}
.split-mock { background: var(--soft); display: flex; align-items: center; justify-content: center; padding: 18px; }
.phone {
  width: 100%; max-width: 240px;
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.phone-bar { display: flex; justify-content: space-between; padding: 12px 18px 4px; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; }
.phone-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.phone-body { padding: 10px 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.phone-row-hero { display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 0 14px; border-bottom: 0.5px solid var(--line); }
.phone-eyebrow { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 9.5px; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase; }
.phone-amount { font-size: 26px; letter-spacing: -0.02em; margin-top: 4px; font-feature-settings: "tnum"; }
.phone-amount span { color: var(--slate); font-size: 16px; }
.phone-tag { background: var(--accent-soft); color: var(--accent-ink); font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 9.5px; padding: 4px 8px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; }
.phone-card { border: 0.5px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.phone-card-h { display: flex; justify-content: space-between; font-size: 11.5px; }
.phone-card-amt { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
.phone-card-meta { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 9.5px; color: var(--slate); margin-top: 3px; }
.phone-cta { background: var(--fg); color: var(--paper); text-align: center; padding: 10px; border-radius: 999px; font-size: 12px; margin-top: 4px; }

/* ───── Marquee ───── */
.marquee {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gut);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
}
.marquee-row {
  display: flex; flex-wrap: wrap;
  gap: 28px 36px;
  align-items: center;
}
.partner {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  color: var(--slate);
  letter-spacing: -0.005em;
}
.partner-mark { color: var(--slate); display: inline-flex; }

/* ───── Sections ───── */
.section {
  max-width: var(--max);
  margin: 28px auto;
  padding: 64px clamp(28px, 4vw, 56px);
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 24px;
  box-shadow:
    0 12px 40px -10px rgba(19, 49, 107, 0.10),
    0 2px 6px rgba(19, 49, 107, 0.04);
  position: relative;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.section.in { opacity: 1; transform: none; }
.section:hover {
  box-shadow:
    0 18px 56px -10px rgba(19, 49, 107, 0.14),
    0 2px 10px rgba(19, 49, 107, 0.06);
}

/* Sub-card lift-in — driven by parent section's .in */
.section .vision-stat,
.section .feature,
.section .trust-card,
.section .pillar,
.section .engine-card,
.section .market-col,
.section .flow-step,
.section .narrative-col {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .25s ease;
}
.section.in .vision-stat,
.section.in .feature,
.section.in .trust-card,
.section.in .pillar,
.section.in .engine-card,
.section.in .market-col,
.section.in .flow-step,
.section.in .narrative-col { opacity: 1; transform: none; }

/* Stagger children */
.section.in > * > :nth-child(1),
.section.in .vision-stat:nth-child(1),
.section.in .feature:nth-child(1),
.section.in .trust-card:nth-child(1),
.section.in .pillar:nth-child(1),
.section.in .market-col:nth-child(1),
.section.in .flow-step:nth-child(1) { transition-delay: .12s; }
.section.in .vision-stat:nth-child(2),
.section.in .feature:nth-child(2),
.section.in .trust-card:nth-child(2),
.section.in .pillar:nth-child(2),
.section.in .market-col:nth-child(2),
.section.in .flow-step:nth-child(2) { transition-delay: .22s; }
.section.in .vision-stat:nth-child(3),
.section.in .feature:nth-child(3),
.section.in .trust-card:nth-child(3),
.section.in .pillar:nth-child(3),
.section.in .flow-step:nth-child(3) { transition-delay: .32s; }
.section.in .vision-stat:nth-child(4),
.section.in .feature:nth-child(4),
.section.in .trust-card:nth-child(4) { transition-delay: .42s; }
.section.in .narrative-col:nth-child(1) { transition-delay: .15s; }
.section.in .narrative-col:nth-child(3) { transition-delay: .35s; }
.section.in .engine-card:nth-child(1) { transition-delay: .15s; }
.section.in .engine-card:nth-child(3) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  .section, .section .vision-stat, .section .feature, .section .trust-card,
  .section .pillar, .section .engine-card, .section .market-col,
  .section .flow-step, .section .narrative-col {
    opacity: 1; transform: none; transition: none;
  }
}
.sh { display: flex; flex-direction: column; gap: 20px; margin-bottom: 56px; }
.sh-meta { display: flex; gap: 18px; align-items: baseline; }
.sh-meta .mono-tag {
  font-size: 16px;
  letter-spacing: 0.05em;
  opacity: 0.95;
}
.sh-eyebrow { font-size: 15px; color: var(--slate); }
.sh-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sh-title {
  font-size: clamp(40px, 5vw, 80px);
  line-height: 1.02;
  margin: 0;
  max-width: 22ch;
  letter-spacing: -0.028em;
}
.sh-cta {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 0.5px solid var(--line-strong);
  padding-bottom: 4px;
  letter-spacing: 0.02em;
}
.sh-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ───── Narrative ───── */
.narrative {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: stretch;
  gap: 0;
}
.narrative-col {
  padding: 28px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 18px -6px rgba(19, 49, 107, 0.06);
}
.narrative-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}
.narrative-tag {
  display: inline-block;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--slate);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.narrative-tag-on { background: var(--accent-soft); color: var(--accent-ink); }
.narrative-h {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.narrative-col p {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.narrative-col strong { color: var(--fg); font-weight: 500; }
.narrative-rule {
  border-left: 0.5px dashed var(--line-strong);
  margin: 0 auto;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.narrative-arrow {
  width: 36px; height: 36px;
  background: var(--paper);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}

/* failflow / careflow */
.failflow, .careflow {
  display: flex; flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.ff-step, .cf-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  background: var(--soft);
  overflow: hidden;
}
.ff-bar, .cf-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.05);
  z-index: 0;
}
.cf-bar { background: var(--accent-soft); }
.ff-warn { color: var(--fg); }
.ff-warn .ff-bar { background: rgba(200, 40, 40, 0.10); }
.ff-l, .ff-v, .cf-l, .cf-v { position: relative; z-index: 1; }
.ff-v, .cf-v { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.cf-ok { background: var(--accent-soft); }
.cf-ok .cf-v { color: var(--accent-ink); font-weight: 500; }

/* ───── Product ───── */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.feature {
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-content: start;
  box-shadow: 0 4px 18px -6px rgba(19, 49, 107, 0.06);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}
.feature-vis {
  background: var(--soft);
  border: 0.5px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: center;
}
.feature-meta { display: flex; flex-direction: column; gap: 10px; }
.feature-h { font-size: 22px; line-height: 1.2; margin: 0; }
.feature-d { color: var(--slate); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 48ch; }

.fv { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.fv-eyebrow { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.fv-amount { font-size: 36px; letter-spacing: -0.025em; font-weight: 500; font-feature-settings: "tnum"; }
.fv-amount span { color: var(--slate); font-size: 22px; }
.fv-row { display: flex; justify-content: space-between; padding: 6px 0; border-top: 0.5px dashed var(--line); }
.fv-row.fv-row-dim { color: var(--slate); }
.fv-row .mono { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 12px; }
.fv-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 4px 0; }
.fv-bar span { display: block; height: 100%; background: var(--accent); }

/* pharmacy */
.fv-rx { background: var(--paper); border: 0.5px solid var(--line); border-radius: 6px; padding: 12px 14px; }
.rx-line { display: flex; justify-content: space-between; align-items: center; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); letter-spacing: 0.04em; }
.rx-stat { background: var(--accent-soft); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.rx-drug { font-size: 14px; padding: 6px 0; border-top: 0.5px dashed var(--line); display: flex; justify-content: space-between; }
.rx-drug:nth-of-type(2) { border-top: 0.5px dashed var(--line); }
.rx-qty { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--slate); }
.rx-foot { display: flex; justify-content: space-between; padding-top: 8px; margin-top: 4px; border-top: 0.5px solid var(--line); font-size: 11px; color: var(--slate); font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
.fv-route { display: flex; justify-content: space-between; align-items: center; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); padding: 6px 4px 0; }
.route-dots { letter-spacing: 0.4em; color: var(--accent); }

/* consult */
.consult-card { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border: 0.5px solid var(--line); border-radius: 6px; padding: 12px; }
.consult-avatar { width: 36px; height: 36px; border-radius: 999px; background: var(--accent-soft); position: relative; }
.consult-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.06) 6px 7px); }
.consult-name { font-size: 14px; font-weight: 500; }
.consult-spec { font-size: 11.5px; color: var(--slate); margin-top: 2px; }
.consult-live { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 10px; color: var(--accent); letter-spacing: 0.08em; }
.consult-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ct-slot { padding: 9px 10px; border: 0.5px solid var(--line); border-radius: 4px; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11.5px; text-align: center; color: var(--slate); }
.ct-on { background: var(--fg); color: var(--paper); border-color: var(--fg); }

/* monitor */
.mon-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate); letter-spacing: 0.06em; }
.mon-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 80px; padding: 12px 0 8px; border-bottom: 0.5px solid var(--line); }
.mon-bar { background: var(--accent); display: block; min-height: 6px; border-radius: 1px; }
.mon-bar:nth-child(3n) { background: var(--fg); opacity: 0.55; }
.mon-bar:nth-child(5n) { background: var(--slate); }
.mon-legend { display: flex; gap: 14px; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 10.5px; color: var(--slate); letter-spacing: 0.04em; padding-top: 10px; }

/* ───── Flow ───── */
.flow-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding: 32px 0;
}
.flow-axis {
  position: absolute;
  left: 5%; right: 5%;
  top: 70px;
  height: 0.5px;
  background: var(--line-strong);
}
.flow-step {
  position: relative; padding-top: 60px;
}
.flow-step .flow-card {
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 18px -6px rgba(19, 49, 107, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .25s ease;
}
.flow-step:hover .flow-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}
.flow-dot {
  position: absolute; top: 60px; left: 0;
  width: 22px; height: 22px;
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
}
.flow-dot span {
  width: 8px; height: 8px; background: var(--accent); border-radius: 999px;
}
.flow-c .flow-dot span { background: var(--accent); }
.flow-card { padding-top: 18px; }
.flow-meta { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.flow-side { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase; }
.flow-h { font-size: 28px; margin: 0 0 10px; line-height: 1.1; }
.flow-d { color: var(--slate); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 32ch; }

/* ───── Trust ───── */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.trust-card {
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 18px -6px rgba(19, 49, 107, 0.06);
}
.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}
.trust-h { font-size: 19px; margin: 0; line-height: 1.25; }
.trust-d { color: var(--slate); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 48ch; }
.trust-keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.key-chip {
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--fg);
  letter-spacing: 0.04em;
}
/* ───── Final ───── */
.section-final {
  background: var(--fg);
  color: var(--paper);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
  padding: 0;
}
.section-final:hover { box-shadow: none; }
.final-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px var(--gut);
  display: flex; flex-direction: column; gap: 28px;
}
.final-meta { border-bottom: 0.5px solid rgba(246,244,238,.18); padding-bottom: 14px; }
.final-h {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 22ch;
}
.final-h em { color: var(--accent); }
.final-sub { color: rgba(246,244,238,.7); font-size: 18px; max-width: 56ch; line-height: 1.55; margin: 0; }
.final-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ───── Footer ───── */
.footer {
  background: var(--fg);
  color: var(--paper);
  border-top: 0.5px solid rgba(246,244,238,.12);
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gut) 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 36px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; color: var(--paper); }
.footer-brand .brand { color: var(--paper); }
.footer-brand .brand-mark { color: var(--paper); }
.footer-blurb { color: rgba(246,244,238,.6); font-size: 14px; max-width: 28ch; line-height: 1.5; margin: 0; }
.footer-col-h {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  color: rgba(246,244,238,.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(246,244,238,.85); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gut) 28px;
  border-top: 0.5px solid rgba(246,244,238,.12);
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: rgba(246,244,238,.5);
}

/* ───── Grid overlay ───── */
.grid-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 0.5px, transparent 0.5px);
  background-size: calc((100vw - 2 * var(--gut)) / 12) 100%;
  background-position: var(--gut) 0;
  max-width: var(--max);
  left: 50%; transform: translateX(-50%);
  z-index: 1;
  opacity: 0.6;
}

/* ───── Responsive ───── */

/* Narrow desktops & tablets — start scaling type and gutters */
@media (max-width: 1200px) {
  .page { --gut: 22px; }
  .nav-inner { gap: 36px; }
  .nav-links { gap: 30px; font-size: 16px; }
}

/* Tablet — drop the multi-column grids */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .narrative { grid-template-columns: 1fr; }
  .narrative-rule { display: none; }
  .narrative-col, .narrative-col:last-child { padding: 24px; }
  .product-grid, .trust-grid { grid-template-columns: 1fr; }
  .flow-track { grid-template-columns: 1fr; }
  .flow-axis { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .marquee { grid-template-columns: 1fr; }
  .ed-numbers { grid-template-columns: 1fr; }
  .ed-stat { border-right: 0; border-bottom: 0.5px solid var(--line); }
  .section { padding: 48px clamp(20px, 4vw, 36px); margin: 22px auto; border-radius: 22px; }
  .sh { margin-bottom: 36px; gap: 16px; }
  .product-grid, .trust-grid, .vision-grid, .alliance-grid, .market-grid { gap: 14px; }
}

/* ───── Vision ───── */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.vision-stat {
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 16px -6px rgba(19, 49, 107, 0.06);
}
.vision-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}
.vs-num {
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.04em; line-height: 0.9;
  font-weight: 500; font-feature-settings: "tnum";
}
.vs-unit { font-size: 0.45em; vertical-align: top; color: var(--slate); margin-left: 2px; font-weight: 400; }
.vs-lbl {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--slate); line-height: 1.55;
}
.vision-stat-emph .vs-num { color: var(--accent); }
.vision-stat-warn .vs-num { color: var(--fg); position: relative; }
.vision-stat-warn .vs-num::after { content: ""; position: absolute; left: 0; right: 30%; bottom: 14%; height: 2px; background: var(--fg); transform: rotate(-8deg); transform-origin: left; }

.vision-copy {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
  padding-top: 8px;
}
.vision-copy p { color: var(--slate); font-size: 16px; line-height: 1.6; margin: 0; max-width: 56ch; }
.vision-copy .vision-emph { color: var(--fg); font-family: "Instrument Serif", serif; font-size: 22px; line-height: 1.35; font-style: italic; }

/* ───── Engine ───── */
.engine-grid {
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: stretch;
  gap: 0;
}
.engine-card {
  border: 0.5px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
  box-shadow: 0 4px 18px -6px rgba(19, 49, 107, 0.06);
}
.engine-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}
.engine-head { display: flex; justify-content: space-between; align-items: baseline; }
.engine-side { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase; }
.engine-h { font-size: 24px; line-height: 1.2; margin: 0; }
.engine-card p { color: var(--slate); font-size: 15px; line-height: 1.6; margin: 0; }
.engine-card strong { color: var(--fg); font-weight: 500; }
.engine-list { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; }
.engine-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0;
  border-top: 0.5px dashed var(--line);
  font-size: 13.5px;
}
.engine-list li:last-child { border-bottom: 0.5px dashed var(--line); }
.engine-list .mono { color: var(--slate); font-size: 11.5px; }

.engine-bridge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  position: relative;
}
.eb-rail { width: 1px; flex: 1; background: var(--line-strong); min-height: 28px; }
.eb-pill {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 9.5px; letter-spacing: 0.12em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 4px 8px; border-radius: 999px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.engine-result {
  margin-top: 36px;
  padding: 22px 24px;
  background: var(--soft);
  border-radius: 4px;
  display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center;
}
.engine-result p { margin: 0; color: var(--fg); font-size: 15px; line-height: 1.55; max-width: 72ch; }

/* ───── Pillars (Four-Pillar Funding) ───── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--line);
  border-left: 0.5px solid var(--line);
}
.pillar-card {
  border-right: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
}
.pillar-card-anchor { background: var(--soft); }
.pillar-card .engine-h { font-size: 21px; }
.pillar-card p { color: var(--slate); font-size: 14.5px; line-height: 1.55; margin: 0; }
.pillar-card strong { color: var(--fg); font-weight: 500; }
.pillar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }

/* ───── Beneficiaries ───── */
.bene-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 0.5px solid var(--line);
  border-left: 0.5px solid var(--line);
}
.bene-card {
  border-right: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--paper);
}
.bene-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bene-side { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase; }
.bene-name { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 500; }
.bene-body { color: var(--slate); font-size: 15px; line-height: 1.6; margin: 0; max-width: 56ch; }
.bene-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ───── Marketplace ───── */
.market-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.market-col {
  padding: 28px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 18px -6px rgba(19, 49, 107, 0.06);
  display: flex; flex-direction: column; gap: 18px;
}
.market-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}
.market-eyebrow { display: flex; gap: 12px; align-items: baseline; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase; }
.market-h { font-size: 22px; line-height: 1.2; margin: 0; }
.market-col > p { color: var(--slate); font-size: 14.5px; line-height: 1.6; margin: 0; max-width: 52ch; }

.tender { background: var(--soft); border: 0.5px solid var(--line); border-radius: 6px; padding: 16px; margin-top: 6px; }
.tender-head { display: flex; justify-content: space-between; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); padding-bottom: 12px; border-bottom: 0.5px solid var(--line); margin-bottom: 8px; }
.tender-eta { color: var(--accent); }
.tender-rows { display: flex; flex-direction: column; gap: 2px; }
.tender-row {
  display: grid;
  grid-template-columns: 28px 1fr 130px 80px;
  gap: 10px; align-items: center;
  padding: 10px 6px;
  border-bottom: 0.5px dashed var(--line);
  font-size: 13px;
}
.tender-row:last-child { border-bottom: 0; }
.tr-rank { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); }
.tr-meta { color: var(--slate); font-size: 11.5px; }
.tr-stat { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; color: var(--accent); }
.tr-stat-dim { color: var(--slate); }
.tender-row-on { background: var(--paper); border-radius: 4px; }
.tender-row-on .tr-name { font-weight: 500; }

.twin {
  background: var(--soft);
  border: 0.5px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin-top: 6px;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}
.twin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "tag tag" "name name" "p1 p2";
  gap: 6px 12px;
  padding: 14px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 4px;
}
.twin-tag { grid-area: tag; font-size: 10.5px; color: var(--slate); letter-spacing: 0.08em; text-transform: uppercase; }
.twin-name { grid-area: name; font-size: 14px; font-weight: 500; }
.twin-perm {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 4px;
  background: var(--soft);
}
.twin-row .twin-perm:nth-of-type(1) { grid-area: p1; }
.twin-row .twin-perm:nth-of-type(2) { grid-area: p2; }
.twin-perm-on { background: var(--accent-soft); color: var(--accent-ink); }
.twin-perm-off { color: var(--slate); text-decoration: line-through; text-decoration-color: var(--slate); }
.twin-arrow {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--accent);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 0;
}

/* ───── Alliance ───── */
.alliance-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  padding: 26px;
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 4px 18px -6px rgba(19, 49, 107, 0.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .25s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.pillar-meta { display: flex; align-items: baseline; gap: 14px; }
.pillar-role { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); letter-spacing: 0.06em; text-transform: uppercase; }
.pillar-name { font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
.pillar-body { color: var(--slate); font-size: 14.5px; line-height: 1.55; margin: 0; }
.pillar-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px -10px rgba(19, 49, 107, 0.14);
  border-color: var(--line-strong);
}

/* ───── Whitepaper drawer ───── */
.paper {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
}
.paper.paper-open { pointer-events: auto; }
.paper-scrim {
  position: absolute; inset: 0;
  background: rgba(11,18,32,0);
  backdrop-filter: blur(0);
  transition: background .35s ease, backdrop-filter .35s ease;
}
.paper-open .paper-scrim {
  background: rgba(11,18,32,0.45);
  backdrop-filter: blur(4px);
}
.paper-sheet {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(720px, 100vw);
  background: var(--paper);
  border-left: 0.5px solid var(--line-strong);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2,.7,.2,1);
  box-shadow: -32px 0 80px rgba(11,18,32,0.18);
}
.paper-open .paper-sheet { transform: translateX(0); }
.paper-h {
  padding: 28px 36px 20px;
  border-bottom: 0.5px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
}
.paper-h h2 {
  font-size: 28px; letter-spacing: -0.02em; margin: 8px 0 6px;
  font-weight: 500;
}
.paper-sub { color: var(--slate); font-size: 13.5px; margin: 0; max-width: 50ch; line-height: 1.5; }
.paper-x {
  appearance: none; border: 0.5px solid var(--line-strong);
  background: transparent; color: var(--fg);
  width: 32px; height: 32px; border-radius: 999px;
  cursor: pointer; font-size: 13px;
}
.paper-x:hover { background: var(--fg); color: var(--paper); }
.paper-body {
  overflow-y: auto;
  padding: 12px 36px 28px;
  flex: 1;
}
.paper-sect {
  border-bottom: 0.5px solid var(--line);
  padding: 22px 0;
}
.paper-sect:last-of-type { border-bottom: 0; }
.paper-sect > header { display: flex; gap: 14px; align-items: baseline; margin-bottom: 10px; }
.paper-sect > header h3 {
  font-size: 16px; margin: 0; font-weight: 500; letter-spacing: -0.01em;
}
.paper-prose p { color: var(--slate); font-size: 14.5px; line-height: 1.65; margin: 0 0 10px; }
.paper-prose strong { color: var(--fg); font-weight: 500; }
.paper-ol { margin: 4px 0 0; padding-left: 20px; }
.paper-ol li { color: var(--slate); font-size: 14px; line-height: 1.6; padding: 6px 0; }
.paper-ol-roadmap { padding-left: 0; list-style: none; counter-reset: rm; }
.paper-ol-roadmap li {
  counter-increment: rm;
  padding-left: 36px; position: relative;
  border-top: 0.5px dashed var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.paper-ol-roadmap li:first-child { border-top: 0; }
.paper-ol-roadmap li::before {
  content: "P" counter(rm, decimal-leading-zero);
  position: absolute; left: 0; top: 12px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10.5px; color: var(--accent); letter-spacing: 0.06em;
}
.paper-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 0.5px solid var(--line);
  gap: 16px; flex-wrap: wrap;
}
.paper-foot .mono { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; font-size: 11px; color: var(--slate); }

@media (max-width: 980px) {
  .vision-grid { grid-template-columns: 1fr 1fr; }
  .vision-copy { grid-template-columns: 1fr; }
  .engine-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .engine-bridge { flex-direction: row; padding: 14px 0; }
  .eb-pill { writing-mode: horizontal-tb; transform: none; }
  .eb-rail { width: auto; height: 1px; flex: 1; min-height: 0; }
  .market-grid { grid-template-columns: 1fr; }
  .market-col { border-right: 0; border-bottom: 0.5px solid var(--line); }
  .alliance-grid { grid-template-columns: 1fr; }
  .engine-result { grid-template-columns: 1fr; }
  .paper-sheet { width: 100vw; }
  .paper-h, .paper-body { padding-left: 20px; padding-right: 20px; }
}

/* Mobile — hamburger nav, single column everywhere */
@media (max-width: 1024px) {
  .page { --gut: 18px; }
  .nav-inner { padding: 10px var(--gut); grid-template-columns: auto 1fr; gap: 12px; }
  .nav .brand-logo-only .brand-logo { width: 64px; height: 54px; }

  .nav-hamburger { display: block; }
  .nav-scrim { display: block; }

  /* nav-collapse becomes a slide-in sheet */
  .nav-collapse {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(380px, 90vw);
    background: var(--fg);
    color: var(--paper);
    padding: 88px 28px 32px;
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.2, .7, .2, 1);
    z-index: 50;
    overflow-y: auto;
    box-shadow: -24px 0 60px rgba(11, 18, 32, 0.35);
  }
  .nav-open .nav-collapse { transform: translateX(0); }
  .nav-collapse .nav-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    font-size: 19px;
  }
  .nav-collapse .nav-links a {
    color: var(--paper) !important;
    opacity: 0.92;
    padding: 18px 0;
    border-bottom: 0.5px solid rgba(246, 244, 238, 0.15);
    font-weight: 600;
  }
  .nav-collapse .nav-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }
  .nav-collapse .nav-cta .btn {
    height: 50px;
    justify-content: center;
    width: 100%;
    font-size: 15px;
  }
  .nav-collapse .nav-cta .btn-ghost {
    color: var(--paper);
    border-color: rgba(246, 244, 238, 0.28);
  }
  .nav-collapse .nav-cta .btn-ghost:hover {
    background: var(--paper);
    color: var(--fg);
  }
  .nav-collapse .nav-cta .btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
  }
  /* When user is scrolled, body links go dark — keep the open sheet's links light */
  .nav-scrolled .nav-collapse .nav-links a { color: var(--paper) !important; }
  .nav-scrolled .nav-collapse .nav-cta .btn-ghost { color: var(--paper); border-color: rgba(246, 244, 238, 0.28); }

  /* Hero */
  .hero { padding: 84px var(--gut) 84px; min-height: 100vh; }
  .display { font-size: clamp(40px, 9vw, 64px); }
  .hero .hero-lede { font-size: 17px; max-width: 100%; }
  .hero-field .hero-copy { max-width: 100%; }
  .hero-stats dd { font-size: 24px; }

  /* Section header */
  .sh-title { font-size: clamp(32px, 6.4vw, 56px); }
  .sh-meta .mono-tag { font-size: 13px; }
  .sh-eyebrow { font-size: 14px; }
  .sh-row { gap: 14px; }

  /* Scroll cue smaller */
  .scroll-cue { bottom: 24px; font-size: 12px; gap: 10px; }
  .scroll-cue-arrow { width: 26px; height: 42px; border-width: 1.5px; }
  .scroll-cue-arrow::after { top: 7px; height: 8px; }

  /* Final CTA */
  .final-inner { padding: 72px var(--gut); gap: 22px; }
  .final-h { font-size: clamp(32px, 8vw, 56px); }
  .final-sub { font-size: 16px; }
  .final-cta { flex-direction: column; align-items: stretch; }
  .final-cta .btn { justify-content: center; }

  /* Footer */
  .footer-top { padding: 44px var(--gut) 24px; gap: 28px; }
  .footer-bot { flex-direction: column; gap: 6px; padding-bottom: 24px; }

  /* Cards & spacing */
  .feature, .trust-card, .pillar, .market-col, .vision-stat { padding: 24px; }
  .engine-card { padding: 22px; }
}

/* Phone — tighten everything */
@media (max-width: 560px) {
  .page { --gut: 14px; }
  .display { font-size: clamp(34px, 10vw, 48px); line-height: 0.98; }
  .hero { padding: 76px var(--gut) 76px; }
  .hero .hero-lede { font-size: 15.5px; margin-bottom: 28px; }
  .hero-stats dt { font-size: 10px; }
  .hero-stats dd { font-size: 22px; }
  .stat-sub { font-size: 12px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .nav .brand-logo-only .brand-logo { width: 52px; height: 44px; }

  .vision-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }

  .sh-title { font-size: clamp(28px, 8vw, 44px); }
  .sh-meta { gap: 12px; }
  .sh-meta .mono-tag { font-size: 12px; }

  .section { padding: 36px 22px; margin: 16px auto; border-radius: 18px; }
  .feature, .trust-card, .pillar, .market-col, .vision-stat, .engine-card { padding: 20px; }
  .feature-vis { padding: 16px; min-height: 0; }

  .final-inner { padding: 56px var(--gut); }
  .final-sub { font-size: 15px; }

  .marquee { padding: 22px var(--gut); }
  .marquee-row { gap: 14px 22px; }
  .partner { font-size: 12.5px; }

  /* Whitepaper drawer */
  .paper-h { padding: 22px 16px 16px; }
  .paper-body { padding: 10px 16px 22px; }
  .paper-h h2 { font-size: 22px; }

  /* Scroll cue */
  .scroll-cue { bottom: 18px; }
  .scroll-cue-arrow { width: 22px; height: 36px; }
}

/* Landscape phones — preserve hero usability when viewport is short */
@media (max-height: 600px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 92px; padding-bottom: 56px; }
  .scroll-cue { display: none; }
}

/* keep these last so they win over earlier border-top: section rule for vision (which is first under marquee) */
@media (prefers-reduced-motion: no-preference) {
  .hero, .marquee, .footer {
    animation: rise .8s cubic-bezier(.2,.7,.2,1) both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}

/* ───── Coming Soon page ───── */
.cs-body {
  background: var(--fg);
  color: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}
.cs {
  --max: 1320px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter, 26px);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
}
.cs-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 0.5px solid rgba(246, 244, 238, 0.14);
}
.cs-brand { display: inline-flex; }
.cs-logo {
  width: 96px; height: 80px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
}
.cs-back {
  display: inline-flex; align-items: center; gap: 10px;
  color: rgba(246, 244, 238, 0.72);
  text-decoration: none;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color .2s ease, transform .25s ease;
}
.cs-back:hover { color: var(--paper); transform: translateX(-3px); }
.cs-back-arrow { font-size: 16px; }

.cs-hero {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 48px 0;
}
.cs-meta {
  display: flex; gap: 28px; align-items: baseline;
  padding-bottom: 22px;
  border-bottom: 0.5px solid rgba(246, 244, 238, 0.14);
  flex-wrap: wrap;
}
.cs-meta .mono-tag { font-size: 13px; letter-spacing: 0.08em; }
.cs-status-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  margin-right: 4px;
  animation: cs-pulse 1.8s ease-in-out infinite;
  vertical-align: middle;
  position: relative; top: -1px;
}

.cs-display {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
  color: var(--paper);
}
.cs-display em {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.cs-lede {
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.5;
  color: rgba(246, 244, 238, 0.78);
  max-width: 58ch;
  margin: 0;
  text-wrap: pretty;
}
.cs-lede-em { color: var(--paper); font-weight: 500; }

.cs-form {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-top: 12px;
}
.cs-input {
  appearance: none;
  background: rgba(246, 244, 238, 0.06);
  border: 0.5px solid rgba(246, 244, 238, 0.22);
  color: var(--paper);
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 500;
  min-width: 280px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.cs-input::placeholder { color: rgba(246, 244, 238, 0.42); font-weight: 400; }
.cs-input:focus { border-color: var(--accent); background: rgba(246, 244, 238, 0.10); }
.cs-input:disabled { opacity: 0.55; cursor: not-allowed; }
.cs-submit { background: var(--accent); color: var(--accent-ink); }
.cs-submit:hover { background: var(--paper); color: var(--fg); }
.cs-submit:disabled { background: rgba(93, 190, 60, 0.55); cursor: default; }

.cs-thanks {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}
.cs-thanks-on { opacity: 1; transform: none; }

.cs-ticker {
  display: flex; gap: 36px; flex-wrap: wrap;
  margin-top: 12px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  color: rgba(246, 244, 238, 0.66);
  letter-spacing: 0.04em;
}
.cs-tick { display: inline-flex; align-items: center; gap: 10px; }
.cs-tick-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: cs-pulse 1.8s ease-in-out infinite;
}
.cs-tick:nth-child(2) .cs-tick-dot { animation-delay: .3s; }
.cs-tick:nth-child(3) .cs-tick-dot { animation-delay: .6s; }
@keyframes cs-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.92); }
}

.cs-footer {
  padding-top: 18px;
  border-top: 0.5px solid rgba(246, 244, 238, 0.14);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: rgba(246, 244, 238, 0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.cs-footer .mono { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; letter-spacing: 0.06em; }

@media (max-width: 720px) {
  .cs { gap: 28px; padding: 20px var(--gutter, 18px); }
  .cs-hero { padding: 28px 0; gap: 22px; }
  .cs-meta { gap: 16px; padding-bottom: 18px; }
  .cs-logo { width: 64px; height: 54px; border-radius: 10px; }
  .cs-input { min-width: 0; width: 100%; }
  .cs-form { flex-direction: column; align-items: stretch; }
  .cs-submit { width: 100%; justify-content: center; }
  .cs-ticker { gap: 18px; }
  .cs-footer { flex-direction: column; align-items: flex-start; }
}

/* ───── Form pages (partner.html · contact.html) ───── */
.fp-body {
  background: var(--soft);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}
.fp {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 40px) 56px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 32px;
}
.fp-top {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 0.5px solid var(--line);
}
.fp-brand { display: inline-flex; }
.fp-logo {
  width: 96px; height: 80px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 4px;
  border: 0.5px solid var(--line);
}
.fp-back {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--slate);
  text-decoration: none;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s ease, transform .25s ease;
}
.fp-back:hover { color: var(--fg); transform: translateX(-3px); }
.fp-back-arrow { font-size: 16px; }

.fp-hero {
  display: flex; flex-direction: column; gap: 20px;
  padding: 12px 0 4px;
  max-width: 760px;
}
.fp-hero .mono-tag { font-size: 14px; letter-spacing: 0.1em; }
.fp-display {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
.fp-display em {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.fp-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 60ch;
  margin: 0;
}

.fp-card {
  background: var(--paper);
  border: 0.5px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow:
    0 12px 40px -10px rgba(19, 49, 107, 0.10),
    0 2px 6px rgba(19, 49, 107, 0.04);
}

.fp-form { display: flex; flex-direction: column; gap: 20px; }
.fp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fp-field {
  display: flex; flex-direction: column; gap: 8px;
}
.fp-field > span {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.fp-field input,
.fp-field select,
.fp-field textarea {
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper);
  border: 0.5px solid var(--line-strong);
  color: var(--fg);
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.fp-field textarea {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}
.fp-field input::placeholder,
.fp-field textarea::placeholder { color: var(--slate); opacity: 0.5; font-weight: 400; }
.fp-field input:focus,
.fp-field select:focus,
.fp-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.fp-field input:disabled,
.fp-field select:disabled,
.fp-field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.fp-field input:invalid:not(:placeholder-shown),
.fp-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(180, 30, 30, 0.5);
}

.fp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%235C6B86' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}

/* reCAPTCHA wrapper */
.fp-captcha {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.fp-captcha > span {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.fp-captcha .g-recaptcha {
  display: inline-block;
  min-height: 78px;
}
@media (max-width: 360px) {
  .fp-captcha .g-recaptcha { transform: scale(0.9); transform-origin: 0 0; }
}

.fp-actions {
  margin-top: 4px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.fp-submit { min-width: 200px; justify-content: center; }
.fp-submit:disabled { opacity: 0.65; cursor: default; }

.fp-status {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease, transform .3s ease;
  padding: 0;
}
.fp-status.fp-status-ok,
.fp-status.fp-status-err { opacity: 1; transform: none; padding: 8px 14px; border-radius: 10px; }
.fp-status-ok { color: var(--accent-ink); background: var(--accent-soft); }
.fp-status-err { color: #7A0A0A; background: #FDECEC; }

.fp-footer {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 0.5px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.fp-mono {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11.5px;
  color: var(--slate);
  letter-spacing: 0.08em;
  text-decoration: none;
}
.fp-mono:hover { color: var(--fg); }

@media (max-width: 720px) {
  .fp { gap: 24px; padding: 18px 16px 40px; }
  .fp-logo { width: 64px; height: 54px; border-radius: 10px; }
  .fp-back { font-size: 12px; }
  .fp-hero { gap: 14px; }
  .fp-card { padding: 22px 18px; border-radius: 18px; }
  .fp-row { grid-template-columns: 1fr; gap: 14px; }
  .fp-actions { flex-direction: column; align-items: stretch; }
  .fp-submit { width: 100%; }
  .fp-footer { flex-direction: column; align-items: flex-start; }
}
