/* ============================================================================
   APEC — UPCOMING EVENTS · STYLESHEET
   A playbill in two acts: the main event as a full-screen cinema (the
   promotion film behind the words, the banner hung as a framed poster),
   then the education event as a banner on a paper-cream gallery wall.
   Ink / warm cream / brass — the shared language of the APEC pages.
   Content renders from data/events-data.js.
   ========================================================================== */

:root {
  --ink:        #0a0b0d;
  --ink-2:      #101217;
  --line:       rgba(237, 231, 216, 0.13);
  --cream:      #ede7d8;
  --cream-dim:  #b6afa0;
  --gold:       #c9a45c;
  --gold-hi:    #e6c581;
  --gold-dim:   rgba(201, 164, 92, 0.35);

  /* the gallery wall (the cream act) */
  --paper:      #ece5d4;
  --paper-2:    #e4dcc8;
  --ink-on-paper: #14151a;
  --dim-on-paper: #6f6959;
  --line-on-paper: rgba(20, 21, 26, 0.16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text:    "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", Consolas, "Courier New", monospace;

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 125%; /* +25%: 16→20px base type scale, for PC legibility */ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-text);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--ink); }

a { color: var(--gold-hi); }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 300;
  background: var(--gold); color: var(--ink);
  padding: 0.6rem 1rem; font-family: var(--font-mono); font-size: 0.8rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---- Boot veil ------------------------------------------------------------ */
.veil {
  position: fixed; inset: 0; z-index: 260; background: var(--ink);
  pointer-events: none; opacity: 1; transition: opacity 0.9s var(--ease-out);
}
body.booted .veil { opacity: 0; }

/* ---- Film grain ----------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.045;
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* ---- Custom cursor (identical to the sister pages) ------------------------ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none;
  border-radius: 50%; opacity: 0;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold-hi); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(201, 164, 92, 0.65);
  display: grid; place-items: center;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              margin 0.3s var(--ease-out), border-color 0.3s, background-color 0.3s;
}
.cursor-ring span {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity 0.2s;
  user-select: none;
}
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button, body.cursor-on [role="button"] { cursor: none; }
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-link {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-color: var(--gold); background: var(--gold);
}
.cursor-ring.is-link span { opacity: 1; }
.cursor-ring.is-down { transform: scale(0.85); }

/* ---- Fixed chrome ---------------------------------------------------------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem var(--pad);
  transition: background-color 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.site-head.is-scrolled {
  background: rgba(10, 11, 13, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  letter-spacing: 0.04em; color: var(--cream);
}
.brand__text small {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream-dim);
}
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.head-line {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cream-dim);
}
.head-home {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-hi); text-decoration: none;
  border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.head-home:hover { color: var(--cream); border-color: var(--cream); }

/* ---- Scroll progress hairline ---------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 210; }
.progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---- Buttons (the landing page's doorway buttons) --------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  padding: 1.15rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease-out),
    background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 10px 40px -12px rgba(201, 164, 92, 0.55);
}
.btn--gold:hover { background: var(--gold-hi); color: var(--ink); box-shadow: 0 14px 46px -12px rgba(230, 197, 129, 0.6); }

.btn--ghost {
  background: rgba(10, 11, 13, 0.3); color: var(--cream);
  border-color: rgba(237, 231, 216, 0.38); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cream); color: var(--cream); }

.btn__arrow { font-style: normal; transition: translate 0.25s var(--ease-out); }
.btn:hover .btn__arrow { translate: 0.18rem -0.1rem; }

.btn__play {
  font-style: normal; font-size: 0.6rem; line-height: 1;
  display: inline-grid; place-items: center;
  width: 1.7em; height: 1.7em; border-radius: 50%;
  border: 1px solid currentColor; padding-left: 0.12em;
}

/* ============================================================================
   ACT I — THE CINEMA (an event with a film)
   ========================================================================== */
