/* ATLANTIS — an ocean Earth, observed.
   Palette follows the SimuAtlas collection: deep navy, bone text, lime accent. */

:root {
  color-scheme: dark;
  --bg: #070c12;
  --bg-2: #0a1118;
  --panel: rgba(12, 20, 27, 0.74);
  --text: #e9eef1;
  --muted: #93a2ad;
  --dim: #5d7080;
  --line: rgba(156, 184, 198, 0.18);
  --line-soft: rgba(156, 184, 198, 0.085);
  --accent: #b9f58b;
  --accent-dim: rgba(185, 245, 139, 0.42);
  --aqua: #7fe3d4;
  --warm: #ffb27a;
  --violet: #e7d6ff;
  --ice: #a9c7dd;
  --sans: Inter, "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(31, 61, 78, 0.28), transparent 65%),
    radial-gradient(ellipse 60% 50% at 100% 20%, rgba(36, 44, 82, 0.14), transparent 60%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(185, 245, 139, 0.28); color: #fff; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ------------------------------------------------------------------ topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(20px, 2.6vw, 42px);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 12, 18, 0.78);
  backdrop-filter: blur(18px) saturate(120%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}
.brand-mark {
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 24px rgba(185, 245, 139, 0.45);
}
.brand-text {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.18em;
  line-height: 1;
}
.brand-text small {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.15em;
}
.topnav {
  display: flex;
  gap: 30px;
  justify-self: center;
  font-size: 12px;
  color: var(--muted);
}
.topnav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.35s var(--ease);
}
.topnav a:hover, .topnav a.active { color: var(--text); }
.topnav a:hover::after, .topnav a.active::after { right: 0; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.18em;
}
.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
  animation: live-pulse 2.4s infinite;
}
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.atlas-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: 0.16em;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.atlas-link:hover {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(185, 245, 139, 0.04);
}

/* -------------------------------------------------------------- observatory */
.observatory {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr) minmax(250px, 318px);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(18px, 2.2vw, 34px);
  padding: 0 clamp(20px, 2.6vw, 42px);
  overflow: hidden;
  isolation: isolate;
}
.obs-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 62% at 50% 46%, rgba(22, 74, 86, 0.24), transparent 64%),
    radial-gradient(ellipse 38% 42% at 82% 12%, rgba(58, 62, 120, 0.12), transparent 62%),
    radial-gradient(ellipse 45% 40% at 8% 80%, rgba(22, 54, 62, 0.13), transparent 65%);
}
.obs-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    radial-gradient(0.8px 0.8px at 20% 30%, rgba(205, 227, 238, 0.75), transparent 1.6px),
    radial-gradient(0.7px 0.7px at 68% 18%, rgba(205, 227, 238, 0.55), transparent 1.5px),
    radial-gradient(0.9px 0.9px at 44% 72%, rgba(190, 222, 235, 0.45), transparent 1.7px),
    radial-gradient(0.6px 0.6px at 86% 64%, rgba(205, 227, 238, 0.5), transparent 1.4px),
    radial-gradient(0.7px 0.7px at 12% 58%, rgba(205, 227, 238, 0.42), transparent 1.5px);
  background-size: 317px 281px, 401px 353px, 263px 311px, 487px 421px, 349px 397px;
}
.obs-bg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 330px;
  right: 318px;
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 0, rgba(156, 184, 198, 0.09) 1px, transparent 1px) 0 0 / 33.33% 100%,
    linear-gradient(180deg, rgba(22, 54, 64, 0.2), transparent 28%, transparent 72%, rgba(7, 12, 18, 0.65));
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

.copy {
  grid-column: 1;
  grid-row: 1;
  z-index: 3;
  align-self: start;
  padding-top: clamp(26px, 4.6vh, 54px);
  animation: rise 1s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--dim);
  font: 8.5px/1.5 var(--mono);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.eyebrow-no { color: var(--accent); opacity: 0.7; }

.copy h1 {
  margin: 24px 0 20px;
  font-size: clamp(44px, 3.9vw, 62px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.055em;
}
.copy h1 span { color: var(--accent); }
.copy h1 i {
  font-style: normal;
  color: var(--accent);
  opacity: 0.8;
}
.lede {
  max-width: 318px;
  margin: 0;
  color: #a6b4be;
  font-size: 13px;
  line-height: 1.9;
}
.intro-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 312px;
  margin: 20px 0 0;
  color: #c5d2d4;
  font-size: 11.5px;
  line-height: 1.85;
}
.intro-note .rule {
  flex: none;
  width: 22px;
  height: 1px;
  margin-top: 10px;
  background: var(--accent-dim);
}
.seed-line {
  margin-top: 26px;
  color: #4f6270;
  font: 8px var(--mono);
  letter-spacing: 0.12em;
}

