/* ============================================================
   EOS — Continuous Mobile Training Support Platform
   Design system: Dawn / Charcoal / Sunrise Orange / Fluoro
   ============================================================ */

:root {
  --navy-950: #070F22;
  --navy-900: #0A1630;
  --navy-800: #0E1F42;
  --navy-700: #16305E;
  --navy-600: #1E3F78;

  --charcoal: #14171D;
  --charcoal-2: #1B202A;
  --charcoal-3: #242B37;

  --orange-600: #E45E0A;
  --orange-500: #FF7A1A;
  --orange-400: #FF9445;
  --orange-300: #FFB27A;
  --orange-glow: rgba(255, 122, 26, 0.35);

  --fog: #F5F1E9;
  --fog-2: #E9E3D6;
  --gray: #98A4B8;
  --gray-2: #6B7688;
  --fluo: #D8F62E;
  --danger: #FF5A5A;
  --safe: #3DDC84;

  --line: rgba(245, 241, 233, 0.14);
  --line-soft: rgba(245, 241, 233, 0.08);

  --grad-dawn: linear-gradient(180deg, #070F22 0%, #0A1630 45%, #12264B 100%);
  --grad-orange: linear-gradient(100deg, #FF7A1A 0%, #FFB27A 100%);

  --font-display: "Space Grotesk", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1180px;
  --nav-h: 68px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--fog);
  line-height: 1.65;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--orange-400); text-decoration: none; }
a:hover { color: var(--orange-300); }
button { font-family: inherit; }
::selection { background: var(--orange-500); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; color: var(--fog); }

:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; }

.sec { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.sec-head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.overline {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-400);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.overline::before { content: ""; width: 26px; height: 1px; background: var(--orange-500); display: inline-block; }
.sec-head.center .overline::before,
.overline.centered::before { display: none; }

h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.05rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 12px; }
h4 { font-size: 1.12rem; margin-bottom: 8px; }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--gray); max-width: 700px; }
.sec-head.center .lede { margin: 0 auto; }
.lede strong { color: var(--fog); font-weight: 600; }

.text-muted { color: var(--gray); }
.text-orange { color: var(--orange-400); }
.mono { font-family: var(--font-mono); }
.small { font-size: 0.86rem; }
.tiny { font-size: 0.78rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad-orange);
  color: #fff;
  box-shadow: 0 6px 28px var(--orange-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 40px rgba(255, 122, 26, 0.55); transform: translateY(-2px); }
.btn-outline {
  border-color: var(--line);
  color: var(--fog);
  background: rgba(245, 241, 233, 0.04);
}
.btn-outline:hover { border-color: var(--orange-400); color: var(--orange-300); transform: translateY(-2px); }
.btn-ghost { color: var(--gray); padding: 14px 18px; }
.btn-ghost:hover { color: var(--fog); }
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.arrow-link { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--orange-400); display: inline-flex; align-items: center; gap: 8px; }
.arrow-link::after { content: "→"; transition: transform 0.2s ease; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 15, 34, 0.82); backdrop-filter: blur(14px); border-color: var(--line-soft); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--fog); font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: 0.04em; }
.brand:hover { color: var(--fog); }
.brand-mark { width: 30px; height: 30px; }
.brand-logo-box {
  display: inline-flex;
  align-items: center;
  background: var(--fog);
  border-radius: 10px;
  padding: 7px 16px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(245, 241, 233, 0.55);
  flex-shrink: 0;
  line-height: 0;
}
.brand-logo { height: 26px; width: auto; display: block; }
.brand-tag { display: block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--gray-2); text-transform: uppercase; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--gray);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 9px 13px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--fog); background: rgba(245, 241, 233, 0.06); }
.nav-links a.active { color: var(--orange-400); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span { width: 22px; height: 2px; background: var(--fog); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy-950);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--fog);
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu a span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--orange-400); letter-spacing: 0.15em; }
.mobile-menu .btn { margin-top: 26px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 70px 0 40px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.35)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; }
.footer h5 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-2); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--gray); font-size: 0.92rem; }
.footer ul a:hover { color: var(--orange-300); }
.footer-bottom { margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; color: var(--gray-2); font-size: 0.84rem; }
.footer-tag { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; color: var(--fog); font-size: 0.95rem; }

