/* ═══════════════════════════════════════════════════════════════════════
   experience.css — the scroll story around the portfolio (index.html)

   ONE document, ONE native scroller:
     #intro      character animation → laptop screen → zoom into the screen
     #portfolio  the portfolio itself (portfolio.css), plain native scroll
     #outro      zoom back out onto the laptop → lid closes → contact card

   Fixed layers, bottom to top (only visible during intro/outro — the
   "stage" states set on <body> by experience.js):
     .xp-galaxy (static image) / #galaxyCanvas (desktop, Galaxy.js)
     .xp-character  — WebGL canvas: the transparent character video
     .xp-portal     — the portfolio pinned onto the laptop screen
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Startup loader ───────────────────────────────────────────────────── */
body.is-loading{ overflow: hidden; }
.startupLoader{
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: #05050a;
  transition: opacity 0.5s ease;
}
.startupLoader[hidden]{ display: none; }
.startupLoader.is-hiding{ opacity: 0; pointer-events: none; }
.startupLoader__inner{ width: min(420px, 100%); text-align: center; }
.startupLoader__kicker{
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(234, 240, 255, 0.55); margin-bottom: 14px;
}
.startupLoader__title{
  font-family: var(--display);
  font-size: clamp(19px, 4.5vw, 26px); font-weight: 700;
  margin-bottom: 28px;
  background: linear-gradient(90deg, #ffffff, #ffb8ea, #cfa9ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.startupLoader__bar{
  height: 4px; border-radius: 999px; overflow: hidden; margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.12);
}
.startupLoader__fill{
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.25s ease;
}
.startupLoader__pct{
  font-size: 14px; color: rgba(234, 240, 255, 0.65);
  font-variant-numeric: tabular-nums;
}

/* Full-screen modals lock the page behind them (portfolio.js, lockPage) */
html.is-scroll-locked{ overflow: hidden; }

/* ── Fixed stage layers ───────────────────────────────────────────────── */
.xp-galaxy, #galaxyCanvas, .xp-character, .xp-portal-clip{
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100vh;   /* vh = large viewport on phones: never resizes as the toolbar moves */
  pointer-events: none;
}
.xp-galaxy{
  z-index: 0;
  background: #05050a url("assets/backgrounds/Galaxy.webp") center / cover no-repeat;
}
#galaxyCanvas{ z-index: 0; }
.xp-character{ z-index: 2; }
.xp-portal-clip{ z-index: 3; }
.xp-portal{
  position: absolute; top: 0; left: 0;
  height: 100vh;               /* width set from JS = layout width (no scrollbar) */
  background: var(--bg);
  /* NOT overflow:hidden — on desktop the screen shows the page's full width,
     so it reaches above/below the page (see placePortal). The JS clip-path
     trims everything to that rect; the screens clip their own content. */
  transform-origin: 0 0;
  will-change: transform;
}
/* page background filling the area above/below the page on the screen */
.xp-portal::before{
  content: ""; position: absolute; z-index: -1;
  left: 0; right: 0; top: -100vh; bottom: -100vh;
  background: var(--bg);
}
.xp-portal__screen{ display: none; height: 100%; overflow: hidden; }
.xp-portal__screen.is-on{ display: block; }

/* The screens reuse the portfolio hero's own classes (.flight__pin,
   .fscene, .hero__*) so the intro screen is pixel-identical to the real
   hero it hands off to. These rules mirror .fscene#top, which can't be
   targeted by id in a clone. */
.xp-portal .flight__pin, .xp-outro__lead .flight__pin{ position: relative; }
.xp-scene{
  --so: 1; --sz: 1;
  align-items: flex-start;
  text-align: left;
  padding: 0 clamp(24px, 9vw, 150px);
}

/* Stage vs portfolio visibility */
body:not(.xp-stage) .xp-galaxy,
body:not(.xp-stage) #galaxyCanvas,
body:not(.xp-stage) .xp-character,
body:not(.xp-stage) .xp-portal-clip,
body:not(.xp-stage) .xp-stage-ui{ visibility: hidden; }
/* While the intro plays, the portfolio below must not show through as it
   scrolls up behind the stage — it's revealed at the exact handoff point. */
