/* ===============================================================
   One in Twelve — AxiaOrigin × ValuesMove
   Vanilla CSS, no build step. Palette / type from CLAUDE.md.
   =============================================================== */

:root {
  /* Palette — balanced between both brands (CLAUDE.md §3) */
  --aubergine: #2A2140;   /* shared anchor + the dark canvas */
  --crimson:   #FC2454;   /* accent — data highlight / shared chrome */
  --purple:    #90489C;   /* ValuesMove accent — equal weight */
  --sky:       #00B4E4;   /* interaction: focus rings */
  --paper:     #F7F3EE;   /* soft warm tone — subtle fills */
  --page:      #EEEAE3;   /* page canvas */
  --surface:   #FFFFFF;   /* elevated surfaces */
  --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;
}

/* --- reset / base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }   /* authoritative over .section flex */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

/* --- accessibility helpers -------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--aubergine);
  color: var(--surface);
  padding: 0.6rem 1rem;
  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 {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ===============================================================
   BANNER — white surface, aubergine spine, equal-partner lockup.
   =============================================================== */
.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 {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Small ghost pill, pinned left, with a house icon; hover tints crimson. */
.banner__home {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.banner__home:hover {
  color: var(--crimson);
  border-color: color-mix(in srgb, var(--crimson) 45%, var(--hairline));
  background: color-mix(in srgb, var(--crimson) 8%, transparent);
}
.banner__home-icon { width: 16px; height: 16px; flex: 0 0 auto; display: block; }

.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); }

/* ===============================================================
   SECTIONS — each is one full viewport, centred.
   =============================================================== */
.section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem;
}

/* ===============================================================
   SECTION 1 — THE PREDICTION
   =============================================================== */
.predict { width: 100%; max-width: 560px; }
.predict__q {
  margin: 0;
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem);   /* display size */
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.predict__sub {
  margin: 1rem auto 0;
  max-width: 42ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: color-mix(in srgb, var(--ink) 70%, var(--page));  /* ~70% */
}

/* Options — single column of floating cards, centred on all sizes.
   Each carries a radio indicator; cards lift on hover and fill on select. */
.options {
  margin: clamp(2rem, 5vh, 3rem) auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 22px;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(36, 31, 43, 0.04),
              0 6px 18px -10px rgba(36, 31, 43, 0.14);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
              border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.option__label { flex: 1; text-align: left; font-variant-numeric: tabular-nums; }

/* Custom radio indicator. */
.option__dot {
  flex: 0 0 auto;
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--ink) 26%, transparent);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  transform: scale(0);
  transition: transform 0.18s cubic-bezier(.2, .8, .2, 1.4);
}

.option:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--crimson) 32%, var(--hairline));
  box-shadow: 0 2px 4px rgba(36, 31, 43, 0.06),
              0 12px 26px -10px rgba(36, 31, 43, 0.22);
}
.option:hover .option__dot { border-color: color-mix(in srgb, var(--crimson) 55%, transparent); }
.option:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.option.is-selected {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(36, 31, 43, 0.10),
              0 16px 32px -12px color-mix(in srgb, var(--crimson) 60%, transparent);
}
.option.is-selected .option__dot { border-color: var(--surface); background: var(--surface); }
.option.is-selected .option__dot::after { transform: scale(1); }