.readouts {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  z-index: 3;
  max-width: 330px;
  margin-bottom: 22px;
  animation: rise 1s 0.16s var(--ease) both;
}
.rail-head {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font: 8px var(--mono);
  letter-spacing: 0.18em;
}
.metric { padding: 10px 0 9px; border-bottom: 1px solid var(--line-soft); }
.metric-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.metric-label { color: #a9b7c0; font-size: 11.5px; }
.metric-label em {
  display: block;
  margin-top: 3px;
  color: #526572;
  font: 7.5px var(--mono);
  font-style: normal;
  letter-spacing: 0.12em;
}
.metric-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--text);
  font: 600 23px/1 var(--mono);
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.metric-value small { color: #566a78; font-size: 8px; font-weight: 400; letter-spacing: 0.03em; }
.metric-bar { height: 2px; margin-top: 8px; background: rgba(255, 255, 255, 0.055); overflow: hidden; }
.metric-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--mc);
  box-shadow: 0 0 10px var(--mc);
  transition: width 0.5s var(--ease);
}
.rail-foot { margin: 10px 0 0; color: #4c5e6c; font: 8px var(--mono); letter-spacing: 0.1em; }

/* ------------------------------------------------------------------ globe */
.globe-cell {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  min-height: 300px;
}
#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
}
#globe-canvas.grabbing { cursor: grabbing; }
.globe-frame {
  position: absolute;
  inset: 3% 0.5%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}