/* ---------- Cards & chips ---------- */
.card {
  background: linear-gradient(160deg, rgba(245, 241, 233, 0.055), rgba(245, 241, 233, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.card h3 { margin-bottom: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gray);
  background: rgba(245, 241, 233, 0.03);
  white-space: nowrap;
}
.chip.orange { color: var(--orange-300); border-color: rgba(255, 122, 26, 0.4); background: rgba(255, 122, 26, 0.08); }
.chip.fluo { color: var(--fluo); border-color: rgba(216, 246, 46, 0.35); background: rgba(216, 246, 46, 0.07); }
.chip.green { color: var(--safe); border-color: rgba(61, 220, 132, 0.4); background: rgba(61, 220, 132, 0.07); }
.chip.red { color: #FF8A8A; border-color: rgba(255, 90, 90, 0.4); background: rgba(255, 90, 90, 0.07); }
.chip.gray { color: var(--gray-2); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.table-wrap .table { border: none; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-2);
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
.table td { padding: 17px 22px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table td:first-child { font-weight: 600; color: var(--fog); }
.table .muted { color: var(--gray); font-weight: 400; }
.table .num { font-family: var(--font-mono); font-size: 1.12rem; color: var(--orange-300); }
.table .num.warn { color: var(--gray); }

/* ---------- Stats ---------- */
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fog);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .unit { font-size: 0.42em; color: var(--orange-400); font-weight: 600; }
.stat-label { margin-top: 10px; color: var(--gray); font-size: 0.92rem; }
.stat-src { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.src-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gray-2);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.src-btn:hover { color: var(--orange-300); border-color: var(--orange-400); }
.src-note {
  position: fixed;
  z-index: 130;
  max-width: 400px;
  background: var(--charcoal-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--gray);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: none;
}
.src-note.show { display: block; }
.src-note b { color: var(--fog); display: block; margin-bottom: 6px; }
.src-note a { word-break: break-all; }

/* ---------- Media / evidence cards ---------- */
.media-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--charcoal); }
.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255, 122, 26, 0.14), transparent 55%),
    linear-gradient(170deg, #10182E, #0A1228 60%, #0D1420);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.media-frame .play {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 122, 26, 0.85);
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 0 12px rgba(255, 122, 26, 0.12);
}
.media-frame .play:hover { transform: scale(1.08); background: var(--orange-400); }
.media-frame .play svg { width: 22px; height: 22px; margin-left: 3px; }
.media-tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog);
  background: rgba(7, 15, 34, 0.75);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.media-body { padding: 18px 20px; }
.media-body h4 { margin-bottom: 6px; }
.media-body p { color: var(--gray); font-size: 0.9rem; }

/* ---------- Home: shared scene scaffolding ---------- */
.home-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.home-stage { position: relative; z-index: 2; }

.runner-fixed, .eos-fixed {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.runner-fixed { left: 50%; top: 40%; opacity: 1; }
.runner-fixed svg { filter: drop-shadow(0 4px 16px rgba(255, 122, 26, 0.28)) drop-shadow(0 0 8px rgba(255, 150, 70, 0.35)); }
.runner-fixed.run { animation: runbob 0.55s ease-in-out infinite alternate; }
.runner-fixed .streak { animation: streakpulse 1.3s ease-in-out infinite; }
@keyframes streakpulse { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.85; } }

/* running limbs — swing around hip/shoulder, speed driven by --stride (scroll velocity) */
.runner-fixed .leg, .runner-fixed .arm {
  transform-box: view-box;
  transform-origin: 66px 68px;
  animation: leg-f 0.5s ease-in-out infinite alternate;
  animation-duration: var(--stride, 0.5s);
}
.runner-fixed .leg-b { animation-name: leg-b; }
.runner-fixed .arm { transform-origin: 54px 38px; animation-name: arm-f; animation-duration: calc(var(--stride, 0.5s) * 0.9); }
.runner-fixed .arm-b { animation-name: arm-b; }
@keyframes leg-f { from { transform: rotate(26deg); } to { transform: rotate(-22deg); } }
@keyframes leg-b { from { transform: rotate(-26deg); } to { transform: rotate(22deg); } }
@keyframes arm-f { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes arm-b { from { transform: rotate(20deg); } to { transform: rotate(-20deg); } }
.eos-fixed { left: 50%; top: 40%; opacity: 0; }
.shadow-fixed {
  position: fixed;
  z-index: 1;
  width: 84px; height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(4px);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.eos-glow {
  position: fixed;
  z-index: 1;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.35), transparent 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  filter: blur(6px);
}

.scene {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
.scene-head { position: relative; z-index: 3; }

.hud-panel {
  font-family: var(--font-mono);
  background: rgba(7, 15, 34, 0.6);
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 14px;
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: inline-block;
}
.hud-panel .row { display: flex; gap: 30px; flex-wrap: wrap; }
.hud-panel .cell b { display: block; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--orange-400); font-weight: 600; margin-bottom: 6px; }
.hud-panel .cell span { font-size: 1.05rem; color: var(--fog); letter-spacing: 0.05em; }

.hud-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); min-width: 240px; }
.hud-row:last-child { border-bottom: none; }
.hud-row.on { opacity: 1; transform: none; }
.hud-row.flash { animation: hudflash 0.9s ease; border-radius: 6px; }
@keyframes hudflash { 0% { background: rgba(255, 122, 26, 0.28); } 100% { background: transparent; } }
.hud-row b { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--gray); font-weight: 600; }
.hud-row span { font-size: 0.95rem; color: var(--orange-300); letter-spacing: 0.06em; }

