/* ============================================================
   AI Fluency Quiz — editorial AI-lab aesthetic
   ============================================================ */

:root {
  --bg: #F9F6F3;
  --bg-tint: #F3EFEA;
  --ink: oklch(0.18 0.012 80);
  --ink-soft: oklch(0.42 0.012 80);
  --ink-faint: oklch(0.62 0.01 80);
  --rule: oklch(0.88 0.008 80);
  --rule-strong: oklch(0.78 0.008 80);

  --blue: oklch(0.45 0.18 265);
  --red: oklch(0.58 0.22 25);
  --accent: var(--ink);

  --serif: "Newsreader", "Tiempos Headline", "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --pad: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --col: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

body {
  /* faint dot grid */
  background-image: radial-gradient(circle, oklch(0.85 0.008 80) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Top nav ──────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-brand .pill-mark {
  width: 22px; height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  box-shadow: 0 1px 3px oklch(0.45 0.18 265 / 0.25), 0 1px 3px oklch(0.58 0.22 25 / 0.25);
}
.nav-brand strong { font-weight: 600; }
.nav-brand .sep { color: var(--ink-faint); margin: 0 2px; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-left: auto;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.02em;
  transition: transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ─── Eyebrow / labels ─────────────────────────────────────── */

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
.section-head .eyebrow {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  text-transform: lowercase;
  display: block; /* let the serif drop-cap sit on its own line/baseline */
}
.section-head .eyebrow .dot {
  width: 8px; height: 8px;
}
/* Editorial drop-cap on section-head eyebrows: oversized serif first
   letter (Background / How it works / Sources), tiny mono trailing letters. */
.section-head .eyebrow span::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.85;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 4px;
  float: left;
}

/* ─── Hero ─────────────────────────────────────────────────── */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--pad) clamp(28px, 4vw, 56px);
  position: relative;
}

/* Two-column hero: text left, pill right */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-split { grid-template-columns: 1fr; }
}
.hero-text { min-width: 0; }
.hero-eyebrow { margin-bottom: 28px; }

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  /* allow normal wrapping on narrow viewports; the <br/> handles the
     desired desktop break after "AI-pilled" */
}
.hero-headline em {
  /* keep the gradient word itself from wrapping mid-word */
  white-space: nowrap;
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(92deg, var(--blue) 30%, var(--red) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Italic glyphs (especially the trailing "d") project past the inline
     box on the right; pad generously and pull the layout back with a
     negative margin so the next word stays in its expected position. */
  display: inline-block;
  padding-right: 0.18em;
  margin-right: -0.14em;
}

.hero-deck {
  font-family: var(--sans);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 14px;
  text-wrap: pretty;
}

.hero-deck-sub {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  letter-spacing: 0.005em;
  max-width: 640px;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.hero-free-tag {
  margin-left: 6px;
  white-space: nowrap;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-cta-meta {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--ink-soft);
}
.hero-cta-meta p {
  margin: 0;
}
.hero-terms {
  color: var(--ink-faint);
}
.hero-terms a {
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklab, var(--ink-faint) 50%, transparent);
}
.hero-terms a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.btn-primary {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 1px 0 oklch(0.18 0.012 80 / 0.1), 0 8px 24px oklch(0.18 0.012 80 / 0.12);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 oklch(0.18 0.012 80 / 0.1), 0 14px 30px oklch(0.18 0.012 80 / 0.18); }
.btn-primary .arrow { transition: transform 0.18s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  display: inline-block;
}

/* Pill image */
.pill-stage {
  position: relative;
  text-align: center;
}
.hero-pill {
  margin: 0;
  max-width: 100%;
}
.hero-pill img {
  max-width: 560px;
}
.pill-stage img {
  width: 100%;
  max-width: 880px;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 55%, transparent 95%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 55%, transparent 95%);
}
.pill-caption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* ─── Section frame ────────────────────────────────────────── */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 88px) var(--pad);
  border-top: 1px solid var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  margin-bottom: 40px;
  align-items: start;
}
/* When section-head is the only child of the section, drop its bottom margin
   so the section's own padding governs spacing (avoids stacked space). */
.section > .section-head:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}
.section-head .lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 16px;
  text-wrap: pretty;
}
.section-head .lede-secondary {
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 24px;
}
.section-head .section-dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 14px 0 0;
  text-wrap: pretty;
  max-width: 56ch;
}

/* ─── Intro / what is this ─────────────────────────────────── */

.intro-stack {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
  padding-top: 36px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 880px) {
  .intro-grid { grid-template-columns: 1fr; gap: 36px; }
}
.intro-cell .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 12px;
}
.intro-cell h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.intro-cell p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

/* ─── Featured post ────────────────────────────────────────── */

.feature-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  cursor: pointer;
}
@media (max-width: 880px) {
  .feature-post { grid-template-columns: 1fr; gap: 32px; }
}
.feature-post:hover .feature-title { color: var(--ink); }
.feature-art {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 30% 40%, oklch(0.45 0.18 265 / 0.85), transparent 55%),
    radial-gradient(ellipse at 70% 60%, oklch(0.58 0.22 25 / 0.85), transparent 55%),
    oklch(0.18 0.012 80);
  position: relative;
  overflow: hidden;
}
.feature-art::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.15) 1px, transparent 1px);
  background-size: 14px 14px;
  mix-blend-mode: overlay;
}
.feature-art .meta {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: oklch(1 0 0 / 0.7);
  letter-spacing: 0.04em;
}
.feature-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 16px;
  display: flex; gap: 16px;
}
.feature-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-wrap: balance;
  transition: color 0.15s;
}
.feature-excerpt {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  text-wrap: pretty;
  max-width: 480px;
}
.feature-author {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
}
.author-name { color: var(--ink); font-weight: 500; }
.author-role { color: var(--ink-faint); font-family: var(--mono); font-size: 12px; }

/* ─── How it works section ─────────────────────────────────── */

