/* ==========================================================================
   Alpha Knight Academy: global styles
   One file shared by every page. Page-specific styles live in each page's
   own <style> block or a small page CSS file.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --paper: #F3F5F7;          /* lab white: page background */
  --surface: #FFFFFF;        /* panels, forms */
  --ink: #0F1B2D;            /* reading text */
  --slate: #4B5768;          /* secondary text */
  --line: #D9DEE5;           /* hairlines */
  --orange: #FF5E00;         /* Knight orange: primary accent */
  --orange-hover: #FF7A2E;
  --orange-deep: #C24400;    /* small orange text, 4.7:1 on paper */
  --orange-tint: #FFF0E6;
  --black: #0A0A0C;          /* Knight black: second accent */
  --black-2: #17181C;
  --on-black: #F3F5F7;
  --on-black-muted: #9AA0AA;
  --line-dark: #26282E;
  --success: #1F7A4D;
  --error: #B42318;

  /* type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-stretch: 112%;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-md: 1.1875rem;   /* 19 */
  --fs-lg: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-2xl: clamp(2.25rem, 1.6rem + 3vw, 4rem);
  --fs-3xl: clamp(2.6rem, 1.7rem + 4.4vw, 5rem);

  /* space (8px grid) */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4rem; --s7: 6rem; --s8: 8rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --max: 1200px;
  --measure: 62ch;

  /* shape */
  --r-sm: 8px; --r: 12px; --r-lg: 18px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px -12px rgba(15, 27, 45, .18);

  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;

  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-base)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html, body { overflow-x: clip; }        /* no sideways scroll, without turning body into a scroll box */
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h1, h2 { font-stretch: var(--display-stretch); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--black); }
:focus-visible { outline: 2.5px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--black); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 2.4rem + 3vw, 5rem); }
.section--black { background: var(--black); color: var(--on-black); }
.section--surface { background: var(--surface); }
.stack > * + * { margin-top: var(--s3); }
.measure { max-width: var(--measure); }

/* ---------- Type helpers ---------- */
.display { font-size: var(--fs-3xl); line-height: 1; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-2xl); line-height: 1.02; }
.h3 { font-size: var(--fs-lg); line-height: 1.2; letter-spacing: -0.01em; font-stretch: 100%; font-weight: 700; }
.lede { font-size: var(--fs-md); line-height: 1.6; color: #2A3547; max-width: 56ch; }
.section--black .lede { color: #C9CED6; }
.muted { color: var(--slate); }
.section--black .muted { color: var(--on-black-muted); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--orange-deep); margin-bottom: var(--s2); }
.section--black .label { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4rem;
  border: 0; border-radius: var(--r-pill);
  font-weight: 650; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--black); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--black-2); }
.btn--quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.section--black .btn--quiet { color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.section--black .btn--quiet:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.link:hover { color: var(--ink); }
.section--black .link { color: var(--orange); }
.section--black .link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 245, 247, .97);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand__name { white-space: nowrap; font-weight: 800; font-stretch: 108%; letter-spacing: -0.015em; font-size: 1.0625rem; line-height: 1; }
.nav { display: flex; align-items: center; gap: clamp(1rem, .4rem + 1.4vw, 2rem); }
.nav a { text-decoration: none; font-weight: 550; font-size: .98rem; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; border-radius: var(--r-sm); }
.menu-btn span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper); padding: var(--s4) var(--gutter) var(--s5); display: flex; flex-direction: column; gap: var(--s1); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur); }
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; }
.mobile-menu a:not(.btn) { font-size: 1.75rem; font-weight: 800; font-stretch: 108%; letter-spacing: -0.02em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: var(--s3); }
.mobile-menu__foot { margin-top: auto; font-size: var(--fs-sm); color: var(--slate); line-height: 1.8; }
.mobile-menu__foot a { color: var(--slate); }

