/* ════════════════════════════════════════════════════════════════════
   VEXLOTEX — SHARED DESIGN SYSTEM
   Warm-light "original elevated" theme · ember accent · dark .moment bands
   Structure: warm paper, alternating zone bands, layered cards, dotted rules
   Type: Syne (display) / DM Sans (body) / DM Mono (verified numerals)
   Motion: 650ms expo reveals, 90ms stagger, ≤300ms micro-interactions
   Dark is reserved for .moment sections + the dashboard object (contrast).
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Palette · warm paper (default) ── */
  --bg:            #F5F1E8;   /* warm paper — the page canvas */
  --surface:       #EAE5DC;   /* card layer 1 */
  --surface-warm:  #E0DAD0;   /* card layer 2 — deeper tan */
  --zone:          #EFE6D8;   /* alternating section band */
  --text:          #1A1714;   /* warm ink */
  --muted:         #5A544D;   /* body secondary — ~6.3:1 on paper */
  --faint:         #6E675F;   /* small labels — ~4.9:1 AA on paper */
  --ember:         #E8540A;   /* graphics, large fills, borders (large text only) */
  --ember-ink:     #A83D05;   /* small accent text on paper — 5.5:1 AA */
  --hi:            #C2410C;   /* interactive highlight: hover, focus — darkens on light */
  --ember-08:      rgba(232,84,10,0.08);
  --ember-15:      rgba(232,84,10,0.15);
  --ember-30:      rgba(232,84,10,0.30);
  --peach:         #FFDCB8;
  --border:        rgba(26,23,20,0.10);  /* faint structural borders on light */
  --border-strong: rgba(26,23,20,0.22);

  /* ── Shadow scale · light (soft warm, never muddy) ── */
  --shadow-rest:   0 2px 12px rgba(26,23,20,0.06);
  --shadow-hover:  0 24px 48px rgba(26,23,20,0.14);
  --shadow-float:  0 18px 40px rgba(26,23,20,0.12);

  /* ── Palette · dark moment (scoped by .moment) — contrast object ── */
  --m-bg:          #131110;
  --m-surface:     #1C1917;
  --m-text:        #E9E5E1;
  --m-muted:       #B5AFA9;
  --m-ember:       #FF6A2B;
  --m-border:      #262220;

  /* ── Type ── */
  --font-display:  'Syne', sans-serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'DM Mono', ui-monospace, 'SF Mono', monospace;

  /* Type as structure — display up to 6rem, sections ≥3rem, stats ≥4rem */
  --fs-display:    clamp(3rem, 7vw, 6rem);         /* hero display  */
  --fs-h1:         clamp(2.6rem, 5.5vw, 4.4rem);   /* page heroes   */
  --fs-h2:         clamp(2.1rem, 4vw, 3.2rem);     /* sections      */
  --fs-h3:         clamp(1.25rem, 2vw, 1.5rem);
  --fs-stat:       clamp(3.2rem, 6vw, 4.5rem);     /* count-up numerals */
  --fs-lead:       clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body:       1rem;
  --fs-small:      0.875rem;
  --fs-tiny:       0.75rem;

  /* ── Spacing · 8px grid ── */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-6: 48px; --sp-8: 64px; --sp-12: 96px; --sp-16: 128px;

  /* ── Hero top padding (extra clearance under the fixed nav) ──
     Two variants: standard two-column heroes vs. taller/dark ones. Was
     independently hardcoded as "calc(var(--sp-N) + 32px)" in five separate
     page stylesheets (b2b/b2c/government on --sp-12, about/platform on
     --sp-16) — one source of truth per variant now. */
  --hero-pad-top:    calc(var(--sp-12) + 32px);
  --hero-pad-top-lg: calc(var(--sp-16) + 32px);

  /* ── Radius ── */
  --radius-pill:  100px;
  --radius-card:  16px;
  --radius-input: 10px;

  /* ── Layout ── */
  --container:    1160px;
  --container-narrow: 780px;

  /* ── Motion · cinematic-light: 650ms entrances, ≤300ms interactions ── */
  --motion-entrance-fast: 400ms;
  --motion-entrance-base: 650ms;
  --motion-entrance-slow: 950ms;
  --motion-micro:         160ms;
  --motion-hover:         250ms;
  --motion-stagger:       90ms;
  --ease-out-quart:  cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-snap:       cubic-bezier(0.34, 1.2, 0.64, 1);  /* CTAs only */
  --reveal-y:  20px;
  --reveal-x:  32px;
}

/* ════ RESET ════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip guards horizontal bleed WITHOUT making html/body a
   scroll container — position:sticky (hscroll set piece) depends on it.
   Browsers without `clip` fall back to hidden on html only. */
html { overflow-x: hidden; max-width: 100%; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 100%; overflow-x: clip; }

/* Keyboard bypass for repeated navigation and cinematic chrome. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform var(--motion-micro) var(--ease-out-quart);
}
.skip-link:focus { transform: translateY(0); }
main[tabindex="-1"]:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ember-15); }

/* ════ TYPOGRAPHY ════ */
.t-display, .t-h1, .t-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.t-display { font-size: var(--fs-display); }
.t-h1 { font-size: var(--fs-h1); }
.t-h2 { font-size: var(--fs-h2); line-height: 1.1; }

.t-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.t-muted { color: var(--muted); }
.t-small { font-size: var(--fs-small); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-tiny);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-ink);
}
.eyebrow::before {
  content: ''; width: 24px; height: 1.5px; background: var(--ember);
}

/* Verified numerals — stats & prices only */
.num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.accent { color: var(--ember-ink); }

