:root {
  color-scheme: dark;
  --ink: #f3f1e6;
  --muted: #9baeb0;
  --night: #041114;
  --deep: #071b20;
  --panel: rgba(8, 31, 35, .82);
  --panel-soft: rgba(15, 47, 50, .58);
  --line: rgba(191, 220, 207, .15);
  --foam: #d9f0df;
  --mint: #8de0b1;
  --gold: #e8c77a;
  --rust: #d77d5a;
  --blue: #68a9be;
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 5%, rgba(104, 169, 190, .14), transparent 24rem),
    radial-gradient(circle at 8% 32%, rgba(141, 224, 177, .08), transparent 26rem),
    linear-gradient(180deg, #06171b 0%, #041114 56%, #020b0d 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 118%, rgba(104, 169, 190, .14), transparent 48%),
    linear-gradient(112deg, transparent 0 45%, rgba(141, 224, 177, .025) 52%, transparent 59%);
}

a { color: inherit; }

button,
input { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--night);
  background: var(--foam);
  transform: translateY(-160%);
}

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

.atlas-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 0 18px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 17, 20, .96), rgba(4, 17, 20, .82));
  backdrop-filter: blur(18px);
}

.atlas-brand,
.atlas-nav,
.return-link {
  display: flex;
  align-items: center;
}

.atlas-brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
}

.atlas-brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(141, 224, 177, .55);
  border-radius: 50%;
  color: var(--mint);
  font-family: Georgia, serif;
}

.atlas-nav { gap: 18px; }

.atlas-kicker,
.source-line,
.atlas-panel small,
.weather-note small,
.form-status {
  color: var(--muted);
  font-size: 12px;
}

