/* Smart Shift L01 — Editorial Tech + Cinematic Learning */
:root {
  --navy: #161F30;
  --navy-2: #1C263A;
  --navy-3: #121826;
  --gold: #D2A054;
  --gold-2: #E8C37A;
  --white: #FFFFFF;
  --muted: #546684;
  --muted-2: #8B9BB8;
  --green: #6BA96E;
  --line: rgba(210, 160, 84, 0.28);
  --hair: rgba(255, 255, 255, 0.08);
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.58);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --display: "Syne", "IBM Plex Sans Arabic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--navy-3); color: var(--text); }
body {
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100%;
  line-height: 1.7;
  cursor: default;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ambient glows follow pointer */
.orb {
  position: fixed;
  width: 42vw;
  height: 42vw;
  max-width: 640px;
  max-height: 640px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  transform: translate(-50%, -50%);
  will-change: left, top;
  mix-blend-mode: screen;
}
.orb-gold { background: #D2A054; }
.orb-blue { background: #3A4F7A; opacity: 0.18; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  transform: perspective(800px) rotateX(12deg) scale(1.2);
  transform-origin: center 20%;
}

/* NAV */
.capsule {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 16px;
  background: rgba(22, 31, 48, 0.72);
  border: 1px solid var(--hair);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  width: min(560px, calc(100vw - 24px));
  justify-content: space-between;
  transition: padding 0.4s var(--ease), width 0.4s var(--ease);
}
.capsule.compact { padding: 6px 10px; }
.cap-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-family: var(--display);
  font-weight: 700;
}
.cap-brand .dot { color: var(--gold); }
.cap-brand .muted { color: var(--muted-2); font-weight: 600; letter-spacing: 0.22em; }
.cap-mid {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}
.cap-mid b { color: var(--gold); font-weight: 500; }
.cap-track {
  width: 72px;
  height: 1px;
  background: var(--hair);
  position: relative;
  overflow: hidden;
}
.cap-track i {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.25s linear;
}
.menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-btn span {
  display: block;
  width: 14px;
  height: 1px;
  background: var(--white);
}

/* SIDE INDEX */
.side-index {
  position: fixed;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-index a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 700;
  transition: color 0.3s;
}
.side-index a .tick {
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease), background 0.3s;
}
.side-index a.active { color: var(--gold); }
.side-index a.active .tick { width: 28px; background: var(--gold); }
.side-index a:hover { color: var(--white); }

/* BOOT */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0B1018;
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-line {
  position: absolute;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: lineGrow 1.1s var(--ease) forwards;
}
.boot-grid {
  position: absolute;
  width: min(70vw, 720px);
  height: min(40vh, 320px);
  opacity: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridIn 0.9s 0.7s var(--ease) forwards;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.boot-word {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.28em;
  font-size: clamp(18px, 4vw, 42px);
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s 1.2s var(--ease) forwards;
}
.boot-ar {
  position: absolute;
  top: calc(50% + 42px);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.4em;
  opacity: 0;
  animation: rise 0.7s 1.7s var(--ease) forwards;
}
@keyframes lineGrow { to { width: min(80vw, 860px); } }
@keyframes gridIn { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-num {
  position: absolute;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(180px, 38vw, 460px);
  line-height: 0.8;
  color: rgba(255,255,255,0.035);
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 920px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 22px;
  opacity: 0;
  animation: rise 0.8s 2.2s var(--ease) forwards;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 7.2vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}
.hero h1 span {
  display: block;
  opacity: 0;
  transform: translateY(24px);
}
.hero h1 span:nth-child(1) { animation: rise 0.9s 2.5s var(--ease) forwards; }
.hero h1 span:nth-child(2) { animation: rise 0.9s 2.75s var(--ease) forwards; color: var(--gold-2); }
.hero-ar {
  margin-top: 22px;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text-dim);
  opacity: 0;
  animation: rise 0.8s 3.05s var(--ease) forwards;
}
.hero-lead {
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 14px;
  opacity: 0;
  animation: rise 0.8s 3.25s var(--ease) forwards;
}
.cta-start {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.18em;
  background: none;
  border: 0;
  cursor: pointer;
  opacity: 0;
  animation: rise 0.8s 3.5s var(--ease) forwards;
}
.cta-start .arr {
  width: 22px;
  height: 22px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: var(--gold);
  transition: transform 0.35s var(--ease), background 0.35s;
}
.cta-start:hover .arr { transform: translateY(3px); background: rgba(210,160,84,0.15); }

.hero-meta {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  opacity: 0;
  animation: rise 0.8s 3.7s var(--ease) forwards;
}

/* SECTIONS */
.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}
section.block {
  position: relative;
  padding: 120px 0;
  scroll-margin-top: 84px;
}
.hero { scroll-margin-top: 0; }
.kicker {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 16px;
}
.h-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}
.h-sub {
  margin-top: 16px;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 17px;
  margin-right: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* JOURNEY */
.journey-track {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.journey-track::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), var(--gold), var(--line), transparent);
}
.j-node {
  padding: 0 12px;
  text-align: center;
}
.j-key {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: clamp(14px, 1.8vw, 20px);
  color: var(--white);
  position: relative;
}
.j-key::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: var(--muted);
  box-shadow: 0 0 0 6px rgba(22,31,48,1);
  position: relative;
  z-index: 1;
}
.j-node.now .j-key { color: var(--gold); }
.j-node.now .j-key::before {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(22,31,48,1), 0 0 18px var(--gold);
}
.j-ar { margin-top: 10px; color: var(--muted-2); font-size: 13px; }
.j-line { margin-top: 6px; color: var(--muted); font-size: 12px; }

