/* Storytime Hecklers — main page styles (extends assets/tokens.css; never edit tokens.css). */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); --bar: 58px; }
html { scroll-behavior: auto; overflow-x: hidden; }
body { overflow-x: clip; }   /* clip, never hidden: a hidden body becomes a scroll container and the sticky stage stops sticking */
.nowrap { white-space: nowrap; }
.d-only { display: none; }
@media (min-width: 768px) { .d-only { display: inline; } }

/* ---------- the top bar (the only nav) */
.bar { position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: calc(var(--bar) + var(--sat)); padding: var(--sat) max(18px, var(--sar)) 0 max(18px, var(--sal));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(28,18,32,0); border-bottom: 1px solid transparent; transition: background var(--t-fade) linear, border-color var(--t-fade) linear; }
.bar.is-solid { background: rgba(28,18,32,.85); border-bottom-color: var(--night-3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bar .wm { --wm: 15px; transform: rotate(-1.5deg); }
.bar .wm b { letter-spacing: .06em; }
.bar .wm .tape { padding: .3em .45em .28em; }
.pill { min-height: 44px; min-width: 132px; padding: 0 18px; font-size: .9375rem; }
.pill .pill-date { display: none; }
@media (min-width: 768px) { .bar { padding-inline: 6vw; } .pill .pill-date { display: inline; } }

/* ---------- the track + stage */
.track { position: relative; height: 600vh; height: 600svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--night); contain: paint; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%); }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background-image: var(--grain); background-size: 64px 64px; mix-blend-mode: overlay; opacity: .16; }
canvas#scene, .still canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; }

