/* DJs ON GOLD v2 — main.css
   Ported from the locked canvas (design-src/DJs-ON-GOLD-Desktop.dc.html).
   Section 1: global base + keyframes, copied verbatim from the canvas <helmet><style>.
   Section 2: layout classes added during the port, used only as responsive
   hooks (grid/flex structure) — no color or copy lives here. Desktop
   (>=1000px) values match the canvas inline styles exactly; the >=1000px
   contract is therefore untouched by anything in this file except where
   noted.
   Section 3: mobile (<1000px) adaptations — single/2-col stacking, fluid
   type, the mobile hero crop switch, and the never-horizontal-scroll rule.
   Section 4: fxdebug crosshair (gate affordance) + reduced-motion note.
*/

/* ===================== 0. Key of Gold — harmonic palette ==============
   Section-accent tokens tuned as consonant intervals from the gold tonic
   (see projects/djsog-site-revival/HARMONIC-PALETTE.md). ACCENTS ONLY —
   the day->night->dawn section backgrounds carry the journey and stay.
   Each section sets --zone to its hue; accents reference var(--zone). */
:root {
  --gold: #E8B84B;    /* tonic (I)    — brand · Goldie · seal · CTA        */
  --coral: #E58461;   /* whole-step   — Founding Frequencies (the founders) */
  --jade: #4ED0B2;    /* major 3rd    — Radio · sound-as-craft              */
  --violet: #9B80E5;  /* perfect 5th  — Next Event / the journey            */
  --moon: #A9B1DA;    /* flat-six     — The Chapters (the past, moonlight)  */
  --orchid: #C98CE8;  /* colour note  — Purple Spores World                 */
  --cream: #F4E9D2;   /* high text */
  --ink: #08060B;
  --zone: var(--gold); /* default; each section overrides */

  /* Round 18: RGB triplets of the same six tokens above (values NOT
     changed, just re-expressed) so translucent accents can write
     rgba(var(--zone-rgb),.4) — a var() expands as a raw token stream, so
     a comma-joined "R,G,B" custom property fills all three rgba() slots
     at once. --zone-rgb tracks --zone the same way, default gold. */
  --gold-rgb: 232,184,75;
  --coral-rgb: 229,132,97;
  --jade-rgb: 78,208,178;
  --violet-rgb: 155,128,229;
  --moon-rgb: 169,177,218;
  --orchid-rgb: 201,140,232;
  --zone-rgb: var(--gold-rgb);
}

/* Round 18: per-section "Key of Gold" zone assignment (HARMONIC-PALETTE.md).
   Section BACKGROUND gradients are untouched elsewhere in this file — this
   only points --zone/--zone-rgb so descendant accents (eyebrows, borders,
   dividers, deco dots, attribution labels, parallax strips) resolve to the
   right hue via var(). Local overrides (Purple Spores World -> orchid,
   Sound-as-craft card + Radio panel -> jade) are set inline on their own
   wrapper in index.html and win by normal CSS cascade/inheritance. */
#event  { --zone: var(--violet); --zone-rgb: var(--violet-rgb); }
#archive{ --zone: var(--moon);   --zone-rgb: var(--moon-rgb);   }
#house  { --zone: var(--coral);  --zone-rgb: var(--coral-rgb);  }
#goldie { --zone: var(--gold);   --zone-rgb: var(--gold-rgb);   }
#djs    { --zone: var(--jade);   --zone-rgb: var(--jade-rgb);   } /* launch-hidden; assigned for later, not styled this round */
#spotlights { --zone: var(--jade); --zone-rgb: var(--jade-rgb); } /* the artists — jade, the bridge note (R33) */