/* OUTCOMES horizontal */
.outcomes-rail {
  margin-top: 56px;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.outcome {
  flex: 0 0 min(78vw, 380px);
  scroll-snap-align: start;
  padding: 28px 8px 8px 0;
  border-top: 1px solid var(--hair);
  min-height: 220px;
}
.outcome .n {
  font-family: var(--mono);
  color: var(--gold);
  font-size: 12px;
}
.outcome .en {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.outcome .ar { margin-top: 8px; color: var(--gold-2); font-size: 15px; }
.outcome .line { margin-top: 16px; color: var(--text-dim); font-size: 14px; max-width: 32ch; }

/* CONCEPT */
.concept-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}
.token-list { display: grid; gap: 0; }
.token {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}
.token:last-child { border-bottom: 1px solid var(--hair); }
.token b {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.08em;
}
.token span { color: var(--text-dim); font-size: 14px; }

/* ANATOMY */
.anatomy {
  padding-top: 40px;
}
.prompt-shell {
  margin-top: 48px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(28,38,58,0.7), rgba(16,22,34,0.9));
  position: relative;
}
.prompt-shell header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
}
.prompt-shell header .live {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}
.prompt-shell header .live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.prompt-body {
  padding: 28px 24px 32px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 2;
  color: rgba(255,255,255,0.86);
  white-space: pre-wrap;
  text-align: right;
}
.layers {
  margin-top: 8px;
  display: grid;
  gap: 0;
}
.layer {
  display: grid;
  grid-template-columns: 140px 1fr 1.1fr;
  gap: 20px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
  transition: background 0.35s;
}
.layer:hover, .layer.on { background: rgba(210,160,84,0.04); }
.layer .lbl {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--white);
}
.layer .q { color: var(--muted-2); font-size: 13px; }
.layer .tx { color: var(--text); font-size: 14px; }
.layer .lbl small {
  display: block;
  margin-top: 4px;
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold);
  font-size: 12px;
}

/* SHIFT SLIDER */
.shift-stage {
  margin-top: 48px;
  position: relative;
  min-height: 340px;
  border: 1px solid var(--hair);
  overflow: hidden;
  background: #101623;
}
.shift-pane {
  padding: 36px 32px 80px;
}
.shift-pane .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.shift-pane.bad .tag { color: #C97878; }
.shift-pane.good .tag { color: var(--green); }
.shift-pane pre {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
}
.shift-good {
  position: absolute;
  inset: 0;
  background: #101623;
  clip-path: inset(0 100% 0 0);
}
.shift-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  transform: translateX(50%);
  left: 0;
  cursor: ew-resize;
  z-index: 3;
  touch-action: none;
}
.shift-handle .bar {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(210,160,84,0.55);
}
.shift-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(22,31,48,0.9);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 800;
}

