
:root {
    color-scheme: light;
    --paper: #ffffff;
    --ink: #111111;
    --muted: #666666;
    --faint: #a6a6a6;
    --hairline: #e4e4e4;
    --frame: #f2f2f2;
    --night: #030610;       
    --night-glow: #0d1b2a;
    --night-bar: #09121f;   
    --body-width: 1080px;
    --theater-width: 1280px;
    --measure: 64ch;
    --fs-heading: 1.25rem;    
    --fs-body: 16.2px;        
    --fs-letter: 1.05rem;     
    --fs-small: 0.9rem;       
    --fs-label: 0.76rem;      
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 90%; scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html, body { overscroll-behavior-y: none; -webkit-overflow-scrolling: touch; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Helvetica Now Text", Helvetica, Arial, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
b, strong, h1, h2, h3, h4, h5, h6 { font-weight: 500; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--body-width); margin: 0 auto; padding: 0 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p + p { margin-top: 1.1em; }

.label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.meta { font-size: var(--fs-small); color: var(--muted); }
.link-underline { text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 1px; transition: border-color 0.15s; }
.link-underline:hover { border-bottom-color: var(--ink); }
.cta {
    display: inline-block; margin-top: 1.75rem;
    font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    text-decoration: none; border-bottom: 2px solid var(--ink); padding-bottom: 4px;
}
.cta:hover { color: var(--muted); }
.cta + .cta { margin-left: 2rem; }

.masthead { position: sticky; top: 0; z-index: 50; overflow: hidden; }
.hero-band { position: relative; overflow: hidden; }
.sky { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.sky-tile { position: absolute; top: 0; left: 0; }
.sky-tile + .sky-tile { top: 2000px; }
.sky-tile > div { position: absolute; top: 0; left: 0; }
.hero-band .sky { transform: translateY(calc(-1 * var(--head-h, 65px))); }
.nav, .hero { position: relative; z-index: 1; }
.nav-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    max-width: var(--body-width); margin: 0 auto; padding: 18px 32px;
}
.lockup { display: flex; align-items: center; text-decoration: none; }
.lockup svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 1.75rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-links a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-bottom-color: currentColor; }

.hero { text-align: center; padding: clamp(72px, 14vh, 150px) 32px clamp(80px, 15vh, 160px); }
.hero-name { font-size: clamp(2.6rem, 9vw, 6rem); font-weight: 400; letter-spacing: 0.06em; line-height: 1; }
.hero-line { margin-top: 1.75rem; font-size: clamp(1.1rem, 2.4vw, 1.5rem); }

body[data-stars="band"] .masthead { background: var(--night-bar); color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
body[data-stars="band"] .hero-band {
    background: radial-gradient(ellipse at bottom, var(--night-glow) 0%, var(--night-bar) 100%);
    color: #ffffff;
}
body[data-stars="band"] .hero-line { color: #d1d5db; }
body[data-stars="gray"] .masthead { background: var(--paper); border-bottom: 1px solid var(--hairline); }
body[data-stars="gray"] .hero-band { border-bottom: 1px solid var(--hairline); }
body[data-stars="gray"] .sky { filter: invert(1); opacity: 0.32; }
body[data-stars="gray"] .hero-line { color: var(--muted); }

.letter { max-width: 40em; margin: 0 auto; padding: clamp(32px, 5vh, 56px) 0 clamp(40px, 6vh, 64px); font-size: var(--fs-letter); line-height: 1.62; }
.letter p + p { margin-top: 1em; }
.letter p a { font-weight: 500; }
.letter p:last-of-type { font-weight: 500; font-style: italic; }
.letter-news { max-width: 40em;   margin: 0 auto clamp(64px, 10vh, 112px); padding-top: 1.75rem; border-top: 1px solid var(--hairline); font-size: var(--fs-letter); line-height: 1.55; }
.letter-news .label { margin-bottom: 0.6rem; }
.letter-news a { text-decoration: none; }
.letter-news .news-date { display: block; margin-bottom: 0.25rem; color: var(--muted); font-size: var(--fs-small); }
.letter-news .arrow { white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.letter-news .arrow::after { content: " \2192"; }

.section { border-top: 1px solid var(--hairline); padding: clamp(48px, 8vh, 80px) 0; }
@media (min-width: 900px) {
    .section-body { display: grid; grid-template-columns: 200px 1fr; gap: 3rem; }
}
.section-body > .label { display: block; margin-bottom: 1.5rem; }
.measure { max-width: var(--measure); }
.measure ul, .prose ul { padding-left: 1.3rem; margin: 0 0 1.1em; }
.measure li + li, .prose li + li { margin-top: 0.5em; }

.page-hero { padding-top: clamp(56px, 9vh, 96px); padding-bottom: clamp(32px, 5vh, 56px); }
.page-title { font-size: clamp(1.8rem, 4.4vw, 2.8rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; max-width: 26ch; }
.lede { margin-top: 1.5rem; font-size: var(--fs-body); line-height: 1.55; max-width: 52ch; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--fs-heading); font-weight: 500; line-height: 1.2; margin: 2.5rem 0 0.9rem; }

.theater { width: 100%; max-width: var(--body-width); margin: 0 auto; padding: 0 32px clamp(40px, 6vh, 64px); }
.media-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--frame); border: 1px solid var(--hairline); overflow: hidden; }
.media-frame > video, .media-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-frame > video { object-fit: contain; background: #ffffff; }
.media-caption { margin-top: 0.85rem; font-size: var(--fs-small); color: var(--muted); max-width: var(--measure); }

.film-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 72px; height: 72px; border: 0; border-radius: 50%; padding: 0 0 0 4px;
    display: grid; place-items: center; cursor: pointer;
    background: rgba(3, 6, 16, 0.55); color: #ffffff; transition: background 0.2s;
}
.film-play:hover { background: rgba(3, 6, 16, 0.8); }
.film-play[hidden], .js-film.started .film-play { display: none; }

.scenes-head { padding-top: clamp(48px, 8vh, 80px); padding-bottom: 0.5rem; border-top: 1px solid var(--hairline); }
.scenes-head + .frame-slot { border-top: 0; }
.scenes-intro { margin-top: 0.9rem; max-width: var(--measure); }
.frame-slot { display: grid; gap: 1.5rem; padding: clamp(40px, 6vh, 60px) 32px; border-top: 1px solid var(--hairline); }
@media (min-width: 900px) {
    .frame-slot { grid-template-columns: 7fr 5fr; gap: 3rem; align-items: start; }
    .frame-slot.flip { grid-template-columns: 5fr 7fr; }
    .frame-slot.flip .frame-media { order: 2; }
}
.frame-slot h3, .scenes-title { font-size: var(--fs-heading); font-weight: 500; line-height: 1.25; }
.frame-slot h3 { margin-bottom: 0.9rem; }
.frame-slot sup.ref { font-size: 0.62em; line-height: 0; margin-left: 0.12em; }
.ref-sep { color: var(--muted); }
.cite { position: relative; color: var(--muted); text-decoration: none; padding: 0 0.08em; }
.cite:hover, .cite:focus-visible { color: var(--ink); }
.cite::after {
    content: attr(data-label); display: none; position: absolute; bottom: calc(100% + 0.45rem); left: -0.4rem;
    width: max-content; max-width: min(18rem, 60vw); padding: 0.35rem 0.55rem;
    font-size: var(--fs-small); font-weight: 400; line-height: 1.35; letter-spacing: 0; white-space: normal;
    background: var(--ink); color: var(--paper); border-radius: 3px; pointer-events: none; z-index: 5;
}
.cite.tip-left::after { left: auto; right: -0.4rem; }
.cite:hover::after, .cite:focus-visible::after { display: block; }

.bug-list { scroll-margin-top: 6rem; margin-top: 1.75rem; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.bug-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; cursor: pointer; list-style: none;
}
.bug-list summary::-webkit-details-marker { display: none; }
.bug-list summary .label { margin: 0; }
.bug-list summary::after {
    content: ""; width: 0.5rem; height: 0.5rem; margin-right: 0.3rem;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg); transition: transform 0.15s;
}
.bug-list[open] summary::after { transform: rotate(45deg); }
.bug-list summary:hover .label { color: var(--muted); }
.bug-list ol { padding: 0 0 1.4rem 1.6rem; font-size: var(--fs-body); line-height: 1.45; }
.bug-list li + li { margin-top: 0.45rem; }
.bug-list li::marker { color: var(--muted); font-size: 0.85em; }
@media (min-width: 900px) {
    .bug-list ol { columns: 2; column-gap: 2.5rem; }
    .bug-list li { break-inside: avoid; }
}

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hairline); }
.team-grid a { border-bottom: 1px solid var(--hairline); padding: 0.7rem 0.5rem 0.7rem 0; font-size: var(--fs-body); text-decoration: none; }
.team-grid a:hover { color: var(--muted); }
.pairs { display: grid; gap: 1.5rem; }
.pair-label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }

.news-list { list-style: none; border-top: 1px solid var(--hairline); }
.news-list li { border-bottom: 1px solid var(--hairline); padding: 1.1rem 0; }
.news-list a { text-decoration: none; font-weight: 500; }
.news-list a:hover { text-decoration: underline; }
.release .dateline { font-weight: 500; }

#whr_embed_hook { width: 100%; border-top: 1px solid var(--hairline); }
#whr_embed_hook ul { list-style: none; margin: 0; padding: 0; }
#whr_embed_hook h3.whr-title { font-size: var(--fs-body); font-weight: 400; margin: 0; padding: 0.85rem 0; border-bottom: 1px solid var(--hairline); text-align: left; }
#whr_embed_hook h3.whr-title a { color: var(--ink); text-decoration: none; }
#whr_embed_hook h3.whr-title a:hover { text-decoration: underline; }
#whr_embed_hook .whr-info { color: var(--muted); font-size: var(--fs-small); }
ul .whr-info { display: none; }

.footer { border-top: 1px solid var(--hairline); padding: 48px 0 56px; font-size: var(--fs-small); }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem 4rem; padding-bottom: 2rem; border-bottom: 1px solid var(--hairline); margin-bottom: 1.25rem; }
.footer-grid p + p { margin-top: 0.3rem; }
.footer-mark { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.footer-grid .meta { margin-top: 0.5rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; font-size: var(--fs-small); color: var(--muted); }

.notfound { padding: clamp(96px, 20vh, 200px) 32px; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 500; line-height: 1; }

@media (max-width: 899px) {
    :root { --fs-body: 15.3px; }
    .wrap, .nav-inner, .theater, .frame-slot { padding-left: 16px; padding-right: 16px; }
    .letter { padding-left: 16px; padding-right: 16px; font-size: 1rem; }
    .letter-news { margin-left: 16px; margin-right: 16px; }
    .nav-links { gap: 1.2rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .sky > div { animation: none !important; }
}