.return-link {
  min-height: 42px;
  padding: 0 16px;
  justify-content: center;
  border: 1px solid rgba(141, 224, 177, .3);
  border-radius: 999px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.return-link:hover,
.quiet-link:hover { border-color: rgba(141, 224, 177, .68); color: var(--foam); }

main {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
}

.atlas-gate {
  display: grid;
  max-width: 760px;
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  padding: 14vh 0 100px;
  align-content: start;
  justify-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.atlas-gate h1 {
  max-width: 700px;
  font-size: clamp(54px, 9vw, 108px);
  line-height: .92;
  letter-spacing: -.06em;
}

.gate-status {
  margin: 38px 0 0;
  color: var(--foam);
  font-size: clamp(20px, 3vw, 28px);
}

.gate-detail {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  margin-top: 30px;
  padding: 0 20px;
  align-items: center;
  border-radius: 999px;
  color: #062018;
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.atlas-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: min(720px, calc(100vh - 88px));
  padding: clamp(76px, 10vw, 132px) 0 78px;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.atlas-hero-copy,
.truth-seal {
  position: relative;
  z-index: 2;
}

.atlas-hero h1 {
  max-width: 870px;
  font-size: clamp(58px, 9vw, 122px);
  line-height: .86;
  letter-spacing: -.065em;
}

.atlas-hero h1 em {
  color: var(--mint);
  font-weight: 400;
}

.atlas-intro {
  max-width: 670px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  margin-top: 30px;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions .primary-link { margin-top: 0; }

.quiet-link {
  display: inline-flex;
  min-height: 48px;
  padding: 0 19px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.hero-dateline {
  margin: 17px 0 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-seascape {
  position: absolute;
  inset: 9% -5% 2% 34%;
  z-index: 0;
  overflow: hidden;
  opacity: .88;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, black 32%);
}

.hero-seascape::before,
.hero-seascape::after {
  position: absolute;
  right: -8%;
  bottom: 8%;
  left: 8%;
  height: 34%;
  content: "";
  border-radius: 50% 50% 0 0;
  background:
    repeating-radial-gradient(ellipse at 50% 115%, transparent 0 22px, rgba(104, 169, 190, .12) 23px 24px, transparent 25px 45px),
    linear-gradient(180deg, rgba(104, 169, 190, .07), rgba(4, 17, 20, .42));
  transform: perspective(500px) rotateX(58deg);
}

.hero-seascape::after {
  right: -18%;
  bottom: -2%;
  left: 20%;
  opacity: .5;
  transform: perspective(500px) rotateX(64deg) translateY(30px);
}

.hero-sun {
  position: absolute;
  top: 18%;
  right: 17%;
  width: 114px;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 199, 122, .38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 199, 122, .22), rgba(232, 199, 122, .025) 62%, transparent 64%);
  box-shadow: 0 0 90px rgba(232, 199, 122, .12);
}

.hero-horizon {
  position: absolute;
  top: 51%;
  right: 0;
  left: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 224, 177, .32), transparent);
}

.hero-current {
  position: absolute;
  right: 5%;
  bottom: 25%;
  width: 58%;
  height: 25%;
  border-top: 1px solid rgba(141, 224, 177, .24);
  border-radius: 50%;
  transform: rotate(-8deg);
  animation: current-breathe 10s ease-in-out infinite;
}

.hero-current-two {
  right: 12%;
  bottom: 17%;
  width: 43%;
  opacity: .55;
  animation-delay: -4s;
}

.hero-lighthouse {
  position: absolute;
  top: 38%;
  right: 34%;
  width: 7px;
  height: 58px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #6c5740, #d9bd83, #5b4734);
  box-shadow: 0 43px 0 9px rgba(4, 17, 20, .9);
}

.hero-lighthouse::before {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 17px;
  height: 8px;
  content: "";
  border-radius: 3px;
  background: var(--gold);
  box-shadow: 0 0 28px rgba(232, 199, 122, .64);
}

.truth-seal {
  display: grid;
  width: 178px;
  aspect-ratio: 1;
  padding: 22px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(232, 199, 122, .36);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(232, 199, 122, .025);
  text-align: center;
  transform: rotate(3deg);
}

.truth-seal span {
  color: var(--gold);
  font-size: 32px;
}

.truth-seal strong {
  margin-top: 8px;
  font-family: Georgia, serif;
}

.truth-seal small {
  margin-top: 5px;
  color: var(--muted);
}

.chart-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.chart-rail a {
  display: grid;
  min-height: 88px;
  padding: 16px 18px;
  grid-template-columns: 30px 1fr;
  gap: 2px 10px;
  align-content: center;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.chart-rail a:last-child { border-right: 0; }

.chart-rail span {
  grid-row: 1 / span 2;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 18px;
}

.chart-rail strong { color: var(--foam); font-size: 11px; }
.chart-rail small { color: var(--muted); font-size: 9px; }
.chart-rail a:hover { background: rgba(141, 224, 177, .035); }

.solana-sea {
  margin: 26px 0;
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 72% 8%, rgba(104, 169, 190, .11), transparent 25rem),
    linear-gradient(145deg, rgba(141, 224, 177, .035), transparent 50%),
    rgba(5, 24, 29, .9);
}

.sea-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.sea-heading h2 {
  max-width: 780px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .96;
  letter-spacing: -.055em;
}

.sea-boundary-badges {
  display: flex;
  max-width: 390px;
  gap: 7px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sea-boundary-badges span {
  padding: 7px 10px;
  border: 1px solid rgba(141, 224, 177, .24);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(4, 17, 20, .42);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sea-intro {
  max-width: 840px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sea-status {
  min-height: 1.5em;
  margin: 14px 0 22px;
  color: var(--foam);
  font-size: 11px;
}

.sea-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, .62fr);
  gap: 18px;
}

.sea-chart {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(104, 169, 190, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 70% 28%, rgba(104, 169, 190, .16), transparent 18rem),
    radial-gradient(circle at 24% 78%, rgba(141, 224, 177, .09), transparent 16rem),
    linear-gradient(145deg, #08262d, #05191f 56%, #061419);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .28);
}

.sea-chart::before,
.sea-chart::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.sea-chart::before {
  right: -7%;
  bottom: -14%;
  width: 39%;
  height: 45%;
  border: 1px solid rgba(232, 199, 122, .21);
  border-radius: 48% 39% 55% 32%;
  background: rgba(232, 199, 122, .045);
  transform: rotate(-13deg);
}

.sea-chart::after {
  top: -20%;
  left: -12%;
  width: 38%;
  height: 47%;
  border: 1px solid rgba(232, 199, 122, .18);
  border-radius: 41% 57% 35% 61%;
  background: rgba(232, 199, 122, .035);
  transform: rotate(18deg);
}

.sea-chart-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .18;
  background-image:
    linear-gradient(rgba(217, 240, 223, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 240, 223, .12) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle, black, transparent 87%);
}

.sea-depth {
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 150px;
  border: 1px solid rgba(104, 169, 190, .16);
  border-radius: 50%;
  opacity: .7;
}

.sea-depth-one { top: 12%; right: 14%; transform: rotate(14deg); }
.sea-depth-two { bottom: 13%; left: 15%; width: 190px; height: 120px; transform: rotate(-21deg); }

.sea-compass {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(232, 199, 122, .24);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
  background: rgba(4, 17, 20, .54);
}

.sea-compass::before,
.sea-compass::after {
  position: absolute;
  content: "";
  background: rgba(232, 199, 122, .22);
}

.sea-compass::before { width: 1px; height: 42px; }
.sea-compass::after { width: 42px; height: 1px; }
.sea-compass span { position: relative; z-index: 1; transform: translateY(-10px); }

.sea-wakes {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sea-wake-path {
  fill: none;
  stroke: rgba(232, 199, 122, .6);
  stroke-width: 2;
  stroke-dasharray: 8 9;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(232, 199, 122, .28));
  animation: historical-wake 18s linear infinite;
}

.sea-wake-path.public-wake {
  stroke: rgba(141, 224, 177, .54);
}

.sea-wake-path.pending-evidence {
  stroke: rgba(155, 174, 176, .38);
  stroke-dasharray: 3 12;
}

.sea-ports,
.sea-vessels {
  position: absolute;
  inset: 0;
}

.sea-ports { z-index: 2; }
.sea-vessels { z-index: 3; pointer-events: none; }

.sea-port {
  position: absolute;
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  transform: translate(-50%, -50%);
}

.sea-port::before {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  margin: 0;
  content: "";
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(232, 199, 122, .52);
}

.sea-port::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  content: "";
  border: 1px solid rgba(232, 199, 122, .29);
  border-radius: 50%;
  background: rgba(5, 24, 29, .91);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .32);
  transform: translate(-50%, -50%);
}