/* top announcement bar (webinar) */
.announce { background: var(--black); color: var(--on-black); font-size: var(--fs-sm); }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 40px; padding-block: 6px; text-align: center; }
.announce a { color: var(--orange); font-weight: 650; text-underline-offset: 3px; }
.announce__close { background: none; border: 0; color: var(--on-black-muted); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; flex: none; }
.announce__close:hover { color: #fff; }

@media (max-width: 1040px) {
  .nav, .site-header .header-cta { display: none; }
  .site-header__inner { gap: var(--s2); }
  .site-header .btn--sm { padding: 0 .9rem; }
  .menu-btn { display: block; }
  :root { --header-h: 60px; }
}
@media (min-width: 1041px) { .mobile-menu { display: none; } }
@media (max-width: 400px) { .brand { gap: 8px; } .brand__name { font-size: .875rem; } .brand svg { width: 28px; height: 28px; } .site-header .btn--sm { padding: 0 .75rem !important; font-size: .875rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-black); padding-block: var(--s6) var(--s4); font-size: var(--fs-sm); }
.site-footer a { text-decoration: none; color: var(--on-black); }
.site-footer a:hover { color: var(--orange); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--s5) var(--s4); }
.footer-brand p { color: var(--on-black-muted); max-width: 32ch; margin-top: var(--s2); }
.footer-brand .brand { color: #fff; }
.footer-col h2 { font-size: var(--fs-sm); font-stretch: 100%; letter-spacing: 0; font-weight: 600; color: var(--on-black-muted); margin-bottom: var(--s2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); color: var(--on-black-muted); font-size: var(--fs-xs); }
.footer-bottom nav { display: flex; gap: var(--s3); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); }
.field .hint { font-size: var(--fs-xs); color: var(--slate); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #8C95A3; }
.input:hover, .select:hover, .textarea:hover { border-color: #B8C0CB; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 94, 0, .18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field .error { display: none; color: var(--error); font-size: var(--fs-xs); font-weight: 600; }
.field.has-error .error { display: block; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: var(--fs-xs); color: var(--slate); margin: 0; }
.form-status { font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Disclosure (FAQ) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 20px 0; font-weight: 650; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--dur) var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq .faq__body { padding: 0 0 22px; color: #2A3547; max-width: 64ch; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; transform: translateY(140%); visibility: hidden; transition: transform 320ms var(--ease), visibility 320ms; }
.sticky-cta.is-visible { transform: none; visibility: visible; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px -10px rgba(10, 10, 12, .45); }
@media (max-width: 860px) { .sticky-cta { display: block; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 60; background: var(--black); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; pointer-events: none; transition: opacity var(--dur), transform var(--dur) var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal (one subtle entrance, opt-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}


/* ==========================================================================
   Shared content components (used on Home and Affinity)
   ========================================================================== */

/* ---------- Facts strip ---------- */
.facts-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.facts-strip > div { padding: 16px 16px 0 0; }
.facts-strip dt { font-size: var(--fs-xs); color: var(--slate); }
.facts-strip dd { margin: 4px 0 0; font-weight: 650; font-size: 1rem; line-height: 1.35; }
@media (max-width: 760px) {
  .facts-strip { grid-template-columns: 1fr 1fr; }
  .facts-strip > div { padding: 14px 12px 0 0; }
}

/* ---------- Module ribbon: seven modules as one strand ---------- */
.ribbon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.ribbon::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 21px; height: 2px; background: var(--line); }
.ribbon li { position: relative; text-align: center; padding: 0 6px; }
.ribbon a { text-decoration: none; display: block; color: inherit; }
.ribbon .node { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: .9375rem; position: relative; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur); font-variant-numeric: tabular-nums; }
.ribbon li:first-child .node { background: var(--orange); border-color: var(--orange); color: var(--black); }
.ribbon a:hover .node, .ribbon a:focus-visible .node { background: var(--black); border-color: var(--black); color: #fff; }
.ribbon .name { display: block; font-weight: 800; font-stretch: 106%; font-size: 1.0625rem; letter-spacing: -0.01em; }
.ribbon .what { display: block; font-size: var(--fs-xs); color: var(--slate); line-height: 1.4; margin-top: 4px; }
.section--black .ribbon::before { background: var(--line-dark); }
.section--black .ribbon .node { background: var(--black); border-color: #fff; }
.section--black .ribbon .what { color: var(--on-black-muted); }
@media (max-width: 860px) {
  .ribbon { grid-template-columns: 1fr; gap: 0; }
  .ribbon::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .ribbon li { text-align: left; padding: 0 0 18px; }
  .ribbon a { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; }
  .ribbon .node { margin: 0; grid-row: span 2; }
  .ribbon .what { margin-top: 0; }
}

/* ---------- Technique wall ---------- */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.wall > div { padding: 22px 22px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wall h3 { font-size: .8125rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; color: var(--orange-deep); margin-bottom: 10px; }
.wall p { margin: 0; font-size: .875rem; line-height: 1.65; color: #2A3547; }
@media (max-width: 960px) { .wall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .wall { grid-template-columns: 1fr; } .wall > div { padding: 18px 16px 20px; } .wall.is-folded > div:nth-child(n+4) { display: none; } }
.wall-more { display: none; margin-top: var(--s3); }
@media (max-width: 600px) { .wall-more { display: inline-flex; } }

/* ---------- Fit check ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: start; }
.fit__qs { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: q; }
.fit fieldset { margin: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: center; }
.fit legend { float: left; padding: 0; font-weight: 600; line-height: 1.45; font-size: 1rem; }
.yn { justify-self: start; display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px; background: var(--paper); }
.yn label { position: relative; }
.yn input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.yn span { display: block; min-width: 56px; text-align: center; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 650; font-size: .9375rem; color: var(--slate); transition: background var(--dur), color var(--dur); }
.yn input:checked + span { background: var(--black); color: #fff; }
.yn input:focus-visible + span { outline: 2.5px solid var(--orange); outline-offset: 2px; }
.fit__result { position: sticky; top: calc(var(--header-h) + 24px); background: var(--black); color: var(--on-black); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); min-height: 220px; display: flex; flex-direction: column; gap: 14px; }
.fit__result h3 { font-size: var(--fs-lg); font-stretch: 106%; }
.fit__result p { margin: 0; color: #C9CED6; }
.fit__meter { display: flex; gap: 6px; }
.fit__meter i { flex: 1; height: 5px; border-radius: 3px; background: var(--line-dark); transition: background var(--dur); }
.fit__meter i.on { background: var(--orange); }
.fit__result .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 860px) {
  .fit { grid-template-columns: 1fr; }
  .fit fieldset { grid-template-columns: 1fr; }
  .fit__result { position: static; min-height: 0; }
}


/* ==========================================================================
   Page building blocks (inner pages)
   ========================================================================== */
.p-hero { padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(2rem, 1.5rem + 3vw, 4rem); }
.p-hero h1 { font-size: var(--fs-3xl); line-height: .98; letter-spacing: -0.035em; max-width: 16ch; margin-bottom: var(--s3); }
.p-hero .lede { margin-bottom: var(--s4); }
.p-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.crumbs { font-size: var(--fs-sm); color: var(--slate); margin-bottom: var(--s3); }
.crumbs a { color: var(--slate); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--center { align-items: center; }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: end; margin-bottom: var(--s5); }
.head-row .lede { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .split, .split--even, .head-row { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.tile h3 { font-size: 1.1875rem; font-stretch: 104%; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 8px; }
.tile p { margin: 0; color: #2A3547; font-size: var(--fs-sm); line-height: 1.6; }
.tile .label { margin-bottom: 8px; }
a.tile { text-decoration: none; display: block; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
a.tile:hover { border-color: var(--ink); }
.section--black .tile { background: var(--black-2); border-color: var(--line-dark); }
.section--black .tile p { color: #C9CED6; }

/* numbered sequence (only for real sequences) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps > li:last-child { border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; grid-row: span 2; }
.steps > li:first-child::before { background: var(--orange); border-color: var(--orange); }
.steps h3 { font-size: var(--fs-md); font-stretch: 104%; letter-spacing: -0.01em; margin: 6px 0 6px; }
.steps p { margin: 0; color: #2A3547; }
.section--black .steps > li { border-color: var(--line-dark); }
.section--black .steps > li::before { background: var(--black); border-color: #fff; }
.section--black .steps > li:first-child::before { background: var(--orange); border-color: var(--orange); color: var(--black); }
.section--black .steps p { color: #C9CED6; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.data-table th { font-size: var(--fs-xs); font-weight: 650; color: var(--slate); background: var(--paper); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 650; }
.data-table a { color: var(--orange-deep); text-underline-offset: 3px; font-weight: 600; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 600; }
.section--black .chips li { background: var(--black-2); border-color: var(--line-dark); color: #D5DAE1; }
.chips li.is-key { background: var(--orange-tint); border-color: #FFC9A6; color: var(--orange-deep); }

/* sub navigation inside long pages */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(243, 245, 247, .98); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; min-height: 52px; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--slate); padding: 8px 12px; border-radius: var(--r-pill); }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { background: var(--black); color: #fff; }
.subnav .btn { margin-left: auto; flex: none; }
.subnav a.btn--primary, .subnav a.btn--primary:hover { color: var(--black); }
@media (max-width: 860px) { .subnav .btn { display: none; } }

/* infinite name strip */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee var(--marquee-dur, 25s) linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 44px; list-style: none; margin: 0; padding: 0 22px; }
.marquee a { text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); opacity: .82; transition: opacity var(--dur), color var(--dur); }
.marquee a:hover, .marquee a:focus-visible { opacity: 1; color: var(--orange-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; }
  .marquee ul { flex-wrap: wrap; gap: 14px 28px; }
  .marquee ul[aria-hidden="true"] { display: none; }
}

/* role picker */
.picker__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s4); }
.picker__tabs button { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 10px 16px; font-weight: 650; font-size: var(--fs-sm); cursor: pointer; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.picker__tabs button:hover { border-color: var(--ink); }
.picker__tabs button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.picker__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.picker__panel[hidden] { display: none !important; }
.picker__panel h3 { font-size: var(--fs-lg); font-stretch: 106%; margin-bottom: var(--s2); }
.role-list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: 8px; }
.role-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); font-weight: 600; font-size: var(--fs-sm); }
.role-list a { font-size: var(--fs-xs); color: var(--orange-deep); white-space: nowrap; text-underline-offset: 3px; }
@media (max-width: 860px) { .picker__panel { grid-template-columns: 1fr; } }

/* module details */
.modules { display: grid; gap: 12px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.module summary::-webkit-details-marker { display: none; }
.module .node { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; }
.module:first-child .node { background: var(--orange); border-color: var(--orange); }
.module .m-name { font-weight: 800; font-stretch: 106%; font-size: var(--fs-md); letter-spacing: -0.01em; }
.module .m-promise { display: block; font-size: var(--fs-sm); color: var(--slate); font-weight: 500; }
.module summary::after { content: ""; width: 11px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform var(--dur) var(--ease); }
.module[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.module .m-body { padding: 0 18px 20px 78px; display: grid; gap: 14px; }
.module .m-body p { margin: 0; font-size: var(--fs-sm); line-height: 1.7; color: #2A3547; }
.module.is-key { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-tint); }
@media (max-width: 600px) { .module .m-body { padding-left: 18px; } }

/* timeline (12 weeks) */
.timeline { display: grid; grid-template-columns: 3fr 5fr 3fr 1.6fr; gap: 6px; margin-bottom: var(--s3); }
.timeline > div { border-radius: var(--r-sm); padding: 16px 14px; min-height: 120px; display: flex; flex-direction: column; gap: 6px; background: var(--black-2); border: 1px solid var(--line-dark); }
.timeline .wk { font-size: var(--fs-xs); color: var(--on-black-muted); font-variant-numeric: tabular-nums; }
.timeline .st { font-weight: 800; font-stretch: 108%; font-size: var(--fs-md); color: #fff; }
.timeline .ds { font-size: var(--fs-xs); color: #C9CED6; line-height: 1.5; }
.timeline > div:nth-child(3) { background: var(--orange); border-color: var(--orange); }
.timeline > div:nth-child(3) .st, .timeline > div:nth-child(3) .ds, .timeline > div:nth-child(3) .wk { color: var(--black); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; } .timeline > div { min-height: 0; } }

/* prose (articles, policies) */
.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; }
.prose h2 { font-size: var(--fs-lg); font-stretch: 104%; margin: 2.2em 0 .6em; letter-spacing: -0.015em; line-height: 1.2; }
.prose h3 { font-size: var(--fs-md); margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--orange-deep); text-underline-offset: 3px; font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding-left: 1.1em; border-left: 3px solid var(--orange); font-size: var(--fs-md); }
.prose .summary { font-size: var(--fs-md); color: #2A3547; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.article-meta { font-size: var(--fs-sm); color: var(--slate); margin-bottom: var(--s4); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--fs-sm); }
.toc h2 { font-size: var(--fs-xs); font-stretch: 100%; letter-spacing: 0; color: var(--slate); margin-bottom: 10px; font-weight: 650; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-left: 2px solid var(--line); }
.toc a { display: block; padding-left: 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--slate); }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--orange); }
.article-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr; } .toc { display: none; } }
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--orange); z-index: 60; }

