:root {
  color-scheme: dark;
  --ink: #071a20;
  --ink-soft: #0d2830;
  --paper: #f3efe4;
  --paper-muted: #c8c4b9;
  --line: rgba(236, 230, 214, 0.15);
  --wine: #e46b58;
  --gold: #d8b36a;
  --mint: #8fd1b2;
  --panel: rgba(10, 31, 38, 0.78);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 82% 7%, #143943 0, var(--ink) 34%, #06161b 100%); overflow-x: hidden; }
button, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.ambient { position: fixed; width: 440px; height: 440px; border-radius: 50%; filter: blur(110px); opacity: 0.12; pointer-events: none; }
.ambient-one { background: var(--wine); top: 20%; left: -230px; }
.ambient-two { background: var(--mint); bottom: -240px; right: -120px; }
.shell { width: min(1440px, calc(100% - 56px)); margin-inline: auto; }
.site-header { width: min(1500px, calc(100% - 40px)); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; letter-spacing: 0.12em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gold); color: var(--gold); font-family: Georgia, serif; font-size: 21px; transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 3px; color: var(--paper-muted); font-size: 9px; }
.header-meta { display: flex; align-items: center; gap: 9px; color: var(--paper-muted); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(216, 179, 106, 0.1); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr); gap: 80px; align-items: end; padding: 84px 0 62px; }
.hero h1 { max-width: 850px; margin: 11px 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 6.7rem); font-weight: 400; line-height: 0.94; letter-spacing: -0.055em; }
.hero h1 em { color: var(--wine); font-weight: 400; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: 0.19em; text-transform: uppercase; }
.hero-lede { max-width: 780px; margin: 0; color: var(--paper-muted); font-size: clamp(1rem, 1.4vw, 1.22rem); line-height: 1.65; }