.sea-port:hover,
.sea-port:focus-visible {
  z-index: 5;
  transform: translate(-50%, -50%) translateY(-3px);
}
.sea-port:hover::after,
.sea-port:focus-visible::after { border-color: var(--gold); }

.sea-port strong {
  position: absolute;
  top: 42px;
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: 150px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(232, 199, 122, .24);
  border-radius: 7px;
  background: rgba(4, 17, 20, .96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .34);
  font-family: Georgia, serif;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity 140ms ease;
}

.sea-port small {
  position: absolute;
  top: 50%;
  left: 42px;
  max-width: 62px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(-50%);
}

.sea-port:hover strong,
.sea-port:focus-visible strong { opacity: 1; }
.sea-port.historical-port::after { border-color: rgba(155, 174, 176, .23); }
.sea-port.historical-port::before { border-color: var(--muted); box-shadow: none; }

.sea-vessel {
  position: absolute;
  display: grid;
  width: 56px;
  min-height: 52px;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--foam);
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.sea-vessel::before {
  width: 28px;
  height: 22px;
  content: "";
  border-right: 13px solid transparent;
  border-bottom: 24px solid rgba(217, 240, 223, .82);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .42));
  transform: skewX(-8deg) translateY(-4px);
}

.sea-vessel::after {
  position: absolute;
  top: 31px;
  width: 38px;
  height: 8px;
  content: "";
  border-radius: 3px 3px 18px 18px;
  background: linear-gradient(180deg, #b0814f, #4f3827);
  box-shadow: 0 0 0 4px rgba(5, 24, 29, .5);
}

.sea-vessel span {
  position: absolute;
  top: 45px;
  left: 50%;
  max-width: 92px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(141, 224, 177, .2);
  border-radius: 999px;
  color: var(--foam);
  background: rgba(4, 17, 20, .86);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}

.sea-vessel.public-vessel::before { border-bottom-color: rgba(141, 224, 177, .78); }
.sea-vessel:hover,
.sea-vessel:focus-visible { z-index: 6; filter: brightness(1.18); }

.sea-x-0 { left: 6%; }
.sea-x-1 { left: 14%; }
.sea-x-2 { left: 22%; }
.sea-x-3 { left: 30%; }
.sea-x-4 { left: 38%; }
.sea-x-5 { left: 46%; }
.sea-x-6 { left: 54%; }
.sea-x-7 { left: 62%; }
.sea-x-8 { left: 70%; }
.sea-x-9 { left: 78%; }
.sea-x-10 { left: 86%; }
.sea-x-11 { left: 94%; }
.sea-y-0 { top: 6%; }
.sea-y-1 { top: 14%; }
.sea-y-2 { top: 22%; }
.sea-y-3 { top: 30%; }
.sea-y-4 { top: 38%; }
.sea-y-5 { top: 46%; }
.sea-y-6 { top: 54%; }
.sea-y-7 { top: 62%; }
.sea-y-8 { top: 70%; }
.sea-y-9 { top: 78%; }
.sea-y-10 { top: 86%; }
.sea-y-11 { top: 94%; }

.sea-offset-1 { margin-left: 10px; margin-top: -8px; }
.sea-offset-2 { margin-left: -9px; margin-top: 9px; }
.sea-offset-3 { margin-left: 14px; margin-top: 10px; }
.sea-offset-4 { margin-left: -13px; margin-top: -10px; }

.sea-map-empty {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 4;
  display: grid;
  width: min(390px, calc(100% - 40px));
  padding: 24px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(4, 17, 20, .9);
  text-align: center;
  transform: translate(-50%, -50%);
}

.sea-map-empty > span { color: var(--gold); font-size: 27px; }
.sea-map-empty strong { margin-top: 8px; color: var(--foam); font-family: Georgia, serif; font-size: 20px; }
.sea-map-empty p { margin: 8px 0 0; font-size: 10px; line-height: 1.55; }

.sea-chart-disclosure {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 4;
  margin: 0;
  color: rgba(217, 240, 223, .62);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.sea-log {
  display: flex;
  min-width: 0;
  padding: 24px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(4, 17, 20, .46);
}

.sea-log h3 { font-size: 29px; letter-spacing: -.04em; }

.sea-metrics {
  display: grid;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.sea-metrics > div {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 12px 0;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.sea-metrics dt { color: var(--muted); font-size: 9px; }
.sea-metrics dd { margin: 0; color: var(--foam); font-size: 10px; text-align: right; }

.sea-legend {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 13px;
  list-style: none;
}

.sea-legend li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: center;
}

.sea-legend strong,
.sea-legend small { display: block; }
.sea-legend strong { color: var(--foam); font-size: 10px; }
.sea-legend small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }

.sea-legend-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
}

.sea-legend-mark.wake-mark { height: 1px; border-radius: 0; background: var(--gold); }
.sea-legend-mark.vessel-mark { border-radius: 2px 2px 7px 7px; background: var(--mint); }
.sea-legend-mark.fog-mark { background: rgba(217, 240, 223, .32); filter: blur(2px); }

.sea-public-captains {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid rgba(104, 169, 190, .18);
  border-radius: 14px;
  background: rgba(104, 169, 190, .04);
}

.sea-public-captains strong { color: var(--foam); font-family: Georgia, serif; font-size: 15px; }
.sea-public-captains p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.sea-log > .source-line { margin-top: auto; padding-top: 20px; line-height: 1.45; }

.sea-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 22px;
  padding-top: 20px;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.sea-footer p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.sea-footer p strong { color: var(--foam); }

.vessel-dialog-identity {
  display: flex;
  margin-top: 24px;
  gap: 14px;
  align-items: center;
}

.vessel-dialog-mark {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(232, 199, 122, .28);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(232, 199, 122, .05);
}

.vessel-dialog-identity strong { color: var(--foam); font-family: Georgia, serif; font-size: 20px; }
.vessel-dialog-identity p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.vessel-performance-label { color: var(--foam); font-family: Georgia, serif; font-size: 20px; line-height: 1.45; }

.dialog-safety {
  margin-top: 24px;
  padding: 15px;
  border: 1px solid rgba(141, 224, 177, .18);
  border-radius: 14px;
  background: rgba(141, 224, 177, .04);
}

.dialog-safety strong { color: var(--mint); font-size: 11px; }
.dialog-safety p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.dialog-wheelhouse-link { width: 100%; margin-top: 18px; }

.weather-strip {
  display: grid;
  grid-template-columns: minmax(190px, .8fr) 1.2fr minmax(230px, .8fr);
  gap: 28px;
  padding: 26px 0;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weather-heading h2,
.atlas-panel h2,
.layer-legend h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.035em;
}

.weather-readings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-left: 1px solid var(--line);
}

