/* NEA IT Services design system. Tokens and rules are documented in site/DESIGN.md.
   Selector policy: single class selectors, flat specificity. Spacing between sections
   comes only from .section; components never set outer margins. */

/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  color-scheme: dark;
  --ink-0: #07090e;
  --ink-1: #0d121f;
  --ink-2: #141b2d;
  --ink-3: #1a233a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --paper: #ffffff;
  --paper-2: #f3f5f9;
  --paper-line: #d5dbe6;
  --text-0: #ffffff;
  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-ink: #050811;
  --text-ink-2: #3b4863;
  --royal: #2563eb;
  --royal-deep: #1d4ed8;
  --royal-glow: #60a5fa;
  --royal-tint: rgba(37, 99, 235, 0.12);
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;

  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --stretch-display: 80%;
  --stretch-label: 112%;

  --t-display: clamp(2.75rem, 7vw, 6.25rem);
  --t-h1: clamp(2.25rem, 4.6vw, 3.75rem);
  --t-h2: clamp(1.75rem, 3.1vw, 2.6rem);
  --t-h3: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --section-pad: clamp(64px, 9vw, 128px);
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1280px;
  --measure: 68ch;

  --r-control: 4px;
  --r-card: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --d-fast: 180ms;
  --d-reveal: 420ms;
  --d-scene: 600ms;
  --header-h: 72px;
}

/* ------------------------------------------------------------------ */
/* Reset and base                                                      */
/* ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--text-0); font-weight: 700; line-height: 1.1; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--royal-glow); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--royal); color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: var(--s-4); z-index: 200; padding: var(--s-3) var(--s-4);
  background: var(--royal); color: #fff; font-weight: 600; border-radius: var(--r-control);
  transition: top var(--d-fast) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* ------------------------------------------------------------------ */
/* Typography roles                                                    */
/* ------------------------------------------------------------------ */

.display, .h1, .h2, .h3 { font-family: var(--font-sans); color: var(--text-0); text-wrap: balance; }
.display { font-size: var(--t-display); font-weight: 750; font-stretch: var(--stretch-display); letter-spacing: -0.03em; line-height: 0.95; }
.h1 { font-size: var(--t-h1); font-weight: 750; font-stretch: var(--stretch-display); letter-spacing: -0.025em; line-height: 1.0; }
.h2 { font-size: var(--t-h2); font-weight: 720; font-stretch: 86%; letter-spacing: -0.02em; line-height: 1.05; }
.h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.label {
  font-family: var(--font-sans); font-size: var(--t-label); font-weight: 650; font-stretch: var(--stretch-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.label--accent { color: var(--royal-glow); }
.data { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--text-1); max-width: var(--measure); text-wrap: pretty; }
.small { font-size: var(--t-small); }
.muted { color: var(--text-2); }
.accent { color: var(--royal-glow); }
.prose { max-width: var(--measure); }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose strong { color: var(--text-0); font-weight: 650; }
.prose a { color: var(--royal-glow); }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); border-top: 1px solid var(--line); background: var(--ink-0); }
.section--flush { padding-top: 0; }
.section--ink1 { background: var(--ink-1); }
.section--noline { border-top: 0; }
.section--paper {
  background: var(--paper); color: var(--text-ink-2); border-top: 0; color-scheme: light;
}
.section--paper .h1, .section--paper .h2, .section--paper .h3, .section--paper h1, .section--paper h2, .section--paper h3, .section--paper h4 { color: var(--text-ink); }
.section--paper .label { color: var(--text-ink-2); }
.section--paper .label--accent { color: var(--royal-deep); }
.section--paper .lede { color: var(--text-ink-2); }
.section--paper .muted { color: var(--text-ink-2); }
.section--paper .prose strong { color: var(--text-ink); }
.section--paper .prose a { color: var(--royal-deep); }
.section--paper ::selection { background: var(--royal); color: #fff; }

/* Manifest grid: label column beside content on wide screens. */
.manifest { display: grid; gap: var(--s-6); }
.manifest > * { min-width: 0; }
.manifest__label { display: flex; flex-direction: column; gap: var(--s-3); align-self: start; }
.manifest__head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.manifest__head .lede { margin-top: var(--s-2); }
@media (min-width: 900px) {
  .manifest { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--s-8); }
  .manifest__label { position: sticky; top: calc(var(--header-h) + 24px); }
}

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.stack { display: grid; gap: var(--s-4); }
.stack--tight { gap: var(--s-2); }
.stack--loose { gap: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.split { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
  .split--reverse .split__media { order: -1; }
}
.split__media { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--ink-2); }
.split__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.section--paper .split__media { border-color: var(--paper-line); background: var(--paper-2); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(0, 0, 0, 0.72); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: var(--text-0); min-height: 44px; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name strong { font-weight: 750; font-stretch: 86%; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand__name span { display: none; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-stretch: var(--stretch-label); font-weight: 600; }
.nav { display: none; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); text-decoration: none;
  color: var(--text-1); font-size: var(--t-small); font-weight: 500; border-radius: var(--r-control);
  transition: color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.nav__link:hover { color: var(--text-0); background: rgba(255, 255, 255, 0.06); }
.nav__link[aria-current="page"], .nav__link[aria-current="true"] { color: var(--text-0); box-shadow: inset 0 -2px 0 var(--royal); border-radius: 0; }
.header__actions { display: flex; align-items: center; gap: var(--s-3); }
/* Desktop dropdown: opens on hover and while the trigger or any item has keyboard focus. */
.nav__item { position: relative; display: flex; }
.nav__caret { width: 10px; height: 10px; margin-left: 6px; opacity: 0.7; }
.nav__menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 120; min-width: 280px; padding: 8px; display: grid; background: var(--ink-1); border: 1px solid var(--line-strong); border-radius: var(--r-card); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out), visibility 0s linear var(--d-fast); }
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu-link { display: block; padding: 10px 12px; border-radius: 6px; color: var(--text-1); text-decoration: none; font-size: var(--t-small); white-space: nowrap; }
.nav__menu-link:hover, .nav__menu-link:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--text-0); }
.nav__menu-link[aria-current="page"] { color: var(--text-0); box-shadow: inset 3px 0 0 var(--royal); }
.nav__menu-link--group { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .nav__menu { transition: none; } }
.header__phone { display: none; white-space: nowrap; text-decoration: none; color: var(--text-0); font-family: var(--font-mono); font-weight: 500; font-size: var(--t-small); min-height: 44px; align-items: center; padding: 0 var(--s-2); }
.header__phone:hover { color: var(--royal-glow); }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-control); color: var(--text-0);
}
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 480px) { .brand__name span { display: block; } }
@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: var(--s-1); }
  .header__phone { display: inline-flex; }
  .menu-btn { display: none; }
}
/* Lives as a sibling of the header, never inside it: the header's backdrop-filter makes it a
   containing block for fixed descendants, which collapsed this panel to the header's own height. */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90; background: var(--ink-1);
  overflow-y: auto; overscroll-behavior: contain;
  padding: var(--s-5) var(--gutter) var(--s-8); display: none;
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu__group { border-top: 1px solid var(--line); padding-block: var(--s-4); }
.mobile-menu__group .label { margin-bottom: var(--s-2); }
.mobile-menu__link {
  display: flex; align-items: center; min-height: 48px; text-decoration: none; color: var(--text-0);
  font-size: 1.125rem; font-weight: 600; font-stretch: 90%;
}
.mobile-menu__link:hover { color: var(--royal-glow); }
.mobile-menu__cta { margin-bottom: var(--s-4); display: grid; gap: var(--s-3); }
body[data-menu-open="true"] { overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-control); border: 1px solid transparent;
  font-weight: 650; font-size: var(--t-small); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--royal); color: #fff; }
