/* ==========================================================================
   BABBAS · AURORA
   An otherworldly WebGL dreamscape. The light does the talking;
   the chrome stays near monochrome.
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------ */

:root {
  /* space */
  --space-0: #050510;
  --space-1: #0B1030;
  --space-2: #10173d;

  /* iridescent stops */
  --indigo: #4F46E5;
  --cyan: #22D3EE;
  --magenta: #E879F9;
  --ice: #A5F3FC;
  --glow: #7DF9FF;

  /* text */
  --text: #EDEDF4;
  --text-dim: rgba(237, 237, 244, 0.62);
  --text-faint: rgba(237, 237, 244, 0.52);

  /* glass */
  --glass-bg: rgba(11, 16, 48, 0.34);
  --glass-bg-strong: rgba(9, 13, 38, 0.58);
  --glass-line: rgba(165, 243, 252, 0.14);

  /* type */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;

  /* fluid type scale */
  --fs-100: clamp(0.6875rem, 0.65rem + 0.2vw, 0.78rem);
  --fs-200: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --fs-300: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  --fs-400: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --fs-500: clamp(1.25rem, 1.1rem + 0.8vw, 1.7rem);
  --fs-600: clamp(1.6rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-700: clamp(2rem, 1.5rem + 2.8vw, 3.6rem);
  --fs-800: clamp(2.4rem, 1.6rem + 4.6vw, 5.2rem);

  /* spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 7rem;
  --sp-10: clamp(6rem, 14vh, 11rem);

  /* motion */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-long: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glide: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-quick: 260ms;

  --radius-card: 20px;
  --radius-pill: 999px;

  --page-max: 76rem;
  --page-pad: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Reset ------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-400);
  font-weight: 350;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--space-0);
  overflow-x: hidden; /* fallback where clip is unsupported */
  overflow-x: clip;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* CSS nebula fallback: always painted; the WebGL canvas fades in above it.
   If the CDN or WebGL is unavailable, this IS the sky. */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(50% 38% at 18% 16%, rgba(79, 70, 229, 0.42), transparent 70%),
    radial-gradient(42% 32% at 82% 24%, rgba(34, 211, 238, 0.20), transparent 70%),
    radial-gradient(46% 40% at 72% 78%, rgba(232, 121, 249, 0.16), transparent 72%),
    radial-gradient(36% 30% at 28% 86%, rgba(165, 243, 252, 0.10), transparent 70%),
    linear-gradient(180deg, var(--space-0) 0%, var(--space-1) 52%, var(--space-0) 100%);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong { font-weight: 600; color: var(--text); }

::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utility ----------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--space-1);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-200);
  transform: translateY(-300%);
  transition: transform var(--dur-quick) var(--ease-out-soft);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Stage layers ------------------------------------------------ */

.gl-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1200ms ease;
  pointer-events: none;
}
body.webgl-on .gl-stage { opacity: 1; }

.comet-stage {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.grain-veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

main { position: relative; z-index: 1; }

/* ---------- Header ------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  transition: background-color 400ms ease, border-color 400ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 16, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(165, 243, 252, 0.08);
}

.header-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.9rem var(--page-pad);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.wordmark-orb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, var(--ice), var(--cyan) 45%, var(--indigo) 90%);
  box-shadow:
    0 0 10px rgba(125, 249, 255, 0.8),
    0 0 26px rgba(79, 70, 229, 0.6);
  flex-shrink: 0;
}

.wordmark-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.34em;
  padding-left: 0.34em; /* optical balance for the tracking */
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  margin-left: auto;
  font-size: var(--fs-200);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: var(--text-dim);
  padding: 0.35rem 0;
  transition: color var(--dur-quick) ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  transition: right 320ms var(--ease-out-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }

.header-cta { flex-shrink: 0; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- Buttons ----------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-200);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
  transition:
    transform 340ms var(--ease-out-soft),
    box-shadow 340ms var(--ease-out-soft),
    color var(--dur-quick) ease,
    border-color var(--dur-quick) ease,
    background-color var(--dur-quick) ease;
}

.btn-arrow {
  font-size: 1.05em;
  line-height: 1;
  transition: transform 340ms var(--ease-out-soft);
}

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow { transform: translate(3px, -3px); }