/* ============================= 1. Base ================================= */
html { scroll-behavior: smooth; }
body { margin: 0; background: #08060B; -webkit-font-smoothing: antialiased; }
a { color: #E8B84B; text-decoration: none; }
a:hover { color: #F6D98A; }
::selection { background: rgba(232,184,75,.3); color: #F4E9D2; }
img { max-width: 100%; display: block; }

@keyframes sealPress { 0% { transform: scale(1.75) rotate(-7deg); opacity: 0; filter: blur(7px); } 55% { transform: scale(.955) rotate(0deg); opacity: 1; filter: blur(0); } 72% { transform: scale(1.035); } 100% { transform: scale(1); } }
@keyframes flood { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.35); } 40% { opacity: .95; } 100% { opacity: .4; transform: translate(-50%,-50%) scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { transform: scaleY(.34); } 50% { transform: scaleY(1); } }
/* R48: RECHARGE standing wave — larger amplitude + full up/down (mirror) cycle */
@keyframes waveFull { 0%, 100% { transform: scaleY(1.25); } 50% { transform: scaleY(-1.25); } }
@keyframes aurora { 0% { transform: translate3d(0,0,0) rotate(0deg) scale(1); } 100% { transform: translate3d(-60px,40px,0) rotate(14deg) scale(1.14); } }
@keyframes sporeHero { 0% { transform: translate3d(0,0,0) scale(.6); opacity: 0; } 12% { opacity: .9; } 55% { transform: translate3d(34px,-320px,0) scale(1.15); } 88% { opacity: .45; } 100% { transform: translate3d(-24px,-640px,0) scale(.5); opacity: 0; } }
@keyframes sporeNight { 0% { transform: translate3d(0,0,0) scale(.55); opacity: 0; } 14% { opacity: .85; } 52% { transform: translate3d(-30px,-420px,0) scale(1.2); } 86% { opacity: .4; } 100% { transform: translate3d(26px,-860px,0) scale(.5); opacity: 0; } }
@keyframes emberPulse { 0%, 100% { opacity: .32; } 50% { opacity: .72; } }
@keyframes cueDrop { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(9px); opacity: 1; } }
@keyframes sunTurn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sunTurnBack { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes sunBreathe { 0%, 100% { opacity: .2; } 50% { opacity: .46; } }
@keyframes sporeBurst { 0% { transform: translate3d(0,0,0) scale(.25); opacity: 0; } 14% { opacity: .95; } 100% { transform: translate3d(var(--tx,0px),var(--ty,-160px),0) scale(1.2); opacity: 0; } }
@keyframes sporeShift { 0% { color: var(--c0, #b26cff); } 38% { color: var(--c0, #b26cff); } 100% { color: var(--c1, #f6c85a); } }
@keyframes driftUp { 0% { transform: translate3d(0,0,0) scale(.7); opacity: 0; } 16% { opacity: .5; } 100% { transform: translate3d(26px,-640px,0) scale(1.1); opacity: 0; } }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@keyframes sunHalo { 0%, 100% { opacity: .3; transform: scale(.93); } 50% { opacity: .6; transform: scale(1.07); } }

/* item 3 (spores spread) -- "purple spores, on gold": driftUpMotion is a
   transform-only twin of driftUp/sporeNight (no baked-in opacity), used on a
   wrapping element so two stacked color layers underneath can crossfade
   purple->gold independently while still drifting together as one spore. */
@keyframes driftUpMotion { 0% { transform: translate3d(0,0,0) scale(.7); } 100% { transform: translate3d(26px,-640px,0) scale(1.1); } }
@keyframes sporePurpleFade { 0% { opacity: 0; } 14% { opacity: .55; } 46% { opacity: .55; } 66% { opacity: 0; } 100% { opacity: 0; } }
@keyframes sporeGoldFade { 0% { opacity: 0; } 46% { opacity: 0; } 60% { opacity: .16; } 80% { opacity: .6; } 92% { opacity: .6; } 100% { opacity: 0; } }

/* ======================== 2. Layout / page shell ======================= */
.page {
  width: 100%;
  min-width: 1180px;
  background: #08060B;
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  color: #F4E9D2;
  overflow-x: clip;
}

/* Desktop hero art: default background is the responsive desktop hero.
   The [data-sun-art] container's aspect-ratio is what placeSun() measures
   against — IW=1916,IH=821 below 1000px is swapped for the mobile crop
   (see js/main.js DESKTOP/MOBILE anchor constants). */
[data-sun-art] {
  aspect-ratio: 1916 / 821;
  background-image: url('../uploads/hero-chain-panorama-MASTER.png');
  background-image: -webkit-image-set(
    url('../uploads/hero-chain-panorama-960.webp') 1x,
    url('../uploads/hero-chain-panorama-1440.webp') 1.5x,
    url('../uploads/hero-chain-panorama-1916.webp') 2x
  );
  background-image: image-set(
    url('../uploads/hero-chain-panorama-960.webp') 1x,
    url('../uploads/hero-chain-panorama-1440.webp') 1.5x,
    url('../uploads/hero-chain-panorama-1916.webp') 2x
  );
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==================== 3. Mobile / responsive (<1000px) ================= */
@media (max-width: 999px) {
  .page { min-width: 0; }
  html, body { overflow-x: hidden; }

  /* mobile hero crop swap — pairs with js/main.js MOBILE anchor constants
     (IW2=700, IH2=821, SX2=244, SY2=210). A taller box + a narrower source
     window centers the sun clear of the headline text below it (v1 used
     IW2=1300 at aspect 6/5, which left the sun directly behind "DJs ON
     GOLD" -- see BUILD-REPORT). The dancer chain (~x1000+ in the master)
     no longer fits at this width; brief's own fallback -- "prioritize the
     sun + wordmark legibility" -- covers that trade. */
  [data-sun-art] {
    aspect-ratio: 4 / 5;
    background-image: url('../uploads/hero-mobile-700.jpg');
    background-image: -webkit-image-set(
      url('../uploads/hero-mobile-350.webp') 1x,
      url('../uploads/hero-mobile-700.webp') 2x
    );
    background-image: image-set(
      url('../uploads/hero-mobile-350.webp') 1x,
      url('../uploads/hero-mobile-700.webp') 2x
    );
  }

  /* header: allow wrap onto a second row instead of a hamburger (canvas has
     no menu-drawer spec — every original link stays visible, just wraps) */
  .site-header {
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 14px 20px !important;
  }
  .site-header nav {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start !important;
    gap: 12px 16px !important;
  }
  [data-radio-panel] { right: 20px !important; left: 20px !important; width: auto !important; }

  /* hero copy block: kill the 22%-indent + 372px min-width that would force
     horizontal scroll, and fluid-scale the type */
  .hero-copy {
    margin-inline-start: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 22px !important;
  }
  .hero-copy .h1 { font-size: clamp(44px, 13vw, 64px) !important; }
  .hero-copy .lede { font-size: clamp(16px, 4.6vw, 18px) !important; }

  /* generic section padding / headline scale */
  section { padding-left: 0; padding-right: 0; }
  .section-inner { padding: 0 22px !important; }
  .h2 { font-size: clamp(34px, 9vw, 44px) !important; }
  .lede { font-size: clamp(16px, 5vw, 19.5px) !important; line-height: 1.65 !important; }

  /* row/grid stacking */
  .section-head-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px !important;
  }
  .section-head-row p { max-width: 100% !important; }

  .stack-mobile { grid-template-columns: 1fr !important; }
  .grid2-mobile { grid-template-columns: repeat(2, 1fr) !important; }

  .next-journey-band {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 28px !important;
  }
  .next-journey-band > div:last-child { align-items: flex-start !important; width: 100%; }

  .chapter-band-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  .ch5-teaser-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
  .ch5-teaser-left { flex-wrap: wrap !important; row-gap: 8px !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; row-gap: 34px; }
  .footer-bottom { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }

  h1, h2 { text-wrap: balance; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .grid2-mobile { grid-template-columns: 1fr !important; }
}

/* ==================== 3b. Round-3 launch flag =========================
   Single flag to hide a whole section + its nav links without touching any
   markup, JS wiring, or the section's own CSS. To bring "The DJs" section
   back post-launch: delete this rule (or flip `display:none` off) AND the
   `class="launch-hidden"` attributes stay harmless either way. */
.launch-hidden { display: none !important; }

/* ==================== 3c. Round-3 intro animation ======================
   Built entirely by js/intro.js (own module, own <script> tag) -- this CSS
   only styles the overlay IF that script creates it; nothing here hides
   real content by default, which is what keeps the whole thing fail-safe
   (see intro.js header comment). */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #08060B;
  opacity: 1;
  transition: opacity 1s ease;
  pointer-events: none; /* the overlay itself never intercepts clicks; skip is wired via window-level listeners in intro.js */
}
#intro-overlay.intro-fade-out { opacity: 0; }

.intro-light {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 2.1s cubic-bezier(.6,.02,.12,1), opacity 2.1s ease;
}
#intro-overlay.intro-travel .intro-light {
  transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) scale(.42);
  opacity: .92;
}
.intro-core {
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 24px 9px currentColor;
  filter: blur(1.5px);
  animation: introCore 2s cubic-bezier(.45,.1,.4,1) both;
}
.intro-glow {
  position: absolute;
  left: 0; top: 0;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(246,217,138,.55) 0%, rgba(232,184,75,.22) 32%, rgba(232,184,75,0) 68%);
  animation: introBloom 2.4s .9s cubic-bezier(.5,.05,.35,1) both;
}
.intro-rays {
  position: absolute;
  left: 0; top: 0;
  width: 30vmax; height: 30vmax;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(250,228,168,.55) 0deg 1.5deg, rgba(250,228,168,0) 1.5deg 12.5deg);
  -webkit-mask: radial-gradient(circle closest-side, rgba(0,0,0,0) 0 10%, #000 22% 58%, rgba(0,0,0,0) 88%);
  mask: radial-gradient(circle closest-side, rgba(0,0,0,0) 0 10%, #000 22% 58%, rgba(0,0,0,0) 88%);
  animation: introRaysIn 1.7s 2.05s ease-out both;
}
.intro-spores {
  position: absolute; inset: 0;
  transition: transform 2.1s cubic-bezier(.6,.02,.12,1), opacity 2.1s ease;
}
#intro-overlay.intro-travel .intro-spores { transform: translateX(40vw); opacity: .3; }
.intro-spores i {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  opacity: 0;
  animation-name: introSporeIn;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}
@keyframes introCore {
  0% { opacity: 0; transform: translate(-50%,-50%) scale(.1); color: #341f06; }
  12% { opacity: 1; color: #59320a; }
  45% { color: #96600f; transform: translate(-50%,-50%) scale(.55); }
  75% { color: #d9a83c; }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1); color: #ffe9c2; }
}
@keyframes introBloom { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.08); } 60% { opacity: 1; } 100% { opacity: .88; transform: translate(-50%,-50%) scale(1); } }
@keyframes introRaysIn { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(-16deg) scale(.5); } 100% { opacity: .55; transform: translate(-50%,-50%) rotate(9deg) scale(1); } }
@keyframes introSporeIn {
  0% { opacity: 0; transform: translate(-50%,-50%) translate3d(0,20px,0) scale(.45); }
  55% { opacity: .9; }
  100% { opacity: .6; transform: translate(-50%,-50%) translate3d(var(--sx,0px),var(--sy,-60px),0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .intro-glow, .intro-rays, .intro-spores i { animation: none !important; opacity: 0 !important; }
}

/* ============ 4. fxdebug crosshair + reduced-motion note ================
   prefers-reduced-motion handling is done in JS (main.js apply/motionOn) so
   that animated elements FREEZE VISIBLE at their current declared frame
   rather than disappearing — never display:none, per the brief. */
[data-fxdebug-mark] {
  position: absolute;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
}
[data-fxdebug-mark]::before,
[data-fxdebug-mark]::after {
  content: '';
  position: absolute;
  background: #FF2D5E;
}
[data-fxdebug-mark]::before { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-1px); }
[data-fxdebug-mark]::after { top: 50%; left: 0; height: 2px; width: 100%; transform: translateY(-1px); }
[data-fxdebug-mark] span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #FF2D5E;
}


/* ============ Hero saucer + star effects (round 12: PIXEL-LAYER approach) ====
   Each effect is masked by an alpha layer cut from the artwork itself
   (art/fx/*.png) - the animation can only ever light the painted pixels.
   Positions are the layers' exact bboxes in % of the aspect-locked hero. */
.fx-ufo { position: absolute; inset: 0; pointer-events: none; }
@media (max-width: 999px) { .fx-ufo { display: none; } }
.fxl { position: absolute; pointer-events: none; mix-blend-mode: screen; }

.fxl-beam {
  -webkit-mask: url('/art/fx/beam.png?v=r13') 0 0 / 100% 100% no-repeat;
  mask: url('/art/fx/beam.png?v=r13') 0 0 / 100% 100% no-repeat;
  background: repeating-linear-gradient(180deg, rgba(255,244,210,.55) 0 18px, rgba(255,235,180,.1) 18px 46px);
  background-size: 100% 64px;
  animation: fxBeamFlow 2.4s linear infinite, fxBeamPulse 5.5s ease-in-out infinite;
  animation-play-state: var(--motion, running);
}
@keyframes fxBeamFlow { 0% { background-position: 0 0; } 100% { background-position: 0 64px; } }
@keyframes fxBeamPulse { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }

.fxl-saucer {
  -webkit-mask: url('/art/fx/saucer.png?v=r13') 0 0 / 100% 100% no-repeat;
  mask: url('/art/fx/saucer.png?v=r13') 0 0 / 100% 100% no-repeat;
  background:
    radial-gradient(circle closest-side, rgba(255,244,214,.95) 0%, rgba(255,220,130,.5) 45%, rgba(255,220,130,0) 100%) no-repeat,
    radial-gradient(circle closest-side, rgba(200,240,255,.85) 0%, rgba(190,220,255,.4) 40%, rgba(190,220,255,0) 100%) no-repeat,
    radial-gradient(circle closest-side, rgba(255,238,190,.9) 0%, rgba(246,200,90,.45) 45%, rgba(246,200,90,0) 100%) no-repeat,
    radial-gradient(circle closest-side, rgba(255,250,235,.9) 0%, rgba(255,225,150,.4) 40%, rgba(255,225,150,0) 100%) no-repeat,
    rgba(246,200,90,.2);
  background-size: 26% 62%, 18% 46%, 32% 74%, 15% 40%, 100% 100%;
  animation: fxSurge 7.3s cubic-bezier(.45,.05,.55,.95) infinite, fxJolt 3.9s linear infinite;
  animation-play-state: var(--motion, running);
}
/* four energy knots wandering the hull lines on separate irregular paths */
@keyframes fxSurge {
  0%   { background-position: 8% 30%, 78% 68%, 45% 15%, 92% 45%, 0 0; }
  16%  { background-position: 34% 72%, 60% 22%, 12% 55%, 70% 80%, 0 0; }
  31%  { background-position: 62% 18%, 30% 60%, 80% 70%, 40% 10%, 0 0; }
  47%  { background-position: 88% 55%, 10% 35%, 55% 30%, 15% 65%, 0 0; }
  63%  { background-position: 50% 82%, 42% 78%, 25% 12%, 60% 40%, 0 0; }
  79%  { background-position: 20% 25%, 85% 50%, 68% 60%, 35% 85%, 0 0; }
  100% { background-position: 8% 30%, 78% 68%, 45% 15%, 92% 45%, 0 0; }
}
/* abrupt electric jolts - sudden intensity spikes, uneven rhythm */
@keyframes fxJolt {
  0%, 100% { opacity: .55; }
  11% { opacity: .6; }
  13% { opacity: 1; }
  16% { opacity: .5; }
  38% { opacity: .65; }
  40% { opacity: .95; }
  41% { opacity: .55; }
  67% { opacity: .7; }
  70% { opacity: 1; }
  74% { opacity: .5; }
  88% { opacity: .85; }
}

.fxl-star {
  -webkit-mask: var(--img) 0 0 / 100% 100% no-repeat;
  mask: var(--img) 0 0 / 100% 100% no-repeat;
  background: rgba(255,242,205,.95);
  opacity: .12;
  animation: fxTwinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite;
  animation-play-state: var(--motion, running);
}
@keyframes fxTwinkle { 0%, 100% { opacity: .08; } 50% { opacity: .95; } }


/* ============ Purple Spores world: in-place player (round 16) ============ */
.ps-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(199,123,232,.22);
  border-radius: 2px;
  background: rgba(11,7,20,.35);
  cursor: pointer;
  text-align: left;
  transition: border-color .25s ease, background .25s ease;
}
.ps-row:hover { border-color: rgba(199,123,232,.6); background: rgba(199,123,232,.12); }
.ps-row-t { font: 400 12.5px/1.35 'Frank Ruhl Libre', serif; color: rgba(244,233,210,.82); }
.ps-row-d { font: 400 10px/1 'Frank Ruhl Libre', serif; letter-spacing: .14em; color: rgba(214,160,245,.7); }
.ps-row.ps-active { border-color: rgba(232,184,75,.55); background: rgba(232,184,75,.08); }
.ps-row.ps-active .ps-row-t { color: #F6D98A; }
.ps-row.ps-active .ps-row-t::before { content: '\25B8  '; color: #E8B84B; }
.ps-card.ps-flip { animation: psFlip .7s cubic-bezier(.4,.05,.3,1) both; }
@keyframes psFlip { 0% { transform: perspective(900px) rotateY(0); } 100% { transform: perspective(900px) rotateY(360deg); } }


/* ============ Chapter cards: flip to flyer (round 17) ============ */
.chc { position: relative; cursor: pointer; perspective: 1200px; }
.chc-inner {
  position: relative;
  width: 100%; height: 100%;
  min-height: 340px;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4,.05,.3,1);
}
.chc.chc-flipped .chc-inner { transform: rotateY(180deg); }
.chc-front, .chc-back {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.chc-front { position: relative; min-height: 340px; }
.chc-back { transform: rotateY(180deg); }
.chc-hint {
  position: absolute; right: 12px; bottom: 10px;
  font: 400 9px/1 'Frank Ruhl Libre', serif;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(232,184,75,.65);
  pointer-events: none;
}
.chc:hover .chc-front { outline: 1px solid rgba(232,184,75,.5); outline-offset: -1px; }
@media (prefers-reduced-motion: reduce) { .chc-inner { transition: none; } }

/* ============ Artist spotlights: list + feature flip (round 22) ============
   Left column: 5 selectable rows (list pattern borrowed from Purple Spores
   World's .ps-row queue). Right column: one flip card, same rotateY(180deg)
   two-face-swap technique as the chapter cards above (.chc/.chc-flipped),
   renamed .spot-card/.spot-flipped so the two independent flip widgets on
   this page never share a class and can't cross-trigger each other. */
.spot-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 20px 20px 18px;
  border: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(244,233,210,.1);
  background: transparent;
  cursor: pointer; text-align: left;
  transition: background .25s ease, border-color .25s ease;
}
.spot-row:hover { background: rgba(var(--zone-rgb),.06); }
.spot-row-active { background: rgba(var(--zone-rgb),.09); border-left-color: var(--zone); }
.spot-row-active .spot-row-name { color: var(--zone); }
.spot-row-name { display: block; font: 400 32px/1 'Suez One', serif; color: #F4E9D2; }
.spot-row-desc { display: block; font: 300 16px/1.6 'Frank Ruhl Libre', serif; color: rgba(244,233,210,.62); }

.spot-card { position: relative; cursor: pointer; perspective: 1200px; }
.spot-card-inner {
  position: relative;
  width: 100%; height: 100%;
  min-height: 320px;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4,.05,.3,1);
}
.spot-card.spot-flipped .spot-card-inner { transform: rotateY(180deg); }
.spot-card-front, .spot-card-back {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.spot-card-front { position: relative; aspect-ratio: 16 / 9; }
.spot-card-back { transform: rotateY(180deg); }
.spot-card:hover .spot-card-front { outline: 1px solid rgba(var(--zone-rgb),.55); outline-offset: -1px; }
.spot-cta-link:hover { background: rgba(var(--zone-rgb),.16); }
@media (prefers-reduced-motion: reduce) { .spot-card-inner { transition: none; } }


/* ============ Talk-to-Goldie CTA wow hover (r27) ============ */
.wa-cta { position: relative; overflow: hidden; transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease; }
.wa-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 64px rgba(232,184,75,.55), 0 0 0 1px rgba(246,217,138,.55); }
.wa-cta::before { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 22%,rgba(255,255,255,.55) 48%,transparent 74%); transform:translateX(-130%); pointer-events:none; }
.wa-cta:hover::before { animation: waShimmer 1.05s ease; }
@keyframes waShimmer { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
.wa-cta .wa-dot { transition: box-shadow .3s ease, background .3s ease; }
.wa-cta:hover .wa-dot { animation: waDotPulse 1.2s ease-in-out infinite; }
@keyframes waDotPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,120,.55); background:#146B3A; } 50% { box-shadow: 0 0 9px 3px rgba(52,211,120,.55); background:#22c55e; } }
@media (prefers-reduced-motion: reduce) { .wa-cta:hover::before { animation: none; } .wa-cta:hover .wa-dot { animation: none; } }

/* R46: electric arc "searching" around the CTA outline on hover */
@property --waAngle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.wa-cta-wrap { position: relative; display: inline-flex; border-radius: 999px; }
.wa-cta-wrap::after {
  content: ''; position: absolute; inset: -3px; border-radius: 999px; padding: 2px;
  background: conic-gradient(from var(--waAngle), transparent 0 56%, #fff 72%, #FFE7A0 79%, #E8B84B 85%, transparent 90%, #fff 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 5px rgba(255,236,170,.95)) drop-shadow(0 0 13px rgba(232,184,75,.6));
  opacity: 0; transition: opacity .18s ease; pointer-events: none; z-index: 3;
}
.wa-cta-wrap:hover::after { opacity: 1; animation: waSpin 1s linear infinite, waBuzz .11s steps(2, end) infinite; }
@keyframes waSpin { to { --waAngle: 360deg; } }
@keyframes waBuzz {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255,236,170,.9)) drop-shadow(0 0 10px rgba(232,184,75,.5)); }
  50% { filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px rgba(232,184,75,.8)); }
}
@media (prefers-reduced-motion: reduce) { .wa-cta-wrap:hover::after { animation: none; opacity: .85; } }

/* R49: footer seal — grows from the centre dot, gentle psychedelic settle, purple+gold spore burst */
.footer-seal-wrap { position: relative; display: inline-flex; }
.footer-seal { opacity: .85; filter: drop-shadow(0 0 44px rgba(232,184,75,.4)); position: relative; z-index: 1; transform-origin: center; will-change: transform, opacity, filter; }
.footer-seal-wrap.is-growing { animation: sealSway 9s ease-in-out 2.6s infinite; }
.footer-seal-wrap.is-growing .footer-seal { animation: sealGrow 2.6s cubic-bezier(.16,.85,.3,1) both; }
@keyframes sealGrow {
  0%   { opacity: 0;   transform: translate(var(--seal-sx, 0px), var(--seal-sy, 0px)) scale(.04); filter: brightness(1.4) drop-shadow(0 0 6px rgba(255,240,190,.8)); }
  10%  { opacity: .95; }
  72%  { transform: translate(0px, 0px) scale(1.05); filter: brightness(1.1) drop-shadow(0 0 34px rgba(255,240,190,.45)); }
  88%  { transform: translate(0px, 0px) scale(.985); }
  100% { opacity: .85; transform: translate(0px, 0px) scale(1); filter: brightness(1) drop-shadow(0 0 44px rgba(232,184,75,.4)); }
}
@keyframes sealSway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(3px) rotate(.5deg); }
  50% { transform: translateX(-2px) rotate(-.4deg); }
  75% { transform: translateX(2px) rotate(.35deg); }
}
@keyframes sealSporeBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  16%  { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .footer-seal-wrap.is-growing, .footer-seal-wrap.is-growing .footer-seal { animation: none; }
  .footer-seal { opacity: .85; transform: none; }
}

