/* ==========================================================================
   SOLAR — a portal inside the Marsseia world.
   Loads AFTER /style.css, so it inherits Marsseia's tokens (--gold, --ivory, --font-display…),
   grain, stars, cursor, [data-reveal] and footer. Everything here is scoped to .s-* classes.

   Reusable pieces:  .s-sec (section shell + auto number)  .s-eyebrow  .s-title  .s-wrap
                     .s-link  .s-cta  .s-form  .drop (product card)  .dune (landscape layer)
   Section backgrounds chain into each other (every section starts with the colour the last one
   ended on), so the page reads as one continuous sky: dawn -> day -> sunset -> night -> noon -> dusk -> dawn.
   ========================================================================== */

:root {
  --ink: #2A1A26;
  --sand-l: #EADCC6;
  --sun-core: #FFF1C9;
  --sun-mid: #F2B95A;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dune-far: #6b2f4a;
  --dune-mid: #3a1c38;
  --dune-near: #160f1a;
}

.s-page { background: #0b0810; color: var(--ivory); }
.s-page main { overflow-x: clip; counter-reset: sec; }
.s-page button { font-family: inherit; }
@media (pointer: fine) { .s-page button, .s-page summary { cursor: none; } }

.s-sec { position: relative; isolation: isolate; counter-increment: sec; }
.s-wrap { position: relative; z-index: 2; width: min(1180px, 88vw); margin-inline: auto; }

/* --- type -------------------------------------------------------------- */
.s-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.s-eyebrow::before { content: counter(sec, decimal-leading-zero) " — "; opacity: .8; }

.s-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.05;
  font-size: clamp(34px, 6.4vw, 92px);
  text-shadow: 0 2px 26px rgba(19, 10, 24, .4);
}
.s-title--xl { font-size: clamp(46px, 10vw, 150px); letter-spacing: .07em; }

.s-link {
  display: inline-block;
  color: var(--ivory);
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(246, 239, 226, .5);
  transition: border-color .3s ease, color .3s ease;
  position: relative;
}
.s-link::after { content: ''; position: absolute; inset: -12px -6px; }
.s-link:hover { color: var(--sun-core); border-color: var(--gold); }

.s-stars, .s-stars::before, .s-stars::after { position: absolute; inset: 0; pointer-events: none; }
.s-stars {
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 88%);
}
.s-stars::before, .s-stars::after { content: ''; background-repeat: repeat; }
.s-stars::before {
  background-image:
    radial-gradient(1.6px 1.6px at 9% 14%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 27% 71%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(2px 2px at 44% 26%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 63% 84%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.6px 1.6px at 78% 12%, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 91% 52%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1.4px 1.4px at 15% 48%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 56% 55%, rgba(255,255,255,.6), transparent 60%);
  background-size: 520px 520px;
  animation: s-twinkle 7s ease-in-out infinite;
}
.s-stars::after {
  background-image:
    radial-gradient(1px 1px at 18% 30%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.4px 1.4px at 38% 8%, rgba(255,240,210,.9), transparent 60%),
    radial-gradient(1px 1px at 52% 64%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 72% 38%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 86% 78%, rgba(255,240,210,.7), transparent 60%),
    radial-gradient(1px 1px at 5% 88%, rgba(255,255,255,.6), transparent 60%);
  background-size: 340px 340px;
  animation: s-twinkle 11s ease-in-out -4s infinite;
}
@keyframes s-twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Flying stars (sections 01-02): thin streaks that cross the sky at long, uneven intervals */
.sky-flyers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.sky-flyers i {
  position: absolute;
  display: block;
  width: clamp(90px, 11vw, 190px);
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 236, 190, .55) 30%, rgba(255, 236, 190, 0) 100%);
  opacity: 0;
  transform-origin: 0 50%;
  transform: rotate(-24deg);
  animation: fly var(--t, 12s) linear var(--d, 0s) infinite;
  animation-play-state: var(--play, running);
}
.sky-flyers i::after { content: ''; position: absolute; left: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px 2px rgba(255, 236, 190, .9); }
@keyframes fly {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  1.5% { opacity: 1; }
  9%   { opacity: 1; }
  12%  { opacity: 0; transform: translate3d(-42vw, 19vw, 0) rotate(-24deg); }
  100% { opacity: 0; transform: translate3d(-42vw, 19vw, 0) rotate(-24deg); }
}
.sky-flyers i:nth-child(1) { top: 7%;  left: 82%; --t: 13s; --d: 2.5s; }
.sky-flyers i:nth-child(2) { top: 22%; left: 96%; --t: 17s; --d: 7s; }
.sky-flyers i:nth-child(3) { top: 4%;  left: 58%; --t: 15s; --d: 11s; }
.sky-flyers i:nth-child(4) { top: 30%; left: 70%; --t: 19s; --d: 4s; }
.sky-flyers i:nth-child(5) { top: 14%; left: 38%; --t: 21s; --d: 14s; }
.sky-flyers i:nth-child(6) { top: 36%; left: 100%; --t: 16s; --d: 9s; }
.sky-flyers--move i:nth-child(1) { top: 6%;  left: 90%; --t: 14s; --d: 1s; }
.sky-flyers--move i:nth-child(2) { top: 26%; left: 100%; --t: 18s; --d: 6s; }
.sky-flyers--move i:nth-child(3) { top: 52%; left: 96%; --t: 16s; --d: 10s; }
.sky-flyers--move i:nth-child(4) { top: 74%; left: 100%; --t: 20s; --d: 3s; }