.btn-solid {
  color: #04040e;
  background:
    linear-gradient(120deg, var(--ice) 0%, var(--glow) 40%, var(--cyan) 100%);
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.4),
    0 8px 30px rgba(34, 211, 238, 0.28);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.7),
    0 14px 44px rgba(34, 211, 238, 0.42),
    0 0 60px rgba(232, 121, 249, 0.18);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(165, 243, 252, 0.22);
  background: rgba(11, 16, 48, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(165, 243, 252, 0.55);
  box-shadow: 0 0 24px rgba(125, 249, 255, 0.15) inset,
              0 6px 26px rgba(34, 211, 238, 0.12);
  transform: translateY(-2px);
}

/* ---------- Shared section chrome ---------------------------------------- */

section {
  position: relative;
  padding: var(--sp-10) var(--page-pad);
}

/* pacing: the page breathes toward the finale. FAQ tightens, the portal
   gets the widest sky of the scroll. */
section.faq {
  padding-block: clamp(4.5rem, 10vh, 8rem);
}
section[data-zone="6"] {
  padding-block: clamp(8rem, 20vh, 15rem);
}

.section-head {
  max-width: var(--page-max);
  margin: 0 auto var(--sp-8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 12px var(--glow);
  flex-shrink: 0;
}

.section-title {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-700);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.section-sub {
  margin-top: var(--sp-5);
  max-width: 52ch;
  color: var(--text-dim);
  font-size: var(--fs-400);
}

/* ---------- Reveal system (armed only when JS is present) ----------------- */

.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 1000ms var(--ease-out-long),
    transform 1000ms var(--ease-out-long);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

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

/* ---------- Glass cards --------------------------------------------------- */

.glass-card {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.06),
    0 30px 60px rgba(2, 2, 10, 0.45),
    inset 0 1px 0 rgba(237, 237, 244, 0.07);
}

/* 1px gradient border drawn with a masked overlay */
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(165, 243, 252, 0.45),
    rgba(79, 70, 229, 0.18) 34%,
    rgba(232, 121, 249, 0.10) 62%,
    rgba(34, 211, 238, 0.38)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* inner glow */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* --gx/--gy are driven by the tilt loop so the inner light leans toward
     the raised edge and the card reads as refracting glass */
  background:
    radial-gradient(120% 60% at var(--gx, 50%) var(--gy, -10%), rgba(125, 249, 255, 0.10), transparent 60%);
  pointer-events: none;
}

.glass-card.tilt-active::after {
  background:
    radial-gradient(130% 85% at var(--gx, 50%) var(--gy, 30%), rgba(125, 249, 255, 0.17), transparent 64%);
}

/* FAQ stack: six cards sit on screen at once over the live canvas, so this
   tier trades blur radius for opacity and stays cheap */
.faq-item.glass-card {
  background: rgba(9, 13, 38, 0.62);
  -webkit-backdrop-filter: blur(8px) saturate(1.15);
  backdrop-filter: blur(8px) saturate(1.15);
}

/* keep the same specificity weight as the override above so the CSS-only
   reduced-motion path also wins on FAQ cards (no-JS safety net) */