/* R53: Radio — ported from psycentral.uk, recolored to DJs ON GOLD teal (#43C6D8) */
.pc-radio, .pc-radio-hbtn {
  --accent: #43C6D8; --accent-ink: #06131A; --accent-glow: rgba(67,198,216,.5); --teal: #43C6D8;
  --rb1: rgba(67,198,216,.32); --rb2: rgba(67,198,216,.52);
  --heading: #F4E9D2; --muted-2: rgba(244,233,210,.62);
  --f-serif: 'Suez One', serif; --f-body: 'Frank Ruhl Libre', serif;
}
.pc-wave { display:inline-flex; align-items:flex-end; gap:2px; height:13px }
.pc-wave span { width:2px; border-radius:1px; background:var(--teal); animation:pcWaveBar 1.15s ease-in-out infinite }
.pc-wave span:nth-child(1){height:5px;animation-delay:0s}
.pc-wave span:nth-child(2){height:10px;animation-delay:.15s}
.pc-wave span:nth-child(3){height:13px;animation-delay:.3s}
.pc-wave span:nth-child(4){height:8px;animation-delay:.45s}
.pc-wave span:nth-child(5){height:4px;animation-delay:.6s}
@keyframes pcWaveBar { 0%,100%{transform:scaleY(.45)} 50%{transform:scaleY(1)} }
@keyframes pcBreathR { 0%,100%{box-shadow:0 0 16px 0 var(--accent-glow)} 50%{box-shadow:0 0 36px 9px var(--accent-glow)} }
.pc-radio { position:fixed; top:72px; right:44px; z-index:70;
  display:flex; align-items:center; gap:13px; width:min(620px, calc(100vw - 24px));
  padding:9px 13px; border:1px solid var(--rb1); border-radius:14px;
  background:rgba(10,16,26,.95); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  box-shadow:0 14px 44px rgba(0,0,0,.55); text-align:left }