.btn--primary:hover { background: var(--royal-deep); }
.btn--ghost { background: transparent; color: var(--text-0); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text-0); background: rgba(255, 255, 255, 0.05); }
.btn--paper { background: var(--text-ink); color: #fff; }
.btn--paper:hover { background: var(--royal-deep); }
.btn--paper-ghost { background: transparent; color: var(--text-ink); border-color: var(--text-ink); }
.btn--paper-ghost:hover { background: var(--text-ink); color: #fff; }
.btn--small { min-height: 40px; padding: 0 var(--s-4); font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* ------------------------------------------------------------------ */
/* Cards, lists, tables                                                */
/* ------------------------------------------------------------------ */

.card {
  display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: border-color var(--d-fast) var(--ease-out);
}
.card:hover { border-color: var(--line-strong); }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover .card__title { color: var(--royal-glow); }
.card__title { transition: color var(--d-fast) var(--ease-out); }
.card__text { color: var(--text-1); }
.card__list { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.card__list li { display: flex; gap: var(--s-3); font-size: var(--t-small); color: var(--text-1); }
.card__list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.55em; border-radius: 1px; background: var(--royal-glow); }
.card__foot { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
.section--paper .card { background: var(--paper); border-color: var(--paper-line); border-radius: 0; }
.section--paper .card:hover { border-color: var(--text-ink); }
.section--paper .card__text, .section--paper .card__list li { color: var(--text-ink-2); }
.section--paper .card__foot { border-color: var(--paper-line); }
.section--paper .card--link:hover .card__title { color: var(--royal-deep); }

.stat { display: grid; gap: var(--s-1); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.stat__value { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 750; font-stretch: var(--stretch-display); letter-spacing: -0.03em; line-height: 1; color: var(--text-0); }
.stat__label { color: var(--text-1); font-size: var(--t-small); }
.section--paper .stat { border-color: var(--paper-line); }
.section--paper .stat__value { color: var(--text-ink); }
.section--paper .stat__label { color: var(--text-ink-2); }

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps__item { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.steps__item:last-child { border-bottom: 1px solid var(--line); }
.steps__num { font-family: var(--font-mono); font-weight: 500; color: var(--royal-glow); font-size: var(--t-small); padding-top: 0.25em; }
.steps__num::before { counter-increment: step; content: counter(step, decimal-leading-zero); }
.steps__body { display: grid; gap: var(--s-2); }
.section--paper .steps__item { border-color: var(--paper-line); }
.section--paper .steps__num { color: var(--royal-deep); }

.checklist { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; color: var(--text-1); }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: 0.15em; color: var(--royal-glow); }
.section--paper .checklist li { color: var(--text-ink-2); }
.section--paper .checklist svg { color: var(--royal-deep); }

.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-card); }
.table td { overflow-wrap: anywhere; }
.table th, .table td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--t-small); }
.table th { font-family: var(--font-sans); font-size: var(--t-label); font-weight: 650; font-stretch: var(--stretch-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); background: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--text-0); font-weight: 600; }
.section--paper .table-wrap { border-color: var(--paper-line); border-radius: 0; }
.section--paper .table th { background: var(--paper-2); color: var(--text-ink-2); border-color: var(--paper-line); }
.section--paper .table td { border-color: var(--paper-line); color: var(--text-ink-2); }
.section--paper .table td:first-child { color: var(--text-ink); }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; font-weight: 650; color: var(--text-0); font-size: 1.0625rem; min-height: 56px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-family: var(--font-mono); color: var(--royal-glow); font-size: 1.25rem; flex: none; transition: transform var(--d-fast) var(--ease-out); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 0 var(--s-5); color: var(--text-1); max-width: var(--measure); }
.section--paper .faq, .section--paper .faq__item { border-color: var(--paper-line); }
.section--paper .faq__q { color: var(--text-ink); }
.section--paper .faq__q::after { color: var(--royal-deep); }
.section--paper .faq__a { color: var(--text-ink-2); }