/* Section background is plain — no tinted gradient. */
.section-tinted {
  background: transparent;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  border: none;
  margin-top: 56px;
  /* Align to the right column of the section-head grid (220px label + 48px gap) */
  margin-left: 268px;
}
@media (max-width: 720px) {
  .how-grid { margin-left: 0; }
}

.how-step {
  background: transparent;
  padding: 32px 0 36px;
  border-top: 1px dotted var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 24px;
  row-gap: 12px;
  align-items: start;
}
.how-step:first-child {
  border-top: none;
  padding-top: 0;
}
.how-step-num {
  grid-row: 1 / span 3;
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-faint);
}
@media (max-width: 480px) {
  .how-step { grid-template-columns: 1fr; }
  .how-step-num { grid-row: 1; font-size: 36px; }
}
.how-step-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  /* Optically align with the cap-top of the big serif "01" on the left.
     Newsreader at 56px / line-height 1 leaves ~14px between the line-box
     top and the digit's cap-top, so we offset the meta by the same. */
  align-self: start;
  padding-top: 14px;
}
.how-step-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -0.014em;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
  align-self: start;
  padding-top: 0;
}
.how-step-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}
.how-step-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px dotted var(--rule);
  padding-top: 12px;
  margin-top: 4px;
}

/* Step 02 — formula chip row */
.how-step-formula {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px dotted var(--rule);
}
.how-step-formula > span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  padding: 5px 10px;
  border-radius: 2px;
  color: var(--ink);
  white-space: nowrap;
}
.how-step-formula .how-formula-op {
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  padding: 5px 0;
  font-size: 13px;
}