.weather-readings > div {
  min-height: 70px;
  padding: 8px 22px;
  border-right: 1px solid var(--line);
}

.weather-readings dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.weather-readings dd {
  margin: 10px 0 0;
  color: var(--foam);
  font-family: Georgia, serif;
  font-size: 18px;
}

.weather-note p {
  margin: 0 0 8px;
  color: var(--foam);
  font-size: 12px;
  line-height: 1.55;
}

.harbor-grid {
  display: grid;
  grid-template-columns: minmax(250px, .7fr) minmax(250px, .7fr) minmax(460px, 1.6fr);
  gap: 18px;
  margin: 26px 0 18px;
}

.atlas-panel {
  position: relative;
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
}

.atlas-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}

.panel-heading,
.dialog-heading,
.dialog-section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.layer-chip,
.dock-badge,
.unknown-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.layer-chip.objective { color: var(--foam); border-color: rgba(217, 240, 223, .28); }
.layer-chip.analysis { color: var(--gold); border-color: rgba(232, 199, 122, .3); }
.layer-chip.private { color: var(--mint); border-color: rgba(141, 224, 177, .3); }
.dock-badge { color: var(--blue); border-color: rgba(104, 169, 190, .35); }
.unknown-chip { color: var(--rust); border-color: rgba(215, 125, 90, .35); }