/* ════ LAYOUT ════ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-12); position: relative; }
.section--tight { padding-block: var(--sp-8); }
.section-head { max-width: 62ch; margin-bottom: var(--sp-6); display: grid; gap: var(--sp-2); }
.section-center { text-align: center; }
.section-center .section-head { margin-inline: auto; }
.section-center .t-lead { margin-inline: auto; }

.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .section { padding-block: var(--sp-8); }
}

/* ════ NAV — slim top bar ════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background var(--motion-entrance-fast) var(--ease-in-out),
              box-shadow var(--motion-entrance-fast) var(--ease-in-out),
              transform var(--motion-hover) var(--ease-out-quart);
}
/* Scrolled state: floating light capsule with breathing room off the edge */
.nav.nav--scrolled { padding: 10px var(--sp-2) 0; }
.nav.nav--scrolled .nav-inner {
  background: rgba(245,241,232,0.9);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-rest);
  padding-block: 10px;
}
.nav.nav--hidden { transform: translateY(-100%); }
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  padding: var(--sp-2) var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo-img { display: block; height: 28px; width: auto; }
.nav-logo-img--light { display: none; }
.nav-links {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-left: auto;
  font-size: var(--fs-small);
}
.nav-link {
  position: relative; text-decoration: none; color: var(--muted);
  transition: color var(--motion-micro) var(--ease-in-out);
  padding: 4px 0;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--ember);
  transition: width 400ms var(--ease-out-expo);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--surface);
  align-items: center; justify-content: center; gap: 4px; flex-direction: column;
}
.nav-toggle span { width: 16px; height: 1.5px; background: var(--text); transition: transform var(--motion-micro) var(--ease-in-out), opacity var(--motion-micro); }
@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 8px); right: var(--sp-4);
    flex-direction: column; align-items: flex-end; gap: var(--sp-2);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-card); padding: var(--sp-3);
    box-shadow: var(--shadow-hover);
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ════ BUTTONS ════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px;
  border-radius: var(--radius-pill);
  font-weight: 500; font-size: var(--fs-small); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent;
  transition: background var(--motion-hover) var(--ease-in-out),
              color var(--motion-hover) var(--ease-in-out),
              border-color var(--motion-hover) var(--ease-in-out),
              transform var(--motion-hover) var(--ease-in-out),
              box-shadow var(--motion-hover) var(--ease-in-out);
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--hi); color: #FFF; transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(232,84,10,0.25); }
.btn--primary:active { transform: translateY(0); transition-duration: var(--motion-micro); }
.btn--ember { background: var(--ember-ink); color: #FFF; }  /* 6:1 with white label */
.btn--ember:hover { background: var(--hi); transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(232,84,10,0.25); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--hi); color: var(--ember-ink); transform: translateY(-1px); }
.btn .btn-arrow { transition: transform var(--motion-hover) var(--ease-snap); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn:disabled, .btn.is-disabled {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}

/* ════ CARDS ════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
  transition: transform var(--motion-hover) var(--ease-out-quart),
              border-color var(--motion-hover) var(--ease-in-out),
              box-shadow var(--motion-hover) var(--ease-out-quart);
}
.card:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--ember-30);
  box-shadow: var(--shadow-hover);
}
/* ════ STAT PILL — floating verified numbers ════ */
.stat-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  box-shadow: var(--shadow-rest);
  font-size: var(--fs-small);
}
.stat-pill .stat-val { font-family: var(--font-mono); font-weight: 500; }
.stat-pill .stat-unit { color: var(--muted); font-size: var(--fs-tiny); }

/* ════ TRUST BAR — site-wide hero stat row ════ */
.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--sp-2) var(--sp-3);
  list-style: none;
  margin: var(--sp-3) 0;
  font-size: var(--fs-tiny);
  color: var(--faint);
}
.trust-bar li { display: flex; align-items: center; gap: 6px; }
.trust-bar li:not(:last-child)::after {
  content: ''; width: 3px; height: 3px; border-radius: 50%;
  background: var(--border-strong); margin-left: var(--sp-2);
}
.trust-bar .num { color: var(--ember-ink); font-weight: 600; font-size: var(--fs-small); }
.trust-bar--center { justify-content: center; }
@media (max-width: 640px) {
  .trust-bar { gap: var(--sp-1) var(--sp-2); }
  .trust-bar li:not(:last-child)::after { margin-left: var(--sp-1); }
}

/* ════ TAGS ════ */
.tag {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: var(--fs-tiny); color: var(--muted);
  letter-spacing: 0.04em;
}

/* ════ ACCORDION ════ */
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:first-child { border-top: 1px solid var(--border); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) 0;
  background: none; border: none; text-align: left;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-h3); color: var(--text);
  transition: color var(--motion-micro) var(--ease-in-out);
}
.acc-trigger:hover { color: var(--ember-ink); }
.acc-icon {
  margin-left: auto; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--motion-hover) var(--ease-out-quart),
              background var(--motion-hover) var(--ease-in-out),
              border-color var(--motion-hover) var(--ease-in-out);
}
.acc-icon svg { transition: transform var(--motion-hover) var(--ease-out-quart); }
.acc-item.is-open .acc-icon { background: var(--ember); border-color: var(--ember); }
.acc-item.is-open .acc-icon svg { transform: rotate(45deg); stroke: #FFF; }
.acc-panel {
  overflow: hidden; height: 0;
  transition: height var(--motion-entrance-fast) var(--ease-out-quart);
}
.acc-content {
  padding: 0 0 var(--sp-4) 48px;
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--motion-entrance-fast) var(--ease-out-quart) 120ms,
              transform var(--motion-entrance-fast) var(--ease-out-quart) 120ms;
}
.acc-item.is-open .acc-content { opacity: 1; transform: none; }
@media (max-width: 640px) { .acc-content { padding-left: 0; } }

/* ════ DARK MOMENT — the site's punctuation ════ */
.moment {
  background: var(--m-bg);
  color: var(--m-text);
  border-radius: 0;
}
.moment .t-lead, .moment .t-muted { color: var(--m-muted); }
.moment .eyebrow { color: var(--m-ember); }
.moment .eyebrow::before { background: var(--m-ember); }
.moment .accent { color: var(--m-ember); }
.moment .card {
  background: var(--m-surface); border-color: var(--m-border);
}
.moment .card:hover { border-color: rgba(255,106,43,0.35); box-shadow: 0 20px 44px rgba(0,0,0,0.45); }
.moment .btn--primary { background: var(--m-ember); color: #16130F; }
.moment .btn--primary:hover { background: #FF7F4A; box-shadow: 0 12px 32px rgba(255,106,43,0.25); }
.moment .btn--ghost { border-color: var(--m-border); color: var(--m-text); }
.moment .btn--ghost:hover { border-color: var(--m-ember); color: var(--m-ember); }
.moment .tag { background: var(--m-surface); border-color: var(--m-border); color: var(--m-muted); }
.moment .stat-pill { background: var(--m-surface); border-color: var(--m-border); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.moment .stat-pill .stat-unit { color: var(--m-muted); }
.moment .trust-bar { color: var(--m-muted); }
.moment .trust-bar .num { color: var(--m-ember); }
.moment .trust-bar li:not(:last-child)::after { background: var(--m-border); }

/* ════ CLOSING CTA MOMENT — shared across pages ════ */
.cta-moment { text-align: center; padding-block: var(--sp-12); }
.cta-moment .t-h2 { max-width: 22ch; margin-inline: auto; }
.cta-moment .t-lead { margin: var(--sp-3) auto var(--sp-4); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }
.cta-contact-row {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: center;
  margin-top: var(--sp-4); font-size: var(--fs-small); color: var(--m-muted);
}
.cta-contact-row a { color: var(--m-text); text-decoration: none; }
.cta-contact-row a:hover { color: var(--m-ember); }

/* ════ TABLES (pricing, compliance fallback) ════ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table th {
  text-align: left; padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-tiny); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.table td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table .price { font-family: var(--font-mono); white-space: nowrap; }

/* ════ FORMS ════ */
.input {
  width: 100%; min-height: 48px; padding: 0 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-input);
  background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-small);
  transition: border-color var(--motion-micro) var(--ease-in-out), box-shadow var(--motion-micro) var(--ease-in-out);
}
.input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px var(--ember-15); }
.input:disabled { opacity: 0.6; cursor: not-allowed; background: var(--surface-warm); }
.input.is-error, .input[aria-invalid="true"] { border-color: var(--ember-ink); }
textarea.input { padding: 14px 18px; min-height: 120px; resize: vertical; }