.corner { position: absolute; width: 16px; height: 16px; border-color: rgba(185, 245, 139, 0.36); border-style: solid; }
.corner.tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner.tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner.br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  transform: translate(-50%, -50%);
  opacity: 0.35;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: rgba(185, 245, 139, 0.5);
}
.crosshair::before { left: 5px; top: 0; width: 1px; height: 11px; }
.crosshair::after { top: 5px; left: 0; width: 11px; height: 1px; }
.frame-label {
  position: absolute;
  color: #526a78;
  font: 7.5px var(--mono);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.frame-label.top-left { top: 8px; left: 12px; }
.frame-label.top-right { top: 8px; right: 12px; }
.frame-label.bottom-left { bottom: 8px; left: 12px; }
.frame-label.bottom-right { bottom: 8px; right: 12px; }

.stage-tag {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 40px;
  background: rgba(7, 13, 18, 0.56);
  backdrop-filter: blur(8px);
  color: #c6d4d8;
  font: 9px var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.stage-tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.stage-tag .slash { color: #4a5d6a; }
#stage-en { color: #6e8492; }
.globe-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
  color: #455867;
  font: 7.5px var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.globe-hint span + span::before {
  content: "·";
  margin-right: 18px;
  color: #33424e;
}
.probe-label {
  position: absolute;
  z-index: 6;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 7px;
  padding: 7px 9px;
  border: 1px solid rgba(185, 245, 139, 0.35);
  background: rgba(7, 14, 19, 0.9);
  backdrop-filter: blur(8px);
  color: #cfe0d5;
  font: 8px/1.4 var(--mono);
  letter-spacing: 0.06em;
  pointer-events: none;
  transform: translate(-50%, -145%);
  white-space: nowrap;
}
.probe-dot {
  grid-row: 1 / span 2;
  align-self: center;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.probe-value { color: var(--accent); }
.globe-fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  color: var(--dim);
  font: 9px/1.8 var(--mono);
  letter-spacing: 0.08em;
}
.fallback-orb {
  width: min(52vh, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(127, 227, 212, 0.55), transparent 18%),
    repeating-radial-gradient(ellipse at 70% 60%, rgba(12, 80, 92, 0.75) 0 12px, rgba(5, 37, 52, 0.8) 13px 24px),
    radial-gradient(circle at 38% 32%, #1b8f98, #063243 52%, #02090f 78%);
  box-shadow: inset -40px -18px 60px #000, 0 0 80px rgba(85, 200, 200, 0.16);
  animation: fallback-spin 50s linear infinite;
}
@keyframes fallback-spin { to { filter: hue-rotate(8deg); } }

/* ----------------------------------------------------------------- console */
.console {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  z-index: 4;
  padding: 17px 17px 15px;
  border: 1px solid var(--line);
  border-top-color: rgba(185, 245, 139, 0.38);
  background: linear-gradient(180deg, rgba(11, 19, 26, 0.92), rgba(8, 14, 20, 0.74));
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  animation: rise 1s 0.24s var(--ease) both;
}
.clock { padding-bottom: 14px; }
.clock-label { color: var(--dim); font: 7.5px var(--mono); letter-spacing: 0.16em; }
.clock-value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0 5px;
  color: var(--accent);
  font: 500 34px/1 var(--mono);
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(185, 245, 139, 0.25);
}
.clock-value small { color: #6f877a; font-size: 9px; letter-spacing: 0.08em; }
.clock-sub {
  display: flex;
  justify-content: space-between;
  color: #4f6371;
  font: 7.5px var(--mono);
  letter-spacing: 0.1em;
}
.clock-sub span:first-child { color: #8ba091; }
.panel-block { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.block-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: #b6c3ca;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}
.block-head span:last-child { color: #4d6170; font: 7.5px var(--mono); letter-spacing: 0.16em; }
.slider { display: block; padding: 7px 0 4px; }
.slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.slider-top > span { color: #97a7b1; font-size: 10.5px; }
.slider-top em {
  margin-left: 5px;
  color: #4d6170;
  font: 7px var(--mono);
  font-style: normal;
  letter-spacing: 0.1em;
}
.slider-top output { color: var(--accent); font: 10px var(--mono); font-variant-numeric: tabular-nums; }

input[type="range"] {
  --pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 4px 0 0;
  background: transparent;
  cursor: ew-resize;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0 var(--pct), rgba(255, 255, 255, 0.13) var(--pct) 100%);
}
input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.13);
}
input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 245, 139, 0.1), 0 0 12px rgba(185, 245, 139, 0.45);
  transition: box-shadow 0.2s;
}
input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(185, 245, 139, 0.1);
}
input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(185, 245, 139, 0.14), 0 0 16px rgba(185, 245, 139, 0.6); }

.panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 13px; }
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  color: #c2ced5;
  font-size: 10px;
  letter-spacing: 0.03em;
  transition: color 0.22s, border-color 0.22s, background 0.22s;
}
.action span { color: var(--accent); font-size: 12px; line-height: 1; }
.action:hover { border-color: var(--accent-dim); background: rgba(185, 245, 139, 0.05); color: var(--accent); }
.action:active { transform: translateY(1px); }
.action.ghost { grid-column: 1 / -1; min-height: 30px; border-color: var(--line-soft); color: #6f818e; }
.action.ghost span { color: #6f818e; }
.panel-hint { margin: 11px 0 0; color: #4e606d; font-size: 8.5px; line-height: 1.7; }

/* ---------------------------------------------------------------- timeline */
.timeline {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(7, 12, 18, 0.4));
}
.transport { display: flex; align-items: center; gap: 14px; }
.play {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 10px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.play:hover {
  border-color: var(--accent-dim);
  background: rgba(185, 245, 139, 0.06);
  box-shadow: 0 0 24px rgba(185, 245, 139, 0.12);
}
.speed { display: flex; gap: 1px; }
.speed button {
  min-width: 32px;
  padding: 5px 7px;
  color: #60727f;
  font: 8.5px var(--mono);
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.speed button:hover { color: #c7d4d9; }
.speed button.active { color: var(--accent); border-bottom-color: var(--accent); }
.track-wrap { min-width: 0; }
.track-labels {
  display: flex;
  justify-content: space-between;
  color: #435460;
  font: 7px var(--mono);
  letter-spacing: 0.08em;
}
.track {
  position: relative;
  height: 30px;
  margin-top: 3px;
}
.track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 1px;
  background: rgba(156, 184, 198, 0.16);
}
.track-fill {
  position: absolute;
  left: 0;
  top: 14px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 245, 139, 0.25), var(--accent));
  box-shadow: 0 0 10px rgba(185, 245, 139, 0.4);
}
.track-events { position: absolute; inset: 0; }
.event-tick {
  position: absolute;
  top: 11px;
  width: 5px;
  height: 5px;
  padding: 0;
  border: 1px solid #7e93a0;
  background: var(--bg);
  transform: translateX(-50%) rotate(45deg);
  transition: background 0.2s, border-color 0.2s;
}
.event-tick:hover, .event-tick:focus-visible { border-color: var(--accent); background: var(--accent); }
.event-tick.assumption { border-color: #a58fc4; }
.event-tick.intervention { border-color: var(--warm); }
.event-tick.initial { border-color: var(--accent); }
.event-tick::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 4px 7px;
  border: 1px solid var(--line);
  background: #0a1218;
  color: #c4d1d6;
  font: 8px var(--mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.event-tick:hover::after, .event-tick:focus-visible::after { opacity: 1; }
.track-head {
  position: absolute;
  top: 7px;
  left: 0;
  width: 1px;
  height: 15px;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(185, 245, 139, 0.7);
  transform: translateX(-0.5px);
}
.track-head::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.track-now {
  display: flex;
  justify-content: space-between;
  color: #5d7180;
  font: 7.5px var(--mono);
  letter-spacing: 0.08em;
}
.transport-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.local-note { color: #42535f; font: 7px var(--mono); letter-spacing: 0.1em; }
.text-link {
  padding: 0;
  color: #8ca0ab;
  font-size: 9px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(140, 160, 171, 0.25);
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ------------------------------------------------------------------- toast */
.event-toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 70;
  width: min(460px, calc(100vw - 32px));
  padding: 13px 40px 13px 16px;
  border: 1px solid rgba(185, 245, 139, 0.28);
  background: rgba(8, 15, 21, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 14px);
  opacity: 0;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.event-toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-meta {
  display: flex;
  gap: 12px;
  color: var(--accent);
  font: 7.5px var(--mono);
  letter-spacing: 0.12em;
}
.toast-meta span:last-child { color: #6d8276; }
.toast-body { margin-top: 6px; }
.toast-body strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.toast-body p { margin: 4px 0 0; color: #93a5af; font-size: 10.5px; line-height: 1.7; }
.toast-close {
  position: absolute;
  top: 7px;
  right: 9px;
  color: #5e7180;
  font-size: 16px;
  line-height: 1;
}
.toast-close:hover { color: var(--accent); }

/* ----------------------------------------------------------------- section */
.section {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(72px, 9vh, 120px) clamp(20px, 5vw, 64px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.section h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.section h2 .dot { color: var(--accent); }
.section-note {
  max-width: 380px;
  margin: 0 0 4px;
  color: #728692;
  font-size: 11px;
  line-height: 1.9;
  text-align: right;
}
.archive { background: linear-gradient(180deg, transparent, rgba(9, 16, 22, 0.7) 18%, rgba(9, 16, 22, 0.7) 82%, transparent); }
.archive-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 21, 28, 0.72), rgba(9, 15, 21, 0.52));
  padding: 20px;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.panel-head h3 {
  margin: 0;
  color: #dbe4e8;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
}
.panel-head h3 em {
  margin-left: 8px;
  color: #566a78;
  font: 7.5px var(--mono);
  font-style: normal;
  letter-spacing: 0.14em;
}
.panel-head p { margin: 5px 0 0; color: #5f7381; font-size: 9.5px; letter-spacing: 0.02em; }
.count {
  min-width: 26px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--line-soft);
  color: var(--accent);
  font: 9px var(--mono);
}
.chart-panel { grid-column: span 8; min-height: 438px; display: flex; flex-direction: column; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid transparent;
  color: #5f7381;
  font-size: 9px;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}
.legend-item i { width: 7px; height: 2px; background: var(--lc); box-shadow: 0 0 6px var(--lc); }
.legend-item.active { color: #c6d2d8; border-color: var(--line-soft); }
.legend-item:not(.active) { opacity: 0.45; }
.chart-shell { position: relative; flex: 1; min-height: 280px; }
#chart { width: 100%; height: 100%; }
.chart-tip {
  position: absolute;
  z-index: 4;
  min-width: 128px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(7, 14, 19, 0.96);
  color: #c9d6db;
  font: 8.5px/1.7 var(--mono);
  pointer-events: none;
  transform: translate(-50%, -112%);
  white-space: nowrap;
}
.chart-tip b { color: var(--accent); font-weight: 500; }
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #465966;
  font: 9px var(--mono);
  letter-spacing: 0.08em;
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  color: #40525e;
  font: 7px var(--mono);
  letter-spacing: 0.1em;
}
.snapshot-panel { grid-column: span 4; }
.snap-stage {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.snap-stage-dot {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, rgba(185, 245, 139, 0.4), transparent 62%);
  box-shadow: inset 0 0 12px rgba(185, 245, 139, 0.16);
}
.snap-stage strong { display: block; color: var(--accent); font-size: 17px; font-weight: 500; letter-spacing: 0.02em; }
.snap-stage span:last-child { color: #5f7381; font: 7.5px var(--mono); letter-spacing: 0.13em; }
.snap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 4px 0 0; }
.snap-list div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}
.snap-list dt { color: #6c7f8c; font-size: 9.5px; }
.snap-list dd { margin: 0; color: #ccd8dd; font: 10px var(--mono); font-variant-numeric: tabular-nums; }
.snap-list dd span { color: var(--text); }
.snap-note { margin: 13px 0 0; color: #455763; font-size: 8px; line-height: 1.7; }
.log-panel { grid-column: span 7; max-height: 460px; display: flex; flex-direction: column; }
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2d3d48 transparent;
}
.event-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
}
.event-item:first-child { border-top: 0; }
.event-time { color: #50636f; font: 8.5px/1.5 var(--mono); letter-spacing: 0.02em; }
.event-main h4 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #d8e1e5; font-size: 12px; font-weight: 500; }
.event-main h4 span { color: #5a6e7a; font: 7px var(--mono); letter-spacing: 0.1em; }
.event-main p { margin: 5px 0 0; color: #8597a2; font-size: 10px; line-height: 1.8; }
.event-empty, .probe-empty { color: #50636f; font-size: 10px; line-height: 1.8; padding: 16px 0; }
.tag {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font: 7px var(--mono);
  font-style: normal;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.tag.initial { color: var(--accent); }
.tag.model { color: var(--aqua); }
.tag.assumption { color: #b9a1dd; }
.tag.intervention { color: var(--warm); }
.probe-panel { grid-column: span 5; }
.probe-list { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.probe-empty { text-align: center; padding: 20px 0 8px; }
.probe-reticle {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  position: relative;
}
.probe-reticle::before, .probe-reticle::after {
  content: "";
  position: absolute;
  background: var(--accent-dim);
}
.probe-reticle::before { left: 16px; top: -6px; width: 1px; height: 46px; }
.probe-reticle::after { top: 16px; left: -6px; height: 1px; width: 46px; }
.probe-empty p { margin: 0 0 10px; }
.probe-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.016);
}
.probe-card strong { color: var(--accent); font: 9px var(--mono); letter-spacing: 0.05em; }
.probe-card .probe-cond { color: #c6d3d8; font-size: 11px; }
.probe-card .probe-note { grid-column: 1 / -1; color: #617480; font-size: 8.5px; line-height: 1.6; }
.probe-card .probe-stats { grid-column: 1 / -1; display: flex; gap: 14px; color: #8fa2ad; font: 8px var(--mono); }
.probe-card .probe-stats b { color: #d5e0e4; font-weight: 400; }

/* ------------------------------------------------------------------ method */
.method { max-width: 1280px; }
.method-head { max-width: 860px; }
.method-head h2 { font-size: clamp(34px, 4vw, 54px); }
.method-head > p {
  max-width: 700px;
  margin: 24px 0 0;
  color: #8b9da8;
  font-size: 13px;
  line-height: 2;
}
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(40px, 7vw, 100px);
  margin-top: 56px;
}
.method-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.method-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.method-no { color: var(--accent); font: 9px var(--mono); letter-spacing: 0.12em; padding-top: 4px; }
.method-list h3 { margin: 0 0 7px; font-size: 15px; font-weight: 550; letter-spacing: 0.01em; }
.method-list p { margin: 0; color: #7f929e; font-size: 11.5px; line-height: 1.95; }
.method-list code {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--aqua);
  font: 8.5px var(--mono);
  letter-spacing: 0.02em;
}
.method-aside { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.aside-block + .aside-block { margin-top: 34px; }
.method-aside h3 { margin: 0 0 14px; color: #c9d5da; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; }
.tag-list { margin: 0; }
.tag-list div { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.tag-list dt { flex: none; }
.tag-list dd { margin: 0; color: #70828e; font-size: 9px; line-height: 1.6; }
.not-list { list-style: none; margin: 0; padding: 0; }
.not-list li {
  position: relative;
  padding: 6px 0 6px 14px;
  color: #7b8d99;
  font-size: 10.5px;
  line-height: 1.7;
}
.not-list li::before { content: "—"; position: absolute; left: 0; color: #455763; }
.credit { margin: 34px 0 0; color: #4f626e; font-size: 9px; line-height: 1.9; }
.credit a { color: #8498a3; border-bottom: 1px solid rgba(132, 152, 163, 0.3); }
.credit a:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ------------------------------------------------------------------ footer */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 64px) 36px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.16em; }
.footer-brand .brand-mark { font-size: 20px; }
.footer-brand small { display: block; margin-top: 4px; color: #4f626e; font-size: 7.5px; letter-spacing: 0.12em; }
.footer p { margin: 0; color: #4b5d69; font: 8px var(--mono); letter-spacing: 0.1em; }
.footer-links { display: flex; align-items: center; gap: 22px; color: #5c707d; font: 8px var(--mono); letter-spacing: 0.08em; }
.footer-links a { color: #8fa2ad; }
.footer-links a:hover { color: var(--accent); }

/* -------------------------------------------------------------------- boot */
.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.boot.hide { opacity: 0; visibility: hidden; }
.boot-mark { color: var(--accent); font-size: 44px; text-shadow: 0 0 40px rgba(185, 245, 139, 0.4); }
.boot-text { color: #8da0ab; font: 10px var(--mono); letter-spacing: 0.3em; text-align: center; }
.boot-text small { display: block; margin-top: 8px; color: #4e626f; font-size: 8px; letter-spacing: 0.12em; }
.boot-bar { width: 150px; height: 1px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.boot-bar i { display: block; width: 38%; height: 100%; background: var(--accent); animation: bootload 1.3s ease-in-out infinite; }
@keyframes bootload { 0% { transform: translateX(-110%); } 100% { transform: translateX(390%); } }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1240px) {
  .observatory { grid-template-columns: minmax(230px, 285px) minmax(0, 1fr) minmax(235px, 288px); column-gap: 18px; }
  .copy h1 { font-size: clamp(42px, 4vw, 56px); }
  .console { padding: 14px; }
  .clock-value { font-size: 30px; }
  .obs-bg::after { left: 285px; right: 288px; }
}
@media (max-width: 1080px) {
  .observatory {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 clamp(18px, 4vw, 32px);
  }
  .copy { order: 1; padding-top: 28px; }
  .copy h1 { font-size: clamp(42px, 6vw, 58px); }
  .lede { max-width: 480px; }
  .globe-cell { order: 2; height: 52vh; min-height: 380px; margin-top: 8px; }
  .readouts {
    order: 3;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 16px;
    max-width: none;
    margin: 14px 0 0;
  }
  .rail-head, .rail-foot { grid-column: 1 / -1; }
  .metric { padding: 9px 0 8px; }
  .metric-label em { display: none; }
  .console {
    order: 4;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    grid-template-rows: auto auto auto;
    gap: 0 26px;
    margin: 18px 0 0;
    align-self: stretch;
  }
  .clock { grid-column: 1; grid-row: 1; }
  .panel-block { grid-column: 2; grid-row: 1 / span 3; border-top: 0; border-left: 1px solid var(--line-soft); padding: 0 0 0 22px; }
  .panel-actions { grid-column: 1; grid-row: 2; }
  .panel-hint { grid-column: 1; grid-row: 3; margin-top: 10px; }
  .timeline { order: 5; margin-top: 16px; }
  .obs-bg::after { left: 0; right: 0; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-panel { grid-column: 1 / -1; }
  .snapshot-panel, .log-panel, .probe-panel { grid-column: span 1; }
  .method-grid { grid-template-columns: 1fr; gap: 44px; }
  .method-aside { border-left: 0; border-top: 1px solid var(--line); padding: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  .method-aside .credit { grid-column: 1 / -1; margin: 0; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .topbar { height: 64px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .brand-mark { font-size: 24px; }
  .brand-text { font-size: 13px; }
  .brand-text small { font-size: 7px; letter-spacing: 0.1em; }
  .topnav { display: none; }
  .live { display: none; }
  .atlas-link { padding: 7px 9px; font-size: 8px; }
  .copy { padding-top: 24px; }
  .copy h1 { font-size: clamp(38px, 11.5vw, 52px); margin: 18px 0 16px; }
  .lede { font-size: 12px; line-height: 1.85; }
  .intro-note, .seed-line { display: none; }
  .globe-cell { height: 44vh; min-height: 310px; }
  .frame-label { display: none; }
  .globe-hint { display: none; }
  .stage-tag { bottom: 16px; }
  .readouts { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
  .metric-value { font-size: 20px; }
  .console { display: block; }
  .panel-block { border-left: 0; border-top: 1px solid var(--line-soft); padding: 12px 0 0; }
  .panel-actions { margin-top: 14px; }
  .timeline {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px 14px;
  }
  .transport { grid-column: 1; grid-row: 1; }
  .track-wrap { grid-column: 1 / -1; grid-row: 2; }
  .transport-right { grid-column: 2; grid-row: 1; justify-self: end; flex-direction: row; align-items: center; gap: 14px; }
  .local-note { display: none; }
  .speed button { min-width: 28px; padding: 4px 5px; }
  .track-labels span:nth-child(2), .track-labels span:nth-child(4) { display: none; }
  .section { padding: 70px 18px; }
  .section-head { display: block; }
  .section-note { text-align: left; margin-top: 16px; }
  .archive-grid { grid-template-columns: 1fr; }
  .chart-panel, .snapshot-panel, .log-panel, .probe-panel { grid-column: 1; }
  .chart-panel { min-height: 400px; }
  .panel { padding: 16px; }
  .panel-head { flex-direction: column; gap: 10px; }
  .legend { justify-content: flex-start; }
  .event-toast { bottom: 20px; }
  .method-aside { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer p { display: none; }
}
@media (max-width: 420px) {
  .copy h1 { font-size: 38px; }
  .metric-label { font-size: 10px; }
  .metric-value { font-size: 18px; }
  .clock-value { font-size: 28px; }
  .speed button { min-width: 25px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* --- runtime states ------------------------------------------------ */
.stage-tag i { background: var(--stage, var(--accent)); box-shadow: 0 0 8px var(--stage, var(--accent)); }
.globe-cell.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, rgba(255, 238, 210, 0.55), rgba(255, 190, 130, 0.12) 30%, transparent 62%);
  animation: impact-flash 0.9s ease-out both;
}
@keyframes impact-flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }
.event-item.pulse { background: rgba(185, 245, 139, 0.055); box-shadow: inset 2px 0 0 var(--accent); }
.action.armed { border-color: rgba(255, 178, 122, 0.6); color: var(--warm); background: rgba(255, 178, 122, 0.05); }
.action.armed span { color: var(--warm); }
.action:disabled { opacity: 0.42; cursor: not-allowed; }
.action:disabled:hover { border-color: var(--line); background: rgba(255, 255, 255, 0.018); color: #c2ced5; }
.log-panel .event-list { flex: 1; min-height: 0; }
@media (max-height: 830px) and (min-width: 1081px) {
  .copy { padding-top: 24px; }
  .copy h1 { font-size: clamp(40px, 3.35vw, 52px); margin: 16px 0 14px; }
  .lede { font-size: 12px; line-height: 1.7; }
  .intro-note { margin-top: 12px; font-size: 10.5px; }
  .seed-line { display: none; }
  .metric { padding: 7px 0 6px; }
  .rail-foot { display: none; }
  .console { padding: 12px 14px; }
  .clock { padding-bottom: 10px; }
  .clock-value { font-size: 28px; margin: 6px 0 4px; }
  .slider { padding: 5px 0 3px; }
  .panel-actions { margin-top: 9px; }
  .panel-hint { margin-top: 8px; }
}
@media (max-width: 1080px) {
  .console { gap: 10px 26px; }
}
.no-webgl .globe-hint { display: none; }
@media (max-width: 760px) {
  .top-actions { gap: 10px; }
  .footer-links { flex-wrap: wrap; gap: 12px; }
}

/* registration note in the method column */
.registry-block { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.registry-block h3 { margin-bottom: 10px; }
.reg-line { margin: 0 0 4px; color: #7d909c; font-size: 9.5px; line-height: 1.7; }
.reg-line.dim { color: #4f626e; }
.reg-id {
  display: block;
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.018);
  color: var(--aqua);
  font: 7.5px var(--mono);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