.captain-identity {
  display: flex;
  margin-top: 34px;
  gap: 16px;
  align-items: center;
}

.captain-compass {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(232, 199, 122, .35);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, rgba(232, 199, 122, .12), transparent 65%);
}

.captain-compass span { font-size: 27px; }
.captain-identity strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.captain-identity p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }

.forget-captain {
  margin-top: 16px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forget-captain:hover { color: var(--foam); }

.check-in-drawer {
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.check-in-drawer summary {
  color: var(--mint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.check-in-drawer > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.check-in-drawer label {
  display: block;
  margin-bottom: 7px;
  color: var(--foam);
  font-size: 11px;
  font-weight: 700;
}

.check-in-drawer input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(0,0,0,.22);
}

.check-in-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.check-in-actions button {
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(141, 224, 177, .28);
  border-radius: 10px;
  color: #062018;
  background: var(--mint);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.check-in-actions .secondary-button {
  color: var(--mint);
  background: transparent;
}

.check-in-actions .wheelhouse-button { grid-column: 1 / -1; }

.check-in-actions button:disabled { opacity: .55; cursor: wait; }

.form-status {
  min-height: 2.8em;
  margin: 9px 0 0;
  line-height: 1.4;
}

.vessel-card {
  display: flex;
  flex-direction: column;
}

.vessel-portrait {
  position: relative;
  min-height: 210px;
  margin: 20px -24px 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 78%, rgba(104, 169, 190, .19), transparent 48%),
    linear-gradient(180deg, transparent 62%, rgba(104, 169, 190, .08));
}

.mast {
  position: absolute;
  top: 25px;
  left: 49%;
  width: 3px;
  height: 125px;
  border-radius: 9px;
  background: #b99c6b;
}

.sail {
  position: absolute;
  top: 38px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.2));
}

.sail-left {
  left: calc(49% - 69px);
  border-top: 92px solid transparent;
  border-right: 61px solid rgba(217, 240, 223, .85);
}

.sail-right {
  left: calc(49% + 5px);
  border-right: 58px solid transparent;
  border-bottom: 104px solid rgba(141, 224, 177, .58);
}

.hull {
  position: absolute;
  top: 145px;
  left: calc(50% - 90px);
  width: 180px;
  height: 39px;
  border-radius: 6px 6px 90px 90px;
  background: linear-gradient(180deg, #8e643d, #34281e);
  transform: skewX(-8deg);
}

.water-line {
  position: absolute;
  top: 178px;
  left: 5%;
  width: 90%;
  height: 20px;
  border-top: 1px solid rgba(141, 224, 177, .35);
  border-radius: 50%;
  animation: water-breathe 6s ease-in-out infinite;
}

.vessel-card > p { margin: auto 0 5px; color: var(--foam); font-size: 12px; text-transform: capitalize; }

.map-card { padding-bottom: 19px; }

.chart-frame {
  position: relative;
  min-height: 355px;
  margin: 20px -8px 16px;
  overflow: hidden;
  border: 1px solid rgba(104, 169, 190, .12);
  border-radius: 16px;
  background:
    radial-gradient(circle at 65% 40%, rgba(104, 169, 190, .13), transparent 22%),
    linear-gradient(150deg, #082228, #06171c 65%, #0b2529);
}

.chart-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(217,240,223,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217,240,223,.12) 1px, transparent 1px);
  background-size: 38px 38px;
  transform: perspective(600px) rotateX(7deg) scale(1.1);
}

.coast {
  position: absolute;
  border: 1px solid rgba(232, 199, 122, .28);
  background: rgba(232, 199, 122, .07);
  filter: blur(.1px);
}

.coast-one {
  top: -80px;
  right: -55px;
  width: 230px;
  height: 280px;
  border-radius: 42% 36% 58% 51%;
  transform: rotate(19deg);
}

.coast-two {
  bottom: -110px;
  left: -75px;
  width: 270px;
  height: 230px;
  border-radius: 44% 63% 34% 56%;
  transform: rotate(-12deg);
}

.shipping-lane {
  position: absolute;
  top: 63%;
  left: 17%;
  width: 51%;
  height: 1px;
  opacity: .55;
  border-top: 1px dashed var(--gold);
  transform: rotate(-17deg);
  transform-origin: left;
}

.atlas-port {
  position: absolute;
  top: 34%;
  left: 62%;
  z-index: 3;
  display: grid;
  max-width: 150px;
  padding: 12px 14px;
  justify-items: start;
  border: 1px solid rgba(232, 199, 122, .34);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(6, 23, 28, .9);
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
  cursor: pointer;
  text-align: left;
  transform: translate(-50%, -50%);
}

.atlas-port:hover { border-color: var(--gold); transform: translate(-50%, -50%) translateY(-2px); }

.atlas-port.port-x-0 { left: 18%; }
.atlas-port.port-x-1 { left: 32%; }
.atlas-port.port-x-2 { left: 50%; }
.atlas-port.port-x-3 { left: 68%; }
.atlas-port.port-x-4 { left: 82%; }
.atlas-port.port-y-0 { top: 19%; }
.atlas-port.port-y-1 { top: 32%; }
.atlas-port.port-y-2 { top: 45%; }
.atlas-port.port-y-3 { top: 58%; }
.atlas-port.port-y-4 { top: 72%; }

.port-beacon {
  width: 10px;
  height: 10px;
  margin-bottom: 7px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(232, 199, 122, .5);
}

.port-scale-2 .port-beacon { width: 12px; height: 12px; }
.port-scale-3 .port-beacon { width: 14px; height: 14px; }
.port-scale-4 .port-beacon { width: 16px; height: 16px; }
.port-scale-5 .port-beacon { width: 18px; height: 18px; }

.atlas-port strong { font-family: Georgia, serif; font-size: 14px; }
.atlas-port small { margin-top: 3px; color: var(--muted); font-size: 9px; }

.vessel-map-mark {
  position: absolute;
  bottom: 22%;
  left: 17%;
  color: var(--mint);
  font-size: 19px;
  text-shadow: 0 0 14px rgba(141,224,177,.6);
}

.fog-bank {
  position: absolute;
  width: 170px;
  height: 80px;
  border-radius: 50%;
  opacity: .45;
  background: radial-gradient(ellipse, rgba(217,240,223,.18), transparent 70%);
  filter: blur(9px);
  animation: fog-drift 11s ease-in-out infinite alternate;
}

.fog-a { top: 9%; left: 26%; }
.fog-b { right: 4%; bottom: 5%; animation-delay: -4s; }

.port-summary {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.port-summary span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 9px;
}

.rig-dock {
  margin: 0 0 18px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 86% 9%, rgba(232, 199, 122, .09), transparent 24rem),
    linear-gradient(145deg, rgba(104, 169, 190, .055), transparent 54%),
    var(--panel);
}