.act-cinema {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  /* the last rem of padding is the scroll cue's reserved band */
  padding: calc(var(--pad) + 4.5rem) var(--pad) clamp(5.5rem, 11vh, 7.5rem);
  overflow: clip;
}

.act-cinema__film, .act-cinema__poster, .act-cinema__slide {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
}
.act-cinema__film { filter: saturate(0.92); }

/* the still backdrop — a slow cross-fade of photos, in place of a film */
.act-cinema__slide { filter: saturate(0.92); opacity: 0; transition: opacity 1.4s ease; }

/* the ink vignette that keeps the words readable over the film */
.act-cinema__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.62) 0%, rgba(10, 11, 13, 0.18) 30%,
                            rgba(10, 11, 13, 0.28) 55%, rgba(10, 11, 13, 0.88) 100%),
    radial-gradient(120% 90% at 18% 78%, rgba(10, 11, 13, 0.55) 0%, transparent 60%);
}

/* the giant ghost numeral, top right */
.act__num {
  position: absolute; z-index: -1; top: 2rem; right: 1.5rem;
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(9rem, 26vw, 24rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px rgba(237, 231, 216, 0.16);
  pointer-events: none; user-select: none;
}

.act-cinema__grid {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.act-cinema__stack { max-width: 62rem; }

/* № 01 — Flagship Congress ......................................... */
.act__kicker {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--cream-dim);
  margin-bottom: clamp(1rem, 2.5vh, 1.8rem);
}
.act__kicker .num { color: var(--gold-hi); }
.act__kicker .rule { width: 3.2rem; height: 1px; background: var(--gold-dim); }

.act__title {
  font-family: var(--font-display); font-weight: 330; line-height: 0.98;
  font-size: clamp(2.9rem, 9vw, 8rem); letter-spacing: -0.015em;
  color: var(--cream); text-wrap: balance;
}
.act__title em { font-style: italic; color: var(--gold-hi); font-weight: 300; }

.act__theme {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem); color: var(--gold);
  margin-top: clamp(0.6rem, 1.6vh, 1.1rem);
}

.act__sub {
  max-width: 46ch; color: var(--cream-dim);
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  margin-top: clamp(0.7rem, 1.8vh, 1.2rem);
}

/* date · venue · city ............................................. */
.act__meta {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.1rem; row-gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--cream);
  margin-top: clamp(1rem, 2.4vh, 1.6rem);
}
.act__meta .dot { color: var(--gold); }

/* the countdown ................................................... */
.count {
  display: inline-flex; align-items: stretch;
  border-block: 1px solid var(--line);
  margin-top: clamp(1.1rem, 2.6vh, 1.9rem);
}
.count__cell {
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
  padding: 0.7rem clamp(0.9rem, 2vw, 1.6rem);
  border-left: 1px solid var(--line);
}
.count__cell:first-child { border-left: 0; }
.count__n {
  font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1; color: var(--gold-hi);
}
.count__l {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--cream-dim);
}

/* “Happening now” */
.live-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-top: clamp(1.1rem, 2.6vh, 1.9rem);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink);
  background: var(--gold); border-radius: 999px; padding: 0.55rem 1.1rem;
}
.live-pill i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
  animation: live-blink 1.4s ease-in-out infinite;
}
@keyframes live-blink { 50% { opacity: 0.25; } }

/* “Save the date” — the quiet stand-in for the countdown when the date is TBA */
.await {
  display: inline-flex; align-items: center;
  margin-top: clamp(1.1rem, 2.6vh, 1.9rem);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold-hi);
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: 0.55rem 1.1rem;
}

/* the buttons ...................................................... */
.act__ctas {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem;
  margin-top: clamp(1.4rem, 3.2vh, 2.2rem);
}