/* Step 03 — tier strip */
.how-tier-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
@media (max-width: 600px) {
  .how-tier-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.how-tier-strip > span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 6px;
  text-align: center;
  border-right: 1px solid var(--rule);
  min-width: 0;
  overflow: hidden;
}
.how-tier-strip > span:last-child { border-right: 0; }
.how-tier-strip > span b {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-transform: none;
  font-weight: 400;
  margin-bottom: 2px;
}
/* Tier strip — soft mirror of the blue→red pill gradient */
.how-tier-strip > span:nth-child(1) { background: color-mix(in oklab, var(--blue, #3a4ec9) 16%, var(--bg)); }
.how-tier-strip > span:nth-child(2) { background: color-mix(in oklab, var(--blue, #3a4ec9) 9%, var(--bg)); }
.how-tier-strip > span:nth-child(3) { background: color-mix(in oklab, var(--blue, #3a4ec9) 3%, var(--bg)); }
.how-tier-strip > span:nth-child(4) { background: color-mix(in oklab, var(--red,  #c9433a) 3%, var(--bg)); }
.how-tier-strip > span:nth-child(5) { background: color-mix(in oklab, var(--red,  #c9433a) 9%, var(--bg)); }
.how-tier-strip > span:nth-child(6) { background: color-mix(in oklab, var(--red,  #c9433a) 16%, var(--bg)); }

/* Step 03 — sample report-card collapsible preview.
   <details> drives the expand/collapse natively. Closed state shows a
   compact button-row; open state reveals a small thumbnail mock of the
   actual report card (grade, tier, 5 dimension bars) plus a link to the
   full interactive sample. The thumbnail uses the live card's visual
   vocabulary so the preview is informationally accurate. */
.how-sample-details {
  margin-top: 18px;
}
.how-sample-details summary {
  list-style: none;
  cursor: pointer;
}
.how-sample-details summary::-webkit-details-marker { display: none; }
.how-sample-summary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--bg-tint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.how-sample-summary:hover {
  background: var(--bg);
  border-color: var(--ink);
}
.how-sample-chev {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1;
  color: var(--ink-faint);
  transition: transform 0.18s ease;
  display: inline-block;
}
.how-sample-details[open] .how-sample-chev {
  transform: rotate(45deg); /* "+" → "×" */
  color: var(--ink);
}

.how-sample-body {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  /* Subtle reveal animation when opening. */
  animation: howSampleReveal 0.28s ease;
}
@keyframes howSampleReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* The thumbnail card — paper-like surface with the same dotted backdrop
   feel used elsewhere on the site. */
.how-sample-card {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: 18px 20px;
  border-radius: 2px;
  display: grid;
  gap: 14px;
}
.hsc-strip {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--rule);
}
.hsc-grade {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.hsc-grade-num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hsc-grade-tot {
  font-size: 18px;
  color: var(--ink-faint);
  margin-left: 2px;
}
.hsc-grade-tier {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hsc-grade-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.hsc-grade-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink);
  background: linear-gradient(92deg, var(--blue) 30%, var(--red) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hsc-bars {
  display: grid;
  gap: 8px;
}
.hsc-bar-row {
  display: grid;
  grid-template-columns: 1fr 100px 28px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-soft);
}
.hsc-bar-label {
  font-family: var(--sans);
}
.hsc-bar-track {
  position: relative;
  height: 4px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.hsc-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(92deg, var(--blue) 0%, var(--red) 100%);
  border-radius: 2px;
}
.hsc-bar-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  text-align: right;
}
.hsc-foot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 10px;
  border-top: 1px dotted var(--rule);
}

.hsc-moves {
  padding-top: 14px;
  border-top: 1px dotted var(--rule);
  display: grid;
  gap: 10px;
}
.hsc-moves-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hsc-moves-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hsc-moves-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}
.hsc-moves-num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.hsc-moves-text {
  color: var(--ink-soft);
}
.hsc-moves-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 2px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  white-space: nowrap;
}

.how-sample-fulllink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  align-self: start;
  width: fit-content;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.how-sample-fulllink:hover {
  color: var(--red, #c9433a);
  border-color: var(--red, #c9433a);
}
.how-sample-fulllink .arrow { transition: transform 0.18s ease; }
.how-sample-fulllink:hover .arrow { transform: translateX(3px); }

.how-cta-row {
  margin-top: 40px;
  margin-left: 268px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .how-cta-row { margin-left: 0; }
}
.how-cta-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─── Footer ───────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad) 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
}
.footer-col-end { grid-column: 4; }
.footer-col-mid { grid-column: 3; }
@media (max-width: 720px) {
  .footer-col-end, .footer-col-mid { grid-column: auto; }
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a { color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); }
.footer-brand .desc {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 280px;
  margin: 14px 0 0;
}
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.footer-bottom-left {
  justify-self: start;
}
.footer-bottom-center {
  justify-self: center;
  text-align: center;
}
.footer-bottom-right {
  justify-self: end;
  text-align: right;
}
@media (max-width: 720px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-bottom-left,
  .footer-bottom-center,
  .footer-bottom-right {
    justify-self: center;
    text-align: center;
  }
}
.footer-bottom-mid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-terms-link {
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklab, var(--ink-faint) 50%, transparent);
}
.footer-terms-link:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.footer-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.62 0.16 145);
  box-shadow: 0 0 0 0 color-mix(in oklab, oklch(0.62 0.16 145) 60%, transparent);
  animation: footerPulse 2.4s ease-out infinite;
}
@keyframes footerPulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, oklch(0.62 0.16 145) 60%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklab, oklch(0.62 0.16 145) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, oklch(0.62 0.16 145) 0%, transparent); }
}

/* Bouncing gummy pill — physics-driven, ricochets off footer text rects.
   The pill (.footer-pill-free) is positioned absolutely inside the .footer
   container; its transform is set every frame from JS. The shadow
   (.footer-pill-shadow-free) is its sibling and is anchored along the
   footer's floor — JS only changes its scale + opacity + blur as the
   pill rises so it always reads as a cast shadow on the ground. */
.footer-pill-free {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(46px, 5vw, 56px);
  height: clamp(22px, 2.4vw, 27px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform-origin: 50% 50%;
  /* squash/stretch is applied as the scale() portion of the JS transform;
     a short transition isn't used because we set transform every frame */
}
.footer-pill-free svg { display: block; width: 100%; height: 100%; }

/* ── Breakout mode ────────────────────────────────────────────── */
.footer-breakout-ball {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--ink) 12%, transparent);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.18s ease;
  will-change: transform;
}
.footer-breakout-active .footer-breakout-ball { opacity: 1; }

.footer-breakout-hud {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-breakout-hud b {
  font-weight: 600;
  color: var(--ink);
}
.footer-breakout-hud .hud-sep {
  width: 1px;
  height: 10px;
  background: var(--rule);
}
.footer-breakout-hud .hud-hint {
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* Visible floor line that the paddle (pill) snaps to */
.footer-breakout-floor {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s ease;
}
.footer-breakout-active .footer-breakout-floor { opacity: 0.45; }

/* When breakout is active, the bouncing pill becomes a paddle.
   Keep the blue/red gradient — no color change. */
.footer-breakout-active .footer-pill-free {
  width: clamp(74px, 8vw, 92px);
}
.footer-breakout-active .footer-pill-shadow-free {
  opacity: 0 !important;
}

/* Bricks fade out when broken */
.breakout-broken {
  opacity: 0.18 !important;
  text-decoration: line-through;
  transition: opacity 0.25s ease;
}

.footer-pill-shadow-free {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(54px, 6.5vw, 78px);
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    color-mix(in oklab, var(--ink) 42%, transparent) 0%,
    color-mix(in oklab, var(--ink) 20%, transparent) 45%,
    transparent 75%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity, filter;
  transform-origin: 50% 50%;
}

.mq-stop-blue { stop-color: var(--blue, #3a4ec9); }
.mq-stop-red  { stop-color: var(--red, #c9433a); }

@media (prefers-reduced-motion: reduce) {
  .footer-pulse { animation: none; }
}

.footer-cta-line {
  margin: 22px 0 0;
  font-size: 14px;
  font-family: var(--serif, "Newsreader", serif);
  font-style: italic;
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 320px;
}
.footer-cta-tag {
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}
.footer-cta-line a {
  color: var(--ink);
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-cta-line a:hover {
  color: var(--red, #c9433a);
  border-color: var(--red, #c9433a);
}

/* P9 logo mark in the footer copyright row. Sits flush with the © text,
   rendered in current ink colour (asset is black on transparent). */
.footer-bottom-copy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-bottom-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.18s ease;
  flex-shrink: 0;
}
.footer-bottom-mark img {
  width: 21px;
  height: 21px;
  display: block;
}
.footer-bottom-mark:hover { opacity: 1; }
.footer-p9-mark-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.18s ease;
}
.footer-p9-mark {
  width: 16px;
  height: 16px;  display: block;
  /* Render mark in current ink color (logo asset is black on transparent) */
  filter: brightness(0) saturate(100%);
  opacity: 0.65;
  transition: opacity 0.18s ease;
}
.footer-p9-mark-link:hover .footer-p9-mark { opacity: 1; }

/* Footer brand row: gradient pill + wordmark, mirrors the nav brand */
.footer-brand-row {
  display: flex;
  align-items: center;
}
.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: opacity 0.18s ease;
}
.footer-brand-link:hover { opacity: 0.78; }
.footer-brand-row .pill-mark {
  width: 22px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  box-shadow: 0 1px 3px oklch(0.45 0.18 265 / 0.25), 0 1px 3px oklch(0.58 0.22 25 / 0.25);
  display: inline-block;
  flex-shrink: 0;
}
.footer-brand-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.quiz-shell {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* Persistent quiz header — back / counter / exit + progress bar stay
   in view as the user scrolls long option lists. */
.quiz-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}

.quiz-top {
  border-bottom: 1px solid var(--rule);
  padding: 18px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
}
.quiz-top .back {
  display: inline-flex; gap: 8px; align-items: center;
  color: var(--ink-soft);
}
.quiz-top .back:hover { color: var(--ink); }
.quiz-progress {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.quiz-progress-bar {
  position: relative;
  height: 2px;
  background: var(--rule);
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px var(--pad);
}
.quiz-card {
  width: 100%;
  max-width: 720px;
  animation: q-in 0.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@keyframes q-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.quiz-section-label {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.quiz-section-label .num {
  color: var(--ink);
  font-weight: 500;
}
.quiz-q {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 36px;
  text-wrap: balance;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 22px;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.15s;
}
.quiz-option:hover {
  border-color: var(--ink);
  background: var(--bg-tint);
  transform: translateY(-1px);
}
.quiz-option.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.quiz-option .key {
  font-family: var(--mono);
  font-size: 11px;
  width: 22px; height: 22px;
  border-radius: 4px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  margin-top: 1px;
}
.quiz-option.selected .key { opacity: 1; }

.quiz-foot {
  border-top: 1px solid var(--rule);
  padding: 18px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.quiz-foot .hint {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}
.quiz-foot .hint kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  padding: 2px 6px;
  margin: 0 3px;
  background: var(--bg-tint);
}

/* ─── Result ───────────────────────────────────────────────── */

.result {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--pad);
  /* Anchor for the off-screen badge sibling — without an explicit
     positioning context it lays out from <body>, dragging horizontal
     scroll on mobile (Flo's bug #7). */
  position: relative;
  overflow-x: clip;
}
.result-eyebrow { margin-bottom: 24px; }
.result-tier {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.result-tier em {
  font-style: italic;
  background: linear-gradient(92deg, var(--blue) 20%, var(--red) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-blurb {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 700px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

.score-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin: 40px 0 48px;
  overflow: hidden;
  background: var(--bg);
}
@media (max-width: 640px) {
  .score-card { grid-template-columns: 1fr; }
  .score-cell + .score-cell { border-left: none; border-top: 1px solid var(--rule); }
}
.score-cell {
  padding: 24px;
}
.score-cell + .score-cell { border-left: 1px solid var(--rule); }
.score-cell .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.score-cell .value {
  font-family: var(--serif);
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.score-cell .sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.rx {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 20px;
  margin: 32px 0 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.rx-label {
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.share-card {
  margin: 48px 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.share-preview {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  color: var(--bg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.share-preview::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, oklch(0.45 0.18 265 / 0.5), transparent 45%),
    radial-gradient(circle at 80% 70%, oklch(0.58 0.22 25 / 0.5), transparent 45%);
  filter: blur(20px);
}
.share-preview > * { position: relative; z-index: 1; }
.share-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: oklch(1 0 0 / 0.6);
  letter-spacing: 0.04em;
}
.share-tier {
  font-family: var(--serif);
  font-size: clamp(36px, 7vw, 72px);
  font-style: italic;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}
.share-tier em { font-style: italic; }
.share-bottom {
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--mono);
  font-size: 11.5px;
  color: oklch(1 0 0 / 0.7);
}
.share-score-big {
  font-family: var(--serif);
  font-size: 42px;
  font-style: normal;
  color: var(--bg);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.share-actions {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--rule);
  background: var(--bg-tint);
}
.share-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--rule-strong);
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.share-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share-btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share-btn.primary:hover { background: var(--bg); color: var(--ink); }

.result-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 24px;
}

/* ─── Article (blog detail) ────────────────────────────────── */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 96px) var(--pad);
}
.article h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 24px 0 28px;
  text-wrap: balance;
}
.article-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex; gap: 16px;
  margin-bottom: 24px;
}
.article-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 56px;
  text-wrap: pretty;
}
.article-body p,
.article-body ul,
.article-body ol {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 22px;
  color: var(--ink);
}
.article-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
}
.article-body blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  border-left: 2px solid var(--ink);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--ink);
}
.article-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
}
.article-body ul li, .article-body ol li { margin-bottom: 8px; }

.article-share {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex; gap: 16px; align-items: center;
}

/* ─── Source grid (sources section) ────────────────────────── */

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 980px) { .source-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .source-grid { grid-template-columns: 1fr; } }
.source-cell {
  background: var(--bg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.source-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.source-name {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.source-cell p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.source-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.source-links a:hover {
  color: var(--accent-red, #d44);
  border-bottom-color: currentColor;
}

/* ─── Quiz: stem, scope, fn-eyebrow, skip, note, examples ──── */

.quiz-stem {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: -20px 0 32px;
  max-width: 640px;
  text-wrap: pretty;
}
.quiz-scope {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bg);
}
.quiz-section-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.quiz-fn-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  text-transform: lowercase;
}

.opt-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.opt-text { font-size: 16.5px; line-height: 1.4; }
.opt-example {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.quiz-option.selected .opt-example { color: oklch(1 0 0 / 0.6); }

.quiz-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  line-height: 1.5;
}
.note-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.quiz-fn-skip {
  margin-top: 18px;
  text-align: center;
}
.btn-link {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px;
}
.btn-link:hover { color: var(--ink); }

/* ─── Quiz: composite intro ────────────────────────────────── */

.composite-intro .quiz-stem { margin-bottom: 24px; }
.composite-list {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0 24px;
}
.composite-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.composite-row:last-child { border-bottom: none; }
.composite-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.composite-name {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.composite-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--bg);
}
.composite-cta-row { display: flex; gap: 12px; margin-top: 24px; }

/* ─── Result: per-dimension breakdown ──────────────────────── */

.dim-block, .moves {
  margin: 48px 0;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
}
.dim-block-head, .moves-head {
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow-inline {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: lowercase;
}
.dim-rows { display: flex; flex-direction: column; gap: 22px; }
.dim-row { display: flex; flex-direction: column; gap: 10px; }
.dim-row-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: 14px;
  font-variant-numeric: tabular-nums;
}
.dim-code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.dim-name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.dim-score {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dim-max { color: var(--ink-faint); }
.dim-level {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--bg-tint);
}
.dim-bar {
  height: 5px;
  background: var(--bg-tint);
  border-radius: 999px;
  overflow: hidden;
}
.dim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ─── Result: top moves list ───────────────────────────────── */

.moves-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: m;
}
.moves-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
.moves-list li:last-child { border-bottom: none; padding-bottom: 0; }
.move-num {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.move-title {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin-bottom: 4px;
}
.move-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ─── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 999px;
  z-index: 100;
  animation: toast 2.4s ease forwards;
}
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  10%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

/* ============================================================
   Typeform-inspired improvements (2026-05-04)
   ============================================================ */

/* ─── Smoother quiz card slide-in ────────────────────────────── */
@keyframes q-in {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quiz-card { animation: q-in 0.42s cubic-bezier(0.19, 1, 0.22, 1); }

/* ─── Quiz top bar — visible Back + Exit (left-progress-right) ─ */
.quiz-top {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 16px;
  position: relative;
}
.quiz-top-nav { display: flex; }
.quiz-top-nav-right { justify-content: flex-end; }
.quiz-top .quiz-progress { text-align: center; }
.quiz-top .back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}
.quiz-top .back:hover { color: var(--ink); background: var(--bg-tint); }
.quiz-top .back .back-arrow { font-size: 13px; opacity: 0.7; }

/* ─── Selection-pulse + checkmark on option ────────────────── */
.quiz-option {
  position: relative;
  align-items: flex-start;
}
.quiz-option .key {
  margin-top: 1px;
}
.quiz-option .opt-check {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) scale(0.6);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s, color 0.18s;
}
.quiz-option.selected .opt-check {
  color: var(--bg);
  opacity: 0.6;
  transform: translateY(-50%) scale(1);
}
@keyframes q-flash {
  0%   { transform: translateY(0) scale(1); }
  35%  { transform: translateY(-2px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
.quiz-option.flashed {
  animation: q-flash 320ms cubic-bezier(0.2, 0.7, 0.3, 1);
  border-color: var(--ink) !important;
  background: var(--ink) !important;
  color: var(--bg) !important;
  box-shadow: 0 8px 22px oklch(0.18 0.012 80 / 0.18);
}
.quiz-option.flashed .opt-example { color: oklch(1 0 0 / 0.6); }
.quiz-option.flashed .opt-check {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  color: var(--bg);
}

/* ─── Last-question accent + foot hint emphasis ────────────── */
.quiz-card-last {
  /* subtle "you're almost there" ring */
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--red) 18%, transparent);
  border-radius: 10px;
  padding: 4px;
  margin: -4px;
}
.quiz-foot .hint strong {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(92deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.02em;
}
.hint-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ─── Progress bar milestone pulse ──────────────────────────── */
@keyframes progress-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--red) 50%, transparent); }
  60%  { box-shadow: 0 0 0 6px color-mix(in oklab, var(--red) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--red) 0%, transparent); }
}
.quiz-progress-bar.milestone-pulse {
  animation: progress-pulse 700ms ease-out;
}

/* ─── Mobile sticky bottom nav ──────────────────────────────── */
.quiz-mobile-nav {
  display: none;
}
@media (max-width: 720px) {
  .quiz-mobile-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    bottom: 0;
    left: 0; right: 0;
    background: color-mix(in oklch, var(--bg) 96%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-top: 1px solid var(--rule);
    padding: 12px var(--pad);
    z-index: 40;
    font-family: var(--mono);
    font-size: 12px;
  }
  .quiz-mobile-btn {
    background: none;
    border: 1px solid var(--rule-strong);
    color: var(--ink);
    padding: 9px 14px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .quiz-mobile-btn:active { background: var(--ink); color: var(--bg); }
  .quiz-mobile-progress {
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
  }
  .quiz-mobile-spacer { width: 70px; }
  /* Prevent the desktop foot from competing — hide on mobile */
  .quiz-foot { display: none; }
}

/* ─── Resume note on landing ───────────────────────────────── */
.hero-resume-note {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-resume-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
  animation: footerPulse 2.4s ease-out infinite;
}

/* ─── Calibrating interstitial ─────────────────────────────── */
.calibrating {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 64px var(--pad);
  background: var(--bg);
  text-align: center;
}
.calibrating-pill {
  width: 120px;
  height: 50px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calibrating-pill-mark {
  width: 96px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  box-shadow: 0 6px 22px color-mix(in oklab, var(--blue) 30%, transparent),
              0 -2px 12px color-mix(in oklab, var(--red) 30%, transparent);
  animation: calibrating-spin 1.6s cubic-bezier(0.5, 0, 0.5, 1) infinite,
             calibrating-glow 1.6s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes calibrating-spin {
  0%   { transform: rotate(0deg)   scaleX(1); }
  50%  { transform: rotate(180deg) scaleX(0.6); }
  100% { transform: rotate(360deg) scaleX(1); }
}
@keyframes calibrating-glow {
  from { filter: brightness(1); }
  to   { filter: brightness(1.18); }
}
.calibrating-text {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.calibrating-text em {
  font-style: italic;
  background: linear-gradient(92deg, var(--blue), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calibrating-dots {
  display: inline-flex;
  margin-left: 2px;
}
.calibrating-dots span {
  opacity: 0.2;
  animation: calibrating-dot 1.2s ease-in-out infinite;
}
.calibrating-dots span:nth-child(1) { animation-delay: 0s; }
.calibrating-dots span:nth-child(2) { animation-delay: 0.18s; }
.calibrating-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes calibrating-dot {
  0%, 60%, 100% { opacity: 0.2; }
  30%           { opacity: 1; }
}
.calibrating-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: lowercase;
}

/* ─── Score count-up styling ───────────────────────────────── */
.score-counting {
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1.6em;
}

/* ─── prefers-reduced-motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .quiz-card { animation: none; }
  .quiz-option.flashed { animation: none; }
  .quiz-progress-bar.milestone-pulse { animation: none; }
  .calibrating-pill-mark { animation: none; }
  .calibrating-dots span { animation: none; opacity: 0.5; }
  .hero-resume-dot { animation: none; }
}

/* ─── Footer Breakout: cursor + one-time play hint ────────────── */
.footer { cursor: crosshair; }
.footer-bottom { cursor: auto; }
.footer a,
.footer button { cursor: pointer; }

.footer-play-hint {
  position: absolute;
  bottom: 64px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 4;
}
.footer-play-hint.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.footer-play-hint-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 11px;
  color: var(--ink);
  background: var(--bg);
}
.footer-play-hint-text { text-transform: lowercase; }
.footer-breakout-active .footer-play-hint { opacity: 0; }
/* Hide the keyboard play-hint on touch devices — arrow-key Breakout
   doesn't work without a physical keyboard. */
@media (max-width: 720px), (hover: none) {
  .footer-play-hint { display: none !important; }
}

/* ─── v3.7: Welcome card ─────────────────────────────────────── */
.welcome-card {
  max-width: 680px;
  text-align: left;
}
.welcome-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.welcome-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.welcome-lede {
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.welcome-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.welcome-bullets li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.welcome-num {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: var(--ink);
  min-width: 1.2em;
  text-align: right;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.welcome-note {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  line-height: 1.55;
}
.welcome-note strong { color: var(--ink); font-weight: 500; }
.welcome-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ─── v3.7: Segmented progress bar ──────────────────────────── */
.quiz-progress-wrap {
  border-bottom: 1px solid var(--rule);
  padding: 8px var(--pad) 0;
  background: var(--bg);
}
.quiz-progress-segments {
  display: flex;
  gap: 2px;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-transform: uppercase;
  min-height: 16px;
  overflow: hidden;
}
.quiz-progress-seg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  flex-basis: 0;
  min-width: 0;
}
.quiz-progress-seg-code {
  font-weight: 500;
  opacity: 0.6;
}
.quiz-progress-seg-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.quiz-progress-seg.active {
  color: var(--ink);
}
.quiz-progress-seg.active .quiz-progress-seg-code {
  color: var(--accent, var(--red));
  opacity: 1;
}
/* Override the original absolute-positioned bar when inside the wrap */
.quiz-progress-wrap .quiz-progress-bar {
  position: relative;
  margin-top: 0;
  height: 3px;
}

/* On narrow screens, keep only the active segment readable */
@media (max-width: 720px) {
  .quiz-progress-seg-name { display: none; }
  .quiz-progress-seg.active .quiz-progress-seg-name {
    display: inline;
  }
  .quiz-progress-seg:not(.active) .quiz-progress-seg-code { opacity: 0.4; }
}

/* ─── v3.8: New compact result card ─────────────────────────── */
/* Mirrors the .how-sample-card vocabulary at full size — single,
   screenshottable artifact users actually receive after the quiz. */
.result-card {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 4px;
  display: grid;
  gap: 28px;
  margin-bottom: 32px;
  position: relative;
}

/* Top strip: brand + run id + date + p9 mark */
.result-card-strip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px dotted var(--rule);
  flex-wrap: wrap;
}
.result-card-strip-name { color: var(--ink); font-weight: 500; }
.result-card-strip-sep { opacity: 0.5; }
.result-card-mark {
  margin-left: auto;
  width: 36px;
  height: 36px;
  opacity: 0.9;
}

/* Grade block: 3 evenly-spaced columns — company / score / tier.
   Center cell is the big score, flanked symmetrically. */
.result-card-grade {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  padding: 18px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.result-card-company {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  padding: 10px;
  border-radius: 12px;
  position: relative;
}
.result-card-company-bg {
  /* Container painted with the sampled logo background so an opaque
     favicon (white square, etc.) doesn't look clipped onto page bg. */
  padding: 14px 20px;
}
.result-card-companylogo {
  height: 104px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
/* Square brand marks (icon.horse fallback) — keep height matched so
   the layout stays balanced regardless of which fallback fires. */
.result-card-companylogo-1,
.result-card-companylogo-2 {
  height: 92px;
  max-width: 92px;
  border-radius: 14px;
}

/* Loading spinner — overlays the logo container while we're waiting
   for the image to load (or while cascade is racing through sources). */
.result-card-company-loading .result-card-companylogo,
.result-card-company-loading .result-card-companyname {
  opacity: 0.25;
  filter: blur(2px);
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.result-card-company-spinner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--rule);
  border-top-color: var(--ink);
  animation: result-spin 0.8s linear infinite;
}
@keyframes result-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .result-card-company-spinner { animation: none; opacity: 0.6; }
}
/* Center column wraps to keep score + /100 grouped */
.result-card-grade-num {
  justify-self: center;
}
/* Right column — tier code on top, italic gradient name below */
.result-card-grade-tier {
  justify-self: center;
  text-align: center;
}
.result-card-companyname {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.result-card-grade-num {
  font-family: var(--serif);
  font-weight: 400;
  display: flex;
  align-items: baseline;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.result-card-grade-numv {
  font-size: clamp(72px, 11vw, 132px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.result-card-grade-tot {
  font-size: clamp(20px, 2.4vw, 32px);
  color: var(--ink-faint);
  margin-left: 4px;
}
.result-card-grade-tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-card-grade-code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.result-card-grade-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 44px);
  background: linear-gradient(92deg, var(--blue) 25%, var(--red) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}

/* Bars: dim breakdown — one row per dimension */
.result-card-bars {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px dotted var(--rule);
}
.result-card-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 280px) 36px;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}
.result-card-bar-label {
  font-family: var(--sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-card-bar-track {
  position: relative;
  height: 6px;
  background: var(--rule);
  border-radius: 3px;
  overflow: hidden;
}
.result-card-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(92deg, var(--blue) 0%, var(--red) 100%);
  border-radius: 3px;
  transition: width 1.4s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.result-card-bar-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: right;
}

/* Recommended moves */
.result-card-moves {
  display: grid;
  gap: 14px;
  padding-bottom: 8px;
}
.result-card-moves-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.result-card-moves-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.result-card-moves-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.result-card-moves-item:first-child {
  padding-top: 0;
  border-top: none;
}
.result-card-moves-num {
  font-family: var(--serif);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  line-height: 1;
  letter-spacing: -0.02em;
}
.result-card-moves-body {
  display: grid;
  gap: 6px;
}
.result-card-moves-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}
.result-card-moves-text {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.result-card-moves-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 99px;
  white-space: nowrap;
}

/* Shown when no dim is below 80% — recommending more would be noise.
   Subtle blue→red tinted bg so the L4/L5 "victory" reads as different
   from the regular moves list, but text stays on a near-paper surface
   so contrast is solid (Flo's bug #3). */
.result-card-moves-allstrong {
  position: relative;
  border-left: 2px solid;
  border-image: linear-gradient(180deg, var(--blue), var(--red)) 1;
  padding: 14px 18px 14px 20px;
  display: grid;
  gap: 10px;
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--blue) 6%, var(--bg)),
    color-mix(in oklab, var(--red) 6%, var(--bg))
  );
  border-radius: 0 8px 8px 0;
}
.result-card-moves-allstrong p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.result-card-moves-allstrong p:not(:first-child) { color: var(--ink-soft); }
.result-card-moves-allstrong strong { color: var(--ink); font-weight: 600; }

/* Tier-specific preamble above the moves list — single line that
   differentiates L0 from L1 and L2 from L3 (their move tables are the
   same, but the framing should change with the tier). */
.result-card-moves-preamble {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding: 12px 16px;
  background: var(--bg-tint);
  border-left: 2px solid var(--rule-strong);
  border-radius: 0 6px 6px 0;
}

/* Tiny disclosure that anonymous result data is logged. Kept low-key on
   purpose — present, but not the loudest thing on the page. */
.result-research-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: -16px 0 24px;
  text-align: right;
}

/* Foot of the card */
.result-card-foot {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px dotted var(--rule);
}

@media (max-width: 720px) {
  .result-card-bar-row {
    grid-template-columns: 1fr 36px;
  }
  .result-card-bar-track {
    grid-column: 1 / -1;
  }
  .result-card-grade {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .result-card-foot {
    flex-direction: column;
    gap: 4px;
  }
}

/* ─── Personalize ────────────────────────────────────────── */
.result-personalize {
  margin: 0 0 20px;
  display: grid;
  gap: 8px;
}
.result-personalize label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.result-personalize-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.result-personalize input {
  flex: 1;
  font-family: var(--sans);
  font-size: 16px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.result-personalize input:focus {
  outline: none;
  border-color: var(--ink);
}
.result-personalize-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ─── Action buttons + nav ───────────────────────────────── */
/* (existing .result-actions exists — extend, don't replace) */
.result-card + .result-personalize + .result-actions,
.result .result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  border-top: none;
  padding-top: 0;
}
.result-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* ─── Pill badge variant ─────────────────────────────────── */
.result-badge-section {
  margin: 32px 0;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-tint);
  display: grid;
  gap: 18px;
}
.result-badge-head p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}
.result-badge-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.badge {
  position: relative;
  width: 360px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 28px 22px;
  display: grid;
  gap: 14px;
  overflow: hidden;
}
.badge-pill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  display: flex;
}
.badge-pill-blue {
  background: linear-gradient(90deg, var(--blue), oklch(0.55 0.18 280));
}
.badge-pill-red {
  background: linear-gradient(90deg, oklch(0.6 0.2 30), var(--red));
}
.badge-content {
  display: grid;
  gap: 8px;
}
.badge-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.badge-tier {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 4px 0 6px;
  background: linear-gradient(92deg, var(--blue) 25%, var(--red) 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.badge-grade {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  color: var(--ink);
}
.badge-grade-code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.badge-grade-sep { color: var(--ink-faint); }
.badge-grade-score {
  font-family: var(--serif);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}
.badge-grade-tot { font-size: 14px; color: var(--ink-faint); margin-left: 1px; }
.badge-foot {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 10px;
  border-top: 1px dotted var(--rule);
}

/* ─── v3.9: Result redesign — hero + drawer ────────────────── */

/* Badge co-brand: logo + company name in eyebrow with a vertical divider */
.badge-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.badge-eyebrow-cobrand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--rule);
}
.badge-eyebrow-logo {
  width: 18px; height: 18px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--bg);
}
.badge-eyebrow-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--ink);
  background: var(--bg-tint);
}
.badge-eyebrow-name {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--ink);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Minimal hero — just an eyebrow above the report card */
.result-hero {
  margin-bottom: 18px;
}
.result-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.result-hero-eyebrow .pill-mark {
  width: 18px; height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--red));
}