/* ════ FOOTER ════ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-4);
  font-size: var(--fs-small); color: var(--muted);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--sp-6); margin-bottom: var(--sp-6);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h3 {
  font-family: var(--font-body); font-weight: 500;
  font-size: var(--fs-tiny); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: var(--sp-2);
}
.footer-tagline { margin-top: var(--sp-2); max-width: 36ch; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; transition: color var(--motion-micro) var(--ease-in-out); }
.footer-col a:hover { color: var(--ember-ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3);
  padding-top: var(--sp-3); border-top: 1px solid var(--border);
  font-size: var(--fs-tiny); color: var(--faint);
}
.footer-bottom .spacer { flex: 1; }

/* ════ SCROLL REVEALS — progressive enhancement ════
   Content is readable by default. The motion engine opts the page into
   hidden start states only after it has marked all above-fold items visible. */
[data-reveal] {
  opacity: 1; transform: none;
  transition: opacity var(--motion-entrance-base) var(--ease-out-quart),
              transform var(--motion-entrance-base) var(--ease-out-quart);
}
/* Compositing hint only while hidden — once revealed the hint drops, so
   dozens of settled elements don't pin GPU layers and drag scrolling. */
.motion-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  will-change: transform, opacity;
}
.motion-ready [data-reveal="left"]:not(.is-visible)  { transform: translateX(calc(var(--reveal-x) * -1)); }
.motion-ready [data-reveal="right"]:not(.is-visible) { transform: translateX(var(--reveal-x)); }
.motion-ready [data-reveal="scale"]:not(.is-visible) { transform: scale(0.95); }
.motion-ready [data-reveal="fade"]:not(.is-visible)  { transform: none; }
[data-reveal].is-visible { opacity: 1; transform: none; }
/* body copy: fade only, slower — editorial */
p[data-reveal], blockquote[data-reveal] { transform: none; transition-duration: var(--motion-entrance-slow); }
/* stagger */
[data-reveal-delay="1"] { transition-delay: calc(var(--motion-stagger) * 1); }
[data-reveal-delay="2"] { transition-delay: calc(var(--motion-stagger) * 2); }
[data-reveal-delay="3"] { transition-delay: calc(var(--motion-stagger) * 3); }
[data-reveal-delay="4"] { transition-delay: calc(var(--motion-stagger) * 4); }
[data-reveal-delay="5"] { transition-delay: calc(var(--motion-stagger) * 5); }
[data-reveal-delay="6"] { transition-delay: calc(var(--motion-stagger) * 6); }

/* Hero entrance — fires on load, not scroll */
.hero-animate {
  opacity: 0;
  animation: heroReveal var(--motion-entrance-base) var(--ease-out-quart) forwards;
}
.hero-animate:nth-child(1) { animation-delay: 150ms; }
.hero-animate:nth-child(2) { animation-delay: calc(150ms + var(--motion-stagger)); }
.hero-animate:nth-child(3) { animation-delay: calc(150ms + var(--motion-stagger) * 2); }
.hero-animate:nth-child(4) { animation-delay: calc(150ms + var(--motion-stagger) * 3); }
.hero-animate:nth-child(5) { animation-delay: calc(150ms + var(--motion-stagger) * 4); }
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(var(--reveal-y)); }
  to   { opacity: 1; transform: none; }
}

/* Hero headline — per-word entrance replacing the block fade.
   scroll-motion.js splits the text and sets --word-delay on each word,
   seeded from the delay .hero-animate would have used, so the headline
   still enters in sequence with the eyebrow and lead around it. */
.hero-animate.is-split { opacity: 1; animation: none; }
.hero-animate.is-split .word {
  display: inline-block;
  /* words are inline-block for transform; keep the heading's own wrapping
     safety net (long words, soft hyphens) working inside each box */
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(0.42em);
  animation: wordRise var(--motion-entrance-base) var(--ease-out-quart) var(--word-delay, 0ms) forwards;
}
@keyframes wordRise {
  to { opacity: 1; transform: none; }
}

/* ════ GRAPHIC LANGUAGE — sweeps, rings, badges, chips ════ */

/* Rotating circular text ring */
.ring-text {
  position: absolute; z-index: 1; pointer-events: none;
  width: clamp(180px, 20vw, 250px); aspect-ratio: 1;
  animation: ringSpin 48s linear infinite;
}
.ring-text text {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 4px; text-transform: uppercase;
  fill: var(--text); opacity: 0.55;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@media (max-width: 960px) { .ring-text { display: none; } }

/* Ink badge blob — bold number chip (à la "1k+ Your Courses") */
.badge-blob {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: var(--text); color: var(--bg);
  border-radius: 22px;
  padding: var(--sp-2) var(--sp-3);
  box-shadow: var(--shadow-float);
}
.badge-blob .num { font-size: 1.6rem; line-height: 1.1; }
.badge-blob small { font-size: var(--fs-tiny); opacity: 0.75; letter-spacing: 0.04em; }

/* Floating white chip card with a check */
.chip-card {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-2) var(--sp-3);
  box-shadow: var(--shadow-float);
  font-size: var(--fs-small);
}
.chip-card .chip-check {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ember);
  display: inline-flex; align-items: center; justify-content: center;
}
.chip-card .chip-check svg { stroke: #FFF; }
.chip-card small { display: block; color: var(--muted); font-size: var(--fs-tiny); }

/* Gentle float for hero ornaments */
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-slow { animation: chipFloat 6s ease-in-out infinite; }
.float-slower { animation: chipFloat 8s ease-in-out 1.2s infinite; }

/* ════ BOLD HERO — two-column layout with figure, ring text, floating cards ════ */
.hero-bold {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--sp-6); align-items: center;
}
.hero-bold .accent-line { display: block; color: var(--ember); }
/* split heroes: scale the display type to the column, not the viewport */
.hero-bold .t-h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.hero-vis { position: relative; }
.hero-vis::before {
  content: ''; position: absolute; z-index: 0;
  top: 4%; left: 50%; transform: translateX(-50%);
  width: 82%; aspect-ratio: 1 / 1;
  background: radial-gradient(circle, var(--ember) 0%, var(--peach) 45%, transparent 72%);
  opacity: 0.22; filter: blur(48px);
  pointer-events: none;
}
.hero-vis .hero-art { position: relative; z-index: 1; width: min(100%, 720px); height: auto; display: block; margin-inline: auto; }
.hero-vis .hero-photo {
  position: absolute; z-index: 2;
  top: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 720px); aspect-ratio: 560 / 520; height: auto;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 6px 14px rgba(168, 61, 5, 0.18)) drop-shadow(0 34px 48px rgba(28, 25, 23, 0.28));
  pointer-events: none;
}
.hero-vis .badge-blob, .hero-vis .chip-card { position: absolute; z-index: 3; }
.hero-vis .ring-text { top: -5%; right: 2%; }