/* the framed poster, hanging bottom-right ......................... */
.plate {
  flex: 0 0 auto;
  width: clamp(150px, 17vw, 250px);
  background: var(--cream); border: 0; padding: clamp(7px, 0.8vw, 11px);
  padding-bottom: clamp(26px, 2.6vw, 36px);
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.65), 0 6px 18px -8px rgba(0, 0, 0, 0.5);
  rotate: 2.4deg; cursor: pointer;
  transition: rotate 0.45s var(--ease-out), translate 0.45s var(--ease-out),
              box-shadow 0.45s;
}
.plate:hover, .plate:focus-visible {
  rotate: 0deg; translate: 0 -8px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.75), 0 10px 24px -10px rgba(0, 0, 0, 0.55);
}
.plate img { width: 100%; }
.plate figcaption, .plate__caption {
  font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: #6f6959; text-align: center;
  margin-top: clamp(8px, 0.9vw, 12px);
}

/* the sound pill (same as the landing page) ....................... */
.sound {
  position: absolute; right: var(--pad); bottom: 1.4rem; z-index: 5;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(10, 11, 13, 0.35); color: var(--cream-dim);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.6rem 1.05rem; backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.sound:hover { color: var(--cream); border-color: rgba(237, 231, 216, 0.45); }
.sound i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cream-dim);
  transition: background-color 0.25s, box-shadow 0.25s;
}
.sound.is-on { color: var(--gold-hi); border-color: var(--gold-dim); }
.sound.is-on i { background: var(--gold-hi); box-shadow: 0 0 10px rgba(230, 197, 129, 0.8); }

/* the letterboxed band — a landscape film on a portrait screen ..... */
.act-cinema.is-band {
  justify-content: flex-start;
  padding-top: calc(var(--head-h, 64px) + var(--band-h, 56vw) + 1.6rem);
}
.act-cinema.is-band .act-cinema__film,
.act-cinema.is-band .act-cinema__poster {
  inset: var(--head-h, 64px) 0 auto 0;
  height: var(--band-h, 56vw);
  object-fit: contain;
}
.act-cinema.is-band .act-cinema__shade { display: none; }
.act-cinema.is-band .act__num {
  top: calc(var(--head-h, 64px) + var(--band-h, 56vw) - 2.5rem);
  font-size: clamp(7rem, 22vw, 14rem);
}
.act-cinema.is-band .sound {
  right: 0.9rem; bottom: auto;
  top: calc(var(--head-h, 64px) + var(--band-h, 56vw) - 3rem);
}

/* the scroll cue .................................................. */
.act__cue {
  position: absolute; left: 50%; bottom: 1.1rem; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--cream-dim);
}
.act__cue em {
  width: 1px; height: 2.6rem; background: var(--gold-dim); overflow: hidden;
  position: relative; display: block;
}
.act__cue em::after {
  content: ""; position: absolute; inset: 0; background: var(--gold-hi);
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============================================================================
   THE TICKER — a slow marquee between the acts
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden; padding-block: 0.85rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 3.2rem; width: max-content;
  animation: marquee-slide 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__seq {
  display: flex; gap: 3.2rem; align-items: center; white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--cream-dim);
}
.marquee__seq b { font-weight: 400; color: var(--gold-hi); }
.marquee__seq i { font-style: normal; color: var(--gold); }
@keyframes marquee-slide { to { transform: translateX(-50%); } }

/* ============================================================================
   ACT II — THE GALLERY WALL (an event without a film)
   ========================================================================== */
.act-gallery {
  position: relative; isolation: isolate;
  background:
    radial-gradient(130% 110% at 82% -8%, rgba(201, 164, 92, 0.14) 0%, transparent 46%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink-on-paper);
  padding: clamp(4rem, 9vh, 7rem) var(--pad) clamp(4.5rem, 10vh, 7.5rem);
  overflow: clip;
}
.act-gallery ::selection { background: var(--ink); color: var(--cream); }

.act-gallery .act__num {
  top: 1.2rem; right: 1rem;
  -webkit-text-stroke: 1px rgba(20, 21, 26, 0.18);
}

