:root {
  color-scheme: dark;
  --night: #07152f;
  --night-soft: #101b3d;
  --ink: #f7fbff;
  --muted: #afc6d3;
  --line: rgba(183, 232, 245, 0.16);
  --violet: #a995ff;
  --cyan: #75e9ff;
  --mint: #91ffd0;
  --gold: #ffe6a5;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 16%, rgba(117, 233, 255, 0.08), transparent 30%),
    var(--night);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 5px;
  border-radius: 5px;
}

.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--night);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(7, 21, 47, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  text-decoration: none;
}
.brand img, .footer-brand img, .finale > img {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { letter-spacing: -0.03em; }
.brand small { margin-top: 4px; color: var(--mint); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: #d5e9f0; font-size: 0.88rem; text-decoration: none; }
nav a:hover { color: var(--mint); }
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d9edf3;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { border-color: rgba(145, 255, 208, 0.55); color: var(--mint); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  min-height: 100svh;
  padding: 120px clamp(24px, 7vw, 116px) 80px;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 11, 28, 0.05), rgba(7, 21, 47, 0.85)),
    radial-gradient(circle at 72% 44%, rgba(119, 233, 255, 0.12), transparent 31%);
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(transparent, var(--night));
}
.hero-copy { position: relative; z-index: 3; min-width: 0; max-width: 760px; }
.eyebrow, .chapter-kicker {
  margin: 0 0 17px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 790px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}
