:root {
  color-scheme: dark;
  --canvas: #07111b;
  --surface: #0d1925;
  --surface-raised: #122231;
  --border: #263b4b;
  --text: #f3f7f8;
  --text-soft: #a7b7c2;
  --text-muted: #708694;
  --blue: #6f9cff;
  --teal: #49c8a6;
  --amber: #efb66d;
  --paper: #edf3f4;
  --page-width: 1180px;
  --gutter: clamp(20px, 4vw, 52px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
}

* { box-sizing: border-box; }

html { background: var(--canvas); scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 17%, rgba(111, 156, 255, 0.09), transparent 28%),
    var(--canvas);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid rgba(111, 156, 255, 0.8);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #07111b;
  background: var(--paper);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: none; }

.site-header,
main,
footer {
  width: min(var(--page-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(167, 183, 194, 0.13);
}

.brand,
.back-link,
.primary-action,
.contact-band > a {
  display: inline-flex;
  align-items: center;
}

.brand { gap: 10px; font-weight: 650; letter-spacing: -0.025em; }
.brand img { width: 24px; height: 29px; object-fit: contain; }

.back-link {
  min-height: 44px;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14px;
  transition: color 170ms ease;
}

.back-link:hover { color: var(--text); }
.back-link svg,
.primary-action svg,
.contact-band svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
  padding: clamp(76px, 10vw, 132px) 0;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 25px;
  font-size: clamp(54px, 6.6vw, 88px);
  font-weight: 580;
  letter-spacing: -0.064em;
  line-height: 0.98;
}

.hero-copy > p {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--text-soft);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
}

.primary-action {
  min-height: 48px;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid rgba(111, 156, 255, 0.46);
  border-radius: 12px;
  color: #f8fbff;
  background: #315fba;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 34px rgba(20, 64, 144, 0.24);
  font-size: 14px;
  font-weight: 650;
  transition: background 170ms ease, transform 170ms ease;
}

.primary-action:hover { background: #3a6dc5; transform: translateY(-1px); }

.trail-map {
  position: relative;
  min-height: 500px;
  border: 1px solid rgba(167, 183, 194, 0.17);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 49%, rgba(111, 156, 255, 0.1), transparent 33%),
    linear-gradient(150deg, rgba(24, 43, 61, 0.78), rgba(9, 20, 30, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 34px 90px rgba(0, 0, 0, 0.28);
}

.trail-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(167, 183, 194, 0.13) 0.8px, transparent 0.8px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.trail-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.path { fill: none; stroke-width: 2; }
.path-blue { stroke: rgba(111, 156, 255, 0.76); }
.path-teal { stroke: rgba(73, 200, 166, 0.66); }
.path-amber { stroke: rgba(239, 182, 109, 0.68); stroke-dasharray: 8 9; }
.path-quiet { stroke: rgba(167, 183, 194, 0.23); }
.node { stroke: #0d1925; stroke-width: 5; }
.node-paper { fill: var(--paper); }
.node-teal { fill: var(--teal); }
.node-blue { fill: var(--blue); }
.node-amber { fill: var(--amber); }
.node-large { stroke-width: 8; }

.evidence-note {
  position: absolute;
  min-width: 162px;
  padding: 13px 15px;
  border: 1px solid rgba(167, 183, 194, 0.18);
  border-radius: 12px;
  background: rgba(13, 25, 37, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.27);
}

.evidence-note span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.evidence-note strong { font-size: 13px; font-weight: 600; }
.note-one { top: 15%; left: 8%; }
.note-two { right: 7%; bottom: 12%; }

.principles {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 110px);
  padding: 100px 0 118px;
  border-top: 1px solid rgba(167, 183, 194, 0.13);
}

.principles h2,
.contact-band h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 4.5vw, 60px);
  font-weight: 570;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.principle-list { border-top: 1px solid var(--border); }

.principle-list article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 18px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--border);
}

.principle-list article > span {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.principle-list h3 { margin-bottom: 9px; font-size: 18px; font-weight: 620; }
.principle-list p { max-width: 610px; margin-bottom: 0; color: var(--text-soft); font-size: 15px; line-height: 1.65; }

.contact-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 76px;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(111, 156, 255, 0.24);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-band > div { max-width: 700px; }

.contact-band > a {
  min-height: 48px;
  flex: 0 0 auto;
  gap: 12px;
  color: #b9ceff;
  font-size: 15px;
  font-weight: 620;
}

.contact-band > a:hover { color: #e3ebff; }

footer {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(167, 183, 194, 0.13);
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .trail-map { min-height: 440px; }
  .principles { grid-template-columns: 1fr; }
  .contact-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header { min-height: 76px; }
  .back-link { font-size: 0; gap: 0; }
  .back-link svg { width: 22px; height: 22px; }
  .hero { gap: 52px; padding: 72px 0 86px; }
  h1 { font-size: clamp(48px, 15vw, 66px); }
  .trail-map { min-height: 350px; border-radius: 18px; }
  .evidence-note { min-width: 145px; padding: 11px 12px; }
  .note-one { top: 8%; left: 5%; }
  .note-two { right: 5%; bottom: 8%; }
  .principles { padding: 80px 0 92px; }
  .contact-band { margin-bottom: 54px; padding: 28px 24px; }
  footer { min-height: 112px; align-items: flex-start; flex-direction: column; justify-content: center; }
}

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