/* =====================================================================
   Food security 2026 — "The Shape of Your Values"
   A Schwartz values assessment → a signature on the circle → a share card.
   Intro on the warm page; assessment, results & closing on the dark
   aubergine canvas (§3). House style: AxiaOrigin × ValuesMove (../../CLAUDE.md)
   Vanilla CSS, no dependencies.
   ===================================================================== */

:root {
  /* Palette — balanced between both brands (§3) */
  --aubergine: #2A2140;   /* banner spine + the dark canvas */
  --crimson:   #FC2454;   /* AxiaOrigin accent — shared chrome + the single data highlight */
  --purple:    #90489C;   /* ValuesMove accent — equal weight, shared chrome only */
  --sky:       #00B4E4;   /* interaction: focus rings + the scale affordance */
  --paper:     #F7F3EE;   /* soft warm tone — subtle fills */
  --page:      #EEEAE3;   /* page canvas — warm neutral */
  --surface:   #FFFFFF;   /* elevated surfaces: banner + the cards */
  --ink:       #241F2B;   /* body text */
  --ink-soft:  #5C5666;   /* secondary text */
  --hairline:  color-mix(in srgb, var(--ink) 14%, transparent);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1100px;
  --sec-gap: clamp(2.4rem, 6vw, 3.6rem);   /* rhythm between major blocks on the dark canvas */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* eases to the dark canvas once the reader begins (§3) */
  transition: background 1.1s ease;
}
body.is-dark { background: var(--aubergine); }

h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* Accessibility — skip link + focus rings (§12) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 0.6rem 1rem; background: var(--surface); color: var(--ink);
  border-radius: 0 0 6px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible, input:focus-visible, button:focus-visible,
.brand:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 3px;
}

.sr-live {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =====================================================================
   BANNER (§5) + WHY-DRAWER (§14)
   ===================================================================== */
.banner {
  position: relative; z-index: 50; background: var(--surface);
  box-shadow: 0 8px 24px -10px rgba(36, 31, 43, 0.20), 0 2px 6px -3px rgba(36, 31, 43, 0.10);
}
.banner__spine { height: 4px; background: var(--aubergine); }
.banner__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.banner__home {
  position: absolute; left: clamp(1rem, 4vw, 2rem); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem;
  font-size: 0.85rem; color: var(--ink-soft); text-decoration: none; white-space: nowrap;
  background: transparent; border: 1px solid var(--hairline); border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.banner__home:hover { color: var(--crimson); border-color: color-mix(in srgb, var(--crimson) 45%, var(--hairline)); }
.banner__home-icon { width: 17px; height: 17px; flex: 0 0 auto; }

.banner__lockup { display: flex; align-items: center; gap: clamp(1.1rem, 4vw, 2.6rem); }
.brand { display: inline-flex; align-items: center; }
.brand img { width: auto; transition: opacity 0.15s ease; }
.brand:hover img { opacity: 0.78; }
.brand--axia   img { height: 28px; }
.brand--values img { height: 36px; }
.brand-divider { width: 1px; height: 34px; background: var(--hairline); }

.banner__why {
  position: absolute; right: clamp(1rem, 3vw, 2rem); top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 1rem; border: 0; border-radius: 999px;
  --why-shadow: 0 6px 18px -6px color-mix(in srgb, var(--crimson) 55%, transparent);
  background: linear-gradient(135deg, var(--crimson), var(--purple));
  color: #fff; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  line-height: 1; white-space: nowrap; cursor: pointer; box-shadow: var(--why-shadow);
  transition: box-shadow 0.15s ease, filter 0.15s ease;
}
.banner__why:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -6px color-mix(in srgb, var(--crimson) 62%, transparent); }
.banner__why-chevron { width: 15px; height: 15px; flex: 0 0 auto; transition: transform 0.3s ease; }
.banner__why[aria-expanded="true"] .banner__why-chevron { transform: rotate(180deg); }
@keyframes whyPulse {
  0%   { box-shadow: var(--why-shadow), 0 0 0 0   color-mix(in srgb, var(--crimson) 50%, transparent); }
  70%  { box-shadow: var(--why-shadow), 0 0 0 13px color-mix(in srgb, var(--crimson) 0%, transparent); }
  100% { box-shadow: var(--why-shadow), 0 0 0 0   color-mix(in srgb, var(--crimson) 0%, transparent); }
}
.banner__why.is-hint { animation: whyPulse 1.5s ease-out 0s 3; }

.why-drawer {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--aubergine);
  box-shadow: 0 24px 40px -18px rgba(36, 31, 43, 0.55);
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s ease; z-index: 49;
}
.banner.is-why-open .why-drawer { grid-template-rows: 1fr; }
.why-drawer__clip { overflow: hidden; }
.why-drawer__content { position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1.9rem, 5vw, 2.9rem) clamp(1.5rem, 4vw, 2.6rem); }
.why-drawer__content h2 { margin: 0 0 1rem; font-family: var(--font-head); font-optical-sizing: auto;
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 2rem); font-weight: 600; color: var(--surface); }
.why-drawer__content p { margin: 0 0 0.9rem; max-width: 66ch; line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem); color: color-mix(in srgb, var(--paper) 82%, var(--aubergine)); }
.why-drawer__content p:last-child { margin-bottom: 0; }
.why-drawer__content strong { color: var(--surface); font-weight: 600; }
.why-drawer__close {
  position: absolute; top: clamp(1rem, 2.5vw, 1.5rem); right: clamp(1rem, 3vw, 1.8rem);
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--paper) 32%, transparent); background: transparent;
  color: color-mix(in srgb, var(--paper) 75%, var(--aubergine)); cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.why-drawer__close svg { width: 20px; height: 20px; }
