@font-face { font-family: "Inter"; src: url("/fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  /* ======================================================================================================
     Design tokens. Three layers, so a brand change is one place:
       1. brand    the brand kit's raw values (docs/brand on agents/brand, frontend/assets/brand/tokens.css)
       2. semantic what the UI uses (surface, text, accent, series, type, space, radius)
       3. legacy   old names kept as aliases for landing.css, hitlist.css and older rules
     Rule from the brand kit: --lore is never a data colour; --series-* are never brand UI.
     ====================================================================================================== */
  /* 1. brand */
  --ink: #101218; --sleeve: #181b23; --sleeve-2: #1f232d; --groove: #2a2f3b; --paper: #f4f1ea; --fog: #a0a0aa; --dust: #7d7d88;
  --lore: #f25ae6; --on-lore: #101218; --lore-deep: #a01a96; --lore-glow: rgba(242, 90, 230, .35);
  --paper-light: #f7f3ec; --ink-text: #101218; --fog-light: #6f6b78;
  --fw-display: 820; --track-display: -0.035em; --track-label: 0.12em;

  /* 2. semantic */
  --bg: var(--ink);                 /* page */
  --surface-1: var(--sleeve);       /* panels / cards */
  --surface-2: var(--sleeve-2);     /* tiles inside a panel, chips, inputs */
  --line: var(--groove);            /* hairlines, card borders */
  --scrim: rgba(16, 18, 24, .92);   /* tooltip / overlay backing */
  --text: var(--paper);             /* primary ink: 15.3:1 on surface-1 */
  --text-2: var(--fog);             /* secondary ink: 6.6:1 on surface-1, 6.1:1 on surface-2 */
  --accent: var(--lore);            /* primary action, links, focus */
  --text-on-accent: var(--on-lore);
  --accent-2: var(--lore);          /* links */
  --good: #8fd694; --bad: #ff7a7a;
  --deep: #c896ff;                  /* Deep tier marker */
  --star: #f0c85a;                  /* saved / starred */
  --text-on-series: #101218;        /* label inside a series fill: >= 4.5:1 on all 8 series colours */
  /* Categorical series in a fixed order, validated with the dataviz validator on surface-1 (adjacent CVD dE >= 10.1,
     normal-vision dE >= 19.4, all >= 3:1). Never cycled: a 9th category folds into --series-other. */
  --series-1: #e76624; --series-2: #338ced; --series-3: #00a888; --series-4: #d28e05;
  --series-5: #e24d8b; --series-6: #8aae27; --series-7: #9887ef; --series-8: #eb6263;
  --series-other: #6b6f7a;
  --seq: var(--series-1);           /* single-hue sequential (heatmap, map) */
  /* type: 12px is the floor for any text */
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fs-xs: 12px; --fs-sm: 13.5px; --fs-body: 16px; --fs-lead: 19px; --fs-h3: 17px; --fs-h2: 24px;
  --fs-h1: clamp(34px, 6vw, 60px); --fs-stat: 30px;
  /* spacing rhythm (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 22px; --sp-6: 32px; --sp-7: 48px;
  /* radii */
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-pill: 999px;
  --tap: 44px;                      /* comfortable touch target; 24px is the WCAG 2.2 AA floor */

  /* 3. legacy aliases */
  --panel: var(--surface-1); --panel2: var(--surface-2); --fg: var(--text); --muted: var(--text-2); --accent2: var(--accent-2);
  --c0: var(--series-1); --c1: var(--series-2); --c2: var(--series-3); --c3: var(--series-4);
  --c4: var(--series-5); --c5: var(--series-6); --c6: var(--series-7); --c7: var(--series-8);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: var(--fs-body)/1.5 var(--font); }
a { color: var(--accent-2); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1040px; margin: 0 auto; padding: var(--sp-5) 20px 80px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1040px; margin: 0 auto; }
header.top .brand { display: inline-flex; align-items: center; min-height: 32px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
header.top nav a, footer.foot a { display: inline-flex; align-items: center; min-height: 32px; }
header.top nav a { color: var(--text-2); margin-left: 18px; text-decoration: none; font-size: 14px; }
h1 { font-size: var(--fs-h1); line-height: 1.04; margin: var(--sp-3) 0 var(--sp-4); font-weight: var(--fw-display); letter-spacing: var(--track-display); }
h2 { font-size: var(--fs-h2); line-height: 1.2; margin: 0 0 var(--sp-1); letter-spacing: -.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; margin: 0 0 var(--sp-2); }
p.lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 680px; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-sm); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--tap); background: var(--accent); color: var(--text-on-accent); font-weight: 700; padding: 11px 22px; border-radius: var(--r-pill); border: 0; cursor: pointer; font-size: var(--fs-body); line-height: 1.2; text-decoration: none; text-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--text-2); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.panel { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-5); }
section.block { margin-top: var(--sp-5); scroll-margin-top: 64px; }
section.block > .head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
section.block > .head .muted.small { max-width: 72ch; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
/* label voice from the brand kit: system mono, uppercase, wide tracking */
.label, .kick { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2); }

