:root {
  --foam: #f7fbf6;
  --ink: #17313a;
  --muted: #657b7e;
  --line: rgba(23, 49, 58, .16);
  --sea: #187b82;
  --deep: #0b4d5a;
  --coral: #f06f5f;
  --sand: #ded0aa;
  --blue-soft: #dceff0;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(220, 239, 240, .9), transparent 42%),
    linear-gradient(315deg, rgba(222, 208, 170, .58), transparent 40%),
    var(--foam);
  font-family: var(--sans);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.wake {
  position: fixed;
  z-index: -1;
  width: 58vw;
  height: 36vw;
  border: 1px solid rgba(24, 123, 130, .18);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(-18deg);
}
.wake-one { top: -16vw; right: -18vw; }
.wake-two { bottom: -20vw; left: -22vw; border-color: rgba(240, 111, 95, .16); transform: rotate(24deg); }

.site-header,
main,
.site-footer {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
}
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 800;
  font-size: 1.06rem;
}
.brand-glyph {
  position: relative;
  width: 34px;
  height: 18px;
  border-bottom: 3px solid var(--sea);
  border-radius: 0 0 34px 34px;
}
.brand-glyph::before,
.brand-glyph::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}
.brand-glyph::before {
  left: 2px;
  top: 0;
  width: 11px;
  height: 11px;
  background: var(--coral);
}
.brand-glyph::after {
  right: 0;
  bottom: -6px;
  width: 8px;
  height: 8px;
  background: var(--sand);
}
nav {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}
nav a:hover,
.site-footer a:hover { color: var(--coral); }
.header-note {
  justify-self: end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 42px 0 88px;
}
.hero-map {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(247, 251, 246, .64);
  box-shadow: 0 34px 90px rgba(11, 77, 90, .12);
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,49,58,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,49,58,.06) 1px, transparent 1px);
  background-size: 54px 54px;
}
.coordinate,
.route-label {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: .64rem;
  text-transform: uppercase;
}
.coordinate { color: var(--muted); }
.north { top: 24px; left: 28px; }
.west { right: 28px; bottom: 24px; }
.route-line {
  position: absolute;
  inset: 8% 3% 4%;
  width: 94%;
  height: 84%;
  overflow: visible;
}
.route-line path {
  fill: none;
  stroke: var(--deep);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 1 34;
  opacity: .55;
}
.route-dot {
  position: absolute;
  z-index: 4;
  width: 20px;
  height: 20px;
  border: 4px solid var(--foam);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 1px var(--deep), 0 14px 30px rgba(11,77,90,.24);
}
.dot-a { left: 16%; bottom: 27%; }
.dot-b { left: 43%; top: 43%; background: var(--sand); }
.dot-c { right: 18%; top: 29%; background: var(--sea); }
.route-label {
  color: var(--deep);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 251, 246, .78);
}
.label-a { left: 12%; bottom: 19%; }
.label-b { left: 45%; top: 35%; }
.label-c { right: 13%; top: 21%; }
.hero-copy {
  position: absolute;
  left: clamp(28px, 6vw, 76px);
  bottom: clamp(56px, 8vw, 105px);
  z-index: 5;
  max-width: 620px;
}
.overline,
.route-title > span,
.systems-intro > span,
.signal-section > span,
.contact-card > span,
.site-footer {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}
.overline { margin: 0 0 14px; }
.hero h1 {
  margin: 0;
  max-width: 700px;
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(5.5rem, 14vw, 13rem);
  font-weight: 400;
  line-height: .76;
  letter-spacing: 0;
}
.hero-copy p:not(.overline) {
  max-width: 450px;
  margin: 26px 0 0;
  color: #445f64;
  font-size: 1.06rem;
  line-height: 1.68;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}
.primary-link { color: var(--foam); background: var(--deep); }
.primary-link:hover { background: var(--coral); }
.secondary-link { border: 1px solid var(--line); background: rgba(247,251,246,.74); }
.secondary-link:hover { border-color: var(--sea); color: var(--sea); }