@media (prefers-reduced-motion: reduce) {
  .faq-item.glass-card {
    background: rgba(9, 13, 38, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* while a card is being tilted, transform must respond instantly;
   keep only the shadow easing */
[data-tilt].tilt-active { transition: box-shadow 600ms ease; }

/* ---------- Hero ----------------------------------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--sp-9) + 2rem);
}

.hero-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  margin-top: var(--sp-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-800);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 15ch;
  /* drop-shadow (not text-shadow) so the background-clipped gradient
     glyphs keep a clean edge over the bright 3D artifact */
  filter: drop-shadow(0 3px 14px rgba(5, 5, 16, 0.7));
}

.hero-title .line { display: block; }

.hero-title .w {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #c9cdf0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-glow {
  background: linear-gradient(115deg, var(--ice) 0%, var(--glow) 45%, var(--magenta) 110%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 0 22px rgba(125, 249, 255, 0.35));
}

/* staggered word rise inside the reveal */
.js-on .hero-title .w {
  opacity: 0;
  transform: translateY(0.6em) rotate(1.2deg);
  transition:
    opacity 900ms var(--ease-out-long),
    transform 900ms var(--ease-out-long);
}
.js-on .hero-title.is-visible .w { opacity: 1; transform: none; }
.js-on .hero-title.is-visible .w:nth-child(1) { transition-delay: 0.05s; }
.js-on .hero-title.is-visible .w:nth-child(2) { transition-delay: 0.12s; }
.js-on .hero-title.is-visible .w:nth-child(3) { transition-delay: 0.19s; }
.js-on .hero-title.is-visible .w:nth-child(4) { transition-delay: 0.26s; }
.js-on .hero-title.is-visible .line:nth-child(2) .w:nth-child(1) { transition-delay: 0.36s; }
.js-on .hero-title.is-visible .line:nth-child(2) .w:nth-child(2) { transition-delay: 0.43s; }
.js-on .hero-title.is-visible .line:nth-child(2) .w:nth-child(3) { transition-delay: 0.56s; }

.hero-sub {
  margin-top: var(--sp-5);
  font-size: var(--fs-500);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 34ch;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(5, 5, 16, 0.9), 0 4px 26px rgba(5, 5, 16, 0.75);
}

.hero-actions {
  margin-top: var(--sp-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-faint);
}

.scroll-cue-track {
  width: 1px;
  height: 56px;
  background: rgba(165, 243, 252, 0.18);
  position: relative;
  overflow: hidden;
}

.scroll-cue-bead {
  position: absolute;
  left: -1.5px;
  top: -8px;
  width: 4px; height: 8px;
  border-radius: 2px;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
  animation: bead-fall 2.6s var(--ease-glide) infinite;
}

@keyframes bead-fall {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(72px); opacity: 0; }
}

.scroll-cue-label {
  font-size: var(--fs-100);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

@media (max-height: 620px) {
  .scroll-cue { display: none; }
}

/* ---------- Drift (problem statement) -------------------------------------- */

.drift {
  min-height: 82vh;
  display: flex;
  align-items: center;
}

.drift-inner {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: var(--sp-7);
  text-align: center;
}

.drift-line {
  font-size: var(--fs-500);
  font-weight: 300;
  line-height: 1.5;
  text-wrap: balance;
}

.drift-dim { color: var(--text-dim); }

.drift-bright {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-600);
  line-height: 1.2;
  background: linear-gradient(115deg, #ffffff 20%, var(--ice) 60%, var(--magenta) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* gentle float once revealed */
.drift-line.is-visible { animation: drift-float 11s ease-in-out infinite alternate; }
.drift-line.is-visible:nth-child(3) { animation-duration: 13s; animation-delay: 1.2s; }
.drift-line.is-visible:nth-child(4) { animation-duration: 15s; animation-delay: 0.6s; }

@keyframes drift-float {
  from { transform: translateY(-5px); }
  to   { transform: translateY(7px); }
}

/* ---------- Orbital stations ------------------------------------------------ */

.stations-track {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
}

.beam {
  position: absolute;
  top: 9px;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: rgba(165, 243, 252, 0.10);
  border-radius: 2px;
}

.beam-fill {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--beam, 0));
  background: linear-gradient(90deg, var(--cyan), var(--indigo) 50%, var(--magenta));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.55);
  border-radius: 2px;
}

.beam-pulse {
  position: absolute;
  top: 50%;
  left: calc(var(--beam, 0) * 100%);
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 16px var(--glow), 0 0 40px rgba(125, 249, 255, 0.5);
  opacity: calc(var(--beam, 0) * 1.4 - 0.08);
}

.stations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.station {
  padding: calc(var(--sp-6) + 14px) var(--sp-6) var(--sp-6);
  margin-top: 34px;
}

.station-node {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(165, 243, 252, 0.4);
  background: var(--space-1);
  transition: box-shadow 600ms ease, background 600ms ease;
}

.station-node::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(165, 243, 252, 0.25);
  transition: background 600ms ease;
}

.station.is-lit .station-node {
  box-shadow: 0 0 18px rgba(125, 249, 255, 0.8), 0 0 44px rgba(34, 211, 238, 0.4);
}
.station.is-lit .station-node::after {
  background: var(--glow);
}

.station-index {
  font-family: var(--font-display);
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--text-faint);
}

.station-name {
  margin-top: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-500);
  letter-spacing: 0.01em;
}

.station-body {
  margin-top: var(--sp-4);
  color: var(--text-dim);
  font-size: var(--fs-300);
}

.station-meta {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(165, 243, 252, 0.1);
  font-size: var(--fs-100);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 860px) {
  .beam {
    top: 0; bottom: 0;
    left: 10px; right: auto;
    width: 2px; height: auto;
  }
  .beam-fill {
    transform-origin: center top;
    transform: scaleY(var(--beam, 0));
    background: linear-gradient(180deg, var(--cyan), var(--indigo) 50%, var(--magenta));
  }
  .beam-pulse {
    left: 50%;
    top: calc(var(--beam, 0) * 100%);
    margin: -4.5px 0 0 -4.5px;
  }
  .stations-grid {
    grid-template-columns: 1fr;
    padding-left: 2.4rem;
  }
  .station { margin-top: 0; }
  .station-node {
    top: 28px;
    left: calc(-2.4rem + 1px);
    transform: none;
  }
}