/* Tier-specific blurb sits inside the report card under the grade row */
.result-card-blurb {
  font-family: var(--serif);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 8px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--rule);
  text-wrap: pretty;
}

/* L-tier chip on each bar row — picks up subtle blue/red tinting at
   extremes so a glance at the rail tells you how the company is
   balanced across dimensions. */
.result-card-bar-row {
  grid-template-columns: minmax(0, 1fr) 56px minmax(120px, 280px) 36px;
}
.result-card-bar-level {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--bg-tint);
  border: 1px solid var(--rule);
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.result-card-bar-level[data-tier="0"],
.result-card-bar-level[data-tier="1"] {
  color: var(--blue);
  border-color: color-mix(in oklab, var(--blue) 30%, var(--rule));
}
.result-card-bar-level[data-tier="4"],
.result-card-bar-level[data-tier="5"] {
  color: var(--red);
  border-color: color-mix(in oklab, var(--red) 30%, var(--rule));
}
@media (max-width: 720px) {
  /* Two-row layout on mobile so the score stays right-aligned to the
     bar (per Flo's bug #6) — name | level chip | score on row 1,
     full-width track on row 2. Use grid-template-areas to be explicit
     about placement, otherwise auto-placement can push the score down. */
  .result-card-bar-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "label level score"
      "track track track";
    column-gap: 12px;
    row-gap: 6px;
  }
  .result-card-bar-label { grid-area: label; }
  .result-card-bar-level { grid-area: level; }
  .result-card-bar-num   { grid-area: score; min-width: 32px; }
  .result-card-bar-track { grid-area: track; }
}

