/* PEHER — identity & layout
   Palette from materials: basalt, soot, lime plaster, mul-mul, brass, marigold (rare), jade.
   Type: Bodoni Moda (display) · IBM Plex Mono (cues, time) · Instrument Sans (UI) */

:root {
  --basalt: #151412;
  --soot: #211e1a;
  --soot-2: #2b2722;
  --lime: #ece4d6;
  --mulmul: #d8cdb9;
  --dim: #a89e8c;          /* 7.0:1 on basalt */
  --brass: #b38b52;
  --brass-hi: #d2ab70;
  --genda: #d4782a;
  --jade: #33463d;
  --line: rgba(236, 228, 214, .16);
  --line-2: rgba(236, 228, 214, .32);
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--basalt); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; color: var(--lime); background: var(--basalt);
  font: 400 16px/1.55 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--brass); color: var(--basalt); }
:focus-visible { outline: 1.5px solid var(--brass-hi); outline-offset: 4px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--lime); color: var(--basalt); font: 500 13px var(--mono); }
.skip:focus { top: 12px; }
.defs { position: absolute; width: 0; height: 0; }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  position: relative; display: inline-flex; align-items: center; gap: .6em; min-height: var(--h); padding: 0 1.25em;
  border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.btn--line { border: 1px solid var(--line-2); background: transparent; }
.btn--line:hover { border-color: var(--lime); }
.btn--solid { background: var(--lime); color: var(--basalt); }
.btn--solid:hover { background: var(--brass-hi); }
.btn--text { padding: 0; min-height: 32px; background: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.btn--text:hover { text-decoration-color: var(--lime); }
.btn[aria-pressed="true"] { background: var(--jade); border-color: var(--jade); }
.badge { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; border-radius: 1em; background: var(--genda); color: var(--basalt); font: 500 10px/1 var(--mono); letter-spacing: 0; }
.badge[hidden] { display: none; }

/* ---------- title sequence ---------- */
.loader {
  --p: 0; --lift: 0;
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #0b0a09;
  clip-path: inset(0 0 calc(var(--lift) * 100%) 0);
}
.loader__arch { position: absolute; width: min(18vw, 120px); height: auto; top: 50%; left: 50%; transform: translate(-50%, -58%); overflow: visible; }
.loader__arch path { fill: none; stroke: var(--brass); stroke-width: .6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p) * .8); }
.loader__mark { position: relative; margin: 0; font: italic 400 clamp(44px, 8vw, 104px)/1 var(--serif); letter-spacing: -.02em; clip-path: inset(0 0 100% 0); }
.loader__meta { position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad); display: flex; justify-content: space-between; margin: 0; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.loader__count { font-variant-numeric: tabular-nums; color: var(--lime); }
html:not(.is-ready) .chrome, html:not(.is-ready) .fab { visibility: hidden; }

/* ---------- chrome ---------- */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 24px;
  padding: 18px var(--pad); pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.wm { display: inline-flex; align-items: flex-end; text-decoration: none; font: italic 400 26px/1 var(--serif); letter-spacing: -.01em; }
.wm__h { position: relative; display: inline-block; padding: 0 .06em; }
.wm__h svg { position: absolute; left: 50%; bottom: .02em; width: 1.04em; height: 1.24em; transform: translateX(-50%); overflow: visible; }
.wm__h svg path { fill: none; stroke: var(--brass); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chrome nav { margin-left: auto; }
.chrome nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.chrome nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font: 400 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mulmul); transition: color .3s; }
.chrome nav a:hover { color: var(--lime); }
.chrome .enquire { --h: 40px; backdrop-filter: blur(6px); background: rgba(21, 20, 18, .2); }

.fab {
  position: fixed; right: var(--pad); bottom: 22px; z-index: 41; display: none; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border: 0; cursor: pointer; background: var(--lime); color: var(--basalt);
  font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase;
}