.tag { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0.3em 0.7em; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-1); font-stretch: var(--stretch-label); }
.tag--accent { border-color: var(--royal); color: var(--royal-glow); background: var(--royal-tint); }
.section--paper .tag { border-color: var(--paper-line); color: var(--text-ink-2); }

.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border: 1px solid var(--line-strong); border-left: 3px solid var(--royal); border-radius: var(--r-control); background: var(--ink-2); font-size: var(--t-small); }
.notice--warn { border-left-color: var(--warn); }
.notice--ok { border-left-color: var(--ok); }
.notice--bad { border-left-color: var(--bad); }

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */

.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field__label { font-size: var(--t-small); font-weight: 600; color: var(--text-0); }
.field__label small { color: var(--text-2); font-weight: 400; margin-left: var(--s-2); }
.field__hint { font-size: 0.85rem; color: var(--text-2); }
.field__error { font-size: 0.85rem; color: var(--bad); display: none; }
.field[data-invalid="true"] .field__error { display: block; }
.field[data-invalid="true"] .input { border-color: var(--bad); }
.input {
  width: 100%; min-height: 48px; padding: 0 var(--s-4); background: var(--ink-3); color: var(--text-0);
  border: 1px solid var(--line-strong); border-radius: var(--r-control); transition: border-color var(--d-fast) var(--ease-out);
}
.input:hover { border-color: rgba(255, 255, 255, 0.35); }
.input:focus { border-color: var(--royal-glow); outline: none; box-shadow: 0 0 0 3px var(--royal-tint); }
.input::placeholder { color: var(--text-2); }
textarea.input { min-height: 140px; padding-block: var(--s-3); resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--s-4) center; padding-right: var(--s-7); }
.choice-grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--ink-3); font-size: var(--t-small); font-weight: 600; text-align: center; color: var(--text-1); transition: border-color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out); }
.choice input:checked + .choice__box { border-color: var(--royal-glow); background: var(--royal-tint); color: var(--text-0); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--royal-glow); outline-offset: 2px; }
.form__status { display: none; }
.form__status[data-state="success"], .form__status[data-state="error"] { display: block; }
.form__fine { font-size: 0.85rem; color: var(--text-2); max-width: var(--measure); }

/* ------------------------------------------------------------------ */
/* Intake walkthrough                                                  */
/* ------------------------------------------------------------------ */

