/* =====================================================================
   Cue · the style
   The video creator: Unbounded for headlines, Manrope for reading,
   JetBrains Mono for timecodes, on a warm white with ink and one hot
   pink; sun yellow only for paid partnerships and the caption you're on.
   Signature pieces: the player (.player: chapters on the scrubber,
   captions you can size, speed, and a paid-partnership notice at the
   start), the transcript that follows along (.transcript: the line
   you're hearing is lit, click any line to jump, search inside it),
   and the video wall (.vgrid: series filter, sorting, CC and partnership
   badges on every thumbnail).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun); color: var(--sun-ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { padding: 0.1em 0.35em; border-radius: 5px; background: var(--well); }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.025em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
/* the lit phrase: a mention, as if someone's been tagged into the thread */
.h1 em, .h2 em { font-style: normal; color: var(--hot); position: relative; white-space: nowrap; }
/* the lit phrase sits in a caption box with a playhead under it */
.h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 0.08em; border-radius: 1em; background: linear-gradient(90deg, var(--hot) var(--play, 100%), color-mix(in srgb, var(--ink) 15%, transparent) var(--play, 100%)); }
html:not(.calm) .h1 em::after { animation: cu-play 2.4s 300ms var(--ease) both; }
@property --play { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes cu-play { from { --play: 0%; } }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-label)/1.2 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 0; height: 0; border-left: 8px solid var(--hot); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.tag b { font-weight: 700; color: var(--hot); }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--hot); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.prose a:hover, .link:hover { color: var(--hot-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: 600 15.5px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-hot { background: var(--hot); color: var(--on-hot); }
.btn-hot:hover { background: var(--hot-2); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); }
.btn-line:hover { border-color: var(--hot); color: var(--hot); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- top line ---------- */
.topline { background: var(--ink); color: var(--paper); }
.topline .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-block: 7px; text-align: center; font: 500 14px/1.4 var(--body); }
.topline b { padding: 2px 8px; border-radius: 5px; background: var(--sun); color: var(--sun-ink); font: 600 11px/1.3 var(--mono); letter-spacing: 0.04em; }
.topline a { font-weight: 600; color: var(--paper); text-underline-offset: 3px; }
@media (max-width: 560px) { .topline b { display: none; } }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { position: relative; display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
/* the mark: a speech bubble with a reply tucked under it */
.brand-mark { position: relative; flex: none; width: 36px; height: 26px; border-radius: 8px; background: var(--hot); }
.brand-mark::before { content: ""; position: absolute; left: 14px; top: 7px; border-left: 10px solid var(--on-hot); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; bottom: -6px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--hot) 60%, color-mix(in srgb, var(--ink) 25%, transparent) 60%); }
.brand-word { font: 700 20px/1 var(--display); letter-spacing: -0.02em; }
.brand-sub { display: block; font: 500 11.5px/1.2 var(--mono); color: var(--muted); margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 9px 12px; border-radius: var(--r-s); text-decoration: none; font: 500 15px/1 var(--body); color: var(--ink-2); transition: color var(--d-fast), background var(--d-fast); }
.nav-links a:hover { color: var(--ink); background: var(--well); }
.nav-links a[aria-current="page"] { color: var(--hot); background: var(--hot-soft); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 14px var(--gutter) 24px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); animation: cu-open var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 26px/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.site-menu a::after { content: attr(data-no); font: 500 12px/1 var(--mono); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--hot); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 600 15.5px/1 var(--body); color: var(--on-hot); }
.site-menu .btn::after { display: none; }
@keyframes cu-open { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 1100px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 640px) { .nav .nav-cta { display: none; } }
@media (min-width: 1101px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(60px, 8.5vw, 110px); }
.section.alt { background: var(--well); }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: clamp(28px, 4vw, 52px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.grid-2.lean { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid-2.lean > .section-head { position: sticky; top: 100px; }
.grid-2.side { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean, .grid-2.side { grid-template-columns: minmax(0, 1fr); } .grid-2.lean > .section-head { position: static; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(30px, 5vw, 68px) clamp(54px, 8vw, 100px); overflow: clip; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 14.5px/1.4 var(--body); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 8px; align-items: baseline; }
.hero-facts li b { font: 600 20px/1 var(--mono); color: var(--ink); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 560px) { .h1 em { white-space: normal; } }

/* ---------- thumbnails: drawn, never stock ---------- */
.thumb { --h: 330; position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: radial-gradient(60% 80% at 75% 30%, hsl(var(--h) 85% 62%), transparent 70%), radial-gradient(70% 90% at 15% 90%, hsl(calc(var(--h) + 40) 70% 45%), transparent 70%), hsl(calc(var(--h) - 20) 40% 14%); isolation: isolate; }
.thumb::before { content: ""; position: absolute; z-index: -1; left: 10%; bottom: 0; width: 34%; height: 62%; border-radius: 50% 50% 0 0; background: hsl(var(--h) 30% 8% / 0.85); box-shadow: 0 -38px 0 -18px hsl(var(--h) 30% 8% / 0.85); }
.thumb::after { content: attr(data-word); position: absolute; right: 8%; top: 14%; max-width: 52%; font: 800 clamp(14px, 1.6vw, 22px)/1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); text-align: right; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; border-radius: 5px; background: rgba(6, 5, 9, 0.85); color: #fff; font: 600 11.5px/1 var(--mono); }
.thumb .badges { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px; background: rgba(6, 5, 9, 0.85); color: #fff; font: 700 10.5px/1 var(--body); letter-spacing: 0.04em; }
.badge.paid { background: var(--sun); color: var(--sun-ink); }
.thumb .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--seen, 0%); background: var(--hot); }

/* ---------- the player (signature) ---------- */
.player { --cap-size: 20px; position: relative; display: grid; border-radius: var(--r-l); overflow: hidden; background: var(--screen); color: #fff; box-shadow: var(--shadow-lift); min-width: 0; }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; isolation: isolate; background: radial-gradient(60% 80% at calc(60% + var(--pan, 0) * 30%) 30%, hsl(var(--h, 330) 85% 60%), transparent 70%), radial-gradient(70% 90% at 15% 90%, hsl(calc(var(--h, 330) + 40) 70% 42%), transparent 70%), hsl(calc(var(--h, 330) - 20) 40% 12%); }
.screen::before { content: ""; position: absolute; z-index: -1; left: calc(12% + var(--pan, 0) * 8%); bottom: 0; width: 30%; height: 64%; border-radius: 50% 50% 0 0; background: hsl(var(--h, 330) 30% 7% / 0.9); box-shadow: 0 -46px 0 -20px hsl(var(--h, 330) 30% 7% / 0.9); transition: left 300ms linear; }
.screen .scene-title { position: absolute; right: 7%; top: 12%; max-width: 50%; text-align: right; font: 800 clamp(18px, 2.6vw, 34px)/1.05 var(--display); letter-spacing: -0.02em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.bigplay { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: var(--hot); color: var(--on-hot); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform var(--d) var(--snap), opacity var(--d); }
.bigplay::before { content: ""; margin-left: 6px; border-left: 22px solid currentColor; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.bigplay:hover { transform: scale(1.06); }
.player[data-playing] .bigplay { opacity: 0; pointer-events: none; transform: scale(0.8); }
.paid-note { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 8px; background: var(--sun); color: var(--sun-ink); font: 700 13px/1.2 var(--body); transition: opacity var(--d); }
.paid-note[data-fade] { opacity: 0; }
.caption { position: absolute; left: 50%; bottom: 6%; z-index: 1; max-width: 84%; transform: translateX(-50%); padding: 0.18em 0.5em; border-radius: 4px; background: rgba(6, 5, 9, 0.82); color: #fff; font: 600 var(--cap-size)/1.35 var(--body); text-align: center; text-wrap: balance; }
.caption:empty { display: none; }
.player[data-captions="off"] .caption { display: none; }
.controls { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; padding: 10px 14px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.3)), var(--screen); }
.controls button, .controls select { min-height: 36px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; font: 600 13px/1 var(--body); }
.controls button:hover, .controls select:hover { border-color: rgba(255, 255, 255, 0.5); }
.controls button[aria-pressed="true"] { background: #fff; color: #0f0e13; }
.controls :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.controls .pp { width: 40px; padding: 0; display: grid; place-items: center; }
.controls .pp::before { content: ""; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.player[data-playing] .controls .pp::before { width: 10px; height: 13px; margin: 0; border: 0; background: linear-gradient(90deg, currentColor 35%, transparent 35% 65%, currentColor 65%); }
.controls .time { font: 600 13px/1 var(--mono); color: #d2cfd8; white-space: nowrap; }
.controls .opts { display: flex; gap: 6px; align-items: center; }
.controls select option { color: #0f0e13; }
.scrub-wrap { position: relative; grid-column: 1 / -1; order: -1; height: 22px; }
.scrub { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
.scrub::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--hot) var(--p, 0%), rgba(255, 255, 255, 0.22) var(--p, 0%)); }
.scrub::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--hot) var(--p, 0%), rgba(255, 255, 255, 0.22) var(--p, 0%)); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--hot) 50%, transparent); }
.scrub::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; }
.ticks { position: absolute; left: 0; right: 0; top: 8px; height: 6px; pointer-events: none; }
.ticks i { position: absolute; top: 0; width: 3px; height: 6px; background: var(--screen); }
.chapter-now { grid-column: 3; font: 600 13px/1.2 var(--body); color: #d2cfd8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .controls { grid-template-columns: auto auto minmax(0, 1fr); } .controls .opts { grid-column: 1 / -1; flex-wrap: wrap; } .chapter-now { display: none; } }

/* chapters */
.chapters { display: grid; gap: 4px; }
.chapters button { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font: 600 15px/1.3 var(--body); color: var(--ink); }
.chapters button span { font: 600 12.5px/1 var(--mono); color: var(--hot); }
.chapters button:hover { background: var(--well); }
.chapters button[aria-current="true"] { background: var(--hot-soft); }

/* ---------- the transcript (signature) ---------- */
.transcript { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.transcript-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.transcript-head h3 { font: 700 15px/1.2 var(--display); }
.transcript input[type="search"] { width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--ink) 22%, var(--line)); background: var(--paper); }
.transcript input[type="search"]:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.lines { max-height: 340px; overflow-y: auto; display: grid; gap: 2px; overscroll-behavior: contain; scroll-behavior: smooth; padding-right: 4px; }
html.calm .lines { scroll-behavior: auto; }
.lines button { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 7px 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; font: 400 15px/1.5 var(--body); color: var(--ink-2); transition: background var(--d-fast), color var(--d-fast); }
.lines button > span:first-child { font: 600 12px/1.8 var(--mono); color: var(--muted); }
.lines button:hover { background: var(--well); }
.lines button[aria-current="true"] { background: var(--sun); color: var(--sun-ink); }
.lines button[aria-current="true"] > span:first-child { color: var(--sun-ink); }
.lines mark { background: var(--hot-soft); color: var(--ink); border-radius: 3px; box-shadow: 0 0 0 1px var(--hot); }
.lines button[hidden] { display: none; }
.transcript .count { font: 500 13px/1.3 var(--body); color: var(--muted); }