@media (min-width:768px){ .pc-radio{ top:80px } }
.pc-radio.is-min { display:none }
.pc-radio-btn { flex:0 0 auto; width:42px; height:42px; border-radius:50%; border:0; cursor:pointer; background:var(--accent); color:var(--accent-ink); font-size:15px; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 0 18px var(--accent-glow); transition:transform .15s }
.pc-radio-btn:hover { transform:scale(1.06) }
.pc-radio.is-playing .pc-radio-btn { animation:pcBreathR 2.2s ease-in-out infinite }
.pc-radio-body { flex:1 1 auto; min-width:0 }
.pc-radio-kicker { display:flex; align-items:center; gap:10px; font-family:var(--f-body); font-size:10px; font-weight:500; letter-spacing:.24em; text-transform:uppercase; color:var(--accent) }
.pc-radio-kicker .pc-wave span { background:var(--accent); animation-play-state:paused }
.pc-radio.is-playing .pc-radio-kicker .pc-wave span { animation-play-state:running }
.pc-radio-title { margin-top:5px; font-family:var(--f-serif); font-size:16px; color:var(--heading); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.pc-radio-sub { margin-top:3px; font-family:var(--f-body); font-size:11px; letter-spacing:.12em; color:var(--muted-2) }
.pc-radio-sub a { color:var(--accent) }
.pc-radio-sub .sep { margin:0 5px }
.pc-radio-nav { flex:0 0 auto; display:flex; gap:6px }
.pc-radio-nav button { width:36px; height:36px; border-radius:50%; border:1px solid var(--rb2); background:transparent; color:var(--accent); font-size:20px; line-height:1; cursor:pointer }
.pc-radio-nav button:hover { background:rgba(67,198,216,.14) }
.pc-radio-close { flex:0 0 auto; align-self:center; width:30px; height:30px; border:1px solid var(--rb2); border-radius:50%; background:transparent; color:var(--accent); font-size:13px; line-height:1; cursor:pointer; padding:0 }
.pc-radio-close:hover { background:rgba(67,198,216,.14) }
.pc-radio-sc { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; left:0; bottom:0 }
.pc-radio-sc iframe { width:300px; height:120px; border:0 }
.pc-radio-hbtn { display:none; align-items:stretch }
.pc-radio-hbtn.is-on { display:inline-flex }
.pc-radio-hbtn-main { display:inline-flex; align-items:center; gap:8px; padding:7px 5px 7px 13px; border:1px solid var(--rb2); border-right:0; border-radius:999px 0 0 999px; background:rgba(67,198,216,.1); color:var(--accent); font-family:var(--f-body); font-size:11px; font-weight:500; letter-spacing:.24em; text-transform:uppercase; cursor:pointer }
.pc-radio-hbtn-exp { display:inline-flex; align-items:center; justify-content:center; width:26px; border:1px solid var(--rb2); border-left:0; border-radius:0 999px 999px 0; background:rgba(67,198,216,.1); color:var(--accent); font-size:10px; cursor:pointer }
.pc-radio-hbtn-main:hover, .pc-radio-hbtn-exp:hover { background:rgba(67,198,216,.2) }
.pc-radio-hbtn .pc-wave { height:11px }
.pc-radio-hbtn .pc-wave span { background:var(--accent); animation-play-state:paused }
.pc-radio-hbtn.is-playing .pc-wave span { animation-play-state:running }
@media (max-width:640px){ .pc-radio{ gap:11px; padding:8px 11px; left:12px; right:12px; width:auto } .pc-radio-nav button[data-radio-prev]{ display:none } .pc-radio-kicker-tail{ display:none } .pc-radio-btn{ width:38px; height:38px } .pc-radio-title{ font-size:14px } }
@media (prefers-reduced-motion:reduce){ .pc-wave span{ animation:none } .pc-radio.is-playing .pc-radio-btn{ animation:none } }

/* ==================== 3d. Round 59 — PHONE PASS (<=640px) ==============
   Ariel 2026-09-03: staging on the phone was "a very narrow scroll-down".
   Root cause: the <=999px block linearizes the desktop layout. This block
   makes phone-first decisions. Nothing here touches >=641px.
   - header: one row (seal+wordmark · compact RADIO · MENU) + a drawer
     (markup in index.html after </nav>; toggle in js/phone.js). Drawer = yes,
     Ariel's call 2026-09-03 01:1x (the S255 canvas had no drawer).
   - first screen = hero; letter-spaced labels tightened; chips wrap as one
     inline row; the spotlight panel goes flush (no card-in-card); section
     rhythm halved; fluid type at 375/390/430.
   Inline styles on elements force !important here (same pattern as 3). */
.m-menu, .m-drawer, .m-goldie { display: none; }

@media (max-width: 640px) {
  /* header: one row */
  .site-header {
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 9px 14px !important;
  }
  .site-header > a[href="#top"] { gap: 9px !important; }
  .site-header > a[href="#top"] img { width: 28px !important; height: 28px !important; }
  [data-wordmark] { font-size: 14px !important; letter-spacing: .1em !important; }
  .site-header nav {
    width: auto !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }
  .site-header nav > a,
  .site-header nav > span[style^="width:1px"] { display: none !important; }
  .site-header nav .pc-radio-hbtn-main { padding: 6px 4px 6px 10px !important; }
  .site-header nav .pc-radio-hbtn-txt { display: none !important; }
  .m-menu {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    padding: 8px 11px; border: 1px solid rgba(232,184,75,.5); border-radius: 999px;
    background: rgba(232,184,75,.07); color: #F4E9D2; cursor: pointer;
    font: 400 10px/1 'Frank Ruhl Libre', serif; letter-spacing: .2em; text-transform: uppercase;
  }
  .m-menu-ico { display: inline-flex; flex-direction: column; gap: 3px; width: 14px; }
  .m-menu-ico span { display: block; height: 1px; background: #E8B84B; transition: transform .25s ease, opacity .25s ease; }
  .m-menu[aria-expanded="true"] .m-menu-ico span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .m-menu[aria-expanded="true"] .m-menu-ico span:nth-child(2) { opacity: 0; }
  .m-menu[aria-expanded="true"] .m-menu-ico span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .m-drawer {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 61;
    flex-direction: column; padding: 6px 18px 20px;
    background: rgba(8,6,11,.97); border-bottom: 1px solid rgba(232,184,75,.3);
    box-shadow: 0 24px 60px rgba(0,0,0,.55);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .28s ease, opacity .22s ease;
  }
  .m-drawer.is-open { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .m-drawer > a {
    display: block; padding: 17px 2px; border-bottom: 1px solid rgba(244,233,210,.08);
    font: 400 14px/1 'Frank Ruhl Libre', serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(244,233,210,.86);
  }
  .m-drawer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
  .m-drawer-goldie {
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px;
    border: 1px solid rgba(232,184,75,.6); border-radius: 999px; background: rgba(232,184,75,.08);
    font: 400 11px/1 'Frank Ruhl Libre', serif; letter-spacing: .18em; text-transform: uppercase; color: #F6D98A;
  }
  .m-drawer-ig { font: 400 11px/1 'Frank Ruhl Libre', serif; letter-spacing: .18em; text-transform: uppercase; color: #C77BE8; }
  .m-dot { width: 6px; height: 6px; border-radius: 50%; background: #7BE0A0; box-shadow: 0 0 10px rgba(123,224,160,.9); }
  [data-radio-panel] { right: 12px !important; left: 12px !important; top: calc(100% + 8px) !important; }

  /* floating Goldie pill (shown by js/phone.js after the hero, hidden inside #goldie) */
  .m-goldie {
    position: fixed; right: 14px; bottom: 14px; z-index: 55;
    align-items: center; gap: 8px; padding: 11px 16px;
    border: 1px solid rgba(232,184,75,.65); border-radius: 999px;
    background: rgba(8,6,11,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font: 400 10px/1 'Frank Ruhl Libre', serif; letter-spacing: .2em; text-transform: uppercase; color: #F6D98A;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    transform: translateY(16px); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .m-goldie.is-shown { display: inline-flex; }
  .m-goldie.is-shown.is-on { transform: none; opacity: 1; pointer-events: auto; }

  /* hero: first screen */
  .hero-copy { padding-bottom: 30px !important; }
  .hero-copy .h1 { font-size: clamp(46px, 14.5vw, 60px) !important; margin-top: 22px !important; }
  .hero-copy p[style*="font:400 25px"] { font-size: 20px !important; margin-top: 16px !important; }
  .hero-copy .lede { font-size: 15.5px !important; line-height: 1.6 !important; margin-top: 12px !important; }

  /* letter-spaced labels: tighten so they hold a line */
  [style*="letter-spacing:.4em"]  { letter-spacing: .2em !important; }
  [style*="letter-spacing:.3em"]  { letter-spacing: .16em !important; }
  [style*="letter-spacing:.28em"] { letter-spacing: .14em !important; }
  [style*="letter-spacing:.24em"] { letter-spacing: .12em !important; }
  [style*="letter-spacing:.2em"]  { letter-spacing: .12em !important; }
  [style*="letter-spacing:.22em"] { letter-spacing: .12em !important; }
  [style*="letter-spacing:.26em"] { letter-spacing: .13em !important; }
  [style*="letter-spacing:.32em"] { letter-spacing: .16em !important; }
  [style*="letter-spacing:.34em"] { letter-spacing: .17em !important; }
  [style*="letter-spacing:.38em"] { letter-spacing: .19em !important; }

  /* next-journey band under the hero */
  .next-journey-band { padding: 26px 20px 26px !important; gap: 20px !important; }
  .nj-title { font-size: 30px !important; }
  .nj-chips { flex-wrap: wrap !important; gap: 8px 10px !important; font-size: 10.5px !important; line-height: 1.5 !important; }
  .next-journey-band > div:last-child { gap: 12px !important; }
  .next-journey-band > div:last-child a[href="#goldie"] { width: 100%; justify-content: center; box-sizing: border-box; }
  #top > div:last-child > div:last-child { padding-bottom: 18px !important; }

  /* section rhythm + containers */
  section[id]:not(#top) { padding-top: 64px !important; padding-bottom: 64px !important; }
  .section-inner { padding: 0 20px !important; }
  .h2 { font-size: clamp(32px, 9.6vw, 40px) !important; line-height: 1.05 !important; }
  .lede { font-size: 16.5px !important; line-height: 1.6 !important; }
  p[style*="font:300 18px"] { font-size: 16px !important; line-height: 1.65 !important; }
  [data-reveal][style*="margin-top:74px"] { margin-top: 44px !important; }
  [data-reveal][style*="margin-top:84px"] { margin-top: 48px !important; }
  [data-reveal][style*="margin-top:72px"] { margin-top: 40px !important; }
  [data-reveal][style*="margin-top:56px"] { margin-top: 32px !important; }

  /* spotlight panel: flush, no card-in-card */
  .ps-panel { margin-left: -20px !important; margin-right: -20px !important; border-left: 0 !important; border-right: 0 !important; border-radius: 0 !important; }
  .ps-panel-pad { padding: 30px 20px 28px !important; }
  .ps-panel-pad > div:first-child { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .ps-panel-pad p[style*="font:400 40px"] { font-size: 30px !important; margin-top: 16px !important; }
  .ps-panel [style*="padding:26px 26px 24px"] { padding: 18px 16px 18px !important; }

  /* cards + boxes */
  .chapter-band-row { padding: 22px 20px 24px !important; }
  [style*="padding:42px 40px"] { padding: 26px 20px 28px !important; }
  #goldie .section-inner > .stack-mobile { padding: 30px 20px 32px !important; gap: 26px !important; }
  #goldie .wa-cta { padding: 18px 26px !important; }
  #goldie .h2 { font-size: clamp(30px, 9vw, 38px) !important; }

  /* footer */
  .footer-grid { padding: 40px 20px 24px !important; gap: 28px !important; }
  .footer-bottom { padding: 0 20px 28px !important; }
}
/* Round 60: large inline display sizes that the phone block did not cover (chapter-4 card title 54px
   overflowed its card at 375px). Any inline 40–79px display line clamps to a phone size. */
@media (max-width: 640px) {
  [style*="font:400 54px"] { font-size: clamp(32px, 9.6vw, 40px) !important; line-height: 1.05 !important; }
  [style*="font:400 60px"], [style*="font:400 66px"] { font-size: clamp(32px, 9.6vw, 40px) !important; line-height: 1.05 !important; }
  [style*="font:400 44px"], [style*="font:400 46px"], [style*="font:400 48px"] { font-size: clamp(28px, 8.5vw, 36px) !important; line-height: 1.1 !important; }
  .chc span[style*="font:400 54px"] { display: block; overflow-wrap: anywhere; }
}

/* ==================== 3e. Round 61 — PHONE REDESIGN OF SECTION INTERNALS (<=640px) ==============
   Ariel 2026-09-03 03:1x on r59/r60: "an improvement" but still a long narrow scroll — tall boxes
   one under the other, the spotlight name list huge, founders boxes long. "Not trying to copy the
   desktop and force it onto the phone." Phone-native patterns instead:
   - swipe rows (scroll-snap carousels) for the Angel Wings/Golden Circle pair, the chapter cards,
     the founders cards — one row instead of a stack; the next card peeks in as the affordance
   - Purple Spores World keeps the trailer + NOW SHOWING list; the four preview boxes are desktop-only
   - artist names become a chip row above a compact cover card (same JS, same flip)
   - the three principles become a compact list; chapter-4 card compact
   Class hooks added in index.html: m-carousel · m-hide · m-chips · m-compact-list. Nothing above 640px changes. */
@media (max-width: 640px) {
  .m-hide { display: none !important; }

  .m-carousel {
    display: flex !important; flex-wrap: nowrap !important;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    gap: 12px !important; margin-left: -20px !important; margin-right: -20px !important; padding: 0 20px 10px !important;
    scrollbar-width: none;
  }
  .m-carousel::-webkit-scrollbar { display: none; }
  .m-carousel > * { flex: 0 0 84% !important; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .m-carousel > .chc { flex-basis: 80% !important; }
  .m-carousel [style*="font:300 1"] { font-size: 14.5px !important; line-height: 1.55 !important; }
  .m-carousel [style*="font:300 2"] { font-size: 15px !important; line-height: 1.5 !important; }
  .m-carousel .chc-front { min-height: 0 !important; }

  /* Purple Spores World: the pair under the videos */
  #event .m-carousel > div { padding: 22px 18px 22px !important; }
  #event .m-carousel [style*="font:400 40px"] { font-size: 24px !important; line-height: 1.1 !important; margin-top: 12px !important; }
  #event .m-carousel [data-anim][style*="height:90px"] { height: 48px !important; margin: 16px 0 0 !important; }
  #event .m-carousel p, #event .m-carousel [style*="font:300 16px"], #event .m-carousel [style*="font:300 17px"] { font-size: 14.5px !important; line-height: 1.55 !important; }
  #event p[data-reveal][style*="margin:52px"] { margin-top: 36px !important; font-size: 20px !important; }
  [data-reveal][style*="margin-top:84px"] { margin-top: 36px !important; }

  /* chapters: chapter-4 card compact */
  #archive .chc[data-reveal] .chapter-band-row { padding: 18px 16px 18px !important; gap: 10px !important; }
  #archive .chc[data-reveal] [style*="font:400 54px"] { font-size: 26px !important; }
  #archive .chc[data-reveal] p, #archive .chc[data-reveal] [style*="font:300 18px"] { font-size: 14.5px !important; line-height: 1.5 !important; }

  /* artist spotlights: chip row + compact cover card */
  .m-chips {
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    overflow-x: auto; gap: 8px; border-top: 0 !important; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none;
  }
  .m-chips::-webkit-scrollbar { display: none; }
  .m-chips .spot-row { flex: 0 0 auto; padding: 10px 14px !important; border: 1px solid rgba(var(--zone-rgb),.35) !important; border-radius: 999px; background: rgba(11,7,20,.5); white-space: nowrap; }
  .m-chips .spot-row-active { background: rgba(var(--zone-rgb),.16) !important; border-color: var(--zone) !important; }
  .m-chips .spot-row-name { font-size: 15px !important; letter-spacing: .02em; }
  .m-chips .spot-row-desc { display: none !important; }
  #spotlights .stack-mobile { gap: 14px !important; margin-top: 20px !important; }
  #spotlights .spot-card-front { aspect-ratio: 4 / 3 !important; }
  #spotlights [data-spot-front-name] { font-size: 28px !important; }

  /* founders: compact carousel cards; principles as a compact list */
  #house .founders-row > div { padding: 22px 18px 22px !important; }
  #house .founders-row [style*="font:400 34px"] { font-size: 24px !important; }
  #house .founders-row [style*="font:400 30px"] { font-size: 20px !important; line-height: 1.25 !important; margin-top: 12px !important; }
  #house .founders-row [data-anim][style*="height:"] { height: 40px !important; margin: 14px 0 0 !important; }
  #house .founders-row p[style*="font:300"] { font-size: 14.5px !important; line-height: 1.55 !important; }
  .m-compact-list { gap: 0 !important; margin-top: 24px !important; }
  .m-compact-list > div { padding: 18px 0 !important; border-top: 1px solid rgba(var(--zone-rgb),.25); }
  .m-compact-list [style*="font:400 24px"] { font-size: 19px !important; margin-top: 8px !important; }
  .m-compact-list p[style*="font:300"] { font-size: 14.5px !important; line-height: 1.5 !important; margin-top: 8px !important; }
}

/* Round 62 (2026-09-03 01:2x): PHONE FIX — artist spotlight flip. The 3D back face is absolutely
   positioned and inherits the front's height (4:3 since r61), so the bio spilled over the flag/label
   strip and the READ button (Ariel's screenshots). On the phone the flip becomes an instant swap
   with natural height: front hidden, back rendered in flow. Desktop keeps the 3D flip. */
@media (max-width: 640px) {
  #spotlights .spot-card-inner { transform: none !important; transition: none !important; min-height: 0 !important; }
  #spotlights .spot-card-back { display: none !important; position: relative !important; transform: none !important; inset: auto !important; padding: 22px 18px 46px !important; }
  #spotlights .spot-card.spot-flipped .spot-card-back { display: flex !important; flex-direction: column !important; }
  #spotlights .spot-card.spot-flipped .spot-card-front { display: none !important; }
  #spotlights [data-spot-back-name] { font-size: 26px !important; }
  #spotlights [data-spot-back-bio] { font-size: 14.5px !important; line-height: 1.55 !important; max-width: none !important; }
}

/* ==================== 3f. Round 63 — PHONE: flip restored, founders coin, hero strip (<=640px) ==============
   Ariel 2026-09-03 09:xx on r62: (1) "the cards don't flip anymore, that animation is lost" — r62's instant swap is
   replaced: both faces stack in ONE grid cell so the card takes the taller face's height and the 3D flip works again;
   (2) founders = "a nice 3D module" — the seal turns as a gold coin (RECHARGE / ARCHiiE), tap to turn, one founder
   card at a time below; (3) hero = the full panorama as a top strip, copy below on dark ("we're losing half of it"). */
.m-coin { display: none; }

@media (max-width: 640px) {
  /* (1) artist spotlight: real flip, natural height */
  #spotlights .spot-card-inner { display: grid !important; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4,.05,.3,1) !important; min-height: 0 !important; }
  #spotlights .spot-card.spot-flipped .spot-card-inner { transform: rotateY(180deg) !important; }
  #spotlights .spot-card-front, #spotlights .spot-card-back { grid-area: 1 / 1; position: relative !important; inset: auto !important; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  #spotlights .spot-card-front { display: block !important; aspect-ratio: auto !important; min-height: 240px; }
  #spotlights .spot-card-back { display: flex !important; flex-direction: column !important; transform: rotateY(180deg) !important; padding: 22px 18px 46px !important; }
  #spotlights .spot-card.spot-flipped .spot-card-front { display: block !important; }

  /* (2) founders coin */
  .m-coin { display: block; margin: 28px 0 6px; }
  .m-coin-stage { height: 230px; perspective: 900px; display: flex; align-items: center; justify-content: center; }
  .m-coin-inner { position: relative; width: 200px; height: 200px; transform-style: preserve-3d; animation: coinTurn 16s linear infinite; transition: transform 1s cubic-bezier(.4,.05,.3,1); }
  .m-coin-inner.is-held { animation: none; }
  @keyframes coinTurn { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
  .m-coin-face { position: absolute; inset: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; -webkit-backface-visibility: hidden; backface-visibility: hidden;
    background: radial-gradient(circle at 38% 32%, #F6D98A 0%, #E8B84B 34%, #9C7422 72%, #5C4212 100%); box-shadow: inset 0 0 0 3px rgba(255,240,200,.35), inset 0 0 40px rgba(60,40,10,.55), 0 18px 50px rgba(0,0,0,.55); }
  .m-coin-face::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid rgba(60,40,10,.45); }
  .m-coin-face img { width: 78px; height: 78px; display: block; filter: brightness(.25) sepia(1) saturate(.6) contrast(1.4) drop-shadow(0 1px 0 rgba(255,240,200,.35)); mix-blend-mode: multiply; }
  .m-coin-face span { font: 400 15px/1 'Suez One', serif; letter-spacing: .12em; color: #2A1D08; }
  .m-coin-face small { font: 400 9px/1 'Frank Ruhl Libre', serif; letter-spacing: .22em; text-transform: uppercase; color: rgba(42,29,8,.75); }
  .m-coin-back { transform: rotateY(180deg); }
  .m-coin-tabs { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
  .m-coin-tabs button { padding: 10px 18px; border: 1px solid rgba(var(--zone-rgb),.4); border-radius: 999px; font: 400 11px/1 'Frank Ruhl Libre', serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,233,210,.75); background: rgba(11,7,20,.4); transition: background .3s, color .3s, border-color .3s; }
  .m-coin-tabs button.on { background: rgba(var(--zone-rgb),.18); border-color: var(--zone); color: #F4E9D2; }
  /* one founder card at a time, compact, in flow (overrides the r61 carousel for this row) */
  #house .founders-row.m-carousel { display: block !important; margin: 14px 0 0 !important; padding: 0 !important; overflow: visible !important; }
  #house .founders-row > div { display: none !important; flex: none !important; padding: 22px 18px 24px !important; }
  #house .founders-row > div.on { display: flex !important; animation: riseIn .6s ease-out both; }

  /* (3) hero: full panorama strip + copy below */
  #top [data-sun-art] {
    aspect-ratio: auto !important;
    background-image: url('../uploads/hero-chain-panorama-960.webp') !important;
    background-size: 100% auto !important; background-position: 50% 0 !important; background-repeat: no-repeat !important;
    background-color: #08060B !important;
    padding-top: calc(100% * 821 / 1916);
  }
  #top [data-sun-art] > div[style*="position:absolute;inset:0"] { display: none !important; } /* the art's dark gradient washes */
  #top [data-sun-art] > div[style*="height:100%"] { position: static !important; height: auto !important; display: block !important; padding: 0 !important; }
  #top .hero-copy { padding: 22px 20px 26px !important; margin: 0 !important; width: 100% !important; }
  #top .hero-copy .h1 { font-size: clamp(44px, 13.5vw, 56px) !important; margin-top: 16px !important; text-shadow: none !important; }
  #top .hero-copy p { text-shadow: none !important; }
  #top [data-sun-layer], #top [data-aurora] { display: none !important; }
}

/* ==================== 3g. Round 64 — PHONE: founders as gold particle portraits (<=640px) ==============
   Ariel 2026-09-03 09:xx: "the boxes are very long and narrow… the badge idea is not there yet… maybe the 3D
   animations we tested for ARCHiiE.com: travelling in the galaxy with two worlds, Richard and ARCHiiE, or the
   pixels generating thousands of dots to our image." → js/founders3d.js. The founder text loses its box. */
.m-f3d { display: none; }
@media (max-width: 640px) {
  .m-f3d { display: block; position: relative; margin: 18px -20px 0; padding: 0 0 6px; }
  .m-f3d canvas { display: block; width: 100%; height: auto; touch-action: pan-y; position: relative; z-index: 1; } /* above the ::before stage */
  .m-f3d.is-off canvas { display: none; }
  /* Round 65: no box. A soft dark pool behind the vessel that fades into the section (no edges, no border). */
  .m-f3d::before { content: ""; position: absolute; left: -20px; right: -20px; top: -10px; bottom: 30px; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, rgba(8,6,11,.96) 0%, rgba(8,6,11,.92) 45%, rgba(8,6,11,0) 78%); }
  .m-f3d-tabs { display: flex; justify-content: center; gap: 10px; margin-top: -4px; position: relative; z-index: 2; }
  .m-f3d-tabs button { padding: 10px 18px; border: 1px solid rgba(var(--zone-rgb),.4); border-radius: 999px; font: 400 11px/1 'Frank Ruhl Libre', serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,233,210,.75); background: rgba(11,7,20,.55); transition: background .3s, color .3s, border-color .3s; }
  .m-f3d-tabs button.on { background: rgba(var(--zone-rgb),.18); border-color: var(--zone); color: #F4E9D2; }
  #house .house-fixedbg { opacity: .32 !important; } /* Round 65: the founders photo steps back behind the vessel on phone */
  .m-f3d-hint { margin-top: 10px; text-align: center; font: 400 9px/1 'Frank Ruhl Libre', serif; letter-spacing: .22em; text-transform: uppercase; color: rgba(244,233,210,.4); position: relative; z-index: 2; }
  /* founder words: one at a time, no box */
  #house .founders-row.m-carousel { display: block !important; margin: 10px 0 0 !important; padding: 0 !important; overflow: visible !important; }
  #house .founders-row > div { display: none !important; }
  #house .founders-row > div.on { display: block !important; border: 0 !important; background: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 8px 0 0 !important; animation: riseIn .6s ease-out both; }
  #house .founders-row > div.on > div[style*="position:absolute"] { display: none !important; } /* the card's corner marks */
  #house .founders-row [style*="font:400 34px"] { font-size: 22px !important; }
  #house .founders-row [style*="font:400 30px"] { font-size: 18px !important; line-height: 1.3 !important; margin-top: 10px !important; }
  #house .founders-row [data-anim][style*="height:"] { height: 30px !important; margin: 10px 0 0 !important; }
  #house .founders-row p[style*="font:300"] { font-size: 14.5px !important; line-height: 1.55 !important; }
}

/* ==================== 3h. Round 66 — PHONE: use the width (<=640px) ==============
   Ariel 2026-09-03 11:00: founders text "very narrow, not using all the space"; footer "just a narrow list". */
@media (max-width: 640px) {
  /* founders words: the card's inner wrapper carried desktop padding (30px sides) — gone; type back up now that it has room */
  #house .founders-row > div.on > div { padding: 10px 0 0 !important; }
  #house .founders-row > div.on [style*="font:400 34px"] { font-size: 26px !important; }
  #house .founders-row > div.on [style*="font:400 30px"] { font-size: 21px !important; line-height: 1.3 !important; }
  #house .founders-row > div.on p[style*="font:300"] { font-size: 16px !important; line-height: 1.6 !important; max-width: none !important; }
  #house .founders-row > div.on [data-anim][style*="height:"] { height: 36px !important; }
  /* principles: full width, slightly larger */
  .m-compact-list p[style*="font:300"] { font-size: 16px !important; max-width: none !important; }
  /* footer: brand row full width, then two columns side by side, larger links */
  .footer-grid { grid-template-columns: 1fr 1fr !important; column-gap: 20px !important; row-gap: 30px !important; padding: 40px 20px 26px !important; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:first-child p { max-width: none !important; font-size: 16px !important; }
  .footer-grid > div:nth-child(4) { grid-column: 1 / -1; }
  .footer-grid a { font-size: 17px !important; }
  .footer-grid > div { gap: 12px !important; }
  .footer-bottom { padding: 0 20px 30px !important; gap: 8px !important; }
}

/* ==================== Round 67 — next-journey band (all widths) ==============
   Ariel (desktop, 11:1x): the right column's pill / button / caption were right-aligned; centre them on one axis.
   Also a fixed Purple Spores night crop behind the band (markup .nj-fixedbg) for depth. */
.nj-cta > [data-state="coming-soon"], .nj-cta > a[href="#goldie"] { min-width: 250px; justify-content: center; box-sizing: border-box; }
.nj-cta > span { text-align: center; }
@media (max-width: 999px) {
  .next-journey-band > div.nj-cta:last-child { align-items: stretch !important; min-width: 0 !important; width: 100%; text-align: center; }
  .next-journey-band > div.nj-cta:last-child > span { text-align: center; }
  .nj-fixedbg { background-attachment: scroll !important; opacity: .42 !important; background-position: 62% 30% !important; } /* fixed attachment is unreliable on mobile browsers */
}

/* ==================== Round 68 — PHONE: chapter cards in the swipe row share one height (<=640px) ==============
   Ariel (phone, 11:07): "the Shittim box is longer than the others — align it". Flex items already stretch; the flip
   card's inner box did not fill them. Now the inner + front fill the row, and titles wrap less. */
@media (max-width: 640px) {
  .m-carousel > .chc { display: flex; }
  .m-carousel > .chc > .chc-inner { display: flex; flex: 1 1 auto; height: auto !important; min-height: 0 !important; }
  .m-carousel > .chc .chc-front { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0 !important; }
  .m-carousel > .chc .chc-front > span[style*="padding:22px 24px 26px"] { flex: 1 1 auto; padding: 18px 18px 22px !important; }
  .m-carousel > .chc .chc-front [style*="font:400 27px"] { font-size: 22px !important; line-height: 1.15 !important; }
  .m-carousel > .chc .chc-front [style*="font:300 16px"], .m-carousel > .chc .chc-front [style*="font:300 15px"] { font-size: 14.5px !important; line-height: 1.5 !important; }
}
