/* Fosfor — premium landing
   Layout: cinematic full-bleed hero around the orb, then a pinned "one question" story,
   a framed product film, a bento of features, and quiet editorial sections below. */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --bg: #04050a;
  --bg-2: #080a14;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #eef0fa;
  --text-2: rgba(226, 230, 255, 0.64);
  --text-3: rgba(226, 230, 255, 0.4);
  --accent: #7c8cff;
  --live: #5be1a0;
  --pink: #ff6fa8;
  --iris: linear-gradient(100deg, #5bc8ff 0%, #8a7bff 30%, #d38bff 55%, #ff7fae 78%, #ffb27a 100%);
  --iris-conic: conic-gradient(from var(--spin) at 45% 55%, #3fa9ff, #6a5cff, #c86bff, #ff6fa8, #ff9a4d, #3fe0d0, #3fa9ff);
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Geist Pixel Circle", ui-monospace, "SF Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --wrap: 1180px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid rgba(160, 175, 255, 0.9);
  outline-offset: 3px;
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.iris-text {
  font-style: normal;
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: irisShift 9s ease-in-out infinite alternate;
}

@keyframes irisShift {
  to { background-position: 100% 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.btn .apple {
  width: 18px;
  height: 18px;
  margin-top: -2px;
}

.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 15.5px;
}

.btn-light {
  background: linear-gradient(180deg, #ffffff, #dfe3ff);
  color: #070812;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.4) inset,
    0 10px 30px -8px rgba(124, 140, 255, 0.6),
    0 0 40px -6px rgba(124, 140, 255, 0.45);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 16px 40px -8px rgba(124, 140, 255, 0.75),
    0 0 60px -6px rgba(200, 107, 255, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  color: var(--text);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  top: calc(14px + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none;
  animation: headerIn 0.9s var(--ease) both;
}

.header-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 860px;
  height: 56px;
  padding: 0 9px 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.site-header.is-scrolled .header-pill {
  background: rgba(10, 12, 24, 0.66);
  border-color: var(--line);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #05060f;
  box-shadow: 0 0 0 1px rgba(160, 180, 255, 0.3), 0 0 18px rgba(80, 110, 255, 0.45);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-cta {
  margin-left: 6px;
}

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  margin-left: -8px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.35s var(--ease);
}

.burger span:nth-child(1) { transform: translateY(-3.5px); }
.burger span:nth-child(2) { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 3, 8, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease both;
}

.mobile-menu {
  position: fixed;
  z-index: 45;
  top: calc(80px + env(safe-area-inset-top, 0px));
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 26px;
  border: 1px solid var(--line-2);
  background: rgba(12, 14, 28, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  animation: menuIn 0.45s var(--ease) both;
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: linkIn 0.45s var(--ease) forwards;
  animation-delay: calc(0.06s + var(--i, 0) * 0.04s);
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu .menu-cta {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff, #dfe3ff);
  color: #070812;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 0 clamp(64px, 10vh, 110px);
  overflow: hidden;
  isolation: isolate;
}

.hero-haze {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(50% 45% at 50% 34%, rgba(70, 100, 255, 0.26), transparent 70%),
    radial-gradient(40% 40% at 12% 85%, rgba(200, 107, 255, 0.1), transparent 70%),
    radial-gradient(40% 40% at 90% 80%, rgba(63, 224, 208, 0.07), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg) 100%);
}

.hero-dust {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.hero-stage {
  position: relative;
  z-index: -1;
  margin-bottom: clamp(28px, 5vh, 52px);
}

/* The orb (hero) */
.orb {
  --s: clamp(180px, 27vh, 320px);
  position: relative;
  width: var(--s);
  height: var(--s);
  animation: orbIn 1.6s var(--ease) 0.1s both, float 10s ease-in-out 1.7s infinite;
}

.orb-halo {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 110, 255, 0.38) 0%, rgba(120, 80, 255, 0.12) 36%, transparent 64%);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}

.orb-sphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #1c2350 0%, #0b0e22 52%, #05060f 100%);
  box-shadow:
    inset 0 0 calc(var(--s) * 0.1) rgba(110, 130, 255, 0.55),
    inset 0 0 0 1.5px rgba(170, 185, 255, 0.45),
    0 0 calc(var(--s) * 0.35) rgba(70, 100, 255, 0.4);
}

.orb-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 38%;
  border-radius: calc(var(--s) * 0.14);
  transform: translate(-50%, -50%);
  background: var(--iris-conic);
  filter: blur(calc(var(--s) * 0.04)) saturate(1.1);
  opacity: 0.7;
  animation: spin 14s linear infinite;
  transition: width 0.9s var(--ease), height 0.9s var(--ease), border-radius 0.9s var(--ease), opacity 0.6s ease, filter 0.6s ease;
}

.orb-warm {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 46% 62%, rgba(255, 140, 90, 0.55) 0%, transparent 46%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.orb-grid,
.face-grid,
.mini-grid,
.final-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, transparent 42%, rgba(5, 6, 15, 0.78) 58%);
  background-size: 6px 6px;
  transition: opacity 0.8s ease;
}

.orb-eyes {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: calc(var(--s) * 0.085);
  transform: translate(calc(-50% + var(--look-x, 0px)), calc(-50% + var(--look-y, 0px)));
  transition: transform 0.6s var(--ease);
}

.orb-eye {
  width: calc(var(--s) * 0.05);
  height: calc(var(--s) * 0.13);
  border-radius: 999px;
  background: #fff;
  box-shadow:
    0 0 calc(var(--s) * 0.04) rgba(255, 255, 255, 0.9),
    0 0 calc(var(--s) * 0.1) rgba(150, 190, 255, 0.75);
  transition: transform 0.09s ease, height 0.5s var(--ease);
}

.orb.blink .orb-eye {
  transform: scaleY(0.1);
}

.orb-spec {
  position: absolute;
  left: 16%;
  top: 7%;
  width: 50%;
  height: 26%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
  transform: rotate(-24deg);
}

.orb[data-state="heard"] .orb-core {
  width: 74%;
  height: 52%;
  opacity: 0.95;
}

.orb[data-state="answering"] .orb-core {
  width: 130%;
  height: 130%;
  border-radius: 50%;
  opacity: 1;
  filter: blur(calc(var(--s) * 0.09)) saturate(1.3);
}

.orb[data-state="answering"] .orb-warm { opacity: 1; }
.orb[data-state="answering"] .orb-grid { opacity: 0; }
.orb[data-state="answering"] .orb-halo { transform: scale(1.1); }

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 10px var(--live);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(44px, min(7vw, 10.5vh), 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}

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

.hero-sub {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(16px, 1.35vw, 18.5px);
  line-height: 1.6;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 22px;
  height: 34px;
  margin-left: -11px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--text-2);
  animation: cue 2s var(--ease-io) infinite;
}

/* ---------- Numbers ---------- */
.numbers {
  position: relative;
  padding: clamp(40px, 7vw, 80px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(124, 140, 255, 0.035), transparent);
}

.numbers-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.num {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px clamp(14px, 2.4vw, 32px);
  border-left: 1px solid var(--line);
  min-width: 0;
}

.num:first-child {
  border-left: 0;
  padding-left: 0;
}

.num-value {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.num-value small {
  margin-left: 4px;
  font-size: 0.42em;
  letter-spacing: -0.02em;
  color: var(--text-2);
}

.num-label {
  max-width: 22ch;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}

/* ---------- Story (pinned) ---------- */
.story {
  position: relative;
  overflow-x: clip;
  padding: clamp(60px, 10vw, 140px) 0 clamp(40px, 6vw, 80px);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 96px);
}

.story-sticky {
  position: relative;
}

.story-stage {
  position: sticky;
  top: calc(50vh - 220px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.story-glow {
  position: absolute;
  inset: -20% -10%;
  border-radius: 50%;
  filter: blur(20px);
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 45%, rgba(80, 110, 255, 0.22), transparent 70%);
  transition: background 0.8s ease;
}

.story[data-step="2"] .story-glow,
.story[data-step="3"] .story-glow {
  background: radial-gradient(50% 50% at 50% 45%, rgba(200, 107, 255, 0.22), transparent 70%);
}

.panel {
  position: relative;
  width: min(460px, 100%);
  margin: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(22, 25, 44, 0.94), rgba(10, 12, 24, 0.96));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 40px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 80px -30px rgba(124, 140, 255, 0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 10px 18px;
}

.mini-orb {
  --s: 40px;
  position: relative;
  flex-shrink: 0;
  width: var(--s);
  height: var(--s);
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #1a2046 0%, #0b0e22 55%, #05060f 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.45), 0 0 18px rgba(80, 110, 255, 0.5);
}

.mini-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  height: 40%;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  background: var(--iris-conic);
  filter: blur(2px);
  opacity: 0.75;
  animation: spin 10s linear infinite;
  transition: all 0.7s var(--ease);
}

.mini-grid {
  background-size: 3px 3px;
}

.mini-eyes {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: 4px;
  transform: translate(-50%, -50%);
}

.mini-eyes i {
  width: 2.5px;
  height: 6px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 4px #fff;
}

.panel[data-step="1"] .mini-core { width: 80%; height: 56%; opacity: 1; }
.panel[data-step="2"] .mini-core { width: 130%; height: 130%; border-radius: 50%; filter: blur(3px); opacity: 1; }
.panel[data-step="2"] .mini-grid { opacity: 0; }

.panel-name {
  display: grid;
  line-height: 1.3;
}

.panel-name b {
  font-size: 15px;
  font-weight: 600;
}

.panel-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-2);
}