/* form pages */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow); }
.progress { display: flex; gap: 6px; margin-bottom: var(--s3); }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background var(--dur); }
.progress i.on { background: var(--orange); }
.step-label { font-size: var(--fs-sm); color: var(--slate); margin: 0 0 var(--s2); }
.form-step h2 { font-size: var(--fs-lg); font-stretch: 104%; margin-bottom: var(--s3); }
.form-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: var(--s2); }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.counter { font-size: var(--fs-xs); color: var(--slate); text-align: right; }
.success-panel h2 { font-size: var(--fs-xl); margin-bottom: var(--s2); }
.success-panel .tick { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; margin-bottom: var(--s3); }
.success-panel:focus { outline: none; }

/* closing CTA band (light) */
.cta-band h2 { font-size: var(--fs-2xl); max-width: 16ch; margin-bottom: var(--s3); }
.cta-band .lede { margin-bottom: var(--s4); }
.cta-band .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* figure */
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.figure figcaption { font-size: var(--fs-xs); color: var(--slate); margin-top: 10px; }

/* ---------- Toolkit: the ground a training covers ---------- */
.toolkit { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.25rem, .5rem + 3vw, 3rem); align-items: start; }
.tk-rail { display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + 72px); }
.tk-rail button { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 11px 14px; border-radius: var(--r-sm); cursor: pointer; color: var(--slate); font-weight: 650; transition: background var(--dur), color var(--dur); }
.tk-rail button:hover { background: var(--surface); color: var(--ink); }
.tk-rail button[aria-selected="true"] { background: var(--black); color: #fff; }
.tk-n { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; opacity: .7; }
.tk-name { font-size: 1rem; }
.tk-count { font-size: var(--fs-xs); min-width: 26px; text-align: center; padding: 2px 6px; border-radius: var(--r-pill); background: var(--paper); color: var(--slate); }
.tk-rail button[aria-selected="true"] .tk-count { background: var(--orange); color: var(--black); }
.tk-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); min-height: 420px; }
.tk-panel:not([hidden]) { animation: tkIn 380ms var(--ease); }
@keyframes tkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tk-kicker { font-size: var(--fs-xs); font-weight: 650; color: var(--orange-deep); margin: 0 0 10px; }
.tk-panel h3 { font-size: var(--fs-xl); font-stretch: 112%; letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; }
.tk-line { font-size: var(--fs-md); color: #2A3547; margin: 0 0 var(--s4); max-width: 46ch; }
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.tk-list li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; }
.tk-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
@media (max-width: 860px) {
  .toolkit { grid-template-columns: 1fr; }
  .tk-rail { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .tk-rail::-webkit-scrollbar { display: none; }
  .tk-rail button { flex: none; width: auto; grid-template-columns: auto auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 14px; }
  .tk-rail .tk-n { display: none; }
  .tk-panel { min-height: 0; }
}
@media (max-width: 600px) { .tk-list { grid-template-columns: 1fr; } }

/* ---------- Doors: big inviting link cards ---------- */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doors--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.door { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 340px; padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 360ms var(--ease), box-shadow 360ms var(--ease), border-color 360ms var(--ease); }
.door:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -28px rgba(10, 10, 12, .45); border-color: var(--ink); }
.door__art { display: block; align-self: flex-end; width: min(54%, 200px); height: auto; margin: calc(-1 * clamp(.6rem, .4rem + .6vw, 1rem)) calc(-1 * clamp(.6rem, .4rem + .6vw, 1rem)) 0 0; transition: transform 700ms var(--ease); }
.door:hover .door__art { transform: rotate(-5deg) scale(1.05); }
.door__tag { position: absolute; left: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); top: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); font-size: var(--fs-xs); font-weight: 650; padding: 5px 11px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); }
.door__body { margin-top: auto; display: grid; gap: 10px; padding-top: var(--s3); }
.door__title { display: block; font-weight: 800; font-stretch: 112%; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1; letter-spacing: -0.03em; }
.door__text { display: block; font-size: var(--fs-sm); line-height: 1.6; color: #2A3547; max-width: 36ch; }
.door__go { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .98rem; margin-top: 6px; }
.door__arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform 360ms var(--ease), background 360ms; }
.door:hover .door__arrow { transform: translateX(5px); background: var(--orange); color: var(--black); }
.door--black { background: var(--black); border-color: var(--black); color: #fff; }
.door--black .door__text { color: #C9CED6; }
.door--black .door__tag { background: var(--black-2); border-color: var(--line-dark); color: #D5DAE1; }
.door--black .door__arrow { background: #fff; color: var(--black); }
.door--black:hover { border-color: var(--orange); }
.door--orange { background: var(--orange); border-color: var(--orange); color: var(--black); }
.door--orange .door__text { color: #2B1406; }
.door--orange .door__tag { background: rgba(255, 255, 255, .28); border-color: transparent; }
.door--orange .door__arrow { background: var(--black); color: #fff; }
.door--orange:hover { border-color: var(--black); }
.door--orange:hover .door__arrow { background: #fff; color: var(--black); }
.door--wide { grid-column: span 2; }
.section--black .door:not(.door--black):not(.door--orange) { border-color: transparent; }
@media (max-width: 960px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .doors, .doors--2 { grid-template-columns: 1fr; } .door--wide { grid-column: auto; } .door { min-height: 0; } .door__art { width: 42%; } }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s4); }
.filterbar button { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-pill); padding: 9px 16px; font-weight: 650; font-size: var(--fs-sm); cursor: pointer; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.filterbar button:hover { border-color: var(--ink); }
.filterbar button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.filterbar [data-filter-count] { margin-left: auto; font-size: var(--fs-sm); color: var(--slate); }
@media (max-width: 640px) { .filterbar [data-filter-count] { width: 100%; margin: 4px 0 0; } }

/* dark facts strip */
.section--black .facts-strip { border-top-color: var(--line-dark); }
.section--black .facts-strip dt { color: var(--on-black-muted); }
.section--black .facts-strip dd { color: #fff; }
.glyph { flex: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .announce, .sticky-cta { display: none !important; }
  body { background: #fff; }
}