.network-card { padding: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(22, 57, 65, 0.76), rgba(7, 26, 32, 0.38)); box-shadow: var(--shadow); }
.network-label { color: var(--paper-muted); font-size: 9px; letter-spacing: 0.18em; }
.network-loop { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin: 26px 0 30px; font-family: Georgia, serif; font-size: 15px; }
.network-loop i { color: var(--wine); font-family: sans-serif; font-style: normal; }
.network-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.network-stats div { padding: 20px 14px 0 0; }
.network-stats strong { display: block; color: var(--mint); font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.network-stats span { display: block; margin-top: 6px; color: var(--paper-muted); font-size: 10px; line-height: 1.4; }

.trajectory { display: grid; grid-template-columns: 0.42fr 1.58fr; margin-bottom: 28px; border: 1px solid var(--line); background: rgba(8, 30, 36, 0.68); }
.trajectory-lead { display: flex; min-height: 250px; padding: 31px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(228, 107, 88, 0.12), transparent); }
.trajectory-lead strong { color: var(--wine); font-family: Georgia, serif; font-size: clamp(5rem, 9vw, 9rem); font-weight: 400; line-height: 0.85; }
.trajectory-lead > span { margin-top: 16px; color: var(--paper-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.trajectory-story { padding: 32px 36px; }
.trajectory-story h2 { margin: 0 0 10px; font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 400; }
.trajectory-story > p { max-width: 880px; color: var(--paper-muted); font-size: 12px; line-height: 1.6; }
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 25px 0 20px; background: var(--line); }
.milestones article { min-height: 105px; padding: 15px; background: var(--ink-soft); }
.milestones b { display: block; margin-bottom: 12px; color: var(--gold); font-family: Georgia, serif; font-size: 17px; font-weight: 400; }
.milestones span { color: var(--paper-muted); font-size: 10px; line-height: 1.45; }
.trajectory-story .trajectory-proof { margin-bottom: 0; color: #94aaa9; }
.trajectory-proof strong { color: var(--mint); font-weight: 600; }

.workspace { display: grid; grid-template-columns: 390px minmax(0, 1fr); min-height: 760px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.panel { background: var(--panel); backdrop-filter: blur(18px); }
.control-panel { padding: 30px; border-right: 1px solid var(--line); }
.panel-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 28px; }
.panel-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 400; }
.step { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(216, 179, 106, 0.45); color: var(--gold); font-size: 10px; }
.control-panel > label, .field-grid label { color: var(--paper-muted); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
textarea, select { width: 100%; color: var(--paper); border: 1px solid var(--line); border-radius: 0; outline: none; background: rgba(3, 17, 21, 0.46); transition: border-color 160ms ease, background 160ms ease; }
textarea { min-height: 146px; margin: 9px 0 12px; padding: 14px; resize: vertical; font-size: 14px; line-height: 1.55; }
select { margin-top: 7px; padding: 11px; color-scheme: dark; font-size: 12px; text-transform: none; }
textarea:focus, select:focus { border-color: var(--gold); background: rgba(3, 17, 21, 0.7); }
.example-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 27px; }
.example { padding: 7px 9px; color: var(--paper-muted); border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 10px; }
.example:hover { color: var(--paper); border-color: rgba(216, 179, 106, 0.5); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 28px; padding: 16px 18px; color: #151614; border: 0; background: var(--gold); cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; }
.primary-button:hover { background: #e5c27c; }
.primary-button:disabled { opacity: 0.6; cursor: progress; }
.primary-button b { font-size: 17px; }
.privacy-note { color: #7f9698; font-size: 9px; line-height: 1.5; text-align: center; }

.result-panel { min-width: 0; padding: 36px; background: linear-gradient(155deg, rgba(8, 32, 39, 0.92), rgba(6, 22, 27, 0.84)); }
.hidden { display: none !important; }
.empty-state, .loading-state { display: flex; min-height: 680px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state h2, .loading-state h2 { max-width: 650px; margin: 5px 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; }
.empty-state > p:last-child, .loading-state > p { max-width: 570px; color: var(--paper-muted); line-height: 1.6; }
.atlas-orbit { position: relative; width: 138px; height: 138px; margin-bottom: 34px; border: 1px solid rgba(216, 179, 106, 0.2); border-radius: 50%; }
.atlas-orbit::before, .atlas-orbit::after { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(143, 209, 178, 0.22); border-radius: 50%; }
.atlas-orbit::after { inset: 54px; background: var(--gold); box-shadow: 0 0 35px rgba(216, 179, 106, 0.32); }
.atlas-orbit span, .atlas-orbit i, .atlas-orbit b { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }
.atlas-orbit span { top: 10px; left: 64px; }
.atlas-orbit i { right: 17px; bottom: 24px; background: var(--mint); }
.atlas-orbit b { left: 24px; bottom: 22px; background: var(--gold); }
.loading-line { width: min(420px, 80%); height: 2px; margin-bottom: 38px; background: var(--line); overflow: hidden; }
.loading-line span { display: block; width: 36%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: load 1.2s infinite ease-in-out; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.loading-steps { display: flex; gap: 22px; margin-top: 28px; color: #718689; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.loading-steps .active { color: var(--mint); }

.mission-header { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.mission-header h2 { max-width: 750px; margin: 5px 0 8px; font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.mission-header > div > p:last-child { max-width: 820px; color: var(--paper-muted); line-height: 1.55; }
.mode-pill { flex: 0 0 auto; align-self: flex-start; padding: 8px 11px; color: var(--mint); border: 1px solid rgba(143, 209, 178, 0.34); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.tabs { display: flex; gap: 30px; margin: 22px 0 26px; border-bottom: 1px solid var(--line); }
.tab { padding: 0 0 13px; color: #7f9698; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.tab.active { color: var(--paper); border-bottom-color: var(--wine); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.day { margin-bottom: 30px; }
.day-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.day-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.day-heading span { color: var(--gold); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.stop-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stop-card { min-width: 0; padding: 18px; border: 1px solid var(--line); background: rgba(3, 17, 21, 0.35); }
.stop-time { display: flex; justify-content: space-between; color: var(--mint); font-size: 10px; }
.verification { color: var(--gold); }
.stop-card h4 { margin: 16px 0 4px; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.location { margin: 0 0 13px; color: #7f9698; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; }
.stop-reason { min-height: 52px; color: var(--paper-muted); font-size: 12px; line-height: 1.5; }
.route { margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); color: #a9bab8; font-size: 10px; }
.source-link { display: inline-flex; gap: 6px; color: var(--wine); font-size: 10px; font-weight: 700; text-decoration: none; }
.source-link:hover { text-decoration: underline; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric { padding: 17px; border: 1px solid var(--line); background: rgba(3, 17, 21, 0.35); }
.metric strong { display: block; color: var(--mint); font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.metric span { color: #84999b; font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.operator-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; margin-top: 22px; }
.operator-section { padding: 21px; border: 1px solid var(--line); }
.operator-section h3, .evidence-section h3 { margin: 0 0 15px; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.signal-list { display: flex; flex-wrap: wrap; gap: 8px; }
.signal { padding: 8px 10px; color: var(--paper-muted); border: 1px solid rgba(216, 179, 106, 0.25); font-size: 10px; }
.opportunity { display: grid; grid-template-columns: 1fr auto; gap: 7px 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.opportunity:first-of-type { border-top: 0; padding-top: 0; }
.opportunity h4 { margin: 0; font-size: 13px; }
.opportunity p { grid-column: 1 / -1; margin: 0; color: var(--paper-muted); font-size: 11px; line-height: 1.5; }
.impact { color: var(--wine); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; }
.trust-list { margin: 0; padding-left: 18px; color: var(--paper-muted); font-size: 11px; line-height: 1.7; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.action-row a { padding: 9px 11px; color: var(--ink); background: var(--mint); font-size: 10px; font-weight: 800; text-decoration: none; }
.evidence-summary { padding: 18px 20px; border-left: 2px solid var(--gold); background: rgba(216, 179, 106, 0.06); color: var(--paper-muted); font-size: 12px; line-height: 1.55; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.evidence-card { padding: 18px; border: 1px solid var(--line); }
.evidence-card span { color: var(--gold); font-size: 9px; text-transform: uppercase; }
.evidence-card h4 { margin: 9px 0 6px; font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.evidence-card p { color: var(--paper-muted); font-size: 11px; }
.evidence-card a { color: var(--wine); font-size: 10px; }

.difference { display: grid; grid-template-columns: 0.65fr 1.35fr; gap: 70px; padding: 100px 0 90px; }
.difference h2 { max-width: 480px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.4rem, 4vw, 4.8rem); font-weight: 400; line-height: 1.02; }
.difference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.difference-grid article { padding-top: 18px; border-top: 1px solid var(--line); }
.difference-grid span { color: var(--wine); font-size: 10px; }
.difference-grid h3 { margin: 28px 0 11px; font-family: Georgia, serif; font-size: 24px; font-weight: 400; }
.difference-grid p { color: var(--paper-muted); font-size: 12px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; padding: 28px 0 38px; color: #718689; border-top: 1px solid var(--line); font-size: 10px; }
footer a { color: var(--paper-muted); text-decoration: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .trajectory { grid-template-columns: 0.55fr 1.45fr; }
  .milestones { grid-template-columns: 1fr 1fr; }
  .workspace { grid-template-columns: 340px minmax(0, 1fr); }
  .stop-list { grid-template-columns: 1fr; }
  .stop-reason { min-height: 0; }
  .difference { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 26px, 1440px); }
  .site-header { min-height: 70px; }
  .header-meta { max-width: 145px; text-align: right; font-size: 9px; }
  .hero { padding: 58px 0 42px; }
  .hero h1 { font-size: clamp(2.8rem, 15vw, 5rem); }
  .trajectory { grid-template-columns: 1fr; }
  .trajectory-lead { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trajectory-story { padding: 26px 22px; }
  .milestones { grid-template-columns: 1fr; }
  .network-loop { flex-wrap: wrap; justify-content: flex-start; }
  .network-stats { grid-template-columns: 1fr; }
  .workspace { grid-template-columns: 1fr; }
  .control-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-panel { padding: 24px 17px; }
  .empty-state, .loading-state { min-height: 520px; }
  .mission-header { flex-direction: column; }
  .tabs { gap: 15px; overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .metric-grid, .operator-grid, .evidence-grid, .difference-grid { grid-template-columns: 1fr; }
  .difference { padding: 70px 0 60px; }
  footer { flex-direction: column; gap: 10px; }
}

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