/* ============================================================
   CAPACITI AHI — design system
   Identity: employment artifacts for intelligence.
   Warm paper + ink. Fraunces display. Plex Sans body.
   Plex Mono carries evidence: logs, receipts, badge data.
   ============================================================ */

:root {
  /* color */
  --ink: #171210;
  --ink-2: #221b15;
  --ink-3: #2e2419;
  --paper: #f5efe3;
  --paper-2: #ede3d1;
  --paper-3: #e3d6bd;
  --ember: #c75b12;
  --ember-bright: #e8741f;
  --ember-deep: #9a4509;
  --moss: #2f6e4f;
  --moss-bright: #4d9b75;

  --ink-soft: rgba(23, 18, 16, 0.68);
  --ink-faint: rgba(23, 18, 16, 0.45);
  --paper-soft: rgba(245, 239, 227, 0.72);
  --paper-faint: rgba(245, 239, 227, 0.45);
  --line: rgba(23, 18, 16, 0.16);
  --line-strong: rgba(23, 18, 16, 0.32);
  --line-dark: rgba(245, 239, 227, 0.16);
  --line-dark-strong: rgba(245, 239, 227, 0.32);

  /* type */
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.135rem);
  --step-1: clamp(1.19rem, 1.1rem + 0.45vw, 1.44rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.7rem);
  --step-5: clamp(2.8rem, 2rem + 4vw, 5.1rem);

  /* rhythm */
  --space-section: clamp(4.5rem, 9vw, 8.5rem);
  --space-block: clamp(2rem, 4vw, 3.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 64ch;
  --measure-narrow: 46ch;
  --radius: 10px;
  --radius-lg: 18px;
  --wrap: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-0);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--ember); color: var(--paper); }

/* ---------- texture: woven paper ---------- */
.weave {
  position: relative;
}
.weave::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(23,18,16,0.022) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(23,18,16,0.022) 0 1px, transparent 1px 7px);
}
.dark .weave::before, .weave.on-dark::before {
  background:
    repeating-linear-gradient(0deg, rgba(245,239,227,0.025) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(245,239,227,0.025) 0 1px, transparent 1px 7px);
}

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--space-section); position: relative; }
.dark { background: var(--ink); color: var(--paper); }
.dark-2 { background: var(--ink-2); color: var(--paper); }
.tinted { background: var(--paper-2); }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 110;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 540; line-height: 1.18; }
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: var(--measure);
  color: var(--ink-soft);
  font-weight: 450;
}
.dark .lede, .dark-2 .lede { color: var(--paper-soft); }
p { max-width: var(--measure); }
.prose p + p { margin-top: 1.1em; }
.prose .pivot {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 540;
  color: var(--ink);
  max-width: var(--measure-narrow);
}
.dark .prose .pivot { color: var(--paper); }

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-deep);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 2rem; height: 1px;
  background: var(--ember);
  flex: none;
}
.dark .eyebrow, .dark-2 .eyebrow { color: var(--ember-bright); }
.section-head { margin-bottom: var(--space-block); }
.section-head h2 { max-width: 22ch; }
.section-head .lede { margin-top: 1.25rem; }

.accent { color: var(--ember); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand svg { height: 30px; width: auto; }
.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
}
.brand-word small {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  vertical-align: 0.18em;
  margin-left: 0.45rem;
  color: var(--ember-deep);
}
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem var(--gutter) 1.6rem;
    gap: 1.1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px 2px;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--ember);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 0 rgba(23,18,16,0.18), 0 10px 28px -14px rgba(199,91,18,0.55);
}
.btn:hover { background: var(--ember-bright); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(23,18,16,0.05); }
.dark .btn-ghost, .dark-2 .btn-ghost { border-color: var(--line-dark-strong); }
.dark .btn-ghost:hover, .dark-2 .btn-ghost:hover { background: rgba(245,239,227,0.07); }
.cta-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.9rem;
  letter-spacing: 0.02em;
}
.dark .cta-note, .dark-2 .cta-note { color: var(--paper-faint); }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(4rem, 8vw, 7.5rem) clamp(4.5rem, 9vw, 8rem);
  overflow: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 1.6rem; }
.hero-cta { margin-top: 2.4rem; }
.hero-kicker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 1.6rem;
}

