:root {
  color-scheme: dark;
  --night: #030a08;
  --night-raised: #06130f;
  --panel: rgba(7, 22, 18, 0.88);
  --panel-strong: #081a15;
  --paper: #eef0df;
  --paper-soft: #c9d0be;
  --muted: #91a79d;
  --faint: #587168;
  --mint: #7ce4b8;
  --sky: #70c9d5;
  --amber: #d9b865;
  --alert: #e08b78;
  --line: rgba(124, 228, 184, 0.18);
  --line-strong: rgba(124, 228, 184, 0.48);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 8% 7%, rgba(124, 228, 184, 0.1), transparent 27rem),
    radial-gradient(circle at 88% 18%, rgba(112, 201, 213, 0.08), transparent 28rem),
    linear-gradient(145deg, #071713 0%, var(--night) 47%, #020705 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.52;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124, 228, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 228, 184, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 14px;
  padding: 12px 16px;
  color: var(--night);
  background: var(--paper);
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.perimeter-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.perimeter-head {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  width: fit-content;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--mint);
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  box-shadow:
    0 0 0 7px rgba(124, 228, 184, 0.03),
    inset 0 0 18px rgba(124, 228, 184, 0.08);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong,
.brand-copy small,
.perimeter-nav,
.channel-state,
.perimeter-code,
.section-index,
dt,
.security-strip,
.scope-card-head,
.route-links span,
.route-links small,
footer {
  font-family: var(--mono);
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.perimeter-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
  font-size: 0.61rem;
  letter-spacing: 0.15em;
}

.perimeter-nav a {
  padding: 10px 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.perimeter-nav a:hover,
.perimeter-nav a:focus-visible {
  color: var(--mint);
  border-color: var(--mint);
  outline: none;
}

.channel-state {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
}

.channel-state span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 14px rgba(124, 228, 184, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
  min-height: 720px;
  padding: clamp(58px, 8vw, 110px) clamp(0px, 3vw, 40px);
}

.perimeter-code,
.section-index {
  margin: 0;
  color: var(--mint);
  font-size: 0.63rem;
  line-height: 1.6;
  letter-spacing: 0.28em;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
}

h1 {
  margin-top: 24px;
  font-size: clamp(4.7rem, 8.6vw, 8rem);
  line-height: 0.8;
}

h1 span,
h1 em {
  display: block;
}

h1 em,
h2 em {
  color: var(--mint);
  font-weight: 400;
}

h1 em {
  max-width: 8.2ch;
  margin: 0.2em 0 0 0.2em;
}

.lead {
  max-width: 680px;
  margin: 40px 0 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: clamp(1.16rem, 2vw, 1.46rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions a {
  display: inline-flex;
  min-height: 48px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: var(--paper-soft);
  font: 700 0.64rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-actions .primary-action {
  color: var(--night);
  background: var(--mint);
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  color: var(--night);
  background: var(--paper);
  border-color: var(--paper);
  outline: none;
}

.program-note {
  max-width: 620px;
  margin: 32px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 400 0.66rem/1.7 var(--mono);
}

.perimeter-map {
  position: relative;
  display: grid;
  min-height: 550px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(124, 228, 184, 0.045), transparent 36%),
    rgba(3, 13, 10, 0.68);
}

.perimeter-map::before,
.perimeter-map::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.perimeter-map::before {
  inset: 18px;
  border: 1px solid rgba(124, 228, 184, 0.07);
}

.perimeter-map::after {
  width: 13px;
  height: 13px;
  top: -1px;
  right: -1px;
  border-top: 1px solid var(--mint);
  border-right: 1px solid var(--mint);
}

.map-field {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(124, 228, 184, 0.08), transparent 46%);
}

.map-grid,
.boundary,
.axis,
.scan-line,
.report-node,
.scope-point,
.map-label {
  position: absolute;
}

.map-grid {
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(124, 228, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 228, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.boundary {
  top: 50%;
  left: 50%;
  border: 1px solid var(--line-strong);
  transform: translate(-50%, -50%) rotate(45deg);
}

.boundary-outer {
  width: min(66%, 300px);
  aspect-ratio: 1;
}

.boundary-middle {
  width: min(46%, 210px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(112, 201, 213, 0.4);
}

.boundary-inner {
  width: min(23%, 104px);
  aspect-ratio: 1;
  border-color: rgba(224, 139, 120, 0.6);
}

.axis-horizontal,
.axis-vertical {
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(124, 228, 184, 0.2), transparent);
}

.axis-horizontal {
  width: 86%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.axis-vertical {
  width: 1px;
  height: 86%;
  background: linear-gradient(transparent, rgba(124, 228, 184, 0.2), transparent);
  transform: translate(-50%, -50%);
}

.scan-line {
  width: 68%;
  height: 1px;
  top: 22%;
  left: 16%;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 14px rgba(124, 228, 184, 0.32);
}

.report-node {
  display: grid;
  width: 46px;
  height: 46px;
  top: 50%;
  left: 50%;
  place-items: center;
  border: 1px solid var(--alert);
  color: var(--paper);
  background: var(--night-raised);
  font: 700 0.72rem/1 var(--mono);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 10px rgba(224, 139, 120, 0.05),
    0 0 30px rgba(224, 139, 120, 0.12);
}

.scope-point {
  width: 9px;
  height: 9px;
  border: 2px solid var(--night);
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(124, 228, 184, 0.09);
}

.scope-point-a {
  top: 22%;
  right: 24%;
}

.scope-point-b {
  right: 19%;
  bottom: 25%;
  background: var(--sky);
}

.scope-point-c {
  bottom: 28%;
  left: 20%;
  background: var(--amber);
}

.map-label {
  color: var(--faint);
  font: 700 0.52rem/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label-public {
  top: 18px;
  left: 20px;
}

.label-authorized {
  right: 20px;
  bottom: 18px;
}

.label-private {
  top: calc(50% + 38px);
  left: 50%;
  color: rgba(224, 139, 120, 0.78);
  transform: translateX(-50%);
}

.perimeter-map figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  align-content: center;
  min-height: 110px;
  padding: 22px 26px;
  border-top: 1px solid var(--line);
}

.perimeter-map figcaption span,
.perimeter-map figcaption small {
  color: var(--muted);
  font: 700 0.56rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.perimeter-map figcaption strong {
  justify-self: end;
  color: var(--mint);
  font: 400 0.82rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perimeter-map figcaption small {
  grid-column: 1 / -1;
  max-width: 42ch;
  letter-spacing: 0.06em;
  text-transform: none;
}

.security-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 0.95fr);
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.security-strip div {
  display: grid;
  gap: 10px;
  min-height: 110px;
  align-content: center;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.security-strip div:last-child {
  border-right: 0;
}

dt {
  color: var(--faint);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
}

dd {
  margin: 0;
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
}

.scope-section {
  padding: clamp(100px, 12vw, 160px) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 0.7fr);
  gap: clamp(50px, 10vw, 140px);
  align-items: end;
}

.section-heading .section-index {
  grid-column: 1;
  grid-row: 1;
}

.section-heading h2 {
  grid-column: 1;
  grid-row: 2;
}

.section-heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
}

h2 {
  margin-top: 22px;
  font-size: clamp(3.5rem, 6.6vw, 7rem);
  line-height: 0.88;
}

.section-heading > p:last-child,
.report-intro > p:last-child,
.route-section > div > p:last-child {
  margin: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.14rem;
  line-height: 1.7;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.scope-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 15, 12, 0.56);
}

.scope-card::before {
  position: absolute;
  height: 2px;
  inset: -1px -1px auto;
  content: "";
  background: var(--mint);
}

.scope-card-out::before {
  background: var(--alert);
}

.scope-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--faint);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.scope-card-head p {
  margin: 0;
}

.scope-card-head span {
  color: var(--mint);
}

.scope-card-out .scope-card-head span {
  color: var(--alert);
}

.scope-card h3 {
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  font-weight: 400;
}

.scope-card ul {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--paper-soft);
  line-height: 1.65;
  list-style: none;
}

.scope-card li {
  position: relative;
  padding-left: 24px;
}

.scope-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 1px;
  content: "";
  background: var(--mint);
}

.scope-card-out li::before {
  background: var(--alert);
}

.authorization-note {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) 1fr;
  gap: 30px;
  margin-top: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--amber);
  border-bottom: 1px solid var(--line);
}