.pmark {
  position: fixed;
  right: 30px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gray);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(7, 15, 34, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.pmark .x { display: block; color: var(--danger); margin-top: 3px; font-size: 9.5px; }
@media (max-width: 760px) { .pmark { display: none; } }

.rev-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 34px; }
.rev-item { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--gray-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-transform: uppercase; transition: all 0.3s ease; }
.rev-item .n { color: var(--orange-400); margin-right: 8px; }
.rev-item.on { color: var(--fog); border-color: rgba(255, 122, 26, 0.55); background: rgba(255, 122, 26, 0.08); }

.reveal-msg { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); text-align: center; font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.9rem); font-weight: 700; transition: opacity 0.5s ease; z-index: 4; }

.demo-status .s-chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--gray-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; transition: all 0.25s ease; }
.demo-status .s-chip.on { color: #0A1228; background: var(--orange-400); border-color: var(--orange-400); }
.demo-status .s-note { color: var(--gray-2); font-size: 10.5px; letter-spacing: 0.08em; margin-left: auto; }

.route-rail {
  position: fixed;
  right: 50%;
  bottom: 18px;
  transform: translateX(50%);
  z-index: 40;
  background: rgba(7, 15, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px 10px;
  backdrop-filter: blur(8px);
  width: min(340px, 90vw);
  opacity: 0;
  transform: translateX(50%) translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.route-rail.show { opacity: 1; transform: translateX(50%); }
.rail-track { position: relative; height: 14px; }
.rail-track::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 50%;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,122,26,.65), rgba(255,178,122,.28));
}
.rail-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange-400);
  box-shadow: 0 0 0 4px rgba(255,122,26,.2), 0 0 14px rgba(255,122,26,.8);
  transform: translate(-50%, -50%);
  transition: left 0.2s linear;
}
.rail-km {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray-2);
  background: rgba(7,15,34,.9);
  padding: 1px 4px;
  border-radius: 6px;
}
.rail-km.fat { color: var(--orange-300); }
.rail-readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--gray);
}
.rail-readout #rail-time { color: var(--gray-2); }

.cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 5;
  transition: opacity 0.5s ease;
}
.cue .wheel {
  width: 24px; height: 40px;
  border: 2px solid var(--gray);
  border-radius: 12px;
  position: relative;
}
.cue .wheel::after {
  content: "";
  position: absolute;
  top: 6px; left: 50%;
  width: 3px; height: 8px;
  background: var(--orange-400);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: cue-dot 1.6s ease-in-out infinite;
}
@keyframes cue-dot {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0.2; }
  100% { top: 22px; opacity: 0; }
}

/* ---------- Home: problem scene ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.problem-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(160deg, rgba(245, 241, 233, 0.05), rgba(245, 241, 233, 0.015));
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 90% 0%, rgba(255, 90, 90, 0.08), transparent 60%);
  pointer-events: none;
}
.problem-card .idx { font-family: var(--font-mono); font-size: 12px; color: var(--danger); letter-spacing: 0.12em; }
.problem-card h3 { margin: 12px 0 10px; }
.problem-card p { color: var(--gray); font-size: 0.98rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 34px; }

/* ---------- Home: experience waypoints ---------- */
.waypoints { position: relative; display: flex; flex-direction: column; gap: 22px; margin-top: 44px; }
.waypoint {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(245, 241, 233, 0.055), rgba(245, 241, 233, 0.018));
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.waypoint:hover { border-color: rgba(255, 122, 26, 0.45); transform: translateX(4px); }
.wp-viz { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line-soft); background: #0B1430; display: grid; place-items: center; overflow: hidden; }
.wp-viz svg { width: 100%; height: 100%; }
.wp-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.wp-no { font-family: var(--font-mono); color: var(--orange-400); font-size: 0.82rem; letter-spacing: 0.12em; }
.wp-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--fog); }
.wp-desc { color: var(--gray); font-size: 0.96rem; max-width: 640px; }
.wp-caps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ---------- Home: product reveal ---------- */
.reveal-stage { position: relative; min-height: 150vh; }
.reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.reveal-scene { position: relative; width: min(720px, 88vw); }
.reveal-msg { position: absolute; z-index: 3; max-width: 560px; }
.reveal-msg.left { left: max(24px, calc(50% - min(720px, 88vw) / 2 - 300px)); top: 50%; transform: translateY(-50%); text-align: right; }
.reveal-msg.right { right: max(24px, calc(50% - min(720px, 88vw) / 2 - 300px)); top: 50%; transform: translateY(-50%); }
@media (max-width: 1080px) { .reveal-msg { display: none; } }

