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

:root {
  --bg: #03050a;
  --bg-elevated: rgba(10, 14, 24, 0.68);
  --bg-card: rgba(11, 15, 25, 0.58);
  --bg-card-hover: rgba(18, 24, 39, 0.76);
  --text-primary: #f4f7ff;
  --text-secondary: #9aa6c0;
  --text-muted: #5d6780;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #7da2ff;
  --accent-soft: rgba(125, 162, 255, 0.18);
  --accent-glow: rgba(125, 162, 255, 0.36);
  --dot-active: #7d9bff;
  --dot-inactive: rgba(255, 255, 255, 0.12);
  --font-sans: "SF Pro Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1260px;
}

body[data-theme="tellurium"] {
  --accent: #63a4ff;
  --accent-soft: rgba(99, 164, 255, 0.16);
  --accent-glow: rgba(74, 150, 255, 0.34);
  --dot-active: #63a4ff;
}

body[data-theme="helios"] {
  --accent: #ff9c42;
  --accent-soft: rgba(255, 156, 66, 0.16);
  --accent-glow: rgba(255, 140, 48, 0.34);
  --dot-active: #ff9c42;
}

body[data-theme="selene"] {
  --accent: #cddaff;
  --accent-soft: rgba(205, 218, 255, 0.14);
  --accent-glow: rgba(196, 212, 255, 0.28);
  --dot-active: #c2d4ff;
}

body[data-theme="hyperion"] {
  --accent: #95abff;
  --accent-soft: rgba(149, 171, 255, 0.16);
  --accent-glow: rgba(149, 171, 255, 0.3);
  --dot-active: #95abff;
}

body[data-theme="nyx"] {
  --accent: #9d8cff;
  --accent-soft: rgba(157, 140, 255, 0.15);
  --accent-glow: rgba(140, 122, 255, 0.3);
  --dot-active: #9d8cff;
}

html {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  background-color: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: clip;
}

::selection {
  background: var(--accent-soft);
  color: #ffffff;
}

.starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  display: block;
}

.ambient-nebula {
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 48% at 50% 18%, var(--accent-soft), transparent 70%),
    radial-gradient(ellipse 46% 42% at 80% 72%, rgba(56, 82, 168, 0.08), transparent 72%),
    radial-gradient(ellipse 44% 38% at 16% 78%, rgba(44, 62, 130, 0.07), transparent 70%);
  transition: background 1.1s var(--ease-out-expo), opacity 0.8s ease;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 5, 10, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.header-inner {
  max-width: 1520px;
  margin: 0 auto;
  height: 62px;
  padding: 0 clamp(20px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: opacity 0.25s ease;
}

.brand-link:hover {
  opacity: 0.82;
}

.brand-icon {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 450;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.lang-toggle {
  appearance: none;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out-expo);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.lang-toggle:active {
  transform: translateY(0);
}

.app-root {
  flex: 1;
  width: 100%;
  padding-top: 62px;
  transition: opacity 0.36s ease, transform 0.45s var(--ease-out-expo), filter 0.36s ease;
}

.app-root.is-exiting {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(4px);
  pointer-events: none;
}

.app-root.is-entering {
  opacity: 0;
  transform: translateY(10px);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 3.6vw, 44px);
}

.home-hero {
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4.5vh, 62px) clamp(12px, 2vw, 34px) clamp(44px, 6.5vh, 80px);
  position: relative;
}

.home-hero-copy {
  text-align: center;
  max-width: 920px;
  margin-bottom: clamp(24px, 4.4vh, 52px);
  position: relative;
  z-index: 2;
}