.rig-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.rig-heading h2 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.05em;
}

.rig-intro {
  max-width: 900px;
  color: var(--muted);
  line-height: 1.7;
}

.rig-manifest {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rig-manifest > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.rig-manifest > div:last-child { border-right: 0; }
.rig-manifest dt,
.wake-card small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rig-manifest dd {
  margin: 8px 0 0;
  color: var(--foam);
  font-size: 12px;
  line-height: 1.5;
}

.wake-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wake-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 18, 23, .56);
}

.wake-card.featured {
  border-color: rgba(232, 199, 122, .34);
  box-shadow: inset 0 0 36px rgba(232, 199, 122, .035);
}

.wake-card h3,
.nft-rig-row h3 {
  margin: 7px 0 11px;
  color: var(--foam);
  font-family: Georgia, serif;
  font-size: 23px;
}

.wake-card p:not(.eyebrow),
.nft-rig-row p,
.rig-boundary p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.wake-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 11px;
}

.wake-mark.veiled { color: var(--gold); border-color: rgba(232, 199, 122, .3); }
.wake-mark.private { color: var(--mint); border-color: rgba(141, 224, 177, .3); }

.nft-rig-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  margin-top: 20px;
  gap: 20px;
  align-items: stretch;
}

.rig-boundary {
  padding: 20px;
  border: 1px solid rgba(141, 224, 177, .2);
  border-radius: 14px;
  background: rgba(141, 224, 177, .035);
}

.rig-boundary .return-link { margin-top: 12px; }

.rig-risk {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.rig-risk strong { color: var(--foam); }

.passage-panel {
  margin: 0 0 18px;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at 84% 12%, rgba(232, 199, 122, .07), transparent 22rem),
    linear-gradient(135deg, rgba(141, 224, 177, .035), transparent 54%),
    var(--panel);
}

.passage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
  gap: 32px;
  align-items: end;
}

