/* The geometry rail overrides. Loaded after site.css; owned by geometry.js. Metatron's cube and its wheels; the hero
   mark forms on the cube; phones keep the half dial out of the long reading chapters. */

/* the canvas covers the viewport: no CSS filter on it (a full-screen drop-shadow repaints every frame) */
.has-wheels .calrail canvas { filter: none; }
.calglow { width: 180px; height: 180px; margin: -90px 0 0 -90px; }

/* ---------- the Lucent logo: driven by geometry.js (forms on the cube, then leaves the title clear) ---------- */
.has-wheels .hero-logo { animation: none; opacity: 0; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity, filter; }
@media (min-width: 761px) {
  /* on desktop the logo leaves the title column, so it no longer holds space above "Presents" */
  .has-wheels .hero-logo { position: absolute; left: 50%; top: 0; margin-left: calc(clamp(170px, 20vw, 300px) / -2); }
  .has-wheels .hero-copy { padding-top: 0; }
}

/* ---------- desktop: the rail's notches sit on the column's left edge; content clears the whole rail ---------- */
.has-wheels .rail a i { background: rgba(2, 12, 12,.75); }
.has-wheels .rail a span { text-shadow: 0 1px 8px #000, 0 0 2px #000; }
.has-wheels .rail a span { opacity: .8; transform: none; color: #ead6ad; padding: 2px 6px; background: rgba(2, 12, 12,.55); }   /* Pete 2026-11-26: "no sign what the others are" — every diamond carries its room's name */
.has-wheels .rail a.on span, .has-wheels .rail a:hover span { opacity: 1; }
.has-wheels .arrival .sticky.center { padding-right: calc(var(--railw) + 16px); }
.calplate { text-shadow: 0 1px 8px #000, 0 0 3px #000; transition: opacity .5s; }
.in-hero .calplate { opacity: 0; }                         /* the hero carries its own count plate */

/* ---------- phone: a half dial on the bottom edge; the plate sits just above it; both leave the arrival's reading ---------- */
@media (max-width: 760px) {
  .has-wheels .sticky, .has-wheels .sticky.right, .has-wheels .sticky:not(.right):not(.center), .has-wheels .sticky.center { padding-bottom: 168px !important; }
  .has-wheels .arrival .sticky.center { padding-right: 16px !important; }
  .calplate { left: 12px; right: auto; bottom: 116px; justify-items: start; text-align: left; }
  html.cal-quiet .calplate { opacity: 0; }
  html.cal-quiet #work .sticky { padding-bottom: 24px !important; }
  #work .arrive { width: 100%; }
  #work .arrive-grid { grid-template-columns: 1fr; }
  #work .reading { width: 100%; box-sizing: border-box; }
}

/* the opening close-up: the title arrives as the cube pulls back (geometry.js sets --hero-copy) */
/* review item 8: --hero-copy is set on these elements themselves (geometry.js), never on :root */
.has-wheels .hero-copy, .has-wheels .hero .count-plate { opacity: var(--hero-copy, 1); }
/* geometry.js moves the logo into the wheel layer, above the canvas: it opens in the cube, above the canvas */
.calrail .hero-logo { position: absolute; left: 50%; top: 0; width: clamp(170px, 20vw, 300px); height: auto; margin-left: calc(clamp(170px, 20vw, 300px) / -2); }

/* one real photograph, muted, behind the title screen. It arrives with the title as the cube pulls back, and leaves
   with the hero. One photo, dimmed in place: no blur, no duplicate. */
/* the hero portrait sits in its own fixed layer between the 3D world (z 0) and the wheels (z 4), so the wheels stay on top */
/* review item 8: a real element (not body::before), so its fade never restyles the whole document */
.hero-portrait { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .7s;
  background: linear-gradient(180deg, rgba(2, 12, 12,0) 0%, rgba(2, 12, 12,0) 46%, rgba(2, 12, 12,.78) 66%, rgba(2, 12, 12,.96) 100%), url("../media/ld/19.jpg") 50% 30% / cover no-repeat; }
html.has-wheels.in-hero .hero-portrait { opacity: calc(var(--hero-copy, 1) * .92); }
@media (max-width: 760px) {
  .hero-portrait { background: linear-gradient(180deg, rgba(2, 12, 12,0) 0%, rgba(2, 12, 12,0) 34%, rgba(2, 12, 12,.9) 50%, #031010 58%), url("../media/ld/m/19.jpg") 50% 0 / auto 58% no-repeat, #031010; }
}
/* the hero photograph stays clear of the words: the title sits in the dark band below it, and a small label credits it */
.has-wheels .hero > .sticky { align-items: flex-end; padding-bottom: clamp(70px, 9vh, 120px); }
.has-wheels .hero .hero-copy { padding-top: 0; }
.has-wheels .hero .hero-title { font-size: clamp(34px, 4.6vw, 80px); }
.has-wheels .hero > .sticky::after { content: "Lucent Dossier · Coachella 2014 · photo Daniel Zetterstrom"; position: absolute; left: 18px; bottom: 12px; z-index: 2; font: 500 11.5px/1 var(--sans, system-ui);
  letter-spacing: .04em; color: rgba(232,220,192,.8); opacity: var(--hero-copy, 1); pointer-events: none; }

/* ---------- smoothness, the XOG rules (Pete: "optimize the glitching on everything like you did for xog") ----------
   Everything that re-filters or re-blends the whole screen every frame over a moving WebGL canvas goes:
   - the blurred duplicate behind photos (also banned by the client: "images coming out of the background")
   - backdrop-filter blurs on text panels (re-blurred every frame the 3D moves under them): a darker solid glass instead
   - the film grain's full-screen overlay blend at 200% size, animated: a plain low-opacity layer, still, viewport-sized */
.vslide::before { content: none !important; display: none !important; }
.panel, .press, .reading { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.panel { background: rgba(3, 17, 17, .82); }
.press, .reading { background: rgba(3, 17, 17, .8); }
.grain { inset: 0 !important; mix-blend-mode: normal !important; opacity: .035 !important; animation: none !important; }
@media (min-resolution: 2dppx) { .grain { display: none !important; } }   /* wci-review-2 #7: at DPR 2 it is a 14.7 MP layer composited every frame for .035 of grain nobody can see */
.has-wheels .hero .count-plate { bottom: 30px; }
/* app-developer 11-27 1:22 AM: the always-on names sat over the 4th clients card and the press plates. Pete 11-26 asked that every
   diamond carry its name, so they stay, but quieter: no dark box, half strength; full on the current room and while the rail is hovered */
.has-wheels .rail a span { opacity: .78; background: none; text-shadow: 0 0 2px #000, 0 0 6px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.8); }   /* 11-27 9:20 PM: .42 vanished on the light #worlds glow; a heavier halo, still no box */
.has-wheels .rail:hover a span, .has-wheels .rail a:focus-visible span { opacity: .9; background: rgba(2, 12, 12,.55); }
.has-wheels .rail a.on span { background: rgba(2, 12, 12,.55); }
/* app-developer 11-28 12:5x AM (ISSUES 9:16 PM note, re-shot live 00092): the halo alone still lost AERIAL..CONTACT on the cream #worlds glow.
   A feathered shadow behind each name (no hard box edge, so it does not read as a panel over the clients/press cards). */
.has-wheels .rail a:not(.on) span { opacity: .9; background: radial-gradient(closest-side, rgba(2,12,12,.62), rgba(2,12,12,.38) 60%, rgba(2,12,12,0)); padding: 4px 14px; }