/* ---------- the film ---------- */
.film { position: relative; }
.stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #0b0a09; }
.layers, .layer { position: absolute; inset: 0; }
.layer { visibility: hidden; }
.layer canvas, .layer img, .s01, .wide { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer img { object-fit: cover; }
.s01, .wide { will-change: transform; transform-origin: 50% 58%; }
.wide { transform-origin: 50% 84%; }
.wide .blue, .wide canvas { visibility: hidden; opacity: 0; }
.s01 img + img {
  --w: -30;
  -webkit-mask-image: linear-gradient(to left, #000 calc(var(--w) * 1%), transparent calc(var(--w) * 1% + 28%));
  mask-image: linear-gradient(to left, #000 calc(var(--w) * 1%), transparent calc(var(--w) * 1% + 28%));
}
.layer canvas { will-change: transform, filter; }
/* house grade layer: a soft vignette + lifted blacks; grain on top */
.layers::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(8, 7, 6, .55) 100%),
    linear-gradient(to bottom, rgba(8, 7, 6, .35), transparent 22%, transparent 70%, rgba(8, 7, 6, .55));
}
.veil { position: absolute; inset: 0; background: #070809; visibility: hidden; opacity: 0; }
.flash { position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 60%, #f3c67a, transparent 70%); mix-blend-mode: screen; visibility: hidden; opacity: 0; }
.grain { position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay; filter: url(#grain); background: #808080; animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
.archline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.archline path { fill: none; stroke: var(--brass-hi); stroke-width: 1; opacity: 0; }

/* title over the bare courtyard */
.title { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(70px, 12vh, 130px); pointer-events: none; }
.title__mark { margin: 0; font: 400 clamp(52px, 9.4vw, 168px)/.9 var(--serif); font-optical-sizing: auto; letter-spacing: -.035em; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.title__mark em { display: inline-block; padding-left: .9em; font-weight: 400; }
.title__line { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 28px 0 0; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mulmul); }
.title__line span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 28px; vertical-align: middle; background: var(--brass); }
.cue-hint { position: absolute; right: var(--pad); bottom: clamp(70px, 12vh, 130px); display: flex; align-items: center; gap: 14px; margin: 0; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mulmul); }
.cue-hint i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.cue-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--lime); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* captions: one word at a time */
.cap { position: absolute; margin: 0; pointer-events: none; visibility: hidden; opacity: 0; }
.cap__idx { display: block; font: 400 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mulmul); }
.cap-q1 { left: var(--pad); bottom: clamp(70px, 12vh, 130px); height: clamp(60px, 9vw, 150px); width: 60vw; }
.cap-q1 .cap__idx { position: absolute; left: 2px; top: -26px; }
.cap__w { position: absolute; left: 0; bottom: 0; font: italic 400 clamp(56px, 8.6vw, 150px)/.9 var(--serif); letter-spacing: -.03em; visibility: hidden; opacity: 0; text-shadow: 0 2px 40px rgba(0, 0, 0, .3); }
.cap-q2 { right: var(--pad); bottom: clamp(70px, 12vh, 130px); text-align: right; }
.cap__m { display: block; margin-top: 10px; font: italic 400 clamp(26px, 2.6vw, 40px)/1 var(--serif); }
.cap-q3 { left: var(--pad); bottom: clamp(70px, 12vh, 130px); font: italic 400 clamp(56px, 8.6vw, 150px)/.9 var(--serif); letter-spacing: -.03em; text-shadow: 0 2px 40px rgba(0, 0, 0, .45), 0 0 2px rgba(0, 0, 0, .25); }
.cap-q3 .cap__idx { margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.cap-q4 { left: 0; right: 0; top: 50%; display: flex; align-items: center; justify-content: center; gap: 14px; font: 400 13px var(--mono); letter-spacing: .4em; text-transform: uppercase; }
.cap-q4 i { width: 7px; height: 7px; border-radius: 50%; background: var(--genda); box-shadow: 0 0 14px var(--genda); animation: standby 1.6s ease-in-out infinite; }
@keyframes standby { 50% { opacity: .2; } }
.cap-q5 { left: 0; right: 0; top: 50%; translate: 0 -55%; text-align: center; font: italic 400 clamp(120px, 22vw, 380px)/1 var(--serif); color: #fff6e4; text-shadow: 0 0 60px rgba(255, 196, 110, .55); }
.cap-q7 { left: var(--pad); bottom: clamp(70px, 12vh, 130px); font: italic 400 clamp(48px, 7vw, 120px)/.95 var(--serif); letter-spacing: -.03em; }
.cap-q7 .cap__idx { margin-bottom: 14px; }

/* coda: framed by the closing arch */
.coda { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr minmax(0, 40vh) 1fr; align-items: end; padding: 0 var(--pad) clamp(40px, 9vh, 96px); visibility: hidden; opacity: 0; pointer-events: none; }
.coda > * { pointer-events: auto; }
.coda__k { grid-column: 1; align-self: start; margin: 18vh 0 0; font: 400 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.coda__h { grid-column: 1; grid-row: 1; max-width: 13ch; margin: 0; font: 400 clamp(32px, 3.6vw, 60px)/1.02 var(--serif); letter-spacing: -.02em; }
.coda__a { grid-column: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin: 0; }

/* HUD + cue rail */
.hud { position: absolute; left: var(--pad); top: 84px; display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 8px; font-variant-numeric: tabular-nums; pointer-events: none; }
.hud__time { font: 400 22px/1 var(--mono); letter-spacing: .02em; }
.hud__pm { font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mulmul); }
.hud__cue { grid-column: 1 / -1; margin-top: 8px; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--brass-hi); }
.rail { --p: 0; position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; }
.rail ol { position: relative; display: grid; gap: 4px; margin: 0; padding: 0 0 0 18px; list-style: none; }
.rail ol::before, .rail ol::after { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.rail ol::after { background: var(--lime); bottom: auto; height: calc((100% - 12px) * var(--p)); }
.rail a { display: flex; align-items: center; gap: 10px; min-height: 24px; text-decoration: none; font: 400 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); transition: color .4s; }
.rail em { font-style: normal; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .4s var(--ease); }
.rail li.is-past a { color: var(--mulmul); }
.rail li.is-on a { color: var(--lime); }
.rail li.is-on em, .rail a:hover em, .rail a:focus-visible em { opacity: 1; transform: none; }
html.past-film .rail, html.past-film .hud { opacity: 0; transition: opacity .4s; }

/* placeholders */
.slate { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; gap: 4px; padding: 14px 18px; border: 1px dashed var(--line-2); background: rgba(11, 10, 9, .7); font: 400 11px var(--mono); letter-spacing: .06em; color: var(--mulmul); text-align: center; pointer-events: none; z-index: 2; }
.slate b { color: var(--genda); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(96px, 14vw, 200px) var(--pad); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec__head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; margin-bottom: clamp(40px, 6vw, 88px); }
.sec__k { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font: 400 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.sec__k span { color: var(--brass-hi); }
.sec__k span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: var(--line-2); }
.sec__h { grid-column: 1 / span 7; margin: 0; font: 400 clamp(40px, 5.6vw, 92px)/.98 var(--serif); letter-spacing: -.03em; }
.sec__h em { color: var(--mulmul); }
.sec__aside { grid-column: 9 / -1; margin: 0; max-width: 36ch; font-size: 15px; color: var(--mulmul); }
.demo-label, .opt-t { display: inline-block; margin-left: 4px; padding: 2px 7px; border: 1px solid var(--line-2); font: 400 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); vertical-align: 2px; }
.opt-t { border: 0; padding: 0; margin-left: 6px; }
.fine { font: 400 11px/1.6 var(--mono); letter-spacing: .04em; color: var(--dim); }

/* palettes */
.pal__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 3vw, 48px); align-items: end; }
.pal__stage { --x: .62; position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--soot); cursor: ew-resize; touch-action: pan-y; user-select: none; }
.pal__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 92% 55%; pointer-events: none; }
@media (max-aspect-ratio: 17/20) { .pal__stage { aspect-ratio: 4 / 5; } .pal__stage img { object-position: 50% 50%; } }
.pal__clip { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--x)) * 100%) 0 0); }
.pal__handle { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); width: 0; display: grid; place-items: center; outline: none; }
.pal__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -.5px; width: 1px; background: rgba(236, 228, 214, .7); }
.pal__handle svg { position: relative; width: 44px; height: 88px; overflow: visible; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .5)); transition: transform .4s var(--ease); }
.pal__handle svg path { fill: rgba(21, 20, 18, .45); stroke: var(--lime); stroke-width: 1; vector-effect: non-scaling-stroke; backdrop-filter: blur(4px); }
.pal__stage.is-drag .pal__handle svg, .pal__handle:focus-visible svg { transform: scale(1.08); }
.pal__handle:focus-visible svg path { stroke: var(--brass-hi); stroke-width: 2; }
.pal__lbl { position: absolute; bottom: 18px; font: 400 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; pointer-events: none; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.pal__lbl--b { left: 18px; } .pal__lbl--a { right: 18px; }
.pal__tabs { display: grid; border-top: 1px solid var(--line); }
.pal__tabs button { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; min-height: 58px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.pal__num { font: 400 11px var(--mono); color: var(--dim); }
.pal__name { font: italic 400 28px/1 var(--serif); color: var(--dim); transition: color .35s; }
.pal__tabs button:hover .pal__name, .pal__tabs [aria-selected="true"] .pal__name { color: var(--lime); }
.pal__sw { display: flex; gap: 3px; }
.pal__sw i { width: 10px; height: 22px; opacity: .45; transition: opacity .35s; }
.pal__tabs [aria-selected="true"] .pal__sw i { opacity: 1; }
.pal__note { min-height: 4.8em; margin: 22px 0; font-size: 14px; color: var(--mulmul); }

/* materials / rules */
.mat__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); margin: 0; padding: 0; list-style: none; }
.mat__list li:nth-child(2) { margin-top: clamp(40px, 8vw, 120px); }
.mat__list li:nth-child(3) { margin-top: clamp(80px, 16vw, 240px); }
.mat__list figure { position: relative; margin: 0 0 22px; aspect-ratio: 9 / 11; overflow: hidden; background: var(--soot); clip-path: inset(0 round 50% 50% 0 0 / 22% 22% 0 0); }
.mat__list img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mat__list li:hover img { transform: scale(1.04); }
.mat__list h3 { margin: 0 0 8px; font: italic 400 30px/1.1 var(--serif); }
.mat__list p { margin: 0; max-width: 32ch; color: var(--mulmul); }

