:root {
  --red: #c1121f;
  --red-deep: #9c0e18;
  --bg-0: #05070b;
  --bg-1: #0b1119;
  --bg-2: #121a28;
  --line: #364253;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #edf3fa;
  --muted: #adbac9;
  --max: 1380px;
  /* Fluid bar height: phones → desktop */
  --header-h: clamp(48px, 9vw, 64px);
  --header-safe-top: env(safe-area-inset-top, 0px);
  --header-safe-x: max(0px, env(safe-area-inset-left, 0px));
  --header-safe-right: max(0px, env(safe-area-inset-right, 0px));
  --scene-shift: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: Inter, sans-serif;
  color: var(--text);
  line-height: 1.62;
  background:
    radial-gradient(1200px 720px at -4% -4%, rgba(193, 18, 31, calc(0.12 + var(--scene-shift) * 0.02)), transparent 60%),
    radial-gradient(860px 560px at 108% 8%, rgba(193, 18, 31, calc(0.08 + var(--scene-shift) * 0.02)), transparent 58%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 50%, var(--bg-2));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  width: min(100% - 52px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
}
.skip-link:focus { left: 12px; top: 12px; }

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff5c68);
}

.chapter-cut {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: radial-gradient(circle at 50% 50%, rgba(255, 72, 88, 0.18), transparent 64%);
  pointer-events: none;
  opacity: 0;
}

.chapter-cut.flash { animation: chapterFlash 320ms ease-out; }

.spotlight {
  position: fixed;
  left: var(--spot-x, 50%);
  top: var(--spot-y, 40%);
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 70, 88, 0.14), transparent 64%);
  filter: blur(14px);
  opacity: 0.55;
  transition: left 140ms linear, top 140ms linear;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  min-height: var(--header-h);
  padding-top: var(--header-safe-top);
  padding-left: var(--header-safe-x);
  padding-right: var(--header-safe-right);
  height: calc(var(--header-h) + var(--header-safe-top));
  border-bottom: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.header-shell {
  width: min(100% - clamp(14px, 4vw, 28px), 100%);
  max-width: 100%;
  min-width: 0;
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  overflow-x: clip;
  box-sizing: border-box;
}

.brand {
  min-width: 0;
  flex-shrink: 1;
}

.brand-logo {
  width: clamp(96px, 24vw, 166px);
  height: auto;
  filter: drop-shadow(0 0 14px rgba(193, 18, 31, 0.34));
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.main-nav a {
  position: relative;
  padding: 7px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, rgba(193, 18, 31, 0.95), transparent);
  transition: transform 220ms ease;
}

.main-nav a:hover,
.main-nav a.active { color: #f7fbff; }

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.85);
  color: #eaf2fc;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:active {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
  transition: background 0.2s ease;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-toggle-bars::before {
  top: -7px;
}

.menu-toggle-bars::after {
  top: 7px;
}

.menu-toggle.is-active .menu-toggle-bars {
  background: transparent;
}

.menu-toggle.is-active .menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(4, 10, 18, 0.34);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.48s;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.38s ease, visibility 0s;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.header-actions,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-btn-text--short {
  display: none;
}

.btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-1px); }