.wizard { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink-1); padding: clamp(20px, 3vw, 32px); }
.wizard__form { display: grid; gap: var(--s-5); }
.wizard__head { display: grid; gap: var(--s-3); }
.wizard__progress { display: grid; gap: var(--s-2); }
.wizard__bar { display: block; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.wizard__bar i { display: block; height: 100%; background: var(--royal); transition: width var(--d-reveal) var(--ease-out); }
.wizard__title { font-size: 1.5rem; outline: none; }
.wizard__body { display: grid; gap: var(--s-4); }
.wizard__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.wizard__segments { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.segment { position: relative; display: block; cursor: pointer; }
.segment input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segment__body { display: grid; gap: var(--s-2); height: 100%; padding: var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--ink-2); transition: border-color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out); }
.segment__body strong { font-size: 1.125rem; font-weight: 700; font-stretch: 90%; color: var(--text-0); }
.segment__desc { font-size: var(--t-small); color: var(--text-1); }
.segment__note { font-size: 0.8rem; color: var(--text-2); padding-top: var(--s-2); border-top: 1px solid var(--line); margin-top: auto; }
.segment input:checked + .segment__body { border-color: var(--royal-glow); background: var(--royal-tint); }
.segment input:focus-visible + .segment__body { outline: 2px solid var(--royal-glow); outline-offset: 2px; }
.wizard__segments .field__error { grid-column: 1 / -1; display: none; }
.wizard__review { display: grid; gap: var(--s-4); }
.review { margin: 0; display: grid; border-top: 1px solid var(--line); }
.review__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.review__row dt { color: var(--text-2); }
.review__row dd { margin: 0; color: var(--text-0); display: flex; justify-content: space-between; gap: var(--s-3); align-items: flex-start; }
.review__edit { background: none; border: 0; color: var(--royal-glow); font-size: 0.85rem; font-weight: 600; padding: 0; min-height: 0; text-decoration: underline; text-underline-offset: 0.2em; }
.wizard__done { display: grid; gap: var(--s-3); padding: var(--s-2) 0; }
.after__wrap { display: grid; gap: var(--s-3); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink-2); }
.after { list-style: none; display: grid; gap: 0; counter-reset: none; }
.after__step { display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-small); }
.after__num { font-family: var(--font-mono); color: var(--royal-glow); padding-top: 0.15em; }
.after__step b { display: block; color: var(--text-0); font-weight: 650; }
.after__step p { margin-top: var(--s-1); color: var(--text-1); }
@media (max-width: 600px) { .review__row { grid-template-columns: 1fr; gap: var(--s-1); } }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end; overflow: hidden; background: var(--ink-0); border-top: 0; }
.hero__scene { position: absolute; inset: 0; z-index: 0; }
.hero__scene canvas { width: 100%; height: 100%; }
.hero__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0) 62%), linear-gradient(0deg, var(--ink-0) 0%, rgba(0, 0, 0, 0) 32%); pointer-events: none; }
.hero__poster { position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 45%, rgba(37, 99, 235, 0.22), transparent 70%); }
.hero__inner { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 112px) clamp(32px, 5vw, 64px); display: grid; gap: var(--s-6); }
.hero__copy { display: grid; gap: var(--s-5); max-width: 760px; }
.hero__title { color: var(--text-0); }
.hero__title em { font-style: normal; color: var(--royal-glow); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__strip { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); letter-spacing: 0.04em; text-transform: uppercase; }
.hero__strip span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__strip span::before { content: ""; width: 6px; height: 6px; background: var(--royal-glow); }
.hero--page { min-height: 0; align-items: center; }
.hero--page .hero__inner { padding-block: clamp(56px, 8vw, 104px); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.35) 100%); }
/* Framed hero media: the image sits inside a browser window on the right instead of behind the copy. */
.hero__media--frame { inset: auto; top: 50%; right: max(16px, calc((100vw - 1200px) / 2)); transform: translateY(-50%); width: min(46vw, 620px); z-index: 0; }
.hero__media--frame::after { display: none; }
.hero__media--frame img { opacity: 1; height: auto; object-fit: cover; aspect-ratio: 16 / 10; }
.browser { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--ink-1); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(37, 99, 235, 0.15); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--ink-2); border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-2); }
.browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser__bar i { font-style: normal; margin-left: 10px; padding: 3px 10px; border-radius: 4px; background: var(--ink-1); border: 1px solid var(--line); }
@media (max-width: 1099px) { .hero__media--frame { display: none; } }
.hero--page:has(.hero__media--frame) .hero__copy { max-width: 46%; }
@media (max-width: 1099px) { .hero--page:has(.hero__media--frame) .hero__copy { max-width: 760px; } }

/* ------------------------------------------------------------------ */
/* Proof bar                                                           */
/* ------------------------------------------------------------------ */

.proof { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.proof__item { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid var(--paper-line); }
.proof__value { font-size: 1.5rem; font-weight: 750; font-stretch: var(--stretch-display); letter-spacing: -0.02em; color: var(--text-ink); line-height: 1; }
.proof__label { color: var(--text-ink-2); font-size: var(--t-small); }
@media (min-width: 720px) {
  .proof { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .proof__item { padding: var(--s-2) var(--s-5) var(--s-2) 0; border-bottom: 0; border-left: 1px solid var(--paper-line); padding-left: var(--s-5); }
  .proof__item:first-child { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------------------ */
/* Lifecycle track (pinned horizontal scroll on desktop)               */
/* ------------------------------------------------------------------ */

.lifecycle { overflow: hidden; }
.lifecycle__head { display: grid; gap: var(--s-4); margin-bottom: var(--s-6); }
/* Pinned mode (set by JS only when the whole section fits the viewport): everything must stay
   above the fold, so the head tightens and each card gets an explicit height with the text
   area able to scroll as a last resort instead of being clipped. */
.lifecycle[data-pinned="true"] { padding-block: var(--s-5); }
.lifecycle[data-pinned="true"] .lifecycle__head { gap: var(--s-2); margin-bottom: var(--s-4); }
.lifecycle[data-pinned="true"] .lifecycle__head .lede { font-size: var(--t-small); max-width: 60ch; }
.lifecycle[data-pinned="true"] .ledger { min-height: 0; }
.lifecycle[data-pinned="true"] .lifecycle__rail { margin-bottom: var(--s-4); }
.lifecycle[data-pinned="true"] .stage { height: var(--stage-h, auto); grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: var(--s-3); padding: var(--s-4); }
.lifecycle[data-pinned="true"] .stage__media { height: var(--stage-media, 160px); aspect-ratio: auto; }
.lifecycle[data-pinned="true"][data-media="off"] .stage__media { display: none; }
.lifecycle[data-pinned="true"] .stage__title { font-size: 1.2rem; }
.lifecycle[data-pinned="true"] .stage__text { font-size: 0.9rem; line-height: 1.45; overflow-y: auto; min-height: 0; padding-right: var(--s-1); scrollbar-width: thin; }
.lifecycle[data-pinned="true"] .stage__receipt { padding-top: var(--s-2); }
.ledger { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); display: grid; gap: var(--s-1); min-height: 3.6em; }
.ledger__line { display: flex; gap: var(--s-3); white-space: nowrap; overflow: hidden; }
.ledger__line b { color: var(--royal-glow); font-weight: 500; }
.ledger__line i { font-style: normal; color: var(--text-0); }
.lifecycle__viewport { position: relative; }
.lifecycle__track { display: grid; gap: var(--s-4); list-style: none; }
.stage { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.stage__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-control); background: var(--ink-3); border: 1px solid var(--line); }
.stage__media img { width: 100%; height: 100%; object-fit: cover; }
.stage__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.stage__num { font-family: var(--font-mono); color: var(--royal-glow); font-size: var(--t-small); }
.stage__engine { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--text-0); border: 1px solid var(--royal); background: var(--royal-tint); padding: 0.25em 0.6em; border-radius: 2px; }
.stage__title { font-size: 1.375rem; }
.stage__text { color: var(--text-1); font-size: var(--t-small); }
.stage__receipt { display: grid; gap: var(--s-1); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-2); }
.stage__receipt b { color: var(--text-0); font-weight: 600; }
.lifecycle__rail { display: none; }
@media (min-width: 900px) {
  .lifecycle__viewport { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--s-3); scrollbar-color: var(--royal) var(--ink-2); }
  .lifecycle[data-pinned="true"] .lifecycle__viewport { overflow: visible; padding-bottom: 0; }
  .lifecycle__track { grid-auto-flow: column; grid-auto-columns: minmax(360px, 30vw); gap: var(--s-5); }
  .stage { scroll-snap-align: start; }
  .lifecycle__rail { display: block; height: 2px; background: var(--line); margin-bottom: var(--s-6); position: relative; }
  .lifecycle__rail::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: var(--progress, 0%); background: var(--royal); transition: width 80ms linear; }
}