.authorization-note span {
  color: var(--amber);
  font: 700 0.62rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.authorization-note p {
  margin: 0;
  color: var(--muted);
  font: 400 0.74rem/1.7 var(--mono);
}

.report-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 10vw, 140px);
  padding: clamp(100px, 12vw, 160px) 0;
  border-bottom: 1px solid var(--line);
}

.report-intro {
  align-self: start;
}

.report-intro h2 {
  font-size: clamp(3.5rem, 5.8vw, 6.2rem);
}

.report-intro > p:last-child {
  margin-top: 32px;
}

.report-ledger {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.report-ledger li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.report-ledger li > span {
  color: var(--amber);
  font: 700 0.61rem/1.4 var(--mono);
}

.report-ledger strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.report-ledger p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.stop-section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  margin: clamp(70px, 10vw, 120px) 0;
  padding: clamp(34px, 5vw, 62px);
  border: 1px solid rgba(224, 139, 120, 0.34);
  background:
    linear-gradient(135deg, rgba(224, 139, 120, 0.08), transparent 42%),
    rgba(22, 12, 10, 0.48);
}

.stop-signal {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(224, 139, 120, 0.52);
  transform: rotate(45deg);
}

.stop-signal span {
  width: 48px;
  height: 48px;
  border: 1px solid var(--alert);
  background: rgba(224, 139, 120, 0.08);
}