.passage-heading h2 {
  max-width: 700px;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.045em;
}

.passage-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.passage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 38px 0 0;
  padding: 0;
  gap: 0;
  list-style: none;
}

.passage-track::before {
  position: absolute;
  top: 23px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(141, 224, 177, .5), rgba(232, 199, 122, .34), rgba(104, 169, 190, .28));
}

.passage-track li {
  position: relative;
  display: grid;
  padding: 0 18px;
  justify-items: center;
  text-align: center;
}

.passage-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(141, 224, 177, .3);
  border-radius: 50%;
  color: var(--gold);
  background: #071b20;
  font-family: Georgia, serif;
  font-size: 15px;
  box-shadow: 0 0 0 7px rgba(7, 27, 32, .88);
}

.passage-track small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.passage-track strong {
  display: block;
  color: var(--foam);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 500;
}

.passage-track p {
  max-width: 220px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.passage-boundary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  margin-top: 34px;
  padding-top: 24px;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.passage-boundary > span {
  color: var(--mint);
  font-size: 21px;
}

.passage-boundary p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.passage-boundary p strong { color: var(--foam); }

.lower-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
}

.logbook time {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.logbook blockquote {
  max-width: 760px;
  margin: 18px 0;
  padding: 0;
  color: var(--foam);
  font-family: Georgia, serif;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.55;
}

.layer-legend ul {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 15px;
  list-style: none;
}

.layer-legend li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 12px;
  align-items: center;
}

.layer-legend li small { grid-column: 2; }

.legend-mark {
  width: 8px;
  height: 8px;
  grid-row: 1 / span 2;
  border-radius: 50%;
  background: var(--foam);
}

.legend-mark.analysis { background: var(--gold); }
.legend-mark.community { background: var(--blue); }
.legend-mark.private { background: var(--mint); }

.calm-note {
  display: flex;
  margin: 18px 0;
  padding: 30px;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(232, 199, 122, .16);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(232, 199, 122, .07), transparent);
}