.hero-slogan {
  font-size: clamp(2.65rem, 5.6vw, 5.15rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.042em;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 18%, rgba(215, 226, 255, 0.84) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.planet-dock {
  width: 100%;
  max-width: 1620px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(2px, 0.8vw, 14px);
  position: relative;
  z-index: 2;
}

.planet-btn {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 2px 12px;
  position: relative;
  color: inherit;
  width: 100%;
  max-width: 350px;
  outline: none;
  transition: transform 0.6s var(--ease-out-expo);
}

.planet-btn:focus-visible .planet-stage {
  box-shadow: 0 0 0 2px var(--accent);
  border-radius: 50%;
}

.planet-stage {
  position: relative;
  width: clamp(190px, 19.2vw, 306px);
  height: clamp(190px, 19.2vw, 306px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.65s var(--ease-out-expo), filter 0.55s ease;
  will-change: transform;
}

.planet-btn[data-slug="helios"] .planet-stage {
  width: clamp(220px, 22.4vw, 358px);
  height: clamp(220px, 22.4vw, 358px);
}

.planet-btn:hover .planet-stage,
.planet-btn:focus-visible .planet-stage {
  transform: scale(1.08) translateY(-8px);
}

.planet-btn:active .planet-stage {
  transform: scale(1.02) translateY(-2px);
}

.planet-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.planet-meta {
  margin-top: 8px;
  text-align: center;
  opacity: 0.76;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out-expo);
}

.planet-btn:hover .planet-meta,
.planet-btn:focus-visible .planet-meta {
  opacity: 1;
  transform: translateY(0);
}

.planet-meta-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.planet-meta-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition: color 0.35s ease;
}

.planet-btn:hover .planet-meta-sub {
  color: var(--text-secondary);
}

.hero-scroll-line {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.34) 100%);
  overflow: hidden;
  opacity: 0.65;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, #ffffff);
  animation: scrollPulse 2.4s var(--ease-in-out-cubic) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(220%); opacity: 0; }
}

.section-block {
  padding: clamp(72px, 10vh, 128px) 0;
}

.section-heading {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-lead {
  max-width: 580px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 44px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 52px);
  margin-top: 44px;
}

.principle-card {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  transition: border-color 0.35s ease;
}

.principle-card:hover {
  border-top-color: var(--border-strong);
}

.principle-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.principle-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.principle-desc {
  font-size: 0.94rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.comparison-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.comparison-table th {
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-row {
  cursor: pointer;
  transition: background 0.28s ease;
}

.comparison-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.comparison-row td {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  vertical-align: middle;
}

.comparison-row:last-child td {
  border-bottom: none;
}

.comp-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.comp-series {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comp-proto {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.dots-meter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-inactive);
  transition: transform 0.45s var(--ease-out-expo), background 0.45s ease, box-shadow 0.45s ease;
}

.dot-pip.is-on {
  background: var(--dot-active);
  box-shadow: 0 0 10px var(--accent-glow);
}

.detail-hero {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  position: relative;
  padding: clamp(44px, 6.5vh, 84px) 0 clamp(64px, 8.5vh, 104px);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.detail-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.detail-title {
  font-size: clamp(3.3rem, 6.4vw, 5.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.detail-sub-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.detail-series {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 450;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-lead {
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.62;
  color: rgba(232, 238, 255, 0.84);
  max-width: 540px;
  margin-bottom: 32px;
}

.protocol-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.protocol-pill {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.detail-planet-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-planet-frame {
  position: relative;
  width: min(580px, 80vw);
  height: min(580px, 80vw);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-ring-svg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  pointer-events: none;
  opacity: 0.42;
  animation: slowOrbitSpin 56s linear infinite;
}

@keyframes slowOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.detail-hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
  cursor: grab;
}

.detail-hero-canvas:active {
  cursor: grabbing;
}

.detail-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-scroll-bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: cueFade 2.2s ease-in-out infinite;
}

@keyframes cueFade {
  0%, 100% { opacity: 0.25; transform: scaleY(0.75); }
  50% { opacity: 0.9; transform: scaleY(1); }
}

.story-section {
  padding: clamp(64px, 9vh, 114px) 0;
  position: relative;
}

.story-header {
  margin-bottom: clamp(40px, 5.5vh, 64px);
}

.story-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 4.2vw, 60px);
  align-items: start;
}

.story-stage-col {
  position: sticky;
  top: 84px;
}

.story-stage-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(12, 16, 29, 0.86) 0%, rgba(7, 10, 19, 0.88) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  padding: 20px;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.story-stage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}

.story-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 14px;
}

.story-stage-tag-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

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

@keyframes liveBeacon {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.story-stage-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.story-step-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-step-pill {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.story-step-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.story-step-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-primary);
}

.story-visual-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(16, 23, 42, 0.74), rgba(4, 6, 13, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.story-visual-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.story-chart-box {
  margin-top: 14px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 7, 15, 0.72);
}

.story-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.story-chart-title {
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.story-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 10px;
  height: 3px;
  border-radius: 2px;
}

.legend-swatch.is-primary {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.legend-swatch.is-secondary {
  background: rgba(176, 188, 214, 0.5);
}

.story-chart-wrap {
  width: 100%;
  height: 162px;
  position: relative;
}

.story-chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.story-telemetry-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.telemetry-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.telemetry-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.story-progress-track {
  margin-top: 14px;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  width: 33.333%;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  border-radius: 999px;
  transition: width 0.55s var(--ease-out-expo);
}

.story-chapters-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 30px;
}

.story-chapters-col::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.04) 100%);
}

