:root {
  --void: #000000;
  --void-2: #0a0a0a;
  --elevated: #121214;
  --ink: #f5f5f7;
  --muted: #d2d2d7;
  --quiet: #86868b;
  --steel: #a1a1a6;
  --plasma: #2ee6ff;
  --plasma-2: #7af0ff;
  --hot: #f2fcff;
  --ion: #2ee6ff;
  --ion-2: #9af6ff;
  --field: #2ee6ff;
  --gold: #e8fbff;
  --glass: rgba(16, 16, 18, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --radius: 20px;
  --nav-h: 64px;
  --max: 1120px;
  --font-d: "Geist", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-b: "Geist", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-m: "Geist Mono", "Cascadia Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  font-optical-sizing: auto;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-b);
  font-weight: 400;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  letter-spacing: -0.014em;
  background: #000;
  color: var(--ink);
  line-height: 1.62;
  overflow-x: hidden;
  max-width: 100%;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
a { cursor: pointer; }

::selection { background: rgba(46, 230, 255, 0.35); color: #000; }

.page { position: relative; z-index: 2; overflow-x: hidden; max-width: 100%; }

/* ---------- preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
html.skip-pre #preloader { display: none !important; }

.pre-inner { text-align: center; width: min(360px, 86vw); }
.pre-torus { width: 72px; height: 72px; margin: 0 auto 22px; overflow: visible; }
.pre-torus svg { width: 100%; height: 100%; overflow: visible; }
.pre-ring { transform-origin: 32px 32px; }
.pre-kicker {
  font-family: var(--font-b);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--plasma-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.pre-title {
  font-family: var(--font-d);
  font-weight: 560;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.pre-bar {
  margin-top: 22px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.pre-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--plasma), var(--hot));
  animation: loadbar 1.6s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes loadbar { to { width: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(0,0,0,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.brand svg {
  width: 28px;
  height: 28px;
  overflow: visible;
  animation: brandBob 7s ease-in-out infinite;
}
.brand svg ellipse:first-of-type,
.pre-torus svg ellipse:first-of-type,
.logo-wander svg ellipse:first-of-type {
  transform-box: view-box;
  transform-origin: 32px 32px;
  animation: ringSpin 7.5s linear infinite;
}
.brand svg ellipse:nth-of-type(2),
.pre-torus svg ellipse:nth-of-type(2),
.logo-wander svg ellipse:nth-of-type(2) {
  transform-box: view-box;
  transform-origin: 32px 32px;
  animation: ringSpinTilt 10s linear infinite;
}
.brand svg ellipse:nth-of-type(3),
.logo-wander svg ellipse:nth-of-type(3) {
  transform-box: view-box;
  transform-origin: 32px 32px;
  animation: ringSpinC 13s linear infinite;
}
.brand svg circle,
.pre-torus svg circle,
.logo-wander svg circle {
  transform-box: view-box;
  transform-origin: 32px 32px;
  animation: corePulse 2.2s ease-in-out infinite;
}
@keyframes brandBob {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(4px, -5px) rotate(14deg); }
  62% { transform: translate(-5px, 3px) rotate(-10deg); }
}
@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ringSpinTilt {
  from { transform: rotate(60deg); }
  to { transform: rotate(420deg); }
}
@keyframes ringSpinC {
  from { transform: rotate(120deg); }
  to { transform: rotate(480deg); }
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); filter: drop-shadow(0 0 6px #ffe8f2); opacity: 0.8; }
}
.logo-wander {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: min(18vw, 140px);
  height: min(18vw, 140px);
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 18px rgba(46, 230, 255, 0.35));
  animation: logoWander 26s ease-in-out infinite;
}
.logo-wander svg { width: 100%; height: 100%; overflow: visible; }
@keyframes logoWander {
  0%   { transform: translate(6vw, 16vh) rotate(0deg); }
  16%  { transform: translate(74vw, 14vh) rotate(28deg); }
  32%  { transform: translate(68vw, 70vh) rotate(-18deg); }
  48%  { transform: translate(10vw, 64vh) rotate(22deg); }
  64%  { transform: translate(42vw, 38vh) rotate(-12deg); }
  80%  { transform: translate(18vw, 12vh) rotate(16deg); }
  100% { transform: translate(6vw, 16vh) rotate(0deg); }
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name strong {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.03em;
}
.brand-name span {
  font-size: 11px;
  color: var(--quiet);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.q-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 255, 0.35);
  background: rgba(46, 230, 255, 0.1);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.q-chip b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
a.q-chip { text-decoration: none; color: inherit; }
.q-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--plasma);
  box-shadow: 0 0 8px var(--plasma);
}
.q-chip .hide-sm { color: var(--quiet); font-size: 11px; font-weight: 500; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--glass-edge);
  border-radius: 10px;
  color: var(--ink);
}

/* ---------- type + layout ---------- */
.wrap {
  width: auto;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.kicker {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--plasma-2);
  margin-bottom: 16px;
}
h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 580;
  letter-spacing: -0.052em;
  line-height: 0.98;
  color: var(--ink);
  text-wrap: balance;
  font-feature-settings: "kern" 1, "liga" 1, "ss01" 1;
}
h1 { font-size: clamp(3.35rem, 8.4vw, 6.75rem); font-weight: 620; letter-spacing: -0.058em; }
h2 { font-size: clamp(2.05rem, 4.4vw, 3.55rem); }
h3 { font-size: clamp(1.28rem, 1.85vw, 1.62rem); font-weight: 560; letter-spacing: -0.032em; line-height: 1.18; }
.lede {
  font-size: clamp(1.15rem, 1.55vw, 1.35rem);
  color: var(--muted);
  max-width: min(38em, 100%);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.muted { color: var(--muted); }
.gold { color: var(--hot); }
.plasma { color: var(--ion); }
.field { color: var(--ion); }

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: 80px;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- glass ---------- */
.glass {
  background: rgba(18, 18, 20, 0.78);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: var(--radius);
}

.glass-plasma { position: relative; }
.glass-plasma::before { display: none; }

.glass p,
.tri p,
.spec p,
.diff p,
.fact p,
.flow p,
.tl p,
.faq details p,
.hud-card p {
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 520;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #000;
  background: var(--plasma);
  transition: transform 0.2s, filter 0.2s, background 0.2s;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost {
  color: var(--ink);
  background: rgba(255,255,255,0.08);
  border: 0;
}
.btn-ghost:hover { background: rgba(255,255,255,0.14); filter: none; }
.btn-plasma {
  color: #000;
  background: var(--plasma);
}

/* ---------- hero ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 36px);
  position: relative;
}
.hero-intro {
  padding: 28px 0 12px;
  text-align: center;
  overflow: hidden;
}
.hero-intro .lede {
  overflow-wrap: break-word;
  word-break: break-word;
}
.hero-intro .lede {
  margin: 22px auto 0;
  width: 100%;
  max-width: 34rem;
  display: block;
  box-sizing: border-box;
}
.hero-intro h1 {
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.hero-stage {
  position: relative;
  height: min(72svh, 760px);
  min-height: 420px;
  margin-top: 12px;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 91, 154, 0.2), transparent 44%),
    radial-gradient(ellipse at 50% 70%, rgba(46, 230, 255, 0.1), transparent 58%);
}
#tokamak-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
  pointer-events: none;
}

.spec-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.spec-bar > div {
  padding: 18px 16px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.spec-bar > div:last-child { border-right: 0; }
.spec-bar span {
  display: block;
  font-size: 12px;
  color: var(--quiet);
  font-weight: 500;
  margin-bottom: 4px;
}
.spec-bar b {
  font-family: var(--font-d);
  font-size: 1.2rem;
  font-weight: 580;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.part-line {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 16px 0 4px;
  min-height: 2.4em;
}

.machine-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px 0 48px;
}
.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 480;
  letter-spacing: -0.018em;
  text-transform: none;
  color: var(--muted);
  transition: 0.2s;
}
.chip.on {
  color: var(--ink);
  background: rgba(46, 230, 255, 0.14);
  border-color: rgba(46, 230, 255, 0.45);
}
.chip:hover {
  color: #000;
  background: var(--plasma);
  border-color: var(--plasma);
}

/* ---------- three hard things ---------- */
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tri article {
  padding: 32px 28px;
  min-height: 260px;
}
.num {
  font-family: var(--font-d);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--ion);
  line-height: 1;
  margin-bottom: 18px;
}
.tri h3 { margin-bottom: 10px; }
.tri p { font-size: 1rem; }

.compare {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
.compare .visual {
  overflow: hidden;
  min-height: 360px;
  position: relative;
}
.compare .visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 360px;
}
.compare .caption {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 18px 20px;
}
.compare .caption p { color: #e8e8ed; }

/* ---------- fusion lab ---------- */
.lab-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}
#fusion-lab {
  width: 100%;
  height: 520px;
  border-radius: var(--radius);
  display: block;
  background: radial-gradient(ellipse at center, #0c1418 0%, #000 70%);
}
.lab-side { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.slider-block label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--quiet);
  margin-bottom: 8px;
}
.slider-block label span { color: var(--ink); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background: linear-gradient(90deg, #123038, var(--plasma), #fff);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
  border: 0;
  cursor: pointer;
}
.eq {
  font-family: var(--font-m);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: -0.02em;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  color: var(--hot);
  line-height: 1.7;
  font-feature-settings: "ss01" 1, "calt" 1;
}
.lab-status {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--plasma-2);
}

/* ---------- magnets ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.photo-card { overflow: hidden; min-height: 420px; position: relative; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.photo-card .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.88));
}
.photo-card .meta {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
}
.photo-card .meta p { color: #e8e8ed; }

.field-sim { padding: 32px; }
.tesla-readout {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 18px;
}
.tesla-readout b {
  font-family: var(--font-d);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 620;
  letter-spacing: -0.07em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.tesla-readout span { color: var(--quiet); font-size: 15px; }

.scale-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
  color: var(--muted);
}
.bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--plasma), var(--ion));
  transition: width 0.5s ease;
}
.power-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(46, 230, 255, 0.08);
  border: 1px solid rgba(46, 230, 255, 0.2);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.power-note b { color: var(--plasma-2); }

.knobs {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  margin-top: 16px;
}
.knob-panel { padding: 32px; }
.triple {
  margin: 24px 0 8px;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.triple > i {
  display: block;
  height: 100%;
  width: 8%;
  background: linear-gradient(90deg, #123038, var(--plasma), #fff);
  transition: width 0.25s;
}
.triple .mark {
  position: absolute;
  top: -20px;
  font-size: 11px;
  font-weight: 500;
  color: var(--hot);
}
.ignition-lamp {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.lamp {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3a3a3c;
}
.lamp.on {
  background: var(--plasma);
  box-shadow: 0 0 14px var(--plasma);
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.spec { padding: 24px 22px; min-height: 148px; }
.spec .u {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--quiet);
}
.spec b {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--font-d);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 580;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.spec p { font-size: 14px; }

.path {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.path article { overflow: hidden; }
.path img { width: 100%; height: 240px; object-fit: cover; }
.path .body { padding: 24px; }
.path .arrow {
  align-self: center;
  font-size: 1.5rem;
  color: var(--ion);
}

.flow {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.flow button, .flow .step {
  padding: 16px 14px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid var(--glass-edge);
  background: var(--elevated);
  transition: 0.2s;
  color: var(--ink);
}
.flow .step.active, .flow button:hover {
  border-color: rgba(46, 230, 255, 0.5);
  background: rgba(46, 230, 255, 0.1);
}
.flow .n {
  font-size: 11px;
  font-weight: 600;
  color: var(--plasma-2);
  letter-spacing: 0.08em;
}
.flow h4 { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; margin: 6px 0 4px; }
.flow p { font-size: 13px; }
.flow-detail {
  margin-top: 14px;
  padding: 22px 24px;
  min-height: 96px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.toggle-row {
  display: flex;
  gap: 8px;
  margin: 18px 0 22px;
}
.toggle-row button {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.toggle-row button.on {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.diff { padding: 24px; }
.diff .tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plasma-2);
  margin-bottom: 8px;
}

.safety-demo {
  margin-top: 16px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}
#air-canvas {
  width: 100%;
  height: 220px;
  border-radius: 16px;
  background: #0a0a0a;
  display: block;
}

.campus {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}
.campus .hero-img { overflow: hidden; min-height: 480px; position: relative; }
.campus .hero-img img { width: 100%; height: 100%; object-fit: cover; min-height: 480px; }
.campus-facts { display: grid; gap: 12px; }
.fact { padding: 22px 24px; }
.fact b {
  display: block;
  font-family: var(--font-d);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}

.big-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.big-stats article { padding: 28px 24px; }
.big-stats em {
  font-style: normal;
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  display: block;
  line-height: 1;
  margin: 8px 0;
  color: var(--ink);
}
.homes {
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.house-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
}
.house-grid i {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}
.house-grid i.on {
  background: var(--plasma);
}

.timeline-wrap { overflow-x: auto; padding-bottom: 10px; width: 100%; max-width: 100%; }
.timeline {
  display: flex;
  gap: 0;
  width: max-content;
  min-width: 100%;
  position: relative;
  padding: 20px 0 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 38px;
  height: 1px;
  background: linear-gradient(90deg, var(--plasma), var(--ion));
}
.tl { flex: 1; padding: 0 12px; min-width: 140px; }
.tl .yr {
  font-size: 12px;
  font-weight: 600;
  color: var(--plasma-2);
}
.tl .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--plasma);
  margin: 10px 0 12px;
  position: relative;
  z-index: 1;
}
.tl h4 { font-family: var(--font-d); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.tl p { font-size: 14px; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 0 24px; border-radius: 16px; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--font-d);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400;
  color: var(--quiet);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 0 22px;
  max-width: 72ch;
  font-size: 1.05rem;
}

footer {
  padding: 56px 0 80px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}
.disclaimer {
  font-size: 14px;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}
.disclaimer a { color: var(--plasma-2); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-play-state: paused;
}
.reveal.in { animation-play-state: running; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .tri, .specs, .flow, .diff-grid, .big-stats, .lab-grid, .split, .compare, .path, .campus, .knobs, .homes, .foot, .safety-demo, .spec-bar {
    grid-template-columns: 1fr;
  }
  .spec-bar > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .path .arrow { transform: rotate(90deg); justify-self: center; }
  .hero-stage {
    height: 52svh;
    min-height: 320px;
  }
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    right: 16px;
    padding: 16px 20px;
    background: rgba(12,12,14,0.96);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    backdrop-filter: blur(16px);
  }
}

@media (max-width: 640px) {
  .specs { grid-template-columns: 1fr 1fr; }
  .tri { grid-template-columns: 1fr; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding: 72px 0; }
  .q-chip span.hide-sm { display: none; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .lede { font-size: 1.0625rem; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .brand-name span { display: none; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .pre-ring,
  .brand svg,
  .brand svg ellipse,
  .brand svg circle,
  .pre-torus svg ellipse,
  .pre-torus svg circle,
  .logo-wander,
  .logo-wander svg ellipse,
  .logo-wander svg circle {
    animation: none !important;
  }
  .logo-wander { display: none; }
}

/* ---------- Made by AmeriKing (studio card) ---------- */
.foot > a.ak-made,
footer .wrap > a.ak-made { display: none !important; }
.foot ameriking-made { grid-column: 1 / -1; display: block; width: 100%; }
a.ak-made {
  display: block;
  margin-top: 28px;
  min-height: 168px;
  overflow: hidden;
  text-decoration: none !important;
  color: #ede8f7;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 30;
  isolation: isolate;
  border-radius: 1.25rem;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: #0b0612;
  box-shadow:
    inset 0 1px 0 rgba(243, 232, 255, 0.12),
    0 18px 40px -18px rgba(168, 85, 247, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
a.ak-made:hover,
a.ak-made:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(243, 232, 255, 0.2),
    0 28px 56px -16px rgba(168, 85, 247, 0.55);
  outline: none;
}
.ak-made-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.ak-made-ui {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  min-height: 168px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 6, 18, 0.55) 0%, rgba(11, 6, 18, 0.12) 55%, transparent 100%);
}
.ak-made-mark {
  width: 88px;
  height: 66px;
  flex-shrink: 0;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.45));
  animation: akMarkFade 9s ease-in-out infinite;
}
.ak-made-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
a.ak-made:hover .ak-made-mark {
  filter: drop-shadow(0 0 16px rgba(192, 132, 252, 0.7));
}
.ak-crown-aura {
  transform-origin: 48px 38px;
  animation: akAura 9s ease-in-out infinite;
}
.ak-crown-drift {
  transform-origin: 48px 36px;
  animation: akDrift 9s ease-in-out infinite;
}
.ak-crown-wire {
  stroke-dasharray: 165;
  animation: akDraw 9s linear infinite;
}
.ak-crown-base {
  stroke-dasharray: 64;
  animation: akBase 9s ease-in-out infinite;
}
.ak-crown-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: akNode 9s ease-in-out infinite;
}
@keyframes akMarkFade {
  0%, 58% { opacity: 1; }
  78%, 100% { opacity: 0; }
}
@keyframes akAura {
  0%, 8% { opacity: 0; transform: scale(0.92); }
  42% { opacity: 0.75; transform: scale(1.04); }
  50% { opacity: 1; transform: scale(1.1); }
  58% { opacity: 0.85; transform: scale(1.05); }
  78%, 100% { opacity: 0; transform: scale(0.96); }
}
@keyframes akDrift {
  0%, 78%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes akDraw {
  0% { stroke-dashoffset: 165; }
  42% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}
@keyframes akBase {
  0%, 28% { stroke-dashoffset: 64; opacity: 0; }
  42%, 58% { stroke-dashoffset: 0; opacity: 1; }
  78%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes akNode {
  0%, 22% { opacity: 0; transform: scale(0.4); }
  42% { opacity: 1; transform: scale(1.15); }
  50% { opacity: 1; transform: scale(1); }
  58% { opacity: 1; transform: scale(1.08); }
  78%, 100% { opacity: 0; transform: scale(0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .ak-made-mark, .ak-crown-aura, .ak-crown-drift, .ak-crown-wire, .ak-crown-base, .ak-crown-node {
    animation: none !important;
    opacity: 1;
  }
  .ak-crown-wire, .ak-crown-base { stroke-dasharray: none; stroke-dashoffset: 0; }
}
.ak-made-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  pointer-events: none;
}
.ak-made-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c084fc;
}
.ak-made-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ede8f7;
  line-height: 1.15;
}
.ak-made-title em {
  font-style: italic;
  background: linear-gradient(135deg, #f3e8ff, #c084fc, #a855f7, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ak-made-line {
  font-size: 0.92rem;
  color: rgba(237, 232, 247, 0.72);
  line-height: 1.45;
}
.ak-made-cta {
  flex-shrink: 0;
  pointer-events: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #050308;
  background: linear-gradient(135deg, #c084fc, #7c3aed);
  padding: 0.7rem 1.05rem;
  border-radius: 0.9rem;
  white-space: nowrap;
}
@media (max-width: 720px) {
  a.ak-made {
    border-color: rgba(216, 180, 254, 0.75);
    box-shadow:
      inset 0 1px 0 rgba(243, 232, 255, 0.22),
      0 16px 36px -14px rgba(168, 85, 247, 0.55);
  }
  .ak-made-fx { opacity: 0.28; }
  .ak-made-ui {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 18px 16px 16px;
    background: linear-gradient(180deg, rgba(6, 3, 12, 0.92) 0%, rgba(6, 3, 12, 0.84) 100%);
  }
  .ak-made-mark {
    width: 76px;
    height: 60px;
    animation: none;
    opacity: 1;
    filter:
      drop-shadow(0 0 2px #fff)
      drop-shadow(0 0 10px rgba(243, 232, 255, 0.95))
      drop-shadow(0 0 18px rgba(192, 132, 252, 0.9));
  }
  .ak-crown-aura,
  .ak-crown-drift,
  .ak-crown-wire,
  .ak-crown-base,
  .ak-crown-node {
    animation: none !important;
    opacity: 1 !important;
    transform: none;
  }
  .ak-crown-wire,
  .ak-crown-base {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .ak-crown-wire { stroke-width: 3.1; }
  .ak-crown-base { stroke-width: 2.2; }
  .ak-crown-node { transform: none; }
  .ak-made-kicker {
    color: #e9d5ff;
    font-weight: 600;
  }
  .ak-made-title {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    color: #fff;
  }
  .ak-made-title em {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #f8f0ff;
    -webkit-text-fill-color: #f8f0ff;
    text-shadow:
      0 0 12px rgba(243, 232, 255, 0.85),
      0 0 22px rgba(192, 132, 252, 0.7);
  }
  .ak-made-line {
    color: rgba(243, 232, 255, 0.92);
  }
  .ak-made-cta {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 14px;
    padding: 0.85rem 1.1rem;
  }
}

/* ---------- atlas / methods / innovators ---------- */
.atlas-hero { text-align: center; padding: 36px 0 8px; }
.atlas-hero .lede { margin: 20px auto 0; }
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.type-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s;
}
.type-card:hover { transform: translateY(-6px); border-color: rgba(46, 230, 255, 0.45); }
.type-stage {
  height: 260px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 91, 154, 0.16), transparent 62%);
}
.type-stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.type-body { padding: 20px 22px 24px; }
.type-body .tag {
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plasma);
  margin-bottom: 8px;
}
.type-body h3 { margin-bottom: 8px; }
.type-body p { font-size: 0.95rem; color: var(--muted); }
.type-body .go {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 520;
  color: var(--plasma);
  letter-spacing: -0.02em;
}
.method-hero-stage {
  height: min(68svh, 720px);
  min-height: 380px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(255, 91, 154, 0.2), transparent 44%),
    radial-gradient(ellipse at 50% 70%, rgba(46, 230, 255, 0.1), transparent 58%);
}
.method-hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.machine-block {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 32px;
}
.machine-viz {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 91, 154, 0.18), transparent 60%);
}
.machine-viz canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.machine-copy { padding: 8px 4px 8px 8px; }
.machine-copy h2 { margin: 6px 0 10px; }
.builder-block {
  padding: 24px;
  margin: -12px 0 36px;
  scroll-margin-top: 132px;
}
.builder-block h3 { margin: 4px 0 0; }
.builder-block .muted { margin-top: 10px; max-width: 72ch; }
.co-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.co-card { padding: 28px; }
.co-card h3 { margin: 6px 0 10px; }
.co-card .loc {
  font-size: 13px;
  color: var(--plasma);
  font-weight: 500;
}
.co-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.co-meta span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  color: var(--muted);
}
.machine-family {
  margin: 8px 0 22px;
  padding-top: 12px;
  scroll-margin-top: 132px;
}
.machine-family:not(:first-of-type) {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.machine-family + .machine-block { margin-top: 4px; }
.machine-family h2 { margin: 4px 0 8px; }
.machine-family .muted { max-width: 62ch; }
.machine-block { scroll-margin-top: 132px; }
.subnav.machines-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 8;
  margin: 0 0 28px;
  padding: 12px 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0 28px;
}
.subnav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.subnav a:hover, .subnav a.on {
  color: #000;
  background: var(--plasma);
  border-color: var(--plasma);
}
@media (max-width: 980px) {
  .type-grid, .co-grid, .machine-block { grid-template-columns: 1fr; }
  .machine-viz { min-height: 260px; }
}