/* ── Section head + persona/photo illustration split (used across b2c/b2b/government/about) ── */
.head-split {
  display: grid; grid-template-columns: 1fr minmax(320px, 460px);
  gap: var(--sp-6); align-items: center;
  margin-bottom: var(--sp-6);
}
.head-split .section-head { margin-bottom: 0; }
.head-split--flip { grid-template-columns: minmax(320px, 460px) 1fr; }
.head-split--flip .section-head { order: 2; }
.sec-illo { width: 100%; height: auto; }
.sec-illo-wrap {
  --persona-scale: 1;
  --persona-x: 0%;
  --persona-y: 0%;
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1 / 0.92;
  overflow: visible;
  border: 0;
  background: transparent;
}
.sec-illo-wrap--inline { max-width: 400px; margin-top: var(--sp-4); }
.sec-illo-wrap::before {
  content: ''; position: absolute; z-index: 0;
  inset: 8% 5% 4% 4%;
  clip-path: polygon(48% 0, 91% 18%, 100% 62%, 72% 100%, 20% 89%, 0 47%);
  background: linear-gradient(145deg, #E96C30 0 34%, #C9470B 34% 70%, #F07A3C 70%);
  filter: drop-shadow(0 22px 28px rgba(48, 31, 21, 0.16));
  transition: transform var(--motion-entrance-slow) var(--ease-out-expo);
  pointer-events: none;
}
.sec-illo-wrap::after {
  content: ''; position: absolute; z-index: 1;
  inset: 22% 18% 17%;
  clip-path: polygon(17% 7%, 92% 0, 100% 69%, 70% 100%, 0 88%, 7% 28%);
  background: linear-gradient(145deg, #FFE6CE, #FFC38E);
  transition: transform var(--motion-entrance-slow) var(--ease-out-expo);
  pointer-events: none;
}
.sec-illo-orbit {
  position: absolute; z-index: 0;
  width: 48%; aspect-ratio: 1;
  top: -5%; right: -3%;
  overflow: visible;
  pointer-events: none;
  animation: ringSpin 44s linear infinite;
}
.sec-illo-orbit text {
  font: 500 11px var(--font-mono);
  letter-spacing: 4px;
  text-transform: uppercase;
  fill: var(--text);
  opacity: 0.48;
}
.sec-illo-wrap .sec-illo-photo {
  position: absolute; z-index: 2;
  inset: 3% 6% 2%;
  width: 88%; height: 95%;
  object-fit: contain; object-position: 50% 100%;
  transform: translate(var(--persona-x), var(--persona-y)) scale(var(--persona-scale));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 5px 10px rgba(168, 61, 5, 0.12)) drop-shadow(0 24px 32px rgba(28, 25, 23, 0.2));
  transition: transform var(--motion-entrance-base) var(--ease-out-expo), filter var(--motion-entrance-base) var(--ease-in-out);
  pointer-events: none;
}
.sec-illo-wrap:hover::before { transform: rotate(1.4deg) scale(1.012); }
.sec-illo-wrap:hover::after { transform: rotate(-1.8deg) translateY(-3px); }
.sec-illo-wrap:hover .sec-illo-photo {
  transform: translate(var(--persona-x), calc(var(--persona-y) - 7px)) scale(var(--persona-scale));
  filter: drop-shadow(0 8px 12px rgba(168, 61, 5, 0.14)) drop-shadow(0 32px 38px rgba(28, 25, 23, 0.24));
}
.sec-illo-meta {
  position: absolute; z-index: 4;
  right: 1%; bottom: 7%;
  display: flex; align-items: center; gap: 12px;
  max-width: min(76%, 270px);
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.08);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  box-shadow: var(--shadow-float);
  transition: transform var(--motion-hover) var(--ease-out-expo);
}
.sec-illo-wrap:hover .sec-illo-meta { transform: translate(5px, -6px); }
.sec-illo-check {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font: 700 1rem var(--font-body);
}
.sec-illo-meta strong {
  display: block;
  color: var(--text);
  font: 700 0.9rem/1.1 var(--font-display);
  letter-spacing: -0.01em;
}
.sec-illo-meta small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 500 0.58rem/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sec-illo-wrap--clearance { --persona-scale: 1.01; }
.sec-illo-wrap--jobready { --persona-scale: 0.98; --persona-y: 1%; }
.sec-illo-wrap--family { --persona-scale: 0.98; --persona-y: 1%; }
.sec-illo-wrap--lifeadmin { --persona-scale: 0.95; --persona-y: 1%; }
.sec-illo-wrap--portrait { --persona-scale: 0.98; }
.sec-illo-wrap--senior-pack { --persona-scale: 1.14; }
.sec-illo-wrap--portrait .sec-illo-photo { object-fit: contain; object-position: 50% 100%; }
.sec-illo-wrap--landlord {
  --persona-scale: 0.96;
  aspect-ratio: 10 / 11;
  margin-top: clamp(40px, 5vw, 70px);
}
.sec-illo-wrap--landlord .sec-illo-photo {
  object-fit: contain;
  object-position: 50% 100%;
}
@media (max-width: 860px) {
  .head-split, .head-split--flip { grid-template-columns: 1fr; }
  .head-split--flip .section-head { order: 0; }
  .sec-illo { max-width: 380px; justify-self: center; }
  .sec-illo-wrap {
    width: min(100%, calc(100vw - 40px));
    max-width: 380px;
    min-width: 0;
    justify-self: center;
  }
  .sec-illo-orbit { display: none; }
  .sec-illo-meta { right: 0; bottom: 4%; max-width: calc(100% - 12px); padding: 10px 12px; border-radius: 15px; }
  .sec-illo-meta > span:last-child { min-width: 0; }
  .sec-illo-check { width: 32px; height: 32px; font-size: 0.82rem; }
  .sec-illo-meta strong { font-size: 0.78rem; }
  .sec-illo-meta small { font-size: 0.52rem; }
  .sec-illo-wrap--landlord {
    --persona-scale: 1;
    margin-inline: auto;
  }
}

