/* Option D (v2): three dead spotlights, a pull cord, a nervous figure.
   The figure pulls the cord, all three lights stutter on out of sync, then
   swing onto the logo (option A's focus) and the cord hoists him off the floor,
   kicking. The barbells rise. He hangs there until someone hovers or focuses a
   barbell; then he drops, runs over and lifts it the way today's lifter does.

   The rules without a state class ARE the finished page, so no JS (or reduced
   motion) shows lights on the logo and buttons visible. States, on the stage:
     d-dark      lights dead, stage and logo dark
     d-unfocused lights on but not yet on the logo
     d-flicker   the three lights stuttering on
     d-wait      buttons not shown yet (still in the page and focusable)
     d-reveal    buttons rising in
     d-skip      jump to the finished state with no transitions
   html.d-intro (front-door-stage-head.js, before first paint) stands in for d-dark +
   d-wait until front-door-stage.js takes over; a fail-safe shows everything after 3s. */

/* Room between the lights and the logo for the man on the cord, and a logo
   sized so that logo, his space and both barbells fit the first screen
   (1280x720 and up, and 390x844). The logo's laid-out size is its lit size:
   it only grows INTO that box (scale .9 -> 1), so nothing below moves. */
.hero-stage.lit-stage { padding-top: 250px; padding-bottom: 16px; }
.lit-stage .hero-3d { width: max(240px, min(calc(100% - 32px), 806px, calc((100svh - 250px - 64px - 2 * 110px - 16px) * 650 / 310))); }
@media (min-width: 720px) {
  .hero-stage.lit-stage { padding-top: 256px; padding-bottom: 28px; gap: 24px; }   /* 28: his feet clear the screen's bottom edge when he lifts */
  .lit-stage .hero-3d { width: min(calc(100% - 48px), 860px, calc((100svh - 256px - 24px - 8px - 110px - 16px - 28px) * 650 / 310)); }
}

/* Aims: JS swings them (--ca, --csx, --csy); these are the no-JS fallbacks. */
.lit-stage .hero-fx:nth-child(2) { --ca: -15deg; }
.lit-stage .hero-fx:nth-child(3) { --ca: 0deg; }
.lit-stage .hero-fx:nth-child(4) { --ca: 15deg; }
.lit-stage .hero-fx { transform: rotate(var(--ca)); }
.lit-stage .hero-ray { transform-origin: 50% 0; transform: scale(var(--csx, 1), var(--csy, 1)); }
.lit-stage .hero-key .hero-ray { transform: scale(var(--csx, 1.25), var(--csy, 1)); }
.lit-stage .hero-spot, .lit-stage .hero-pools { display: none; }
.lit-stage .hero-platform, .lit-stage > .hero-chalk { transition: opacity .9s ease; }
.lit-stage .hero-platform { opacity: .45; }
.lit-stage > .hero-chalk { opacity: .6; }

/* House lights down except an ellipse round the logo (A's look). */
.lit-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity 1s ease;
  background: radial-gradient(ellipse var(--lrx, 480px) var(--lry, 300px) at var(--lx, 50%) var(--ly, 40%), transparent 40%, rgba(4,6,2,.62) 100%); }
/* The dead-dark layer: under the dust (tree order), over the rig. */
.lit-stage::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(3,4,2,.72); opacity: 0; }

.lit-stage .hero-3d { scale: 1; transition: scale 1s cubic-bezier(.3,.8,.25,1); }
.lit-stage .hero-glow { filter: blur(26px) brightness(1.7); transition: opacity 1s ease; }
.lit-stage .hero-logo { transition: filter 1s ease; }
/* The image fills its <h1> exactly, so the roof flag (positioned in % of the
   <h1>) stands on the drawn roof at every size and through the grow and float:
   both sit in the same transformed box. */
.lit-stage .hero-logo .brand-logo { width: 100%; max-width: none; height: auto; }
.lit-stage .brand-logo { filter: brightness(1.85) drop-shadow(0 0 70px rgba(196,214,107,.5)) drop-shadow(0 0 14px rgba(255,250,225,.35)); }
.lit-stage .hero-shine { animation-delay: 4s; }

