:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  --maxw: 860px;
  --maxw-wide: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 240ms;

  --bg: #f6f3ed;
  --bg2: #ede8df;
  --bg3: #dfd8cb;
  --panel: #ffffff;
  --panel-raised: #fbf9f5;

  --line: #d8d1c4;
  --line2: #c4bcb0;
  --line-strong: #9e9587;

  --text: #161412;
  --text2: #4d4740;
  --faint: #7d756a;

  --accent: #8b2518;
  --accent-hi: #aa3223;
  --accent-bg: rgba(139, 37, 24, 0.08);

  --cobalt: #1a4d7c;
  --cobalt-hi: #25649f;
  --cobalt-bg: rgba(26, 77, 124, 0.08);

  --cyan: #0b7285;
  --cyan-glow: rgba(11, 114, 133, 0.15);

  --amber: #b45309;
  --amber-bg: rgba(180, 83, 9, 0.08);

  --green: #15803d;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17.5px;
  line-height: 1.74;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(139, 37, 24, 0.02) 0%, transparent 40%),
    radial-gradient(circle at 0% 50%, rgba(26, 77, 124, 0.02) 0%, transparent 40%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cobalt);
  text-decoration: underline;
  text-decoration-color: var(--line2);
  text-underline-offset: 3px;
  transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease);
}
a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  border-radius: 0 0 6px 0;
  text-decoration: none;
}
.skip:focus {
  left: 0;
  outline: 3px solid var(--text);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 1000;
}
.progress b {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--cobalt));
  transition: transform 60ms linear;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(20px, 4vw, 44px);
  background: rgba(246, 243, 237, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--faint);
  padding: 6px 10px;
  border-radius: 4px;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg3);
}
.nav-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

section {
  scroll-margin-top: 74px;
  padding: clamp(68px, 9vw, 110px) clamp(20px, 4vw, 44px);
}
section.band {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
}
.wrap-wide {
  max-width: var(--maxw-wide);
  margin: 0 auto;
}

.sec-head {
  margin-bottom: clamp(24px, 4vw, 36px);
}
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.015em;
}
.sec-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin-top: 14px;
  border-radius: 2px;
}

.sec-sub {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text2);
  max-width: 46em;
  margin-bottom: clamp(24px, 3.5vw, 36px);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 130px clamp(20px, 4vw, 44px) 80px;
  background:
    radial-gradient(800px 500px at 85% 15%, rgba(139, 37, 24, 0.05), transparent 70%),
    radial-gradient(600px 400px at 15% 85%, rgba(26, 77, 124, 0.05), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.ping-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(139, 37, 24, 0.6);
  animation: radar-ping 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
.ping-dot.green {
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.6);
}

@keyframes radar-ping {
  to {
    box-shadow: 0 0 0 10px rgba(0,0,0,0);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-italic {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--text2);
}

.hero-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 34px;
  max-width: 42em;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 36px;
}
.meta-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}
.meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.meta-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.meta-val b {
  font-weight: 700;
}
.meta-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}

.hero-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.nav-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--t) var(--ease);
  box-shadow: var(--shadow-sm);
}
.nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.nc-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.nav-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.nav-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
  flex-grow: 1;
}
.nc-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cobalt);
  margin-top: 6px;
}

.prose p {
  margin-bottom: 1.35em;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text);
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--text);
}
.prose strong {
  font-weight: 600;
  color: var(--text);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg3);
  border-radius: 4px;
  color: var(--accent);
}

.doc-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 26px 0;
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  box-shadow: var(--shadow-sm);
}

.bullet-prose {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
}
.bullet-prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text2);
}
.bullet-prose li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent);
  font-size: 12px;
}

.callout-alert {
  background: var(--accent-bg);
  border: 1px solid rgba(139, 37, 24, 0.2);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text2);
}
.callout-alert strong {
  color: var(--accent);
  font-weight: 600;
}

.formula-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.archival-fig {
  margin: 34px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: var(--shadow-md);
}
.fig-frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #000000;
  border: 1px solid var(--line2);
}
.fig-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
  background: #111111;
  transition: transform 400ms var(--ease);
}
.archival-fig:hover .fig-frame img {
  transform: scale(1.015);
}

figcaption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
}
figcaption strong {
  color: var(--text);
}
.fig-credit {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  margin-top: 4px;
}

.dual-fig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 34px 0;
}
.dual-fig-grid .archival-fig {
  margin: 0;
}

.milestones-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.m-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.m-date {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.m-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin: 4px 0 6px;
}
.m-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text2);
}

.eq-highlight-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  margin: 28px 0 34px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.eq-highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--cobalt), var(--cyan));
}
.eq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.eq-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 4px;
}
.eq-source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

.math-display {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3.8vw, 40px);
  text-align: center;
  padding: 16px 0 22px;
  letter-spacing: 0.04em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.math-i {
  color: var(--accent);
  font-weight: 700;
  font-style: italic;
}
.math-h {
  color: var(--cobalt);
}
.math-frac {
  display: inline-flex;
  flex-direction: column;
  vertical-align: middle;
  font-size: 0.72em;
  text-align: center;
  margin: 0 4px;
}
.math-frac .num {
  border-bottom: 2px solid var(--text);
  padding-bottom: 2px;
}
.math-frac .den {
  padding-top: 2px;
}
.math-op {
  color: var(--faint);
  margin: 0 6px;
}
.math-ham {
  color: var(--cyan);
  font-weight: 600;
}

