@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --ground: #ffffff;
  --surface: #f6f8fb;
  --surface-raised: #ffffff;
  --ink: #0b1220;
  --ink-soft: #51607a;
  --ink-faint: #8794ac;
  --navy: #0a3161;
  --navy-soft: #1c4e8c;
  --band: #0a3161;
  --band-deep: #06203f;
  --red: #dc2626;
  --red-soft: #b91c1c;
  --red-tint: #fde7e7;
  --line: #e4e8ef;
  --line-strong: #ccd4e0;
  --on-navy: #eef3fb;
  --on-navy-soft: #a9bcdb;
  --shadow: 220 45% 20%;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #060b14;
    --surface: #0d1626;
    --surface-raised: #121d33;
    --ink: #eaf0fb;
    --ink-soft: #93a3c2;
    --ink-faint: #5f6f8f;
    --navy: #6fa0e0;
    --navy-soft: #4c7fc0;
    --band: #12315c;
    --band-deep: #081b34;
    --red: #ff3b30;
    --red-soft: #ff6259;
    --red-tint: #2c1210;
    --line: #1e2a40;
    --line-strong: #2c3b56;
    --on-navy: #eef3fb;
    --on-navy-soft: #a9bcdb;
  }
}

:root[data-theme="dark"] {
  --ground: #060b14;
  --surface: #0d1626;
  --surface-raised: #121d33;
  --ink: #eaf0fb;
  --ink-soft: #93a3c2;
  --ink-faint: #5f6f8f;
  --navy: #6fa0e0;
  --navy-soft: #4c7fc0;
  --red: #ff3b30;
  --red-soft: #ff6259;
  --red-tint: #2c1210;
  --line: #1e2a40;
  --line-strong: #2c3b56;
  --on-navy: #eef3fb;
  --on-navy-soft: #a9bcdb;
}

* { box-sizing: border-box; }
/* Safety net: any inline icon svg (viewBox only, no explicit size) defaults to
   readable icon size instead of the browser's 300x150 fallback box. Specific
   classes like .btn svg / .side-link svg still win via higher specificity. */