.why-drawer__close:hover { color: #fff; border-color: var(--crimson); background: color-mix(in srgb, var(--crimson) 24%, transparent); }

/* =====================================================================
   INTRO (§6) — on the warm page
   ===================================================================== */
.intro {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.6rem) 1.5rem clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
}
/* soft colour wash behind the content (keeps the light page, adds depth) */
.intro::before {
  content: ""; position: absolute; inset: -12% -6%; z-index: -1; pointer-events: none; filter: blur(8px);
  background:
    radial-gradient(42% 52% at 10% 6%, color-mix(in srgb, var(--sky) 24%, transparent), transparent 70%),
    radial-gradient(48% 58% at 94% 100%, color-mix(in srgb, var(--purple) 22%, transparent), transparent 72%),
    radial-gradient(34% 40% at 84% 4%, color-mix(in srgb, var(--crimson) 13%, transparent), transparent 70%);
}
.intro__grid, .intro__note { position: relative; z-index: 1; }
/* gradient accent on the headline keyword */
.intro__grad { background: linear-gradient(100deg, var(--crimson), var(--purple) 72%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
/* gentle entrance */
@keyframes introIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.intro__main { animation: introIn 0.6s ease-out both; }
.intro__aside { animation: introIn 0.6s ease-out 0.12s both; }
/* two columns on desktop: the intro copy (left) + the explainer blocks (right) */
.intro__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center;
  max-width: 1080px; margin: 0 auto; }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.04fr 0.96fr; }
  .intro__main { text-align: left; }
}
.intro__aside { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: clamp(1rem, 3vw, 1.4rem); }
.intro__eyebrow {
  margin: 0 0 0.6rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft);
}
.intro__title {
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.08; letter-spacing: -0.01em; color: var(--ink);
}
.intro__lede {
  margin: clamp(0.8rem, 2vw, 1.1rem) 0 0; max-width: 54ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--ink-soft);
}
.start {
  margin-top: clamp(0.9rem, 2.5vw, 1.3rem); padding: 0.9rem 1.9rem;
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; line-height: 1;
  color: #fff; background: linear-gradient(135deg, var(--crimson), var(--purple)); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--crimson) 62%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.start:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 16px 38px -12px color-mix(in srgb, var(--crimson) 66%, transparent); }
.start:active { transform: translateY(0); }
.intro__hint { margin: 0.95rem 0 0; font-size: 0.82rem; letter-spacing: 0.04em;
  color: color-mix(in srgb, var(--ink-soft) 78%, transparent); }

/* "5 minutes" pill — a quiet time cue (sky-tinted, distinct from the CTA) */
.intro__pill {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 clamp(1rem, 2.5vw, 1.4rem);
  padding: 0.42rem 0.95rem; border-radius: 999px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--sky) 20%, var(--surface)), color-mix(in srgb, var(--purple) 14%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--sky) 42%, transparent);
  color: color-mix(in srgb, var(--sky) 52%, var(--ink));
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--sky) 50%, transparent);
}
.intro__pill-icon { width: 15px; height: 15px; flex: 0 0 auto; }