.stop-section .section-index {
  color: var(--alert);
}

.stop-section h2 {
  margin-top: 18px;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
}

.stop-section > div:last-child > p:last-child {
  max-width: 790px;
  margin: 26px 0 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
}

.route-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
  padding: 20px 0 76px;
}

.route-section h2 {
  font-size: clamp(3.2rem, 5vw, 5.5rem);
}

.route-section > div > p:last-child {
  margin-top: 28px;
}

.route-links {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.route-links a {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) 1fr;
  gap: 12px 24px;
  min-height: 136px;
  align-content: center;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.route-links span,
.route-links small {
  color: var(--faint);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
}

.route-links strong {
  justify-self: end;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  text-align: right;
}

.route-links small {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.route-links b {
  color: var(--mint);
  font-weight: 400;
}

.route-links a:hover,
.route-links a:focus-visible {
  background: rgba(124, 228, 184, 0.05);
  outline: none;
}

.route-links a:hover strong,
.route-links a:focus-visible strong {
  color: var(--mint);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
}

footer p {
  display: flex;
  gap: 10px;
  margin: 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--mint);
  outline: none;
}

@media (max-width: 1020px) {
  .perimeter-head {
    grid-template-columns: 1fr auto;
  }

  .perimeter-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .perimeter-map {
    width: min(100%, 640px);
    justify-self: end;
  }

  .section-heading,
  .report-section,
  .route-section {
    grid-template-columns: 1fr;
  }

  .section-heading .section-index,
  .section-heading h2,
  .section-heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p:last-child,
  .report-intro > p:last-child,
  .route-section > div > p:last-child {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  .perimeter-shell {
    width: min(100% - 28px, 600px);
  }

  .perimeter-head {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
  }

  .channel-state {
    justify-content: flex-start;
  }

  .hero {
    gap: 54px;
    min-height: auto;
    padding: 74px 0;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
    line-height: 0.84;
  }

  h1 em {
    margin-left: 0;
  }

  .lead {
    margin-top: 30px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions a {
    width: 100%;
  }

  .perimeter-map {
    min-height: 455px;
  }

  .map-field {
    min-height: 340px;
  }

  .perimeter-map figcaption {
    grid-template-columns: 1fr;
  }

  .perimeter-map figcaption strong {
    justify-self: start;
  }

  .security-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-strip div:nth-child(2) {
    border-right: 0;
  }

  .security-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .scope-section,
  .report-section {
    padding: 90px 0;
  }

  h2,
  .report-intro h2,
  .route-section h2 {
    font-size: clamp(3.1rem, 14vw, 4.9rem);
  }

  .scope-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .authorization-note {
    grid-template-columns: 1fr;
  }

  .stop-section {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }

  .stop-signal {
    width: 96px;
    height: 96px;
  }

  .stop-section h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .route-links a {
    grid-template-columns: 1fr;
  }

  .route-links strong {
    justify-self: start;
    text-align: left;
  }

  .route-section {
    padding-bottom: 64px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .scan-line {
    animation: perimeter-scan 7s ease-in-out infinite;
  }

  @keyframes perimeter-scan {
    0%,
    100% {
      top: 22%;
      opacity: 0.38;
    }

    50% {
      top: 78%;
      opacity: 0.9;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