a svg, button svg { width: 1em; height: 1em; flex-shrink: 0; }
html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
}
h1, h2 {
  font-family: "Fraunces", "Instrument Sans", serif;
  font-weight: 500;
  letter-spacing: -0.015em;
}
em { font-style: italic; font-family: "Fraunces", serif; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.mono { font-family: "JetBrains Mono", "SF Mono", monospace; font-variant-numeric: tabular-nums; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.btn-form-submit svg { width: 11px; height: 11px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 24px -8px hsl(var(--shadow) / 0.5); }
.btn-primary:hover { background: var(--red-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-on-navy { background: var(--on-navy); color: var(--navy); }
.btn-on-navy:hover { background: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Top nav ---------- */
.main { min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-mark {
  width: 44px; height: 49px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='102 82 241 260'%3E%3Cg fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M202 198c-18-8-43-12-62-8l14 27c-7 18-21 32-43 39l3 33c20 3 44 27 68 48h16l9-19'/%3E%3Cpath d='M196 316c22 7 47 7 69 1l13 21h13l12-25c16-17 22-45 14-75-6-22-23-39-47-43'/%3E%3Cpath d='M205 213c18-5 38-4 56 1'/%3E%3Cpath d='M317 241c12-13 25-8 20 5-3 9-13 10-19 5'/%3E%3Ccircle cx='235' cy='164' r='29'/%3E%3Cpath d='M223 119l-1-30M244 122v-17'/%3E%3C/g%3E%3Ccircle cx='163' cy='242' r='7' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='102 82 241 260'%3E%3Cg fill='none' stroke='%23000' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M202 198c-18-8-43-12-62-8l14 27c-7 18-21 32-43 39l3 33c20 3 44 27 68 48h16l9-19'/%3E%3Cpath d='M196 316c22 7 47 7 69 1l13 21h13l12-25c16-17 22-45 14-75-6-22-23-39-47-43'/%3E%3Cpath d='M205 213c18-5 38-4 56 1'/%3E%3Cpath d='M317 241c12-13 25-8 20 5-3 9-13 10-19 5'/%3E%3Ccircle cx='235' cy='164' r='29'/%3E%3Cpath d='M223 119l-1-30M244 122v-17'/%3E%3C/g%3E%3Ccircle cx='163' cy='242' r='7' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
  flex-shrink: 0;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.topnav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 28px; }
.topnav-links { display: flex; align-items: center; gap: 4px; }
.topnav-link {
  padding: 9px 15px;
  border-radius: 100px;
  font-size: 0.93rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
  display: flex; align-items: center; gap: 5px;
}
.topnav-link:hover, .topnav-link.is-active { background: var(--surface); color: var(--ink); }
.topnav-link.is-active { color: var(--red); }
.topnav-link svg { width: 13px; height: 13px; transition: transform 0.2s ease; }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 480px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 56px -20px hsl(var(--shadow) / 0.38);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-dropdown.open .nav-dropdown-panel,
.nav-dropdown:hover .nav-dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown.open .topnav-link svg,
.nav-dropdown:hover .topnav-link svg { transform: rotate(180deg); }
.nav-drop-item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background 0.15s ease; }
.nav-drop-item:hover { background: var(--surface); }
.nav-drop-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nav-drop-icon svg { width: 17px; height: 17px; }
.nav-drop-item h4 { font-size: 0.88rem; font-weight: 600; }
.nav-drop-item p { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }

.topnav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle svg { width: 15px; height: 15px; }

.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-top: 1px solid transparent;
}
.mobile-menu.open { max-height: 520px; border-color: var(--line); }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 22px; }
.mobile-menu-inner a { padding: 12px 4px; font-size: 0.98rem; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.mobile-menu-inner a.is-active { color: var(--red); }
.mobile-menu-group-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 700; margin: 14px 4px 2px; }

@media (max-width: 860px) {
  .topnav-links { display: none; }
  .topnav-actions .btn-primary { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: block; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 18px 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero > .wrap { position: relative; z-index: 1; }

/* Void hero: a forced-dark, always-on brand moment regardless of light/dark theme —
   the one dramatic gesture on the page. Everything else stays theme-adaptive. */
.hero-void {
  padding: 150px 0 128px;
  background:
    radial-gradient(ellipse 90% 70% at 50% -8%, rgba(255,59,48,0.16), transparent 60%),
    radial-gradient(ellipse 120% 90% at 50% 100%, #0d1e38 0%, #05070d 55%, #020306 100%);
  color: var(--on-navy);
}
.hero-void::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 18% 28%, rgba(255,255,255,0.55) 0, transparent 100%),
    radial-gradient(1px 1px at 68% 58%, rgba(255,255,255,0.4) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 84% 18%, rgba(255,255,255,0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 38% 78%, rgba(255,255,255,0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 8% 62%, rgba(255,255,255,0.3) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 92% 72%, rgba(255,255,255,0.35) 0, transparent 100%),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,0.3) 0, transparent 100%);
  opacity: 0.8;
  pointer-events: none;
}
.hero-ring {
  position: absolute;
  top: 46%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.15);
  pointer-events: none;
  z-index: 0;
}
.hero-ring-a {
  width: min(80vw, 940px); height: min(48vw, 540px);
  animation: ringSpinA 46s linear infinite;
}
.hero-ring-b {
  width: min(58vw, 660px); height: min(37vw, 410px);
  border-color: rgba(255,255,255,0.1);
  animation: ringSpinB 60s linear infinite;
}
.hero-ring::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px 2px rgba(255,59,48,0.75);
}
@keyframes ringSpinA {
  from { transform: translate(-50%, -50%) rotate(-8deg); }
  to { transform: translate(-50%, -50%) rotate(352deg); }
}
@keyframes ringSpinB {
  from { transform: translate(-50%, -50%) rotate(28deg); }
  to { transform: translate(-50%, -50%) rotate(-332deg); }
}
.hero-orb {
  position: absolute;
  top: 46%; left: 50%;
  width: min(64vw, 760px); height: min(64vw, 760px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(255,59,48,0.5) 0%, rgba(255,59,48,0.16) 32%, rgba(28,78,140,0.28) 54%, transparent 72%);
  animation: orbBreathe 9s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
.hero-orb::after {
  content: "";
  position: absolute; inset: 32%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.75), rgba(255,59,48,0.35) 45%, transparent 72%);
  filter: blur(22px);
}
@keyframes orbBreathe {
  from { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  to { transform: translate(-50%, -50%) scale(1.07); opacity: 1; }
}
.hero-void .eyebrow { background: rgba(255,255,255,0.08); color: #ff9a92; }
.hero-void .eyebrow-dot, .hero-void .eyebrow-dot::after { border-color: #ff9a92; background: #ff9a92; }
.hero-void h1 { color: #fff; }
.hero-void .sub { color: var(--on-navy-soft); }
.hero-void .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.hero-void .btn-ghost:hover { border-color: rgba(255,255,255,0.5); }

.hero-load > * { opacity: 0; animation: heroRise 0.85s cubic-bezier(.22,.61,.36,1) forwards; }
.hero-load > *:nth-child(1) { animation-delay: 0.05s; }
.hero-load > *:nth-child(2) { animation-delay: 0.15s; }
.hero-load > *:nth-child(3) { animation-delay: 0.27s; }
.hero-load > *:nth-child(4) { animation-delay: 0.38s; }
.hero-load > *:nth-child(5) { animation-delay: 0.5s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  padding: 7px 16px 7px 10px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); position: relative; }
.eyebrow-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  animation: eyebrowPulse 2.2s ease-out infinite;
}
@keyframes eyebrowPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17ch;
  margin: 0 auto;
}
.hero .sub {
  margin: 26px auto 0;
  max-width: 46ch;
  font-size: 1.18rem;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
}

/* ---------- Immersive intro scene (scroll-scrubbed) ---------- */
.intro-scene { position: relative; height: 400vh; }
.intro-stage {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--band); color: var(--on-navy);
}
.intro-canvas-wrap { position: relative; width: min(560px, 78vw); height: min(560px, 52vh); }
.intro-canvas { width: 100%; height: 100%; display: block; }
.intro-caption {
  position: absolute; left: 50%; bottom: 12%; transform: translateX(-50%);
  width: min(640px, 82vw); text-align: center; pointer-events: none;
}
.intro-line {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: clamp(1.25rem, 3.2vw, 2rem); font-weight: 600; letter-spacing: -0.01em;
  color: var(--on-navy); opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.intro-line.active { opacity: 1; transform: translateY(0); }
.intro-progress {
  position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%);
  width: min(220px, 40vw); height: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.16); overflow: hidden;
}
.intro-progress-fill { display: block; height: 100%; width: 0%; background: var(--red); border-radius: 3px; }
.intro-readout {
  position: absolute; top: 8%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 20px; border-radius: 100px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.intro-readout-label { font-size: 0.74rem; color: var(--on-navy-soft); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.intro-readout-num { font-family: "JetBrains Mono", monospace; font-size: 1.1rem; font-weight: 700; color: var(--red); }

.intro-fallback .intro-scene { height: auto; }
.intro-fallback .intro-stage { position: static; height: auto; padding: 96px 0 88px; flex-direction: column; gap: 40px; }
.intro-fallback .intro-canvas-wrap { width: min(420px, 70vw); height: min(420px, 40vh); }
.intro-fallback .intro-caption { position: static; transform: none; width: min(560px, 88vw); display: flex; flex-direction: column; gap: 10px; }
.intro-fallback .intro-line { position: static; opacity: 1; transform: none; transition: none; }
.intro-fallback .intro-progress { display: none; }
.intro-fallback .intro-readout { position: static; transform: none; align-self: center; }
@media (max-width: 760px) {
  .intro-scene { height: auto; }
  .intro-stage { position: static; height: auto; padding: 96px 0 88px; flex-direction: column; gap: 40px; }
  .intro-canvas-wrap { width: min(420px, 70vw); height: min(420px, 40vh); }
  .intro-caption { position: static; transform: none; width: min(560px, 88vw); display: flex; flex-direction: column; gap: 10px; }
  .intro-line { position: static; opacity: 1; transform: none; transition: none; }
  .intro-progress { display: none; }
  .intro-readout { position: static; transform: none; align-self: center; }
}

/* ---------- Sections ---------- */
section { padding: 112px 0; }
.section-navy { background: var(--band); color: var(--on-navy); }
.section-navy .ink-soft-navy { color: var(--on-navy-soft); }
.section-surface { background: var(--surface); }
.section-head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.section-navy .section-head p { color: var(--on-navy-soft); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.23s; }

/* ---------- Eligibility snapshot ---------- */
.eligibility-section { padding: 72px 0; background: var(--surface); }
.eligibility-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.eligibility-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.eligibility-panel > div > p { margin-top: 14px; color: var(--ink-soft); max-width: 42ch; }
.eligibility-list { display: grid; gap: 12px; }
.eligibility-item { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-raised); }
.eligibility-check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--red-tint); color: var(--red); font-weight: 700; }
.eligibility-item strong { display: block; font-size: .98rem; }
.eligibility-item span:last-child { color: var(--ink-soft); font-size: .88rem; }

