  :root {
    --bg: #F4EDDC;
    --bg-warm: #EFE6D2;
    --bg-deep: #E8DEC4;
    --ink: #1F1A14;
    --ink-soft: #4A4238;
    --ink-faint: #8C8170;
    --rule: #C9BFA8;
    --rule-soft: #D8CFB8;
    --matcha: #3D5A3D;
    --matcha-deep: #28401F;
    --matcha-soft: #5C7A4F;
    --gold: #9D7E4F;
    --gold-soft: #050504;
    --rust: #A0432A;
    --rust-soft: #B85A3F;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  :focus-visible {
    outline: 2px solid var(--matcha);
    outline-offset: 3px;
    border-radius: 2px;
  }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Karla', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
      radial-gradient(circle at 20% 10%, rgba(61, 90, 61, 0.04) 0%, transparent 40%),
      radial-gradient(circle at 80% 70%, rgba(157, 126, 79, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
  }

  /* Subtle paper grain */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.04 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    z-index: 1;
  }

  main { position: relative; z-index: 2; }

  /* ============ HERO ============ */
  .hero {
    padding: 64px 6vw 64px;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid var(--rule);
  }

  .hero-eyebrow {
    font-family: 'Karla', sans-serif;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .hero-eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rule);
  }

  .hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 28px;
    font-variation-settings: "opsz" 144, "SOFT" 50;
  }

  .hero-title em {
    font-style: italic;
    color: var(--matcha);
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
  }

  .meta-item .meta-label {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 8px;
    font-weight: 500;
  }

  .meta-item .meta-value {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    font-variation-settings: "opsz" 36;
  }

  .meta-item .meta-value .accent { color: var(--matcha); }

  .hero-lede {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 640px;
    font-variation-settings: "opsz" 18;
    margin-top: 8px;
  }

  .hero-lede em { font-style: italic; color: var(--matcha); }

  /* ============ LEADERBOARD ============ */
  .leaderboard {
    padding: 80px 6vw;
    max-width: 1280px;
    margin: 0 auto;
    border-bottom: 1px solid var(--rule);
  }

  .section-marker {
    padding: 80px 6vw 0;
    border-top: 1px solid var(--rule);
    margin-left: -6vw;
    margin-right: -6vw;
  }

  /* Per-specimen back-link to the leaderboard / Fig. 1 — shared by latte + usucha */
  .back-to-fig {
    margin-left: auto;
    font-family: 'Karla', sans-serif;
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-decoration: none;
    border-bottom: 1px dotted var(--ink-faint);
    padding-bottom: 1px;
    transition: color 0.18s ease, border-color 0.18s ease;
  }
  .back-to-fig:hover,
  .back-to-fig:focus-visible { color: var(--matcha-deep); border-bottom-color: var(--matcha-deep); outline: none; }

  .section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 16px;
    font-weight: 500;
  }

  .section-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    font-variation-settings: "opsz" 72;
  }

  .section-title em { font-style: italic; color: var(--matcha); }

  .section-sub {
    font-family: 'Karla', sans-serif;
    color: var(--ink-soft);
    max-width: 680px;
    margin-bottom: 48px;
    font-size: 15px;
  }

  .leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
  }

  .leader-cell {
    background: var(--bg-warm);
    padding: 24px 20px;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .leader-cell:hover {
    background: var(--bg-deep);
    transform: translateY(-1px);
  }

  .leader-rank {
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
  }

  .leader-code {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    margin-top: 4px;
    font-variation-settings: "opsz" 72, "SOFT" 60;
  }

  .leader-score {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--matcha);
    margin-top: 16px;
    line-height: 1;
    font-variation-settings: "opsz" 36;
  }

  .leader-tier {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 4px;
  }

  .leader-cell.tier-top .leader-tier { color: var(--matcha-deep); }
  .leader-cell.tier-top .leader-score { color: var(--matcha-deep); }
  .leader-cell.tier-good .leader-tier { color: var(--matcha); }
  .leader-cell.tier-marginal .leader-tier { color: var(--gold); }
  .leader-cell.tier-marginal .leader-score { color: var(--gold); }
  .leader-cell.tier-reject .leader-tier { color: var(--rust); }
  .leader-cell.tier-reject .leader-score { color: var(--rust); }

  /* Stats bar */
  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
  }

  .stat-num {
    font-family: 'Fraunces', serif;
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    font-variation-settings: "opsz" 60;
  }
  .stat-num.matcha { color: var(--matcha); }
  .stat-num.gold { color: var(--gold); }
  .stat-num.rust { color: var(--rust); }

  .stat-label {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 8px;
    font-weight: 500;
  }

  /* ============ SPECIMEN SECTIONS ============ */
  .specimens {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 6vw;
  }

  .specimens-intro {
    padding: 80px 0 40px;
    border-bottom: 1px solid var(--rule);
  }

  .specimen {
    padding: 80px 0;
    border-bottom: 1px solid var(--rule);
    position: relative;
  }

  .specimen:last-child { border-bottom: none; }

  .specimen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 48px 64px;
    grid-template-areas:
      "header score"
      "radar  notes";
  }

  .specimen-header { grid-area: header; }
  .specimen-score { grid-area: score; }
  .specimen-radar { grid-area: radar; display: flex; align-items: center; justify-content: center; }
  .specimen-notes { grid-area: notes; display: flex; flex-direction: column; gap: 24px; }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
  }

  .rank-marker { color: var(--ink-faint); }

  .tier-pill {
    padding: 4px 12px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .tier-top .tier-pill { color: var(--matcha-deep); border-color: var(--matcha-deep); background: rgba(61, 90, 61, 0.08); }
  .tier-good .tier-pill { color: var(--matcha); border-color: var(--matcha); }
  .tier-marginal .tier-pill { color: var(--gold); border-color: var(--gold); }
  .tier-reject .tier-pill { color: var(--rust); border-color: var(--rust); }

  .rep-badge {
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .grade-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.22em;
    font-weight: 600;
  }

  .grade-second-flush {
    color: var(--bg);
    background: var(--rust-soft);
    border: 1px solid var(--rust-soft);
  }

  .grade-context {
    margin-top: 12px;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-faint);
    border-left: 2px solid var(--rust-soft);
    padding-left: 14px;
    max-width: 460px;
    font-variation-settings: "opsz" 14;
  }

  .sample-code {
    font-family: 'Fraunces', serif;
    font-weight: 200;
    font-size: clamp(96px, 12vw, 168px);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 50;
    font-feature-settings: "ss01";
  }

  .tier-top .sample-code { color: var(--matcha-deep); }
  .tier-reject .sample-code { color: var(--rust); opacity: 0.85; }

  .use-case {
    margin-top: 16px;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
  }

  .use-case em {
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--matcha);
    font-size: 16px;
  }

  /* Score panel */
  .specimen-score {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    padding-top: 8px;
  }

  .combined-overall {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .overall-num {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: clamp(56px, 7vw, 88px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--matcha);
    font-variation-settings: "opsz" 144;
  }

  .tier-marginal .overall-num { color: var(--gold); }
  .tier-reject .overall-num { color: var(--rust); }

  .overall-label {
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 12px;
    font-weight: 500;
  }

  .overall-divider {
    width: 80px;
    height: 1px;
    background: var(--rule);
    margin: 28px 0;
  }

  .dual-scores {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
  }

  .dual-score {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
  }

  .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .dot-larry { background: var(--matcha); }
  .dot-hyejin { background: var(--gold); }

  .dual-name {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 500;
    width: 56px;
    text-align: left;
  }

  .dual-num {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
    font-variation-settings: "opsz" 36;
    min-width: 48px;
    text-align: right;
  }

  /* Radar chart */
  .radar-svg {
    max-width: 360px;
    width: 100%;
    height: auto;
    display: block;
  }

  /* Notes blocks */
  .rater-block {
    border-top: 1px solid var(--rule);
    padding-top: 16px;
  }

  .rater-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .rater-name {
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
  }

  .rater-larry .rater-name::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--matcha);
    margin-right: 8px;
    vertical-align: middle;
  }

  .rater-hyejin .rater-name::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 8px;
    vertical-align: middle;
  }

  .rater-score {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--ink-soft);
    font-variation-settings: "opsz" 24;
  }

  .rater-score-empty {
    color: var(--ink-faint);
    font-size: 18px;
  }

  .rater-notes {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    font-style: italic;
    font-variation-settings: "opsz" 18;
  }

  .empty-note { font-style: normal; color: var(--ink-faint); font-size: 13px; }

  /* ============ FOOTER ============ */
  footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 6vw 100px;
    border-top: 1px solid var(--rule);
    position: relative;
    z-index: 2;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .footer-section h3 {
    font-family: 'Karla', sans-serif;
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 16px;
    font-weight: 500;
  }

  .footer-section p {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
    font-variation-settings: "opsz" 18;
  }

  .footer-section ul {
    list-style: none;
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-variation-settings: "opsz" 18;
  }

  .footer-section li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
  }

  .footer-section li:last-child { border-bottom: none; }

  .colophon {
    margin-top: 80px;
    padding-top: 32px;
    border-top: 1px solid var(--rule);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
  }

  .colophon .mark {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-style: italic;
    font-size: 16px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--matcha);
  }

  .report-back {
    margin-top: 56px;
    margin-bottom: 8px;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .report-back a {
    color: var(--matcha);
    text-decoration: none;
    border-bottom: 1px solid var(--matcha);
    padding-bottom: 4px;
    transition: opacity 0.2s ease;
  }
  .report-back a:hover { opacity: 0.65; }

  /* Newsletter */
  .newsletter {
    padding: 64px 6vw 56px;
    border-top: 1px solid var(--rule);
    background: var(--bg-warm);
  }
  .newsletter-inner { max-width: 640px; margin: 0 auto; text-align: center; }
  .newsletter-eyebrow {
    font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
    color: var(--ink-faint); font-weight: 600; margin-bottom: 14px;
  }
  .newsletter-title {
    font-family: 'Fraunces', serif; font-weight: 300; font-size: 26px;
    color: var(--ink); line-height: 1.25; margin-bottom: 12px;
    font-variation-settings: "opsz" 36, "SOFT" 60; letter-spacing: -0.01em;
  }
  .newsletter-title em { font-style: italic; color: var(--matcha); }
  .newsletter-sub {
    font-family: 'Karla', sans-serif; font-size: 13px; line-height: 1.55;
    color: var(--ink-soft); margin-bottom: 24px;
  }
  .newsletter-form {
    display: flex; gap: 12px; align-items: stretch;
    justify-content: center; flex-wrap: wrap;
  }
  .newsletter-form input[type="email"] {
    flex: 1 1 280px; min-width: 220px;
    background: transparent; border: none; border-bottom: 1px solid var(--rule);
    padding: 10px 0; font-family: 'Fraunces', serif; font-weight: 300;
    font-size: 16px; color: var(--ink); outline: none;
    transition: border-color 0.2s ease; font-variation-settings: "opsz" 18;
  }
  .newsletter-form input[type="email"]::placeholder {
    color: var(--ink-faint); font-style: italic;
  }
  .newsletter-form input[type="email"]:focus { border-bottom-color: var(--matcha); }
  .newsletter-form input[type="email"]:focus-visible {
    outline: 2px solid var(--matcha); outline-offset: 2px; border-radius: 2px;
  }
  .newsletter-submit {
    padding: 12px 26px; background: var(--matcha); color: var(--bg);
    border: none; cursor: pointer; font-family: 'Karla', sans-serif;
    font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
    font-weight: 600; border-radius: 999px;
    transition: all 0.25s ease; white-space: nowrap;
  }
  .newsletter-submit:hover { background: var(--matcha-deep); transform: translateY(-1px); }
  .newsletter-fineprint {
    margin-top: 16px; font-family: 'Karla', sans-serif;
    font-size: 10.5px; letter-spacing: 0.04em; color: var(--ink-faint);
  }
  .visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
  }
  @media (max-width: 560px) {
    .newsletter { padding: 48px 6vw 40px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input[type="email"] { text-align: center; flex-basis: auto; }
    .newsletter-submit { width: 100%; }
  }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 880px) {
    .specimen-grid {
      grid-template-columns: 1fr;
      grid-template-areas:
        "header"
        "score"
        "radar"
        "notes";
      gap: 36px;
    }
    .specimen-score {
      align-items: flex-start;
      text-align: left;
    }
    .combined-overall { align-items: flex-start; }
    .dual-scores { align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero { padding: 60px 6vw 40px; }
  }

  @media (max-width: 560px) {
    .leader-grid { grid-template-columns: 1fr 1fr; }
    .specimen { padding: 56px 0; }
    .sample-code { font-size: 80px; }
  }

  /* Subtle entrance animation */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .specimen, .leader-cell, .hero-title, .meta-item {
    animation: fadeUp 0.6s ease-out backwards;
  }

  /* Cross-report follow-up annotation — applied after-the-fact when later reports revisit predictions */
  .prediction-note {
    display: inline-block;
    margin-left: 4px;
    font-family: 'Karla', sans-serif;
    font-size: 11px;
    font-style: italic;
    letter-spacing: 0.02em;
    color: var(--ink-faint);
    text-transform: none;
  }
  .prediction-note a {
    color: var(--matcha);
    text-decoration: none;
    border-bottom: 1px dotted var(--matcha);
    transition: border-bottom-style 0.18s ease;
  }
  .prediction-note a:hover,
  .prediction-note a:focus-visible { border-bottom-style: solid; }