.bot-royale { width: 100%; height: auto; }

/* Eos bot module animations */
.bot-part { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; transform-origin: center; }
.home-stage .bot-part { transition: none; }
.bot-exploded [data-part="comm"] { transform: translate(-120px, -150px); }
.bot-exploded [data-part="safety"] { transform: translate(40px, -150px); }
.bot-exploded [data-part="cargo"] { transform: translate(0px, -175px); }
.bot-exploded [data-part="percept"] { transform: translate(70px, -130px); }
.bot-exploded [data-part="illum"] { transform: translate(195px, -25px); }
.bot-exploded [data-part="chassis"] { transform: translate(0px, 20px); }
.bot-exploded [data-part="motion-l"] { transform: translate(-150px, 85px); }
.bot-exploded [data-part="motion-r"] { transform: translate(150px, 85px); }

.explain-toggle { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }

/* ---------- Home: technology diagram ---------- */
.tech-diagram {
  max-width: 640px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tlayer {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  background: linear-gradient(150deg, rgba(245, 241, 233, 0.05), rgba(245, 241, 233, 0.015));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 0.35;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.tlayer.on { opacity: 1; border-color: rgba(255, 122, 26, 0.4); transform: translateX(8px); }
.tlayer b { font-family: var(--font-display); font-size: 1.02rem; }
.tlayer span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray-2); text-transform: uppercase; letter-spacing: 0.1em; }
.tarrow { text-align: center; color: var(--orange-400); font-family: var(--font-mono); font-size: 0.8rem; padding: 5px 0; opacity: 0; transition: opacity 0.3s ease; }
.tarrow.on { opacity: 1; }

/* ---------- Home: safety demo ---------- */
.safety-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; margin-top: 40px; }
.layer-list { display: flex; flex-direction: column; gap: 14px; }
.layer-item { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: rgba(245, 241, 233, 0.03); }
.layer-no { font-family: var(--font-mono); color: var(--orange-400); font-size: 0.8rem; padding-top: 3px; min-width: 26px; }
.layer-item b { display: block; margin-bottom: 4px; }
.layer-item p { color: var(--gray); font-size: 0.92rem; margin: 0; }