/* ------------------------------------------------------------------ */
/* Oblitero section                                                     */
/* ------------------------------------------------------------------ */

/* Oblitero engine: the breakdown stage stays in view while the copy scrolls beside it. Scroll
   position drives the frame sequence, so the drive comes apart as the reader moves through. */
.section--engine { overflow: clip; }
.engine { position: relative; display: grid; gap: var(--s-6); }
.engine__stage { position: sticky; top: var(--header-h); z-index: 2; height: clamp(240px, 46svh, 420px); display: grid; place-items: center; background: var(--ink-0); }
/* Soft edge below the stage on narrow screens, where the copy scrolls underneath it. */
.engine__stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; background: linear-gradient(180deg, var(--ink-0), rgba(0, 0, 0, 0)); pointer-events: none; }
.engine__stage .seq { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.engine__stage canvas { display: block; max-width: 100%; max-height: 100%; filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.6)); }
.engine__glow { position: absolute; inset: 6% 0; background: radial-gradient(52% 52% at 50% 54%, rgba(37, 99, 235, 0.24), rgba(37, 99, 235, 0) 72%); pointer-events: none; }
.engine__hud { position: absolute; left: 0; right: 0; bottom: var(--s-3); z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-3); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); pointer-events: none; }
.engine__hud b { display: block; color: var(--text-0); font-weight: 500; }
.engine__copy { display: grid; gap: var(--s-7); }
.engine__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.engine__step { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; column-gap: var(--s-3); row-gap: var(--s-2); align-items: baseline; padding: var(--s-4) 0 var(--s-4) var(--s-4); border-left: 2px solid var(--line); transition: border-color 400ms var(--ease-out); }
.engine__step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); }
.engine__step-title { font-size: 1.05rem; font-weight: 500; color: var(--text-0); }
.engine__step-state { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); transition: color 300ms var(--ease-out); }
.engine__step-text { grid-column: 2 / -1; margin: 0; color: var(--text-1); max-width: 40rem; }
.engine__step[data-state="active"] { border-color: var(--royal); }
.engine__step[data-state="active"] .engine__step-state { color: var(--royal-glow); }
.engine__step[data-state="done"] { border-color: var(--ok); }
.engine__step[data-state="done"] .engine__step-state { color: var(--ok); }
[data-engine][data-scene="unavailable"] .engine__stage { display: none; }
@media (min-width: 960px) {
  .engine { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; }
  .engine__stage { order: 2; top: calc(var(--header-h) + var(--s-5)); height: calc(100svh - var(--header-h) - var(--s-8)); background: none; }
  .engine__stage::after { display: none; }
  .engine__copy { order: 1; padding-block: var(--s-6); }
  .engine__steps { gap: var(--s-5); }
  .engine__step { min-height: 24svh; align-content: center; }
}
@media (prefers-reduced-motion: reduce) { .engine__stage { position: relative; top: auto; } }

/* ------------------------------------------------------------------ */
/* Frame sequences (background-free 3D breakdowns)                    */
/* ------------------------------------------------------------------ */