/* the two intro blocks — process / takeaway */
.intro__blocks { display: grid; grid-template-columns: 1fr; gap: clamp(0.8rem, 2vw, 1rem);
  width: 100%; max-width: 460px; margin: 0 auto; text-align: left; }
.intro__block { position: relative; overflow: hidden; padding: clamp(1.05rem, 3vw, 1.35rem) clamp(1.1rem, 3vw, 1.4rem);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: 0 10px 26px -20px rgba(36, 31, 43, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.intro__block::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--ic), color-mix(in srgb, var(--ic) 45%, var(--purple))); }
.intro__block:hover { transform: translateY(-3px);
  box-shadow: 0 20px 34px -20px color-mix(in srgb, var(--ic) 55%, rgba(36, 31, 43, 0.6));
  border-color: color-mix(in srgb, var(--ic) 42%, var(--hairline)); }
.intro__block-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  margin-bottom: 0.6rem; color: var(--ic); background: color-mix(in srgb, var(--ic) 14%, transparent); }
.intro__block-icon svg { width: 19px; height: 19px; }
.intro__block-label { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: color-mix(in srgb, var(--ic) 60%, var(--ink)); }
.intro__block-text { margin: 0.4rem 0 0; font-size: 0.96rem; line-height: 1.55; color: var(--ink-soft); }

.intro__cta-lead { margin: clamp(0.7rem, 2vw, 1rem) 0 0; max-width: 46ch;
  font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.intro__note { position: relative; margin: clamp(1.6rem, 3.5vw, 2.2rem) auto 0; padding-top: clamp(1rem, 2.5vw, 1.4rem);
  max-width: 66ch; font-size: 0.8rem; line-height: 1.5; font-style: italic;
  color: color-mix(in srgb, var(--ink-soft) 82%, transparent); }
.intro__note::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 44px; height: 1px; background: var(--hairline); }

/* intro recedes as the assessment rises (§3) */
.intro { transition: opacity 0.55s ease, transform 0.55s ease; }
.intro.is-leaving { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.assessment { opacity: 0; transition: opacity 0.6s ease; }
.assessment.is-in { opacity: 1; }

/* =====================================================================
   DARK CANVAS — assessment, results, closing, sources (§3)
   ===================================================================== */
.assessment, .results, .closing, .sources {
  --on-dark:       var(--surface);
  --on-dark-body:  color-mix(in srgb, var(--paper) 80%, var(--aubergine));
  --on-dark-quiet: color-mix(in srgb, var(--paper) 56%, var(--aubergine));
  --on-dark-line:  color-mix(in srgb, var(--paper) 18%, transparent);
  background: var(--aubergine); color: var(--on-dark-body);
}

/* --- reusable dark-canvas structure: panels + section headers --- */
.panel { background: color-mix(in srgb, var(--surface) 5%, transparent);
  border: 1px solid var(--on-dark-line); border-radius: 20px;
  padding: clamp(1.2rem, 3.5vw, 1.9rem); box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.6); }
.rhead { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center;
  margin: 0 0 clamp(1rem, 3vw, 1.5rem); }
.rhead::before { content: ""; width: 34px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--crimson), var(--purple)); }
.rhead__eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; font-weight: 700; color: var(--on-dark-quiet); }
.rhead__title { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); line-height: 1.2; color: var(--on-dark); }
.assessment { padding: clamp(2rem, 6vw, 3.4rem) 1.5rem clamp(2.4rem, 6vw, 3.6rem); }
.results    { padding: clamp(1.6rem, 4vw, 2.6rem) 1.5rem clamp(1.8rem, 4vw, 2.8rem); }
.assessment__inner, .results__inner { max-width: var(--maxw); margin: 0 auto; }
.results__inner { display: flex; flex-direction: column; gap: var(--sec-gap); }
.rblock { min-width: 0; }