.demo-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #0A1228; }
.demo-status {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gray-2);
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-status .seq { color: var(--orange-400); }
.demo-lane {
  position: relative;
  height: 168px;
  margin: 18px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(90deg, rgba(245, 241, 233, 0.045) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, rgba(255, 122, 26, 0.05), transparent 55%);
  overflow: hidden;
  touch-action: none;
}
.lane-line { position: absolute; left: 0; right: 0; bottom: 44px; height: 2px; background: var(--line); }
.lane-zones { position: absolute; inset: 0; display: flex; }
.zone { flex: 1; border-left: 1px dashed var(--line-soft); position: relative; }
.zone:first-child { border-left: none; }
.zone-label { position: absolute; bottom: 10px; left: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; color: var(--gray-2); text-transform: uppercase; }
.demo-bot {
  position: absolute;
  bottom: 26px;
  width: 74px;
  transform: translateX(-50%);
  transition: left 0.16s linear;
  filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.35));
}
.demo-bot svg { width: 100%; }
.demo-bot.light .bot-light { animation: bot-flash 0.25s ease infinite alternate; }
@keyframes bot-flash { from { opacity: 0.4; } to { opacity: 1; } }
.demo-obstacle {
  position: absolute;
  bottom: 26px;
  transform: translateX(-50%);
  width: 58px;
  transition: left 0.5s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.demo-obstacle svg { width: 100%; }
.demo-tray { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.drag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--charcoal-2);
  cursor: grab;
  user-select: none;
  font-size: 0.88rem;
  color: var(--fog);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.drag-item:hover { border-color: var(--orange-400); }
.drag-item:active { cursor: grabbing; transform: scale(1.05); }
.drag-item svg { width: 22px; height: 22px; }
.demo-ghost { position: fixed; z-index: 200; pointer-events: none; }
.demo-note { font-size: 0.82rem; color: var(--gray-2); margin-top: 8px; }
.demo-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--gray); text-transform: uppercase; }
.demo-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.dot-detect { background: var(--gray); }
.dot-assess { background: #FFC857; }
.dot-slow { background: var(--orange-500); }
.dot-stop { background: var(--danger); }

/* ---------- Metrics table (home + validation) ---------- */
.metrics-note { margin-top: 18px; font-size: 0.85rem; color: var(--gray-2); display: flex; gap: 8px; align-items: flex-start; }
.metrics-note .flag { color: var(--orange-400); font-family: var(--font-mono); font-size: 0.75rem; border: 1px solid rgba(255,122,26,.4); border-radius: 6px; padding: 2px 8px; white-space: nowrap; margin-top: 2px; }

/* ---------- SDG cards ---------- */
.sdg-list { display: flex; flex-direction: column; gap: 18px; }
.sdg-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; background: linear-gradient(160deg, rgba(245, 241, 233, 0.05), rgba(245, 241, 233, 0.015)); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: center; }
.sdg-image { display: block; width: 240px; height: 240px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,.22); grid-row: 1 / span 3; }
.sdg-card > .sdg-badge, .sdg-card > p { grid-column: 2; }
.sdg-badge { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--fog); margin-bottom: 14px; }
.sdg-badge .sq { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 0.8rem; color: #fff; }
.sdg-3 .sq { background: #4C9F38; }
.sdg-9 .sq { background: #FD6925; }
.sdg-11 .sq { background: #FD9D24; }
.sdg-card p { color: var(--gray); font-size: 0.95rem; }
.sdg-rel { margin-top: 14px; font-size: 0.85rem; color: var(--gray-2); font-family: var(--font-mono); }

@media (max-width: 760px) {
  .sdg-card { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .sdg-image { width: 100%; height: auto; max-width: 280px; justify-self: center; grid-row: auto; }
  .sdg-card > .sdg-badge, .sdg-card > p { grid-column: auto; }
}

/* ---------- Final CTA ---------- */
.final-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(100deg, var(--fog) 30%, var(--orange-300) 60%, var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-sub { color: var(--gray); margin: 18px 0 34px; max-width: 560px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) 0 clamp(64px, 8vw, 96px);
}
.product-page .page-hero {
  background-color: var(--navy-950);
  background-image: url("../WechatIMG164.jpg");
  background-size: auto calc(100% + 120px);
  background-position: center bottom;
  background-repeat: no-repeat;
}
.product-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7,15,34,0.78) 0%, rgba(7,15,34,0.6) 45%, rgba(7,15,34,0.82) 100%),
    radial-gradient(60% 60% at 50% 30%, rgba(10,22,48,0.35), transparent 70%);
  pointer-events: none;
}
.product-page .page-hero > .container { position: relative; z-index: 1; }
.about-page .page-hero {
  background-color: var(--navy-950);
  background-image: url("../WechatIMG181.jpg");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
}
.about-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7,15,34,0.78) 0%, rgba(7,15,34,0.6) 45%, rgba(7,15,34,0.82) 100%),
    radial-gradient(60% 60% at 50% 30%, rgba(10,22,48,0.35), transparent 70%);
  pointer-events: none;
}
.about-page .page-hero > .container { position: relative; z-index: 1; }
.technology-page .page-hero {
  background-color: var(--navy-950);
  background-image: url("../WechatIMG182.jpg");
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
}
.technology-page .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(7,15,34,0.78) 0%, rgba(7,15,34,0.6) 45%, rgba(7,15,34,0.82) 100%),
    radial-gradient(60% 60% at 50% 30%, rgba(10,22,48,0.35), transparent 70%);
  pointer-events: none;
}
.technology-page .page-hero > .container { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .about-page .page-hero,
  .technology-page .page-hero { background-position: center 45%; }
}
.page-hero .breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-400); margin-bottom: 22px; }
.page-hero h1 { margin-bottom: 22px; max-width: 900px; }
.page-hero .lede { max-width: 720px; }
.page-hero .hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.product-hero-image {
  display: block;
  width: min(36vw, 440px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  margin: clamp(40px, 6vw, 64px) 0 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: rgba(7, 15, 34, 0.35);
}
.page-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 95vw);
  height: 520px;
  background: radial-gradient(55% 55% at 50% 18%, rgba(255, 122, 26, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-body { position: relative; z-index: 1; }

/* ---------- Page-specific components ---------- */
.journey-flow { margin-top: 34px; }
.flow-row { display: grid; grid-template-columns: 140px 1fr 1fr 1.2fr; gap: 0; border: 1px solid var(--line); border-top: none; }
.flow-row:first-child { border-top: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.flow-row:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.flow-cell { padding: 18px 20px; border-left: 1px solid var(--line-soft); font-size: 0.92rem; }
.flow-cell:first-child { border-left: none; font-weight: 600; color: var(--fog); }
.flow-row:first-child .flow-cell { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-2); }
.flow-gap { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--danger); border: 1px solid rgba(255, 90, 90, 0.45); border-radius: 999px; padding: 3px 10px; margin-top: 6px; text-transform: uppercase; }
.flow-cell p { color: var(--gray); }
.flow-cell b { color: var(--fog); }

.alt-table td:first-child { min-width: 190px; }

.cap-section { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line-soft); }
.cap-section:first-of-type { border-top: none; padding-top: 0; }
.cap-visual { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #0A1228; padding: 18px; display: grid; place-items: center; overflow: hidden; min-height: 300px; }
.cap-visual svg { width: 100%; max-width: 420px; }
.cap-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.cap-letter { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.1em; color: var(--orange-400); border: 1px solid rgba(255,122,26,.5); border-radius: 10px; padding: 9px 12px; }
.cap-title h3 { margin: 0; }
.cap-meta { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.cap-meta .line { display: flex; gap: 10px; font-size: 0.92rem; color: var(--gray); }
.cap-meta .line b { color: var(--fog); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; min-width: 108px; padding-top: 2px; }
.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.mode-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: rgba(245, 241, 233, 0.03); }
.mode-card h4 { margin-bottom: 8px; }
.mode-card p { color: var(--gray); font-size: 0.9rem; }

.layer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.layer-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: linear-gradient(160deg, rgba(245,241,233,.05), rgba(245,241,233,.015)); }
.layer-card .idx { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; color: var(--orange-400); text-transform: uppercase; }
.layer-card h4 { margin: 10px 0 8px; }
.layer-card p { color: var(--gray); font-size: 0.92rem; }