/* beat copy blocks */
.beat { position: absolute; left: var(--gutter); right: max(20px, var(--sar)); bottom: calc(var(--sab) + 30px); opacity: 0; transform: translateY(18px); will-change: opacity, transform; max-width: 100%; visibility: hidden; }
.beat .kicker { margin: 0 0 14px 2px; }
.beat h2 { color: var(--yellow); margin: 0 0 12px; text-shadow: 0 2px 0 #000, 0 12px 34px rgba(0,0,0,.6); text-wrap: initial; white-space: nowrap; font-size: min(2.75rem, 9.9vw); }   /* 9.9vw: "COMEDIANS WHO WON'T" (9.07em in Anton) fits the 350 px gutter at 390 */
.beat h2 .tw { text-shadow: none; }
.beat p { margin: 0; color: var(--white); max-width: 34ch; text-shadow: 0 1px 2px #000, 0 6px 24px rgba(0,0,0,.7); }
.beat p b { color: var(--yellow); }
.beat .link { display: inline-block; margin-top: 14px; color: var(--white); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; text-shadow: 0 1px 2px #000; }
.beat .link:hover { border-bottom-color: var(--white); }
.beat.is-live { pointer-events: auto; }
@media (min-width: 1024px) { .beat { left: 6vw; right: auto; bottom: 9vh; max-width: min(48vw, 640px); } .beat h2 { font-size: clamp(2.75rem, 1rem + 3.5vw, 4rem); } .beat[data-beat="3"] { max-width: min(40vw, 560px); } }
@media (max-height: 500px) { .beat { max-width: 40vw; bottom: calc(var(--sab) + 16px); } .beat h2 { font-size: 2.125rem; } .beat p { font-size: .9375rem; } }

/* the tagline (beat 0) — anchored by JS to a projected wall point */
.ui .tagline { position: absolute; left: 0; width: 100%; text-align: center; color: var(--white); opacity: 0; padding: 0 20px; text-shadow: 0 1px 2px #000, 0 4px 18px #000; transform: translateY(-50%); pointer-events: none; }
@media (min-width: 1024px) { .ui .tagline { width: auto; transform: translate(-50%, -50%); white-space: nowrap; } }

/* the keep-scrolling cue */
.cue { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 26px); display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; }
.cue .tape { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 8px 12px; }
.cue i { display: block; width: 1px; height: 40px; background: linear-gradient(var(--white), rgba(249,246,242,0)); position: relative; overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; top: -40px; width: 1px; height: 40px; background: var(--yellow); animation: drop 1.6s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes drop { to { top: 40px; } }
html.frozen .cue i::after, html.rm .cue i::after { animation: none; top: 8px; }
@media (max-height: 500px) { .cue { display: none; } }

/* the 4-dot beat marker */
.dots { position: absolute; right: max(14px, var(--sar)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity var(--t-ctl); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grey-2); transition: background var(--t-ctl); }
.dots i.is-on { background: var(--yellow); }
.dots.is-hidden { opacity: 0 !important; }
@media (max-height: 500px) { .dots { display: none; } }

/* the DOM chat panel (beat 3) — placed by a matrix3d from the projected screen corners */
.tv { position: absolute; left: 0; top: 0; width: 360px; height: 270px; transform-origin: 0 0; opacity: 0; background: var(--ink); color: var(--white); overflow: hidden; display: flex; flex-direction: column; border-radius: 2px; box-shadow: 0 0 0 6px rgba(0,0,0,.9), 0 30px 60px rgba(0,0,0,.6), 0 0 50px rgba(253,200,11,.10); will-change: transform, opacity; }
.tv .hd { display: flex; align-items: center; gap: 8px; padding: 2.4% 3.6% 1.6%; border-bottom: 1px solid var(--night-3); flex: 0 0 auto; }
.tv .wm { --wm: 4.4cqw; font-size: var(--tvwm, 15px); }
.tv .live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: var(--body); font-weight: 700; font-size: var(--tvsm, 9px); letter-spacing: .2em; color: var(--yellow); text-transform: uppercase; }
.tv .live::before { content: ""; width: .8em; height: .8em; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .35; } }
html.frozen .tv .live::before, html.rm .tv .live::before { animation: none; }
.tv .feedWrap { flex: 1 1 auto; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%); mask-image: linear-gradient(180deg, transparent 0, #000 12%); }
.tv .feed { position: absolute; left: 3.6%; right: 3.6%; bottom: 2%; display: flex; flex-direction: column; justify-content: flex-end; will-change: transform; }
.tv .msg { margin: 0 0 var(--tvgap, 6px); transform-origin: 0 100%; }
.tv .msg .who { display: block; font-family: var(--body); font-weight: 700; font-size: var(--tvsm, 9px); letter-spacing: .06em; text-transform: uppercase; color: var(--grey); line-height: 1.2; margin-bottom: .15em; }
.tv .msg .say { display: block; font-family: var(--display); font-size: var(--tvln, 20px); line-height: 1.12; letter-spacing: .01em; overflow-wrap: anywhere; }
.tv .msg.yellow .say { color: var(--heckle-a); } .tv .msg.white .say { color: var(--heckle-b); }
.tv .msg.hide { display: none; }
.tv .ft { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 1.6% 3.6% 1.8%; border-top: 1px solid var(--night-3); font-family: var(--body); font-weight: 700; font-size: var(--tvsm, 9px); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.tv .ft svg { width: 2.6em; height: 2.6em; flex: 0 0 auto; }
.tv .ft b { color: var(--white); }
.tv .scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(255,255,255,.028) 0 2px, rgba(0,0,0,0) 2px 5px); }

/* fps overlay */
.fps { position: fixed; left: 8px; bottom: calc(var(--sab) + 8px); z-index: 60; font: 700 12px/1 monospace; color: var(--yellow); background: rgba(0,0,0,.7); padding: 6px 8px; border-radius: 4px; pointer-events: none; }

/* ---------- reduced motion / stills / no-JS */
html.rm .track, html.no-js .track { display: none; }
.stills { display: none; }
html.rm .stills { display: block; }
.still { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--night); }
.still .ui { position: absolute; inset: 0; }
.still .beat { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.still .scrim { opacity: 1; }
.still .ui .tagline { opacity: 1; }
.still .tv { position: relative; opacity: 1; width: min(88vw, 520px); height: auto; aspect-ratio: 4 / 3; margin: calc(var(--bar) + var(--sat) + 24px) auto 0; transform: none; visibility: visible; }
.still .tv .feedWrap { -webkit-mask-image: none; mask-image: none; }
.still .cue { opacity: 1; }
.noscript-frame { padding: calc(var(--bar) + var(--sat) + 24px) var(--gutter) 48px; max-width: 720px; margin: 0 auto; }
.noscript-frame img { width: min(72vw, 320px); margin: 0 0 20px; }
.noscript-frame h1 { color: var(--yellow); }

/* ---------- native sections */
.tape--sm { font-family: var(--body); font-weight: 700; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
.tape--grey { background: var(--grey); color: var(--ink); }
.sections { position: relative; z-index: 1; background: var(--night); }
.section { border-top: 1px solid var(--night-3); }
.section:first-child { border-top: 0; }
.section .kicker.tape { margin-bottom: 18px; }
.section .sub { max-width: 62ch; margin: 0 0 24px; }
.section .sub em { color: var(--grey); }
.bridge { padding-top: 40px; }
@media (min-width: 1024px) { .bridge { padding-top: 64px; } }

/* A — shows */
.shows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--night-3); }
.show { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--night-3); align-items: start; }
.show .h-date { color: var(--white); white-space: nowrap; }
.show .h-date small { display: block; font-family: var(--body); font-size: .8125rem; letter-spacing: .06em; color: var(--grey); margin-top: 6px; text-transform: uppercase; }
.show .h-card { color: var(--yellow); }
.show .h-card.tba { color: var(--grey); }
.show .venue { margin: 6px 0 0; color: var(--white); }
.show .venue a { color: var(--white); }
.show .badges { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.show .badges .tape { --tilt: -1.5deg; } .show .badges .tape:nth-child(even) { --tilt: 1.5deg; }
.show .status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.show .cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.show .cta .btn { width: 100%; }
.show .cta .meta a { color: var(--grey); }
.show.is-past { opacity: .55; }
@media (min-width: 768px) { .show { grid-template-columns: 210px 1fr auto; grid-template-areas: "date main cta" "date badges cta"; column-gap: 24px; } .show .date { grid-area: date; } .show .main { grid-area: main; } .show .badges { grid-area: badges; } .show .cta { grid-area: cta; min-width: 200px; } .show .cta .btn { width: auto; min-width: 200px; } }
.format { display: grid; gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.format li { display: flex; gap: 14px; align-items: flex-start; }
.format svg { width: 32px; height: 32px; flex: 0 0 32px; color: var(--grey); }
.format b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.125rem; color: var(--white); margin-bottom: 2px; }
.format p { margin: 0; color: var(--grey); font-size: .9375rem; }
@media (min-width: 768px) { .format { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* B — lineup */
.cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.guest { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.guest .photo { width: 96px; aspect-ratio: 1; background: var(--night-3); border-radius: var(--r-card); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.guest .photo img { width: 100%; height: 100%; object-fit: cover; }
.guest .photo svg { width: 40px; height: 40px; color: var(--grey); }
.guest .role { margin: 8px 0 8px; }
.guest .tagline { display: block; color: var(--white); font-style: normal; margin-top: 4px; }
.guest .meta a { color: var(--grey); }
.guest.is-empty { border-style: dashed; grid-template-columns: 1fr; }

/* C — story */
.ladder { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 16px; margin: 0 -4px 8px; scrollbar-width: none; }
.ladder::-webkit-scrollbar { display: none; }
.ladder .tape { flex: 0 0 auto; font-family: var(--body); font-weight: 700; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.ladder .tape:nth-child(even) { --tilt: 1.5deg; } .ladder .tape:nth-child(odd) { --tilt: -1.5deg; }
.ladder .arrow { flex: 0 0 auto; color: var(--grey-2); align-self: center; }
@media (min-width: 768px) { .ladder { overflow: visible; flex-wrap: wrap; } }
.twoline { margin: 0 0 24px; color: var(--grey); }
.form { display: grid; gap: 18px; max-width: 640px; }
.field label, .field .label { display: block; margin-bottom: 8px; }
.field .help { display: block; margin-top: 6px; color: var(--grey); font-size: .8125rem; }
.field .err { display: none; margin-top: 6px; color: var(--yellow); font-size: .875rem; font-weight: 700; }
.field.is-bad .err { display: block; }
.field.is-bad .input, .field.is-bad .textarea { border-color: var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.count { text-align: right; color: var(--grey-2); font-size: .8125rem; margin-top: 6px; }
.count.is-near { color: var(--yellow); }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radios input { width: 20px; height: 20px; accent-color: var(--yellow); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-self: start; }
.form .foot { color: var(--grey); font-size: .875rem; margin: 0; }
.form .foot.is-err { color: var(--yellow); font-weight: 700; }
.guest.is-empty p { margin: 10px 0 0; color: var(--grey); }
.done { display: none; }
.done h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2rem; color: var(--yellow); margin: 0 0 12px; letter-spacing: .01em; }
.done p { margin: 0 0 10px; }
.is-done .form { display: none; } .is-done .done { display: block; }
.note-ok { color: var(--yellow); font-weight: 700; }

/* D — watch */
.watch { position: relative; aspect-ratio: 3 / 2; max-width: 900px; background: var(--night-2); border-radius: var(--r-card); overflow: hidden; }
.watch img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.watch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 45% 80% at 30% 0%, rgba(255,176,0,.45), rgba(253,200,11,.12) 45%, rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(28,18,32,.85) 100%); pointer-events: none; }
.watch::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); background-size: 64px 64px; mix-blend-mode: overlay; opacity: .18; pointer-events: none; }
.watch .tape { position: absolute; left: 16px; top: 16px; z-index: 2; font-family: var(--body); font-weight: 700; font-size: .75rem; letter-spacing: .16em; }
.watch .cap { position: absolute; left: 16px; bottom: 14px; z-index: 2; margin: 0; color: var(--grey); font-size: .8125rem; }
.watch .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); border: 0; cursor: pointer; display: none; align-items: center; justify-content: center; }
.watch .play::after { content: ""; border-left: 26px solid var(--ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.watch.has-video .play { display: flex; }
.watch iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* E — newsletter */
.nl { display: grid; gap: 14px; max-width: 560px; }
.nl .row { display: grid; gap: 10px; }
@media (min-width: 640px) { .nl .row { grid-template-columns: 1fr auto; } }
.nl .help { color: var(--grey); font-size: .8125rem; margin: 0; }
.nl .msg { display: none; margin: 0; font-weight: 700; color: var(--yellow); }
.nl .msg.is-on { display: block; }

/* F — FAQ */
.faq { max-width: 720px; border-top: 1px solid var(--night-3); }
.faq details { border-bottom: 1px solid var(--night-3); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.5rem; color: var(--yellow); flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 18px; margin: 0; max-width: 62ch; }
.faq .a .tbd { color: var(--grey); }

/* H — footer */
.footer { padding: 48px var(--gutter) calc(48px + var(--sab)); border-top: 6px solid var(--yellow); background: var(--ink); }
.footer .wm { --wm: 26px; }
.footer .tagline { display: block; margin: 16px 0 24px; color: var(--grey); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.footer nav a { color: var(--white); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a:hover { color: var(--yellow); }
.footer .meta { margin: 0 0 8px; }
.footer .meta a { color: var(--white); }
.footer .heckle-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); font-weight: 700; text-decoration: none; }
.footer .social { display: none; gap: 14px; margin: 8px 0 16px; }
.footer .social.is-on { display: flex; }
.footer .social a { color: var(--white); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.footer .social svg { width: 24px; height: 24px; }

/* the QA sentinel: focused under ?shot so the console-check DOM prints scrollWidth/innerWidth as its id */
.qa { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; margin: 0; pointer-events: none; }