/* ---- progress rail ---- */
.rail {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 0.8rem; max-width: 30rem; margin: 0 auto;
}
.rail__back {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.6rem;
  background: transparent; border: 1px solid var(--on-dark-line); border-radius: 999px;
  color: var(--on-dark-quiet); font-family: var(--font-body); font-size: 0.78rem; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.rail__back:hover { color: var(--on-dark); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.rail__back svg { width: 14px; height: 14px; }
.rail__count { font-size: 0.85rem; letter-spacing: 0.02em; color: var(--on-dark-quiet); }
.rail__count strong { color: var(--on-dark); font-variant-numeric: tabular-nums; font-weight: 700; }
.rail__sep { opacity: 0.6; }
/* slim progress bar (clearer than 40 pips) — sits on its own row */
.rail { flex-wrap: wrap; }
.rail__bar { width: 100%; max-width: 24rem; height: 5px; margin-top: 0.8rem; border-radius: 999px;
  background: var(--on-dark-line); overflow: hidden; }
.rail__fill { display: block; height: 100%; width: 0%; border-radius: 999px;
  background: var(--crimson); transition: width 0.35s ease; }

/* ---- the deck: white portrait cards on the dark canvas ---- */
.board { position: relative; width: min(92vw, 30rem); margin: clamp(1.2rem, 4vw, 1.9rem) auto 0; }
.deck { position: relative; width: 100%; height: clamp(360px, 52vh, 440px); }
.card {
  position: absolute; inset: 0; background: var(--surface); color: var(--ink);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, 0.62), 0 8px 22px -12px rgba(0, 0, 0, 0.45);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.42s ease;
  transform-origin: center bottom; will-change: transform;
}
.card:not([data-pos="0"]) { pointer-events: none; }
.card[data-pos="0"]    { z-index: 30; transform: translateY(0)    scale(1);     opacity: 1; }
.card[data-pos="1"]    { z-index: 20; transform: translateY(14px) scale(0.955); opacity: 0.9; }
.card[data-pos="2"]    { z-index: 10; transform: translateY(28px) scale(0.91);  opacity: 0.5; }
.card[data-pos="back"] { z-index: 5;  transform: translateY(36px) scale(0.89);  opacity: 0; }
.card[data-pos="done"] { z-index: 1;  transform: translateY(-46px) scale(0.96); opacity: 0; }

.card__front { position: relative; display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.5rem, 4vw, 2rem); }
.card__glyph { position: absolute; top: clamp(0.9rem, 3vw, 1.3rem); right: clamp(0.9rem, 3vw, 1.3rem);
  width: clamp(58px, 16vw, 84px); height: auto; color: var(--hairline); }
.card__num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.card__portrait {
  margin: auto 0; padding-right: 12%;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); line-height: 1.32; letter-spacing: -0.005em;
  color: var(--ink);
}
.card__cue { margin-top: auto; font-size: 0.8rem; letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
.card, .card__front { user-select: none; -webkit-user-select: none; }

/* ---- the 6-point scale ("how much like you?") ---- */
.scale {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem 0.85rem; max-width: 33rem; margin: clamp(2.2rem, 6vw, 3.2rem) auto 0;
}
.scale__end { flex: 0 0 auto; font-size: 0.74rem; letter-spacing: 0.02em; color: var(--on-dark-quiet); }
.scale__stops { flex: 1 1 250px; display: flex; justify-content: space-between; gap: clamp(0.35rem, 1.8vw, 0.6rem); }
.scale__stop {
  flex: 1 1 0; min-width: 40px; max-width: 58px; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--on-dark-line);
  background: color-mix(in srgb, var(--surface) 6%, transparent);
  color: var(--on-dark); font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  font-variant-numeric: tabular-nums; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.scale__stop:hover {
  border-color: color-mix(in srgb, var(--sky) 70%, transparent);
  background: color-mix(in srgb, var(--sky) 18%, transparent); color: #fff; transform: translateY(-2px);
}
.scale__stop:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.scale__stop:active { transform: scale(0.94); }
.scale__stop.is-selected { color: #fff; border-color: transparent; transform: scale(1.08);
  background: linear-gradient(135deg, var(--crimson), var(--purple));
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--crimson) 62%, transparent); }

/* =====================================================================
   RESULTS — a vivid, fully-scored payoff. Colour is intentional here (the
   four family colours drive the viz); the rest of the site stays restrained.
   ===================================================================== */

/* A · hero — your strongest value */
.rhero { display: flex; flex-direction: column; align-items: center; gap: clamp(0.7rem, 2vw, 1rem);
  max-width: 760px; margin: 0 auto; text-align: center; }
.rhero__badge { flex: 0 0 auto; width: clamp(60px, 12vw, 78px); height: clamp(60px, 12vw, 78px);
  display: grid; place-items: center; border-radius: 20px; color: #fff; }
.rhero__badge svg { width: 56%; height: 56%; }
.rhero__eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; font-weight: 700; color: var(--on-dark-quiet); }
.rhero__name { margin: 0.12rem 0 0; font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); line-height: 1.04; }
.rhero__meaning { margin: 0.4rem auto 0; max-width: 52ch; font-size: 1.05rem; line-height: 1.5; color: var(--on-dark-body); }