.chip-val { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.hero-cite { margin-top: var(--sp-2); font-size: var(--fs-tiny); color: var(--faint); max-width: 46ch; }

@media (max-width: 960px) {
  .hero-bold { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .hero-vis { max-width: 520px; margin-inline: auto; }
  /* .scroll-cue sits a fixed distance from the bottom of the whole hero
     section (text column + stacked image), not from hero-vis itself. Once
     the columns stack here, the section's total height is driven by the
     text, so the cue's "near the bottom" position lands mid-image instead
     — directly on top of .badge-blob/.chip-card's own bottom-anchored
     placement. Decorative only (aria-hidden), so dropping it below the
     breakpoint where the collision is structural is the safe fix. */
  .hero-bold .scroll-cue { display: none; }
}

/* ════ STRUCTURAL DIVIDERS — fine dotted section separators ════ */
.section:not(.moment) > .container::before,
.section--tight:not(.moment) > .container::before {
  content: ''; display: block;
  border-top: 1px dotted var(--border-strong);
  margin-bottom: var(--sp-8);
}

/* ════ MICRO-INTERACTIONS — precise, uniform 0.3s ease ════
   Normalises speed/curve only, so data-reveal stagger delays survive. */
.btn, .card, .tag, .stat-pill, .chip-card, .badge-blob,
.acc-icon, .path-card, .table-wrap, .input {
  transition-duration: 0.3s;
  transition-timing-function: ease;
}
.tag, .table-wrap { transition-property: border-color, color, transform, box-shadow; }
.tag:hover { border-color: var(--border-strong); color: var(--text); }
.stat-pill:hover { border-color: var(--ember-30); transform: translateY(-1px); }
.chip-card:hover, .badge-blob:hover { transform: translateY(-2px) scale(1.01); }

/* ════════════════════════════════════════════════════════════════════
   PREMIUM LAYER — v7 components
   z-index scale: content 10 · rails/ornament 20 · sticky ui 30 · nav 100
   ════════════════════════════════════════════════════════════════════ */

/* ── Section seams — bridge alternating .section/.zone/.moment color bands.
   Local decoration scoped to two adjacent sections, deliberately NOT on the
   z-index scale above (that scale is for sticky/fixed chrome; these are static
   in-flow overlays that only need to out-paint their own next sibling, which a
   `position: relative` host with no z-index already guarantees). ── */
.seam-host { position: relative; }

/* High-contrast: interlocking diagonal panel + ember edge + rotated wayfinding badge */
.section-seam--diagonal {
  position: absolute; left: 0; right: 0; bottom: -40px; height: 140px;
  z-index: 2; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0% 100%);
  filter: drop-shadow(0 14px 12px rgba(0,0,0,0.35));
}
.section-seam--diagonal.seam--dark  { background: var(--m-bg); }
.section-seam--diagonal.seam--cream { background: var(--bg); }
.seam-edge {
  position: absolute; inset: 0; clip-path: inherit;
  box-shadow: inset 0 -2px 0 0 var(--ember);
}
.seam-badge {
  position: absolute; left: 38%; top: 90%;
  transform: translate(-50%, -50%) rotate(-5deg);
  display: flex; align-items: center; gap: 8px;
  /* --ember-ink, not --ember: white on --ember is 3.68:1 and fails AA at this 12px
     mono size (--ember is flagged "large text only"). --ember-ink is the system's
     white-on-ember token (~6:1), same as .btn--ember. */
  background: var(--ember-ink); color: #fff;
  font-family: var(--font-mono); font-size: var(--fs-tiny); letter-spacing: 0.04em;
  padding: 10px 16px; white-space: nowrap;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  filter: drop-shadow(0 12px 16px rgba(0,0,0,0.35));
}
.seam-badge .seam-arrow { opacity: 0.85; }
.seam-mark {
  position: absolute; top: 4%; right: 4%;
  width: 72px; height: auto; opacity: 0.22;
}

/* Low-contrast: pure gradient feather, no line, no shape — straddles the seam 30px/30px */
.section-seam--feather {
  position: absolute; left: 0; right: 0; bottom: -30px; height: 60px;
  z-index: 1; pointer-events: none;
}
.section-seam--feather.seam--zone-to-cream { background: linear-gradient(180deg, var(--zone) 0%, var(--bg) 100%); }
.section-seam--feather.seam--cream-to-zone { background: linear-gradient(180deg, var(--bg) 0%, var(--zone) 100%); }

/* ── Hero scroll cue — bouncing chevron + label, bottom-center ──
   Solid --surface pill (not just a transparent color) so contrast holds
   regardless of what sits behind it — on some heroes this lands over the
   hero photo, not the flat page background. */
.scroll-cue {
  position: absolute; left: 50%; bottom: var(--sp-3); transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none;
  background: var(--surface);
  border-radius: 999px;
  padding: 6px var(--sp-2) 8px;
  box-shadow: var(--shadow-float);
}
.scroll-cue span {
  font-family: var(--font-mono); font-size: var(--fs-tiny); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ember-ink);
}
.scroll-cue svg { animation: scrollCueBounce 1.6s ease-in-out infinite; }
@keyframes scrollCueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ── Glow card — conic border beam (ported from the original gateway) ── */
.glow-card { position: relative; }
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.glow-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg, transparent 60deg,
    var(--ember) 120deg, rgba(232,84,10,0.6) 150deg,
    transparent 200deg, transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 0;
  pointer-events: none;
}
.glow-card:hover::before, .glow-card:focus-visible::before {
  opacity: 1;
  animation: glowSpin 2.4s linear infinite;
}
@keyframes glowSpin { to { --angle: 360deg; } }
.glow-card > * { position: relative; z-index: 1; }