/* ---------- the video wall (signature) ---------- */
.vgrid { display: grid; gap: 16px; min-width: 0; }
.vgrid-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.vwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; }
.vcard { display: grid; gap: 8px; align-content: start; min-width: 0; text-decoration: none; }
.vcard b { font: 700 16px/1.3 var(--display); letter-spacing: -0.01em; }
.vcard:hover b { color: var(--hot); }
.vcard:hover .thumb { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.vcard .thumb { transition: transform var(--d) var(--ease), box-shadow var(--d); }
.vcard small { font: 500 13px/1.3 var(--body); color: var(--muted); }
.vcard[hidden] { display: none; }
.vgrid .none { padding: 16px; border-radius: var(--r-m); background: var(--well); color: var(--muted); }

/* ---------- partnership, tiers, cards, people, facts, notices ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 6px; align-items: start; padding: 14px 16px; border-radius: var(--r-m); background: color-mix(in srgb, var(--sun) 40%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun-ink) 18%, transparent); }
.partner b { font: 700 15px/1.3 var(--body); color: var(--ink); }
.partner p { font-size: 14.5px; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tier { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.tier.pick { box-shadow: var(--shadow-lift), 0 0 0 2px var(--hot); }
.tier .k { font: 600 12px/1.2 var(--mono); color: var(--hot); }
.tier h3 { font: 700 21px/1.2 var(--display); }
.tier .price { font: 800 38px/1 var(--display); letter-spacing: -0.03em; }
.tier .price small { font: 600 14px/1 var(--body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.tier p { font-size: 15px; color: var(--ink-2); }
.tier ul { display: grid; gap: 7px; font-size: 15px; }
.tier li { display: flex; gap: 8px; }
.tier li::before { content: ""; flex: none; width: 0; height: 0; margin-top: 0.45em; border-left: 7px solid var(--hot); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.card .k { font: 600 12px/1.2 var(--mono); color: var(--hot); }
.card h3 { font: 700 19px/1.25 var(--display); }
.card p { color: var(--ink-2); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 20px 18px 20px 0; min-width: 0; overflow-wrap: break-word; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts .k { font: 600 12px/1.2 var(--mono); color: var(--hot); }
.facts b { font: 700 19px/1.25 var(--display); }
.facts p { font-size: 15px; color: var(--ink-2); }
.facts.stack { grid-template-columns: minmax(0, 1fr); }
.facts.stack > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .facts:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 18px; border-radius: var(--r-m); background: var(--hot-soft); font-size: 15.5px; color: var(--ink-2); overflow-wrap: break-word; }
.notice svg { width: 20px; height: 20px; color: var(--hot); margin-top: 2px; }
.notice b { color: var(--ink); }
.side-box { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow-wrap: break-word; }
.side-box h3 { font: 600 12px/1.2 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.side-box ul { display: grid; gap: 8px; font-size: 15px; }
.sidebar { display: grid; gap: 16px; align-content: start; }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.watch-side { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1000px) { .watch { grid-template-columns: minmax(0, 1fr); } }
.vtitle { display: grid; gap: 10px; }
.vtitle h2, .vtitle h1 { font: 700 clamp(22px, 2.4vw, 32px)/1.2 var(--display); letter-spacing: -0.02em; }
.vmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 14px/1.4 var(--body); color: var(--muted); }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.person .face { grid-row: 1 / span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--hot); color: var(--on-hot); font: 800 20px/1 var(--display); }
.person b { font: 700 17px/1.25 var(--display); }
.person .role { font: 600 12px/1.3 var(--mono); color: var(--muted); }
.person p { font-size: 14.5px; color: var(--ink-2); }

/* ---------- closing ---------- */
.close { padding-block: clamp(56px, 8vw, 96px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 28px; align-items: end; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-l); background: #0f0e13; color: #f2f0f5; overflow: hidden; isolation: isolate; }
/* a scrubber with chapter ticks across the bottom, the playhead moving */
.close-card::before { content: ""; position: absolute; z-index: -1; left: clamp(28px, 5vw, 60px); right: clamp(28px, 5vw, 60px); bottom: 22px; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--close-em, #ff8cb0) var(--play, 62%), rgba(255, 255, 255, 0.16) var(--play, 62%)); }
html:not(.calm) .close-card::before { animation: cu-play 9s linear infinite; }
.close-card::after { content: ""; position: absolute; z-index: -1; right: 8%; top: 18%; width: 0; height: 0; border-left: 64px solid var(--close-em, #ff8cb0); border-top: 38px solid transparent; border-bottom: 38px solid transparent; opacity: 0.9; }
.close-card .h2 { color: #fff; }
.close-card .h2 em { color: var(--close-em, #ff8cb0); }
.close-card p { color: #d2cfd8; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #a29eab; }
.close-card .tag b { color: var(--close-em, #ff8cb0); }
.close-card .tag::before { border-left-color: var(--close-em, #ff8cb0); }
.close-card .btn-hot { background: #ffd43b; color: #14131a; }
.close-card .btn-hot:hover { background: #ffe066; }
.close-card :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .close-card { grid-template-columns: minmax(0, 1fr); } .close-card::after { display: none; } }
/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 600 18px/1.35 var(--display); border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--hot), var(--hot)) center / 10px 1.6px no-repeat, linear-gradient(var(--hot), var(--hot)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--hot); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--hot); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }

.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--hot); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--hot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hot) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--hot-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--hot); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 600 17px/1.2 var(--display); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice input:checked + span { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot); background: color-mix(in srgb, var(--hot-soft) 45%, var(--card)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--hot) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--hot); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--hot); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 600 16.5px/1.35 var(--display); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.field input.range { min-height: 0; height: 6px; padding: 0; border: 0; margin: 14px 0 8px; box-shadow: none; background: linear-gradient(90deg, var(--hot) 0 var(--p), var(--line) var(--p) 100%); }


/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }
.form-card, .form-card > *, .form-card .fields > * { min-width: 0; }
.field input, .field textarea, .field select { min-width: 0; max-width: 100%; }
.page-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--hot) 38%, var(--line) 38%); }

@media print { .nav, .foot-switches, .menu-btn, .site-menu, .controls, .bigplay, .close { display: none !important; } body { background: #fff; } .lines { max-height: none; overflow: visible; } }