.act-gallery__inner { max-width: 72rem; margin-inline: auto; }

.act-gallery .act__kicker { color: var(--dim-on-paper); }
.act-gallery .act__kicker .num { color: #8a6a2f; }
.act-gallery .act__kicker .rule { background: rgba(20, 21, 26, 0.25); }

.act-gallery .act__title {
  color: var(--ink-on-paper);
  font-size: clamp(2.3rem, 6vw, 5rem);
}
.act-gallery .act__title em { color: #8a6a2f; }

.act-gallery .act__theme { color: #7c5f2a; }
.act-gallery .act__sub { color: var(--dim-on-paper); max-width: 60ch; }

.act-gallery .act__meta { color: var(--ink-on-paper); }
.act-gallery .act__meta .dot { color: #8a6a2f; }

/* the banner, hung on the wall .................................... */
.wall-plate {
  display: block; width: 100%; border: 0; cursor: pointer;
  background: #fbf8f0; padding: clamp(8px, 1vw, 14px);
  margin-top: clamp(1.8rem, 4vh, 3rem);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 70px -24px rgba(20, 21, 26, 0.45),
    0 8px 22px -10px rgba(20, 21, 26, 0.3);
  transition: translate 0.45s var(--ease-out), box-shadow 0.45s;
}
.wall-plate:hover, .wall-plate:focus-visible {
  translate: 0 -6px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 44px 90px -26px rgba(20, 21, 26, 0.5),
    0 12px 28px -12px rgba(20, 21, 26, 0.32);
}
.wall-plate img { width: 100%; }
.wall-plate .plate__caption { color: var(--dim-on-paper); }

/* details under the banner ........................................ */
.act-gallery__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.2rem; margin-top: clamp(1.4rem, 3vh, 2.2rem);
}

.act-gallery .btn--ghost {
  background: transparent; color: var(--ink-on-paper);
  border-color: rgba(20, 21, 26, 0.4); backdrop-filter: none;
}
.act-gallery .btn--ghost:hover { border-color: var(--ink-on-paper); }

/* the “concluded” stamp ........................................... */
.stamp {
  display: inline-block; rotate: -6deg;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(20, 21, 26, 0.62);
  border: 1.5px solid rgba(20, 21, 26, 0.4); border-radius: 4px;
  padding: 0.5rem 0.9rem 0.45rem 1.15rem;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(20, 21, 26, 0.12);
}
.act-cinema .stamp {
  color: var(--cream-dim); border-color: rgba(237, 231, 216, 0.4);
  box-shadow: none; margin-top: 1.4rem;
}

/* ---- Footer ----------------------------------------------------------------- */
.site-foot {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  text-align: center; padding: clamp(3.5rem, 8vh, 5.5rem) var(--pad) 3rem;
  border-top: 1px solid var(--line);
}
.site-foot img { opacity: 0.9; }
.site-foot__org {
  font-family: var(--font-display); font-weight: 400; font-size: 1.05rem;
  color: var(--cream);
}
.site-foot__note { font-size: 0.85rem; color: var(--cream-dim); max-width: 44rem; }
.site-foot__link a {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-hi); text-decoration: none;
  border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px;
}
.site-foot__link a:hover { color: var(--cream); border-color: var(--cream); }
.site-foot__social { display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.site-foot__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  color: var(--gold-hi); border: 1px solid var(--gold-dim);
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.site-foot__social a:hover { color: var(--cream); border-color: var(--cream); transform: translateY(-2px); }
.site-foot__social svg { display: block; width: 1.1rem; height: 1.1rem; }

/* ============================================================================
   THE LIGHTBOXES — the film, and the poster, in the top layer
   ========================================================================== */
.lightbox {
  border: 1px solid var(--line); background: var(--ink-2); color: var(--cream);
  padding: 0; margin: auto; max-width: min(1100px, 94vw);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9);
}
.lightbox--film { width: min(1100px, 94vw); }
.lightbox--poster { max-width: min(920px, 94vw); }

.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem 1rem 0.8rem 1.25rem; border-bottom: 1px solid var(--line);
}
.lightbox__title {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--cream-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lightbox__close {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--cream); font-size: 0.85rem;
  border: 1px solid rgba(237, 231, 216, 0.35); cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, rotate 0.35s var(--ease-out);
}
.lightbox__close:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); rotate: 90deg; }