/* ── Logo ticker — continuous strip, logos multiply into the paper ── */
.ticker {
  position: relative;
  overflow: hidden;
  padding-block: var(--sp-3);
  border-block: 1px dotted var(--border-strong);
}
.ticker-track {
  display: flex; align-items: center; gap: var(--sp-8);
  width: max-content;
  animation: tickerScroll 32s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-toggle {
  position: absolute;
  /* Centred in the strip rather than pinned to its top edge: the gateway
     variant (.gw-ticker) is only ~50px tall, so a 44px pill at top:8px was
     clipped by the strip's overflow:hidden. margin auto keeps the reveal
     transform free. */
  inset-block: 0;
  margin-block: auto;
  right: var(--sp-2);
  z-index: 2;
  height: 44px;
  padding: 0 var(--sp-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  /* --bg is an opaque hex, so scrolling logos never read through the label;
     the resting shadow lifts the pill off the moving strip behind it. */
  background: var(--bg);
  box-shadow: var(--shadow-rest);
  color: var(--text);
  font: 500 var(--fs-tiny) var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--motion-micro), transform var(--motion-micro);
}
/* is-paused keeps the control visible after the pointer leaves — otherwise a
   frozen strip has no visible way back. */
.ticker:hover .ticker-toggle,
.ticker:focus-within .ticker-toggle,
.ticker.is-paused .ticker-toggle { opacity: 1; transform: none; }
/* Touch: no hover, usually no focus-within. Reveal-on-hover would leave the
   WCAG 2.2.2 control invisible but tappable, so it rests visible instead. */
@media (hover: none) {
  .ticker-toggle { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .ticker-toggle { right: var(--sp-1); padding-inline: var(--sp-1); }
}
.ticker-track img {
  height: 40px; width: auto; max-width: 150px;
  object-fit: contain; object-position: center;
  mix-blend-mode: multiply;
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ── Text marquee — oversized double band ── */
.marquee {
  overflow: hidden;
  padding-block: var(--sp-3);
  border-block: 1px dotted var(--border-strong);
  user-select: none;
}
.marquee-track {
  display: flex; gap: var(--sp-6);
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  letter-spacing: -0.01em; white-space: nowrap;
  color: var(--text);
}
.marquee-track span.hollow {
  color: var(--text);
}
.marquee-track .marquee-dot { color: var(--ember); }

/* ── Sticky in-page section rail — docked sub-nav band ──
   Previously a centered floating pill: translucent, fit-content width, with
   whatever body copy happened to be underneath it as you scrolled past the
   first section — a real visual collision, not fixed by hiding it on
   scroll-down alone (that only reduces how *often* it's visible, not
   *where* it sits when visible). Now it's permanent page chrome instead: a
   full-width band flush under .nav, same frosted material as .nav-inner's
   scrolled state, so there's nothing for body text to collide with — it
   reads as an intentional second tier of chrome, the same way body copy is
   expected to disappear under the fixed nav, not as a stray object parked
   mid-paragraph. Still hides on scroll-down / reveals on scroll-up in
   tandem with .nav, purely for reading room now, not to mask the defect. */
.section-rail {
  position: sticky; top: 80px; z-index: 30;
  width: 100%;
  background: rgba(245,241,232,0.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: transform var(--motion-hover) var(--ease-out-quart);
}
.section-rail.rail--hidden { transform: translateY(-100%); }
.rail-track {
  display: flex; gap: 4px; align-items: center;
  max-width: var(--container); margin-inline: auto;
  padding: 6px var(--sp-4);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-link {
  flex: none;
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 16px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-tiny); font-weight: 500; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none;
  scroll-snap-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.rail-link:hover { color: var(--text); }
.rail-link.is-active { color: var(--ember-ink); background: var(--ember-08); }
@media (max-width: 640px) {
  .rail-track { padding-inline: var(--sp-2); }
  .rail-link { font-size: 0.75rem; }
}
/* Sections indexed by the rail need extra scroll clearance for the docked
   nav+rail chrome (measured 80px nav + 49px rail, +7px breathing room —
   same value as the Lenis anchor-scroll offset in scroll-motion.js, so
   native fragment navigation and the Lenis-enhanced path agree). Matched
   on [id] rather than .section: rail targets don't all share one class
   (.section, .section.zone, .moment.phase-section, .hscroll, .section--tight
   all appear as direct rail-jump targets across b2b/b2c/government), but
   they're always the sibling with the id the rail link points to. The
   general-sibling selector scopes this to only the pages that actually
   render a rail, leaving ordinary pages' lighter nav-only clearance
   untouched. */
.section-rail ~ [id] { scroll-margin-top: 136px; }

/* ── Scroll progress hairline ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 110;
  height: 2px; width: 100%;
  background: var(--ember);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ── Section labels & ghost ornaments ── */
.sec-label {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-tiny);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember-ink);
}
.sec-label .sec-label-num { color: var(--faint); }
.sec-ghost {
  position: absolute; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6rem, 15vw, 12rem); line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(232,84,10,0.18);
  user-select: none;
  will-change: transform;
}
.sec-ghost-host { position: relative; overflow: hidden; }
.sec-ghost-host .container { position: relative; z-index: 1; }

/* ── Phase model (dark moment) — shared by b2b.html and government.html ── */
.phase-section { padding-block: var(--sp-12); }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
@media (max-width: 860px) { .phase-grid { grid-template-columns: 1fr; } }
.phase-card { position: relative; padding-top: var(--sp-4); }
.phase-card .phase-idx {
  font-family: var(--font-mono); font-size: var(--fs-tiny);
  color: var(--m-ember); letter-spacing: 0.12em;
}
.phase-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: var(--sp-1) 0; }
.phase-card p { font-size: var(--fs-small); color: var(--m-muted); }
.phase-card {
  border-top: 1.5px solid var(--m-border);
  transition: border-color var(--motion-entrance-fast) var(--ease-in-out);
}
.phase-card.is-lit { border-top-color: var(--m-ember); }
#phase-canvas { width: 100%; height: 340px; display: block; margin-top: var(--sp-4); }

/* ── Chapters — expanded service layout (accordion replacement) ── */
.chapter-layout {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--sp-8); align-items: start;
}
.chapter-index {
  position: sticky; top: 140px;
  display: grid; gap: 2px;
  font-size: var(--fs-small);
}
.chapter-index a {
  display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline;
  padding: 8px 10px; border-radius: var(--radius-input);
  color: var(--muted); text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.chapter-index a .ci-num { font-family: var(--font-mono); font-size: var(--fs-tiny); color: var(--faint); }
.chapter-index a:hover { color: var(--text); }
.chapter-index a.is-active { color: var(--ember-ink); background: var(--ember-08); }
.chapter-index a.is-active .ci-num { color: var(--ember-ink); }
.chapter {
  padding-block: var(--sp-6);
  border-bottom: 1px dotted var(--border-strong);
  scroll-margin-top: 140px;
}
.chapter:last-child { border-bottom: none; }
.chapter-toggle { display: none; }
.chapter-head {
  display: flex; align-items: baseline; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.chapter-head .ch-num {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--fs-small); color: var(--ember-ink); letter-spacing: 0.08em;
}
.chapter-head .ch-icon { flex: none; align-self: center; stroke: var(--ember); }
.chip-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: var(--sp-3);
}
.chip-grid span {
  border: 1px solid var(--border); border-radius: var(--radius-input);
  background: var(--surface);
  padding: 10px 14px; font-size: var(--fs-small); color: var(--muted);
}
@media (max-width: 960px) {
  .chapter-layout { grid-template-columns: 1fr; }
  .chapter-index { display: none; }
  .chip-grid { grid-template-columns: 1fr; }

  .chapter-ready .chapter {
    padding-block: var(--sp-4);
  }
  .chapter-ready .chapter .svc-prso,
  .chapter-ready .chapter .chip-label,
  .chapter-ready .chapter .chip-grid,
  .chapter-ready .chapter .svc-note {
    display: none;
  }
  .chapter-ready .chapter.is-expanded .svc-prso,
  .chapter-ready .chapter.is-expanded .chip-label,
  .chapter-ready .chapter.is-expanded .chip-grid,
  .chapter-ready .chapter.is-expanded .svc-note {
    display: grid;
  }
  .chapter-ready .chapter.is-expanded .svc-note { display: block; }
  .chapter-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 44px; margin-top: var(--sp-2); padding: 0 16px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--text);
    font-size: var(--fs-small); font-weight: 500;
  }
  .chapter-toggle::after { content: '+'; color: var(--ember-ink); font-size: 1.1rem; }
  .chapter.is-expanded .chapter-toggle::after { content: '\2212'; }
}