.tech-demo { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 40px; }
.tech-demo .td-head { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: rgba(245,241,233,.03); }
.td-btn { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.05em; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: transparent; color: var(--gray); cursor: pointer; transition: all 0.18s ease; }
.td-btn:hover { color: var(--fog); border-color: rgba(255,122,26,.5); }
.td-btn.active { color: #fff; background: var(--orange-500); border-color: var(--orange-500); }
.tech-demo .td-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 260px; }
.tech-demo .td-input { padding: 26px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.tech-demo .td-input .lbl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gray-2); text-transform: uppercase; }
.tech-demo .td-input .val { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--fog); }
.tech-demo .td-output { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.td-log { font-family: var(--font-mono); font-size: 0.84rem; border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px; color: var(--gray); opacity: 0; transform: translateY(6px); transition: all 0.25s ease; }
.td-log.on { opacity: 1; transform: none; }
.td-log b { color: var(--orange-300); font-weight: 600; }
.td-log .ok { color: var(--safe); }

.product-demo-frame { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal); }
.product-demo-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1464 / 628; object-fit: contain; background: #070F22; }
.product-demo-video:focus-visible { outline: 2px solid var(--orange-400); outline-offset: -2px; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.principle { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: rgba(245,241,233,.03); }
.principle b { display: block; font-family: var(--font-display); margin-bottom: 8px; }
.principle p { color: var(--gray); font-size: 0.9rem; }

.roadmap { list-style: none; margin-top: 30px; position: relative; padding-left: 0; }
.roadmap li { display: grid; grid-template-columns: 130px 1fr; gap: 26px; padding: 0 0 34px 30px; position: relative; }
.roadmap li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -6px; width: 2px; background: var(--line); }
.roadmap li:last-child::before { display: none; }
.roadmap li::after { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy-950); border: 2px solid var(--orange-400); }
.roadmap .phase { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; color: var(--orange-400); text-transform: uppercase; padding-top: 2px; }
.roadmap h4 { margin-bottom: 6px; }
.roadmap p { color: var(--gray); font-size: 0.94rem; max-width: 640px; }

.team-grid { display: flex; flex-direction: column; gap: 18px; }
.team-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, rgba(245,241,233,.05), rgba(245,241,233,.015)); display: grid; grid-template-columns: minmax(200px, 280px) 1fr; align-items: stretch; }
.team-avatar { display: grid; place-items: center; background: radial-gradient(120% 120% at 20% 0%, rgba(255,122,26,.16), transparent 55%), linear-gradient(170deg, #10182E, #0A1228); padding: 16px; min-height: 210px; }
.team-avatar svg { width: 100%; height: 100%; max-width: 230px; border-radius: 22px; }
.team-avatar .initials { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--orange-300); }
.team-body .name-en { color: var(--gray-2); font-weight: 500; font-size: 0.9em; }
.team-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.team-body .role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--orange-400); text-transform: uppercase; }
.team-body h4 { margin: 8px 0 10px; }
.team-body p { color: var(--gray); font-size: 0.9rem; max-width: 640px; }
.team-caps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.brand-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: rgba(245,241,233,.03); }
.brand-item h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-item svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand-item p { color: var(--gray); }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: rgba(245,241,233,.03); transition: border-color 0.2s ease, transform 0.2s ease; }
.contact-card:hover { border-color: rgba(255,122,26,.45); transform: translateY(-3px); }
.contact-card .mail { font-family: var(--font-mono); font-size: 0.85rem; color: var(--orange-300); margin-top: 12px; display: block; }