body.xp-intro #portfolio{ visibility: hidden; }
/* The outro's lead screen is identical to the fixed portal at the handoff,
   then hides so it can't cover the galaxy as it scrolls away. */
body.xp-outro .xp-outro__lead{ visibility: hidden; }
.top, .bnav{ transition: opacity 0.35s ease; }
/* Header (logo) stays up through the intro — the site's identity from the
   first frame, continuous into the handoff. Bottom nav is portfolio-only. */
body.xp-stage .bnav, body.xp-outro .top{ opacity: 0; pointer-events: none; }
body:not(.xp-intro) .xp-hero, body:not(.xp-intro) .xp-bgword,
body:not(.xp-intro) .xp-toplinks{ visibility: hidden; }

/* ── Opening: title, giant background word, top links ─────────────────── */
/* Entrance after the loader (time-based, once), then scroll-driven exit
   via --x (0 = resting, 1 = gone), set by experience.js. */
.xp-in{
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 90ms + 200ms);
}
body.xp-ready .xp-in{ opacity: 1; transform: none; }

.xp-hero{ position: absolute; inset: 0; --x: 0; }
/* Both blocks sit in the bottom corners, either side of the laptop, so the
   glass PORTFOLIO across the middle stays clear. */
.xp-hero__main, .xp-hero__side{ position: absolute; bottom: calc(5vh + 52px); }
.xp-hero__main{
  left: clamp(24px, 5.5vw, 96px);
  max-width: min(30vw, 520px);
  transform: translateY(calc(var(--x) * -60px));
  opacity: calc(1 - var(--x) * 1.5);
}
.xp-hero__side{
  right: clamp(24px, 5.5vw, 96px);
  max-width: min(27vw, 380px);
  text-align: right;
  transform: translateY(calc(var(--x) * -90px));
  opacity: calc(1 - var(--x) * 1.8);
}
.xp-hero__kicker{
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: clamp(12px, 1vw, 14px); letter-spacing: 0.16em; text-transform: uppercase;
  color: #ff9fe0;
  text-shadow: 0 1px 2px rgba(5, 5, 10, 0.9), 0 0 14px rgba(5, 5, 10, 0.8);
  margin-bottom: 16px;
}
/* Crisp contact shadow + wide soft shadow: separates white text from any
   bright star or nebula behind it */
.xp-hero__role, .xp-hero__meta, .xp-hero__sub, .xp-hero__name{
  text-shadow: 0 1px 2px rgba(5, 5, 10, 0.85), 0 2px 22px rgba(5, 5, 10, 0.75);
}
/* gradient text has a transparent fill, so a text-shadow would show
   THROUGH it — shadow the painted glyphs with a filter instead */
.xp-hero__name em{ text-shadow: none; filter: drop-shadow(0 1px 2px rgba(5, 5, 10, 0.85)) drop-shadow(0 2px 18px rgba(5, 5, 10, 0.6)); }
.xp-hero__name{
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 3.5vw, 72px);
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--text);
}
.xp-hero__name em{
  font-style: normal;
  background: linear-gradient(94deg, #ffffff 10%, #ffb8ea 60%, #cfa9ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.xp-hero__role{
  margin-top: 18px;
  font-size: clamp(14px, 1.1vw, 17px); letter-spacing: 0.02em;
  color: rgba(244, 243, 240, 0.9);
}
.xp-hero__pill{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  background: rgba(5, 5, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.xp-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: xpPulse 2.2s ease-out infinite;
}
@keyframes xpPulse{
  0%{ box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%, 100%{ box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
}
.xp-hero__sub{
  margin-top: 18px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 1.6vw, 24px); line-height: 1.3;
  color: var(--text);
}
.xp-hero__meta{
  margin-top: 12px;
  font-size: 13px; letter-spacing: 0.06em;
  color: rgba(244, 243, 240, 0.78);
}

/* Giant outlined word behind the character: depth + "this is a site" */
.xp-bgword{
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  --x: 0;
}
/* The word box only moves (transform). Opacity / filter live on the layers
   inside it: on an ancestor they would switch off the glass's backdrop blur. */
.xp-bgword__word{
  position: relative;
  font-family: var(--display); font-weight: 700;
  font-size: 19vw; letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap;
  transform: translateY(-6vh) scale(calc(1.06 + var(--x) * 0.35));
}
/* Frosted glass inside the letters: the galaxy behind, blurred and lifted,
   with a top-lit sheen. Cut to the glyphs by an SVG clip whose text
   experience.js sizes to match this box exactly. */
.xp-bgword__glass{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 184, 234, 0.08) 100%);
  backdrop-filter: blur(14px) saturate(1.6) brightness(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.6) brightness(1.3);
  clip-path: url(#xpGlassClip);
  z-index: -1;   /* under the ink, inside the word's own stacking context */
  opacity: calc(1 - var(--x) * 1.4);
}
/* Rim of the glass: crisp outline + soft pink halo, drawn over it */
.xp-bgword__ink{
  color: transparent; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  filter: drop-shadow(0 0 16px rgba(255, 120, 210, 0.35));
  opacity: calc(1 - var(--x) * 1.4);   /* scroll-driven: no transition here */
}
.xp-bgword__base{ display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.xp-bgword__defs{ position: absolute; width: 0; height: 0; overflow: hidden; }
/* Without backdrop-filter, fall back to the solid outline + faint fill */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .xp-bgword__glass{ display: none; }
  .xp-bgword__ink{
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 184, 234, 0.04) 70%);
    -webkit-background-clip: text; background-clip: text;
  }
}
/* Legibility scrim behind the hero text. Lives in the bgword layer (z 1),
   i.e. UNDER the character, so it darkens only the sky behind the copy. */