/* B · circle | C · scored bars */
.results__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 4vw, 2.6rem); align-items: center; }
@media (min-width: 900px) { .results__grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.2rem); } }
.results__chart { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.signature__svg { width: 100%; max-width: 520px; height: auto; display: block; overflow: visible; }
.signature__howto { max-width: 44ch; margin: clamp(0.4rem, 2vw, 0.8rem) auto 0; text-align: center;
  font-size: 0.78rem; line-height: 1.5; color: var(--on-dark-quiet); }

/* circumplex marks (fills/strokes set inline for family colour) */
.sig__ring { fill: none; stroke: var(--on-dark-line); stroke-width: 1.3; }
.sig__ring--mid { opacity: 0.45; stroke-dasharray: 3 5; }
.sig__spoke { stroke: var(--on-dark-line); stroke-width: 1; }
.sig__band { fill: none; }
.sig__area { filter: drop-shadow(0 0 9px rgba(252, 36, 84, 0.45)); }
.sig__dot.is-top { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.55)); }
.sig__vname { font-family: var(--font-body); font-size: 11px; }
.sig__vname.is-top { font-weight: 700; }
.sig__quad { font-family: var(--font-body); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }

.rblock__label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; font-weight: 700;
  color: var(--on-dark-quiet); margin: 0 0 clamp(0.7rem, 2vw, 1rem); }
.rblock__label::before { content: ""; display: block; width: 26px; height: 3px; margin: 0 0 0.5rem;
  border-radius: 999px; background: linear-gradient(90deg, var(--crimson), var(--purple)); }

.rbars { min-width: 0; }
.rbars__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.vbar { display: grid; grid-template-columns: 20px minmax(78px, 28%) 1fr auto; align-items: center; gap: 0.55rem; }
.vbar__glyph { width: 20px; height: 20px; display: block; }
.vbar__glyph svg { width: 20px; height: 20px; }
.vbar__name { font-size: 0.9rem; font-weight: 600; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar__track { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--paper) 10%, transparent); overflow: hidden; }
.vbar__fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vbar__num { font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: 0.95rem; color: var(--on-dark); min-width: 2.2ch; text-align: right; }

/* D · four families */
.rfams { margin-top: clamp(2rem, 5vw, 3rem); }
.rfams__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.8rem, 2vw, 1.1rem); }
@media (min-width: 720px) { .rfams__grid { grid-template-columns: repeat(4, 1fr); } }
.fmeter { padding: clamp(0.85rem, 2vw, 1.1rem); border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--fc) 32%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 15%, transparent), color-mix(in srgb, var(--fc) 4%, transparent)); }
.fmeter.is-lead { box-shadow: 0 0 0 1px var(--fc), 0 12px 32px -14px var(--fc); }
.fmeter__top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.fmeter__name { font-size: 0.82rem; font-weight: 700; color: var(--on-dark); line-height: 1.2; }
.fmeter__num { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.2rem; color: var(--fc); }
.fmeter__track { display: block; height: 8px; margin: 0.55rem 0 0; border-radius: 999px; background: color-mix(in srgb, var(--paper) 10%, transparent); overflow: hidden; }
.fmeter__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--fc); transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fmeter__vals { margin: 0.55rem 0 0; font-size: 0.72rem; line-height: 1.4; color: var(--on-dark-quiet); }

/* E · meaning */
.rmeaning { max-width: 68ch; margin: 0 auto; text-align: center;
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.2rem, 4vw, 2rem); border-radius: 16px;
  border: 1px solid var(--on-dark-line); background: color-mix(in srgb, var(--surface) 4%, transparent); }
.result__interpret { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--on-dark-body); }
.result__leaning { margin: 0.8rem 0 0; font-size: 0.9rem; line-height: 1.55; color: var(--on-dark-quiet); }
.results__honesty { margin: 0.8rem 0 0; font-size: 0.82rem; line-height: 1.5; color: var(--on-dark-quiet); }
.results__honesty em { font-style: italic; color: var(--on-dark-body); }