.source-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.source-list li { border: 1px solid var(--line-soft); border-radius: 12px; padding: 16px 18px; font-size: 0.88rem; color: var(--gray); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.source-list .src-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gray-2); white-space: nowrap; }

.callout { border-left: 3px solid var(--orange-500); background: linear-gradient(90deg, rgba(255,122,26,.08), transparent 70%); border-radius: 0 12px 12px 0; padding: 22px 26px; font-size: 1.05rem; color: var(--fog); }
.callout .q { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.35; display: block; margin-bottom: 8px; }

.notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(216, 246, 46, 0.3); background: rgba(216, 246, 46, 0.05); border-radius: 12px; padding: 16px 18px; font-size: 0.88rem; color: var(--gray); }
.notice b { color: var(--fluo); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

/* ---------- Reveal-on-scroll ---------- */
.io { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.io.show { opacity: 1; transform: none; }
.io.d1 { transition-delay: 0.1s; }
.io.d2 { transition-delay: 0.2s; }
.io.d3 { transition-delay: 0.3s; }

/* ---------- Animations ---------- */
.float-slow { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(255, 122, 26, 0); }
}

.run-bob { animation: runbob 0.55s ease-in-out infinite alternate; }
@keyframes runbob { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-7px) rotate(1.5deg); } }

.wheel-spin { animation: wheelspin 1s linear infinite; transform-origin: center; transform-box: fill-box; }
@keyframes wheelspin { to { transform: rotate(360deg); } }

.flow-pulse { animation: flowpulse 1.6s ease-in-out infinite; }
@keyframes flowpulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .cap-section { grid-template-columns: 1fr; gap: 26px; }
  .tech-demo .td-body { grid-template-columns: 1fr; }
  .tech-demo .td-input { border-right: none; border-bottom: 1px solid var(--line); }
  .safety-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr; }
  .product-page .product-hero-image { max-width: 100%; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .grid2, .grid3, .problem-grid { grid-template-columns: 1fr; }
  .waypoint { grid-template-columns: 1fr; gap: 16px; }
  .wp-viz { max-width: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .flow-row { grid-template-columns: 1fr; }
  .flow-row .flow-cell { border-left: none; border-top: 1px solid var(--line-soft); }
  .flow-row .flow-cell:first-child { border-top: none; }
  .hud-panel .row { gap: 18px; }
  .roadmap li { grid-template-columns: 1fr; gap: 6px; padding-left: 26px; }
  .table { min-width: 520px; }
  .product-page .page-hero { padding: calc(var(--nav-h) + clamp(48px, 9vw, 80px)) 0 clamp(40px, 8vw, 56px); background-size: auto calc(100% + 72px); background-position: center bottom; }
  .product-page .product-hero-image { width: min(78vw, 360px); margin: 32px 0 0; border-radius: 12px; }
}

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

/* ============================================================
   One Run to Dawn — journey interactions
   ============================================================ */

.mobile-scrim { display: none; }

/* ---------- Corner HUD ---------- */
.run-hud {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 22px;
  z-index: 45;
  font-family: var(--font-mono);
  background: rgba(7,15,34,0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 168px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.run-hud.show { opacity: 1; transform: none; }
.hud-line { display: flex; justify-content: space-between; gap: 18px; padding: 4px 0; border-bottom: 1px dashed var(--line-soft); }
.hud-line:last-child { border-bottom: none; }
.hud-line b { font-size: 9px; letter-spacing: 0.18em; color: var(--gray-2); font-weight: 600; }
.hud-line span { font-size: 11.5px; color: var(--orange-300); letter-spacing: 0.08em; }

/* ---------- km event toast ---------- */
.km-event {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%, 8px);
  z-index: 46;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fog);
  background: rgba(255,122,26,0.12);
  border: 1px solid rgba(255,122,26,0.4);
  padding: 9px 18px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.km-event.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Problem stage ---------- */
.problem-stage { margin-top: 40px; display: flex; flex-direction: column; gap: 26px; }
.problem-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fog);
}
.problem-line span { color: var(--orange-400); }
.problem-board {
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(7,15,34,0.5);
  backdrop-filter: blur(6px);
  padding: 8px 20px;
}
.pb-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
}
.pb-row:last-child { border-bottom: none; }
.pb-row b { font-size: 10.5px; letter-spacing: 0.16em; color: var(--gray); font-weight: 600; }
.pb-row span { font-size: 11.5px; color: var(--danger); letter-spacing: 0.08em; }

/* ---------- Waypoint passed state ---------- */
.waypoint.passed { border-color: rgba(255,122,26,0.45); }
.waypoint.passed .wp-no { color: var(--fog); }
.waypoint.passed .wp-viz { border-color: rgba(255,122,26,0.4); }