/* Drawer — single export surface, collapses old 2×2 of {card,badge} ×
   {generic,branded} into one tab + one input + one primary CTA. */
.result-drawer {
  margin-top: 32px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 22px 26px 18px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -36px oklch(0.18 0.012 80 / 0.18);
  display: grid;
  gap: 16px;
}
.result-drawer-head { display: block; }
.result-drawer-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}
.result-drawer-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  margin: 2px 0 0;
  line-height: 1.3;
}
.result-drawer-tabs {
  display: inline-flex;
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 4px;
  align-self: start;
}
.result-drawer-tab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 22px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.result-drawer-tab:hover { color: var(--ink); }
.result-drawer-tab.active {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 2px oklch(0.18 0.012 80 / 0.06), 0 0 0 1px var(--rule);
}
.result-drawer-body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  align-items: stretch;
}
/* Clickable thumbnail — surfaces the full report (zoomed) so users see
   exactly what they're about to download. Click triggers saveCurrent. */
.result-drawer-thumb {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-tint);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  align-self: stretch;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
}
.result-drawer-thumb:hover { border-color: var(--ink); }
.result-drawer-thumb:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.result-drawer-thumb-scale {
  zoom: 0.5;
  width: 100%;
  pointer-events: none;
}
.result-drawer-thumb-card {
  width: 100%;
  /* No extra container — we render the full .result-card inline so the
     thumbnail is a real preview, not a stub. */
  margin-bottom: 0;
}
.result-drawer-thumb-badge {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}
/* "Click to download" hint that fades in on hover/focus */
.result-drawer-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--bg);
  background: oklch(0.18 0.012 80 / 0);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.result-drawer-thumb:hover .result-drawer-thumb-overlay,