/* E2 · collapsible definitions reference */
.rdefs { max-width: 820px; margin: 0 auto; width: 100%; }
.rdefs__summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.55rem; text-align: center; padding: 0.55rem 0.7rem; border-radius: 10px;
  border: 1px solid var(--on-dark-line); background: color-mix(in srgb, var(--surface) 4%, transparent);
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); color: var(--on-dark);
  transition: border-color 0.15s ease, background 0.15s ease; }
.rdefs__summary::-webkit-details-marker { display: none; }
.rdefs__summary:hover { border-color: color-mix(in srgb, var(--paper) 32%, transparent); background: color-mix(in srgb, var(--surface) 7%, transparent); }
.rdefs__summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.rdefs__chevron { width: 20px; height: 20px; flex: 0 0 auto; color: var(--on-dark-quiet); transition: transform 0.25s ease; }
.rdefs[open] .rdefs__chevron { transform: rotate(180deg); }
.rdefs__body { margin-top: clamp(1rem, 3vw, 1.4rem); text-align: left; }
.rdefs[open] .rdefs__body { animation: srcReveal 0.3s ease-out; }
.rdefs__intro { max-width: 66ch; margin: 0 auto clamp(1rem, 3vw, 1.4rem); text-align: center;
  font-size: 0.92rem; line-height: 1.6; color: var(--on-dark-body); }
.rdefs__label2 { margin-top: clamp(1.4rem, 4vw, 2rem); }
.rdefs__fams { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
@media (min-width: 640px) { .rdefs__fams { grid-template-columns: 1fr 1fr; } }
.def-fam { display: flex; gap: 0.7rem; padding: 0.75rem 0.9rem; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--fc) 30%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 12%, transparent), color-mix(in srgb, var(--fc) 3%, transparent)); }
.def-fam__dot { flex: 0 0 auto; width: 12px; height: 12px; margin-top: 0.28rem; border-radius: 50%; background: var(--fc); }
.def-fam__name { margin: 0; font-weight: 700; font-size: 0.98rem; color: var(--fc); }
.def-fam__def { margin: 0.2rem 0 0; font-size: 0.88rem; line-height: 1.5; color: var(--on-dark-body); }
.def-fam__members { margin: 0.35rem 0 0; font-size: 0.76rem; letter-spacing: 0.01em; color: var(--on-dark-quiet); }
.rdefs__values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .rdefs__values { grid-template-columns: 1fr 1fr; } }
.def-val { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.5rem 0.2rem; }
.def-val__glyph { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 0.1rem; color: var(--fc); }
.def-val__glyph svg { width: 22px; height: 22px; }
.def-val__name { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--on-dark); }
.def-val__def { margin: 0.15rem 0 0; font-size: 0.83rem; line-height: 1.5; color: var(--on-dark-quiet); }
.rdefs__note { margin: clamp(1rem, 3vw, 1.4rem) 0 0; text-align: center; font-size: 0.78rem;
  line-height: 1.5; color: var(--on-dark-quiet); font-style: italic; }

/* F · actions */
.results__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.4rem;
  border-radius: 999px; font-family: var(--font-body); font-size: 0.98rem; font-weight: 600;
  line-height: 1; cursor: pointer; border: 1px solid transparent; transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.1s ease; }
.btn__icon { width: 18px; height: 18px; flex: 0 0 auto; }
.btn--solid { background: linear-gradient(135deg, var(--crimson), var(--purple)); color: #fff;
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--crimson) 65%, transparent); }
.btn--solid:hover { filter: brightness(1.08); }
.btn--solid:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--on-dark-line); color: var(--on-dark); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--paper) 42%, transparent); }

.card-preview { margin: clamp(1.6rem, 4vw, 2.2rem) auto 0; max-width: 420px; }
.card-preview__frame { border-radius: 14px; overflow: hidden;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.6); }
.card-preview__frame svg { width: 100%; height: auto; display: block; }
.card-preview__cap { margin: 0.7rem 0 0; text-align: center; font-size: 0.8rem; color: var(--on-dark-quiet); }

/* =====================================================================
   SCALE-UP + CLOSING + CTA (§6) — on the dark canvas
   ===================================================================== */
/* the closing is its own chapter — a subtly distinct ground + top divider */
.closing { position: relative; isolation: isolate; text-align: center;
  padding: clamp(2.8rem, 7vw, 4.4rem) 1.5rem clamp(3rem, 8vw, 4.6rem);
  border-top: 1px solid color-mix(in srgb, var(--paper) 10%, transparent); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(65% 42% at 50% 0%, color-mix(in srgb, var(--purple) 15%, transparent), transparent 72%),
    radial-gradient(46% 30% at 10% 32%, color-mix(in srgb, var(--sky) 10%, transparent), transparent 72%),
    radial-gradient(46% 30% at 90% 62%, color-mix(in srgb, var(--crimson) 10%, transparent), transparent 72%); }