/* ---------- the badge ---------- */
.badge-scene { position: relative; display: grid; place-items: center; }
.badge-lanyard {
  position: absolute;
  top: -120px; left: 50%;
  width: 2px; height: 130px;
  background: linear-gradient(var(--ink-faint), var(--line-strong));
}
.badge {
  width: min(340px, 88vw);
  background: linear-gradient(168deg, #fdfaf3, #f1e9d8 70%, #eadfca);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 2px 6px rgba(23,18,16,0.08),
    0 24px 60px -24px rgba(23,18,16,0.45);
  padding: 1.4rem 1.4rem 1.2rem;
  rotate: -2deg;
  transform-origin: top center;
}
@media (prefers-reduced-motion: no-preference) {
  .badge { animation: badge-sway 7s ease-in-out infinite alternate; }
  @keyframes badge-sway { from { rotate: -2.2deg; } to { rotate: -0.6deg; } }
}
.badge-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--line-strong);
}
.badge-top .mark { height: 22px; width: auto; }
.badge-status {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--moss);
  display: flex; align-items: center; gap: 0.45rem;
}
.badge-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--moss-bright);
  box-shadow: 0 0 0 3px rgba(77,155,117,0.25);
}
@media (prefers-reduced-motion: no-preference) {
  .badge-status .dot { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(77,155,117,0.25); } 50% { box-shadow: 0 0 0 6px rgba(77,155,117,0.08); } }
}
.badge-name {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 2rem;
  margin-top: 1.05rem;
  letter-spacing: 0.01em;
}
.badge-role { color: var(--ink-soft); font-size: 0.94rem; font-weight: 500; margin-top: 0.1rem; }
.badge-rows { margin-top: 1.1rem; display: grid; gap: 0.5rem; }
.badge-row {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.badge-row .k { color: var(--ink-faint); flex: none; white-space: nowrap; }
.badge-row .v { font-weight: 500; text-align: right; max-width: 22ch; }
.badge-row .v.ok { color: var(--moss); }
.badge-foot {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
}

/* ---------- stat strip ---------- */
.stat-strip {
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem 2.5rem;
}
.stat .n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--ember-deep);
}
.dark .stat .n, .dark-2 .stat .n { color: var(--ember-bright); }
.stat .l { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.45rem; max-width: 26ch; }
.dark .stat .l, .dark-2 .stat .l { color: var(--paper-soft); }
.stat .s { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 0.4rem; display: block; }
.dark .stat .s, .dark-2 .stat .s { color: var(--paper-faint); }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.6rem;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px -22px rgba(23,18,16,0.35);
}
.dark .card, .dark-2 .card {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.dark .card:hover, .dark-2 .card:hover { border-color: var(--line-dark-strong); box-shadow: 0 18px 40px -20px rgba(0,0,0,0.6); }
.card .num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ember);
}
.card h3 { margin-top: 0.7rem; font-size: var(--step-1); }
.card p { margin-top: 0.65rem; font-size: 0.97rem; color: var(--ink-soft); }
.dark .card p, .dark-2 .card p { color: var(--paper-soft); }

/* ---------- receipt / evidence ---------- */
.receipt {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.75;
  background: var(--ink-2);
  color: var(--paper-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.receipt::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 10px;
  background:
    linear-gradient(-45deg, transparent 5px, var(--ink-2) 5px) repeat-x,
    linear-gradient(45deg, transparent 5px, var(--ink-2) 5px) repeat-x;
  background-size: 12px 12px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
  display: none;
}
.receipt .row { display: flex; justify-content: space-between; gap: 1.5rem; }
.receipt .row + .row { border-top: 1px dashed var(--line-dark); margin-top: 0.55rem; padding-top: 0.55rem; }
.receipt .k { color: var(--paper-faint); }
.receipt .ok { color: var(--moss-bright); }
.receipt .em { color: var(--ember-bright); }
.receipt .hd {
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: var(--paper-faint);
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-dark);
  display: flex; justify-content: space-between;
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { padding: 2.2rem 2rem; background: var(--ink-2); }
.pillar + .pillar { border-left: 1px solid var(--line-dark); }
@media (max-width: 920px) { .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line-dark); } }
.pillar .eyebrow { margin-bottom: 1rem; }
.pillar h3 { font-size: var(--step-2); }
.pillar p { margin-top: 0.8rem; color: var(--paper-soft); font-size: 0.97rem; }