.seq { position: relative; display: grid; place-items: center; }
.seq canvas { display: block; max-width: 100%; height: auto; }
.seq img { max-width: 100%; height: auto; }
.seq[data-ready="true"] img { display: none; }
.hero--sequence { min-height: 200vh; align-items: start; }
.hero--sequence .hero__sticky { position: sticky; top: var(--header-h); min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; overflow: hidden; }
.hero--sequence .hero__inner { display: grid; gap: var(--s-6); align-items: center; padding-block: var(--s-6); }
@media (min-width: 960px) { .hero--sequence .hero__inner { grid-template-columns: 5fr 7fr; } }
.hero__seq { position: relative; }
.hero__seq .seq { position: relative; width: 100%; }
/* The poster keeps the box height; the canvas is drawn over it, so the swap cannot shift layout. */
.hero__seq .seq canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__seq .seq[data-ready="true"] img { display: block; visibility: hidden; }
.hero__seq-note { position: absolute; left: 0; bottom: 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2); }
.hero--home { min-height: 0; display: block; }
.hero--home .hero__sticky { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end; overflow: hidden; }
/* Home hero: the server breakdown stage sits on the right on wide screens and above the copy on
   narrow ones. Frames are background-free canvas images, so nothing renders continuously. */
.hero__scene--sequence { display: block; }
.hero__stage { position: absolute; top: 4%; right: 0; bottom: 14%; width: 62%; display: grid; place-items: center; padding: 0 2% 0 4%; }
.hero__stage { position: absolute; }
.hero__stage .seq { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.hero__frame { position: relative; z-index: 0; }
.hero__frame[hidden] { display: none; }
.hero__stage canvas, .hero__frame { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 34px 48px rgba(0, 0, 0, 0.65)); }
.hero__frame { width: 100%; }
.hero__frame[hidden] { display: none; }
.hero__scene--sequence::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 34%, rgba(0, 0, 0, 0) 56%), linear-gradient(0deg, var(--ink-0) 0%, rgba(0, 0, 0, 0) 30%); }
@media (max-width: 899px) {
  .hero__scene--sequence { position: relative; inset: auto; height: 40svh; min-height: 220px; }
  .hero__scene--sequence::after { background: linear-gradient(0deg, var(--ink-0) 0%, rgba(0, 0, 0, 0) 40%); }
  .hero__stage { top: 6%; right: 0; bottom: 0; left: 0; width: auto; padding: 0 4%; }
  .hero--home .hero__sticky { align-items: start; min-height: 0; }
  .hero--home .hero__inner { padding-top: var(--s-4); }
}

/* ------------------------------------------------------------------ */
/* Certificate (paper record)                                          */
/* ------------------------------------------------------------------ */

.certificate { background: var(--paper); color: var(--text-ink-2); border: 1px solid var(--paper-line); padding: clamp(24px, 4vw, 48px); display: grid; gap: var(--s-5); position: relative; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.certificate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--royal); }
.certificate__head { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--paper-line); padding-bottom: var(--s-4); }
.certificate__title { font-size: 1.5rem; font-weight: 750; font-stretch: 86%; letter-spacing: -0.02em; color: var(--text-ink); }
.certificate__id { font-family: var(--font-mono); color: var(--text-ink); font-weight: 500; }
.certificate__grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.certificate__cell { display: grid; gap: var(--s-1); }
.certificate__cell .label { color: var(--text-ink-2); }
.certificate__cell .data, .certificate__cell strong { color: var(--text-ink); }
.certificate__table th, .certificate__table td { border-bottom: 1px solid var(--paper-line); padding: var(--s-2) 0; text-align: left; font-size: var(--t-small); }
.certificate__table th { font-size: var(--t-label); font-stretch: var(--stretch-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-ink-2); font-weight: 650; }
.certificate__table td { color: var(--text-ink); }
.certificate__hash { font-family: var(--font-mono); font-size: 0.75rem; word-break: break-all; color: var(--text-ink); background: var(--paper-2); padding: var(--s-3); border: 1px solid var(--paper-line); }
.certificate__foot { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; align-items: center; border-top: 1px solid var(--paper-line); padding-top: var(--s-4); font-size: 0.85rem; }
.certificate__status { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 650; color: var(--text-ink); }
.certificate__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.certificate__status[data-status="revoked"]::before { background: var(--bad); }
.certificate__qr { width: 96px; height: 96px; border: 1px solid var(--paper-line); padding: 4px; background: #fff; }
.certificate__qr svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------------ */
/* Custody preview                                                     */
/* ------------------------------------------------------------------ */

.custody { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-card); }
.custody__head { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; align-items: center; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.custody__events { list-style: none; display: grid; }
.custody__event { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.custody__event:last-child { border-bottom: 0; }
.custody__dot { width: 10px; height: 10px; margin-top: 0.4em; border-radius: 50%; background: var(--royal-glow); box-shadow: 0 0 0 4px var(--royal-tint); }
.custody__event[data-state="pending"] .custody__dot { background: var(--ink-3); box-shadow: 0 0 0 1px var(--line-strong); }
.custody__event[data-state="pending"] { color: var(--text-2); }
.custody__event b { color: var(--text-0); font-weight: 600; display: block; }
.custody__event .data { font-size: 0.8rem; color: var(--text-2); }
/* The custody card is dark even inside the paper section; keep its text on the dark palette. */
.section--paper .custody { color: var(--text-1); }
.section--paper .custody .label { color: var(--text-2); }
.section--paper .custody .small, .section--paper .custody .muted { color: var(--text-2); }
.section--paper .custody__event b { color: var(--text-0); }
.section--paper .custody__event .data, .section--paper .custody__head .data { color: var(--text-1); }
.section--paper .field__hint { color: var(--text-ink-2); }

/* ------------------------------------------------------------------ */
/* Leadership                                                          */
/* ------------------------------------------------------------------ */

.leader {
  position: relative; display: grid; gap: var(--s-5); padding: var(--s-6);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink-1) 100%);
  border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
/* A single hairline of brand colour along the top edge, the one flourish this card gets. */
.leader::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--royal) 0%, rgba(59, 130, 246, 0) 70%); }
.leader__aside { display: grid; gap: var(--s-3); justify-items: start; }
.leader__photo { width: 148px; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--ink-3); box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45); }
.leader__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.leader__body { display: grid; gap: var(--s-5); min-width: 0; }
.leader__id { display: grid; gap: 6px; }
.leader__name { font-size: clamp(1.5rem, 3.4vw, 1.9rem); font-weight: 700; font-stretch: 88%; letter-spacing: -0.015em; line-height: 1.1; color: var(--text-0); }
.leader__role { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--royal-glow); }
.leader__lede { margin: var(--s-2) 0 0; color: var(--text-1); max-width: var(--measure); }
.leader__quote { font-size: 1.125rem; line-height: 1.5; color: var(--text-1); border-left: 2px solid var(--royal); padding-left: var(--s-4); max-width: var(--measure); }
.leader__links { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.leader__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 var(--s-3);
  border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--ink-1);
  color: var(--text-1); text-decoration: none; font-size: var(--t-small); font-weight: 500;
  transition: border-color var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.leader__link svg { width: 17px; height: 17px; flex: none; color: var(--text-2); transition: color var(--d-fast) var(--ease-out); }