/* The small drifting dots (dust + star points) only appear from 03 — The Solar Philosophy — onward */
.s-dots { position: fixed; inset: 0; z-index: 9994; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.past-sky .s-dots { opacity: 1; }

/* pause anything decorative while its section is off-screen */
.spin { animation-play-state: var(--play, running); }
.s-live:not(.is-live) { --play: paused; }
.s-live:not(.is-live) .s-stars::before, .s-live:not(.is-live) .s-stars::after { animation-play-state: paused; }

.par { position: absolute; inset: 0; will-change: transform; pointer-events: none; }

.dune { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* --- page furniture ---------------------------------------------------- */
.s-veil {
  display: none;
}
.js .s-veil {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #0b0810;
  pointer-events: none;
  animation: fb-hide .01s 4.5s forwards;
}
.s-veil span {
  width: 15vmin;
  height: 15vmin;
  border-radius: 50%;
  background: radial-gradient(circle, #fff1c9 0, #f5b95d 42%, rgba(201, 106, 62, 0) 72%);
  opacity: 0;
  transform: scale(.35);
  animation: veil-sun 1.4s var(--ease) .1s forwards;
}
@keyframes veil-sun { to { opacity: 1; transform: scale(1); } }
@keyframes fb-hide { to { opacity: 0; visibility: hidden; } }
.s-veil.is-open { opacity: 0; transition: opacity 1.3s ease .35s; }
.s-veil.is-open span { opacity: 0; transform: scale(32); transition: transform 1.5s cubic-bezier(.65, 0, .2, 1), opacity 1.1s ease .3s; animation: none; }
.s-veil.is-gone { display: none; }
.js .s-veil.is-leaving-start, .js .s-veil.is-leaving { display: grid; animation: none; }
.js .s-veil.is-leaving-start { opacity: 0; }
.js .s-veil.is-leaving { opacity: 1; transition: opacity .45s ease; }
.js .s-veil.is-leaving span, .js .s-veil.is-leaving-start span { opacity: 0; animation: none; }

.s-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9010; pointer-events: none; }
.s-progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--sun-core)); }

.s-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(18px, 3vw, 40px) 34px;
  color: var(--ivory);
  background: linear-gradient(180deg, rgba(11, 8, 16, .6), rgba(11, 8, 16, 0));
  transition: transform .55s var(--ease), color .45s ease, background .45s ease;
}
.s-nav.is-hidden { transform: translateY(-105%); }
.s-nav.on-ink { color: var(--ink); background: linear-gradient(180deg, rgba(234, 220, 198, .8), rgba(234, 220, 198, 0)); }
.s-logo { display: block; line-height: 0; }
.s-logo img { height: 46px; width: auto; display: block; transition: filter .45s ease; }
.s-nav.on-ink .s-logo img { filter: brightness(0) opacity(.85); }
.s-nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.s-nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}
.s-nav-links a::after { content: ''; position: absolute; inset: -12px -6px; }
.s-nav-pill { border: 1px solid currentColor; padding: 10px 18px; border-radius: 999px; transition: background .3s ease, color .3s ease; }
.s-nav-pill:hover { background: var(--ivory); color: var(--bg); }
.s-nav.on-ink .s-nav-pill:hover { background: var(--ink); color: var(--sand-l); }
@media (max-width: 860px) {
  .s-nav-opt { display: none; }
}
@media (max-width: 640px) {
  .s-logo { display: none; }
  .s-nav { padding: 16px 18px 30px; }
  .s-nav-links { width: 100%; justify-content: space-between; }
  .s-nav-links a { font-size: 12.5px; }
}

/* ==========================================================================
   01 — HERO
   ========================================================================== */
.s-hero {
  --sun-d: min(62vmin, 600px);
  --sun-y: 50%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, #0b0810 0%, #1b0f27 24%, #43203f 48%, #8f3f50 66%, #dd8a4f 86%, #f5c877 100%);
}
.hero-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-halo {
  position: absolute;
  left: 50%;
  top: var(--sun-y);
  width: calc(var(--sun-d) * 2.6);
  aspect-ratio: 1;
  margin: calc(var(--sun-d) * -1.3) 0 0 calc(var(--sun-d) * -1.3);
  background: radial-gradient(circle, rgba(255, 214, 140, .5) 0, rgba(245, 150, 90, .22) 26%, rgba(201, 106, 62, 0) 60%);
  opacity: 0;
}
.hero-arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  border: 1px solid rgba(255, 226, 170, .38);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transform: translateX(-50%) scaleY(.96);
  transform-origin: 50% 100%;
}
.hero-arch--a { width: calc(var(--sun-d) * 1.16); height: 88%; }
.hero-arch--b { width: calc(var(--sun-d) * 1.5); height: 96%; border-color: rgba(255, 226, 170, .2); }
.hero-sun {
  position: absolute;
  left: 50%;
  top: var(--sun-y);
  width: var(--sun-d);
  aspect-ratio: 1;
  margin: calc(var(--sun-d) * -.5) 0 0 calc(var(--sun-d) * -.5);
  transform: translateY(58%);
}
.hero-sun i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, #fff4d6 0, #ffd98a 26%, #f7ab58 54%, #e2704a 80%, #b9463f 100%);
  box-shadow: 0 0 110px 30px rgba(247, 171, 88, .35);
}
.hero-ring {
  position: absolute;
  left: 50%;
  top: var(--sun-y);
  border-radius: 50%;
  border: 1px dashed rgba(255, 226, 170, .3);
  opacity: 0;
}
.hero-ring--a { --d: calc(var(--sun-d) * 1.34); width: var(--d); height: var(--d); margin: calc(var(--d) * -.5) 0 0 calc(var(--d) * -.5); animation: ring-spin 160s linear infinite, fade-in 3s ease 1.2s forwards; animation-play-state: var(--play, running); }
.hero-ring--b { --d: calc(var(--sun-d) * 1.86); width: var(--d); height: var(--d); margin: calc(var(--d) * -.5) 0 0 calc(var(--d) * -.5); border-style: dotted; border-color: rgba(255, 226, 170, .22); animation: ring-spin 240s linear infinite reverse, fade-in 3s ease 1.6s forwards; animation-play-state: var(--play, running); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes fade-in { to { opacity: 1; } }

.hero-dunes {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: min(46vh, 480px);
  --dune-far: #6b2f4a;
  --dune-mid: #3a1c38;
  --dune-near: #160f1a;
}

.hero-copy-par { z-index: 4; display: grid; place-items: center; padding-bottom: 26vh; }
.hero-copy { text-align: center; padding: 0 4vw; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 17.5vw, 320px);
  line-height: 1;
  letter-spacing: .16em;
  margin-right: -.16em;
  text-transform: uppercase;
  color: #fff6e4;
  text-shadow: 0 0 60px rgba(245, 150, 90, .45), 0 2px 30px rgba(19, 10, 24, .5);
  white-space: nowrap;
}
.hero-title .ch { display: inline-block; opacity: 0; transform: translateY(.3em); filter: blur(12px); }
.js .hero-title:not(.is-split) { visibility: hidden; animation: fb-show .01s 3.5s forwards; }
@keyframes fb-show { to { visibility: visible; opacity: 1; } }