/* ---------- Employer guide ---------- */
.employer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.employer-grid .card { height: 100%; }
.employer-grid .card p + p { margin-top: 12px; }
.employer-kicker { color: var(--red); font: 600 .76rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.tax-answer { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--red-tint); color: var(--ink-soft); }
.tax-answer strong { color: var(--red); font-size: 1.05rem; }
.employer-note { margin-top: 22px; padding: 18px 20px; border-left: 3px solid var(--red); background: var(--surface); color: var(--ink-soft); font-size: .84rem; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px) scale(1.012); box-shadow: 0 24px 48px -20px hsl(var(--shadow) / 0.32); border-color: var(--line-strong); }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--red-tint);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .card-link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.card .card-link svg { width: 13px; height: 13px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(3px); }

/* ---------- Chain connector (numbered roadmap) ---------- */
.chain-grid { position: relative; }
.chain-grid::before {
  content: ""; position: absolute; top: 33px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--line-strong), var(--line-strong));
  z-index: 0; transform: scaleX(0); transform-origin: left;
  transition: transform 900ms cubic-bezier(.16,1,.3,1) 250ms;
}
.chain-grid.in::before { transform: scaleX(1); }
.chain-badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--on-navy);
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.card .chain-badge + .card-icon { margin-bottom: 16px; }

