/* The selected auditorium. Image coordinates follow the blank screen in cinema-auditorium.png. */
body[data-page="home"] { background: var(--ink); }
body[data-page="home"] .site-header { position: absolute; inset: 0 0 auto; width: 100%; background: color-mix(in srgb, var(--ink) 78%, transparent); border-color: color-mix(in srgb, var(--peach) 30%, transparent); }
body[data-page="home"] .site-header .wrap { max-width: none; padding-inline: 3%; }
body[data-page="home"] .nav { padding-block: 16px; }
body[data-page="home"] .nav .link { font-size: 14px; }
.repo-star { gap: 6px; white-space: nowrap; }
.repo-star svg { display: block; }
body[data-page="home"] .nav .btn { padding: 10px 20px; font-size: 14px; }
body[data-page="home"] > .wrap { display: none; }
.cinema-accessible-title { /* clone-ok: standalone website cannot import a Studio control's scoped screen-reader utility. */ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.auditorium { --cinema-height: max(100svh, 600px); position: relative; isolation: isolate; height: var(--cinema-height); width: 100%; overflow: hidden; background: var(--ink); }
.cinema-shell { position: absolute; isolation: isolate; top: 0; left: 50%; translate: -50% 0; width: max(100%, calc(var(--cinema-height) * 1.7768)); aspect-ratio: 1672 / 941; container-type: inline-size; outline-offset: -3px; }
/* clone-ok: the website auditorium background has independent bounds and stacking from Library cover layers. */
.cinema-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; z-index: -2; transition: filter 1.2s ease; }
.cinema-light, .cinema-projector, .screen-preroll-symbol-stencil, .screen-preroll-splatter { /* clone-ok: site projection and paper-symbol overlays share page-local bounds. */ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cinema-light, .cinema-projector { mix-blend-mode: screen; }
.cinema-light { z-index: -1; opacity: .85; }
.cinema-projector { z-index: 2; opacity: 0; transition: opacity 1.5s ease .45s; }
.cinema-screen { position: absolute; left: 20.9%; top: 10.2%; width: 58.3%; height: 46.2%; overflow: hidden; background: var(--ink); }
.cinema-shell { transform-origin: 50% 10.2%; transition: transform 1.8s cubic-bezier(.22,.65,.2,1); }
.cinema-light { transition: opacity 1.2s ease; }
.auditorium:not([data-screening-state="ready"]) .cinema-shell { transform: scale(1.3); }
.auditorium:not([data-screening-state="ready"]) .cinema-art { filter: brightness(.45); }
.auditorium:not([data-screening-state="ready"]) .cinema-light { opacity: 0; }
.auditorium:not([data-screening-state="ready"]) .cinema-projector { opacity: .22; }
.screen-title [data-screening-open] { margin-top: 18px; min-height: 44px; }
.auditorium[data-screening-state="ready"] .screening-controls,
.auditorium[data-screening-state="entering"] .screening-controls { visibility: hidden; }
.screen-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .65s ease, visibility .65s; background: var(--ink); }
.screen-slide.is-current { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.screen-feature { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: stretch; }
.screen-picture { position: relative; min-width: 0; min-height: 0; display: grid; align-items: center; background: var(--ink); cursor: zoom-in; }
.screen-picture img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; image-rendering: auto; }
.screen-enlarge { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; color: var(--fg); background: var(--ink); border: 1px solid var(--line); font: 12px var(--body); }
.screen-feature figcaption { min-width: 0; overflow: auto; display: flex; flex-direction: column; justify-content: center; padding: 7%; font: clamp(14px, .85cqw, 18px)/1.6 var(--body); background: var(--bg2); color: var(--fg2); opacity: 0; transform: translateX(18px); transition: opacity .6s ease .12s, transform .6s ease .12s; }
.screen-feature.is-current figcaption { opacity: 1; transform: none; }
.screen-feature h2 { color: var(--fg); font: 600 clamp(20px, 1.5cqw, 30px)/1.2 var(--disp); margin: 12px 0; }
.screen-feature p { margin: 0; }
.screen-kicker, .screen-picture-label { color: var(--peach); font: 12px/1.4 var(--mono); letter-spacing: .12em; }
.screen-picture-label { margin-top: 18px; }
.screen-feature .screen-picture-description { color: var(--dim); font-size: .9em; margin-top: 5px; }
.screen-feature figcaption a { align-self: flex-start; color: var(--peach); padding-block: 8px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.screen-title { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 8%; background: radial-gradient(ellipse at 50% 30%, var(--bg2), var(--ink) 75%); }
.screen-title > span { color: var(--peach); font: 12px var(--mono); letter-spacing: .2em; }
.screen-title .screen-wordmark { font: 500 clamp(45px, 10cqw, 140px)/1.05 var(--disp); letter-spacing: -.045em; margin: 12px 0 8px; }
.screen-title .screen-wordmark em { color: var(--pink); font-style: normal; }
.screen-title p { color: var(--fg); font-size: clamp(14px, 1.7cqw, 23px); font-style: italic; line-height: 1.5; }
.screen-title .screen-introduction { font: clamp(14px, .9cqw, 18px)/1.6 var(--body); max-width: 42ch; color: var(--fg2); margin-top: 12px; }
.screen-title a { color: var(--peach); font-size: 13px; display: inline-flex; align-items: center; gap: 24px; margin-top: 20px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.screen-preroll { position: absolute; inset: 0; z-index: 3; overflow: hidden; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 48%, var(--bg2), var(--ink) 78%); color: var(--fg); text-align: center; }
.screen-preroll-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 8%; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease, visibility .45s; }
.screen-preroll-card.is-current { opacity: 1; visibility: visible; transform: none; }
.screen-preroll-card > span, .screen-preroll-prefix { color: var(--fg2); font: 600 clamp(12px, 1.25cqw, 16px)/1.4 var(--mono); letter-spacing: .22em; }
.screen-preroll-card .screen-wordmark { font-size: clamp(44px, 10cqw, 136px); }
.screen-preroll .screen-wordmark em { color: var(--pink); font-style: normal; }
.screen-preroll-type { width: max-content; max-width: 100%; color: var(--peach); font: 700 clamp(15px, 3cqw, 42px)/1.3 var(--disp); letter-spacing: .12em; white-space: nowrap; }
.screen-preroll-words { gap: 12px; isolation: isolate; }
.screen-preroll-content { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(72px, .34fr) minmax(0, 1fr); align-items: center; gap: clamp(12px, 7cqw, 72px); width: min(100%, 1100px); }
.screen-preroll-symbol-stage { --symbol-main: var(--pink); --symbol-shadow: color-mix(in srgb, var(--symbol-main) 55%, var(--ink)); position: relative; isolation: isolate; display: block; width: 100%; height: auto; aspect-ratio: 1; }
.screen-preroll-symbol-stage[data-tone="gold"] { --symbol-main: var(--peach); }
.screen-preroll-symbol-stage[data-tone="mint"] { --symbol-main: var(--mint); }
.screen-preroll-symbol-stage[data-tone="sky"] { --symbol-main: var(--sky); }
.screen-preroll-symbol-stage[data-tone="lilac"] { --symbol-main: var(--lilac); }
.screen-preroll-symbol, .screen-preroll-symbol-stencil { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.screen-preroll-splatter { inset: -50%; z-index: 0; width: 200%; height: 200%; }
.screen-preroll-symbol-stencil { z-index: 2; color: var(--symbol-main); border-color: var(--symbol-shadow); visibility: hidden; }
.screen-preroll-symbol-stage.is-stencilled .screen-preroll-symbol-stencil { visibility: visible; }
.screen-preroll-copy { display: grid; justify-items: start; gap: clamp(8px, 1.4cqw, 16px); min-width: 0; text-align: left; }
.screen-preroll-prefix { color: var(--fg2); }
.screen-preroll-word { --word-accent: var(--pink); display: block; max-width: 100%; color: var(--word-accent); font: 800 clamp(20px, 5cqw, 68px)/1.08 var(--disp); letter-spacing: .035em; text-wrap: balance; text-shadow: 2px 3px 0 var(--ink); }
.screen-preroll-progress { margin: 0; color: var(--fg2); font: 500 12px/1.4 var(--mono); }
.screen-preroll-word.is-changing { animation: preroll-word-entry var(--word-entry-duration, 140ms) steps(3, end) both; transform-origin: var(--word-entry-origin, 50% 50%); }
@keyframes preroll-word-entry {
  from { transform: var(--word-entry-transform, translateY(-80%)); }
  to { transform: none; }
}
.screen-preroll-word[data-tone="gold"] { --word-accent: var(--peach); }
.screen-preroll-word[data-tone="mint"] { --word-accent: var(--mint); }
.screen-preroll-word[data-tone="sky"] { --word-accent: var(--sky); }
.screen-preroll-word[data-tone="lilac"] { --word-accent: var(--lilac); }
.screen-preroll-tagline { color: var(--peach); font: 700 clamp(16px, 3.4cqw, 42px)/1.25 var(--body); font-style: italic; letter-spacing: .01em; }
.screen-preroll-skip { position: absolute; right: 12px; bottom: 10px; z-index: 1; min-width: 32px; min-height: 28px; padding: 5px 8px; border: 1px solid var(--line); background: var(--ink); color: var(--fg2); font-size: 12px; }
.screen-preroll-skip:hover { border-color: var(--peach); color: var(--fg); }
.cinema-floor { position: absolute; inset: auto 3% 48px; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 12px 20px; background: color-mix(in srgb, var(--ink) 88%, transparent); border-block: 1px solid color-mix(in srgb, var(--peach) 30%, transparent); }
.screening-caption { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; align-items: center; }
.screening-caption > span { color: var(--peach); font: 12px var(--mono); letter-spacing: .12em; }
.screening-caption output { color: var(--fg); font-size: 15px; }
.screening-caption a { color: var(--dim); grid-column: 2; font-size: 12px; }
.screening-caption a:hover { color: var(--peach); }
.screening-controls { display: flex; gap: 8px; align-items: center; }
.screening-controls button { border: 1px solid var(--line); background: var(--ink); color: var(--fg); min-width: 38px; min-height: 36px; padding: 5px 10px; font-size: 17px; }
.screening-controls button:hover { border-color: var(--peach); }
.screening-controls .screening-play { margin-left: 12px; min-width: 115px; font-size: 12px; }
.screening-controls [data-screening-replay] { min-height: 36px; border: 1px solid var(--line); background: var(--ink); color: var(--fg2); padding: 5px 10px; font-size: 12px; }
.screening-dots { display: flex; align-items: center; max-width: 264px; overflow-x: auto; }
.screening-dots button { flex-shrink: 0; }
.screening-dots button { min-width: 24px; min-height: 30px; padding: 6px; border: 0; display: grid; place-items: center; }
.screening-dots button span { width: 7px; height: 7px; border: 1px solid var(--dim); }
.screening-dots button[aria-pressed="true"] span { background: var(--pink); border-color: var(--pink); }
.cinema-motion { justify-self: end; background: none; color: var(--dim); border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; min-height: 32px; font-size: 12px; }
.cinema-footer { position: absolute; inset: auto 3% 0; z-index: 2; height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 8px 20px; color: var(--dim); font-size: 12px; background: color-mix(in srgb, var(--ink) 75%, transparent); }
.cinema-footer > span { font: 12px var(--mono); letter-spacing: .09em; }
.cinema-footer p { text-align: center; font-size: 13px; line-height: 1.6; }
.cinema-footer a { color: var(--peach); font-size: 14px; }
@media (max-width: 1100px) {
  .cinema-floor { grid-template-columns: 1fr auto; }
  .cinema-motion { grid-column: 2; }
  .screening-caption { grid-row: 1 / span 2; }
  .screening-controls { gap: 5px; }
  .screen-title .screen-wordmark { font-size: 10cqw; }
  .screen-title > span { font-size: 12px; letter-spacing: .1em; }
  .screen-title a { margin-top: 13px; }
}
@media (max-width: 720px) {
  body[data-page="home"] .nav { flex-wrap: wrap; gap: 8px; padding-block: 12px; }
  body[data-page="home"] .nav .brand { font-size: 19px; gap: 4px; }
  body[data-page="home"] .brand-symbol { width: 22px; height: 22px; }
  body[data-page="home"] .nav .link { font-size: 12px; }
  body[data-page="home"] .nav .btn { padding: 8px 10px; min-height: 36px; font-size: 12px; }
  .auditorium { --cinema-height: max(100svh, 860px); }
  .auditorium:not([data-screening-state="ready"]) .cinema-shell { transform: none; }
  .cinema-screen { left: 50%; translate: -50% 0; top: calc(var(--cinema-height) * .12); width: 92vw; height: calc(var(--cinema-height) * .55); }
  .screen-feature { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .screen-feature figcaption { padding: 12px 16px; font-size: 14px; margin: 0; }
  .screen-feature h2 { font-size: 20px; margin: 6px 0; }
  .screen-feature figcaption > p:first-of-type { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .screen-picture-label { margin-top: 8px; }
  .screen-feature figcaption a { margin-top: 4px; }
  .screening-dots { max-width: 96px; }
  .screen-title { padding: 8%; }
  .screen-title .screen-wordmark { font-size: clamp(48px, 16vw, 80px); }
  .screen-title > span { font-size: 12px; letter-spacing: .12em; }
  .screen-title p { font-size: 16px; }
  .screen-title a { font-size: 13px; margin-top: 15px; }
  .screen-preroll-card { gap: 12px; }
  .screen-preroll-content { grid-template-columns: minmax(64px, .3fr) minmax(0, 1fr); gap: clamp(18px, 6vw, 26px); }
  .screen-preroll-word { font-size: clamp(20px, 7cqw, 42px); }
  .screen-preroll-card > span, .screen-preroll-prefix { letter-spacing: .12em; }
  .screen-preroll-skip { right: 6px; bottom: 5px; min-height: 24px; }
  .cinema-floor { inset-inline: 12px; bottom: 55px; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; }
  .screening-caption { grid-column: 1 / -1; grid-row: auto; }
  .screening-controls { grid-column: 1 / -1; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .screening-controls .screening-play, .screening-controls [data-screening-replay] { flex: 1 1 120px; min-width: 120px; margin-left: 0; white-space: nowrap; }
  .cinema-motion { grid-column: 1 / -1; justify-self: center; }
  .cinema-footer { inset-inline: 12px; height: 55px; gap: 16px; padding: 8px 12px; }
  .cinema-footer p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-slide, .screen-feature figcaption, .cinema-shell, .cinema-art, .cinema-light, .cinema-projector, .screen-preroll-card, .screen-preroll-word, .screen-preroll-symbol { transition: none; }
  .screen-preroll-word.is-changing { animation: none; }
  .auditorium:not([data-screening-state="ready"]) .cinema-shell { transform: none; }
}
@media (forced-colors: active) {
  .screen-preroll-word { color: CanvasText; text-shadow: none; -webkit-text-stroke: 1px Canvas; }
}