.leader__link:hover, .leader__link:focus-visible { border-color: var(--royal-glow); color: var(--text-0); background: var(--ink-2); }
.leader__link:hover svg, .leader__link:focus-visible svg { color: var(--royal-glow); }
@media (min-width: 800px) {
  .leader { grid-template-columns: 232px minmax(0, 1fr); gap: var(--s-7); align-items: start; padding: var(--s-7); }
  .leader--nophoto { grid-template-columns: minmax(0, 1fr); }
  .leader__photo { width: 232px; }
}
@media (prefers-reduced-motion: reduce) { .leader__link, .leader__link svg { transition: none; } }

/* ------------------------------------------------------------------ */
/* Routes / locations                                                  */
/* ------------------------------------------------------------------ */

.routes { display: grid; gap: var(--s-6); }
@media (min-width: 960px) { .routes { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: start; } }
.routes__map { position: relative; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink-1); overflow: hidden; }
.routes__map svg { width: 100%; height: auto; }
.route { padding: var(--s-4) 0; border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.route__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.route__day { font-family: var(--font-mono); color: var(--royal-glow); font-size: var(--t-small); }
.route__cities { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.route__cities a { text-decoration: none; color: var(--text-1); font-size: var(--t-small); padding: 0.25em 0.6em; border: 1px solid var(--line); border-radius: 999px; }
.route__cities a:hover { border-color: var(--royal-glow); color: var(--text-0); }
.loc-grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.loc-card { display: grid; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--text-1); background: var(--ink-2); transition: border-color var(--d-fast) var(--ease-out); }
.loc-card:hover { border-color: var(--royal-glow); }
.loc-card b { color: var(--text-0); font-weight: 650; font-size: 1.0625rem; }
.loc-card span { font-size: 0.85rem; color: var(--text-2); }

/* ------------------------------------------------------------------ */
/* Facility gallery                                                    */
/* ------------------------------------------------------------------ */

.gallery { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.figure { margin: 0; display: grid; gap: var(--s-3); }
.figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-card); }
.figure figcaption { display: grid; gap: var(--s-1); font-size: var(--t-small); color: var(--text-1); }
.figure figcaption b { color: var(--text-0); font-weight: 650; }

/* ------------------------------------------------------------------ */
/* CTA band                                                            */
/* ------------------------------------------------------------------ */