/* ── Scroll-discovery steps (sticky icon rail + fill line + active step) ── */
.discover {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--sp-8); align-items: start;
  margin-top: var(--sp-6);
}
.discover-rail {
  position: sticky; top: 140px;
  display: flex; gap: var(--sp-3);
  height: 200px;
}
.discover-line {
  position: relative; width: 2px; height: 100%; flex-shrink: 0;
  margin-top: 4px;
  background: var(--border-strong);
  border-radius: 2px;
}
.discover-line-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--ember);
  border-radius: 2px;
  transform: scaleY(0); transform-origin: top;
}
.discover-frames { position: relative; flex: 1; height: 100%; }
.discover-frame {
  position: absolute; inset: 0;
  display: grid; gap: 10px; align-content: start;
  opacity: 0; transform: translateY(10px);
  transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo);
}
.discover-frame.is-active { opacity: 1; transform: translateY(0); position: relative; }
.discover-icon { width: 38px; height: 38px; color: var(--ember); }
.discover-frame-num { font-family: var(--font-mono); font-size: var(--fs-tiny); color: var(--faint); letter-spacing: 0.08em; }
.discover-frame-label { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.25; }

.discover-steps { display: grid; gap: 4px; }
.discover-step {
  position: relative;
  padding: var(--sp-4) 0 var(--sp-4) var(--sp-6);
  border-left: 2px solid var(--border-strong);
  transition: border-color 0.35s ease;
}
.discover-step.is-active { border-left-color: var(--ember); }
.discover-step-num {
  position: absolute; left: -17px; top: var(--sp-4);
  width: 34px; height: 34px;
  border-radius: 50%; background: var(--bg);
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: var(--fs-tiny); color: var(--faint);
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}
.discover-step.is-active .discover-step-num {
  border-color: var(--ember); color: #FFF; background: var(--ember);
  transform: scale(1.12);
}
.discover-step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 4px; }
.discover-step p { color: var(--muted); font-size: var(--fs-small); max-width: 52ch; }
@media (max-width: 860px) {
  .discover { grid-template-columns: 1fr; }
  .discover-rail { display: none; }
}

/* ── Horizontal-scroll set piece (packages) ── */
.hscroll { position: relative; }
.hscroll-sticky { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hscroll-track {
  display: flex; gap: var(--sp-3);
  padding-inline: var(--sp-4);
  width: max-content;
  will-change: transform;
}
.hscroll-panel {
  width: clamp(280px, 30vw, 380px);
  flex: none;
}
@media (max-width: 960px) {
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: static; min-height: 0; display: block; overflow: visible; }
  .hscroll-track { width: auto; display: grid; grid-template-columns: 1fr; gap: var(--sp-3); transform: none !important; }
  .hscroll-panel { width: auto; }
}
@media (max-width: 640px) {
  .hscroll-sticky { overflow: hidden; }
  .hscroll-track {
    width: 100%; display: flex; gap: var(--sp-2);
    overflow-x: auto; overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding: var(--sp-3) var(--sp-4) var(--sp-6);
    scrollbar-width: none;
  }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .hscroll-panel {
    flex: 0 0 min(82vw, 340px); width: min(82vw, 340px);
    scroll-snap-align: start;
  }
}

