@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root { --cream:#f5f0e6; --ink:#203a32; --red:#a93241; --green:#456d60; --gold:#c99542; --muted:#6c7770; --line:#d8d4c8; --card:#fffdf7; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; color:var(--ink); background:var(--cream); font-family:'DM Sans',sans-serif; }
button,select { font:inherit; }
.topbar { height:66px; padding:0 clamp(20px,5vw,84px); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); position:relative; z-index:5; }
.brand { font-size:12px; font-weight:700; color:var(--ink); text-decoration:none; letter-spacing:.08em; }
.brand-dot { font-size:23px; color:var(--red); vertical-align:-3px; margin-right:6px; }
.right-head { display:flex; gap:22px; align-items:center; }
.top-small { font-size:10px; letter-spacing:.13em; color:var(--muted); }
.data-pill { border:1px solid #b8c9b8; border-radius:20px; padding:7px 11px; color:#386351; background:#e6eee3; font-weight:700; font-size:10px; letter-spacing:.06em; }
.data-pill.demo { background:#fae9d1; color:#86561f; border-color:#dfc08f; }
.hero { min-height: min(790px, 94svh); padding:clamp(70px,10vh,140px) 24px 100px; display:flex; align-items:center; flex-direction:column; justify-content:center; text-align:center; position:relative; overflow:hidden; }
.eyebrow,.chapter-count { font-size:11px; font-weight:700; letter-spacing:.18em; color:var(--red); }
.hero h1 { font-family:'Playfair Display',Georgia,serif; font-weight:600; font-size:clamp(54px,8.4vw,125px); line-height:.99; letter-spacing:-.063em; margin:22px 0 23px; z-index:1; }
.hero h1 em { color:var(--red); font-weight:500; }
.deck { font-size:clamp(16px,1.45vw,20px); line-height:1.6; position:relative; z-index:1; }
.deck span { color:var(--muted); }
.hero-record { width:360px; height:360px; border-radius:50%; position:absolute; right:-175px; top:11%; background: repeating-radial-gradient(circle at center,#25362f 0 6px,#192d27 7px 9px,#34463b 10px 12px); box-shadow:0 15px 60px #1d3d2933; display:flex; align-items:center; justify-content:center; animation:spin 22s linear infinite; opacity:.85; }
.record-inner { width:100px; height:100px; border-radius:50%; background:var(--red); display:flex; align-items:center; justify-content:center; font-weight:700; color:#ffeeda; font-size:14px; letter-spacing:.08em; }
@keyframes spin { to { transform:rotate(360deg); } }
.begin { margin-top:55px; color:var(--ink); font-weight:700; text-decoration:none; font-size:11px; letter-spacing:.11em; border-bottom:1px solid var(--ink); padding-bottom:12px; }
.begin span { margin-left:10px; }
.story-grid { display:grid; grid-template-columns:minmax(300px,42%) minmax(450px,58%); border-top:1px solid var(--line); }
.chapters { padding-left:clamp(22px,6vw,105px); }
.story-step { min-height:95svh; padding:90px clamp(26px,4.8vw,85px) 90px 0; display:flex; align-items:center; opacity:.38; transition:opacity .45s; }
.story-step.active { opacity:1; }
.chapter-content { max-width:440px; }
.story-step h2 { font-family:'Playfair Display',Georgia,serif; font-size:clamp(48px,5vw,81px); line-height:1.08; letter-spacing:-.045em; margin:25px 0; font-weight:600; }
.story-step h2 em { color:var(--red); font-weight:500; }
.story-step p { font-size:16px; line-height:1.8; color:#445d53; }
.story-step p strong { color:var(--ink); }
.story-step .pull { border-left:3px solid var(--red); padding:3px 0 3px 18px; font-style:italic; }
.story-step .action-tip { font-size:13px; color:var(--red); margin-top:32px; }
.next-step { margin-top:22px; color:var(--red); background:none; border:none; border-bottom:1px solid var(--red); padding:0 0 9px; cursor:pointer; font-size:13px; font-weight:700; }
.next-step span { margin-left:12px; }
.visual-column { min-width:0; background:#eee9dd; border-left:1px solid var(--line); }
.visual-sticky { position:sticky; top:clamp(24px,8vh,90px); padding:clamp(19px,2.8vw,42px); background:var(--card); border:1px solid var(--line); border-radius:17px; margin:clamp(12px,2.3vw,35px); box-shadow:0 14px 45px #28382c10; }
.viz-topline { display:flex; justify-content:space-between; font-size:10px; letter-spacing:.13em; color:var(--red); font-weight:700; }
.live-glyph { font-size:22px; line-height:10px; color:var(--red); }
.visual-sticky h3 { font-family:'Playfair Display',Georgia,serif; font-size:clamp(25px,2.5vw,38px); letter-spacing:-.025em; margin:15px 0 4px; font-weight:600; }
.visual-subtitle { margin:0; font-size:13px; color:var(--muted); }
.viz-container { position:relative; margin-top:20px; }
#chart { display:block; width:100%; height:auto; overflow:visible; }
.bar-row { cursor:default; }
.bar-row.clickable { cursor:pointer; }
.bar-row .bar-title { font-weight:700; fill:var(--ink); font-size:14px; }
.bar-row .bar-detail { fill:#7b867f; font-size:11px; }
.bar-row .bar-count { fill:var(--ink); font-size:16px; font-weight:700; }
.chart-axis { stroke:#deded5; }
.artist-legend { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0 0 17px; }
.artist-legend[hidden] { display:none; }
.legend-button { background:#f3f1e9; border:1px solid transparent; padding:9px; border-radius:8px; cursor:pointer; display:flex; align-items:center; gap:8px; text-align:left; color:var(--ink); min-width:0; }
.legend-button:hover,.legend-button.selected { border-color:#c5a9a9; background:#fbefed; }
.legend-dot { width:9px; height:9px; border-radius:50%; flex-shrink:0; }
.legend-text { font-size:11px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
.legend-number { font-size:11px; font-weight:700; }
.viz-footer { border-top:1px solid var(--line); padding:13px 0; display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:10px; }
.chapter-nav { display:flex; gap:8px; }
.chapter-nav button { cursor:pointer; flex:1; border:1px solid var(--line); background:#f6f4ed; color:var(--muted); border-radius:7px; padding:11px 5px; font-size:11px; font-weight:700; }
.chapter-nav button.active { background:var(--ink); color:white; border-color:var(--ink); }
.chapter-nav span { font-size:10px; opacity:.7; margin-right:4px; }
.tooltip { position:absolute; pointer-events:none; display:none; z-index:10; background:var(--ink); color:white; border-radius:8px; padding:9px 13px; font-size:12px; line-height:1.4; max-width:250px; box-shadow:0 9px 24px #0003; }
.select-label { display:block; color:var(--red); font-size:10px; font-weight:700; letter-spacing:.13em; margin-top:35px; }
.song-select { width:100%; max-width:400px; border:1px solid #abb7a7; background:#fffdf8; color:var(--ink); padding:13px; border-radius:7px; margin-top:10px; font-size:14px; }
.closing { font-family:'Playfair Display',Georgia,serif; font-style:italic; font-size:20px!important; color:var(--ink)!important; margin-top:40px; }
.site-footer { background:var(--ink); color:#faf4e8; text-align:center; padding:120px 20px 100px; }
.footer-star { color:#f1cf87; font-size:44px; }
.site-footer h2 { font-family:'Playfair Display',Georgia,serif; font-size:clamp(45px,6vw,80px); line-height:1.12; font-weight:500; }
.site-footer p { max-width:500px; margin:0 auto 23px; line-height:1.8; }
.site-footer .attribution { font-size:11px; color:#b4bdb4; margin-top:50px; }
.site-footer a { color:#eed99d; }
@media(max-width:1000px){ .story-grid{grid-template-columns:42% 58%;}.chapters{padding-left:30px}.story-step{padding-right:20px}.story-step h2{font-size:clamp(40px,5vw,62px)}.visual-sticky{padding:20px;margin:10px}.visual-subtitle{font-size:11px} }
@media(max-width:720px){ .top-small{display:none}.hero-record{width:250px;height:250px;right:-160px;opacity:.27}.hero{min-height:82svh}.story-grid{display:flex;flex-direction:column}.visual-column{order:0;position:sticky;top:0;z-index:3;border-left:0;box-shadow:0 8px 23px #0002}.visual-sticky{position:static;margin:0;border-radius:0;padding:13px 17px}.visual-sticky h3{font-size:24px;margin-top:6px}.viz-container{margin-top:2px}#chart{max-height:38svh}.visual-subtitle{display:none}.viz-footer{padding:6px 0}.chapter-nav button{padding:9px 4px;font-size:10px}.artist-legend{gap:3px}.legend-button{padding:5px}.legend-text{font-size:10px}.chapters{order:1;padding:0 22px}.story-step{min-height:72svh;padding:50px 0 60px;align-items:center}.story-step h2{font-size:52px}.story-step p{font-size:14px}.site-footer{padding:85px 20px}.hero h1{font-size:clamp(45px,10vw,76px)} }
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-record{animation:none}*,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important}}

/* CHAPTERS 4–7 */
.story-step { scroll-margin-top:10vh; }
.hero-note { position:absolute; bottom:24px; font-size:10px; letter-spacing:.08em; color:var(--muted); }
.chapter-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.chapter-nav button { min-width:0; line-height:1.35; padding:11px 4px; }
.scene-controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; border-top:1px solid var(--line); padding:13px 0 12px; }
.scene-controls[hidden] { display:none!important; }
.control-caption { color:var(--muted); letter-spacing:.09em; font-size:10px; font-weight:700; white-space:nowrap; }
.toggle-group { display:flex; gap:5px; flex-wrap:wrap; }
.toggle-group button, .play-button { cursor:pointer; background:#f3f0e7; border:1px solid #d7d2c6; color:var(--ink); border-radius:7px; padding:9px 13px; font-size:11px; font-weight:700; }
.toggle-group button.active { background:var(--ink); border-color:var(--ink); color:#fffdf7; }
.toggle-group button:hover, .play-button:hover { border-color:var(--red); }
.toggle-group button:focus-visible, .play-button:focus-visible, select:focus-visible, input:focus-visible, .chapter-nav button:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
.small-select { background:var(--card); color:var(--ink); border:1px solid #b5b9ac; border-radius:8px; font-size:12px; padding:10px; min-width:180px; max-width:100%; }
.control-subnote { font-size:11px; line-height:1.4; color:var(--muted); flex:1 1 100%; margin:0; }
#race-controls { gap:8px; display:block; }
.race-topline { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.play-button { min-width:83px; }
.play-button:disabled { opacity:.45; cursor:not-allowed; }
#race-slider { width:100%; cursor:pointer; accent-color:var(--red); }
#race-slider:disabled { cursor:not-allowed; opacity:.4; }
.range-labels { display:flex; justify-content:space-between; color:var(--muted); font-size:10px; }
#verdict-controls { align-items:flex-start; flex-direction:column; }
.toggle-group.three { width:100%; }
.toggle-group.three button { flex:1; }
.viz-footer { align-items:center; }
#viz-footnote { text-align:right; }
.hour-wedge { cursor:crosshair; }
.clock-hour { fill:var(--muted); font-family:'DM Sans',sans-serif; font-size:13px; font-weight:700; }
.clock-center-overline { fill:var(--muted); font-family:'DM Sans',sans-serif; font-size:12px; letter-spacing:.06em; font-weight:700; }
.clock-center-number { fill:var(--ink); font-family:'DM Sans',sans-serif; font-size:34px; font-weight:700; }
.clock-center-sub { fill:var(--muted); font-size:15px; }
.empty-msg { fill:var(--red); font-family:'DM Sans',sans-serif; font-size:15px; }
.center-label { fill:var(--ink); }
.center-label.name { font:500 18px 'Playfair Display', Georgia, serif; }
.center-label.count { font:700 31px 'DM Sans', sans-serif; }
.center-label.secondary { font:500 15px 'DM Sans',sans-serif; }
.verdict-kicker { fill:var(--muted); font:700 11px 'DM Sans',sans-serif; letter-spacing:.05em; }
.verdict-plays { fill:var(--ink); font:700 43px 'DM Sans',sans-serif; }
.verdict-plays-caption { fill:var(--muted); font:500 12px 'DM Sans',sans-serif; }
.verdict-title { fill:var(--ink); font:600 21px 'Playfair Display',Georgia,serif; }
.verdict-detail { fill:var(--muted); font:500 12px 'DM Sans',sans-serif; }
.verdict-explore { fill:var(--red); font:700 10px 'DM Sans',sans-serif; letter-spacing:.08em; }
#chart path { shape-rendering:geometricPrecision; }

@media(max-width:1000px) {
  .chapter-nav button { font-size:10px; }
  .control-caption { font-size:9px; }
  .scene-controls { gap:7px; }
}
@media(max-width:720px) {
  .visual-column { max-height:53svh; overflow-y:auto; scrollbar-width:thin; }
  .visual-sticky { padding-bottom:10px; }
  .viz-footer { font-size:9px; }
  .scene-controls { padding:6px 0; }
  .chapter-nav { display:flex; overflow-x:auto; gap:5px; padding-bottom:5px; scrollbar-width:thin; }
  .chapter-nav button { flex:0 0 99px; padding:7px 4px; }
  .artist-legend { max-height:90px; overflow-y:auto; }
  .small-select { padding:6px; font-size:11px; }
  .toggle-group button, .play-button { padding:7px; }
  .story-step { scroll-margin-top:54svh; }
}
/* Keep large cover-version lists inside the sticky visual rather than expanding the page. */
.artist-legend { max-height:144px; overflow-y:auto; scrollbar-width:thin; padding-right:3px; }