.result-drawer-thumb:focus-visible .result-drawer-thumb-overlay {
  opacity: 1;
  background: oklch(0.18 0.012 80 / 0.55);
}
.result-drawer-thumb-overlay-icon { font-size: 18px; }

.result-drawer-personalize {
  display: grid;
  gap: 10px;
  align-content: start;
}
.result-drawer-personalize-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.result-drawer-personalize-label span {
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: 6px;
}
.result-drawer-personalize-hint {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: -4px;
  line-height: 1.4;
}
.result-drawer-personalize-input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.result-drawer-personalize-input:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ink) 6%, transparent);
}
.result-drawer-personalize-input .globe { font-size: 14px; color: var(--ink-faint); }
.result-drawer-personalize-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.result-drawer-personalize-clear {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-tint);
  border: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s;
}
.result-drawer-personalize-clear:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.result-drawer-personalize-found {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
}
.result-drawer-personalize-found-logo {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--bg-tint);
}
.result-drawer-personalize-found-fallback {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: var(--bg-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}
.result-drawer-personalize-found-meta .name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.result-drawer-personalize-found-meta .dom {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.result-drawer-personalize-change {
  font-family: var(--sans);
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.result-drawer-personalize-change:hover { border-color: var(--ink); }
.result-drawer-personalize-empty {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-faint);
  font-style: italic;
  padding: 12px 14px;
  border: 1px dashed var(--rule-strong);
  border-radius: 10px;
}

.result-drawer-primary {
  width: 100%;
  background: var(--ink);
  color: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.15s ease;
}
.result-drawer-primary:hover { transform: translateY(-1px); }
.result-drawer-primary .dl { font-size: 17px; }

.result-drawer-or {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 12px;
}
.result-drawer-or::before, .result-drawer-or::after {
  content: ""; flex: 1;
  height: 1px;
  background: var(--rule);
}

.result-drawer-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.result-drawer-secondary button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 0 14px;
  height: 40px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.result-drawer-secondary button:hover { border-color: var(--ink); }
.result-btn-attach {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px dotted var(--rule-strong);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.result-drawer-foot {
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* Off-screen badge — kept rendered so saveBadge has a full-fidelity
   DOM target without showing the badge twice in the visible UI. */
.result-badge-offscreen {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 360px;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 760px) {
  .result-drawer-body { grid-template-columns: 1fr; }
  .result-drawer-secondary { grid-template-columns: 1fr; }
  .result-drawer { padding: 18px 18px 14px; }
}

/* ─── v3.10: Report-card hero rebuild (rd-rc-*) ───────────────
   - Strip: brand + date + small co-brand chip on the right (no
     more dominant logo card).
   - 2-col hero: left = tier code + tier name + blurb; right = big
     score + caption. Both anchored to the same baseline.
   ============================================================= */

.rd-rc-strip { gap: 10px; }
.rd-rc-strip-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 500;
}
.rd-rc-strip-chip-logo {
  width: 18px; height: 18px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--bg-tint);
}
/* Subtle pulse on the chip while logo cascade is loading; settles
   when onLoad fires or the cascade exhausts. */
.rd-rc-strip-chip-loading {
  animation: rd-rc-chip-pulse 1.4s ease-in-out infinite;
}
@keyframes rd-rc-chip-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-rc-strip-chip-loading { animation: none; opacity: 0.7; }
}

.rd-rc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(40px, 6vw, 80px);
  row-gap: 24px;
  align-items: end;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.rd-rc-hero-left {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.rd-rc-hero-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rd-rc-hero-code {
  color: var(--ink);
  font-weight: 500;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
.rd-rc-hero-of { letter-spacing: 0.12em; }
.rd-rc-hero-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  padding-right: 0.18em; /* absorb italic side-bearing overhang */
  background: linear-gradient(92deg, var(--blue) 18%, var(--red) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.rd-rc-hero-blurb {
  font-family: var(--serif);
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 4px 0 0;
  max-width: 56ch;
  text-wrap: pretty;
}
.rd-rc-hero-right {
  display: grid;
  justify-items: end;
  align-content: end;
  gap: 6px;
  text-align: right;
}
.rd-rc-hero-numwrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.9;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rd-rc-hero-numv {
  font-size: clamp(88px, 11vw, 144px);
}
.rd-rc-hero-tot {
  font-size: clamp(18px, 2vw, 26px);
  color: var(--ink-faint);
  letter-spacing: -0.01em;
}
.rd-rc-hero-cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-right: 2px;
}

/* Neutralize the legacy grade block / standalone blurb if anything
   still tries to render them inside an .rd-rc card during transitions. */
.rd-rc .result-card-grade { display: none; }
.rd-rc .result-card-blurb { display: none; }

@media (max-width: 720px) {
  .rd-rc-hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
  .rd-rc-hero-right {
    justify-items: start;
    text-align: left;
  }
}