/* ---------- steps rail (edge twin) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  position: relative;
}
.step + .step { border-top: 1px solid var(--line); }
.dark .step + .step, .dark-2 .step + .step { border-top-color: var(--line-dark); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ember);
  padding-top: 0.3rem;
}
.step h3 { font-size: var(--step-1); }
.step p { margin-top: 0.5rem; color: var(--ink-soft); }
.dark .step p, .dark-2 .step p { color: var(--paper-soft); }

/* ---------- quote ---------- */
.pullquote {
  font-family: var(--serif);
  font-weight: 480;
  font-size: var(--step-3);
  line-height: 1.25;
  max-width: 24ch;
  text-wrap: balance;
}
.pullquote .q { color: var(--ember); }
.quote-attr {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.dark .quote-attr, .dark-2 .quote-attr { color: var(--paper-faint); }

/* ---------- proof tiles ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.1rem; }
@media (max-width: 560px) { .proof-grid { grid-template-columns: 1fr; } }
.proof {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
}
.proof .tag {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moss-bright);
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(77,155,117,0.35);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
.proof .tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--moss-bright); }
.proof h3 { margin-top: 1.1rem; font-size: var(--step-1); }
.proof p { margin-top: 0.6rem; color: var(--paper-soft); font-size: 0.96rem; }

/* ---------- trust planks ---------- */
.planks { display: grid; gap: 0; }
.plank {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 2rem;
  padding: 2rem 0;
}
.plank + .plank { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .plank { grid-template-columns: 1fr; gap: 0.7rem; } }
.plank h3 { font-size: var(--step-1); }
.plank .mono-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--ember-deep); text-transform: uppercase; margin-bottom: 0.5rem; display: block; }
.plank p { color: var(--ink-soft); }

/* ---------- papers ---------- */
.paper-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.1rem 2rem;
  background: var(--paper);
  display: grid;
  gap: 1rem;
  position: relative;
}
.paper-card.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.paper-card .pn { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--ember-deep); }
.paper-card.featured .pn { color: var(--ember-bright); }
.paper-card h3 { font-size: var(--step-2); max-width: 24ch; }
.paper-card p { color: var(--ink-soft); max-width: 60ch; }
.paper-card.featured p { color: var(--paper-soft); }
.paper-card .status { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.paper-card.featured .status { color: var(--paper-faint); }
.paper-list { display: grid; gap: 1.1rem; }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.45rem; margin-bottom: 1.2rem; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field .hint { font-size: 0.82rem; color: var(--ink-faint); }
input[type="text"], input[type="email"], input[type="number"], select, textarea {
  font: inherit;
  background: #fffdf8;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(199,91,18,0.18);
}

/* ---------- assessment ---------- */
.quiz { max-width: 760px; }
.q-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fbf7ee;
  padding: 2rem 1.9rem;
  box-shadow: 0 14px 40px -28px rgba(23,18,16,0.4);
}
.q-progress {
  height: 4px; border-radius: 4px;
  background: var(--paper-3);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.q-progress > div { height: 100%; background: var(--ember); width: 0%; transition: width 0.3s ease; }
.q-count { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ink-faint); margin-bottom: 0.9rem; }
.q-text { font-family: var(--serif); font-weight: 540; font-size: var(--step-2); line-height: 1.2; }
.q-opts { display: grid; gap: 0.7rem; margin-top: 1.5rem; }
.q-opt {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.1rem;
  font-size: 0.98rem;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.q-opt:hover { border-color: var(--ember); background: #fffdf8; transform: translateX(2px); }
.q-back {
  background: none; border: 0;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  color: var(--ink-faint); margin-top: 1.2rem; padding: 0.2rem 0;
}
.q-back:hover { color: var(--ink); }
.score-dial { font-family: var(--serif); font-weight: 640; font-size: var(--step-5); line-height: 1; color: var(--ember-deep); }
.score-band { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.4rem; }

/* ---------- footer ---------- */
footer {
  background: var(--ink);
  color: var(--paper-soft);
  padding: 4rem 0 2.5rem;
  font-size: 0.94rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 1rem;
}
footer a { color: var(--paper-soft); text-decoration: none; }
footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.foot-links { display: grid; gap: 0.6rem; }
.foot-brand p { max-width: 38ch; margin-top: 1rem; color: var(--paper-faint); }
.foot-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--paper-faint);
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- misc ---------- */
.divider-claim {
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 540;
  line-height: 1.22;
  max-width: 30ch;
  text-wrap: balance;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }
.cta-band { text-align: left; }
.cta-band .wrap-narrow { display: grid; gap: 1.4rem; justify-items: start; }