.btn-red {
  color: #fff;
  background: linear-gradient(180deg, #d41728, var(--red-deep));
  border-color: #d82030;
}

.btn-red:hover { background: linear-gradient(180deg, #e21c2e, #b1111e); }

.btn-ghost {
  color: #dce5f1;
  border-color: #425062;
  background: rgba(255, 255, 255, 0.02);
}

.btn:focus-visible,
.main-nav a:focus-visible,
.menu-toggle:focus-visible,
summary:focus-visible,
.sim-track:focus-visible,
.sim-node:focus-visible {
  outline: 2px solid #ff5b68;
  outline-offset: 2px;
}

.chapter-nav {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: grid;
  gap: 8px;
}

.chapter-nav a {
  border: 1px solid #3a4658;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #c8d2df;
  background: rgba(8, 12, 18, 0.7);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.chapter-nav a.active {
  border-color: #8e2a36;
  color: #ffdbe0;
  transform: translateX(-4px);
}

.chapter {
  position: relative;
  scroll-margin-top: calc(var(--header-h) + var(--header-safe-top) + 18px);
}

.hero {
  min-height: 100svh;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

#forge-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-veils {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 82% 22%, rgba(193, 18, 31, 0.2), transparent 64%),
    linear-gradient(112deg, rgba(5, 8, 13, 0.2) 0%, rgba(5, 8, 13, 0.74) 52%, rgba(5, 8, 13, 0.82) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(100% - 52px, var(--max));
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  gap: 28px;
  align-items: end;
  padding: 78px 0 84px;
}

.kicker,
.section-label {
  margin: 0;
  display: inline-flex;
  border: 1px solid #61252e;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(193, 18, 31, 0.13);
  color: #f7ced4;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


h1 {
  margin: 14px 0 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(56px, 8.2vw, 116px);
  line-height: 0.85;
  text-transform: uppercase;
  max-width: 10.3ch;
}

h1 span {
  display: block;
  color: #f1f6fd;
  transform: translateX(var(--hero-shift, 0px));
  transition: transform 180ms linear;
}

.hero-copy {
  margin: 0;
  max-width: 64ch;
  font-size: 18px;
  color: #d3dce8;
}

.hero-rail {
  position: relative;
  border: 1px solid #4a3a48;
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(440px 240px at 100% 0, rgba(193, 18, 31, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(29, 18, 24, 0.83), rgba(10, 15, 23, 0.95));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.hero-cmark {
  position: absolute;
  top: -34px;
  right: -28px;
  width: 210px;
  opacity: 0.52;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: cmarkDrift 6s ease-in-out infinite;
}

.hero-rail h2 {
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-rail ul {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  position: relative;
  z-index: 1;
}

.hero-rail li {
  border: 1px solid #364352;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.hero-rail a {
  color: #ffd8dd;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rail-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #364352;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5deea;
}

.rail-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4658;
  box-shadow: 0 0 11px rgba(255, 70, 88, 0.84);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.hero-signal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
}

.signal-track {
  width: max-content;
  display: flex;
  gap: 36px;
  padding: 11px 0;
  animation: marquee 24s linear infinite;
}

.signal-track span {
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4dde8;
}

.section {
  padding: 118px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-title {
  margin: 13px 0 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(48px, 6vw, 94px);
  line-height: 0.9;
  text-transform: uppercase;
  max-width: 12.8ch;
}

.section-lead {
  margin: 0;
  max-width: 78ch;
  color: #d0d9e5;
  font-size: 18px;
}

.typing-title {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

#typed-wrap {
  min-width: 22ch;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

#typed-text {
  color: #ffdbe1;
  text-shadow: 0 0 18px rgba(193, 18, 31, 0.36);
}

#typed-wrap::after {
  content: "";
  width: 2px;
  height: 0.92em;
  margin-left: 4px;
  background: #ffdbe1;
  display: inline-block;
  animation: caretBlink 0.8s steps(1) infinite;
}

.lane-list {
  margin-top: 38px;
  display: grid;
  gap: 14px;
}

.lane {
  border: 1px solid #334254;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.012));
  transform-style: preserve-3d;
  transition: transform 200ms ease, border-color 200ms ease;
}

.lane:hover { border-color: #50637c; }

.lane h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 0.9;
  text-transform: uppercase;
}

.lane p { margin: 0; color: #d5deea; font-size: 17px; }

.lane-tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lane-tags span {
  border: 1px solid #39495c;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #dce5f2;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.process-shell { display: grid; gap: 40px; }

.process-sticky {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 390px);
  gap: 24px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.process-item {
  border: 1px solid #334254;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms ease;
}

.process-item.is-active {
  border-color: #a2313e;
  background: rgba(193, 18, 31, 0.1);
  transform: translateX(4px);
}

.process-item .num {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #6c2a34;
  display: grid;
  place-items: center;
  color: #f7cad0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.process-item h3 {
  margin: 2px 0 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  line-height: 0.92;
  text-transform: uppercase;
}

.process-item p { margin: 0; color: #d4ddea; }

.process-visual {
  position: sticky;
  top: calc(var(--header-h) + var(--header-safe-top) + 20px);
  border: 1px solid #3e4b5c;
  border-radius: 22px;
  min-height: 360px;
  background:
    radial-gradient(circle at 50% 50%, rgba(193, 18, 31, 0.15), transparent 62%),
    linear-gradient(180deg, rgba(16, 21, 31, 0.86), rgba(9, 13, 20, 0.96));
  overflow: hidden;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--scan-y, 8%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 76, 92, 0.95), transparent);
  box-shadow: 0 0 16px rgba(255, 76, 92, 0.5);
  transition: top 180ms linear;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 120, 133, 0.28);
}

.ring-a { width: 190px; height: 190px; left: calc(50% - 95px); top: calc(50% - 95px); animation: ringPulse 3.1s ease-in-out infinite; }
.ring-b { width: 250px; height: 250px; left: calc(50% - 125px); top: calc(50% - 125px); animation: ringPulse 3.6s ease-in-out infinite 0.25s; }
.ring-c { width: 320px; height: 320px; left: calc(50% - 160px); top: calc(50% - 160px); animation: ringPulse 4.1s ease-in-out infinite 0.5s; }

.sim-shell {
  margin-top: 34px;
  border: 1px solid #39485b;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(500px 220px at 0 0, rgba(193, 18, 31, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(18, 24, 36, 0.86), rgba(10, 14, 21, 0.95));
  display: grid;
  gap: 20px;
}

.sim-track-wrap {
  overflow: clip;
  padding-bottom: 8px;
}

.sim-track {
  position: relative;
  min-width: 760px;
  height: 136px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0;
  user-select: none;
  overflow: visible;
}

.sim-label-row {
  margin-top: 8px;
  min-width: 760px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  text-align: center;
  padding-inline: 40px;
}

.sim-label-row span {
  color: #d9e3ef;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.sim-rail,
.sim-fill,
.sim-ties {
  position: absolute;
  left: 40px;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.sim-rail {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7186a1, #4c6077);
}

.sim-rail.rail-top { margin-top: -12px; }
.sim-rail.rail-bottom { margin-top: 12px; }

.sim-ties {
  height: 28px;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 32px,
      rgba(67, 82, 102, 0.78) 32px 42px
    );
  opacity: 0.75;
  border-radius: 10px;
}

.sim-fill {
  width: var(--sim-fill, 0%);
  right: auto;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7382, #c1121f);
  box-shadow: 0 0 18px rgba(193, 18, 31, 0.42);
}

.sim-node {
  position: relative;
  width: 100%;
  border: none;
  background: transparent;
  color: #ccd7e5;
  font: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sim-node::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #607591;
  background: linear-gradient(180deg, #2c3e55, #1c2a3d);
  box-shadow: 0 0 0 4px rgba(20, 27, 40, 0.35);
  z-index: 2;
  transition: opacity 180ms ease, transform 180ms ease;
}

.sim-node.is-active::before {
  border-color: #8ca1bb;
  background: linear-gradient(180deg, #3a506b, #23364d);
  box-shadow: 0 0 0 4px rgba(20, 27, 40, 0.35), 0 0 12px rgba(255, 92, 108, 0.2);
}

.sim-node.is-under-piece::before {
  opacity: 0;
  transform: scale(0.7);
}

.sim-piece {
  position: absolute;
  top: calc(50% - 22px);
  left: var(--piece-x, 40px);
  width: 76px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #6c7f97;
  background:
    linear-gradient(155deg, #d6dee9, #8e9eb2 62%, #5f7189);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(193, 18, 31, 0.24);
  transform: translateX(-50%);
  cursor: grab;
  transition: left 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 6;
}

.sim-piece::before,
.sim-piece::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2c3c52;
  bottom: 8px;
  z-index: 1;
}

.sim-piece::before { left: 10px; }
.sim-piece::after { right: 10px; }

.sim-piece span {
  position: relative;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #122033;
  font-weight: 800;
  pointer-events: none;
}

.sim-piece.dragging {
  cursor: grabbing;
  transition: none;
}

.sim-panel {
  border: 1px solid #3b4b60;
  border-radius: 16px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.24);
}

.sim-eyebrow {
  margin: 0;
  color: #f3cad1;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-panel h3 {
  margin: 8px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.9;
  text-transform: uppercase;
}

.sim-panel p { margin: 0; color: #d3ddeb; }

.sim-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-meta span {
  border: 1px solid #425368;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  color: #dce6f2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.console-wrap {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 22px;
  align-items: start;
}

.console-window {
  border: 1px solid #3a4a5f;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 19, 29, 0.9), rgba(8, 12, 19, 0.97));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.console-window header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #334355;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d5deea;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5567; }
.dot.amber { background: #ffb148; }
.dot.green { background: #51d88a; }

.console-body {
  padding: 14px 14px 16px;
  display: grid;
  gap: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.console-line {
  margin: 0;
  font-size: 13px;
  color: #bcd0e6;
}

.console-line span {
  color: #ff7c8b;
}

.console-line.dynamic {
  min-height: 1.4em;
  color: #eff5fb;
  text-shadow: 0 0 10px rgba(255, 115, 129, 0.25);
}

.insights-wrap {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 20px;
}

.insights-stack { display: grid; gap: 12px; }

.insight {
  border: 1px solid #344356;
  border-radius: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.insight h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 31px;
  line-height: 0.92;
  text-transform: uppercase;
}

.insight p { margin: 0; color: #d3dcea; }

.pledge-grid {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pledge-item {
  border: 1px solid #344356;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006));
}

.pledge-item h3 {
  margin: 0 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  line-height: 0.9;
  text-transform: uppercase;
}

.pledge-item p {
  margin: 0;
  color: #d4deeb;
}

.faq-grid {
  margin-top: 26px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-item {
  border: 1px solid #344356;
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  line-height: 0.92;
  text-transform: uppercase;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 10px 0 0; color: #d4ddeb; }

.final-cta { border-bottom: none; }

.cta-shell {
  border: 1px solid #682a34;
  border-radius: 22px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  background:
    radial-gradient(520px 240px at 0 0, rgba(193, 18, 31, 0.26), transparent 64%),
    linear-gradient(180deg, rgba(30, 19, 25, 0.86), rgba(11, 16, 24, 0.96));
}

.cta-shell h2 {
  margin: 10px 0 8px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 0.9;
  text-transform: uppercase;
  max-width: 11ch;
}

.cta-shell p { margin: 0; color: #e8d9de; max-width: 62ch; }

.site-footer {
  padding: 22px 0 28px;
  color: #abb8c8;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes cmarkDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  40% { transform: translateY(-8px) rotate(-3deg); }
  70% { transform: translateY(3px) rotate(2deg); }
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.32; transform: scale(1); }
  50% { opacity: 0.78; transform: scale(1.04); }
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.72); opacity: 0.66; }
}
@keyframes chapterFlash {
  0% { opacity: 0.36; }
  100% { opacity: 0; }
}

@keyframes navLinkIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1320px) {
  .chapter-nav { display: none; }
}

@media (max-width: 1240px) {
  .hero-grid,
  .process-sticky,
  .console-wrap,
  .insights-wrap,
  .cta-shell { grid-template-columns: 1fr; }

  .process-visual {
    position: relative;
    top: auto;
    min-height: 300px;
  }
}

@media (max-width: 1020px) {
  .header-shell {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: clamp(6px, 1.8vw, 12px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  /* Tablets + phones: keep CTAs on one row, scale with viewport */
  .header-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(4px, 1.2vw, 8px);
    min-width: 0;
    width: auto;
    max-width: 100%;
  }

  .header-actions .header-btn {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: clamp(6px, 1.2vw, 10px) clamp(8px, 2vw, 14px);
    font-size: clamp(11px, 2.6vw, 13px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .header-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
  }

  .brand-logo {
    width: clamp(92px, 26vw, 154px);
  }

  /* Floating glass sheet: stays under the header row so CTAs stay visible */
  .main-nav {
    --nav-sheet-max: calc(100vh - var(--header-h) - var(--header-safe-top) - 36px);
    --nav-sheet-max: calc(100dvh - var(--header-h) - var(--header-safe-top) - 36px);

    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 96;
    width: auto;
    max-height: min(68vh, var(--nav-sheet-max));
    max-height: min(68dvh, var(--nav-sheet-max));
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    margin: 0;
    padding: 10px 12px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;

    background: rgba(18, 24, 34, 0.38);
    backdrop-filter: blur(32px) saturate(1.65);
    -webkit-backdrop-filter: blur(32px) saturate(1.65);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;

    transform: translateY(calc(110% + 28px)) scale(0.97);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      transform 0.48s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.38s ease,
      box-shadow 0.48s ease,
      visibility 0s linear 0.52s;
  }

  .main-nav::before {
    content: "";
    flex: 0 0 auto;
    width: 40px;
    height: 5px;
    margin: 4px auto 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .main-nav.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
      transform 0.48s cubic-bezier(0.32, 0.72, 0, 1),
      opacity 0.4s ease,
      box-shadow 0.48s ease,
      visibility 0s;
  }

  .main-nav.open a {
    animation: navLinkIn 0.45s cubic-bezier(0.32, 0.72, 0, 1) backwards;
  }

  .main-nav.open a:nth-child(1) { animation-delay: 0.04s; }
  .main-nav.open a:nth-child(2) { animation-delay: 0.08s; }
  .main-nav.open a:nth-child(3) { animation-delay: 0.12s; }
  .main-nav.open a:nth-child(4) { animation-delay: 0.16s; }
  .main-nav.open a:nth-child(5) { animation-delay: 0.2s; }
  .main-nav.open a:nth-child(6) { animation-delay: 0.24s; }

  .main-nav a {
    flex: 0 0 auto;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(245, 248, 255, 0.96);
    border-radius: 14px;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
  }

  .faq-grid,
  .pledge-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap,
  .hero-grid { width: min(100% - 30px, var(--max)); }

  .section { padding: 92px 0; }

  .hero-grid {
    min-height: auto;
    padding: 56px 0 78px;
    gap: 20px;
  }

  h1 { font-size: clamp(46px, 14vw, 84px); }
  .hero-copy,
  .section-lead { font-size: 16px; }

  /* Hero / CTA sections: full-width stacked buttons (not the site header) */
  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  #typed-wrap { min-width: 16.4ch; }

  .sim-track {
    min-width: 680px;
    height: 150px;
  }

  .sim-label-row {
    min-width: 680px;
  }

  .sim-track-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .sim-track-wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

/* Narrow viewports: shorter header labels so one row fits */
@media (max-width: 720px) {
  .header-actions .header-btn-text--full {
    display: none;
  }

  .header-actions .header-btn-text--short {
    display: inline;
  }
}

/* Short landscape (phones on side): keep bar shallow + nav sheet usable */
@media (max-width: 1020px) and (orientation: landscape) and (max-height: 520px) {
  :root {
    --header-h: clamp(40px, 10vh, 52px);
  }

  .brand-logo {
    width: clamp(80px, 16vw, 130px);
  }

  .main-nav {
    max-height: min(85vh, var(--nav-sheet-max));
    max-height: min(85dvh, var(--nav-sheet-max));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .chapter-cut { display: none; }
  .spotlight { display: none; }
}