.xp-bgword::before{
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 44vw 46vh at 2% 92%, rgba(5, 5, 12, 0.72), rgba(5, 5, 12, 0.35) 55%, transparent 80%),
    radial-gradient(ellipse 40vw 42vh at 98% 92%, rgba(5, 5, 12, 0.66), rgba(5, 5, 12, 0.3) 55%, transparent 80%),
    linear-gradient(180deg, rgba(5, 5, 12, 0.45), transparent 16%);
  opacity: calc(1 - var(--x) * 1.4);
}
/* Entrance on each layer (NOT the wrapper: wrapper opacity would switch
   the glass blur off). Backwards fill only, so once it ends the
   scroll-driven opacity applies with no lag. */
body:not(.xp-ready) .xp-bgword{ visibility: hidden; }
body.xp-ready .xp-bgword::before, body.xp-ready .xp-bgword__glass, body.xp-ready .xp-bgword__ink{
  animation: xpFadeIn 1.4s ease 0.15s backwards;
}
@keyframes xpFadeIn{ from{ opacity: 0; } }

.xp-toplinks{
  position: fixed; z-index: 101;
  top: 20px; right: clamp(18px, 4vw, 44px);
  display: flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity 0.8s ease 0.5s;
}
body.xp-ready .xp-toplinks{ opacity: 1; }
.xp-toplinks a, .xp-toplinks button{
  font: 500 14px/1 var(--display);
  color: var(--muted);
  padding: 9px 15px; border-radius: 999px;
  background: rgba(5, 5, 10, 0.35);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.xp-toplinks a:hover, .xp-toplinks button:hover{ color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.xp-toplinks button{
  color: #0a0510; border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.xp-toplinks button:hover{ color: #0a0510; filter: brightness(1.08); }

/* Character + galaxy entrance */
.xp-character{ transition: opacity 1s ease 0.1s, transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s; }
body:not(.xp-ready) .xp-character{ opacity: 0; transform: translateY(24px) scale(0.97); }
.xp-galaxy{ transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
body:not(.xp-ready) .xp-galaxy{ transform: scale(1.08); }

/* Squarer screens (≈4:3 – 16:10): the laptop fills the bottom corners there,
   so the text goes to the TOP corners instead — above the word, beside the
   head. (Portrait/phone rules below override this.) */
@media (max-aspect-ratio: 8/5) and (min-height: 501px){
  .xp-hero__main, .xp-hero__side{ top: 88px; bottom: auto; }
  .xp-hero__main{ transform: translateY(calc(var(--x) * -60px)); }
  .xp-hero__kicker{ margin-bottom: 10px; }
  .xp-hero__name{ font-size: clamp(32px, 3.4vw, 64px); }
  .xp-hero__role{ margin-top: 10px; }
  .xp-hero__sub{ margin-top: 14px; font-size: clamp(16px, 1.5vw, 22px); }
  .xp-bgword::before{
    background:
      radial-gradient(ellipse 44vw 40vh at 2% 10%, rgba(5, 5, 12, 0.72), rgba(5, 5, 12, 0.35) 55%, transparent 80%),
      radial-gradient(ellipse 40vw 38vh at 98% 10%, rgba(5, 5, 12, 0.66), rgba(5, 5, 12, 0.3) 55%, transparent 80%);
  }
}
/* Portrait / phones: name up top, pill at the bottom */
@media (max-aspect-ratio: 4/5), (max-width: 700px){
  .xp-hero__main{
    top: 74px; bottom: auto; left: 20px; right: 20px; max-width: none;
    transform: translateY(calc(var(--x) * -60px));
  }
  .xp-hero__kicker{ margin-bottom: 8px; }
  .xp-hero__name{ font-size: clamp(34px, 10.4vw, 64px); }
  .xp-hero__role{ margin-top: 8px; font-size: 13px; }
  .xp-hero__side{
    top: auto; bottom: calc(6vh + 64px); left: 20px; right: 20px;
    max-width: none; text-align: center;
    transform: translateY(calc(var(--x) * 60px));
  }
  .xp-hero__sub, .xp-hero__meta{ display: none; }
  .xp-bgword__word{ font-size: 24vw; transform: translateY(-2vh) scale(calc(1.06 + var(--x) * 0.35)); }
  .xp-bgword::before{
    background:
      linear-gradient(180deg, rgba(5, 5, 12, 0.78) 0%, rgba(5, 5, 12, 0.55) 22%, transparent 36%),
      linear-gradient(0deg, rgba(5, 5, 12, 0.6) 0%, rgba(5, 5, 12, 0.3) 18%, transparent 30%);
  }
  .xp-toplinks a{ display: none; }
  .xp-toplinks button{ font-size: 13px; padding: 8px 13px; }
}
/* Short landscape screens (phones on their side) */
@media (max-height: 500px){
  /* little room beside the laptop: name + pill only, kept compact */
  .xp-hero__main, .xp-hero__side{ bottom: calc(4vh + 44px); }
  .xp-hero__name{ font-size: clamp(22px, 3.3vw, 40px); }
  .xp-hero__kicker, .xp-hero__sub, .xp-hero__meta, .xp-hero__role{ display: none; }
  .xp-hero__side{ max-width: none; }
  .xp-hero__pill{ white-space: nowrap; font-size: 12px; padding: 7px 12px; gap: 8px; }
}

/* ── Screen power-on/off + glow ───────────────────────────────────────── */
.xp-portal-glow{
  position: absolute; top: 0; left: 0;
  transform-origin: 0 0;
  border-radius: 8px;
  box-shadow:
    0 0 60px 14px rgba(255, 106, 213, 0.5),
    0 0 160px 60px rgba(181, 123, 255, 0.3);
  opacity: 0;
  will-change: transform, opacity;
}
.xp-portal__screen{ transform-origin: calc(var(--sx) + var(--sw) / 2) calc(var(--sy) + var(--sh) / 2); }
.xp-fx{
  position: absolute; pointer-events: none; overflow: hidden;
  left: var(--sx, 0); top: var(--sy, 0); width: var(--sw, 100%); height: var(--sh, 100%);
}
.xp-fx__white{
  position: absolute; inset: 0;
  background: rgb(236, 237, 235);              /* the video's screen white */
  clip-path: inset(calc(var(--scan, 0) * 100%) 0 0 0);
  opacity: var(--white, 0);
}
.xp-fx__scan{
  position: absolute; left: 0; right: 0;
  top: calc(var(--scan, 0) * 100%);
  height: max(3px, 2.2%);
  transform: translateY(-50%);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95) 45%, rgba(255, 184, 234, 0.95) 60%, transparent);
  box-shadow: 0 0 28px 8px rgba(255, 106, 213, 0.55);
  opacity: var(--scanA, 0);
}

/* ── Scroll sections ──────────────────────────────────────────────────── */
/* Lengths are the scroll distance each story takes. vh, not px, so they
   hold still while a phone's toolbar slides in and out. */
#intro{ position: relative; height: 170vh; }
#outro{ position: relative; height: calc(150vh + 100vh); }
.xp-outro__lead{ position: relative; height: 100vh; background: var(--bg); overflow: hidden; }

/* ── Stage UI: scroll hint + skip ─────────────────────────────────────── */
.xp-stage-ui{ position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.xp-hint{
  position: absolute; left: 50%; bottom: 9vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(234, 240, 255, 0.72); white-space: nowrap;
  transition: opacity 450ms ease;
}
.xp-hint.is-hidden{ opacity: 0; }
.xp-hint__line{
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: hintdrop 1.8s ease-in-out infinite;
}
.xp-skip{
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vh, 28px);
  pointer-events: auto;
  font: 500 13px/1 var(--body); letter-spacing: 0.04em;
  color: rgba(234, 240, 255, 0.8);
  background: rgba(5, 5, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: opacity 0.3s ease, background 0.2s ease;
}
.xp-skip:hover{ background: rgba(255, 106, 213, 0.16); }
body:not(.xp-intro) .xp-skip{ opacity: 0; pointer-events: none; }

/* ── Contact card (end of the outro) ──────────────────────────────────── */
.xp-contact{
  position: fixed; inset: 0; z-index: 6;
  display: flex;
  padding: 24px 18px;
  pointer-events: none;
  visibility: hidden;   /* never opacity here — see experience.js (card fade) */
  /* NO overscroll-behavior here, and only scrollable on short screens:
     this layer covers the viewport once visible, and must never stop
     wheel/touch from reaching the page (that bug froze the old site). */
}
.xp-contact .contactCard{ margin: auto; }
.contactCard{
  width: min(720px, 94vw);
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-radius: 28px;
  padding: 56px 48px;
  color: #eaf0ff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.contactKicker{
  font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(234, 240, 255, 0.65); margin-bottom: 12px;
}
.contactCard h2{
  font-family: var(--display);
  font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #ffffff, #ffb8ea, #cfa9ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contactSub{
  font-size: clamp(16px, 2vw, 18px); line-height: 1.65;
  color: rgba(234, 240, 255, 0.78); margin-bottom: 30px;
}
.contactLinks{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contactLinks a{
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 16px; font-weight: 500; color: #dce8ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.contactLinks a:hover{
  background: rgba(255, 106, 213, 0.16);
  border-color: rgba(255, 106, 213, 0.45);
  transform: translateY(-2px);
}
.contactIcon{ font-size: 14px; opacity: 0.85; }
@media (max-width: 768px){
  .xp-contact{ padding: 24px 12px; }
  .contactCard{ padding: 22px 18px; }
}
@media (max-height: 560px){
  .xp-contact{ padding: 12px; overflow-y: auto; }
  .contactCard{ padding: 20px 24px; border-radius: 20px; }
  .contactKicker{ font-size: 12px; margin-bottom: 6px; }
  .contactCard h2{ font-size: clamp(24px, 4.2vw, 34px); margin-bottom: 8px; }
  .contactSub{ font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
  .contactLinks{ gap: 8px; }
  .contactLinks a{ padding: 8px 14px; font-size: 14px; }
}

/* ── Reduced motion: no scroll story — the portfolio, then the contact
   card as a normal section. ─────────────────────────────────────────── */
body.xp-reduced #intro,
body.xp-reduced .xp-outro__lead,
body.xp-reduced .xp-stage-ui,
body.xp-reduced .xp-character,
body.xp-reduced .xp-portal-clip,
body.xp-reduced #galaxyCanvas,
body.xp-reduced .xp-galaxy{ display: none; }
body.xp-reduced #outro{ height: auto; }
body.xp-reduced .xp-contact{
  position: static; visibility: visible; pointer-events: auto;
  padding: 10vh 18px 120px;
}

/* CRT switch-off: a bright band collapses to a line, the line to a dot */
.xp-fx__line{
  position: absolute; left: 50%; top: 50%;
  width: calc((1 - var(--offB, 0)) * 100%);
  height: max(2px, calc((1 - var(--offA, 0)) * 100%));
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 18px 4px rgba(255, 255, 255, 0.55), 0 0 60px 14px rgba(255, 106, 213, 0.45);
  border-radius: 999px;
  opacity: var(--offL, 0);
}