/* ---------- Reveal messages (no overlap) ---------- */
.reveal-msgs {
  position: absolute;
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 88vw);
  text-align: center;
  z-index: 3;
}
.reveal-msgs .reveal-msg {
  position: static;
  left: auto; top: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
}

/* ---------- Safety simulator ---------- */
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 14px 0; }
.sim-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--gray-2);
  text-transform: uppercase;
}
.sim-field select {
  appearance: none;
  background: var(--charcoal-2);
  color: var(--fog);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 30px 9px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23FFB27A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sim-field select:hover { border-color: rgba(255,122,26,0.5); }
.demo-controls .btn { white-space: nowrap; }
.demo-sim-out {
  margin: 4px 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(7,15,34,0.45);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gray);
}
.sim-head { font-size: 10px; letter-spacing: 0.16em; color: var(--orange-400); margin-bottom: 10px; }
.sim-row { display: flex; align-items: baseline; gap: 10px; padding: 2px 0; }
.sim-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.sim-row b { color: var(--fog); font-weight: 600; min-width: 58px; }
.sim-kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 0; border-top: 1px dashed var(--line-soft); margin-top: 8px; font-size: 11px; }
.sim-kv span { color: var(--gray-2); letter-spacing: 0.08em; }
.sim-kv .val.orange { color: var(--orange-300); }
.sim-kv .val.gray { color: var(--gray); }
.sim-kv .val.red { color: var(--danger); }
.sim-note { margin-top: 8px; font-size: 0.72rem; color: var(--gray-2); line-height: 1.5; }
.tray-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--gray-2); text-transform: uppercase; margin-right: 4px; }
.drag-item:focus-visible { outline: 2px solid var(--orange-400); outline-offset: 3px; }

/* ---------- Honest evidence placeholders ---------- */
.media-frame-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gray-2);
  border: 1px solid var(--line);
  background: rgba(7,15,34,0.78);
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.arrow-link.small { font-size: 0.86rem; }

/* ---------- Clickable reference links ---------- */
.source-list li a { color: var(--orange-300); text-decoration: underline; text-underline-offset: 3px; }
.source-list li a:hover { color: var(--orange-400); text-decoration-thickness: 2px; }
.source-list li b { display: block; margin-bottom: 4px; }

/* ---------- Mobile: readable dawn, scrim + shadows, overflow ---------- */
html { overflow-x: clip; }
@media (max-width: 760px) {
  .team-card { grid-template-columns: 1fr; }
  .team-avatar { min-height: 0; aspect-ratio: 16/10; }
  .team-avatar svg { max-width: 200px; }
  .team-body { padding: 20px; }
  .mobile-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7,15,34,0.6) 0%, rgba(7,15,34,0.12) 32%, rgba(7,15,34,0.12) 68%, rgba(7,15,34,0.55) 100%);
  }
  .scene-head h1, .scene-head h2, .sec-head h2,
  .scene-head .lede, .sec-head .lede, .problem-line { text-shadow: 0 2px 14px rgba(7,15,34,0.95); }
  .run-hud { top: calc(var(--nav-h) + 10px); right: 12px; min-width: 150px; padding: 10px 12px; }
  .route-rail { bottom: 12px; }
  .km-event { bottom: 58px; font-size: 11px; }
}

/* ---------- Evidence drawer ---------- */
.ev-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5,10,22,0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.ev-backdrop.open { opacity: 1; visibility: visible; }
.ev-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 121;
  width: min(440px, 94vw);
  background: linear-gradient(180deg, #10182E, #0A1228);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22,1,0.36,1);
  overflow-y: auto;
  padding: 26px 26px 60px;
}
.ev-drawer.open { transform: none; }
.ev-close {
  position: sticky;
  z-index: 2;
  top: 6px;
  float: right;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7,15,34,0.85);
  color: var(--fog);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  margin-bottom: 14px;
}
.ev-close:hover { border-color: var(--orange-400); transform: rotate(90deg); }
.ev-body h3 { margin: 6px 0 18px; font-size: 1.5rem; }
.ev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ev-ver { font-size: 10px; letter-spacing: 0.14em; color: var(--gray-2); }
.ev-media {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(255,122,26,0.12), transparent 60%),
    linear-gradient(170deg, #10182E, #0A1228);
}
.ev-media p { font-size: 0.78rem; color: var(--gray-2); margin: 0; }
.ev-block { margin-bottom: 18px; }
.ev-block p { color: var(--gray); font-size: 0.92rem; margin-top: 6px; }
.ev-block p.muted { color: var(--gray-2); }
.ev-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--gray-2);
  margin-bottom: 6px;
}
.say { font-size: 0.95rem; }
.say.green { color: var(--safe); }
.say.orange { color: var(--orange-300); }
.say.gray { color: var(--gray-2); }