/* BATTLE */
.arena {
  margin-top: 56px;
  position: relative;
}
.arena-core {
  text-align: center;
  margin-bottom: 28px;
}
.arena-core .same {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  padding: 8px 14px;
}
.arena-core p {
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 15px;
}
.models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.model {
  background: var(--navy);
  padding: 28px 22px 24px;
  cursor: pointer;
  transition: transform 0.45s var(--ease), background 0.45s;
  position: relative;
}
.model:hover { background: #1A2438; }
.model.active {
  background: #1E2A42;
  z-index: 2;
  transform: translateY(-8px);
}
.model .nm {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
}
.model .fit { margin-top: 6px; color: var(--muted-2); font-size: 12px; }
.model .note { margin-top: 16px; color: var(--text-dim); font-size: 13px; min-height: 3.4em; }
.bars { margin-top: 18px; display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; }
.bar-row span { font-size: 11px; color: var(--muted-2); }
.bar-row .meter {
  height: 2px;
  background: var(--hair);
  position: relative;
}
.bar-row .meter i {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  background: var(--gold);
  width: var(--w);
  opacity: 0.28;
  transition: opacity 0.45s var(--ease);
}
.model.active .bar-row .meter i { opacity: 1; }
.thesis {
  margin-top: 28px;
  text-align: center;
  font-size: 16px;
  color: var(--gold-2);
}

/* LAB */
.lab-stage {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  min-height: 280px;
}
.lab-steps { display: grid; gap: 0; align-content: start; }
.lab-step {
  text-align: right;
  background: none;
  border: 0;
  border-right: 1px solid var(--hair);
  color: var(--muted);
  padding: 14px 16px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-family: var(--display);
  font-weight: 700;
  transition: color 0.3s, border-color 0.3s;
}
.lab-step.on {
  color: var(--gold);
  border-right-color: var(--gold);
}
.lab-panel {
  border-top: 1px solid var(--hair);
  padding-top: 24px;
}
.lab-panel .n { font-family: var(--mono); color: var(--gold); font-size: 12px; }
.lab-panel h3 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
}
.lab-panel .ar { color: var(--gold-2); margin-top: 6px; }
.lab-panel p { margin-top: 18px; color: var(--text-dim); max-width: 48ch; font-size: 16px; }

/* MISSION */
.mission {
  border: 1px solid var(--line);
  padding: 48px 40px;
  position: relative;
  background: radial-gradient(600px 200px at 100% 0%, rgba(210,160,84,0.08), transparent 50%);
}
.mission .code {
  font-family: var(--display);
  letter-spacing: 0.28em;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}
.mission h2 {
  margin-top: 12px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -0.03em;
}
.specs {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.spec dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.spec dd { color: var(--text); font-size: 15px; }
.accept {
  margin-top: 36px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 14px 28px;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-family: var(--display);
  font-weight: 800;
  cursor: pointer;
  transition: background 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.accept:hover { background: var(--gold); color: var(--navy); }
.accept.active {
  background: var(--gold);
  color: var(--navy);
  transform: scale(1.02);
}

/* FINALE + NEXT */
.finale {
  text-align: center;
  padding-top: 40px;
}
.finale .ready {
  color: var(--muted-2);
  letter-spacing: 0.2em;
  font-size: 12px;
  font-family: var(--display);
}
.chain {
  margin: 40px 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: clamp(16px, 3vw, 26px);
}
.chain span { color: var(--muted); transition: color 0.6s; }
.chain span.on { color: var(--gold); }
.chain .sep { color: var(--hair); font-weight: 400; }

.next-card {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.next-card .shift-word {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}
.next-card .shift-word em {
  font-style: normal;
  color: var(--gold);
}
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--white);
  padding: 12px 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  transition: background 0.3s, color 0.3s;
}
.btn-next:hover { background: var(--white); color: var(--navy); }

footer.mini {
  padding: 40px 0 60px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--hair);
  margin-top: 40px;
}

/* MENU overlay */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(11,16,24,0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.overlay-menu.open { opacity: 1; visibility: visible; }
.overlay-menu nav { display: grid; gap: 18px; text-align: center; }
.overlay-menu a {
  font-family: var(--display);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.12em;
}
.overlay-menu a:hover { color: var(--gold); }

/* RESPONSIVE */
@media (min-width: 1100px) {
  .wrap { padding-left: 88px; }
}
@media (max-width: 980px) {
  .side-index { display: none; }
  .concept-grid, .lab-stage, .layer, .next-card { grid-template-columns: 1fr; }
  .layer { gap: 6px; padding: 18px 0; }
  .journey-track { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .journey-track::before { display: none; }
  .models { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .mission { padding: 32px 22px; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  section.block { padding: 88px 0; }
  .capsule { width: calc(100vw - 20px); gap: 8px; padding-inline: 8px; }
  .cap-brand .muted, .cap-mid span.hide-sm { display: none; }
  .hero { padding: 108px 18px 72px; }
  .hero-meta { gap: 12px; font-size: 10px; }
  .shift-pane { padding: 24px 18px 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .boot { display: none; }
}