.hero-lower {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(70px, 10vh, 110px);
  z-index: 4;
  text-align: center;
  padding: 0 6vw;
}
.hero-kicker {
  font-size: clamp(11.5px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255, 246, 228, .92);
  margin-bottom: clamp(14px, 2.4vh, 26px);
  text-shadow: 0 1px 14px rgba(19, 10, 24, .7);
}
.hero-line {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 27px);
  line-height: 1.6;
  letter-spacing: .08em;
  color: #fff6e4;
  text-shadow: 0 1px 16px rgba(19, 10, 24, .7);
}
.js .hero-lower, .js .scroll-cue { opacity: 0; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 246, 228, .85);
  text-decoration: none;
  font-size: 10.5px;
  letter-spacing: .4em;
  text-transform: uppercase;
  padding: 6px 14px;
  transition: opacity .5s ease;
}
.scroll-cue i { display: block; width: 1px; height: 38px; background: linear-gradient(180deg, rgba(255,246,228,.7), rgba(255,246,228,0)); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: #fff; animation: cue-drop 2.6s ease-in-out infinite; }
@keyframes cue-drop { 0% { transform: translateY(-14px); } 100% { transform: translateY(38px); } }
.s-hero.is-scrolled .scroll-cue { opacity: 0 !important; }

@media (max-width: 640px) {
  .s-hero { --sun-d: 84vw; --sun-y: 47%; }
  .hero-title { font-size: 19.5vw; letter-spacing: .12em; margin-right: -.12em; }
  .hero-copy-par { padding-bottom: 30vh; }
}

/* entrance choreography (starts when body gets .is-ready) */
.is-ready .hero-sun { animation: sun-rise 5.5s cubic-bezier(.16, .7, .2, 1) forwards; }
@keyframes sun-rise { to { transform: translateY(0); } }
.is-ready .hero-halo { animation: fade-in 4s ease .4s forwards; }
.is-ready .hero-arch { animation: arch-in 2.6s var(--ease) 1s forwards; }
.is-ready .hero-arch--b { animation-delay: 1.4s; }
@keyframes arch-in { to { opacity: 1; transform: translateX(-50%) scaleY(1); } }
.is-ready .hero-title .ch { animation: ch-in 2.4s var(--ease) forwards; animation-delay: calc(var(--k) * .17s + .5s); }
@keyframes ch-in { to { opacity: 1; transform: none; filter: blur(0); } }
.is-ready .hero-lower { animation: fade-in 2s ease 2s forwards; }
.is-ready .scroll-cue { animation: fade-in 2s ease 3s forwards; }
.s-page:not(.js-alive) .hero-lower, .s-page:not(.js-alive) .scroll-cue { animation: fb-show .01s 4s forwards; }

/* ==========================================================================
   02 — WHAT IS SOLAR?
   ========================================================================== */
.s-move {
  background: linear-gradient(180deg, #160f1a 0%, #26162a 28%, #33192f 62%, #2f1a33 100%);
  padding: clamp(90px, 13vw, 190px) 0 clamp(80px, 10vw, 150px);
  overflow: hidden;
}
.s-move::before {
  content: '';
  position: absolute;
  top: 6%; right: -14vw;
  width: min(60vw, 720px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(201, 106, 62, .28), rgba(201, 106, 62, 0) 68%);
  z-index: 0;
  pointer-events: none;
}
.move-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 100px);
  align-items: start;
}
.move-head .s-title { font-size: clamp(32px, 5vw, 76px); }
.move-lead {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 50px);
  line-height: 1.25;
  letter-spacing: .01em;
  margin: 0 0 clamp(20px, 2.6vw, 34px);
  color: #fff1d6;
  max-width: 16em;
}
.s-prose p {
  font-size: clamp(16.5px, 1.3vw, 19.5px);
  line-height: 1.9;
  color: rgba(246, 239, 226, .86);
  max-width: 32em;
  margin-bottom: 1.1em;
}
.s-prose p:first-child { color: var(--ivory); }