.closing__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: var(--sec-gap); }
.closing__lead { max-width: 42ch; margin: 0 auto;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2rem); line-height: 1.32; color: var(--on-dark); }

/* the three levels — colour-coded step cards (individual → national) */
.levels { list-style: none; margin: 0; padding: 0; text-align: left;
  display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 3vw, 1.5rem); }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level { position: relative; overflow: hidden; padding: clamp(1.2rem, 3vw, 1.6rem); border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--lc) 34%, var(--on-dark-line));
  background: linear-gradient(165deg, color-mix(in srgb, var(--lc) 13%, transparent), color-mix(in srgb, var(--lc) 3%, transparent));
  transition: transform 0.18s ease, box-shadow 0.18s ease; }
.level:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -22px color-mix(in srgb, var(--lc) 55%, transparent); }
.level__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.level__chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--lc), color-mix(in srgb, var(--lc) 55%, #000));
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--lc) 65%, transparent); }
.level__chip svg { width: 21px; height: 21px; }
.level__num { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600; font-size: 1.7rem;
  line-height: 1; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--lc) 78%, var(--on-dark-quiet)); }
.level__title { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.25; color: var(--on-dark); }
.level__text { margin-top: 0.5rem; font-size: 0.95rem; line-height: 1.6; color: var(--on-dark-body); }

/* the closing CTA lands on a clean panel */
.closing__cta { max-width: 640px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.3rem); border-radius: 20px;
  border: 1px solid var(--on-dark-line); background: color-mix(in srgb, var(--surface) 5%, transparent);
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.6); }
.closing__body { max-width: 56ch; margin: 0 auto; font-size: 1.02rem; line-height: 1.65; color: var(--on-dark-body); }
.closing__prompt { max-width: 46ch; margin: clamp(1.2rem, 3vw, 1.7rem) auto 0;
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.15rem, 1.02rem + 0.4vw, 1.35rem); line-height: 1.35; color: var(--on-dark); }
.closing__invite { max-width: 58ch; margin: clamp(0.8rem, 2.2vw, 1.1rem) auto 0;
  font-size: 1.02rem; line-height: 1.65; color: var(--on-dark-body); }
.closing__explore { max-width: 58ch; margin: clamp(1.8rem, 4.5vw, 2.4rem) auto 0;
  padding-top: clamp(1.1rem, 3vw, 1.5rem); border-top: 1px solid var(--on-dark-line);
  font-size: 0.92rem; line-height: 1.6; color: color-mix(in srgb, var(--paper) 72%, var(--aubergine)); }
.closing__explore strong { color: var(--on-dark); font-weight: 600; }
.cta-linkedin { display: inline-flex; align-items: center; gap: 0.55rem; margin-top: clamp(1rem, 2.5vw, 1.3rem);
  padding: 0.85rem 1.6rem; background: var(--crimson); color: #fff; font-family: var(--font-body);
  font-size: 1rem; font-weight: 500; line-height: 1; text-decoration: none; border-radius: 999px;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--crimson) 55%, transparent);
  transition: filter 0.15s ease; }
.cta-linkedin__icon { width: 20px; height: 20px; flex: 0 0 auto; }
.cta-linkedin:hover { filter: brightness(1.07); }

/* =====================================================================
   DATA SOURCES (§2)
   ===================================================================== */
.sources { padding: clamp(2.4rem, 6vw, 3.6rem) 1.5rem clamp(3rem, 7vw, 4.4rem);
  border-top: 1px solid color-mix(in srgb, var(--paper) 8%, transparent); }
.sources__inner { max-width: var(--maxw); margin: 0 auto; }
/* collapsible — native <details>, collapsed by default; matches .rdefs bordered style */
.sources__details { max-width: 820px; margin: clamp(1rem, 3vw, 1.4rem) auto 0; width: 100%; }
.sources__summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  gap: 0.55rem; text-align: center; padding: 0.55rem 0.7rem; border-radius: 10px;
  border: 1px solid var(--on-dark-line); background: color-mix(in srgb, var(--surface) 4%, transparent);
  font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); color: var(--on-dark);
  transition: border-color 0.15s ease, background 0.15s ease; }