/* ---------- Samples ---------------------------------------------------------- */

.samples-grid {
  max-width: 58rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.sample-frame {
  padding: clamp(0.9rem, 2vw, 1.4rem);
  transform-style: preserve-3d;
  transition: box-shadow 600ms ease;
}

.sample-frame:nth-child(2) { margin-top: clamp(0rem, 6vw, 4rem); }

.sample-frame:hover {
  box-shadow:
    0 0 0 1px rgba(165, 243, 252, 0.12),
    0 40px 90px rgba(2, 2, 10, 0.6),
    0 0 70px rgba(232, 121, 249, 0.12);
}

.frame-glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.frame-glint::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -80%;
  width: 60%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(237, 237, 244, 0.10), transparent);
  transition: left 900ms var(--ease-glide);
}

.sample-frame:hover .frame-glint::after { left: 140%; }

.sample-media {
  border-radius: calc(var(--radius-card) - 8px);
  overflow: hidden;
  background: var(--space-1);
}

.sample-media img {
  width: 100%;
  transition: transform 1200ms var(--ease-out-long);
}

.sample-frame:hover .sample-media img { transform: scale(1.025); }

.sample-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  padding: var(--sp-4) var(--sp-2) var(--sp-1);
}

.sample-tag {
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #04040e;
  background: linear-gradient(120deg, var(--ice), var(--glow));
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.65rem;
}

.sample-name {
  font-size: var(--fs-300);
  font-weight: 500;
}

.sample-spec {
  width: 100%;
  font-size: var(--fs-100);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 700px) {
  .samples-grid { grid-template-columns: 1fr; max-width: 26rem; }
  .sample-frame:nth-child(2) { margin-top: 0; }
}

/* ---------- Pricing monolith --------------------------------------------------- */

.monolith-wrap {
  max-width: 34rem;
  margin: 0 auto;
  perspective: 1200px;
}

.monolith {
  padding: clamp(2rem, 5vw, 3.2rem);
  background: var(--glass-bg-strong);
  transform-style: preserve-3d;
  will-change: transform;
}

/* idle float: `translate` composes with the tilt loop's `transform`,
   so the monolith drifts even while being tilted */
@media (prefers-reduced-motion: no-preference) {
  .monolith {
    animation: monolith-float 9s ease-in-out infinite;
  }
}

@keyframes monolith-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.monolith-halo {
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 40px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(79, 70, 229, 0.35), transparent 70%),
    radial-gradient(50% 45% at 20% 100%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(50% 45% at 85% 90%, rgba(232, 121, 249, 0.20), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.monolith-label {
  font-size: var(--fs-100);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.monolith-price {
  margin-top: var(--sp-5);
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.monolith-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(115deg, #ffffff 10%, var(--ice) 55%, var(--glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(125, 249, 255, 0.25));
}

.monolith-per {
  font-size: var(--fs-300);
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.monolith-anchor {
  margin-top: var(--sp-5);
  color: var(--text-dim);
  font-size: var(--fs-300);
  max-width: 40ch;
}

.monolith-list {
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-3);
}

.monolith-list li {
  position: relative;
  padding-left: 1.7rem;
  font-size: var(--fs-300);
}

.monolith-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--ice), var(--cyan) 60%, var(--indigo));
  box-shadow: 0 0 8px rgba(125, 249, 255, 0.7);
}

.monolith-cta {
  margin-top: var(--sp-6);
  width: 100%;
  justify-content: center;
}

.monolith-fine {
  margin-top: var(--sp-4);
  text-align: center;
  font-size: var(--fs-200);
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* ---------- FAQ ------------------------------------------------------------------ */

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  gap: var(--sp-4);
}

.faq-item { overflow: hidden; }

.faq-heading { font-size: inherit; font-weight: inherit; }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) var(--sp-6);
  text-align: left;
  font-size: var(--fs-400);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--dur-quick) ease;
}

.faq-trigger:hover { color: var(--glow); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 16px; height: 16px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  background: var(--ice);
  box-shadow: 0 0 6px rgba(125, 249, 255, 0.6);
  transition: transform 420ms var(--ease-out-soft), opacity 420ms ease;
}