.cta-band { display: grid; gap: var(--s-5); padding: clamp(32px, 5vw, 64px); background: var(--royal); color: #fff; border-radius: var(--r-card); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; } }
.cta-band .h2 { color: #fff; }
.cta-band p { color: #fff; max-width: var(--measure); }
.cta-band .btn--primary { background: #fff; color: var(--royal-deep); }
.cta-band .btn--primary:hover { background: var(--ink-0); color: #fff; }
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.footer { border-top: 1px solid var(--line); background: var(--ink-1); padding-block: var(--s-8) var(--s-6); font-size: var(--t-small); }
.footer__grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__group { display: grid; gap: var(--s-3); align-content: start; }
.footer__group .label { margin-bottom: var(--s-1); }
.footer__group a { color: var(--text-1); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer__group a:hover { color: var(--text-0); }
.footer__contact { display: grid; gap: var(--s-2); }
.footer__contact a { font-family: var(--font-mono); }
.footer__bottom { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); color: var(--text-2); font-size: 0.85rem; }

/* ------------------------------------------------------------------ */
/* Verify portal                                                       */
/* ------------------------------------------------------------------ */

.verify { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .verify { grid-template-columns: 4fr 8fr; gap: var(--s-8); align-items: start; } }
.verify__form { display: grid; gap: var(--s-4); }
.verify__result[hidden] { display: none; }

/* ------------------------------------------------------------------ */
/* Motion                                                              */
/* ------------------------------------------------------------------ */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lifecycle__rail::after { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ------------------------------------------------------------------ */
/* Print                                                               */
/* ------------------------------------------------------------------ */

@media print {
  .header, .footer, .mobile-menu, .skip-link, .no-print, .hero__scene, .hero, .verify__form, .cta-band, .section:not(:has(.certificate)) { display: none !important; }
  .verify { display: block; }
  body { background: #fff; color: #000; }
  .section, .section--paper { padding-block: 16px; border: 0; background: #fff; color: #000; }
  .certificate { box-shadow: none; border: 1px solid #000; }
}
/* Accent text on paper needs the deep blue to clear 4.5:1 on white. */
.section--paper .accent, .section--paper .card__foot .accent { color: var(--royal-deep); }

/* Start here: the router under the hero. One option per line of work; the main line is the wide one. */
.section--start { padding-top: var(--s-7); }
.start { display: grid; gap: var(--s-6); }
.start__head { display: grid; gap: var(--s-3); max-width: 720px; }
.start__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
.start__grid li { min-width: 0; }
.start__option { display: grid; grid-template-rows: auto auto 1fr auto; gap: var(--s-2); height: 100%; padding: var(--s-5); background: var(--ink-1); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--text-1); text-decoration: none; transition: border-color var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out), transform var(--d-fast) var(--ease-out); }
.start__option:hover, .start__option:focus-visible { border-color: var(--royal-glow); background: var(--ink-2); transform: translateY(-2px); }
.start__option:focus-visible { outline: 2px solid var(--royal-glow); outline-offset: 2px; }
.start__option--primary { background: var(--royal-tint); border-color: rgba(59, 130, 246, 0.45); }
.start__icon { width: 36px; height: 36px; color: var(--royal-glow); }
.start__icon svg { width: 100%; height: 100%; }
.start__title { font-size: 1.15rem; font-weight: 600; line-height: 1.25; color: var(--text-0); letter-spacing: -0.01em; }
.start__option--primary .start__title { font-size: 1.4rem; }
.start__text { font-size: var(--t-small); color: var(--text-1); }
.start__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-2); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--royal-glow); }
.start__cta svg { width: 16px; height: 16px; transition: transform var(--d-fast) var(--ease-out); }
.start__option:hover .start__cta svg { transform: translateX(3px); }
.start__fallback { margin: 0; }
@media (min-width: 720px) {
  .start__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start__grid li:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1080px) {
  .start__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .start__grid li:first-child { grid-column: span 1; }
  /* The certificate lookup is not a service, so it takes its own full-width row rather than
     sitting alone at the end of a three-column run. */
  .start__grid li.start__span { grid-column: 1 / -1; }
  .start__span .start__option { grid-template-rows: auto; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--s-4); }
  .start__span .start__text { grid-column: 2; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { .start__option, .start__cta svg { transition: none; } .start__option:hover { transform: none; } }

/* ------------------------------------------------------------------ */
/* Core Pillars                                                        */
/* ------------------------------------------------------------------ */

.pillars {
  display: grid;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
@media (min-width: 900px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}
.pillar-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: clamp(24px, 3vw, 32px);
  background: var(--ink-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  transition: transform var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--royal);
  opacity: 0.8;
  transition: opacity var(--d-fast) var(--ease-out), background var(--d-fast) var(--ease-out);
}
.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--royal-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.2);
}
.pillar-card:hover::before {
  opacity: 1;
  background: var(--royal-glow);
}
.pillar-card__badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal-glow);
  background: var(--royal-tint);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}
.pillar-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-0);
  line-height: 1.2;
}
.pillar-card__desc {
  font-size: var(--t-small);
  color: var(--text-1);
  line-height: 1.5;
}
.pillar-card__features {
  list-style: none;
  margin-top: var(--s-2);
  display: grid;
  gap: var(--s-2);
}
.pillar-card__features li {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.85rem;
  color: var(--text-2);
}
.pillar-card__features li svg {
  width: 14px;
  height: 14px;
  color: var(--ok);
  flex: none;
}
.pillar-card__link {
  margin-top: auto;
  padding-top: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal-glow);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pillar-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--d-fast) var(--ease-out);
}
.pillar-card:hover .pillar-card__link svg {
  transform: translateX(4px);
}

/* ------------------------------------------------------------------ */
/* Intake Tabs Switcher                                                */
/* ------------------------------------------------------------------ */

.intake-switch {
  display: inline-flex;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--s-5);
  max-width: 100%;
  overflow-x: auto;
}
.intake-switch__btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 650;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--d-fast) var(--ease-out), color var(--d-fast) var(--ease-out);
}
.intake-switch__btn:hover {
  color: var(--text-0);
}
.intake-switch__btn[data-active="true"] {
  background: var(--royal);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}
.intake-panel {
  display: none;
}
.intake-panel[data-active="true"] {
  display: block;
}