.story-chapter {
  position: relative;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(9, 13, 24, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0.48;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo),
    border-color 0.45s ease,
    background 0.45s ease,
    box-shadow 0.55s ease;
}

.story-chapter::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 42px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0d1322;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.story-chapter::after {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.story-chapter.is-active {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(14, 19, 34, 0.78) 0%, rgba(10, 14, 26, 0.72) 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}

.story-chapter.is-active::before {
  background: var(--accent);
  border-color: #ffffff;
  box-shadow: 0 0 16px var(--accent-glow);
  transform: scale(1.18);
}

.story-chapter.is-active::after {
  opacity: 0.75;
}

.chapter-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.chapter-index {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter-title {
  font-size: clamp(1.5rem, 2.3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.chapter-body {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.chapter-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.chapter-stat-card {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 7, 15, 0.56);
}

.chapter-stat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.chapter-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.chapter-stat-val {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.chapter-stat-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chapter-stat-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.9));
  transition: width 0.85s var(--ease-out-expo);
}

.chapter-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-primary);
}

.chapter-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.sub-block-title {
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.profile-list {
  display: flex;
  flex-direction: column;
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-row:first-child {
  border-top: 1px solid var(--border-subtle);
}

.profile-metric-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.best-for-quote {
  font-size: clamp(1.45rem, 2.35vw, 2.05rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 540px;
  margin-bottom: 28px;
}

.profile-radar-card {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 20px 14px;
}

.profile-radar-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-radar-wrap {
  width: 100%;
  height: 230px;
}

.profile-radar-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.other-card {
  appearance: none;
  text-align: left;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px 22px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  color: inherit;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.5s var(--ease-out-expo),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.5s var(--ease-out-expo);
}

.other-card:hover,
.other-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  outline: none;
}

.other-planet-wrap {
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  transition: transform 0.55s var(--ease-out-expo);
}

.other-card:hover .other-planet-wrap {
  transform: scale(1.12);
}

.other-planet-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.other-badge {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.other-title {
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.other-series {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.other-desc {
  font-size: 0.87rem;
  line-height: 1.56;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 18px;
}

.other-proto {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  background: rgba(3, 5, 10, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-brand {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.hero-stagger {
  opacity: 0;
  transform: translateY(20px);
  animation: heroArrive 0.85s var(--ease-out-expo) forwards;
}

.hero-stagger-1 { animation-delay: 0.04s; }
.hero-stagger-2 { animation-delay: 0.12s; }
.hero-stagger-3 { animation-delay: 0.2s; }
.hero-stagger-4 { animation-delay: 0.28s; }

@keyframes heroArrive {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.warp-portal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, width, height, opacity;
}

.warp-portal.is-active {
  visibility: visible;
}

.warp-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.is-transition-hidden {
  opacity: 0;
}

@media (max-width: 1120px) {
  .planet-dock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 20px;
  }

  .planet-stage {
    width: clamp(176px, 26vw, 250px);
    height: clamp(176px, 26vw, 250px);
  }

  .planet-btn[data-slug="helios"] .planet-stage {
    width: clamp(200px, 29vw, 286px);
    height: clamp(200px, 29vw, 286px);
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .detail-planet-col {
    order: -1;
  }

  .detail-planet-frame {
    width: min(440px, 82vw);
    height: min(440px, 82vw);
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-stage-col {
    position: relative;
    top: 0;
  }

  .story-chapters-col {
    padding-left: 0;
  }

  .story-chapters-col::before,
  .story-chapter::before {
    display: none;
  }

  .story-chapter {
    min-height: auto;
    opacity: 1;
    transform: none;
  }

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

@media (max-width: 720px) {
  .planet-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planet-stage {
    width: clamp(148px, 42vw, 210px);
    height: clamp(148px, 42vw, 210px);
  }

  .planet-btn[data-slug="helios"] .planet-stage {
    width: clamp(168px, 46vw, 236px);
    height: clamp(168px, 46vw, 236px);
  }

  .principles-grid,
  .profile-grid,
  .other-grid,
  .chapter-stats-grid {
    grid-template-columns: 1fr;
  }

  .detail-scroll-cue {
    display: none;
  }
}

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

  .orbital-ring-svg,
  .hero-scroll-line::after,
  .detail-scroll-bar,
  .live-pulse-dot {
    animation: none;
  }

  .reveal,
  .hero-stagger {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}