/* ── Dark: before the pull ─────────────────────────────────────────────── */
:is(.d-intro .lit-stage, .lit-stage.d-dark)::before { opacity: 1; }
:is(.d-intro .lit-stage, .lit-stage.d-dark) :is(.hero-ray, .hero-glare) { opacity: 0; }
:is(.d-intro .lit-stage, .lit-stage.d-dark) :is(.hero-lens, .hero-glare) { opacity: 0; }   /* dead: only the dark glass shows */
:is(.d-intro .lit-stage, .lit-stage.d-dark) .hero-logo { filter: brightness(.16); }
:is(.d-intro .lit-stage, .lit-stage.d-dark, .lit-stage.d-unfocused) .hero-glow { opacity: 0; }
:is(.d-intro .lit-stage, .lit-stage.d-dark, .lit-stage.d-unfocused) .hero-3d { scale: .9; }
:is(.d-intro .lit-stage, .lit-stage.d-dark, .lit-stage.d-unfocused)::after { opacity: 0; }
:is(.d-intro .lit-stage, .lit-stage.d-dark) .hero-platform { opacity: .2; }
:is(.d-intro .lit-stage, .lit-stage.d-dark) > .hero-chalk { opacity: .35; }
/* Lights on, still pointing at the floor: the logo is only half lit. */
.lit-stage.d-unfocused .hero-logo { filter: brightness(.45); }
.lit-stage.d-unfocused .hero-platform { opacity: .8; }

/* ── Flicker: one 1.3s beat, the length of the hoist. Two slow, weak
   flickers, then a fast burst, then the lamps catch.
   Photosensitive safety (WCAG 2.3.1): the fast burst (about 10 a second)
   is only on the lamp lenses and glare streaks (small areas) and a modest
   change in the beams' brightness (.6 <-> .8 of an already faint beam, well
   under a 10% luminance step on this dark stage). The stage-wide changes
   (the dark layer, the logo, the floor) happen only at 0.10s, 0.47s, 0.81s
   and 1.24s: never more than 3 a second. Hard pops (steps), no fades. ─── */