/* ── Dark dashboard object — light page, dark artefact ── */
.dash {
  position: relative;
  background: var(--m-bg);
  border: 1px solid var(--m-border);
  border-radius: 16px;
  overflow: hidden;
  color: var(--m-text);
  box-shadow: var(--shadow-hover);
}
.dash::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px,
    rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px);
  pointer-events: none; z-index: 5;
  border-radius: inherit;
}
.dash-float {
  transform: perspective(1200px) rotateX(2deg);
  transition: transform 0.3s ease;
}
.dash-float:hover { transform: perspective(1200px) rotateX(0deg) translateY(-4px); }
.dash-bar {
  background: rgba(11,10,9,0.95);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  border-bottom: 1px solid rgba(232,84,10,0.15);
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(233,229,225,0.14); }
.dash-title {
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em;
  color: rgba(233,229,225,0.6); text-transform: uppercase;
}
.dash-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--m-ember); letter-spacing: 0.1em;
  font-weight: 600; text-transform: uppercase;
}
.dash-live .live-pulse {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--m-ember);
  animation: livePulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255,106,43,0.8);
}
@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(0.7); }
}
.dash-body { padding: var(--sp-2) var(--sp-3) var(--sp-3); position: relative; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: var(--sp-2); }
.dash-tile {
  background: var(--m-surface); border: 1px solid var(--m-border);
  border-radius: 10px; padding: 12px;
}
.dash-tile .dt-num { font-family: var(--font-mono); font-size: 1.3rem; color: var(--m-text); }
.dash-tile .dt-label { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--m-muted); margin-top: 2px; }
.dash-rows { display: grid; gap: 6px; }
.dash-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--sp-2); align-items: center;
  background: var(--m-surface); border: 1px solid var(--m-border);
  border-radius: 10px; padding: 10px 14px;
  font-size: var(--fs-tiny);
  opacity: 0; transform: translateY(8px);
}
.dash-row.row-in { animation: rowIn 400ms var(--ease-out-expo) forwards; }
@keyframes rowIn { to { opacity: 1; transform: translateY(0); } }
.dash-row .dr-name { font-family: var(--font-mono); color: var(--m-text); }
.dash-row .dr-type { color: var(--m-muted); }
.dash-row .dr-status { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 9.5px; }
.dash-row .dr-status.ok { color: #6ECB8B; }
.dash-row .dr-status.busy { color: var(--m-ember); }
/* boot overlay */
.dash-scan {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(11,10,9,0.97);
  border-radius: inherit;
  transition: opacity 300ms ease;
}
.dash-scan-line {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--m-ember) 40%, rgba(255,106,43,0.6) 60%, transparent 100%);
  box-shadow: 0 0 12px rgba(255,106,43,0.6);
}
.dash-term {
  position: absolute; inset: 0; z-index: 11;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-3);
  font-family: var(--font-mono); font-size: 11px; color: var(--m-ember);
}
.term-line {
  opacity: 0; transform: translateX(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
  margin-bottom: 6px; line-height: 1.5;
}
.term-line.is-visible { opacity: 1; transform: none; }
.term-line .term-ok { color: #6ECB8B; }

/* Dashboard view switcher — dash is always the dark artefact, independent of .moment ancestry */
.dash .tab-list {
  width: 100%; align-self: stretch; max-width: none;
  border-radius: 0; border: none; border-bottom: 1px solid rgba(232,84,10,0.15);
  background: rgba(11,10,9,0.95);
  padding: 4px 14px;
}
.dash .tab-trigger { color: var(--m-muted); min-height: 34px; padding: 0 14px; font-size: var(--fs-tiny); }
.dash .tab-trigger:hover { color: var(--m-text); }
.dash .tab-trigger[aria-selected="true"] { background: var(--m-ember); color: #16130F; }

/* ── Dark moment grid texture — structural, not grain ── */
.moment {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── Blur reveal variant ── */
[data-reveal="blur"] { transform: none; filter: none; }
.motion-ready [data-reveal="blur"]:not(.is-visible) { filter: blur(10px); }
[data-reveal="blur"].is-visible { filter: blur(0); transition-property: opacity, filter; }

/* ── Zone band — alternating section background ── */
.zone { background: var(--zone); }

/* ── Anti-slop base: visible form labels, interactive affordances ── */
.field { display: grid; gap: 6px; }
.field label {
  font-size: var(--fs-tiny); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint);
}
.field-error {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--fs-tiny); color: var(--ember-ink);
}
.field-error[hidden] { display: none; }
a.card, .path-card, button.card { cursor: pointer; }

/* ════ GLOSSARY TERM — inline definition tooltip ════ */
.gloss {
  all: unset;
  display: inline;
  position: relative;
  cursor: help;
  color: inherit;
  border-bottom: 1px dotted var(--border-strong);
}
.gloss:hover, .gloss:focus-visible, .gloss.is-open {
  border-bottom-color: var(--ember);
  color: var(--ember-ink);
}
.gloss-tip {
  position: absolute; z-index: 40;
  left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  width: max-content; max-width: 260px;
  padding: 10px 14px;
  background: var(--text); color: var(--bg);
  border-radius: var(--radius-input);
  font-family: var(--font-body); font-size: var(--fs-tiny); line-height: 1.5;
  font-weight: 400; text-align: left;
  box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden;
  transition: opacity var(--motion-micro) var(--ease-out-quart),
              transform var(--motion-micro) var(--ease-out-quart),
              visibility 0s linear var(--motion-micro);
  pointer-events: none;
}
.gloss-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--text);
}
.gloss:hover .gloss-tip, .gloss:focus-visible:not(.is-dismissed) .gloss-tip, .gloss.is-open .gloss-tip {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity var(--motion-micro) var(--ease-out-quart),
              transform var(--motion-micro) var(--ease-out-quart);
}
.moment .gloss-tip { background: var(--m-ember); color: #16130F; }
.moment .gloss-tip::after { border-top-color: var(--m-ember); }
@media (max-width: 640px) {
  .gloss-tip { max-width: 200px; font-size: 0.7rem; left: 0; transform: translateY(4px); }
  .gloss-tip::after { left: 20px; }
  .gloss:hover .gloss-tip, .gloss:focus-visible:not(.is-dismissed) .gloss-tip, .gloss.is-open .gloss-tip { transform: translateY(0); }
}

/* ════ TABS — ARIA tablist, roving tabindex ════ */
.tabs { display: grid; gap: var(--sp-3); }
.tab-list {
  display: inline-flex; gap: 4px; align-self: start; max-width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 5px;
  overflow-x: auto; scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-trigger {
  flex: none;
  border: none; background: none; color: var(--muted);
  min-height: 40px; padding: 0 20px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-small);
  transition: color var(--motion-micro) var(--ease-in-out), background var(--motion-micro) var(--ease-in-out);
}
.tab-trigger:hover { color: var(--text); }
.tab-trigger[aria-selected="true"] { background: var(--text); color: var(--bg); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: tabIn var(--motion-entrance-fast) var(--ease-out-quart); }
@keyframes tabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.moment .tab-list { background: var(--m-surface); border-color: var(--m-border); }
.moment .tab-trigger { color: var(--m-muted); }
.moment .tab-trigger[aria-selected="true"] { background: var(--m-ember); color: #16130F; }

/* ════ VISUALLY HIDDEN (screen-reader only) ════ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ════ FOCUS VISIBILITY ════ */
:focus-visible { outline: 2px solid var(--hi); outline-offset: 3px; border-radius: 4px; }

/* ════ MOBILE MOTION CONSTRAINTS ════ */
@media (max-width: 768px) {
  :root { --reveal-y: 14px; --reveal-x: 20px; }
  .motion-ready [data-reveal="left"]:not(.is-visible),
  .motion-ready [data-reveal="right"]:not(.is-visible) { transform: translateY(14px); }
  .card:hover { transform: none; }
  .sec-ghost { display: none; }
}

/* ════ REDUCED MOTION — always last ════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero-animate { opacity: 1; animation: none; }
  /* scroll-motion.js skips splitting under reduced motion, so this only
     catches the case where the preference is turned on after load. */
  .hero-animate.is-split .word { opacity: 1; transform: none; animation: none; }
  /* premium layer: strips freeze, set pieces resolve to final state */
  .ticker-track, .marquee-track { animation: none; transform: none; }
  .hscroll { height: auto !important; }
  .hscroll-sticky { position: static; min-height: 0; overflow: visible; }
  .hscroll-track { width: auto; transform: none !important; flex-wrap: wrap; }
  .sec-ghost { transform: none !important; }
  .dash-float { transform: none; }
  .dash-scan, .dash-term { display: none; }
  .dash-row { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
  .glow-card:hover::before { animation: none; opacity: 0.5; }
  .discover-frame { transition: none; }
  .discover-line-fill { transform: scaleY(1) !important; }
  .discover-step-num { transition: none; transform: none !important; }
  .tab-panel { animation: none; }
  .gloss-tip { transition: none; }
}