/* Reveal button — greyed until an option is chosen, then activates. */
.btn-reveal {
  margin: clamp(1.75rem, 4vh, 2.5rem) auto 0;
  padding: 0.85rem 2.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 15%, var(--page));   /* greyed */
  color: color-mix(in srgb, var(--ink) 42%, var(--page));
  cursor: default;
  transition: background 0.2s ease, color 0.2s ease, transform 0.05s ease;
}
.btn-reveal:not(:disabled) {
  background: var(--crimson);          /* house accent pill (CLAUDE.md) */
  color: var(--surface);
  cursor: pointer;
}
.btn-reveal:not(:disabled):hover { background: color-mix(in srgb, var(--crimson) 84%, #000); }
.btn-reveal:not(:disabled):active { transform: translateY(1px); }
.btn-reveal:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ===============================================================
   SECTION 2 — THE REVEAL. Deep aubergine canvas; an elevated,
   three-dimensional card holds the figure, comparison and source.
   =============================================================== */
.section--reveal { background: var(--aubergine); color: var(--surface); }

.rcard {
  width: 80vw;
  max-width: 860px;
  padding: 56px 64px;
  border-radius: 16px;
  /* Barely-perceptible vertical gradient: top lighter, bottom darker. */
  background: linear-gradient(180deg,
              color-mix(in srgb, var(--surface) 7%, var(--aubergine)),
              color-mix(in srgb, var(--surface) 2%, var(--aubergine)));
  border: 1px solid rgba(255, 255, 255, 0.1);   /* thin light edge */
  /* Layered shadow stack — depth, not a single drop. */
  box-shadow:
    0 2px 4px   rgba(0, 0, 0, 0.08),
    0 8px 24px  rgba(0, 0, 0, 0.18),
    0 24px 64px rgba(0, 0, 0, 0.32),
    0 48px 96px rgba(0, 0, 0, 0.22);
  text-align: center;
}

/* Display statistic — "673" + "million" share one baseline. */
.rcard__stat {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  line-height: 1;
}
.rcard__num {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(4.5rem, 2.5rem + 6vw, 6.75rem);   /* ~96–108px */
  letter-spacing: -0.02em;
  color: var(--surface);
}
.rcard__unit {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 700;                                  /* same weight as the number */
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3rem);      /* ~48px */
  color: var(--surface);
}
.rcard__sub {
  margin: 0.6rem auto 0;
  font-size: 1.25rem;                                /* ~20px */
  font-weight: 300;
  color: color-mix(in srgb, var(--surface) 70%, var(--aubergine));
}

/* Comparison statement + inline pill. */
.rcard__compare {
  margin: 40px auto 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--surface);
}
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--crimson);
  color: var(--surface);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Comparison bars — label | track | value; fills grow left→right. */
.cbars {
  margin: 32px auto 0;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cbar {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 14px;
}
.cbar__label {
  text-align: right;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--surface) 60%, var(--aubergine));
}
.cbar__track {
  position: relative;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 9%, transparent);
}
.cbar__fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;                                   /* grows to target on reveal */
  border-radius: 4px;
  transition: width 800ms ease-out;
}
.cbar__fill--guess  { background: color-mix(in srgb, var(--sky) 55%, var(--paper)); }   /* muted grey-blue */
.cbar__fill--figure {                                                                    /* coral/red gradient */
  background: linear-gradient(90deg,
              color-mix(in srgb, var(--crimson) 72%, var(--aubergine)), var(--crimson));
}
.cbar__val {
  text-align: right;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.cbar__val--guess  { color: color-mix(in srgb, var(--surface) 62%, var(--aubergine)); }
.cbar__val--figure { color: var(--crimson); }

/* Source attribution — two very small muted lines, 40px below bars. */
.rcard__source { margin: 40px auto 0; }
.rcard__source-line,
.rcard__source-range {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--surface) 55%, var(--aubergine));
}
.rcard__source-range { margin-top: 0.25rem; font-style: italic; }

/* Learn more — label + arrow below the card, fades in last. */
.learn {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.learn__label {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--surface) 72%, var(--aubergine));
}

/* Footnote at the foot of Section 3 (explains the 2024* reference). */
.footnote {
  margin: clamp(2.5rem, 6.5vh, 3.75rem) auto 0;   /* bottom buffer (= top buffer) */
  max-width: 74ch;
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
  color: color-mix(in srgb, var(--ink) 42%, var(--page));
}
/* Asterisk marker — small, black, raised. */
.ast {
  font-size: 0.42em;
  vertical-align: super;
  line-height: 0;
  font-weight: 400;
  color: var(--ink);
}

/* Sequenced fades — opacity only; per-step durations below. */
.r-fade { opacity: 0; transition: opacity 300ms ease; }
.r-fade.is-in { opacity: 1; }
#reveal-sub     { transition-duration: 200ms; }
#reveal-compare { transition-duration: 300ms; }
#reveal-bars    { transition-duration: 200ms; }
#reveal-source  { transition-duration: 200ms; }
#reveal-learn   { transition-duration: 400ms; }