.sources__summary::-webkit-details-marker { display: none; }
.sources__summary:hover { border-color: color-mix(in srgb, var(--paper) 32%, transparent); background: color-mix(in srgb, var(--surface) 7%, transparent); }
.sources__summary:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.sources__chevron { width: 20px; height: 20px; flex: 0 0 auto; color: var(--on-dark-quiet); transition: transform 0.25s ease; }
.sources__details[open] .sources__chevron { transform: rotate(180deg); }
.sources__body { margin-top: clamp(1.1rem, 3vw, 1.6rem); text-align: left; }
.sources__details[open] .sources__body { animation: srcReveal 0.3s ease-out; }
@keyframes srcReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sources__list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; }
.source { padding: clamp(0.9rem, 2.5vw, 1.15rem) 0; border-top: 1px solid var(--on-dark-line); }
.source:first-child { border-top: 0; }
.source__title { font-weight: 600; color: var(--on-dark); font-size: 1rem; }
.source__desc { margin-top: 0.25rem; font-size: 0.9rem; line-height: 1.5; color: var(--on-dark-quiet); }
.source__desc a { color: var(--on-dark-body); text-decoration: none;
  border-bottom: 1px solid var(--on-dark-line); transition: color 0.15s ease, border-color 0.15s ease; }
.source__desc a:hover { color: var(--crimson); border-color: var(--crimson); }
.sources__note { max-width: 62ch; margin: clamp(1.4rem, 4vw, 2rem) auto 0; text-align: center;
  font-size: 0.82rem; line-height: 1.55; color: var(--on-dark-quiet); }

/* =====================================================================
   FOOTER (§15)
   ===================================================================== */
.footer {
  background: color-mix(in srgb, var(--ink) 82%, #000); color: var(--surface);
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent);
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem);
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: clamp(1.6rem, 5vw, 3rem) clamp(2rem, 6vw, 4rem); }
.footer__message { flex: 1 1 420px; max-width: 640px; }
.footer__lead { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.2rem, 1.02rem + 0.8vw, 1.6rem); line-height: 1.35; color: var(--surface); }
.footer__body { margin: clamp(0.9rem, 2vw, 1.15rem) 0 0; max-width: 60ch; font-size: 1rem; line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 74%, var(--aubergine)); }
.footer__body strong { color: var(--surface); font-weight: 600; }
.footer__contact { flex: 0 0 auto; }
.footer__contact-title { margin: 0 0 0.75rem; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: color-mix(in srgb, var(--paper) 56%, var(--aubergine)); }
.footer__contact-list { list-style: none; margin: 0; padding: 0; }
.footer__contact-list li { margin: 0 0 0.5rem; } .footer__contact-list li:last-child { margin-bottom: 0; }
.footer__contact-list a { color: var(--surface); font-size: 1rem; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 26%, transparent); transition: color 0.15s ease, border-color 0.15s ease; }
.footer__contact-list a:hover { color: var(--crimson); border-color: var(--crimson); }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem 1.75rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid color-mix(in srgb, var(--paper) 12%, transparent); }
.footer__lockup { display: inline-flex; align-items: center; gap: clamp(0.9rem, 3vw, 1.5rem); }
.footer__lockup .brand--axia img { height: 58px; } .footer__lockup .brand--values img { height: 38px; }
.footer__lockup .brand-divider { height: 44px; background: color-mix(in srgb, var(--paper) 22%, transparent); }
.footer__meta { font-size: 0.82rem; letter-spacing: 0.02em; color: color-mix(in srgb, var(--paper) 56%, var(--aubergine)); }

/* =====================================================================
   SCROLL-REVEAL (§7)
   ===================================================================== */
.reveal-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on-scroll.is-in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  .banner__inner { position: static; flex-direction: column; gap: 0.85rem; text-align: center; }
  .banner__home { position: static; transform: none; }
  .banner__why  { position: static; transform: none; }
}
@media (max-width: 600px) {
  .banner__lockup { gap: 1.2rem; }
  .brand--axia   img { height: 22px; }
  .brand--values img { height: 28px; }
  .brand-divider { height: 26px; }
}
@media (max-width: 430px) {
  .card__portrait { font-size: 1.2rem; padding-right: 8%; }
  .scale__stop { font-size: 0.9rem; min-width: 38px; }
  .rail__back { position: static; transform: none; margin-right: auto; }
}

/* Motion (§7, §12, §14) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