.concepts { list-style: none; margin-top: clamp(70px, 9vw, 130px); }
.concept {
  display: grid;
  grid-template-columns: clamp(38px, 5vw, 72px) minmax(0, 1fr) minmax(0, 250px);
  align-items: baseline;
  gap: 0 8px;
  padding: clamp(14px, 2vw, 26px) 0;
  border-top: 1px solid rgba(231, 181, 89, .24);
}
.concept:last-child { border-bottom: 1px solid rgba(231, 181, 89, .24); }
.c-idx { font-size: 12.5px; letter-spacing: .14em; color: var(--gold); }
.c-word {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(27px, 6vw, 96px);
  letter-spacing: .05em;
  line-height: 1.1;
  transition: transform .7s var(--ease), color .6s ease, text-shadow .6s ease;
}
.c-note { font-size: 15px; line-height: 1.5; color: rgba(246, 239, 226, .78); text-align: right; }
.concept:hover .c-word { transform: translateX(14px); color: #fff1c9; text-shadow: 0 0 46px rgba(242, 185, 90, .55); }
@media (max-width: 760px) {
  .move-grid { grid-template-columns: 1fr; }
  .concept { grid-template-columns: 36px minmax(0, 1fr); }
  .c-note { grid-column: 2; text-align: left; margin-top: 6px; }
}

/* ==========================================================================
   03 — THE SOLAR PHILOSOPHY  (pinned stage: the sun crosses the sky as you scroll)
   --p (0 -> 1) is written on .philo-stage by solar.js; everything below is derived from it in CSS.
   ========================================================================== */
.philo-track { position: relative; height: 430vh; }
.philo-stage {
  --p: 0;
  --pd: min(40vmin, 400px);
  --dune-far: #3a1a3c;
  --dune-mid: #1a1024;
  --dune-near: #0b0810;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #2f1a33;
}
.philo-sky { position: absolute; inset: 0; }
.philo-sky--a { background: linear-gradient(180deg, #2f1a33 0%, #7a3556 42%, #e0805a 72%, #ffca7a 100%); }
.philo-sky--b { background: linear-gradient(180deg, #08060c 0%, #150c1f 40%, #3b1a3c 72%, #93404a 100%); opacity: clamp(0, calc((var(--p) - .5) * 3), 1); }
.philo-stars { opacity: clamp(0, calc((var(--p) - .62) * 3.4), 1); z-index: 1; }
.philo-sun {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 20%;
  width: var(--pd);
  aspect-ratio: 1;
  margin-left: calc(var(--pd) * -.5);
  transform: translate3d(calc((var(--p) - .5) * 70vw), calc((var(--p) - .5) * (var(--p) - .5) * 4 * 36vh), 0);
  will-change: transform;
}
.philo-sun i { position: absolute; inset: 0; border-radius: 50%; }
.philo-sun-disc { background: radial-gradient(circle at 50% 44%, #fff3d0 0, #ffd884 32%, #f6aa5a 64%, #ee8748 100%); box-shadow: 0 0 140px 50px rgba(255, 190, 110, .45); }
.philo-sun-red { background: radial-gradient(circle at 50% 44%, #f06a4b 0, #d5483f 70%, #b83a44 100%); opacity: calc((var(--p) - .5) * (var(--p) - .5) * 4); box-shadow: 0 0 120px 40px rgba(220, 80, 70, .35); }
.philo-dunes { position: absolute; left: 0; right: 0; bottom: -1px; height: min(38vh, 400px); z-index: 3; }

.philo-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 20vh;
  margin: 0 auto;
}
.philo-copy::before { content: ''; position: absolute; left: 50%; top: 36%; width: min(1100px, 100vw); height: 58vh; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(24, 10, 32, .55), rgba(24, 10, 32, 0)); z-index: -1; pointer-events: none; }
.philo-head { transition: opacity .8s ease, transform .8s var(--ease); }
.philo-title { font-size: clamp(34px, 7.2vw, 108px); }
.philo-copy .s-eyebrow { text-shadow: 0 1px 12px rgba(19, 10, 24, .6); }
.beats { list-style: none; position: relative; width: min(760px, 88vw); min-height: clamp(130px, 19vh, 190px); margin-top: clamp(22px, 4vh, 46px); transition: opacity .8s ease; }
.beat { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.beat.on { opacity: 1; transform: none; }
.beat-k { display: block; font-size: 12px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: #ffe2a3; margin-bottom: 14px; text-shadow: 0 1px 12px rgba(19, 10, 24, .7); }
.beat-t { display: block; font-family: var(--font-display); font-size: clamp(21px, 2.7vw, 36px); line-height: 1.4; color: #fff6e4; text-shadow: 0 1px 22px rgba(19, 10, 24, .6); }
.philo-statement {
  position: absolute;
  left: 50%; top: 42%;
  width: min(1240px, 90vw);
  margin: 0;
  transform: translate(-50%, calc(-50% + 16px));
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  pointer-events: none;
}
.philo-statement p { font-family: var(--font-display); font-size: clamp(23px, 3.3vw, 52px); line-height: 1.28; color: #fff6e4; text-shadow: 0 2px 30px rgba(19, 10, 24, .65); }
.philo-stage.is-end .philo-head, .philo-stage.is-end .beats { opacity: 0; }
.philo-stage.is-end .philo-head { transform: translateY(-10px); }
.philo-stage.is-end .philo-statement { opacity: 1; transform: translate(-50%, -50%); }

@media (max-width: 640px) {
  .philo-stage { --pd: 58vw; }
}

/* static layout: no JS, or the visitor prefers reduced motion */
html:not(.js) .philo-track { height: auto; }
html:not(.js) .philo-stage { position: relative; height: auto; --p: .3; padding: clamp(110px, 16vw, 190px) 0 clamp(230px, 32vw, 380px); }
html:not(.js) .philo-copy { position: relative; inset: auto; padding: 0; }
html:not(.js) .beats { min-height: 0; display: grid; gap: 32px; }
html:not(.js) .beat { position: relative; opacity: 1; transform: none; }
html:not(.js) .philo-statement { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin-top: 70px; }
@media (prefers-reduced-motion: reduce) {
  .philo-track { height: auto; }
  .philo-stage { position: relative; height: auto; --p: .3; padding: clamp(110px, 16vw, 190px) 0 clamp(230px, 32vw, 380px); }
  .philo-copy { position: relative; inset: auto; padding: 0; }
  .beats { min-height: 0; display: grid; gap: 32px; }
  .beat { position: relative; opacity: 1; transform: none; }
  .philo-statement { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin-top: 70px; }
}

/* ==========================================================================
   04 — LIGHT CODES
   ========================================================================== */
.s-codes {
  background: linear-gradient(180deg, #0b0810 0%, #0f0a15 45%, #0b0810 100%);
  padding: clamp(100px, 13vw, 190px) 0 clamp(90px, 10vw, 150px);
  overflow: hidden;
}
.codes-stars { height: 100%; -webkit-mask-image: none; mask-image: none; opacity: .85; }
.s-codes::before {
  content: '';
  position: absolute;
  left: 50%; top: 52%;
  width: min(150vw, 1300px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(140, 107, 181, .22) 0, rgba(201, 106, 62, .1) 38%, rgba(11, 8, 16, 0) 68%);
  pointer-events: none;
  z-index: 0;
}
.codes-head { text-align: center; }
.codes-sub { font-family: var(--font-display); font-size: clamp(16px, 1.9vw, 27px); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 18px; }
.codes-copy { max-width: 33em; margin: clamp(22px, 3vw, 36px) auto 0; font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.85; color: rgba(246, 239, 226, .86); }

.codes-instrument {
  --m: min(92vw, 680px);
  --r: calc(var(--m) * .4167);
  --node: clamp(44px, 8.2vw, 64px);
  position: relative;
  z-index: 2;
  width: var(--m);
  aspect-ratio: 1;
  margin: clamp(56px, 7vw, 100px) auto clamp(64px, 8vw, 110px);
}
.mandala { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-ring { fill: none; stroke: rgba(231, 181, 89, .5); stroke-width: 1; }
.m-ring--faint { stroke: rgba(231, 181, 89, .22); }
.m-ticks { fill: none; stroke: rgba(246, 239, 226, .55); stroke-width: 12; stroke-dasharray: 1.2 23.235; }
.m-dots { fill: none; stroke: rgba(231, 181, 89, .75); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 12.355; }
.m-dash { fill: none; stroke: rgba(246, 239, 226, .32); stroke-width: 1; stroke-dasharray: 6 8; }
.m-axes { fill: none; stroke: rgba(231, 181, 89, .14); stroke-width: 1; }
.m-core { fill: #fff1c9; filter: drop-shadow(0 0 10px rgba(255, 241, 201, .9)); }
.m-glow { transform-box: fill-box; transform-origin: center; animation: breathe 7s ease-in-out infinite; animation-play-state: var(--play, running); }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.07); opacity: 1; } }
.m-spin { transform-box: fill-box; transform-origin: center; animation: ring-spin 240s linear infinite; animation-play-state: var(--play, running); }
.m-spin--b { animation-duration: 170s; animation-direction: reverse; }
.m-spin--c { animation-duration: 300s; }
.m-beam { transform-origin: 300px 300px; transform: rotate(var(--a, 0deg)); transition: transform 1.1s cubic-bezier(.3, .7, .2, 1); }

.codes-list { list-style: none; }
.js .code {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: rotate(calc(var(--i) * 45deg)) translateY(calc(var(--r) * -1)) rotate(calc(var(--i) * -45deg));
}
.code button {
  position: absolute;
  left: calc(var(--node) / -2);
  top: calc(var(--node) / -2);
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: radial-gradient(circle at 50% 38%, #2a1830, #100a16);
  border: 1px solid rgba(231, 181, 89, .55);
  transition: transform .5s var(--ease), box-shadow .5s ease, color .4s ease, border-color .4s ease;
}
.glyph { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.code button:hover, .code button:focus-visible, .code.is-active button {
  color: #fff1c9;
  border-color: #f2b95a;
  transform: scale(1.14);
  box-shadow: 0 0 0 6px rgba(242, 185, 89, .12), 0 0 36px rgba(242, 185, 89, .55);
}
.code-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) {
  .code-name {
    width: auto; height: auto; overflow: visible; clip: auto;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(246, 239, 226, .85);
    pointer-events: none;
  }
}

.code:nth-child(1) .code-name { top: auto; bottom: calc(100% + 10px); }
@media (min-width: 1000px) {
  .code:nth-child(n+2):nth-child(-n+4) .code-name { top: 50%; left: calc(100% + 14px); transform: translateY(-50%); }
  .code:nth-child(n+6) .code-name { top: 50%; left: auto; right: calc(100% + 14px); transform: translateY(-50%); }
}
.codes-readout {
  position: absolute;
  left: 50%; top: 50%;
  width: 44%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
  z-index: 3;
  transition: opacity .35s ease;
}
.codes-readout::before { content: ''; position: absolute; inset: -30% -14%; background: radial-gradient(closest-side, rgba(11, 8, 16, .82), rgba(11, 8, 16, 0)); z-index: -1; }
.codes-readout.is-swap { opacity: 0; }
.ro-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: clamp(15px, 2.5vw, 23px); color: #fff1c9; line-height: 1.25; }
.ro-line { margin-top: 8px; font-size: clamp(13.5px, 1.5vw, 16px); line-height: 1.5; color: rgba(246, 239, 226, .88); }

.codes-foot { text-align: center; }
.codes-mega {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.15;
  font-size: clamp(26px, 4.6vw, 68px);
}
.codes-mega em { font-style: normal; color: var(--gold); text-shadow: 0 0 40px rgba(231, 181, 89, .4); }

/* no-JS: the ring becomes a plain list */
html:not(.js) .codes-instrument { width: auto; aspect-ratio: auto; max-width: 900px; margin-inline: auto; }
html:not(.js) .mandala, html:not(.js) .codes-readout { display: none; }
html:not(.js) .codes-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; padding: 0 6vw; }
html:not(.js) .code { display: grid; justify-items: center; gap: 10px; text-align: center; }
html:not(.js) .code button { position: static; }
html:not(.js) .code-name, html:not(.js) .code-line { position: static; clip: auto; width: auto; height: auto; overflow: visible; transform: none; white-space: normal; }

/* ==========================================================================
   05 — THE SOLAR FREQUENCY  (a moment of noon: sand, quiet, spacious)
   ========================================================================== */
.s-freq {
  color: var(--ink);
  background: linear-gradient(180deg,
    #0b0810 0,
    #2a1428 9vh,
    #6e3149 18vh,
    #c9704f 28vh,
    #efc48f 38vh,
    #EADCC6 50vh,
    #EADCC6 calc(100% - 48vh),
    #eab98a calc(100% - 36vh),
    #c9704f calc(100% - 24vh),
    #6a3324 calc(100% - 12vh),
    #2a1618 100%);
  padding: clamp(250px, 46vh, 460px) 0 clamp(240px, 42vh, 420px);
  overflow: hidden;
}
.s-freq .s-eyebrow { color: var(--burnt); }
.s-freq .s-title { text-shadow: none; color: var(--ink); }
.freq-wave-wrap { position: absolute; left: 0; right: 0; top: calc(clamp(250px, 46vh, 460px) - 96px); height: 90px; overflow: hidden; opacity: .6; pointer-events: none; z-index: 1; }
.freq-wave { display: block; width: 200%; height: 100%; fill: none; stroke: #8c3b22; stroke-width: 1.2; animation: wave-move 30s linear infinite; animation-play-state: var(--play, running); }
.freq-wave path { vector-effect: non-scaling-stroke; }
@keyframes wave-move { to { transform: translateX(-50%); } }

.freq-title { font-size: clamp(30px, 5vw, 70px); }
.freq-lead {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.6vw, 52px);
  line-height: 1.32;
  margin: clamp(34px, 5vw, 60px) 0 clamp(90px, 16vh, 180px);
  max-width: 19em;
  text-wrap: balance;
}
.freq-lines { list-style: none; }
.freq-lines li {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.2vw, 44px);
  line-height: 1.3;
  margin: clamp(30px, 8vh, 80px) 0;
  opacity: .4;
  transform: translateX(-14px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.freq-lines li.is-lit { opacity: 1; transform: none; }
@media (min-width: 860px) { .freq-lines li:nth-child(even) { text-align: right; transform: translateX(14px); } .freq-lines li:nth-child(even).is-lit { transform: none; } }
.freq-final { position: relative; margin-top: clamp(130px, 24vh, 260px); text-align: center; }
.freq-sun {
  position: absolute;
  left: 50%; top: 50%;
  width: min(90vw, 1000px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242, 185, 90, .7) 0, rgba(242, 185, 90, .28) 36%, rgba(242, 185, 90, 0) 68%);
  transform: translate(-50%, -50%) scale(.5);
  opacity: 0;
  transition: transform 2.6s var(--ease), opacity 2.2s ease;
  pointer-events: none;
}
.freq-final.is-inview .freq-sun { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.freq-mega {
  position: relative;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(38px, 8.6vw, 160px);
  line-height: .98;
  letter-spacing: .02em;
  color: var(--ink);
}
.freq-mega span { background: linear-gradient(180deg, #f4b955, #d0703f 62%, #8c3b22); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   06 — MORE THAN AN EXPERIENCE
   ========================================================================== */
.s-expand {
  background: linear-gradient(180deg, #2a1618 0%, #3a1c1c 30%, #2b1520 68%, #160f1a 100%);
  padding: clamp(80px, 9vw, 130px) 0 clamp(110px, 12vw, 180px);
  overflow: hidden;
}
.marquee { overflow: hidden; white-space: nowrap; margin-bottom: clamp(70px, 9vw, 120px); }
.marquee-track { display: inline-flex; animation: marquee 80s linear infinite; animation-play-state: var(--play, running); will-change: transform; }
.marquee-track span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(56px, 11vw, 168px);
  letter-spacing: .06em;
  line-height: 1.1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(231, 181, 89, .42);
}
.marquee-track span::after { content: '✶'; display: inline-block; margin: 0 .5em; font-size: .28em; vertical-align: middle; color: var(--gold); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

.expand-head { max-width: 760px; }
.expand-lead { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 34px); line-height: 1.4; margin-top: clamp(22px, 3vw, 34px); color: #fff1d6; }
.expand-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 64px);
  margin: clamp(50px, 7vw, 90px) 0 0;
}
.expand-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; padding: 26px 0 28px; border-top: 1px solid rgba(231, 181, 89, .28); }
.ex-idx { font-size: 12.5px; letter-spacing: .14em; color: var(--gold); }
.ex-word { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(22px, 2.5vw, 34px); letter-spacing: .05em; }
.ex-note { grid-column: 2; margin-top: 8px; font-size: 15px; line-height: 1.5; color: rgba(246, 239, 226, .8); }
@media (max-width: 1000px) { .expand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .expand-list { grid-template-columns: 1fr; } }

.drops { display: grid; gap: 28px; }
.drop {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 84px);
  align-items: center;
  padding: clamp(24px, 4vw, 60px);
  border: 1px solid rgba(231, 181, 89, .3);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 240, 210, .07), rgba(255, 240, 210, .015));
}
.drop-object { position: relative; display: grid; place-items: center; min-height: clamp(280px, 34vw, 400px); perspective: 700px; }
.drop-object::before {
  content: '';
  position: absolute;
  inset: 4% 10% 0;
  border: 1px solid rgba(231, 181, 89, .32);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background: radial-gradient(60% 46% at 50% 44%, rgba(242, 185, 90, .26), rgba(242, 185, 90, 0) 72%);
}
.talisman { position: relative; width: min(56%, 230px); animation: sway 9s ease-in-out infinite; animation-play-state: var(--play, running); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .55)); }
.talisman svg { display: block; width: 100%; height: auto; }
@keyframes sway { 0%, 100% { transform: rotateY(-26deg) rotateZ(-2deg); } 50% { transform: rotateY(26deg) rotateZ(2deg); } }
.drop-tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(231, 181, 89, .6); border-radius: 999px; padding: 8px 16px 8px 20px; }
.drop-name { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; line-height: 1.05; font-size: clamp(34px, 5vw, 72px); margin: 20px 0 22px; }
.drop-copy { font-size: clamp(16.5px, 1.4vw, 20px); line-height: 1.8; color: rgba(246, 239, 226, .88); }
.drop-soon { margin: 26px 0 28px; font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: rgba(246, 239, 226, .7); }
@media (max-width: 760px) { .drop { grid-template-columns: 1fr; text-align: left; } .drop-object { min-height: 280px; } }

/* ==========================================================================
   07 — THE SOLAR CIRCLE (newsletter)
   ========================================================================== */
.s-circle {
  background: linear-gradient(180deg, #160f1a 0%, #0e0912 55%, #0b0810 100%);
  padding: clamp(110px, 14vw, 200px) 0 clamp(120px, 15vw, 210px);
  text-align: center;
  overflow: hidden;
}
.circle-orb { position: absolute; left: 50%; top: 42%; width: min(130vw, 1080px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(242, 185, 90, .16) 0, rgba(201, 106, 62, .06) 34%, rgba(11, 8, 16, 0) 64%); }
.circle-orb i { position: absolute; border-radius: 50%; border: 1px solid rgba(231, 181, 89, .17); animation: ring-spin 200s linear infinite; animation-play-state: var(--play, running); }
.circle-orb i:nth-child(1) { inset: 0; border-style: dashed; }
.circle-orb i:nth-child(2) { inset: 13%; animation-direction: reverse; animation-duration: 260s; }
.circle-orb i:nth-child(3) { inset: 27%; border-style: dotted; border-color: rgba(231, 181, 89, .26); animation-duration: 160s; }
.circle-inner { position: relative; z-index: 2; }
.circle-inner .s-title { font-size: clamp(34px, 6.6vw, 96px); }
.circle-sub { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 34px); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 22px; }
.circle-copy { max-width: 30em; margin: 24px auto 0; font-size: clamp(16.5px, 1.4vw, 20px); line-height: 1.8; color: rgba(246, 239, 226, .88); }
.circle-gets { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; max-width: 800px; margin: clamp(34px, 5vw, 52px) auto clamp(38px, 5vw, 56px); }
.circle-gets li { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 239, 226, .86); }
.circle-gets li::before { content: '✶'; color: var(--gold); margin-right: .8em; font-size: .85em; }

.s-form { max-width: 700px; margin: 0 auto; }
.s-form-row { display: flex; gap: 12px; }
.s-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid rgba(246, 239, 226, .4);
  background: rgba(255, 255, 255, .05);
  color: var(--ivory);
  font-family: inherit;
  font-size: 16px;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.s-form input[type="email"]::placeholder { color: rgba(246, 239, 226, .58); }
.s-form input[type="email"]:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231, 181, 89, .25), 0 0 34px rgba(231, 181, 89, .2); background: rgba(255, 255, 255, .08); }
.s-form button {
  flex: 0 0 auto;
  min-height: 58px;
  padding: 0 clamp(22px, 3vw, 36px);
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #1a0f14;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .3s ease, box-shadow .3s ease, transform .3s ease, opacity .3s ease;
}
.s-form button:hover { background: #f6cd85; box-shadow: 0 0 40px rgba(242, 185, 90, .5); }
.s-form button:disabled { opacity: .55; cursor: not-allowed; }
.s-form-status { min-height: 1.7em; margin-top: 16px; font-size: 14.5px; color: #ffe2a3; }
@media (max-width: 640px) {
  .s-form-row { flex-direction: column; }
  .s-form button { width: 100%; }
}

/* ==========================================================================
   08 — FINAL PORTAL
   ========================================================================== */
.s-portal {
  --dune-far: #7a3a4a;
  --dune-mid: #3a1c38;
  --dune-near: #130F17;
  background: linear-gradient(180deg, #0b0810 0%, #1c1030 26%, #3b1a3c 56%, #6e2f47 100%);
  padding-top: clamp(110px, 15vw, 210px);
  overflow: hidden;
}
.portal-stars { height: 60%; }
.portal-copy { z-index: 4; text-align: center; padding-bottom: clamp(300px, 46vh, 480px); }
.portal-mega {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.02;
  font-size: clamp(40px, 9vw, 152px);
  margin: 0 auto;
  max-width: 11em;
  text-shadow: 0 2px 34px rgba(19, 10, 24, .5);
}
.portal-sub { font-family: var(--font-display); font-size: clamp(22px, 3.2vw, 46px); letter-spacing: .06em; color: #ffe2a3; margin-top: clamp(22px, 3vw, 38px); }
.portal-mark { margin: clamp(80px, 11vw, 140px) 0 0; padding-left: .7em; font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 60px); letter-spacing: .7em; text-transform: uppercase; }
.portal-words { list-style: none; margin: 22px 0 clamp(46px, 6vw, 74px); display: grid; gap: 8px; font-size: clamp(14px, 1.5vw, 17px); letter-spacing: .42em; padding-left: .42em; text-transform: uppercase; color: rgba(246, 239, 226, .9); }
.s-cta {
  display: inline-flex;
  align-items: center;
  min-height: 62px;
  padding: 0 clamp(26px, 4vw, 50px);
  border: 1px solid rgba(255, 226, 170, .75);
  border-radius: 999px;
  color: #fff1c9;
  background: rgba(19, 10, 22, .55);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  box-shadow: 0 0 44px rgba(242, 185, 90, .24);
  transition: background .4s ease, color .4s ease, box-shadow .4s ease;
}
.s-cta:hover, .s-cta:focus-visible { background: var(--gold); color: #1a0f14; box-shadow: 0 0 70px rgba(242, 185, 90, .6); }
.portal-links { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.portal-links a { position: relative; color: rgba(246, 239, 226, .92); text-decoration: none; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid rgba(246, 239, 226, .4); }
.portal-links a::after { content: ''; position: absolute; inset: -12px -6px; }
.portal-links a:hover { color: #fff1c9; border-color: var(--gold); }

.portal-scene { --pr: 0; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(320px, 54vh, 580px); z-index: 2; pointer-events: none; }
.portal-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(110, 47, 71, 0) 0%, rgba(201, 106, 62, .5) 52%, rgba(245, 200, 119, .95) 100%); }
.portal-arch { position: absolute; left: 50%; bottom: 0; width: min(74vw, 660px); height: 118%; transform: translateX(-50%); border: 1px solid rgba(255, 226, 170, .32); border-bottom: 0; border-radius: 999px 999px 0 0; }
.portal-sunwrap { --sd: min(40vw, 360px); position: absolute; left: 50%; bottom: 10%; width: var(--sd); aspect-ratio: 1; margin-left: calc(var(--sd) * -.5); transform: translateY(calc((1 - var(--pr)) * 78%)); will-change: transform; }
.portal-glow { position: absolute; inset: -60%; background: radial-gradient(circle, rgba(255, 214, 140, .6) 0, rgba(245, 150, 90, .22) 30%, rgba(201, 106, 62, 0) 62%); opacity: calc(.15 + var(--pr) * .85); }
.portal-sun { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 44%, #fff4d6 0, #ffd98a 28%, #f7ab58 58%, #e2704a 100%); box-shadow: 0 0 100px 26px rgba(247, 171, 88, .4); }
.portal-dunes { position: absolute; left: 0; right: 0; bottom: -1px; height: 66%; }

@media (max-width: 640px) {
  .portal-sunwrap { --sd: 64vw; bottom: 20%; }
}

/* ==========================================================================
   FOOTER additions (structure comes from /style.css)
   ========================================================================== */
.s-page #footer { background: #130F17; position: relative; z-index: 3; content-visibility: visible; }

/* ==========================================================================
   Reduced motion + safety nets
   ========================================================================== */
.s-page:not(.js-alive) [data-reveal] { animation: reveal-fb .01s 5s forwards; }
@keyframes reveal-fb { to { opacity: 1; transform: none; filter: none; } }
.s-freq [data-reveal], .s-page:not(.js-alive) .freq-lines li { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .s-veil { display: none !important; }
  .hero-title .ch { opacity: 1; transform: none; filter: none; }
  .hero-sun { transform: none; }
  .hero-halo, .hero-ring, .hero-lower, .scroll-cue { opacity: 1 !important; }
  .hero-arch { opacity: 1; transform: translateX(-50%); }
  .js .hero-title:not(.is-split) { visibility: visible; }
  .sky-flyers { display: none; }
  .spin, .m-spin, .m-glow, .marquee-track, .freq-wave, .talisman, .s-stars::before, .s-stars::after { animation: none !important; }
  .freq-lines li { opacity: 1; transform: none; }
  .freq-sun { opacity: 1; transform: translate(-50%, -50%); }
  .portal-sunwrap { transform: none; }
  .portal-glow { opacity: 1; }
}