/* ---------- Milestone comparison ---------- */
.milestone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.milestone-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.milestone-card:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -20px hsl(var(--shadow) / 0.32); }
.milestone-card.is-featured { border-color: var(--navy); border-width: 2px; }
.milestone-tier { font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
.milestone-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.milestone-row:first-child { border-top: none; padding-top: 0; }
.milestone-age { color: var(--ink-soft); font-size: 0.85rem; }
.milestone-num { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 1.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.milestone-card.is-featured .milestone-num { color: var(--red); }

/* ---------- Stat strip ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.section-navy .stat-grid { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.12); }
.stat-cell { background: var(--surface-raised); padding: 32px 24px; text-align: center; }
.section-navy .stat-cell { background: transparent; }
.stat-num { font-family: "JetBrains Mono", monospace; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.section-navy .stat-num { color: var(--red); }
.stat-label { margin-top: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.section-navy .stat-label { color: var(--on-navy-soft); }
.stat-source { margin-top: 28px; text-align: center; font-size: 0.78rem; color: var(--ink-faint); }
.section-navy .stat-source { color: var(--on-navy-soft); opacity: 0.8; }
.stat-source a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Trust bar ---------- */
.trust-bar {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: trustScroll 26s linear infinite;
}
.trust-bar:hover .trust-track { animation-play-state: paused; }
@keyframes trustScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust-chip { font-family: "JetBrains Mono", monospace; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--on-navy-soft); opacity: 0.85; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--red);
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Growth graphic (canvas) ---------- */
.growth-graphic { width: 100%; position: relative; }
.growth-canvas { width: 100%; height: 340px; display: block; }
@media (max-width: 720px) { .growth-canvas { height: 240px; } }

/* ---------- Pinned scroll story ---------- */
.pin-section { position: relative; }
.pin-track { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; }
.pin-visual {
  position: sticky;
  top: 90px;
  align-self: start;
}
.pin-readout {
  margin-top: 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 22px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.pin-readout-label { font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.pin-readout-num { font-family: "JetBrains Mono", monospace; font-size: 1.5rem; font-weight: 700; color: var(--red); margin-left: auto; }
.pin-copy { display: flex; flex-direction: column; }
.pin-step {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pin-step:first-child { min-height: 50vh; }
.pin-step:last-child { min-height: 50vh; }
.pin-step.active { opacity: 1; transform: translateY(0); }
.pin-step-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 14px;
}
.pin-step h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pin-step p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }

@media (max-width: 900px) {
  .pin-track { grid-template-columns: 1fr; gap: 32px; }
  .pin-visual { position: static; }
  .pin-step, .pin-step:first-child, .pin-step:last-child { min-height: 0; opacity: 1; transform: none; padding: 8px 0 36px; }
}

/* ---------- Accordion ---------- */
.accordion-group { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  font-size: 1.02rem;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .acc-plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface);
  position: relative;
  transition: transform 0.25s ease, background 0.25s ease;
}
.acc-item summary .acc-plus::before, .acc-item summary .acc-plus::after {
  content: ""; position: absolute; background: var(--ink-soft);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.acc-item summary .acc-plus::before { width: 11px; height: 2px; }
.acc-item summary .acc-plus::after { width: 2px; height: 11px; transition: opacity 0.2s ease; }
.acc-item[open] summary .acc-plus { background: var(--red-tint); transform: rotate(180deg); }
.acc-item[open] summary .acc-plus::after { opacity: 0; }
.acc-item[open] summary .acc-plus::before { background: var(--red); }
.acc-preview { padding: 0 24px 18px; margin-top: -10px; color: var(--ink-soft); font-size: 0.9rem; }
.acc-body { padding: 0 24px 26px; color: var(--ink-soft); font-size: 0.97rem; }
.acc-body p { margin-bottom: 14px; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body ul { margin: 0 0 14px; padding-left: 20px; }
.acc-body li { margin-bottom: 8px; }
.acc-sources { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-faint); }
.acc-sources a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.acc-sources a:hover { color: var(--red); }

/* ---------- Calculator ---------- */
.calc {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.calc-controls { display: flex; flex-direction: column; gap: 28px; }
.control label { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 10px; font-weight: 500; }
.control label span.val { font-family: "JetBrains Mono", monospace; color: var(--ink); }
.seed-toggle { display: flex; gap: 10px; }
.seed-btn { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); text-align: center; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all 0.2s ease; }
.seed-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--line-strong); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 3px solid var(--surface-raised); box-shadow: 0 0 0 1px var(--red); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 3px solid var(--surface-raised); box-shadow: 0 0 0 1px var(--red); cursor: pointer; }
.calc-output { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); padding-left: 48px; }
.out-label { font-size: 0.82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.out-num { font-family: "JetBrains Mono", monospace; font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; color: var(--red); margin-top: 8px; }
.out-breakdown { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.out-breakdown b { color: var(--ink); }
.out-chart { margin-top: 24px; width: 100%; height: 72px; }
.out-chart polyline { fill: none; stroke: var(--navy); stroke-width: 2.5; }
.out-chart polygon { fill: var(--navy); opacity: 0.12; }
.calc-note { margin-top: 22px; font-size: 0.78rem; color: var(--ink-faint); line-height: 1.6; }

/* ---------- Photo placeholder ---------- */
.photo-slot {
  aspect-ratio: 4/3;
  border-radius: 18px;
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-faint);
  text-align: center;
  padding: 20px;
}
.photo-slot svg { width: 30px; height: 30px; opacity: 0.6; }
.photo-slot span { font-size: 0.8rem; max-width: 22ch; }
.about-photos { max-width: 420px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-slot-sm { padding: 12px; gap: 6px; }
.photo-slot-sm svg { width: 20px; height: 20px; }
.photo-slot-sm span { font-size: 0.72rem; max-width: 16ch; }
@media (max-width: 480px) { .about-photos { max-width: 300px; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--band), var(--band-deep));
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: var(--on-navy);
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: #fff; }
.cta-banner p { margin-top: 14px; color: var(--on-navy-soft); max-width: 42ch; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { margin-top: 32px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 120px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr 0.8fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--ink-soft); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 0.78rem; color: var(--ink-faint); max-width: 62ch; line-height: 1.6; }
.footer-copyright { font-size: 0.78rem; color: var(--ink-faint); white-space: nowrap; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 200;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 74px; }
}

/* ---------- Utility layout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.center { text-align: center; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); }

@media (max-width: 900px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-2, .stat-grid, .milestone-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .chain-grid::before { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .calc { grid-template-columns: 1fr; padding: 28px; }
  .calc-output { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .eligibility-panel { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-2, .stat-grid, .steps, .milestone-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .calc { grid-template-columns: 1fr; }
  .brand { font-size: 1.12rem; }
  .brand-mark { width: 39px; height: 43px; }
  .employer-grid { grid-template-columns: 1fr; }
}

/* ---------- Form fields (Contact) ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.contact-form { display: flex; flex-direction: column; gap: 22px; }
.contact-panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 20px; padding: 30px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-side-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-side-item .card-icon { margin-bottom: 0; flex-shrink: 0; }
.contact-side-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.contact-side-item p { color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Glossary ---------- */
.glossary-list { display: flex; flex-direction: column; }
.glossary-item { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.glossary-item:first-child { padding-top: 0; }
.glossary-term { font-weight: 700; font-size: 1.02rem; }
.glossary-def { color: var(--ink-soft); font-size: 0.97rem; }
.glossary-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
@media (max-width: 640px) { .glossary-item { grid-template-columns: 1fr; gap: 8px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