/* cue sheet */
.sheet__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.cue { margin: 0 0 34px; padding: 0; border: 0; }
.cue legend { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; padding: 0; }
.cue__q { font: 400 11px var(--mono); letter-spacing: .2em; color: var(--brass-hi); }
.cue__n { font: italic 400 30px/1 var(--serif); }
.cue__opts { display: grid; grid-template-columns: repeat(3, 1fr) auto; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.opt { position: relative; display: grid; align-content: start; gap: 6px; min-height: 128px; padding: 16px 16px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .35s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { background: var(--soot); }
.opt:has(input:checked) { background: var(--lime); color: var(--basalt); }
.opt:has(input:checked) .opt__detail, .opt:has(input:checked) .opt__price { color: #4a4339; }
.opt:has(input:focus-visible) { outline: 1.5px solid var(--brass-hi); outline-offset: -3px; }
.opt__name { font-weight: 500; font-size: 15px; }
.opt__detail { font-size: 13px; line-height: 1.45; color: var(--dim); }
.opt__price { margin-top: auto; padding-top: 8px; font: 400 11px var(--mono); color: var(--mulmul); }
.opt--skip { min-height: 0; align-content: center; padding: 0 14px; }
.opt--skip .opt__name { writing-mode: vertical-rl; rotate: 180deg; font: 400 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.opt--skip:has(input:checked) { background: var(--soot-2); color: var(--lime); }
.sheet__out { --glow: 0; position: sticky; top: 96px; }
.sheet__paper { padding: 26px 26px 18px; background: var(--lime); color: var(--basalt); box-shadow: 0 0 0 calc(var(--glow) * 6px) rgba(210, 171, 112, calc(var(--glow) * .6)); }
.sheet__top { display: flex; justify-content: space-between; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1.5px solid var(--basalt); font: 500 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.sheet__rows { display: grid; margin: 0; padding: 0; list-style: none; font: 400 13px/1.3 var(--mono); }
.sheet__rows li { display: grid; grid-template-columns: 52px 30px 82px 1fr; gap: 6px; padding: 9px 0; border-bottom: 1px dashed rgba(21, 20, 18, .25); }
.sheet__rows .q { color: #8a6a37; }
.sheet__rows .o { font-family: var(--sans); font-weight: 500; }
.sheet__rows .empty { display: block; color: #6d6558; }
.sheet__meta { display: grid; gap: 6px; margin: 16px 0 0; }
.sheet__meta div { display: flex; justify-content: space-between; gap: 12px; font: 400 12px var(--mono); }
.sheet__meta dt { color: #6d6558; } .sheet__meta dd { margin: 0; text-align: right; }
.sheet__total { font: italic 400 22px var(--serif) !important; }
.sheet__fine { margin: 16px 0 0; font: 400 10px/1.5 var(--mono); color: #6d6558; }
.sheet__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }

/* venue */
.venue__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.plan { margin: 0; }
.plan svg { width: 100%; height: auto; }
.plan__base rect, .plan__base path, .plan__base circle { fill: none; stroke: var(--line-2); stroke-width: 1; }
.plan__base .plan__water { fill: rgba(51, 70, 61, .45); stroke: var(--jade); }
.plan__base .plan__tree { stroke-dasharray: 2 4; }
.plan__arches path { fill: none; stroke: var(--line-2); }
.plan__n { fill: var(--dim); font: 400 12px var(--mono); text-anchor: middle; }
[data-spot] { fill: var(--basalt); stroke: var(--brass-hi); stroke-width: 1.2; cursor: pointer; transition: fill .3s, r .3s; outline: none; }
[data-spot].is-on, [data-spot]:hover { fill: var(--brass-hi); }
[data-spot]:focus-visible { stroke: var(--lime); stroke-width: 3; }
.plan figcaption { min-height: 3.2em; margin-top: 14px; max-width: 52ch; color: var(--mulmul); }
.plan figcaption b { display: block; margin-bottom: 2px; font: italic 400 24px var(--serif); color: var(--lime); }
.facts { margin: 0 0 18px; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 400 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 0; font: italic 400 22px/1 var(--serif); }
.venue__facts .btn { margin-top: 12px; }

/* run of show */
.run__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.run__list li { border-bottom: 1px solid var(--line); }
.run__list summary { display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; min-height: 92px; cursor: pointer; list-style: none; }
.run__list summary::-webkit-details-marker { display: none; }
.run__q { font: 400 12px var(--mono); letter-spacing: .2em; color: var(--brass-hi); }
.run__t { font: 400 clamp(28px, 3.4vw, 52px)/1 var(--serif); letter-spacing: -.02em; transition: color .3s, padding .5s var(--ease); }
.run__list summary:hover .run__t { padding-left: 10px; }
.run__x { position: relative; width: 18px; height: 18px; justify-self: end; }
.run__x::before, .run__x::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--lime); transition: rotate .4s var(--ease); }
.run__x::after { rotate: 90deg; }
details[open] .run__x::after { rotate: 0deg; }
.run__list p { max-width: 58ch; margin: -6px 0 30px 80px; color: var(--mulmul); font-size: 17px; }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 96px); align-items: center; }
.visit__map svg { width: 100%; height: auto; background: radial-gradient(80% 80% at 35% 55%, var(--soot), var(--basalt)); }
.m-road { fill: none; stroke: rgba(236, 228, 214, .18); stroke-width: 1; }
.m-road--big { stroke: rgba(236, 228, 214, .38); stroke-width: 1.6; }
.m-road--ring { stroke-dasharray: 4 5; }
.m-water { fill: rgba(51, 70, 61, .55); stroke: var(--jade); }
.m-pin path { fill: var(--basalt); stroke: var(--brass-hi); stroke-width: 1.4; }
.m-pin circle { fill: var(--genda); }
.m-lbl { fill: var(--lime); font: italic 400 18px var(--serif); }
.m-lbl--dim { fill: var(--dim); font: 400 11px var(--mono); letter-spacing: .1em; }
.visit address { margin: 30px 0 22px; font: italic 400 26px/1.25 var(--serif); }
.visit address .fine { display: block; margin-top: 8px; font-style: normal; }
.hours { margin: 0; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hours dt { font: 400 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.hours dd { margin: 0; }
.open { display: flex; align-items: center; gap: 10px; margin: 16px 0 26px; font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.open.is-open::before { background: #7fae86; box-shadow: 0 0 10px #7fae86; }
.visit__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 0; }

/* footer */
.foot { padding: 0 var(--pad) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__wm { margin: 0; font: italic 400 clamp(120px, 27vw, 460px)/.8 var(--serif); letter-spacing: -.05em; color: var(--soot-2); translate: -.04em .08em; user-select: none; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); font: 400 11px var(--mono); letter-spacing: .1em; color: var(--dim); }
.foot__row p { margin: 0; }

/* ---------- dialogs & forms ---------- */
.dlg { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); background: var(--basalt); color: var(--lime); overscroll-behavior: contain; }
.dlg--small { width: min(560px, calc(100vw - 24px)); }
.dlg::backdrop { background: rgba(8, 7, 6, .78); backdrop-filter: blur(4px); }
.dlg[open] { animation: dlg .5s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(16px); } }
.dlg__in { padding: clamp(24px, 4vw, 48px); }
.dlg__head { position: relative; margin-bottom: 26px; }
.dlg__head h2 { margin: 0 0 8px; font: 400 clamp(32px, 4vw, 48px)/1 var(--serif); letter-spacing: -.02em; }
.dlg__head .fine { margin: 0; }
.dlg__x { position: absolute; right: -10px; top: -14px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font: 300 30px/1 var(--sans); color: var(--mulmul); }
.dlg__x:hover { color: var(--lime); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font: 400 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mulmul); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--lime); font: 400 17px var(--sans); transition: border-color .3s;
}
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--mulmul) 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--mulmul) 50%) right 0 center / 6px 6px no-repeat; padding-right: 22px; }
.field select option { background: var(--basalt); }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass-hi); box-shadow: 0 1px 0 var(--brass-hi); }
.field [aria-invalid="true"] { border-bottom-color: #e08a6a; }
.err { min-height: 1.2em; margin: 4px 0 0; font: 400 12px var(--sans); color: #f0a487; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); font: 400 13px var(--mono); transition: background-color .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--lime); }
.chip input:checked + span { background: var(--lime); color: var(--basalt); border-color: var(--lime); }
.chip input:focus-visible + span { outline: 1.5px solid var(--brass-hi); outline-offset: 3px; }
fieldset[aria-invalid] .chip span { border-color: #e08a6a; }
.checks { display: grid; gap: 10px; margin: 6px 0 18px; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brass); }
.dlg__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.done { padding: 10px 0; text-align: left; }
.done svg { width: 34px; height: 68px; margin-bottom: 20px; overflow: visible; }
.done svg path { fill: none; stroke: var(--brass-hi); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawin 1.4s .2s var(--ease) forwards; }
@keyframes drawin { to { stroke-dashoffset: 0; } }
.done h3 { margin: 0 0 12px; font: 400 40px/1 var(--serif); outline: none; }
.done p { max-width: 52ch; color: var(--mulmul); }
.done__acts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 26px; }
.notice { display: grid; gap: 12px; margin: 0; padding: 0 0 0 18px; color: var(--mulmul); }

/* ---------- still mode (reduced motion, low power, failure) ---------- */
.still-film { display: none; }
html.is-still .stage { display: none; }
html.is-still .still-film { display: block; }
.sf { position: relative; margin: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--soot); }
.sf img { width: 100%; height: 100%; object-fit: cover; opacity: .35; transform: scale(1.04); transition: opacity 1.4s var(--ease), transform 2.4s var(--ease); }
.sf.is-in img { opacity: 1; transform: none; }
.sf figcaption { position: absolute; left: var(--pad); bottom: var(--pad); display: grid; gap: 8px; }
.sf__t { font: 400 12px var(--mono); letter-spacing: .2em; color: var(--mulmul); }
.sf__w { font: italic 400 clamp(52px, 8vw, 130px)/.9 var(--serif); }
@media (prefers-reduced-motion: reduce) {
  .sf img { transition: opacity .6s linear; transform: none; }
  .grain, .cue-hint i::after, .cap-q4 i { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

/* ---------- vertical (9:16) recomposition ---------- */
@media (max-width: 900px) {
  .chrome nav { display: none; }
  .chrome .enquire { margin-left: auto; }
  .sec__head { display: block; }
  .sec__aside { margin-top: 20px; }
  .pal__wrap, .sheet__grid, .venue__grid, .visit { grid-template-columns: 1fr; }
  .sheet__out { position: static; }
  .mat__list { grid-template-columns: 1fr 1fr; }
  .mat__list li:nth-child(3) { margin-top: 0; }
}
@media (max-aspect-ratio: 17/20) {
  .title { bottom: 22vh; }
  .title__mark { font-size: clamp(48px, 15vw, 96px); }
  .title__mark em { padding-left: 0; }
  .title__line { flex-direction: column; gap: 6px; }
  .title__line span + span::before { display: none; }
  .cue-hint { left: var(--pad); right: auto; bottom: 10vh; }
  .hud { top: 76px; }
  .hud__time { font-size: 18px; }
  .rail { top: auto; bottom: 22px; translate: none; right: auto; left: var(--pad); }
  .rail ol { grid-auto-flow: column; padding: 14px 0 0; gap: 0 14px; }
  .rail ol::before, .rail ol::after { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .rail ol::after { width: calc(100% * var(--p)); height: 1px; right: auto; }
  .rail a { flex-direction: column; align-items: flex-start; gap: 0; }
  .rail em { display: none; }
  .cap-q1, .cap-q7 { bottom: 22vh; }
  .cap-q2 { right: auto; left: var(--pad); text-align: left; bottom: 22vh; }
  .cap-q3 { bottom: 22vh; }
  .coda { grid-template-columns: 1fr; align-content: end; }
  .coda__k { margin: 0 0 10px; align-self: end; }
  .coda__h, .coda__a { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .coda__h { font-size: 30px; max-width: 15ch; margin-bottom: 18px; }
  .fab { display: inline-flex; }
  html.in-film .fab { opacity: 0; pointer-events: none; }
  html:not(.in-film) .chrome .enquire { opacity: 0; pointer-events: none; }
  .fab, .chrome .enquire { transition: opacity .4s var(--ease); }
}
@media (max-width: 560px) {
  .f2 { grid-template-columns: 1fr; }
  .cue__opts { grid-template-columns: 1fr; }
  .opt { min-height: 0; }
  .opt--skip .opt__name { writing-mode: horizontal-tb; rotate: none; }
  .opt--skip { padding: 14px 16px; }
  .mat__list { grid-template-columns: 1fr; }
  .mat__list li:nth-child(n) { margin-top: 0; }
  .run__list summary { grid-template-columns: 56px 1fr 30px; min-height: 76px; }
  .run__list p { margin-left: 56px; }
  .sheet__rows li { grid-template-columns: 46px 26px 1fr; }
  .sheet__rows .o { grid-column: 3; }
  .sheet__rows .n { display: none; }
  .pal__name { font-size: 24px; }
}