.calm-note > span { color: var(--gold); font-size: 34px; }
.calm-note strong { font-family: Georgia, serif; font-size: 22px; }
.calm-note p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.atlas-footer {
  display: flex;
  min-height: 210px;
  padding: 48px 0 80px;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.atlas-footer strong { font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.atlas-footer p { margin: 8px 0; color: var(--muted); font-size: 11px; }
.atlas-footer > div:last-child { display: grid; justify-items: end; }

.port-dialog {
  width: min(740px, calc(100% - 28px));
  max-height: min(820px, calc(100vh - 28px));
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(217, 240, 223, .18);
  border-radius: 22px;
  color: var(--ink);
  background: #071b20;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}

.port-dialog::backdrop {
  background: rgba(1, 8, 10, .78);
  backdrop-filter: blur(8px);
}

.port-dialog form { padding: 26px; }
.port-dialog h2 { font-size: 34px; }
.port-dialog h3 { font-size: 22px; }
.port-dialog section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.dialog-facts { margin: 18px 0 0; }

.atlas-fact {
  display: grid;
  grid-template-columns: minmax(140px, .35fr) 1fr;
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.atlas-fact dt { color: var(--muted); font-size: 11px; }
.atlas-fact dd { margin: 0; color: var(--foam); font-size: 12px; overflow-wrap: anywhere; }

.warning-list {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.warning-list li {
  padding: 10px 12px;
  border-left: 2px solid var(--rust);
  color: #e8b7a6;
  background: rgba(215, 125, 90, .06);
  font-size: 12px;
}

@keyframes water-breathe {
  50% { transform: translateY(3px) scaleX(.96); }
}

@keyframes fog-drift {
  to { transform: translateX(24px); opacity: .28; }
}

@keyframes current-breathe {
  50% { transform: rotate(-5deg) translateX(14px) scaleX(.95); opacity: .52; }
}

@keyframes historical-wake {
  to { stroke-dashoffset: -68; }
}

@media (max-width: 1040px) {
  .harbor-grid { grid-template-columns: 1fr 1fr; }
  .map-card { grid-column: 1 / -1; }
  .chart-frame { min-height: 390px; }
  .weather-strip { grid-template-columns: 1fr 1.8fr; }
  .weather-note { grid-column: 1 / -1; }
  .sea-layout { grid-template-columns: 1fr; }
  .sea-log {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }
  .sea-log > .source-line { margin-top: 0; }
  .passage-track li { padding: 0 10px; }
}

@media (max-width: 720px) {
  .atlas-header,
  main { width: min(100% - 24px, 1260px); }
  .atlas-header { padding: 15px 0; }
  .atlas-kicker { display: none; }
  .return-link { min-height: 40px; padding: 0 12px; }
  .atlas-hero { grid-template-columns: 1fr; min-height: max(620px, calc(100svh - 72px)); padding: 78px 0 56px; align-content: center; }
  .atlas-hero h1 { font-size: clamp(54px, 17vw, 82px); }
  .truth-seal { width: 140px; }
  .hero-seascape { inset: 20% -38% 0 4%; opacity: .56; mask-image: linear-gradient(180deg, transparent 5%, black 42%); }
  .hero-sun { top: 13%; right: 32%; width: 88px; }
  .chart-rail {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    margin-right: -12px;
    margin-left: -12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .chart-rail a { min-height: 78px; padding: 13px 15px; scroll-snap-align: start; }
  .weather-strip { grid-template-columns: 1fr; }
  .weather-readings { border-left: 0; border-top: 1px solid var(--line); }
  .weather-readings > div { padding: 16px 10px; border-right: 0; }
  .weather-note { grid-column: auto; }
  .harbor-grid,
  .lower-grid { grid-template-columns: 1fr; }
  .rig-heading,
  .nft-rig-row { grid-template-columns: 1fr; }
  .rig-heading { display: grid; }
  .rig-manifest { grid-template-columns: repeat(2, 1fr); }
  .rig-manifest > div:nth-child(2) { border-right: 0; }
  .wake-grid { grid-template-columns: 1fr; }
  .sea-heading { grid-template-columns: 1fr; gap: 18px; }
  .sea-boundary-badges { justify-content: flex-start; }
  .sea-chart { min-height: 510px; }
  .sea-log { display: flex; }
  .sea-footer { grid-template-columns: 1fr; }
  .sea-footer .return-link { width: 100%; }
  .sea-port { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .sea-port strong { font-size: 10px; }
  .sea-vessel span { max-width: 72px; }
  .map-card { grid-column: auto; }
  .chart-frame { min-height: 340px; }
  .atlas-panel { padding: 20px; }
  .vessel-portrait { margin-right: -20px; margin-left: -20px; }
  .check-in-actions { grid-template-columns: 1fr; }
  .passage-heading { grid-template-columns: 1fr; gap: 16px; }
  .passage-track { grid-template-columns: 1fr; margin-top: 28px; gap: 0; }
  .passage-track::before { top: 23px; bottom: 23px; left: 22px; width: 1px; height: auto; }
  .passage-track li {
    grid-template-columns: 46px 1fr;
    padding: 0 0 22px;
    gap: 16px;
    justify-items: start;
    text-align: left;
  }
  .passage-track li:last-child { padding-bottom: 0; }
  .passage-number { grid-row: 1; margin: 0; }
  .passage-track li > div { padding-top: 3px; }
  .passage-track p { max-width: none; margin-right: 0; margin-left: 0; }
  .passage-boundary { grid-template-columns: auto 1fr; }
  .passage-boundary .return-link { grid-column: 1 / -1; width: 100%; }
  .atlas-footer { display: grid; }
  .atlas-footer > div:last-child { justify-items: start; }
  .atlas-fact { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 430px) {
  .atlas-brand > span:last-child { display: none; }
  .return-link { font-size: 10px; }
  .weather-readings dd { font-size: 15px; }
  .solana-sea { margin-right: -6px; margin-left: -6px; padding: 18px; }
  .sea-chart { min-height: 470px; }
  .sea-compass { top: 12px; right: 12px; width: 44px; height: 44px; }
  .sea-port { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .sea-port strong { max-width: 116px; font-size: 8px; }
  .sea-port small { display: none; }
  .sea-vessel { transform: translate(-50%, -50%) scale(.88); }
  .sea-chart-disclosure { font-size: 7px; }
  .chart-frame { min-height: 305px; }
  .atlas-port { max-width: 126px; padding: 10px; }
  .hero-actions { display: grid; }
  .hero-actions a { width: 100%; justify-content: center; }
  .port-summary span { width: 100%; }
  .rig-manifest { grid-template-columns: 1fr; }
  .rig-manifest > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .rig-manifest > div:last-child { border-bottom: 0; }
  .rig-boundary .return-link { width: 100%; }
  .calm-note { align-items: flex-start; }
}

@media (prefers-contrast: more) {
  :root {
    --muted: #c2d0d1;
    --line: rgba(217, 240, 223, .32);
  }
  .atlas-panel,
  .chart-frame,
  .return-link,
  .quiet-link { border-width: 2px; }
}

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