@keyframes dLensA { 0% { opacity: 0; } 8% { opacity: .6; } 20% { opacity: 0; } 36% { opacity: .7; } 48% { opacity: 0; } 62% { opacity: 1; } 66% { opacity: 0; } 69% { opacity: 1; } 73% { opacity: 0; } 76% { opacity: 1; } 80% { opacity: 0; } 83% { opacity: 1; } 87% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes dLensB { 0% { opacity: 0; } 36% { opacity: .5; } 48% { opacity: 0; } 63.5% { opacity: 1; } 67% { opacity: 0; } 70.5% { opacity: 1; } 74% { opacity: 0; } 77.5% { opacity: 1; } 81% { opacity: 0; } 84.5% { opacity: 1; } 87% { opacity: 0; } 88% { opacity: 1; } 90% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes dLensC { 0% { opacity: 0; } 8% { opacity: .4; } 20% { opacity: 0; } 62% { opacity: 1; } 65% { opacity: 0; } 71% { opacity: 1; } 74% { opacity: 0; } 80% { opacity: 1; } 84% { opacity: 0; } 95%, 100% { opacity: 1; } }
@keyframes dRayA { 0% { opacity: 0; } 8% { opacity: .3; } 20% { opacity: 0; } 36% { opacity: .4; } 48% { opacity: 0; } 62% { opacity: .8; } 66% { opacity: .6; } 69% { opacity: .8; } 73% { opacity: .6; } 76% { opacity: .8; } 80% { opacity: .6; } 83% { opacity: .8; } 87% { opacity: .6; } 95%, 100% { opacity: 1; } }
@keyframes dRayB { 0% { opacity: 0; } 36% { opacity: .3; } 48% { opacity: 0; } 62% { opacity: .6; } 63.5% { opacity: .8; } 67% { opacity: .6; } 70.5% { opacity: .8; } 74% { opacity: .6; } 77.5% { opacity: .8; } 81% { opacity: .6; } 84.5% { opacity: .8; } 87% { opacity: .6; } 95%, 100% { opacity: 1; } }
@keyframes dRayC { 0% { opacity: 0; } 8% { opacity: .25; } 20% { opacity: 0; } 62% { opacity: .8; } 65% { opacity: .6; } 71% { opacity: .8; } 74% { opacity: .6; } 80% { opacity: .8; } 84% { opacity: .6; } 95%, 100% { opacity: 1; } }
@keyframes dOff { 0% { opacity: 1; } 8% { opacity: .8; } 20% { opacity: 1; } 36% { opacity: .75; } 48% { opacity: 1; } 62% { opacity: .6; } 95%, 100% { opacity: 0; } }
@keyframes dHalf { 0% { filter: brightness(.16); } 8% { filter: brightness(.22); } 20% { filter: brightness(.16); } 36% { filter: brightness(.25); } 48% { filter: brightness(.16); } 62% { filter: brightness(.3); } 95%, 100% { filter: brightness(.45); } }
@keyframes dPlat { 0% { opacity: .2; } 8% { opacity: .3; } 20% { opacity: .2; } 36% { opacity: .35; } 48% { opacity: .2; } 62% { opacity: .5; } 95%, 100% { opacity: .8; } }
.lit-stage.d-flicker .hero-fx:nth-child(2) :is(.hero-glare, .hero-lens) { animation: dLensA 1.3s steps(1, end) both; }
.lit-stage.d-flicker .hero-fx:nth-child(3) :is(.hero-glare, .hero-lens) { animation: dLensB 1.3s steps(1, end) both; }
.lit-stage.d-flicker .hero-fx:nth-child(4) :is(.hero-glare, .hero-lens) { animation: dLensC 1.3s steps(1, end) both; }
.lit-stage.d-flicker .hero-fx:nth-child(2) .hero-ray { animation: dRayA 1.3s steps(1, end) both; }
.lit-stage.d-flicker .hero-fx:nth-child(3) .hero-ray { animation: dRayB 1.3s steps(1, end) both; }
.lit-stage.d-flicker .hero-fx:nth-child(4) .hero-ray { animation: dRayC 1.3s steps(1, end) both; }
.lit-stage.d-flicker::before { animation: dOff 1.3s steps(1, end) both; }
.lit-stage.d-flicker.d-unfocused .hero-logo { animation: dHalf 1.3s steps(1, end) both; }
.lit-stage.d-flicker .hero-platform { animation: dPlat 1.3s steps(1, end) both; }

/* ── Buttons wait, then rise ───────────────────────────────────────────── */
.lit-stage.d-wait .hero-links { opacity: 0; pointer-events: none; }
.d-intro .lit-stage .hero-links { animation: dFailsafe .4s 3s both; }
@keyframes dFailsafe { from { opacity: 0; } to { opacity: 1; } }
.d-intro .lit-stage::before { animation: dFailsafeDark .4s 3s both; }
@keyframes dFailsafeDark { from { opacity: 1; } to { opacity: 0; } }
.lit-stage.d-reveal .hero-links > * { animation: rise .6s cubic-bezier(.2,.8,.25,1) both; }
.lit-stage.d-reveal .hero-links > *:nth-child(2) { animation-delay: .15s; }

.lit-stage.d-skip, .lit-stage.d-skip *, .lit-stage.d-skip::before, .lit-stage.d-skip::after { transition: none !important; }

/* The far half of his spin round the flag pole: the logo (pole, flag) in front of him. */
.lit-stage.d-behind .hero-3d { z-index: 3; }

/* ── The pull cord (drawn by front-door-stage.js in the actors layer) ───────────── */
.hero-cord { stroke: #8E947B; stroke-width: 2; stroke-linecap: round; }
.hero-cord-grip { stroke: #C9CDB8; stroke-width: 6; stroke-linecap: round; }

/* ── Barbell buttons ───────────────────────────────────────────────────────
   Same .beam / .face / .sleeve boxes as today, so the front-squat lifter
   still racks the right-hand sleeve (L = face width + 54) and the bar pivots on
   its left end. The face loses its box: the label sits on a thin knurled bar
   running along the face's bottom, with logo-style plates, collars and a
   stub sleeve at the left. The bar's centre line is 28px above the face bottom
   (half the biggest plate) and 67px above the link's bottom, as before, so the
   lifter's floor (bar + 62.5) is where it always was. */
/* --fs: the stick figure's scale inside a barbell, so he is the same size as
   the man on the cord (.72 on phones, .9 on desktop = .6923 x the barbell's 1.3). */
.lit-stage .hero-lift { --run: 36px; --fs: .72; --bb: 44px; padding: 32px var(--run) calc(var(--bb) - 28px) 0; }   /* --bb: bar line to link bottom, room for his floor (bar + 62.5 x --fs) */
.lit-stage .hero-lift .beam { align-items: flex-end; transform-origin: 0 calc(100% - 28px); }
.lit-stage .hero-lift .face {
  position: relative; height: auto; min-height: 62px;
  align-items: flex-end; gap: 10px;
  padding: 0 10px 35px 50px;
  background: none; border: 0; border-radius: 4px;
}
/* The bar: 5px against 54px plates (a 28mm bar against 450mm bumpers, give
   or take), a top highlight, and knurling on the two grip sections. */
.lit-stage .hero-lift .face::before { content: ''; position: absolute; left: 40px; right: -1px; bottom: 25.5px; height: 5px; border-radius: 2.5px;
  background:
    repeating-linear-gradient(60deg, rgba(20,24,12,.55) 0 1px, transparent 1px 2.6px) 12% 0 / 30% 100% no-repeat,
    repeating-linear-gradient(-60deg, rgba(20,24,12,.45) 0 1px, transparent 1px 2.6px) 12% 0 / 30% 100% no-repeat,
    repeating-linear-gradient(60deg, rgba(20,24,12,.55) 0 1px, transparent 1px 2.6px) 88% 0 / 30% 100% no-repeat,
    repeating-linear-gradient(-60deg, rgba(20,24,12,.45) 0 1px, transparent 1px 2.6px) 88% 0 / 30% 100% no-repeat,
    linear-gradient(to bottom, #6C725B 0%, #EEF0E2 30%, #B4B9A0 55%, #6A705A 80%, #3E4331 100%);
  box-shadow: 0 2px 3px rgba(0,0,0,.5); }

/* Plates: drawn like the plates in the TLT logo, in solid copper (the
   site's --copper tokens, copied here because this page doesn't load
   tlt-site.css). As in the logo: three flat rounded slabs stepped big, mid,
   small (heights 79:65:51 in the PNG), touching, each edged in a thin dark
   line; a thin collar tab each side of the stack; a short stub sleeve
   outside. Fully opaque; darker copper at the edges keeps them reading as
   discs. */
.lit-stage { --copper: #b4652d; --copper-light: #d38a4f; --copper-deep: #a25b28; --copper-dark: #5e3214; }
.lit-stage .hero-lift .plate { position: absolute; border: 0; border-radius: 2.5px; opacity: 1;
  background:
    linear-gradient(to bottom, rgba(255,226,196,.22), rgba(255,226,196,0) 14%, rgba(0,0,0,0) 84%, rgba(40,18,4,.4)),
    linear-gradient(90deg, var(--copper-deep) 0%, var(--copper) 22%, var(--copper-light) 48%, var(--copper) 74%, var(--copper-deep) 100%),
    var(--copper);
  box-shadow: 0 0 0 1px #1A1208; }
.lit-stage .hero-lift .plate::after { content: none; }
.lit-stage .hero-lift .plate.p1 { width: 9px; height: 38px; top: calc(50% - 19px); }   /* ~half his standing height */
.lit-stage .hero-lift .plate.p2 { width: 8px; height: 31px; top: calc(50% - 15.5px); }
.lit-stage .hero-lift .plate.p3 { width: 7px; height: 25px; top: calc(50% - 12.5px); }
/* Collar tabs: thin steel, like the logo's. The inner one is a pseudo. */
.lit-stage .hero-lift .collar, .lit-stage .hero-lift .sleeve::before, .lit-stage .hero-lift .lplate::after {
  content: ''; position: absolute; width: 2.5px; height: 13px; top: calc(50% - 6.5px); border-radius: 1px;
  background: linear-gradient(90deg, #6A705A, #EEF0E2 50%, #8A907A); box-shadow: 0 0 0 .5px #1A1208; }
.lit-stage .hero-lift .collar::after { content: none; }

/* Right sleeve: polished stub, a touch thicker than the bar. Inside out:
   collar, big, mid, small, collar, then the bare end he racks. */
.lit-stage .hero-lift .sleeve { flex-shrink: 0; width: 56px; height: 8px; margin-bottom: 24px; border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, #7B8166 0%, #F6F7EE 32%, #C3C8B0 58%, #6E7459 85%, #4A4F3C 100%); }
.lit-stage .hero-lift .sleeve::before { left: 0; }
.lit-stage .hero-lift .sleeve .plate.p1 { left: 3.5px; }
.lit-stage .hero-lift .sleeve .plate.p2 { left: 13.5px; }
.lit-stage .hero-lift .sleeve .plate.p3 { left: 22.5px; }
.lit-stage .hero-lift .sleeve .collar { left: 30.5px; }
/* Left end, mirrored: stub, collar, small, mid, big, collar, then the bar. */
.lit-stage .hero-lift .lplate { position: absolute; left: 0; bottom: 0; width: 42px; height: 56px; }
.lit-stage .hero-lift .lplate .end { position: absolute; left: 0; width: 13px; height: 8px; top: calc(50% - 4px); border-radius: 3px 0 0 3px;
  background: linear-gradient(to bottom, #7B8166 0%, #F6F7EE 32%, #C3C8B0 58%, #6E7459 85%, #4A4F3C 100%); }
.lit-stage .hero-lift .lplate .collar { left: 10px; }
.lit-stage .hero-lift .lplate .plate.p3 { left: 13.5px; }
.lit-stage .hero-lift .lplate .plate.p2 { left: 21.5px; }
.lit-stage .hero-lift .lplate .plate.p1 { left: 30.5px; }
.lit-stage .hero-lift .lplate::after { left: 40.5px; }

/* Soft contact shadows on the stage floor (bar + 62.5): darker under each
   plate stack, a faint band under the bar. Static: it stays put during a lift. */
.lit-stage .hero-lift::before { content: ''; position: absolute; left: -4px; right: calc(var(--run) - 8px); bottom: calc(var(--bb) - 62.5px * var(--fs) - 7.5px); height: 15px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(0,0,0,.7), transparent) 0 0 / 64px 100% no-repeat,
    radial-gradient(closest-side, rgba(0,0,0,.7), transparent) 100% 0 / 70px 100% no-repeat,
    radial-gradient(closest-side, rgba(0,0,0,.35), transparent) 50% 0 / 100% 70% no-repeat; }

.lit-stage .hero-lift .label { color: var(--text-primary); text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.lit-stage .hero-lift svg.fig { top: auto; bottom: calc(var(--bb) - 1px); scale: var(--fs); transform-origin: 0 0; }   /* origin on the bar line */
/* Hover/focus: the label lights up and the bar dips a touch (the lifter runs
   as today). Press dips it further. `translate` composes with the lifter's
   inline rotate. */
.lit-stage .hero-lift:is(:hover, :focus-visible, .lifting) .face { border-color: transparent; }
.lit-stage .hero-lift .beam { transition: transform .45s var(--ease), translate .15s ease; }
.lit-stage .hero-lift:hover .beam { translate: 0 2px; }
.lit-stage .hero-lift:active .beam { translate: 0 4px; }
.lit-stage .hero-lift:focus-visible .face { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 360px) {
  .lit-stage .hero-lift .face { padding-left: 38px; padding-right: 6px; }
  .lit-stage .hero-lift .label { font-size: 15px; }
  .lit-stage .hero-lift .face::before { left: 30px; }
  .lit-stage .hero-lift .plate.p1 { width: 7px; height: 34px; top: calc(50% - 17px); }
  .lit-stage .hero-lift .plate.p2 { width: 6.5px; height: 28px; top: calc(50% - 14px); }
  .lit-stage .hero-lift .plate.p3 { width: 5.5px; height: 22px; top: calc(50% - 11px); }
  .lit-stage .hero-lift .lplate { width: 34px; }
  .lit-stage .hero-lift .lplate .end { width: 10px; }
  .lit-stage .hero-lift .lplate .collar { left: 8px; }
  .lit-stage .hero-lift .lplate .plate.p3 { left: 11px; }
  .lit-stage .hero-lift .lplate .plate.p2 { left: 17.5px; }
  .lit-stage .hero-lift .lplate .plate.p1 { left: 24.5px; }
  .lit-stage .hero-lift .lplate::after { left: 32px; }
  .lit-stage .hero-lift .sleeve { width: 44px; }
  .lit-stage .hero-lift .sleeve .plate.p1 { left: 2.5px; }
  .lit-stage .hero-lift .sleeve .plate.p2 { left: 10px; }
  .lit-stage .hero-lift .sleeve .plate.p3 { left: 17px; }
  .lit-stage .hero-lift .sleeve .collar { left: 23.5px; }
}
@media (min-width: 720px) { .lit-stage .hero-lift { --run: 118px; --fs: .6923; scale: 1.3; } .lit-stage .hero-links { gap: 18px 120px; } }
/* Phones: room between the logo and the first barbell for him to hurdle it. */
@media (max-width: 719px) { .hero-stage.lit-stage { gap: 64px; } }

/* ── Stage hardware: box truss, mounts, fixtures, beams, pool ─────────────
   CSS gradients only (no images, no animated blurs). */

/* Box truss: two round front chords, a darker back face, diagonal lacing,
   verticals and bolted joint plates at every node (60px bays). */
.lit-stage .hero-truss { height: 46px; border: 0;
  background:
    radial-gradient(circle at 30px 4.5px, #e4e7d6 0 1.1px, #4a4f3c 1.3px 1.9px, transparent 2.2px) 0 0 / 60px 9px repeat-x,
    radial-gradient(circle at 30px 4.5px, #e4e7d6 0 1.1px, #4a4f3c 1.3px 1.9px, transparent 2.2px) 0 37px / 60px 9px repeat-x,
    linear-gradient(90deg, transparent 24px, #3a3f2e 24px, #8d937a 30px, #3a3f2e 36px, transparent 36px) 0 0 / 60px 9px repeat-x,
    linear-gradient(90deg, transparent 24px, #3a3f2e 24px, #8d937a 30px, #3a3f2e 36px, transparent 36px) 0 37px / 60px 9px repeat-x,
    linear-gradient(to bottom, #1d2116 0%, #d7dbc8 32%, #8b9177 58%, #2a2e20 100%) 0 1px / 100% 7px no-repeat,
    linear-gradient(to bottom, #1d2116 0%, #d7dbc8 32%, #8b9177 58%, #2a2e20 100%) 0 38px / 100% 7px no-repeat,
    linear-gradient(90deg, transparent 28px, #3e4432 28px, #b3b89f 30px, #3e4432 32px, transparent 32px) 0 0 / 60px 100% repeat-x,
    repeating-linear-gradient(56deg, transparent 0 25px, #2b3022 25px, #9ea48a 26.4px, #2b3022 28px, transparent 28px 30px),
    repeating-linear-gradient(-56deg, transparent 0 25px, #2b3022 25px, #9ea48a 26.4px, #2b3022 28px, transparent 28px 30px),
    linear-gradient(to bottom, transparent 6px, #23271b 6px 9px, transparent 9px 35px, #23271b 35px 38px, transparent 38px),
    repeating-linear-gradient(-56deg, transparent 0 13px, rgba(60,66,48,.7) 13px 15px, transparent 15px 30px),
    linear-gradient(#10130b, #090b06);
  box-shadow: 0 8px 18px rgba(0,0,0,.65), inset 0 -1px 0 rgba(0,0,0,.6); }
/* Spill from the lamps onto the truss's underside: off while they are dead. */
.lit-stage .hero-truss::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 130px 26px at 16% 100%, rgba(255,246,220,.42), transparent 70%),
    radial-gradient(ellipse 130px 26px at 50% 100%, rgba(255,246,220,.42), transparent 70%),
    radial-gradient(ellipse 130px 26px at 84% 100%, rgba(255,246,220,.42), transparent 70%),
    linear-gradient(to top, rgba(226,236,180,.12), transparent 60%); }
:is(.d-intro .lit-stage, .lit-stage.d-dark) .hero-truss::after { opacity: 0; }
.lit-stage.d-flicker .hero-truss::after { animation: dSpill 1.3s steps(1, end) both; }
@keyframes dSpill { 0% { opacity: 0; } 8% { opacity: .2; } 20% { opacity: 0; } 36% { opacity: .25; } 48% { opacity: 0; } 62% { opacity: .4; } 95%, 100% { opacity: 1; } }

/* Mounts (static): a hanging clamp on the bottom chord, the yoke bracket to
   the fixture's pivot, and a safety cable looped from the truss. */
.lit-stage .d-mount { position: absolute; top: 38px; width: 0; height: 0; }
.lit-stage .d-mount:nth-of-type(1) { left: 16%; }
.lit-stage .d-mount:nth-of-type(2) { left: 50%; }
.lit-stage .d-mount:nth-of-type(3) { left: 84%; }
.lit-stage .d-mount::before { content: ''; position: absolute; left: -8px; top: 0; width: 16px; height: 22px; border-radius: 3px 3px 2px 2px;
  background: radial-gradient(circle at 50% 14px, #e4e7d6 0 1.5px, #3a3f2e 2px, transparent 2.6px), linear-gradient(90deg, #22261a, #6d735b 40%, #a9af94 52%, #3c4130); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.lit-stage .d-mount::after { content: ''; position: absolute; left: -33px; top: 22px; width: 66px; height: 38px; border: 5px solid #4f5541; border-top-width: 6px; border-bottom: 0; border-radius: 9px 9px 0 0;
  border-color: #6b715a #3e4332 #3e4332 #6b715a; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.lit-stage .d-mount .d-cable { position: absolute; left: 6px; top: 6px; width: 14px; height: 30px; border: 1.5px solid #8a907a; border-left-color: transparent; border-radius: 0 50% 50% 0; opacity: .8; }
.lit-stage .hero-fx::after { content: none; }                                  /* the old yoke: now static, above */

/* The fixture: a finned cylindrical can with dark glass (no barn doors: at the side lamps' tilt they read as dark blobs). */
.lit-stage .hero-can { left: -23px; top: -12px; width: 46px; height: 54px; border-radius: 9px 9px 5px 5px;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,.6) 0 2px, rgba(170,176,150,.22) 2px 3px, transparent 3px 5px) 50% 5px / 76% 42% no-repeat,
    linear-gradient(to bottom, rgba(255,255,255,.06), transparent 30%),
    linear-gradient(90deg, #0b0d07 0%, #353b29 22%, #6e765c 44%, #a0a689 50%, #4a5139 66%, #191c11 88%, #0b0d07 100%);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.6), 0 3px 8px rgba(0,0,0,.7); }
.lit-stage .hero-fx::before { content: ''; position: absolute; left: -21px; top: 36px; width: 42px; height: 13px; border-radius: 50%; clip-path: none;
  background: radial-gradient(ellipse at 32% 30%, rgba(255,255,255,.42) 0 14%, transparent 34%), radial-gradient(ellipse at 70% 75%, rgba(200,210,170,.18), transparent 50%), linear-gradient(#1b2015, #2f3528);
  border: 1.5px solid #6a7058; box-shadow: inset 0 1px 2px rgba(0,0,0,.8); }
/* The lit lens: a hot white core with a warm halo; a star flare when on. */
.lit-stage .hero-lens { left: -19px; top: 37px; width: 38px; height: 11px;
  background: radial-gradient(ellipse at 50% 50%, #fff 0 38%, #fff6dc 58%, #f4dca2 82%, rgba(238,200,128,.7));
  box-shadow: 0 0 6px 2px rgba(255,252,236,.95), 0 0 22px 8px rgba(255,218,160,.42), 0 0 64px 24px rgba(236,210,150,.16); }
.lit-stage .hero-glare { left: -110px; top: 41px; width: 220px; height: 2px; }
.lit-stage .hero-glare::after { content: ''; position: absolute; left: 109px; top: -26px; width: 2px; height: 54px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,250,228,.85) 46%, #fff 50%, rgba(255,250,228,.85) 54%, transparent); }

/* Beams: hot near the lamp, falling off with distance (same colour as before). */
.lit-stage .hero-ray { background: linear-gradient(to bottom, rgba(255,250,230,.40) 0%, rgba(250,246,214,.20) 14%, rgba(242,245,210,.10) 34%, rgba(196,214,107,.05) 56%, transparent 76%); }
.lit-stage .hero-ray::after { background: linear-gradient(to bottom, rgba(255,255,245,.30), rgba(255,250,228,.08) 30%, transparent 60%); }

/* A soft pool where the beams land on the logo, once they are on it. */
.lit-stage .d-pool { position: absolute; z-index: 2; pointer-events: none; left: var(--lx, 50%); top: var(--ly, 40%); width: calc(var(--lrx, 480px) * 1.25); height: calc(var(--lry, 300px) * .8);
  transform: translate(-50%, -50%); border-radius: 50%; mix-blend-mode: screen; transition: opacity .7s ease;
  background: radial-gradient(closest-side, rgba(255,250,228,.13), rgba(226,236,180,.06) 55%, transparent); }
:is(.d-intro .lit-stage, .lit-stage.d-dark, .lit-stage.d-unfocused) .d-pool { opacity: 0; }

/* Small phones: simpler fixtures (no safety cable). */
@media (max-width: 360px) {
  .lit-stage .d-mount .d-cable { display: none; }
}

/* Reduced motion: the finished frame, still. The head script never adds
   d-intro and the stage script skips the story, so nothing here should move
   or flash: belt and braces for the beams, the shine and the barbell rise. */
@media (prefers-reduced-motion: reduce) {
  .lit-stage, .lit-stage *, .lit-stage::before, .lit-stage::after { animation: none !important; transition: none !important; }
}