.lightbox__video { display: block; width: 100%; max-height: 76vh; background: #000; }
.lightbox__img   { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: var(--ink); }

/* entry / exit — @starting-style + allow-discrete (top-layer animation) */
.lightbox {
  opacity: 0; transform: translateY(14px) scale(0.97);
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    display 0.35s allow-discrete,
    overlay 0.35s allow-discrete;
}
.lightbox[open] { opacity: 1; transform: none; }
@starting-style {
  .lightbox[open] { opacity: 0; transform: translateY(14px) scale(0.97); }
}
.lightbox::backdrop {
  background: rgba(5, 6, 8, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition:
    background-color 0.35s ease-out,
    backdrop-filter 0.35s ease-out,
    display 0.35s allow-discrete,
    overlay 0.35s allow-discrete;
}
.lightbox[open]::backdrop {
  background: rgba(5, 6, 8, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
@starting-style {
  .lightbox[open]::backdrop {
    background: rgba(5, 6, 8, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
}

/* ---- Reveals ----------------------------------------------------------------- */
.reveal {
  opacity: 0; translate: 0 26px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; translate: 0 0; }

/* ---- Noscript ------------------------------------------------------------------ */
.noscript-note {
  position: relative; z-index: 400; max-width: 40rem;
  margin: 20vh auto 0; padding: 1.5rem;
  background: var(--ink-2); border: 1px solid var(--line); text-align: center;
}

/* ============================================================================
   SMALL SCREENS
   ========================================================================== */
@media (max-width: 900px) {
  .act-cinema__grid { flex-direction: column; align-items: flex-start; }
  .plate { rotate: 1.6deg; width: clamp(140px, 34vw, 210px); align-self: flex-end; margin-top: 0.5rem; }
  .act__num { right: 0.6rem; }
}

@media (max-width: 640px) {
  .btn { padding: 1rem 1.4rem; font-size: 0.78rem; }
  .count { display: flex; width: 100%; justify-content: space-between; }
  .count__cell { padding-inline: 0.6rem; }
  .act-cinema { padding-bottom: 4.5rem; }
  .act__cue { display: none; }
  .head-line { display: none; }
  /* portrait phones crop the film to its busiest middle — more ink for the words */
  .act-cinema__shade {
    background:
      linear-gradient(180deg, rgba(10, 11, 13, 0.66) 0%, rgba(10, 11, 13, 0.38) 30%,
                              rgba(10, 11, 13, 0.48) 55%, rgba(10, 11, 13, 0.92) 100%),
      radial-gradient(120% 90% at 18% 78%, rgba(10, 11, 13, 0.6) 0%, transparent 60%);
  }
}

/* ============================================================================
   REDUCED MOTION · STATIC MODE (?static for screenshots)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .act__cue em::after { animation: none; }
  .marquee__track { animation: none; }
  .live-pill i { animation: none; }
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .veil { transition: none; }
  .lightbox, .lightbox::backdrop { transition-duration: 0.1s; }
  .lightbox { transform: none; }
  @starting-style { .lightbox[open] { transform: none; } }
  .plate, .wall-plate, .btn, .lightbox__close { transition: none; }
}

html.static .grain, html.static .veil,
html.static .cursor-dot, html.static .cursor-ring { display: none; }
html.static .reveal { opacity: 1; translate: 0 0; transition: none; }
html.static .marquee__track, html.static .act__cue em::after,
html.static .live-pill i { animation: none; }