.route-section,
.systems-section,
.contact-section {
  padding: 130px 0;
  border-top: 1px solid var(--line);
}
.route-title {
  display: grid;
  grid-template-columns: .32fr 1fr;
  gap: 44px;
  align-items: start;
}
h2 {
  margin: 0;
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 400;
  line-height: .88;
  text-wrap: balance;
}
.route-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 76px;
}
.route-ledger article {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 999px 999px 24px 24px;
  background: rgba(247,251,246,.52);
}
.ledger-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--foam);
  background: var(--sea);
  font-family: var(--mono);
  font-size: .72rem;
}
.route-ledger h3 {
  margin: 72px 0 14px;
  color: var(--deep);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1;
}
.route-ledger p,
.current-card strong,
.contact-card p {
  color: #52696d;
  line-height: 1.62;
  text-wrap: pretty;
}
.route-ledger p { margin: 0; }

.systems-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
}
.systems-intro h2 { margin-top: 22px; }
.current-board {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--line);
}
.current-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 24px;
  padding: 32px;
  background: rgba(247,251,246,.7);
}
.current-card span {
  color: var(--coral);
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}
.current-card strong { font-weight: 500; }

.signal-section {
  padding: 92px max(28px, calc((100% - 1220px) / 2));
  background: var(--deep);
  color: var(--foam);
}
.signal-section > span { color: rgba(247,251,246,.62); }
.signal-section p {
  max-width: 1050px;
  margin: 55px 0 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .93;
}
.signal-section em {
  color: var(--sand);
  font-style: italic;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 52px;
  align-items: end;
}
.contact-card h2 { max-width: 760px; margin-top: 22px; }
.email {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 690px;
  margin-top: 44px;
  padding: 18px 0;
  border-bottom: 2px solid var(--deep);
  color: var(--deep);
  font-family: var(--mono);
  font-size: clamp(.72rem, 1.4vw, .88rem);
  overflow-wrap: anywhere;
}
.email:hover { color: var(--coral); border-color: var(--coral); }
.social-log {
  display: grid;
  gap: 10px;
}
.social-log a {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247,251,246,.55);
}
.social-log span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  text-transform: uppercase;
}
.social-log strong {
  color: var(--deep);
  font-size: 1.2rem;
  font-weight: 600;
}
.social-log a:hover { border-color: var(--coral); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}
.site-footer > span:last-child { display: flex; gap: 18px; }

.legal {
  width: min(820px, calc(100% - 44px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 54px 0 100px;
}
.legal .brand { margin-bottom: 110px; }
.legal h1 {
  margin: 0 0 30px;
  color: var(--deep);
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 400;
  line-height: .82;
}
.legal p {
  max-width: 640px;
  color: #52696d;
  line-height: 1.75;
}
.legal .back {
  display: inline-flex;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--deep);
  color: var(--deep);
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding: 14px 0; }
  nav { grid-column: 1 / -1; order: 3; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
  .header-note { font-size: .62rem; }
  .hero-map { min-height: 650px; }
  .hero-copy { position: relative; left: auto; bottom: auto; margin-top: -555px; padding: 44px 28px 80px; }
  .route-title,
  .systems-section,
  .contact-section { grid-template-columns: 1fr; }
  .route-ledger { grid-template-columns: 1fr; }
  .route-ledger article { min-height: 220px; border-radius: 26px; }
  .route-ledger h3 { margin-top: 46px; }
}

@media (max-width: 600px) {
  .site-header,
  main,
  .site-footer { width: min(100% - 32px, 1220px); }
  .site-header { min-height: 70px; }
  .brand { font-size: 1rem; }
  .header-note { display: none; }
  nav a { font-size: .62rem; }
  .hero { min-height: auto; padding-top: 34px; }
  .hero-map { min-height: 610px; border-radius: 22px; }
  .hero-copy { margin-top: -530px; padding: 36px 20px 70px; }
  .hero h1 { font-size: clamp(4.5rem, 24vw, 7rem); }
  .hero-copy p:not(.overline) { font-size: .98rem; }
  .route-section,
  .systems-section,
  .contact-section { padding: 84px 0; }
  h2 { font-size: clamp(3.3rem, 16vw, 5.6rem); }
  .route-ledger { margin-top: 48px; }
  .current-card { grid-template-columns: 1fr; padding: 25px; }
  .signal-section { padding: 70px 16px; }
  .signal-section p { margin-top: 40px; font-size: clamp(3rem, 14vw, 5rem); }
  .social-log a { padding: 20px; }
  .site-footer { flex-direction: column; align-items: flex-start; font-size: .6rem; }
}