/* landing */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 14px 56px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 34px 20px; text-align: center; background: var(--panel); transition: border-color .15s; }
.drop.over { border-color: var(--accent); }
.drop input { display: none; }
.progress { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.err { color: var(--bad); margin-top: 10px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* report */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.tile .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.tile .l { color: var(--muted); font-size: 13px; }
.tile.txt .v { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; font-size: 12px; color: var(--muted); }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list td { padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: top; }
table.list td.n { color: var(--muted); width: 28px; text-align: right; }
table.list td.r { text-align: right; color: var(--muted); white-space: nowrap; }
.toggle { display: inline-flex; background: var(--panel2); border-radius: 99px; padding: 3px; }
.toggle button { background: none; border: 0; color: var(--muted); padding: 5px 12px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 13px; }
.toggle button.on { background: var(--fg); color: var(--bg); }
svg text { fill: var(--muted); font: 12px Inter, sans-serif; }
svg .lab { fill: var(--fg); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.scene { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.scene .pct { font-size: 28px; font-weight: 800; }
.rec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.rec .name { font-weight: 700; font-size: 17px; }
.rec .start { margin-top: 6px; font-size: 14px; }
.rec .start a { font-weight: 600; }
.lead.persona { font-size: 19px; max-width: 46ch; margin-top: -6px; }
.paywall { position: relative; margin-top: 26px; display: grid; }
.paywall > * { grid-area: 1 / 1; }
.paywall .blur { filter: blur(7px); opacity: .45; pointer-events: none; user-select: none; }
.paywall .cta { display: grid; place-items: center; padding: 10px 0; position: relative; z-index: 1; }
.paywall .cta .panel { text-align: center; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.price { font-size: 40px; font-weight: 800; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--panel2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
footer.foot { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 18px; color: var(--muted); font-size: 13px; }
footer.foot a { color: var(--muted); margin-right: 14px; }
.legal h2 { margin-top: 28px; font-size: 20px; }
.legal { max-width: 760px; }
body.share { display: grid; place-items: center; min-height: 100vh; text-align: center; }
body.share img.card { max-width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.mailform { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mailform input[type=email] { flex: 1 1 220px; min-width: 0; background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 15px; }
.mailform .btn { padding: 10px 18px; font-size: 15px; }
.ok { color: var(--accent); }
.mailform[hidden] { display: none; }

/* Deep tier */
.deep .tag { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); margin-bottom: 2px; }
.eras-bar { display: flex; height: 38px; border-radius: 8px; overflow: hidden; }
.eras-bar div { display: flex; align-items: center; justify-content: center; min-width: 0; }
.eras-bar span { font-size: 12px; font-weight: 700; color: #101218; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.era { background: var(--panel2); border-radius: 10px; padding: 14px 16px; }
.era h3 { margin: 4px 0 8px; font-size: 19px; }
ul.facts { margin: 8px 0 0; padding-left: 18px; } ul.facts li { margin: 4px 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; margin: 14px 0; }
.plan { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan.best { border-color: var(--deep); }
.plan .price { font-size: 30px; }
.plan ul { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); flex: 1; }
.paywall .cta .panel.wide { max-width: 620px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
@media print {
  body.print-poster * { visibility: hidden; }
  body.print-poster .poster, body.print-poster .poster * { visibility: visible; }
  body.print-poster .poster { position: absolute; inset: 0; }
  body.print-poster .poster svg { max-width: none !important; width: 100%; }
}

/* Story (free-preview reveal, landing sample). Type is sized in container units so it fits any frame. */
.story { position: relative; container-type: size; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; background: var(--ink); color: var(--paper);
  user-select: none; -webkit-user-select: none; touch-action: manipulation; outline: none; --fg-s: var(--paper); --fg-s2: var(--fog); --bg-s: var(--ink); }
/* Two card faces, ink and paper; the chrome (bars, close, hint) follows the face it sits on. */
.story:has(.card.paper) { --fg-s: var(--ink-text); --fg-s2: var(--fog-light); --bg-s: var(--paper); color: var(--ink-text); }
.story .bars { position: absolute; top: 3cqh; left: 4cqw; right: 4cqw; display: flex; gap: 1.2cqw; z-index: 3; }
.story .bars i { flex: 1; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--fg-s) 22%, transparent); overflow: hidden; }
.story .bars b { display: block; height: 100%; width: 0; background: var(--fg-s); }
.story.paused .bars b { animation-play-state: paused !important; }
@keyframes story-fill { from { width: 0 } to { width: 100% } }
.story .x { position: absolute; top: 5cqh; right: 3cqw; z-index: 4; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--fg-s) 25%, transparent); border-radius: 50%;
  background: transparent; color: var(--fg-s); font-size: 26px; line-height: 1; cursor: pointer; }
.story .stage, .story .card { position: absolute; inset: 0; }
.story .card { overflow: hidden; display: flex; align-items: center; padding: 17cqh 0 8cqh; background: var(--ink); color: var(--paper); }
.story .card.paper { background: var(--paper); color: var(--ink-text); }
/* chart-sheet dateline: double rule over a hairline, mono caps */
.story .dateline { position: absolute; top: 10.5cqh; left: 8cqw; right: 8cqw; z-index: 2; display: flex; justify-content: space-between; margin: 0; padding: 1.2cqh 0;
  border-top: 3px double currentColor; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  font: 600 max(11px, 3.1cqw)/1 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-s2); }
.story .groove { position: absolute; width: 120cqw; height: 120cqw; right: -62cqw; bottom: -58cqw; z-index: 1; color: currentColor; pointer-events: none; }
.story .card:has(.locked) .groove { opacity: .35; }   /* the list runs low on this card: keep the record behind it quiet */
.story .groove .arc { stroke: var(--lore); stroke-width: 6; stroke-linecap: round; stroke-dasharray: var(--p) 100; animation: arc 1.2s cubic-bezier(.2,.8,.2,1) both; }
.story .card.paper .groove .arc { stroke: var(--lore-deep); }
@keyframes arc { from { stroke-dasharray: var(--p0) 100; } }
.story .sc { position: relative; z-index: 2; padding: 0 8cqw; width: 100%; max-height: 100%; }
.story .kick { font: 600 max(12px, 3.4cqw)/1.2 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--fg-s2); margin: 0 0 3cqh; display: flex; align-items: center; gap: 1.5cqw; }
.story .card.ink .kick { color: var(--lore); }
.story .big { font-size: 10cqw; line-height: 1.02; letter-spacing: var(--track-display); margin: 0; font-weight: var(--fw-display); overflow-wrap: anywhere; }
.story .huge { font-size: 21cqw; line-height: .95; letter-spacing: -.05em; margin: 0; font-weight: var(--fw-display); font-variant-numeric: tabular-nums; }
.story .unit { font: 600 max(12px, 4cqw)/1 var(--font-mono); letter-spacing: var(--track-label); text-transform: uppercase; margin: 2cqh 0 0; color: var(--fg-s2); }
.story .sub { font-size: 5cqw; font-weight: 500; margin: 4cqh 0 0; color: var(--fg-s2); line-height: 1.3; }
.story .card.ink .sub { color: var(--paper); opacity: .85; }
.story .num { font-variant-numeric: tabular-nums; }
/* the "still to see" card reads like a chart: big tabular ranks, hairline rows */
.story .locked { list-style: none; padding: 0; margin: 0; display: grid; }
.story .locked li { display: grid; grid-template-columns: 11cqw 1fr; align-items: baseline; font-size: 4.6cqw; font-weight: 600; line-height: 1.2; padding: 1.6cqh 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.story .locked .rk { font-size: 6.4cqw; font-weight: var(--fw-display); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.story .acts { display: flex; flex-direction: column; align-items: flex-start; gap: 2.5cqh; margin-top: 5cqh; }
.story .sbtn { background: var(--lore); color: var(--on-lore); border: 0; border-radius: 999px; padding: 3.4cqw 7cqw; min-height: 44px; font: 800 5.2cqw/1 var(--font); cursor: pointer; }
.story .slink { background: none; border: 0; color: inherit; font: 700 4.4cqw/1 var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 1.5cqh 0; min-height: 44px; }
.story .hint { position: absolute; bottom: 2.5cqh; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 99px; background: var(--bg-s); font: 600 max(11px, 3cqw)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-s2); margin: 0; z-index: 3; pointer-events: none; }
/* entry: each line rises in, staggered */
.story .sc > *, .story .locked li { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.story .sc > :nth-child(2) { animation-delay: .12s; } .story .sc > :nth-child(3) { animation-delay: .5s; } .story .sc > :nth-child(4) { animation-delay: .8s; }
.story .locked li:nth-child(1) { animation-delay: .3s; } .story .locked li:nth-child(2) { animation-delay: .55s; } .story .locked li:nth-child(3) { animation-delay: .8s; }
.story .locked li:nth-child(4) { animation-delay: 1.05s; } .story .locked li:nth-child(5) { animation-delay: 1.3s; } .story .locked li:nth-child(6) { animation-delay: 1.55s; }
@keyframes rise { from { opacity: 0; transform: translateY(5cqh) scale(.97); } to { opacity: 1; transform: none; } }
.story .eq { display: flex; align-items: flex-end; gap: 2cqw; height: 14cqh; margin-top: 6cqh; }
.story .eq i { width: 5cqw; height: 100%; background: currentColor; border-radius: 1cqw; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; }
.story .eq i:nth-child(2n) { animation-duration: .8s; } .story .eq i:nth-child(3n) { animation-duration: 1.4s; animation-delay: -.4s; }
.story .eq i:nth-child(4n) { animation-delay: -.7s; }
@keyframes eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.story.paused * { animation-play-state: paused !important; }
.story-overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(8,9,12,.88); backdrop-filter: blur(6px); animation: fade .25s both; }
.story-overlay .story { width: min(100vw, calc(min(100dvh, 900px) * 9 / 16)); height: min(100dvh, 900px); }
@media (max-width: 560px) { .story-overlay .story { border-radius: 0; } }
@keyframes fade { from { opacity: 0; } }
body.story-open { overflow: hidden; }
.play { display: inline-flex; align-items: center; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  .story *, .story-overlay, .reveal, .reveal * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Landing hero + sample */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.phone { position: relative; justify-self: center; width: min(310px, 76vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 8px; background: #050608; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px #2a2f3b; }
.phone .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--fg); color: var(--bg); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.phone .story { border-radius: 26px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 30px; } }
.inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
@media (max-width: 860px) { .inside { grid-template-columns: 1fr; } }
.inside .panel h3 { margin-bottom: 4px; } .inside .panel p { margin: 0 0 14px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.seen { opacity: 1; transform: none; }
.minibar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; background: var(--panel2); }
.minibar div { width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.seen .minibar div { width: var(--w); }
.seen .minibar div:nth-child(2) { transition-delay: .15s; } .seen .minibar div:nth-child(3) { transition-delay: .3s; }
.seen .minibar div:nth-child(4) { transition-delay: .45s; } .seen .minibar div:nth-child(5) { transition-delay: .6s; }
.minieras { display: grid; gap: 8px; }
.minieras div { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--panel2); border-left: 4px solid var(--col); opacity: 0; transform: translateX(-14px); transition: all .6s cubic-bezier(.2,.8,.2,1); }
.minieras b { font-size: 15px; } .minieras span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.seen .minieras div { opacity: 1; transform: none; }
.seen .minieras div:nth-child(2) { transition-delay: .2s; } .seen .minieras div:nth-child(3) { transition-delay: .4s; } .seen .minieras div:nth-child(4) { transition-delay: .6s; }
.minirecs { display: flex; flex-wrap: wrap; gap: 8px; }
.minirecs span { background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 14px; font-weight: 600; opacity: 0; transform: scale(.8); transition: all .45s cubic-bezier(.3,1.4,.5,1); }
.seen .minirecs span { opacity: 1; transform: none; }
.seen .minirecs span:nth-child(2) { transition-delay: 0.2s; }
.seen .minirecs span:nth-child(3) { transition-delay: 0.3s; }
.seen .minirecs span:nth-child(4) { transition-delay: 0.4s; }
.seen .minirecs span:nth-child(5) { transition-delay: 0.5s; }
.seen .minirecs span:nth-child(6) { transition-delay: 0.6s; }
.seen .minirecs span:nth-child(7) { transition-delay: 0.7s; }
.seen .minirecs span:nth-child(8) { transition-delay: 0.8s; }
.seen .minirecs span:nth-child(9) { transition-delay: 0.9s; }
@media (max-width: 480px) {
  header.top { padding: 14px 20px; }
  header.top .brand { white-space: nowrap; font-size: 14px; }
  header.top nav a { margin-left: 12px; font-size: 13px; }
  header.top nav a[href="#how"] { display: none; }
}
.story.end .hint { display: none; }

/* ---------- insights (personality, galaxy, map, moments, seasons, #1s, to-do) ---------- */
/* Sticky jump nav. The bar is solid and full-bleed (::before reaches the window edges): a fading gradient let cards
   and field particles show through its lower third while scrolling. The pills scroll sideways inside .jump-in, so
   the backing isn't clipped by that scroller. */
.jump { position: sticky; top: 0; z-index: 5; margin-top: 10px; }
.jump::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump-in { display: flex; gap: 8px; padding: 10px 0; }
body.report-page { overflow-x: clip; }   /* the full-bleed backing must not add a sideways scroll where scrollbars take width */
.jump a { font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); transition: background-color .15s, border-color .15s, color .15s; }
.jump a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.jump a:hover { border-color: var(--text-2); }
.jump a:focus-visible { outline-offset: -2px; }   /* inside the pill: the strip clips anything outside it */
.archetype { text-align: center; margin: 4px 0 18px; }
.arch { font-size: clamp(30px, 5.4vw, 52px); font-weight: 900; letter-spacing: -.02em; line-height: 1.05;
  background: linear-gradient(90deg, var(--accent), #ff78a0, var(--deep), var(--accent-2)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.radar { width: 100%; max-width: 380px; display: block; margin: 0 auto; overflow: visible; }
.radar .ring { fill: none; stroke: var(--line); }
.radar text { fill: var(--muted); font-size: 12.5px; font-weight: 700; }
.radar .shape { fill: color-mix(in srgb, var(--c0) 35%, transparent); stroke: var(--c0); stroke-width: 2.5; transform-origin: 160px 150px; }
.radar .dot { fill: var(--fg); }
.rv .radar .shape { transform: scale(0); }
.in .radar .shape { transform: scale(1); transition: transform 1.1s cubic-bezier(.2,1.4,.4,1); }
.trait { margin-bottom: 12px; }
.trait .tl { display: flex; justify-content: space-between; }
.trait .tl span { font-weight: 800; color: var(--accent); }
.tb { height: 8px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 4px 0; }
.tb i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--accent-2), var(--deep)); }
.rv .tb i { width: 0; }
.in .tb i { width: var(--w); transition: width 1.2s cubic-bezier(.2,.8,.2,1) .2s; }
.galaxy { position: relative; height: min(70vh, 560px); border-radius: var(--r); overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #1d2340 0%, #0b0d14 70%); }
.galaxy canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.galaxy canvas:active { cursor: grabbing; }
.gtip { position: absolute; left: 14px; bottom: 14px; background: rgba(16,18,24,.85); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; backdrop-filter: blur(6px); }
.gleg button { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.gleg button:not(.on) { opacity: .4; }
.worldmap svg { width: 100%; display: block; }
.worldmap path { fill: var(--panel2); stroke: var(--bg); stroke-width: .5; transition: fill-opacity .3s; }
.worldmap path.on { fill: var(--c0); }
.worldmap path:hover { stroke: var(--fg); }
.statrow { margin-top: 16px; }
.stat { background: var(--panel2); border-radius: var(--r); padding: 16px; transition: transform .2s; }
.stat .big { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.stat .big small { font-size: 16px; color: var(--muted); }
.stat.glow { background: linear-gradient(140deg, color-mix(in srgb, var(--deep) 22%, var(--panel2)), var(--panel2)); }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .seasons { grid-template-columns: 1fr 1fr; } }
.season { border-radius: var(--r); padding: 18px; min-height: 180px; position: relative; overflow: hidden; transition: transform .2s; }
.season .ico { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.season h3 { font-size: 20px; margin-top: 4px; }
.season.s0 { background: linear-gradient(160deg, #2a4b7c, #1a2236); }
.season.s1 { background: linear-gradient(160deg, #3d7a4a, #1b2a20); }
.season.s2 { background: linear-gradient(160deg, #c8762a, #3a2414); }
.season.s3 { background: linear-gradient(160deg, #8a3a2a, #2a1714); }
.timeline { list-style: none; padding: 0 0 0 22px; margin: 22px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 16px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--panel); }
.timeline .when { font: 600 var(--fs-xs)/1.4 var(--font-mono); color: var(--text-2); text-transform: uppercase; letter-spacing: var(--track-label); }
.ones { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.one { flex: 0 0 210px; scroll-snap-align: start; background: var(--surface-2); border-top: 2px solid var(--line); border-radius: var(--r); padding: 16px; transition: transform .2s; }
.one .yr { font-size: 38px; font-weight: var(--fw-display); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; color: var(--text); line-height: 1; margin-bottom: 8px; }
.one .nm { font-weight: 800; font-size: 18px; line-height: 1.2; }
.one .nm.sm { font-size: 15px; }
.days { display: flex; gap: 8px; align-items: flex-end; height: 180px; }
.day b { display: block; font-family: var(--font); font-size: var(--fs-xs); font-weight: 600; color: var(--text); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.day { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; font-size: 12px; color: var(--muted); }
.day i { display: block; height: var(--h); border-radius: 6px 6px 2px 2px; margin-bottom: 6px; }
.rv .day i { height: 0; }
.in .day i { height: var(--h); transition: height 1s cubic-bezier(.2,.8,.2,1); }
.todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.todo li { display: flex; gap: 12px; align-items: center; background: var(--panel2); border-radius: 12px; padding: 12px 14px; }
.todo label { display: flex; gap: 12px; align-items: flex-start; flex: 1; cursor: pointer; }
.todo label > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.todo input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--good); }
.todo input:checked ~ span b { text-decoration: line-through; color: var(--muted); }
.todo .ti { font-size: 20px; color: var(--accent); width: 22px; text-align: center; }
.listen { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; margin-left: 8px; font-size: var(--fs-xs); }
.listen a { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; }
.listen a:hover { border-color: var(--accent); }
.todo .listen { margin: 4px 0 0; }
.ava { width: var(--s); height: var(--s); margin: 0; flex: 0 0 var(--s); position: relative; }
.ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; border: 2px solid var(--line); }
.ava figcaption { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); z-index: 3; width: max-content; max-width: 220px; font-size: var(--fs-xs); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; display: none; }
.ava:hover figcaption, .ava:focus-within figcaption { display: block; }
.ava.ini { border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: calc(var(--s) * .42); }
.withava { display: flex; gap: 12px; align-items: center; }
.rec .withava { margin-bottom: 8px; }
.rec .bio { color: var(--muted); line-height: 1.3; }
.rec, .tilt { transition: transform .2s ease-out; transform-style: preserve-3d; }

/* entrance + chart growth */
section.block.rv { opacity: 0; transform: translateY(26px); }
section.block.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
section.block.shown { transition: none; }   /* shown at once by a jump (report.js wireJump) */
.rv svg rect { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.in svg rect { transform: none; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.rv svg path[stroke] { stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.in svg path[stroke] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease; }
@media (prefers-reduced-motion: reduce) { .arch { animation: none; } section.block.rv { opacity: 1; transform: none; } }

/* share + export */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.wrapbtns .btn { padding: 9px 14px; font-size: 14px; }
.slides { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.slide { width: 120px; height: auto; aspect-ratio: 9 / 16; border-radius: 10px; scroll-snap-align: start; cursor: pointer; flex: 0 0 auto; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.sharecard { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-top: 12px; }
.linkbox { flex: 1; min-width: 180px; background: var(--panel2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soc { font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 99px; background: var(--panel2); color: var(--fg); text-decoration: none; border: 1px solid var(--line); }
.soc:hover { border-color: var(--accent); }
.refcode { margin-top: 14px; padding: 14px; border-radius: 12px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.code { font-family: ui-monospace, Menlo, monospace; font-weight: 800; letter-spacing: .18em; color: var(--accent); }
.refcode .code { font-size: 30px; }
.refbanner { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); border: 1px solid var(--accent); border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px; }
.refnote { color: var(--good); font-weight: 700; }
body.share .offer { margin-top: 22px; text-align: center; }
@media print {
  header.top, .jump, .shareblock, .btn, .paywall .cta, .galaxy-block, .listen, .mailform { display: none !important; }
  html, body { background: #fff; color: #111; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .panel, .tile, .stat, .season, .one, .todo li, .shows li, .rec { background: #fff !important; color: #111; border: 1px solid #ccc; box-shadow: none; }
  .tile, .stat, .season, .one, .todo li, .shows li, .rec, .radar, .worldmap, svg { break-inside: avoid; }
  .tile .v, .stat .big, h1, h2, h3, b { color: #111; }
  section.block.rv { opacity: 1; transform: none; }
  .rv svg rect, .rv .radar .shape { transform: none; }
  .rv .tb i { width: var(--w); }
  .rv .day i { height: var(--h); }
  .rv svg path[stroke] { stroke-dashoffset: 0; }
  .tb { background: #e6e6e6; }
  .worldmap path { fill: #e6e6e6; stroke: #fff; }
  .worldmap path.on { fill: var(--c0); }
  .radar .ring { stroke: #ccc; }
  .radar .dot { fill: #111; }
  .toggle { display: none !important; }
  .ones { flex-wrap: wrap; overflow: visible; }
  .ones .one { flex: 0 0 calc(33.3% - 10px); }
  svg text, svg .lab { fill: #444; }
  .chip { background: #f2f2f2; border-color: #ddd; color: #444; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr 1fr; }
  .rec { padding: 10px; font-size: 12px; }
  a { color: #1a5fb4; }
  details.credits::details-content { content-visibility: visible; }   /* credits print even if the list is closed */
  details.credits summary { display: none; }
}
.shows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.shows li { display: grid; grid-template-columns: auto 110px 1fr; gap: 14px; align-items: center; background: var(--panel2); border-radius: 12px; padding: 10px 14px; }
.shows .when { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 560px) {
  .shows li { grid-template-columns: auto 1fr; row-gap: 4px; }
  .shows li > .ava { grid-row: span 2; align-self: start; }
  .shows .when { grid-column: 2; flex-direction: row; gap: 8px; align-items: baseline; }
  .shows .when b { color: var(--accent); font-size: 14px; white-space: nowrap; }
}
.badge { font-size: var(--fs-xs); font-weight: 800; padding: 2px 8px; border-radius: 99px; margin-left: 6px; }
.badge.yours { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--good); }
.badge.recommended { background: color-mix(in srgb, var(--deep) 22%, transparent); color: var(--deep); }
.radar.mini { max-width: 220px; margin-top: 8px; }
.orb { height: 160px; perspective: 500px; display: grid; place-items: center; margin-top: 6px; }
.orb .spin { position: relative; width: 1px; height: 1px; transform-style: preserve-3d; animation: orbspin 14s linear infinite; }
.orb i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c);
  transform: translate3d(var(--x), var(--y), var(--z)); }
@keyframes orbspin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .orb .spin { animation: none; } }
.miniones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.miniones span { background: var(--panel2); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; }
.miniones b { color: var(--accent); font-size: 18px; }
.shareblock .grid2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 760px) { .shareblock .grid2 { grid-template-columns: minmax(0, 1fr); } }

/* phones: tighter panels so cards keep their text width; long titles wrap instead of pushing past the card */
.todo li, .todo label, .todo label > span:last-child { min-width: 0; }
.todo label > span:last-child { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .panel { padding: 16px; }
  .todo li { padding: 12px 10px; gap: 8px; }
  .todo label { gap: 8px; }
  .todo li > .ava { display: none; }   /* the card text needs the width; photos still show in the picks */
}

.credits { margin-top: 10px; }
.credits summary { cursor: pointer; color: var(--muted); min-height: 32px; display: flex; align-items: center; }
.credits li { padding: 3px 0; }
.credits li a { display: inline-block; min-height: 24px; }
.credits ul { columns: 2 240px; padding-left: 18px; margin: 8px 0 0; overflow-wrap: anywhere; }
.ava:focus { outline: none; }

/* ---------- artist explorer: lanes of tiles, filters, saved list, detail sheet ---------- */
.xbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.xq { flex: 1 1 220px; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 99px; color: var(--fg); font: inherit; padding: 10px 16px; }
.xpick { padding: 10px 18px; font-size: 15px; }
.xchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px; scrollbar-width: none; }
.xc { flex: 0 0 auto; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.xc.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lane { margin-top: 18px; }
.lane .lh { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 8px; }
.lane h3 { margin: 0; }
.lane .tag { vertical-align: middle; }
.linkbtn { background: none; border: 0; color: var(--accent-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; padding: 4px 0; min-height: 32px; }
.lane .row { display: flex; flex-wrap: nowrap; margin-top: 0; align-items: stretch; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px; scrollbar-width: thin; }
.lane.open .row { flex-wrap: wrap; overflow: visible; }
.xt { flex: 0 0 128px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px 12px; color: var(--fg); font: inherit; cursor: pointer; position: relative; transition: transform .15s, border-color .15s; }
.xt:hover, .xt:focus-visible { transform: translateY(-3px); border-color: var(--accent-2); }
.xt .ava { margin-bottom: 4px; }
.xt .xn { font-weight: 800; font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xt .xg { font-size: 12px; color: var(--muted); }
.xt .xp { display: none; }
.xt.starred::after { content: '★'; position: absolute; top: 6px; right: 9px; color: var(--star); font-size: 15px; }
.xsheet { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--fg); padding: 18px; width: min(480px, calc(100vw - 24px)); max-height: 85vh; overflow: auto; }
.xsheet::backdrop { background: rgba(5, 6, 10, .7); }
.xsheet .rec { border: 0; padding: 0; background: none; }
.xsheet .xactions { display: flex; gap: 10px; margin-top: 16px; }
.xsheet .xactions .btn { padding: 10px 18px; font-size: 15px; }
@media (max-width: 560px) {
  .xsheet { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; }
  .xt { flex-basis: 112px; }
}
@media print {
  .xbar, .xchips, .linkbtn, .xsheet, .lane.saved { display: none !important; }
  .lane .row { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .xt { flex: 0 0 calc(16.6% - 6px); padding: 6px 4px; border: 1px solid #ccc; background: #fff !important; break-inside: avoid; }
  .xt .ava { --s: 36px !important; }
  .xt .xn { font-size: 10px; color: #111; }
  .xt .xg, .xt .xp { display: block; font-size: 9px; color: #555; }
}
.lane .tag { display: inline-block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--deep); border: 1px solid currentColor; border-radius: 99px; padding: 1px 6px; }
.xsheet .ava figcaption { display: none !important; }   /* the sheet prints the credit as a line instead */
.xsheet .credit { margin-top: 10px; }
.jump-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.jump-in::-webkit-scrollbar { display: none; }
.jump a { flex: 0 0 auto; }

/* ---------------------------------------------------------------- particle field, scroll chapters, HUD */
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
canvas.field { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
body > header.top, body > main, body > .wrap { position: relative; z-index: 1; }
html.nofield body { background: radial-gradient(1200px 700px at 75% 20%, #1d2230 0%, var(--bg) 60%) fixed; }
.landing .hero { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: calc(100vh - 70px); position: relative; }
.hero-copy { max-width: 600px; text-shadow: 0 2px 24px rgba(16,18,24,.9); }
.kicker { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.6); opacity: .6; } }
.scrollhint { position: absolute; right: 0; bottom: 18px; display: flex; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; }
.scrollhint i { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scrollhint i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: sweep 2.2s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes sweep { 60%, 100% { transform: translateX(100%); } }
.chapter { min-height: 100vh; display: flex; align-items: center; }
.chapter.right { justify-content: flex-end; }
.chapter.split { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.chcard { max-width: 440px; padding: 26px 28px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--r); background: rgba(16,18,24,.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transform: translateY(48px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.chcard.seen { opacity: 1; transform: none; }
.chcard h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; margin: 8px 0 12px; }
.chn { color: var(--accent); margin: 0; }
.hud { position: fixed; left: 20px; bottom: 16px; z-index: 3; display: flex; gap: 10px; align-items: center; color: var(--muted); pointer-events: none; }
.hud-n { color: var(--accent); }
.hud-bar { width: 90px; height: 1px; background: var(--line); }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.landing #inside { padding-top: 10vh; }
@media (max-width: 760px) {
  .chapter, .chapter.right { min-height: 100vh; justify-content: flex-start; align-items: flex-start; padding-top: 9vh; }
  .chcard { padding: 18px 20px; background: rgba(16,18,24,.4); }
  .chapter.split { grid-template-columns: 1fr; gap: 46vh; }
  /* hero copy sits low, the shape floats in the empty space above it (data-lift on the hero); a dark halo on each
     glyph keeps text readable when stray particles drift behind it */
  .landing .hero { justify-content: flex-end; padding-bottom: 56px; min-height: calc(100svh - 70px); }
  .hero-copy, .chcard { text-shadow: 0 0 4px var(--bg), 0 0 12px var(--bg), 0 2px 24px rgba(16,18,24,.9); }
  .landing .hero .lead { font-size: 17px; }
  .hud { left: 12px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(16,18,24,.85); }
  .hud-bar { width: 60px; }
  .report-page .hud, .report-page.fielded .hud { display: none; }   /* it would sit on top of report text */
}
@media (max-width: 760px) and (max-height: 700px) { .landing .hero .lead { font-size: 15.5px; } .landing .hero h1 { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .chcard { opacity: 1; transform: none; transition: none; } .kicker .dot, .scrollhint i::after { animation: none; } }
@media print { canvas.field, .hud, .scrollhint { display: none !important; } .chapter, .landing .hero { min-height: 0; } .chcard { opacity: 1; transform: none; background: none; border-color: #ccc; } }
/* report: the field sits behind, dimmer, so long reading stays easy */
.report-page canvas.field { opacity: .55; }
.report-page .rhero { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.report-page .hud { opacity: 0; transition: opacity .6s; }
.report-page.fielded .hud { opacity: 1; }
/* The HUD only fits in the left gutter when the gutter is wider than it (column 1000px + HUD ~230px each side). */
@media (max-width: 1519px) { .report-page .hud, .report-page.fielded .hud { display: none; } }
/* Particles drift behind the hero copy: a dark halo on each glyph keeps it readable on any frame. */
.report-page .rhero h1, .report-page .rhero .lead, .report-page .rhero p { text-shadow: 0 0 4px var(--bg), 0 0 14px var(--bg); }
.report-page .rhero .play { align-self: flex-start; }

/* decades chart */
.dchart { position: relative; }
.dchart .gl { stroke: var(--line); stroke-width: 1; opacity: .7; }
/* Charts are drawn at the column's real width (charts.js fit()); these keep them from ever overflowing. */
.fit { width: 100%; min-width: 0; }
.fit > svg, .fit .dchart > svg, .dchart svg { display: block; max-width: 100%; height: auto; }
.axcap { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 6px 0; color: var(--text-2); }
.venns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--sp-5); }
.weekgrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--sp-5); align-items: end; }
.weeksound { display: grid; gap: var(--sp-3); }
.weeksound h3 { margin: 4px 0 0; }
@media (max-width: 640px) { .weekgrid { grid-template-columns: minmax(0, 1fr); } .weeksound { grid-template-columns: 1fr 1fr; } }
.seqleg { align-items: center; gap: 8px; }
.seqleg i { width: 120px; height: 10px; border-radius: 99px; margin: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--seq) 12%, var(--surface-2)), var(--seq)); }
h3.sub, .grid2.sub { margin-top: var(--sp-6); }
.dchart .base { stroke: var(--line); stroke-width: 1; }
.dchart .hit { fill: transparent; }
.dchart .dc path { opacity: .78; transition: opacity .15s; }
.dchart .dc.home path, .dchart .dc.on path, .dchart .dc:hover path { opacity: 1; }
.dchart .dc .val, .dchart .dc .hl { fill: var(--fg); font-weight: 600; }
.dchart .lk { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linejoin: round; }
.dchart .lkd { fill: var(--c1); stroke: var(--panel); stroke-width: 2; }
.dchart .lkl { fill: var(--muted); }
.ctip { position: absolute; pointer-events: none; background: rgba(16,18,24,.92); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; white-space: nowrap; color: var(--fg); }
@media print { .dchart .dc path { opacity: 1; } .ctip { display: none; } }

/* richer charts (viz.js) */
.dchart .sd { stroke: var(--panel); stroke-width: 1.5; opacity: .82; transition: opacity .15s; }
.dchart [data-tip].on .sd, .dchart [data-tip]:hover .sd { opacity: 1; stroke: var(--fg); }
.dchart [data-fam].off { opacity: .08; pointer-events: none; }
.dchart .sl { fill: var(--fg); font-weight: 600; font-size: 11.5px; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; }
.dchart .qd, .dchart .axt { fill: var(--muted); font-size: var(--fs-xs); }
.dchart .tmr { opacity: .85; transition: opacity .15s; }
.dchart [data-tip].on .tmr, .dchart [data-tip]:hover .tmr { opacity: 1; }
.dchart .tmn { fill: #15161c; font-weight: 700; font-size: 13px; }
.dchart .tmv { fill: #15161c; font-size: 12px; opacity: .8; }
.dchart .rv { opacity: .88; stroke: var(--panel); stroke-width: 1; }
.dchart .rvl { fill: #15161c; font-weight: 700; font-size: 12px; pointer-events: none; }
.dchart .xh { stroke: var(--fg); stroke-width: 1; opacity: 0; }
.dchart [data-tip].on .xh, .dchart [data-tip]:hover .xh { opacity: .5; }
.viz3d { position: relative; height: min(64vh, 520px); border-radius: var(--r); overflow: hidden; background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.04), transparent 70%); }
.viz3d.ring { height: min(70vh, 560px); }   /* the ring is round: a taller canvas lets it fill the column */
.viz3d canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.viz3d canvas:active { cursor: grabbing; }
.viz3d .gtip { left: 14px; bottom: 34px; }
.axisnote { position: absolute; right: 12px; bottom: 10px; color: var(--muted); opacity: .7; pointer-events: none; }
.race svg { width: 100%; display: block; overflow: hidden; }
.race .rr { transition: opacity .3s; }
.race .rn { fill: var(--fg); font-size: 12.5px; dominant-baseline: middle; }
.race .rv { fill: var(--muted); font-size: 12px; dominant-baseline: middle; }
.race .ry { fill: var(--fg); opacity: .14; font-size: clamp(44px, 9vw, 88px); font-weight: 800; }
.racebar { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.racebar input { flex: 1; accent-color: var(--accent); height: 32px; }
.venn .va { fill: var(--c0); fill-opacity: .38; stroke: var(--c0); stroke-width: 2; }
.venn .vb { fill: var(--c1); fill-opacity: .38; stroke: var(--c1); stroke-width: 2; }
.venn .vn { fill: var(--fg); font-weight: 700; font-size: 16px; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; }
.vnames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.vnames .vh { font-weight: 600; margin-bottom: 4px; }
@media (max-width: 640px) { .vnames { grid-template-columns: 1fr; } .viz3d { height: 46vh; } .viz3d.ring { height: min(46vh, 92vw); } }
@media print { .viz3d, .race-block, .bubbles-block { display: none !important; } }

/* crate digging: deep cuts, B-sides, record sleeves */
.lead-s { font-size: 16px; margin: 0 0 14px; max-width: 760px; }
.mixl { fill: #101218; font-size: 13px; font-weight: 700; }
.meter { display: inline-block; position: relative; width: 120px; height: 10px; margin-top: 6px; vertical-align: middle;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c0) 55%, transparent), color-mix(in srgb, var(--c1) 55%, transparent)); border-radius: 99px; }
.meter i { position: absolute; top: -3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--fg); border: 3px solid var(--panel); }
.side { color: var(--text-2); margin-top: 2px; }
.crate { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 22px; margin-top: 14px; }
.sleeve { margin: 0; position: relative; }
.sleeve .cover { position: relative; z-index: 1; aspect-ratio: 1; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
  background: linear-gradient(150deg, hsl(var(--h) 45% 42%), hsl(calc(var(--h) + 40) 50% 22%)); box-shadow: 0 10px 24px rgba(0,0,0,.45); overflow: hidden; }
.sleeve .cover b { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.sleeve .cover span { font-size: 12px; color: rgba(255,255,255,.75); }
.sleeve .disc { position: absolute; z-index: 0; top: 4%; left: 4%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 30deg, rgba(255,255,255,0) 0 10%, rgba(255,255,255,.16) 14%, rgba(255,255,255,0) 20% 60%, rgba(255,255,255,.12) 64%, rgba(255,255,255,0) 70%),
    radial-gradient(circle, #0c0c0f 0 2%, hsl(var(--h) 65% 58%) 2.5% 15%, #0c0c0f 16% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #2c2c34 0 1.5px, #1a1a20 1.5px 3px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 8px 20px rgba(0,0,0,.5);
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.sleeve.lp.seen .disc { transform: translateX(26%) rotate(140deg); }
.sleeve.lp:hover .disc { transform: translateX(40%) rotate(260deg); }
.sleeve:not(.lp) .cover { filter: saturate(.35); }
.sleeve figcaption { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); }
.sleeve.lp .badge { color: var(--text); border-color: var(--text-2); }   /* brand magenta stays on actions, not data */
@media (max-width: 760px) { .crate { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 26px; } .sleeve.lp.seen .disc { transform: translateX(14%) rotate(140deg); } }
@media (prefers-reduced-motion: reduce) { .sleeve .disc { transition: none; } }

/* copy a list as a playlist */
.plbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: var(--r); }
.plbar .pl-name { font-weight: 700; font-size: 14px; margin-right: auto; }
.plbar .btn { padding: 8px 14px; font-size: 14px; }
.plbar .pl-msg { flex-basis: 100%; }
.plbar .pl-msg:empty { display: none; }
@media print { .plbar { display: none; } }

/* liner notes and chart captions (Claude-written, paid reports) */
.liner { border-left: 3px solid var(--lore); }   /* brand accent, not a series colour */
.liner .notes { font-size: 19px; line-height: 1.6; font-style: italic; max-width: 760px; margin: 8px 0 0; }
.cap { font-size: 15px; font-style: italic; color: var(--fg); margin: 0 0 12px; opacity: .9; }

/* Every day since day one (viz.js calendarSection) */
.calchart { position: relative; margin-top: 8px; touch-action: pan-y; }
.calfacts { margin-top: 14px; }
.calfacts p { margin: 4px 0 0; }
.cal-block .legend span { display: inline-flex; align-items: center; }
.cal-block .legend span i { margin-right: 3px; }
/* Print: dark-on-white greys, whole charts and cards kept together, sections free to break so pages fill. */
@media print {
  :root { --muted: #555; --text-2: #555; --fg: #111; --text: #111; --line: #ccc; }
  section.block { break-inside: auto; }
  h2, h3, .head { break-after: avoid; }
  .fit, .dchart, .era, .scene, .plan { break-inside: avoid; }
  .arch { background: none; color: #111; -webkit-text-fill-color: #111; animation: none; }
  :focus, :focus-visible { outline: none !important; }
  .noprint, .scrollnote { display: none !important; }
  .muted { color: #555 !important; }
  * { text-shadow: none !important; }
  .era, .scene, .weeksound .stat, .plan { background: #fff !important; color: #111; border: 1px solid #ccc; }
  .era h3, .scene h3 { color: #111; }
}

/* Help chat (helpchat.js): a corner button and a small panel; under the story overlay (z 50), over everything else. */
.hchat { position: fixed; right: 16px; bottom: 16px; z-index: 40; font-family: var(--font); }
.hchat-open { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-1); color: var(--text); font: 700 15px/1 var(--font); cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.hchat-open:hover { border-color: var(--accent); }
.hchat-open svg { color: var(--accent); }
.hchat.on .hchat-open { display: none; }
.hchat-panel { display: flex; flex-direction: column; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 32px));
  background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 12px 48px rgba(0, 0, 0, .5); overflow: hidden; }
.hchat-panel[hidden] { display: none; }
.hchat-panel header { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.hchat-x { width: 36px; height: 36px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); font-size: 24px; line-height: 1; cursor: pointer; }
.hchat-x:hover { background: var(--surface-2); color: var(--text); }
.hchat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.hchat-msg { margin: 0; max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.hchat-msg.bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 4px; }
.hchat-msg.me { align-self: flex-end; background: var(--accent); color: var(--text-on-accent); border-bottom-right-radius: 4px; }
.hchat-msg.err { border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); }
.hchat-msg a { color: var(--accent); }
.hchat-msg.wait { display: flex; gap: 5px; padding: 14px 16px; }
.hchat-msg.wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: hchat-dot 1s infinite ease-in-out; }
.hchat-msg.wait span:nth-child(2) { animation-delay: .15s; }
.hchat-msg.wait span:nth-child(3) { animation-delay: .3s; }
@keyframes hchat-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.hchat-starters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.hchat-starters:empty { display: none; }
.hchat .chip { font-size: 13.5px; padding: 7px 12px; color: var(--text); background: var(--surface-2); cursor: pointer; }
.hchat .chip:hover { border-color: var(--accent); }
.hchat-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.hchat-form[hidden] { display: none; }
.hchat-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: 15px/1.4 var(--font); }
.hchat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.hchat-note { margin: 0; padding: 0 14px 10px; font-size: var(--fs-xs); color: var(--text-2); }
.hchat-note a { color: var(--text-2); }
@media (max-width: 520px) {
  .hchat { right: 10px; bottom: 12px; }
  .hchat-open { width: var(--tap); padding: 0; justify-content: center; }   /* icon only: clears the sample page's bottom bar */
  .hchat-open span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hchat.on { left: 0; right: 0; bottom: 0; }
  .hchat-panel { width: 100vw; height: min(86dvh, 640px); border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
@media (prefers-reduced-motion: reduce) { .hchat-msg.wait span { animation: none; } }