.eq-terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.term {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
}
.term code {
  color: var(--accent);
  font-weight: 600;
}

.widget-controls-top {
  margin-bottom: 20px;
}
.mode-toggles {
  display: flex;
  gap: 8px;
  background: var(--bg3);
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
  flex-wrap: wrap;
}
.tab-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text2);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn.active {
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.interactive-sandbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.plane-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}
.panel-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.svg-viewport {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}
.svg-viewport svg {
  width: 100%;
  height: 100%;
  display: block;
}

.readout-box {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  text-align: center;
  margin-top: 10px;
}
.readout-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-transform: uppercase;
}
.readout-val {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 2px;
}
.readout-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text2);
}

.details-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 18px;
}

.powers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.power-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  text-align: left;
}
.power-item:hover {
  border-color: var(--accent);
  background: var(--bg);
}
.power-item.active {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.pw-exp {
  font-weight: 600;
  width: 32px;
}
.pw-eq {
  color: var(--faint);
}
.pw-res {
  font-weight: 700;
  width: 40px;
  text-align: center;
}
.pw-deg {
  font-size: 11.5px;
  color: var(--faint);
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-primary {
  flex: 1;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  box-shadow: 0 2px 10px rgba(139, 37, 24, 0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 12px 18px;
  background: var(--panel);
  color: var(--text2);
  border: 1px solid var(--line2);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.canvas-wrap {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}

.wave-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text2);
}
.leg-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.continuous-slider-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
}
.mono-badge {
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--accent);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}
.anim-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.triad-explanations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}
.triad-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.triad-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.triad-col h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.triad-coords {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt);
  font-weight: 500;
}
.triad-col p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text2);
  flex-grow: 1;
}
.triad-specs {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 4px;
}
.triad-specs li {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text2);
  margin-bottom: 5px;
}
.triad-specs strong {
  color: var(--text);
}

.map-container-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.map-hud-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
.map-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hud-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
}
.hud-projection {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  letter-spacing: 0.06em;
}
.map-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text2);
  cursor: pointer;
}
.map-toggle-label input {
  accent-color: var(--accent);
  cursor: pointer;
}

.map-svg-wrap {
  position: relative;
  width: 100%;
  background: #eae5dc;
}
.map-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-ocean {
  fill: #eae5dc;
}
.map-graticule line {
  stroke: rgba(0, 0, 0, 0.05);
  stroke-width: 0.5;
}
.world-land path {
  fill: #d6cebf;
  stroke: #c2b9a7;
  stroke-width: 0.4;
  transition: fill var(--t) var(--ease);
}
.world-land path:hover {
  fill: #cac1b0;
}

.route-flight {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  opacity: 0.8;
}
.route-us {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  opacity: 0.7;
}
.route-eurasia {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  opacity: 0.5;
}

.marker-origin {
  cursor: pointer;
}
.marker-origin circle {
  transition: r var(--t) var(--ease), stroke-width var(--t) var(--ease), opacity var(--t) var(--ease);
}
.marker-origin:hover circle:first-child {
  r: 6;
}
.marker-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  fill: var(--text);
}
.marker-sub-label {
  font-family: var(--font-mono);
  font-size: 7.5px;
  fill: var(--faint);
}

.marker-point {
  cursor: pointer;
}
.marker-point circle {
  transition: stroke-width var(--t) var(--ease), filter var(--t) var(--ease);
}
.marker-point:hover circle:nth-child(2),
.marker-point.selected circle:nth-child(2) {
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.45));
}

.marker-cardinal-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  fill: var(--text);
}
.marker-cardinal-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 500;
  fill: var(--text2);
}

.telemetry-bar {
  padding: 22px 24px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.telemetry-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.tel-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.tel-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.tel-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
}
.tel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.tel-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.4;
}
.tel-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text2);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 8px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.stat-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.05;
}
.stat-num .unit {
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text2);
  vertical-align: baseline;
}
.stat-cap {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text2);
  margin: 8px 0 4px;
}
.stat-src {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--faint);
}

.comparison-table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}
.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.data-table thead th {
  background: var(--bg3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.data-table tbody tr:nth-child(even) {
  background: var(--panel-raised);
}
.data-table tbody tr:hover {
  background: var(--bg);
}
.data-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
}

.voces-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.quote-card {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.quo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 12px;
}
.quo-meta {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text2);
}
.quo-meta strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sources-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.src-entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 800px;
}
.src-entry strong {
  font-size: 15px;
  color: var(--text);
}
.src-entry span {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.5;
}
.src-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  padding: 56px clamp(20px, 4vw, 44px) 70px;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.foot-brand {
  max-width: 320px;
}
.foot-logo {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.foot-tagline {
  font-size: 14px;
  color: var(--text2);
  margin-top: 8px;
  line-height: 1.55;
}
.foot-notes {
  max-width: 460px;
}
.foot-notes p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--faint);
  margin-bottom: 8px;
}
.mono-fine {
  font-family: var(--font-mono);
  font-size: 11px;
}

@media (max-width: 960px) {
  .interactive-sandbox {
    grid-template-columns: 1fr;
  }
  .plane-panel {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 24px;
  }
  .dual-fig-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 12px 18px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 110px 18px 60px;
  }
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
}

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