.faq-icon::after { transform: rotate(90deg); }

.faq-trigger[aria-expanded="true"] .faq-icon::before { transform: rotate(180deg); }
.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: rotate(180deg); opacity: 0; }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 480ms var(--ease-out-soft);
}

.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }

.faq-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.faq-panel-inner p {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--text-dim);
  font-size: var(--fs-300);
  max-width: 56ch;
}

/* no-JS fallback: panels stay open */
body:not(.js-on) .faq-panel { grid-template-rows: 1fr; }

/* ---------- CTA portal -------------------------------------------------------------- */

.portal {
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
}

.portal-stage {
  position: relative;
  max-width: 54rem;
  margin: 0 auto;
  min-height: clamp(30rem, 72vh, 44rem);
  display: grid;
  place-items: center;
}

.portal-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  pointer-events: none;
}

.ring-a {
  width: min(88vw, 34rem);
  height: min(88vw, 34rem);
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(34, 211, 238, 0.9) 40deg,
    rgba(79, 70, 229, 0.8) 130deg,
    transparent 200deg,
    rgba(232, 121, 249, 0.85) 285deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.55));
  animation: ring-spin 14s linear infinite;
}

.ring-b {
  width: min(96vw, 38.5rem);
  height: min(96vw, 38.5rem);
  transform: translate(-50%, -50%);
  background: conic-gradient(
    from 180deg,
    transparent 0deg,
    rgba(165, 243, 252, 0.5) 70deg,
    transparent 160deg,
    rgba(125, 249, 255, 0.6) 250deg,
    transparent 330deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: ring-spin 26s linear infinite reverse;
  opacity: 0.7;
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.portal-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(80vw, 30rem);
  height: min(80vw, 30rem);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, rgba(79, 70, 229, 0.10) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite alternate;
}

@keyframes glow-breathe {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

.portal-core {
  position: relative;
  text-align: center;
  padding: var(--sp-6);
  max-width: 30rem;
}

.portal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-700);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.portal-sub {
  margin-top: var(--sp-5);
  color: var(--text-dim);
  font-size: var(--fs-400);
}

.btn-portal {
  margin-top: var(--sp-6);
  padding: 1.05rem 2.4rem;
}

.portal-fine {
  margin-top: var(--sp-5);
  font-size: var(--fs-100);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Footer --------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(165, 243, 252, 0.08);
  background: rgba(5, 5, 16, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--sp-7) var(--page-pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5) var(--sp-7);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  font-size: var(--fs-200);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--text-dim);
  transition: color var(--dur-quick) ease;
  /* comfortable touch target without changing the visual rhythm */
  display: inline-block;
  padding-block: 0.45rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--glow); }

.footer-credit {
  width: 100%;
  font-size: var(--fs-200);
  color: var(--text-faint);
}

.footer-credit a {
  color: var(--text-dim);
  border-bottom: 1px solid rgba(165, 243, 252, 0.25);
  transition: color var(--dur-quick) ease, border-color var(--dur-quick) ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--glow);
  border-color: var(--glow);
}

/* ---------- Reduced motion --------------------------------------------------------------- */

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

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .js-on [data-reveal],
  .js-on .hero-title .w {
    opacity: 1 !important;
    transform: none !important;
  }

  .drift-line.is-visible { animation: none !important; }

  .scroll-cue-bead { animation: none !important; opacity: 0; }

  .beam-fill { transform: none !important; }
  .beam-pulse { display: none; }
  .station .station-node::after { background: var(--glow); }

  /* cards go opaque; the sky holds still, so let them sit solid */
  .glass-card {
    background: #0a0e2c;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .portal-ring { animation: none !important; }
  .portal-glow { animation: none !important; }

  .comet-stage { display: none; }
  .grain-veil { opacity: 0.35; }
}

/* JS-driven flag mirrors the media query so scripts can force the same state */
body.reduced-motion .glass-card {
  background: #0a0e2c;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.reduced-motion .comet-stage { display: none; }

/* ---------- Small screens ------------------------------------------------------------------ */

@media (max-width: 480px) {
  :root { --page-pad: 1.15rem; }

  .hero-actions .btn { width: 100%; justify-content: center; }

  .header-inner { padding-top: 0.7rem; padding-bottom: 0.7rem; }

  .faq-trigger { padding: var(--sp-4) var(--sp-5); }
  .faq-panel-inner p { padding: 0 var(--sp-5) var(--sp-4); }
}
