/* LUMI: the Living Halo
   The page is intentionally dependency-free. Motion is limited to transform and
   opacity, with a static reduced-motion path and a CSS scroll-timeline upgrade. */

:root {
  color-scheme: dark;
  --ink: #f3f7f1;
  --muted: #a7b1aa;
  --dim: #758077;
  --black: #030504;
  --surface: #07100a;
  --surface-2: #0b1710;
  --line: rgba(193, 255, 148, 0.18);
  --lime: #b7ff63;
  --mint: #68f6c1;
  --cream: #eeefa0;
  --electric-blue: #59c8ff;
  --disco-pink: #ff5fcb;
  --ultraviolet: #ad8cff;
  --solar: #f0ef9a;
  --jade: #45d69b;
  --active-color: var(--lime);
  --force-secondary: var(--mint);
  --force-glow: rgba(183, 255, 99, 0.14);
  --story-progress: 0;
  --wheel-progress: 0;
  --story-pct: 0;
  --force-angle: 0deg;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page-pad: clamp(1.25rem, 5vw, 5rem);
  --max-width: 86rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: clip;
  background:
    radial-gradient(circle at 52% 9%, rgba(42, 112, 63, 0.1), transparent 27rem),
    var(--black);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

::selection {
  background: var(--lime);
  color: #071006;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

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

p {
  text-wrap: pretty;
}

em {
  color: var(--active-color);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-weight: 400;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border: 1px solid var(--lime);
  background: #071006;
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5rem;
  padding: 0.9rem var(--page-pad);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(3, 5, 4, 0.88), rgba(3, 5, 4, 0));
  transition: background-color 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(183, 255, 99, 0.1);
  background: rgba(3, 5, 4, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-decoration: none;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-nav a {
  color: #c8d0ca;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-invite {
  min-height: 2.65rem;
  padding: 0.66rem 1.1rem;
  border: 1px solid rgba(183, 255, 99, 0.42);
  border-radius: 999px;
  color: var(--lime);
}

/* Living Halo story */

.story-world {
  position: relative;
  min-height: 100svh;
  --active-color: var(--lime);
  --force-secondary: var(--mint);
  --force-glow: rgba(183, 255, 99, 0.14);
  background:
    radial-gradient(circle at 73% 35%, rgba(47, 151, 70, 0.12), transparent 28%),
    linear-gradient(180deg, #020403 0%, #050a06 58%, #030504 100%);
  view-timeline-axis: block;
  view-timeline-name: --lumi-story;
}

.halo-sticky {
  position: sticky;
  z-index: 0;
  top: 0;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.halo-sticky::before,
.halo-sticky::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.halo-sticky::before {
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(183, 255, 99, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 255, 99, 0.025) 1px, transparent 1px);
  background-size: 5.5rem 5.5rem;
  mask-image: radial-gradient(circle at 70% 50%, black, transparent 68%);
}

.halo-sticky::after {
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(3, 5, 4, 0.98) 0%, rgba(3, 5, 4, 0.5) 39%, transparent 68%),
    linear-gradient(180deg, rgba(3, 5, 4, 0.24), transparent 18%, transparent 82%, rgba(3, 5, 4, 0.42));
}

.ambient-field {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.52;
}

.ambient-field::before,
.ambient-field::after {
  position: absolute;
  width: 28rem;
  height: 1px;
  content: "";
  transform: rotate(-22deg);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(104, 246, 193, 0.16), transparent);
}

.ambient-field::before {
  top: 22%;
  left: 52%;
}

.ambient-field::after {
  right: 6%;
  bottom: 19%;
  transform: rotate(31deg);
}

.ambient-field i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(104, 246, 193, 0.36);
  box-shadow: 0 0 12px rgba(104, 246, 193, 0.18);
}

.ambient-field i:nth-child(1) {
  top: 12%;
  left: 58%;
  color: var(--electric-blue);
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  animation: ambient-drift-a 19s ease-in-out infinite;
}

.ambient-field i:nth-child(2) {
  top: 19%;
  left: 82%;
  width: 7px;
  height: 7px;
  color: var(--disco-pink);
  background: currentColor;
  box-shadow: 0 0 20px currentColor;
  animation: ambient-drift-b 24s ease-in-out -8s infinite;
}

.ambient-field i:nth-child(3) {
  top: 34%;
  left: 49%;
  color: var(--ultraviolet);
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  animation: ambient-drift-b 27s ease-in-out -14s infinite reverse;
}

.ambient-field i:nth-child(4) {
  top: 47%;
  left: 92%;
  width: 6px;
  height: 6px;
  color: var(--solar);
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  animation: ambient-drift-a 22s ease-in-out -5s infinite reverse;
}

.ambient-field i:nth-child(5) { top: 68%; left: 69%; width: 8px; height: 8px; background: var(--cream); }
.ambient-field i:nth-child(6) { top: 84%; left: 89%; }
.ambient-field i:nth-child(7) { top: 77%; left: 47%; }
.ambient-field i:nth-child(8) { top: 9%; left: 93%; }
.ambient-field i:nth-child(9) { top: 56%; left: 57%; width: 7px; height: 7px; background: var(--lime); }
.ambient-field i:nth-child(10) { top: 91%; left: 61%; }
.ambient-field i:nth-child(11) { top: 26%; left: 68%; width: 6px; height: 6px; }
.ambient-field i:nth-child(12) { top: 61%; left: 84%; }

.halo-wrap {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 53%;
  width: min(52vw, 46rem);
  aspect-ratio: 1;
  transform: translateY(-50%) scale(calc(0.94 + var(--story-progress) * 0.035));
  transform-origin: center;
}

.halo-aura {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  opacity: calc(0.46 + var(--story-progress) * 0.28);
  background:
    radial-gradient(circle at 50% 50%, var(--force-glow), rgba(45, 112, 57, 0.035) 46%, transparent 70%);
  transition: background 650ms ease;
}

.halo-aura::before,
.halo-aura::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.halo-aura::before {
  inset: 13%;
  border: 1px solid var(--active-color);
  background:
    radial-gradient(circle at 18% 35%, var(--force-glow), transparent 14%),
    radial-gradient(circle at 82% 65%, var(--force-glow), transparent 12%);
  animation: localized-flare 8.2s ease-out -1.4s infinite;
}

.halo-aura::after {
  inset: 23%;
  border: 1px solid var(--force-secondary);
  background:
    radial-gradient(circle at 78% 22%, var(--force-glow), transparent 12%),
    radial-gradient(circle at 27% 78%, var(--force-glow), transparent 10%);
  animation: localized-flare-secondary 10.6s ease-out -5.2s infinite;
}

.living-halo {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Independent decorative current. It lives beside the scroll rotor, never on it. */

.energy-layer {
  pointer-events: none;
}

.energy-current {
  fill: none;
  stroke: var(--force-secondary);
  stroke-dasharray: 0.7 7.3;
  stroke-linecap: round;
  stroke-width: 1.25;
  opacity: 0.34;
  transform-origin: 300px 300px;
  vector-effect: non-scaling-stroke;
  animation: energy-current-turn 120s linear infinite;
}

.energy-traveler--blue,
.energy-traveler--pink {
  transform-box: view-box;
  transform-origin: 300px 300px;
}

.energy-traveler--blue {
  color: var(--electric-blue);
  animation: energy-traveler-blue 28s linear infinite;
}

.energy-traveler--pink {
  color: var(--disco-pink);
  animation: energy-traveler-pink 41s linear infinite;
}

.energy-token-halo,
.energy-token-core {
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
}

.energy-token-halo {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.2;
  animation: token-surge 7.6s var(--ease-out) infinite;
}

.energy-token-core {
  fill: currentColor;
  opacity: 0.9;
  animation: token-core-surge 7.6s ease-in-out infinite;
}

.energy-traveler--pink .energy-token-halo,
.energy-traveler--pink .energy-token-core {
  animation-delay: -3.4s;
}

.halo-ring {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.halo-ring--ghost {
  stroke: rgba(183, 255, 99, 0.065);
  stroke-width: 18;
}

.halo-ring--outer {
  stroke: rgba(183, 255, 99, 0.24);
  stroke-width: 1.2;
}

.halo-progress-ring {
  fill: none;
  stroke: url(#haloGradient);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: var(--story-pct) 100;
  vector-effect: non-scaling-stroke;
  transform: rotate(-90deg);
  transform-origin: 300px 300px;
}

.halo-ring--ticks {
  stroke: rgba(183, 255, 99, 0.24);
  stroke-width: 2;
  stroke-dasharray: 0.35 3.65;
}

.halo-ring--inner {
  stroke: rgba(104, 246, 193, 0.22);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.halo-rotor {
  transform: rotate(calc(-28deg + var(--wheel-progress) * 188deg));
  transform-origin: 300px 300px;
}

.story-world.is-active .halo-rotor,
.story-world.is-active .halo-counter-rotor {
  will-change: transform;
}

.halo-counter-rotor {
  transform: rotate(calc(10deg - var(--wheel-progress) * 82deg));
  transform-origin: 300px 300px;
}

.orbit-arc {
  fill: none;
  stroke: rgba(104, 246, 193, 0.34);
  stroke-linecap: round;
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
}

.orbit-arc--short {
  stroke: rgba(238, 239, 160, 0.18);
}

.halo-focus {
  opacity: 0;
  transform: rotate(var(--force-angle));
  transform-origin: 300px 300px;
  transition: opacity 420ms ease, transform 850ms var(--ease-out);
}

.halo-focus path {
  fill: none;
  stroke: var(--active-color);
  stroke-width: 1;
  stroke-dasharray: 2 5;
  vector-effect: non-scaling-stroke;
}

.halo-focus circle {
  fill: var(--active-color);
}

.halo-node .node-shell {
  fill: rgba(4, 9, 6, 0.9);
  stroke: rgba(183, 255, 99, 0.24);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  transition: fill 300ms ease, stroke 300ms ease;
}

.halo-node .node-pulse {
  fill: none;
  stroke: var(--active-color);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  vector-effect: non-scaling-stroke;
}

.halo-node path {
  fill: none;
  stroke: rgba(222, 239, 207, 0.4);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  transition: stroke 300ms ease;
}

.core-sigil {
  fill: none;
  opacity: 0.62;
  stroke: url(#haloGradient);
  stroke-linecap: round;
  stroke-width: 2.2;
  transform: translateY(62px) scale(0.48);
  transform-origin: 300px 300px;
  vector-effect: non-scaling-stroke;
  animation: sigil-heartbeat 8.6s ease-in-out infinite;
}

.story-world[data-active-force="threshold"] {
  --active-color: var(--lime);
  --force-secondary: var(--mint);
  --force-glow: rgba(183, 255, 99, 0.14);
}

.story-world[data-active-force="orientation"] {
  --active-color: var(--mint);
  --force-secondary: var(--lime);
  --force-glow: rgba(104, 246, 193, 0.14);
}

.story-world[data-active-force="light"] {
  --force-angle: 0deg;
  --active-color: #c7ff68;
  --force-secondary: var(--solar);
  --force-glow: rgba(240, 239, 154, 0.15);
}

.story-world[data-active-force="sound"] {
  --force-angle: 72deg;
  --active-color: var(--electric-blue);
  --force-secondary: var(--ultraviolet);
  --force-glow: rgba(89, 200, 255, 0.16);
}

.story-world[data-active-force="nature"] {
  --force-angle: 144deg;
  --active-color: var(--mint);
  --force-secondary: var(--jade);
  --force-glow: rgba(69, 214, 155, 0.15);
}

.story-world[data-active-force="art"] {
  --force-angle: 216deg;
  --active-color: var(--disco-pink);
  --force-secondary: var(--ultraviolet);
  --force-glow: rgba(255, 95, 203, 0.15);
}

.story-world[data-active-force="community"] {
  --force-angle: 288deg;
  --active-color: var(--ultraviolet);
  --force-secondary: var(--disco-pink);
  --force-glow: rgba(173, 140, 255, 0.16);
}

.story-world[data-active-force="light"] .halo-focus,
.story-world[data-active-force="sound"] .halo-focus,
.story-world[data-active-force="nature"] .halo-focus,
.story-world[data-active-force="art"] .halo-focus,
.story-world[data-active-force="community"] .halo-focus {
  opacity: 0.84;
}

.story-world[data-active-force="light"] .node--light .node-shell,
.story-world[data-active-force="sound"] .node--sound .node-shell,
.story-world[data-active-force="nature"] .node--nature .node-shell,
.story-world[data-active-force="art"] .node--art .node-shell,
.story-world[data-active-force="community"] .node--community .node-shell {
  fill: var(--active-color);
  stroke: var(--active-color);
}

.story-world[data-active-force="light"] .node--light path,
.story-world[data-active-force="sound"] .node--sound path,
.story-world[data-active-force="nature"] .node--nature path,
.story-world[data-active-force="art"] .node--art path,
.story-world[data-active-force="community"] .node--community path {
  stroke: #071006;
}

.story-world[data-active-force="light"] .node--light .node-pulse,
.story-world[data-active-force="sound"] .node--sound .node-pulse,
.story-world[data-active-force="nature"] .node--nature .node-pulse,
.story-world[data-active-force="art"] .node--art .node-pulse,
.story-world[data-active-force="community"] .node--community .node-pulse {
  animation: node-double-heartbeat 7.2s ease-out infinite;
}

.halo-readout {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 40%;
  min-width: 11rem;
  transform: translate(-50%, -50%);
  place-items: center;
  text-align: center;
}

.halo-readout span,
.halo-readout small {
  color: #829188;
  font-size: clamp(0.54rem, 0.72vw, 0.7rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.halo-readout strong {
  margin: 0.6rem 0 0.45rem;
  color: var(--ink);
  font-size: clamp(1.06rem, 1.6vw, 1.5rem);
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.halo-readout small {
  color: var(--active-color);
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
}

.story-progress {
  position: absolute;
  z-index: 5;
  right: 1.5rem;
  top: 18%;
  width: 1px;
  height: 64%;
  overflow: hidden;
  background: rgba(183, 255, 99, 0.1);
}

.story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(var(--story-progress));
  transform-origin: top;
  background: linear-gradient(var(--mint), var(--lime), var(--cream));
}

.story-counter {
  position: absolute;
  z-index: 5;
  right: 0.95rem;
  bottom: 10%;
  margin: 0;
  color: #738078;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.energy-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: calc(100vw - 2.2rem);
  min-height: 2.35rem;
  gap: 0.55rem;
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(193, 255, 148, 0.16);
  border-radius: 999px;
  background: rgba(3, 7, 5, 0.76);
  color: #a8b3ab;
  cursor: pointer;
  pointer-events: auto;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.energy-toggle:hover {
  border-color: rgba(89, 200, 255, 0.36);
  background: rgba(6, 12, 9, 0.92);
  color: var(--ink);
}

.energy-toggle:focus-visible {
  outline-color: var(--electric-blue);
}

.energy-toggle__dot,
.energy-toggle > [data-energy-dot] {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border: 1px solid #708078;
  border-radius: 50%;
  background: #26312a;
  box-shadow: none;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

html[data-energy="on"] .energy-toggle__dot,
html[data-energy="on"] .energy-toggle > [data-energy-dot] {
  border-color: var(--electric-blue);
  background: linear-gradient(135deg, var(--electric-blue), var(--disco-pink));
  box-shadow: -3px 0 9px rgba(89, 200, 255, 0.35), 3px 0 9px rgba(255, 95, 203, 0.3);
}

.story-flow {
  position: relative;
  z-index: 4;
  margin-top: -100svh;
}

.story-step {
  display: flex;
  align-items: center;
  min-height: 94svh;
  padding: 8rem var(--page-pad) 6rem;
}

.story-step--hero,
.story-step--orientation {
  min-height: 100svh;
}

.story-step--hero {
  position: relative;
}

.story-panel {
  width: min(41vw, 36rem);
  padding: 1.25rem 2rem 1.5rem 0;
  border-left: 1px solid rgba(183, 255, 99, 0.16);
  background: linear-gradient(90deg, rgba(3, 5, 4, 0.82), rgba(3, 5, 4, 0.42) 72%, transparent);
  padding-left: clamp(1.2rem, 2.5vw, 2.5rem);
}

.hero-panel {
  width: min(47vw, 43rem);
  border-left: 0;
  padding-left: 0;
  background: linear-gradient(90deg, rgba(3, 5, 4, 0.78), rgba(3, 5, 4, 0.32) 74%, transparent);
}

.eyebrow,
.chapter-index {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--active-color);
}

.hero-panel h1 {
  max-width: 11ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.8rem, 7.2vw, 7.6rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.hero-panel h1 em {
  font-size: 1.07em;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 37rem;
  margin-bottom: 1.5rem;
  color: #ced5cf;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.signal-row span {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(183, 255, 99, 0.14);
  border-radius: 999px;
  color: #98a69c;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-out), background-color 220ms ease;
}

.button--primary {
  background: var(--lime);
  color: #071006;
}

.button--primary:not(:disabled):hover {
  transform: translateY(-2px);
  background: #d0ff96;
}

.button--disabled {
  cursor: not-allowed;
  opacity: 0.66;
}

.text-link {
  color: var(--ink);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  margin-left: 0.25rem;
  color: var(--lime);
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  display: grid;
  gap: 0.6rem;
  place-items: center;
  transform: translateX(-50%);
  opacity: 1;
  visibility: visible;
  color: #7d8981;
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    opacity 240ms ease,
    transform 420ms var(--ease-out),
    visibility 0s linear;
}

.scroll-cue i {
  width: 0.75rem;
  height: 0.75rem;
  transform: rotate(45deg);
  border-right: 1px solid var(--lime);
  border-bottom: 1px solid var(--lime);
  animation: scroll-cue-drift 2.2s ease-in-out infinite;
}

.js.is-enhanced.has-scrolled .scroll-cue:not(:focus-visible) {
  transform: translate(-50%, 0.7rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 380ms var(--ease-out),
    visibility 0s linear 380ms;
}

.js.is-enhanced.has-scrolled .scroll-cue i {
  animation-play-state: paused;
}

@keyframes scroll-cue-drift {
  0%, 100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.42;
  }

  45% {
    transform: translateY(0.35rem) rotate(45deg);
    opacity: 1;
  }
}

.story-panel h2,
.section-heading h2,
.culture-intro h2,
.edition-card h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  font-weight: 580;
  letter-spacing: -0.055em;
  line-height: 0.97;
}

.story-panel > p:not(.chapter-index):not(.force-detail) {
  max-width: 34rem;
  color: #b9c2bb;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.75;
}

.story-panel .boundary-copy {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(183, 255, 99, 0.14);
  color: var(--ink) !important;
  font-size: 0.85rem !important;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.force-symbol {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(183, 255, 99, 0.28);
  border-radius: 50%;
  color: var(--active-color);
  place-items: center;
}

.force-panel .force-detail {
  margin: 1.7rem 0 0;
  color: var(--active-color);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Idle life is opt-in, visibility-aware, and independent from scroll progress. */

@keyframes energy-current-turn {
  to { transform: rotate(360deg); }
}

@keyframes energy-traveler-blue {
  from { transform: rotate(18deg); }
  to { transform: rotate(378deg); }
}

@keyframes energy-traveler-pink {
  from { transform: rotate(226deg); }
  to { transform: rotate(-134deg); }
}

@keyframes token-surge {
  0%, 62%, 100% { opacity: 0.16; transform: scale(0.82); }
  69% { opacity: 0.56; transform: scale(1.22); }
  78% { opacity: 0.22; transform: scale(0.94); }
}

@keyframes token-core-surge {
  0%, 62%, 100% { opacity: 0.7; transform: scale(0.86); }
  69% { opacity: 1; transform: scale(1.18); }
  78% { opacity: 0.82; transform: scale(0.96); }
}

@keyframes node-double-heartbeat {
  0%, 72%, 100% { opacity: 0; transform: scale(0.78); }
  76% { opacity: 0.48; transform: scale(0.94); }
  82% { opacity: 0; transform: scale(1.28); }
  85% { opacity: 0.4; transform: scale(0.97); }
  92% { opacity: 0; transform: scale(1.42); }
}

@keyframes localized-flare {
  0%, 68%, 100% { opacity: 0; transform: scale(0.96); }
  74% { opacity: 0.14; transform: scale(0.985); }
  86% { opacity: 0; transform: scale(1.06); }
}

@keyframes localized-flare-secondary {
  0%, 72%, 100% { opacity: 0; transform: scale(0.94); }
  78% { opacity: 0.12; transform: scale(0.98); }
  91% { opacity: 0; transform: scale(1.08); }
}

@keyframes sigil-heartbeat {
  0%, 64%, 100% { opacity: 0.48; }
  69% { opacity: 0.72; }
  73% { opacity: 0.54; }
  77% { opacity: 0.66; }
  84% { opacity: 0.48; }
}

@keyframes ambient-drift-a {
  0%, 100% { opacity: 0.42; transform: translate3d(0, 0, 0); }
  48% { opacity: 0.88; transform: translate3d(14px, -10px, 0); }
  76% { opacity: 0.56; transform: translate3d(7px, 5px, 0); }
}

@keyframes ambient-drift-b {
  0%, 100% { opacity: 0.36; transform: translate3d(0, 0, 0); }
  43% { opacity: 0.78; transform: translate3d(-11px, 8px, 0); }
  72% { opacity: 0.52; transform: translate3d(5px, -6px, 0); }
}

.energy-current,
.energy-traveler--blue,
.energy-traveler--pink,
.energy-token-halo,
.energy-token-core,
.halo-node .node-pulse,
.halo-aura::before,
.halo-aura::after,
.core-sigil,
.ambient-field i:nth-child(-n + 4) {
  animation-play-state: paused;
}

html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .energy-current,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .energy-traveler--blue,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .energy-traveler--pink,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .energy-token-halo,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .energy-token-core,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .halo-node .node-pulse,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .halo-aura::before,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .halo-aura::after,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .core-sigil,
html[data-energy="on"][data-page-visible="visible"] .story-world.is-active .ambient-field i:nth-child(-n + 4) {
  animation-play-state: running;
}

/* Browser-native scroll timelines progressively replace the tiny JS fallback. */

@keyframes halo-turn {
  from { transform: rotate(-28deg); }
  to { transform: rotate(160deg); }
}

@keyframes halo-counter-turn {
  from { transform: rotate(10deg); }
  to { transform: rotate(-72deg); }
}

@keyframes story-fill {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes halo-draw {
  from { stroke-dasharray: 0 100; }
  to { stroke-dasharray: 100 100; }
}

@keyframes halo-breathe {
  from { transform: translateY(-50%) scale(0.94); }
  to { transform: translateY(-50%) scale(0.975); }
}

@supports (animation-timeline: view()) {
  .halo-rotor {
    animation: halo-turn 1ms linear both;
    animation-range: cover 25% cover 97%;
    animation-timeline: --lumi-story;
  }

  .halo-counter-rotor {
    animation: halo-counter-turn 1ms linear both;
    animation-range: cover 25% cover 97%;
    animation-timeline: --lumi-story;
  }

  .story-progress span {
    animation: story-fill 1ms linear both;
    animation-range: cover 3% cover 97%;
    animation-timeline: --lumi-story;
  }

  .halo-progress-ring {
    animation: halo-draw 1ms linear both;
    animation-range: cover 3% cover 97%;
    animation-timeline: --lumi-story;
  }

  .halo-wrap {
    animation: halo-breathe 1ms linear both;
    animation-range: cover 3% cover 97%;
    animation-timeline: --lumi-story;
  }
}

/* Conventional content after the artifact */

.deferred-section {
  /* Intentionally left in normal flow. The page is small enough that speculative
     section sizing costs more in scroll stability than it saves in rendering. */
}

.section {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: clamp(7rem, 13vw, 13rem) var(--page-pad);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.65fr);
  column-gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.culture-intro h2,
.edition-card h2 {
  margin-bottom: 0;
}

.section-heading > p:last-child,
.culture-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-grid li {
  position: relative;
  --journey-accent: var(--lime);
  min-height: 26rem;
  padding: 1.5rem clamp(1rem, 2vw, 1.8rem) 2rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.journey-grid li:nth-child(1) { --journey-accent: var(--mint); }
.journey-grid li:nth-child(2) { --journey-accent: var(--electric-blue); }
.journey-grid li:nth-child(3) { --journey-accent: var(--disco-pink); }
.journey-grid li:nth-child(4) { --journey-accent: var(--solar); }

.journey-grid li:first-child {
  border-left: 1px solid var(--line);
}

.journey-grid li > span {
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.journey-orbit {
  position: relative;
  width: 5rem;
  height: 5rem;
  margin: 3rem 0 4rem;
  border: 1px solid rgba(183, 255, 99, 0.2);
  border-radius: 50%;
}

.journey-orbit::before,
.journey-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  transform: translate(-50%, -50%);
  border: 1px solid rgba(104, 246, 193, 0.13);
  border-radius: 50%;
}

.journey-orbit::before { width: 3.2rem; height: 3.2rem; }
.journey-orbit::after { width: 1.15rem; height: 1.15rem; background: rgba(183, 255, 99, 0.08); }

.journey-orbit i {
  position: absolute;
  top: 0.45rem;
  left: 0.55rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  color: var(--journey-accent);
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.journey-grid h3,
.culture-list h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.journey-grid p,
.culture-list p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.journey-grid small {
  position: absolute;
  bottom: 1.5rem;
  left: clamp(1rem, 2vw, 1.8rem);
  color: var(--lime);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.culture-section {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(26rem, 1.15fr);
  gap: clamp(4rem, 10vw, 10rem);
  align-items: start;
}

.culture-intro {
  position: sticky;
  top: 8rem;
}

.culture-intro > p:last-child {
  margin-top: 2rem;
}

.culture-list {
  border-top: 1px solid var(--line);
}

.culture-list article {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.culture-list article > span {
  color: var(--lime);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.culture-list p {
  max-width: 34rem;
  margin-bottom: 0;
}

.access-section {
  padding-top: 7rem;
}

.access-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.access-path li {
  position: relative;
  display: grid;
  min-height: 14rem;
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line);
}

.access-path li:first-child {
  border-left: 1px solid var(--line);
}

.access-path li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -0.65rem;
  display: grid;
  width: 1.3rem;
  height: 1.3rem;
  content: "→";
  border: 1px solid rgba(183, 255, 99, 0.22);
  border-radius: 50%;
  background: var(--black);
  color: var(--lime);
  font-size: 0.58rem;
  place-items: center;
}

.access-path span {
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.access-path strong {
  align-self: end;
  font-size: 1.2rem;
  font-weight: 650;
}

.access-path small {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.invitation-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 8rem var(--page-pad);
  overflow: hidden;
  place-items: center;
  background:
    linear-gradient(180deg, #030504, transparent 25%, transparent 75%, #030504),
    radial-gradient(circle at 24% 54%, rgba(89, 200, 255, 0.07), transparent 27rem),
    radial-gradient(circle at 76% 46%, rgba(255, 95, 203, 0.065), transparent 27rem),
    radial-gradient(circle at 50% 50%, #112817, #040805 50%, #030504 73%);
}

.invitation-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(88vw, 72rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(183, 255, 99, 0.07);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(183, 255, 99, 0.012), 0 0 0 9rem rgba(183, 255, 99, 0.008);
}

.invitation-glow::before {
  position: absolute;
  inset: -1px;
  content: "";
  border-radius: inherit;
  background: conic-gradient(
    from 214deg,
    transparent 0 9%,
    rgba(89, 200, 255, 0.58) 14%,
    transparent 27% 62%,
    rgba(255, 95, 203, 0.52) 70%,
    transparent 84% 100%
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  opacity: 0.58;
}

.edition-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(12rem, 0.38fr);
  width: min(100%, 66rem);
  min-height: 36rem;
  border: 1px solid rgba(183, 255, 99, 0.25);
  background: rgba(4, 9, 6, 0.94);
}

.edition-card::before {
  position: absolute;
  z-index: 1;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(89, 200, 255, 0.72),
    transparent 34%,
    transparent 66%,
    rgba(255, 95, 203, 0.68)
  );
  opacity: 0.62;
  pointer-events: none;
}

.edition-card__top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

.edition-card__top p,
.edition-card__top span {
  margin: 0;
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.edition-card__top span {
  color: var(--lime);
}

.edition-card__body {
  align-self: end;
  padding: 7rem clamp(2rem, 5vw, 5rem) 4rem;
}

.edition-card__body h2 {
  font-size: clamp(3rem, 6vw, 6rem);
}

.edition-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.edition-card dl div {
  padding: 1.1rem 1rem 1.1rem 0;
}

.edition-card dt {
  color: var(--dim);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.edition-card dd {
  margin: 0.35rem 0 0;
  color: #cdd5cf;
  font-size: 0.74rem;
}

.edition-note {
  display: inline;
  margin-left: 1rem;
  color: var(--dim);
  font-size: 0.62rem;
}

.edition-card__mark {
  display: grid;
  border-left: 1px solid var(--line);
  place-items: center;
  background:
    radial-gradient(circle, rgba(183, 255, 99, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(18, 41, 23, 0.8), rgba(5, 10, 7, 0.8));
}

.edition-card__mark img {
  width: 7rem;
  height: 7rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2.25rem var(--page-pad);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: #b7c0b9;
  font-size: 0.78rem;
}

.site-footer p em {
  margin-left: 0.2rem;
}

.site-footer small {
  justify-self: end;
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Reveal enhancement: content stays visible when JavaScript is absent. */

.js.is-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms ease, transform 800ms var(--ease-out);
}

.js.is-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 68rem) {
  .halo-wrap {
    left: 51%;
    width: min(57vw, 40rem);
  }

  .story-panel {
    width: min(44vw, 33rem);
  }

  .hero-panel {
    width: min(49vw, 38rem);
  }

  .journey-grid,
  .access-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-grid li:nth-child(3) {
    border-left: 1px solid var(--line);
  }

  .access-path li:nth-child(3) {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .access-path li:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

}

@media (max-width: 48rem) {
  :root {
    --page-pad: 1.1rem;
  }

  .story-world {
    --mobile-halo-center: calc(env(safe-area-inset-top, 0px) + clamp(20rem, 46vw, 22rem));
    --mobile-halo-radius: min(52vw, 15.85rem);
  }

  html {
    scroll-padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
  }

  body {
    font-size: 0.95rem;
  }

  .site-header {
    min-height: calc(4.4rem + env(safe-area-inset-top, 0px));
    padding-top: calc(0.9rem + env(safe-area-inset-top, 0px));
  }

  .site-nav > a:not(.nav-invite) {
    display: none;
  }

  .site-nav .nav-invite {
    display: inline-flex;
    align-items: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.85rem;
  }

  .site-nav {
    gap: 0.55rem;
  }

  .brand {
    font-size: 0.7rem;
  }

  .brand img {
    width: 1.85rem;
    height: 1.85rem;
  }

  .halo-sticky::before {
    background-size: 4rem 4rem;
    mask-image: radial-gradient(circle at 50% 32%, black, transparent 70%);
  }

  .halo-sticky::after {
    background:
      linear-gradient(180deg, rgba(3, 5, 4, 0.55), transparent 26%, transparent 53%, rgba(3, 5, 4, 0.5) 72%, rgba(3, 5, 4, 0.94));
  }

  .ambient-field i:nth-child(n + 4) {
    display: none;
  }

  .energy-traveler--pink,
  .halo-aura::after {
    display: none;
  }

  .energy-current {
    opacity: 0.24;
  }

  .energy-toggle {
    width: 2.45rem;
    min-width: 2.45rem;
    min-height: 2.45rem;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .energy-toggle > [data-energy-toggle-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .halo-wrap {
    top: var(--mobile-halo-center);
    left: 50%;
    width: min(118vw, 36rem);
    transform: translate(-50%, -50%) scale(calc(0.88 + var(--story-progress) * 0.025));
  }

  .halo-aura {
    inset: -2%;
  }

  .halo-readout {
    width: 46%;
    min-width: 9rem;
  }

  .halo-readout strong {
    font-size: clamp(0.88rem, 4.35vw, 1.08rem);
  }

  .halo-readout span,
  .halo-readout small {
    font-size: 0.54rem;
  }

  .story-progress {
    right: 0.45rem;
    top: 15%;
    height: 66%;
  }

  .story-counter {
    right: 0.2rem;
    bottom: 8%;
  }

  .story-step {
    align-items: flex-end;
    min-height: 92svh;
    padding: 6rem var(--page-pad) 6vh;
  }

  .story-step--hero,
  .story-step--orientation {
    min-height: 100svh;
  }

  .story-step--hero {
    align-items: flex-start;
    padding-top: calc(
      var(--mobile-halo-center) + var(--mobile-halo-radius) + 1.5rem
    );
    padding-bottom: 5rem;
  }

  .story-panel,
  .hero-panel {
    width: 100%;
    max-width: 38rem;
    margin: 0 auto;
    padding: 1.25rem;
    border: 1px solid rgba(183, 255, 99, 0.14);
    background: rgba(4, 9, 6, 0.92);
  }

  .hero-panel h1 {
    margin-bottom: 1rem;
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .hero-lede {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .signal-row {
    gap: 0.35rem;
    margin-bottom: 1.2rem;
  }

  .signal-row span {
    font-size: 0.47rem;
  }

  .hero-actions {
    justify-content: space-between;
    gap: 0.8rem;
  }

  .button {
    min-height: 3rem;
    padding: 0.8rem 1.05rem;
    font-size: 0.58rem;
  }

  .text-link {
    font-size: 0.57rem;
  }

  .eyebrow,
  .chapter-index {
    margin-bottom: 0.85rem;
    font-size: 0.52rem;
  }

  .story-panel h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 11vw, 3.7rem);
  }

  .story-panel > p:not(.chapter-index):not(.force-detail) {
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .force-symbol {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .force-panel .force-detail {
    margin-top: 1rem;
    font-size: 0.52rem;
  }

  .scroll-cue {
    display: none;
  }

  @keyframes halo-breathe-mobile {
    from { transform: translate(-50%, -50%) scale(0.88); }
    to { transform: translate(-50%, -50%) scale(0.905); }
  }

  @supports (animation-timeline: view()) {
    .halo-wrap {
      animation-name: halo-breathe-mobile;
    }
  }

  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .section-heading {
    display: block;
    margin-bottom: 3.5rem;
  }

  .section-heading h2,
  .culture-intro h2,
  .edition-card h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .journey-grid,
  .access-path {
    grid-template-columns: 1fr;
  }

  .journey-grid li,
  .journey-grid li:first-child,
  .journey-grid li:nth-child(3) {
    min-height: 18rem;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .journey-grid li + li {
    border-top: 0;
  }

  .journey-orbit {
    margin: 1.8rem 0 2rem;
  }

  .culture-section {
    display: block;
  }

  .culture-intro {
    position: static;
    margin-bottom: 4rem;
  }

  .culture-list article {
    grid-template-columns: 2rem 1fr;
  }

  .access-path li,
  .access-path li:first-child,
  .access-path li:nth-child(3) {
    min-height: 11rem;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }

  .access-path li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .access-path li:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -0.65rem;
    transform: translateX(50%) rotate(90deg);
  }

  .invitation-section {
    min-height: auto;
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .edition-card {
    display: block;
    min-height: 0;
  }

  .edition-card__body {
    padding: 6rem 1.25rem 2.5rem;
  }

  .edition-card dl {
    grid-template-columns: 1fr;
  }

  .edition-card dl div + div {
    border-top: 1px solid rgba(183, 255, 99, 0.08);
  }

  .edition-note {
    display: block;
    margin: 0.9rem 0 0;
  }

  .edition-card__mark {
    min-height: 13rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    row-gap: 1.2rem;
  }

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer .brand {
    grid-row: 2;
  }

  .site-footer small {
    grid-row: 2;
  }
}

@media (max-width: 23rem) {
  .site-header .brand span {
    display: none;
  }

  .site-nav {
    gap: 0.35rem;
  }

  .site-nav .nav-invite {
    padding-inline: 0.65rem;
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .hero-panel h1 {
    font-size: 2.9rem;
  }

  .hero-lede {
    font-size: 0.86rem;
  }

  .signal-row span:last-child {
    display: none;
  }

  .hero-actions {
    gap: 0.45rem;
  }

  .button {
    padding-inline: 0.75rem;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

  .text-link {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }

}

@media (hover: none) and (pointer: coarse) {
  .site-nav a,
  .button,
  .text-link,
  .brand {
    min-height: 2.75rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .halo-wrap,
  .halo-rotor,
  .halo-counter-rotor,
  .halo-focus,
  .story-progress span {
    animation: none !important;
    transform: none;
  }

  .halo-wrap {
    transform: translateY(-50%) scale(0.94);
  }

  .halo-rotor,
  .halo-counter-rotor {
    transform: rotate(0deg);
  }

  .story-progress span {
    transform: scaleY(1);
  }

  .halo-progress-ring {
    animation: none !important;
    stroke-dasharray: 100 100;
  }

  .energy-current,
  .energy-traveler--blue,
  .energy-traveler--pink,
  .energy-token-halo,
  .energy-token-core,
  .core-sigil,
  .ambient-field i:nth-child(-n + 4) {
    animation: none !important;
  }

  .energy-current { transform: rotate(-18deg); }
  .energy-traveler--blue { transform: rotate(32deg); }
  .energy-traveler--pink { transform: rotate(214deg); }

  .energy-token-halo,
  .energy-token-core,
  .ambient-field i:nth-child(-n + 4) {
    transform: none;
  }

  .halo-node .node-pulse,
  .halo-aura::before,
  .halo-aura::after {
    display: none;
  }

  .core-sigil {
    opacity: 0.56;
  }

  .js.is-enhanced [data-reveal] {
    opacity: 1;
    transform: none;
  }

  @media (max-width: 48rem) {
    .halo-wrap {
      transform: translate(-50%, -50%) scale(0.88);
    }
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #d1d8d3;
    --line: rgba(213, 255, 180, 0.44);
  }

  .story-panel,
  .hero-panel {
    background: rgba(3, 6, 4, 0.97);
  }
}

/* Optional pink-primary identity. Removing the attribute restores the green system. */

html[data-brand-theme="pink"] {
  --lime: #ff5fcb;
  --line: rgba(255, 95, 203, 0.2);
  --active-color: var(--disco-pink);
  --force-secondary: var(--electric-blue);
  --force-glow: rgba(255, 95, 203, 0.16);
}

html[data-brand-theme="pink"] body {
  background:
    radial-gradient(circle at 48% 8%, rgba(255, 95, 203, 0.09), transparent 26rem),
    radial-gradient(circle at 76% 22%, rgba(89, 200, 255, 0.045), transparent 24rem),
    var(--black);
}

html[data-brand-theme="pink"] .site-header.is-scrolled {
  border-color: rgba(255, 95, 203, 0.13);
}

html[data-brand-theme="pink"] .site-nav .nav-invite {
  border-color: rgba(255, 95, 203, 0.46);
}

html[data-brand-theme="pink"] .story-world {
  background:
    radial-gradient(circle at 73% 35%, rgba(255, 95, 203, 0.12), transparent 29%),
    radial-gradient(circle at 86% 52%, rgba(89, 200, 255, 0.055), transparent 24%),
    linear-gradient(180deg, #050204 0%, #0a0408 58%, #030504 100%);
}

html[data-brand-theme="pink"] .story-world[data-active-force="threshold"] {
  --active-color: var(--disco-pink);
  --force-secondary: var(--electric-blue);
  --force-glow: rgba(255, 95, 203, 0.18);
}

html[data-brand-theme="pink"] .story-world[data-active-force="orientation"] {
  --active-color: var(--mint);
  --force-secondary: var(--ultraviolet);
  --force-glow: rgba(104, 246, 193, 0.14);
}

html[data-brand-theme="pink"] .halo-sticky::before {
  background-image:
    linear-gradient(rgba(255, 95, 203, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 203, 0.035) 1px, transparent 1px);
}

html[data-brand-theme="pink"] .ambient-field::before {
  background: linear-gradient(90deg, transparent, rgba(89, 200, 255, 0.18), transparent);
}

html[data-brand-theme="pink"] .ambient-field::after {
  background: linear-gradient(90deg, transparent, rgba(173, 140, 255, 0.16), transparent);
}

html[data-brand-theme="pink"] .ambient-field i:nth-child(n + 5) {
  background: rgba(173, 140, 255, 0.3);
  box-shadow: 0 0 12px rgba(173, 140, 255, 0.15);
}

html[data-brand-theme="pink"] .halo-ring--ghost {
  stroke: rgba(255, 95, 203, 0.085);
}

html[data-brand-theme="pink"] .halo-ring--outer {
  stroke: rgba(255, 95, 203, 0.34);
}

html[data-brand-theme="pink"] .halo-ring--ticks {
  stroke: rgba(255, 95, 203, 0.29);
}

html[data-brand-theme="pink"] .halo-ring--inner {
  stroke: rgba(89, 200, 255, 0.25);
}

html[data-brand-theme="pink"] .orbit-arc {
  stroke: rgba(173, 140, 255, 0.38);
}

html[data-brand-theme="pink"] .orbit-arc--short {
  stroke: rgba(255, 95, 203, 0.25);
}

html[data-brand-theme="pink"] .halo-progress-ring,
html[data-brand-theme="pink"] .core-sigil {
  stroke: url(#haloGradientPink);
}

html[data-brand-theme="pink"] .halo-core-glow {
  fill: url(#coreGradientPink);
}

html[data-brand-theme="pink"] .halo-node .node-shell {
  stroke: rgba(255, 95, 203, 0.32);
}

html[data-brand-theme="pink"] .story-progress {
  background: rgba(255, 95, 203, 0.13);
}

html[data-brand-theme="pink"] .story-progress span {
  background: linear-gradient(var(--disco-pink), var(--ultraviolet), var(--electric-blue));
}

html[data-brand-theme="pink"] .story-panel {
  border-left-color: rgba(255, 95, 203, 0.22);
}

html[data-brand-theme="pink"] .signal-row span,
html[data-brand-theme="pink"] .story-panel .boundary-copy {
  border-color: rgba(255, 95, 203, 0.18);
}

html[data-brand-theme="pink"] .force-symbol {
  border-color: rgba(255, 95, 203, 0.32);
}

html[data-brand-theme="pink"] .button--primary {
  background: var(--disco-pink);
  color: #130710;
}

html[data-brand-theme="pink"] .button--primary:not(:disabled):hover {
  background: #ff8fda;
}

html[data-brand-theme="pink"] .journey-orbit {
  border-color: rgba(255, 95, 203, 0.24);
}

html[data-brand-theme="pink"] .journey-orbit::before,
html[data-brand-theme="pink"] .journey-orbit::after {
  border-color: rgba(89, 200, 255, 0.17);
}

html[data-brand-theme="pink"] .journey-orbit::after {
  background: rgba(255, 95, 203, 0.08);
}

html[data-brand-theme="pink"] .access-path li:not(:last-child)::after {
  border-color: rgba(255, 95, 203, 0.28);
}

html[data-brand-theme="pink"] .invitation-section {
  background:
    linear-gradient(180deg, #030504, transparent 25%, transparent 75%, #030504),
    radial-gradient(circle at 24% 54%, rgba(89, 200, 255, 0.09), transparent 27rem),
    radial-gradient(circle at 76% 46%, rgba(255, 95, 203, 0.12), transparent 27rem),
    radial-gradient(circle at 50% 50%, #230b1c, #080407 50%, #030504 73%);
}

html[data-brand-theme="pink"] .invitation-glow {
  border-color: rgba(255, 95, 203, 0.1);
  box-shadow: 0 0 0 4rem rgba(255, 95, 203, 0.016), 0 0 0 9rem rgba(89, 200, 255, 0.009);
}

html[data-brand-theme="pink"] .edition-card {
  border-color: rgba(255, 95, 203, 0.32);
}

html[data-brand-theme="pink"] .edition-card__mark {
  background:
    radial-gradient(circle, rgba(255, 95, 203, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(42, 11, 35, 0.82), rgba(6, 8, 13, 0.84));
}

@media (max-width: 48rem) {
  html[data-brand-theme="pink"] .story-panel,
  html[data-brand-theme="pink"] .hero-panel {
    border-color: rgba(255, 95, 203, 0.2);
    background: rgba(9, 4, 8, 0.93);
  }
}

@media (prefers-contrast: more) {
  html[data-brand-theme="pink"] {
    --line: rgba(255, 142, 221, 0.5);
  }
}