/* Shared nav arrow — a visible circular control on the dark canvas. */
.nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--surface) 34%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 8%, transparent);
  color: var(--surface);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.08s ease;
}
.nav-arrow svg { width: 26px; height: 26px; display: block; }
.nav-arrow:hover {
  color: var(--crimson);
  border-color: color-mix(in srgb, var(--crimson) 60%, transparent);
  background: color-mix(in srgb, var(--crimson) 12%, transparent);
}
.nav-arrow:active { transform: translateY(1px); }
.nav-arrow:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* Arrow on the light page (Sections 3 & 4) — same shape, dark ink. */
.section--info .nav-arrow,
.section--closing .nav-arrow {
  color: var(--aubergine);
  border-color: color-mix(in srgb, var(--ink) 26%, transparent);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.section--info .nav-arrow:hover,
.section--closing .nav-arrow:hover {
  color: var(--crimson);
  border-color: color-mix(in srgb, var(--crimson) 55%, transparent);
  background: color-mix(in srgb, var(--crimson) 10%, transparent);
}

/* ===============================================================
   SECTION 3 — THREE INFOGRAPHICS. Page background, no cards/boxes.
   Three columns side by side (stacking on mobile), each with a human
   pictogram of its ratio. Each fades up on scroll, staggered.
   =============================================================== */
.info-title {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.infos {
  width: 100%;
  max-width: 1080px;
  margin: clamp(2.5rem, 6.5vh, 3.75rem) auto 0;   /* top buffer (= note buffer) */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}
.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}
.info.is-in { opacity: 1; transform: none; }

.info__stat {
  margin: 1.2rem 0 0;
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.4rem);   /* very large — accent */
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--crimson);
}

/* Human pictogram — sits above the ratio; a 3×4 grid of twelve people,
   with every Nth lit pink (set per point in script.js). */
.info__pictogram {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, auto);   /* 4 across × 3 down = 12 */
  justify-content: center;
  gap: 8px;
}
.pictogram__person {
  display: inline-flex;
  width: clamp(22px, 5.5vw, 30px);
  color: color-mix(in srgb, var(--ink) 16%, var(--page));   /* muted crowd */
}
.pictogram__person--on { color: var(--crimson); }           /* pink accent */
.pictogram__person svg { width: 100%; height: auto; display: block; fill: currentColor; }

.info__head {
  margin: 1.1rem auto 0;
  max-width: 22ch;
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);  /* ~24px */
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.info__data {
  margin: 0.85rem auto 0;
  max-width: 34ch;
  font-size: 0.95rem;            /* body size, muted */
  line-height: 1.6;
  color: var(--ink-soft);
}
.info__source {
  margin: 0.85rem auto 0;
  font-size: 0.75rem;
  font-style: italic;
  color: color-mix(in srgb, var(--ink) 38%, var(--page));  /* lowest opacity */
}

/* Arrow sits at the very bottom, below the note. */
.section--info .nav-arrow { margin: clamp(1.75rem, 4.5vh, 2.75rem) auto clamp(0.25rem, 2vh, 1.25rem); }

@media (max-width: 720px) {
  .infos { grid-template-columns: 1fr; gap: clamp(2.75rem, 9vh, 4rem); }
}

/* ===============================================================
   SECTION 4 — CLOSING COPY & CTA. Dark aubergine canvas; centred
   column with larger type and a stand-out call to action.
   =============================================================== */
.section--closing { background: var(--aubergine); }
.closing-copy {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.closing-copy__statement {
  margin: 0;
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.1rem);    /* larger */
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--paper) 82%, var(--aubergine));  /* soft light */
}
.closing-copy__cta {
  margin: clamp(3.5rem, 8vh, 6rem) auto 0;               /* generous space above */
  font-family: var(--font-head);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);       /* stands out — biggest */
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--surface);                                 /* full white */
}

/* LinkedIn CTA — house spec (§6): solid crimson pill, white label,
   inlined LinkedIn mark left of the label; hover darkens the fill only. */
.linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 28px;                                      /* from CTA line */
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  background: var(--crimson);
  color: var(--surface);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.15s ease;
}
.linkedin-cta svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.linkedin-cta:hover { background: color-mix(in srgb, var(--crimson) 84%, #000); }
.linkedin-cta:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ===============================================================
   RESPONSIVE — banner stacks on narrow screens
   =============================================================== */
@media (max-width: 768px) {
  .banner__inner {
    position: static;
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
  .banner__home { 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; }
}

/* ===============================================================
   Motion — honour prefers-reduced-motion
   =============================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