.panel-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.panel[data-step="1"] .panel-state i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.panel[data-step="2"] .panel-state i { background: var(--pink); box-shadow: 0 0 8px var(--pink); }

.panel-btns {
  display: inline-flex;
  gap: 8px;
  margin-left: auto;
}

.panel-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.panel-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.panel-body {
  display: grid;
  gap: 8px;
  padding: 4px 18px 20px;
}

.panel-who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.panel-chip {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid rgba(124, 140, 255, 0.55);
  background: rgba(124, 140, 255, 0.14);
  color: #c9d0ff;
  letter-spacing: 0.07em;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}

.panel:not([data-step="0"]) .panel-chip {
  opacity: 1;
  transform: none;
}

.panel-q {
  min-height: 3.1em;
  font-size: 14.5px;
  line-height: 1.55;
  color: #b9bccb;
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  vertical-align: middle;
}

.wave i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--text-3);
  animation: wave 1s ease-in-out infinite;
}

.wave i:nth-child(2) { animation-delay: 0.12s; }
.wave i:nth-child(3) { animation-delay: 0.24s; }
.wave i:nth-child(4) { animation-delay: 0.36s; }
.wave i:nth-child(5) { animation-delay: 0.48s; }

.panel:not([data-step="0"]) .wave {
  display: none;
}