.hero h1 em {
  display: block;
  color: transparent;
  background: linear-gradient(95deg, var(--cyan), var(--mint) 45%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 500;
}
.hero-lead { max-width: 650px; margin: 28px 0 0; color: #c0d5df; font-size: clamp(1.05rem, 1.8vw, 1.32rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 35px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #07172e; background: linear-gradient(120deg, var(--cyan), var(--mint)); box-shadow: 0 15px 40px rgba(117, 233, 255, 0.16); }
.button-ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.035); color: #d5e7ed; }

.hero-orbit { position: relative; z-index: 2; width: min(38vw, 560px); aspect-ratio: 1; justify-self: end; }
.orbit, .core-mark, .orbit-word { position: absolute; }
.orbit { inset: 8%; border: 1px solid rgba(117, 233, 255, 0.24); border-radius: 50%; box-shadow: inset 0 0 70px rgba(117, 233, 255, 0.03); }
.orbit:before, .orbit:after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}
.orbit:before { left: 12%; top: 17%; }
.orbit:after { right: 5%; bottom: 28%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.orbit-large { animation: turn 28s linear infinite; }
.orbit-small { inset: 24%; border-color: rgba(169, 149, 255, 0.34); animation: turn 20s linear infinite reverse; }
.core-mark { inset: 50% auto auto 50%; transform: translate(-50%, -50%); padding: 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 27px; background: rgba(255,255,255,.09); box-shadow: 0 0 90px rgba(117,233,255,.16); backdrop-filter: blur(12px); }
.core-mark img { border-radius: 14px; }
.orbit-word { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #d8ecf3; background: rgba(7,21,47,.75); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.word-human { left: -3%; top: 31%; }
.word-ai { right: 10%; top: 8%; }
.word-view { right: -4%; bottom: 19%; }
.aurora { position: absolute; z-index: -2; width: 680px; height: 680px; border-radius: 50%; filter: blur(90px); opacity: .12; }
.aurora-one { top: -280px; left: 20%; background: var(--violet); }
.aurora-two { right: -240px; bottom: -250px; background: var(--mint); }
.stars { position: absolute; inset: 0; z-index: -1; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.9); animation: twinkle var(--duration, 4s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.stars.alive .star { animation-duration: calc(var(--duration, 4s) * .42); }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 10px; transform: translateX(-50%); color: #7395a5; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { display: block; width: 28px; height: 1px; background: #7395a5; }

.opening { padding: 140px clamp(24px, 8vw, 140px); }
.chapter-number { margin-bottom: 36px; color: var(--violet); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.opening-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 9vw, 150px); align-items: start; }
.opening h2, .chapter h2, .promise h2, .finale h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; }
.opening h2 { font-size: clamp(2.6rem, 5vw, 5.7rem); }
.opening-grid > div { color: #bed2dc; font-size: 1.04rem; }
.dropcap:first-letter { float: left; margin: 9px 11px 0 0; color: var(--mint); font-family: var(--serif); font-size: 4.7rem; line-height: .67; }

.story-path { position: relative; padding: 30px clamp(24px, 8vw, 140px) 110px; }
.path-line { position: absolute; left: 50%; top: 0; bottom: 30px; width: 1px; background: var(--line); }
.path-line i { display: block; width: 100%; height: 0; background: linear-gradient(var(--violet), var(--cyan), var(--mint)); box-shadow: 0 0 12px rgba(117,233,255,.5); }
.chapter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 10vw, 150px); align-items: center; min-height: 720px; padding: 80px 0; }
.chapter-reverse .chapter-art { order: 2; }
.chapter h2 { font-size: clamp(2.5rem, 4.6vw, 5.1rem); }
.chapter-copy > p:not(.chapter-kicker) { color: #b9ced8; font-size: 1.05rem; }
.chapter blockquote { margin: 28px 0 0; padding: 3px 0 3px 22px; border-left: 2px solid var(--mint); color: #e1f1f5; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.chapter-art { position: relative; min-height: 470px; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(145deg, rgba(20,39,78,.9), rgba(6,20,43,.86)); box-shadow: var(--shadow); overflow: hidden; }
.chapter-art > p { position: absolute; right: 18px; bottom: 11px; margin: 0; color: #7898a7; font-size: .66rem; }
.art-sparks { background: radial-gradient(circle at 50% 50%, rgba(117,233,255,.13), transparent 38%), linear-gradient(145deg, #101e45, #07152f); }
.art-sparks:before, .art-sparks:after { content: ""; position: absolute; left: 50%; top: 50%; border: 1px solid rgba(117,233,255,.16); border-radius: 50%; transform: translate(-50%,-50%); }
.art-sparks:before { width: 210px; height: 210px; }
.art-sparks:after { width: 340px; height: 340px; }
.art-sparks span { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 40px var(--cyan); }
.art-sparks span:nth-child(1) { left: 49%; top: 46%; width: 38px; height: 38px; background: var(--mint); }
.art-sparks span:nth-child(2) { left: 20%; top: 28%; }
.art-sparks span:nth-child(3) { right: 21%; top: 23%; width: 12px; height: 12px; background: var(--violet); }
.art-sparks span:nth-child(4) { left: 28%; bottom: 17%; width: 10px; height: 10px; background: var(--gold); }
.art-sparks span:nth-child(5) { right: 16%; bottom: 25%; width: 15px; height: 15px; }
.contour-map { display: grid; place-items: center; }
.constellation { position: relative; width: 72%; aspect-ratio: 1; }
.node, .beam { position: absolute; display: block; }
.node { z-index: 2; width: 22px; height: 22px; border: 5px solid #173050; border-radius: 50%; background: var(--mint); box-shadow: 0 0 30px rgba(145,255,208,.6); }
.node-one { left: 46%; top: 43%; width: 34px; height: 34px; background: var(--cyan); }
.node-two { left: 5%; top: 18%; }
.node-three { right: 7%; top: 11%; background: var(--violet); }
.node-four { left: 15%; bottom: 7%; background: var(--gold); }
.node-five { right: 10%; bottom: 15%; }
.beam { z-index: 1; height: 1px; background: linear-gradient(90deg, rgba(117,233,255,.1), rgba(117,233,255,.9), rgba(117,233,255,.1)); transform-origin: left center; }
.beam-one { left: 16%; top: 25%; width: 42%; transform: rotate(28deg); }
.beam-two { left: 52%; top: 49%; width: 45%; transform: rotate(-39deg); }
.beam-three { left: 27%; top: 79%; width: 40%; transform: rotate(-50deg); }
.beam-four { left: 53%; top: 51%; width: 40%; transform: rotate(35deg); }
.values-list { display: grid; gap: 10px; padding: 0; margin: 30px 0 0; list-style: none; }
.values-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.values-list span { color: var(--violet); font-size: .72rem; letter-spacing: .1em; }
.dashboard-window { padding: 24px; }
.window-bar { display: flex; gap: 7px; padding: 4px 0 19px; }
.window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ffbe78; }
.window-bar i:nth-child(2) { background: var(--mint); }
.window-bar i:nth-child(3) { background: var(--violet); }
.window-content { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: auto auto 1fr; gap: 14px; min-height: 365px; padding: 26px; border-radius: 22px; background: #eff8f9; }
.mini-title, .mini-subtitle, .status-card, .calm-line { border-radius: 10px; }
.mini-title { grid-column: 1 / -1; width: 42%; height: 20px; background: #163047; }
.mini-subtitle { grid-column: 1 / -1; width: 64%; height: 9px; background: #bdd1d8; }
.status-card { display: grid; align-content: end; gap: 9px; min-height: 110px; padding: 17px; border: 1px solid #d2e2e6; background: #fff; }
.status-main { grid-row: span 2; min-height: 235px; background: linear-gradient(150deg, #eefcff, #fff); }
.status-card b { width: 37px; height: 37px; border-radius: 12px; background: #8fffd0; }
.status-card span { display: block; width: 74%; height: 8px; border-radius: 6px; background: #c6d9de; }
.calm-line { position: absolute; left: 13%; right: 13%; bottom: 20%; height: 3px; background: #bdd7df; }
.calm-line i { display: block; width: 71%; height: 100%; background: linear-gradient(90deg, #8f7cff, #40cde8, #64e9b2); }
.lantern { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(255,230,165,.15), transparent 37%), #081832; }
.lantern-halo { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(255,230,165,.25), transparent 65%); }
.lantern-body { position: relative; z-index: 2; width: 128px; height: 178px; border: 3px solid #d8b778; border-radius: 24px 24px 42px 42px; background: rgba(255,230,165,.08); box-shadow: 0 0 65px rgba(255,220,145,.2); }
.lantern-body:before { content: ""; position: absolute; left: 23px; right: 23px; top: -48px; height: 60px; border: 3px solid #d8b778; border-bottom: 0; border-radius: 45px 45px 0 0; }
.lantern-body span { position: absolute; left: 50%; top: 50%; width: 38px; height: 70px; border-radius: 50% 50% 48% 48%; transform: translate(-50%,-38%); background: var(--gold); box-shadow: 0 0 52px #ffe19a; }
.lantern-ground { position: absolute; left: 20%; right: 20%; bottom: 80px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,230,165,.5), transparent); }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(35px); transition: opacity .75s ease, transform .75s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

.promise { padding: 80px clamp(24px, 8vw, 140px) 150px; }
.promise-card { position: relative; max-width: 1180px; margin: auto; padding: clamp(36px, 7vw, 90px); border: 1px solid rgba(145,255,208,.24); border-radius: 38px; background: linear-gradient(135deg, rgba(14,39,66,.98), rgba(19,32,72,.94)); box-shadow: var(--shadow); overflow: hidden; }
.promise-card:after { content: ""; position: absolute; right: -130px; top: -140px; width: 390px; height: 390px; border: 1px solid rgba(117,233,255,.16); border-radius: 50%; box-shadow: 0 0 90px rgba(117,233,255,.1); }
.promise h2 { max-width: 850px; font-size: clamp(2.5rem, 5vw, 5rem); }
.promise-card > p:not(.chapter-kicker) { max-width: 780px; color: #bbd1da; font-size: 1.05rem; }
.promise-seal { display: grid; grid-template-columns: auto 1fr; max-width: 360px; margin-top: 34px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; }
.promise-seal > span { grid-row: 1 / 3; align-self: center; margin-right: 14px; color: var(--mint); font-size: 1.6rem; }
.promise-seal strong, .promise-seal small { display: block; line-height: 1.3; }
.promise-seal small { color: #82a4b3; }

.finale { display: grid; justify-items: center; padding: 130px 24px 150px; text-align: center; background: radial-gradient(circle at 50% 50%, rgba(117,233,255,.1), transparent 40%); }
.finale > img { margin-bottom: 30px; }
.finale h2 { max-width: 1050px; margin-bottom: 36px; font-size: clamp(2.5rem, 5.4vw, 5.6rem); }

footer { display: flex; align-items: center; gap: 30px; padding: 26px clamp(24px, 5vw, 76px); border-top: 1px solid var(--line); color: #7899a8; font-size: .78rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: #dbeaf0; }
footer a:hover { color: var(--mint); }
.noscript { position: fixed; z-index: 80; left: 20px; right: 20px; bottom: 20px; margin: 0; padding: 12px; border-radius: 10px; color: #172538; background: #fff5c9; text-align: center; }

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .18; transform: scale(.7); } 50% { opacity: .95; transform: scale(1.25); } }

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 155px; }
  .hero-orbit { width: min(82vw, 530px); margin: 40px auto 20px; justify-self: center; }
  .scroll-cue { display: none; }
  .opening-grid, .chapter { grid-template-columns: 1fr; }
  .opening-grid { gap: 36px; }
  .chapter { gap: 36px; min-height: 0; padding: 90px 0; }
  .chapter-reverse .chapter-art { order: 0; }
  .path-line { left: 18px; }
  .story-path { padding-left: clamp(48px, 8vw, 80px); }
  .chapter-art { min-height: 430px; }
}

@media (max-width: 620px) {
  body { line-height: 1.62; }
  .site-header { min-height: 68px; padding-inline: 16px; }
  .brand img { width: 36px; height: 36px; }
  .brand small { display: none; }
  .sound-toggle { width: 43px; padding: 0; justify-content: center; }
  .sound-toggle [data-sound-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero { padding: 125px 22px 68px; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4rem); letter-spacing: -.05em; hyphens: auto; }
  .hero-lead { overflow-wrap: anywhere; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-orbit { width: 88vw; transform: scale(.88); margin-block: 20px 0; }
  .opening { padding: 95px 22px; }
  .story-path { padding: 0 22px 75px 43px; }
  .path-line { left: 22px; }
  .chapter { padding: 68px 0; }
  .chapter-art { min-height: 340px; border-radius: 24px; }
  .window-content { min-height: 265px; padding: 17px; }
  .status-main { min-height: 170px; }
  .promise { padding: 45px 18px 95px; }
  .promise-card { border-radius: 25px; }
  .finale { padding: 90px 20px 100px; }
  footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