.panel-answer {
  min-height: 8.6em;
  margin-top: 6px;
  padding: 15px 17px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text);
}

.caret {
  display: none;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--pink);
  animation: caretBlink 1s steps(1) infinite;
}

.panel[data-step="2"] .caret {
  display: inline-block;
}

.panel-grip {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid rgba(160, 175, 255, 0.5);
  border-bottom: 1.5px solid rgba(160, 175, 255, 0.5);
  border-bottom-right-radius: 4px;
}

.story-caption {
  font-size: 13px;
  color: var(--text-3);
}

.story-clock {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-step {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  opacity: 0.28;
  transition: opacity 0.6s ease;
}

.story-step.is-active {
  opacity: 1;
}

.step-index {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.step-index::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.step-title {
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.step-text {
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- Section scaffolding ---------- */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 150px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head.center {
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  font-size: clamp(36px, 4.8vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-sub {
  max-width: 56ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ---------- Film ---------- */
.film {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
}

.film::before {
  content: "";
  position: absolute;
  inset: 20% 0 0;
  z-index: -1;
  background: radial-gradient(45% 50% at 50% 50%, rgba(80, 110, 255, 0.2), transparent 70%);
}

.film-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: #05060c;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.025),
    0 60px 140px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -40px rgba(124, 140, 255, 0.55);
}

.film-bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.film-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.film-bar i:nth-child(1) { background: #ff5f57; }
.film-bar i:nth-child(2) { background: #febc2e; }
.film-bar i:nth-child(3) { background: #28c840; }

.film-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #05060c;
}

.film-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 12, 24, 0.6);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.film-toggle:hover {
  background: rgba(30, 34, 60, 0.8);
  transform: scale(1.05);
}

.film-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.film-toggle .i-play { display: none; }
.film-frame.is-paused .film-toggle .i-play { display: block; }
.film-frame.is-paused .film-toggle .i-pause { display: none; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(124, 140, 255, 0.07), transparent 55%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.5s var(--ease);
}

.tile:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}

.tile-title {
  margin-top: auto;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.tile-text {
  margin-top: 8px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.tile-faces { grid-column: span 4; min-height: 380px; }
.tile-speed { grid-column: span 2; }
.tile-bot { grid-column: span 2; }
.tile-lang { grid-column: span 2; }
.tile-native { grid-column: span 2; }
.tile-private { grid-column: span 6; flex-direction: row; align-items: center; gap: 24px; min-height: 0; }
.tile-private .tile-title { margin-top: 0; }

.faces {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  padding: 18px 0 10px;
}

.face {
  --s: clamp(76px, 9vw, 118px);
  position: relative;
  width: var(--s);
  height: var(--s);
}

.face::before {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 110, 255, 0.3) 0%, transparent 62%);
}

.face-sphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #1a2046 0%, #0b0e22 55%, #05060f 100%);
  box-shadow:
    inset 0 0 calc(var(--s) * 0.09) rgba(110, 130, 255, 0.55),
    inset 0 0 0 1.5px rgba(160, 180, 255, 0.4),
    0 0 calc(var(--s) * 0.28) rgba(70, 100, 255, 0.3);
}

.face-grid {
  background-size: 5px 5px;
}

.face-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 36%;
  border-radius: calc(var(--s) * 0.13);
  transform: translate(-50%, -50%);
  background: var(--iris-conic);
  filter: blur(calc(var(--s) * 0.04));
  animation: spin 12s linear infinite;
}

.face-eyes {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: calc(var(--s) * 0.12);
  transform: translate(-50%, -50%);
}

.face-eyes i {
  width: calc(var(--s) * 0.05);
  height: calc(var(--s) * 0.13);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 calc(var(--s) * 0.04) rgba(255, 255, 255, 0.9), 0 0 calc(var(--s) * 0.1) rgba(150, 190, 255, 0.7);
  animation: faceBlink 4.2s ease-in-out infinite;
}

.is-listening .face-core { opacity: 0.55; }
.is-heard .face-core { width: 72%; height: 50%; }
.is-heard .face-eyes { animation: faceLook 3.6s ease-in-out infinite; }
.is-answering .face-core { width: 130%; height: 130%; border-radius: 50%; filter: blur(calc(var(--s) * 0.09)) saturate(1.3); }
.is-answering .face-grid { opacity: 0; }
.is-answering .face-sphere { box-shadow: inset 0 0 0 1.5px rgba(200, 210, 255, 0.5), 0 0 calc(var(--s) * 0.4) rgba(120, 110, 255, 0.5); }
.is-paused .face-core { opacity: 0.32; filter: blur(calc(var(--s) * 0.05)) saturate(0.6); animation-duration: 30s; }
.is-paused .face-eyes i { width: calc(var(--s) * 0.06); height: calc(var(--s) * 0.035); animation: none; }

.face-labels {
  display: flex;
  justify-content: space-around;
  margin: 8px 0 26px;
  padding: 0;
  list-style: none;
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.face-labels li {
  width: clamp(76px, 9vw, 118px);
  text-align: center;
}

.speed-readout {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.speed-unit {
  font-size: 0.4em;
  color: var(--text-2);
  letter-spacing: -0.02em;
}

.speed-bar {
  height: 4px;
  margin-bottom: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.speed-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--iris);
  transform-origin: left;
  transform: scaleX(0);
}

.tile-speed.is-visible .speed-bar span {
  animation: fill 1s var(--ease-io) 0.4s forwards;
}

.roster {
  display: grid;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.roster li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 13.5px;
  color: var(--text);
}

.roster em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-3);
}

.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

.avatar.a1 { background: linear-gradient(135deg, #5b6bff, #9a5bff); }
.avatar.a2 { background: linear-gradient(135deg, #2bb5a0, #3f8cff); }
.avatar.a3 { background: linear-gradient(135deg, #ff7f9e, #ffb36b); font-size: 8.5px; }

.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.lang {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--text-2);
}

.lang.is-on {
  border-color: rgba(124, 140, 255, 0.6);
  background: rgba(124, 140, 255, 0.16);
  color: #fff;
}

.menubar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  margin-bottom: 28px;
  padding: 0 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: var(--text-2);
}

.mb-apple {
  width: 11px;
  height: 13px;
  border-radius: 5px 5px 6px 6px;
  background: var(--text-2);
}

.mb-gap {
  flex: 1;
}

.mb-fosfor {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(124, 140, 255, 0.25);
}

.mb-fosfor img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.vault {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.vault svg {
  width: 26px;
  height: 26px;
}

/* ---------- Audience ---------- */
.who-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.who {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 28px clamp(14px, 2vw, 28px) 8px;
  border-left: 1px solid var(--line);
}

.who:first-child {
  border-left: 0;
  padding-left: 0;
}

.who-n {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--text-3);
}

.who-title {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.who-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.who-q {
  margin-top: 10px;
  padding-left: 14px;
  border-left: 2px solid transparent;
  border-image: var(--iris) 1;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

/* ---------- Privacy ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.privacy .section-title {
  margin: 18px 0;
  font-size: clamp(34px, 3.9vw, 54px);
}

.ledger {
  margin: 0;
  padding: 8px 28px;
  list-style: none;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ledger li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-2);
}

.ledger li:last-child {
  border-bottom: 0;
}

.ledger-k {
  font-size: 15px;
  color: var(--text-2);
}

.ledger-v {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--live);
  text-align: right;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
}

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(var(--text), var(--text)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 10px no-repeat;
  transition: transform 0.4s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 60ch;
  padding: 0 0 26px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- Final CTA ---------- */
.final {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(100px, 14vw, 190px) 0 clamp(90px, 12vw, 160px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(45% 55% at 50% 100%, rgba(124, 110, 255, 0.35), transparent 70%);
}

.final-orb {
  --s: min(1100px, 150vw);
  position: absolute;
  left: 50%;
  top: calc(100% - 180px);
  z-index: -1;
  width: var(--s);
  height: var(--s);
  margin-left: calc(var(--s) / -2);
}

.final-sphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 4%, #1c2350 0%, #0b0e22 22%, #05060f 50%);
  box-shadow:
    inset 0 0 0 1.5px rgba(170, 185, 255, 0.45),
    0 0 120px rgba(70, 100, 255, 0.45);
}

.final-core {
  position: absolute;
  left: 50%;
  top: 70px;
  width: 520px;
  height: 160px;
  border-radius: 80px;
  transform: translate(-50%, -50%);
  background: var(--iris-conic);
  filter: blur(36px);
  opacity: 0.8;
  animation: spin 16s linear infinite;
}

.final-eyes {
  position: absolute;
  left: 50%;
  top: 58px;
  display: flex;
  gap: 36px;
  transform: translate(-50%, -50%);
}

.final-eyes i {
  width: 16px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.9), 0 0 36px rgba(150, 190, 255, 0.7);
  animation: faceBlink 5s ease-in-out infinite;
}

.final-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
}

.final-title {
  font-size: clamp(44px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.final-sub {
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-3);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 0 calc(30px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.footer-inner .brand {
  margin-right: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-right: auto;
  font-size: 14px;
  color: var(--text-2);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 13px;
  color: var(--text-3);
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease),
    filter 1s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Keyframes ---------- */
@keyframes spin { to { --spin: 360deg; } }

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

@keyframes orbIn {
  from { opacity: 0; transform: scale(0.86); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes headerIn {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@keyframes caretBlink { 50% { opacity: 0; } }

@keyframes faceBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes faceLook {
  0%, 20% { translate: 0 0; }
  35%, 70% { translate: calc(var(--s) * 0.06) calc(var(--s) * 0.03); }
  85%, 100% { translate: 0 0; }
}

@keyframes fill { to { transform: scaleX(1); } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes linkIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: block; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-faces { grid-column: span 2; min-height: 0; }
  .tile-speed,
  .tile-bot,
  .tile-lang,
  .tile-native { grid-column: span 1; }
  .tile-private { grid-column: span 2; }

  .who-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who:nth-child(3) { border-left: 0; padding-left: 0; }
  .who:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 20px; }

  .privacy-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid .section-head { margin-bottom: 0; }
}

@media (max-width: 820px) {
  .numbers-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }

  /* Story: panel pinned on top, steps scroll underneath */
  .story-grid { display: block; }
  .story-sticky { display: contents; }
  .story-stage {
    top: 0;
    z-index: 2;
    padding: calc(84px + env(safe-area-inset-top, 0px)) 0 14px;
    background: linear-gradient(180deg, var(--bg) 82%, transparent);
  }
  .story-caption { display: none; }
  .panel { width: min(420px, 100%); }
  .panel-answer { min-height: 7.4em; font-size: 14.5px; }
  .story-step { min-height: 62vh; justify-content: flex-start; padding-top: 24px; }
}

@media (max-width: 620px) {
  .header-cta { display: none; }
  .header-pill { height: 54px; }

  .hero { padding-bottom: 72px; }
  .orb { --s: min(56vw, 29vh); }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { display: none; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-faces,
  .tile-speed,
  .tile-bot,
  .tile-lang,
  .tile-native,
  .tile-private { grid-column: span 1; }
  .tile-private { flex-direction: column; align-items: flex-start; }
  .tile { padding: 24px; }
  .faces { gap: 6px; }
  .face { --s: 64px; }
  .face-labels { font-size: 10.5px; }
  .face-labels li { width: 64px; }

  .who-row { grid-template-columns: minmax(0, 1fr); }
  .who { border-left: 0; padding-left: 0; }
  .who + .who { border-top: 1px solid var(--line); margin-top: 18px; }

  .ledger { padding: 4px 20px; }
  .film-frame { border-radius: 16px; }
  .film-bar { padding: 10px 12px; }

  .final-orb { --s: 170vw; top: calc(100% - 130px); }
  .final-core { width: 300px; height: 110px; top: 50px; }
  .final-eyes { top: 44px; gap: 24px; }
  .final-eyes i { width: 11px; height: 30px; }
  .final-copy { margin-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .tile-speed .speed-bar span { transform: none; }
}

/* =====================================================================
   Framer-style layer: grain, aurora, glass, split text, cursor, loader
   ===================================================================== */
:root {
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-line: rgba(255, 255, 255, 0.09);
  --blur: 28px;
}

body {
  background: transparent;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-title .serif {
  letter-spacing: -0.02em;
  padding-right: 0.06em;
}

/* Aurora: big drifting blurred light behind everything */
.aurora {
  position: fixed;
  inset: -10vmax;
  z-index: -5;
  pointer-events: none;
  opacity: 0.8;
}

.aurora i {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora .b1 { width: 52vmax; height: 52vmax; left: 6%; top: -6%; background: radial-gradient(circle, rgba(63, 110, 255, 0.42), rgba(63, 110, 255, 0.12) 40%, transparent 70%); animation: drift1 34s ease-in-out infinite alternate; }
.aurora .b2 { width: 44vmax; height: 44vmax; right: -4%; top: 18%; background: radial-gradient(circle, rgba(170, 90, 255, 0.32), rgba(170, 90, 255, 0.08) 40%, transparent 70%); animation: drift2 41s ease-in-out infinite alternate; }
.aurora .b3 { width: 40vmax; height: 40vmax; left: 20%; bottom: -10%; background: radial-gradient(circle, rgba(255, 100, 160, 0.2), rgba(255, 100, 160, 0.05) 40%, transparent 70%); animation: drift3 47s ease-in-out infinite alternate; }
.aurora .b4 { width: 36vmax; height: 36vmax; right: 10%; bottom: 4%; background: radial-gradient(circle, rgba(60, 220, 200, 0.14), transparent 70%); animation: drift1 53s ease-in-out infinite alternate-reverse; }

@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, 12vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(12vmax, -14vmax) scale(1.2); } }

/* Film grain over everything */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  animation: grain 0.9s steps(6) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Glass surfaces */
.tile,
.ledger,
.panel,
.film-frame,
.kicker,
.mobile-menu {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
}

.tile,
.ledger {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(124, 140, 255, 0.09), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}

.panel {
  background: linear-gradient(180deg, rgba(26, 30, 56, 0.62), rgba(10, 12, 26, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 40px 100px -20px rgba(0, 0, 0, 0.8),
    0 0 90px -30px rgba(124, 140, 255, 0.6);
}

/* Spotlight that follows the pointer on glass tiles */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, -500px) var(--my, -500px), rgba(160, 175, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tile:hover::after {
  opacity: 1;
}

.numbers {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Chapter labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ch-n {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(124, 140, 255, 0.4);
  font-size: 11px;
  color: var(--text);
}

.story-intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 8vh;
  margin-bottom: -6vh;
}

/* Split-text reveal */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  padding: 0.06em 0.04em 0.12em;
  margin: -0.06em -0.04em -0.12em;
  vertical-align: top;
}

[data-split] .wi {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  filter: blur(10px);
  opacity: 0;
  transition:
    transform 1.1s var(--ease),
    filter 1.1s var(--ease),
    opacity 0.9s ease;
  transition-delay: calc(var(--wi, 0) * 55ms + var(--d0, 0ms));
}

[data-split].is-in .wi {
  transform: none;
  filter: none;
  opacity: 1;
}

/* Gradient text needs the gradient on each word once split */
[data-split] .iris-text .wi,
[data-split] .wi.iris-text {
  background: var(--iris);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: irisShift 9s ease-in-out infinite alternate;
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.mq-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee:hover .mq-track {
  animation-play-state: paused;
}

.mq-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.mq-item {
  padding: 0 clamp(18px, 2.4vw, 34px);
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 74px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(238, 240, 250, 0.9);
}

.mq-item .serif {
  color: transparent;
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
}

.mq-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--iris-conic);
  box-shadow: 0 0 18px rgba(124, 140, 255, 0.8);
  animation: spin 6s linear infinite;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Custom cursor (fine pointers only, enabled by JS) */
.cursor {
  display: none;
}

.has-cursor .cursor {
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.has-cursor .cursor.is-live {
  opacity: 1;
}

.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor summary {
  cursor: none;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #fff;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
}

.cursor.is-hover .cursor-ring {
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  background: rgba(160, 175, 255, 0.12);
  border-color: rgba(190, 200, 255, 0.55);
}

.cursor.is-down .cursor-ring {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
}

/* Chapter indicator */
.chapter {
  position: fixed;
  left: max(24px, env(safe-area-inset-left, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text-3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.chapter.is-on {
  opacity: 1;
}

.chapter-n {
  color: var(--text);
}

.chapter-name {
  margin-left: 10px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-2);
}

/* Begin again */
.begin-again {
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.25s ease;
}

.begin-again:hover {
  color: var(--text);
}

/* Preloader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: #04050a;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
}

.js .loader {
  display: flex;
}

.loader.is-done {
  clip-path: inset(0 0 100% 0);
}

.loader-orb {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #1a2046 0%, #0b0e22 55%, #05060f 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.45), 0 0 50px rgba(80, 110, 255, 0.55);
}

.loader-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  height: 38%;
  border-radius: 10px;
  transform: translate(-50%, -50%);
  background: var(--iris-conic);
  filter: blur(4px);
  animation: spin 3s linear infinite;
}

.loader-eyes {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  gap: 7px;
  transform: translate(-50%, -50%);
}

.loader-eyes i {
  width: 4px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 6px #fff;
  animation: faceBlink 1.4s ease-in-out infinite;
}

.loader-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
  color: var(--text-2);
}

.loader-count {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Hero orb parallax handle */
.hero-stage {
  will-change: transform, filter, opacity;
}

/* Mobile adjustments for the new layer */
@media (max-width: 820px) {
  .story-stage {
    background: linear-gradient(180deg, rgba(4, 5, 10, 0.86) 70%, transparent);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    -webkit-mask-image: linear-gradient(180deg, #000 86%, transparent);
    mask-image: linear-gradient(180deg, #000 86%, transparent);
  }

  .story-intro {
    padding-top: 40px;
    margin-bottom: 0;
  }

  .chapter {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .loader {
    display: none !important;
  }

  [data-split] .wi {
    transform: none;
    filter: none;
    opacity: 1;
  }

  .mq-track {
    animation: none;
  }
}

/* Hold the hero entrance until the preloader lifts */
.is-loading .hero .reveal.is-visible {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(8px);
}

.is-loading .orb {
  animation-play-state: paused;
}
