/* ==========================================================================
   World — Year 1200, told through its instruments and documents: an empty
   chart, a refractometer, a sounding, specimen labels, a ration card, an
   eye chart, a barometer, a rusted data plate, a star chart.
   ========================================================================== */

/* ---------- head: the chart with nothing on it ---------- */
.w-head {
  padding-top: calc(var(--head) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  background: radial-gradient(90% 80% at 78% 55%, #0f2e3a 0%, var(--night) 70%);
}
.w-head-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: center; }
.w-kicker { color: var(--signal); }
.w-title { font-size: var(--t-xxl); font-weight: 200; margin-top: 1.25rem; }
.w-deck { color: var(--mist); margin-top: 1.5rem; max-width: 30rem; }
.chart-frame {
  position: relative;
  aspect-ratio: 1471 / 1225;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 75%, rgba(47, 116, 128, 0.35), transparent 70%),
    linear-gradient(180deg, #0f3441 0%, #0a2530 100%);
  border: 1px solid rgba(143, 195, 198, 0.32);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.chart-mer, .chart-par { position: absolute; background: rgba(143, 195, 198, 0.13); }
.chart-mer { top: 0; bottom: 0; width: 1px; }
.chart-par { left: 0; right: 0; height: 1px; }
.chart-mer i, .chart-par i { position: absolute; font-style: normal; font-family: var(--f-mono); font-size: 9.5px; color: rgba(143, 195, 198, 0.6); white-space: nowrap; }
.chart-mer i { bottom: 5px; left: 4px; }
.chart-par i { top: 3px; left: 5px; }
.chart-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-lines line { stroke: rgba(242, 169, 59, 0.55); stroke-width: 1; }
.chart-dist {
  position: absolute;
  transform: translate(-50%, -50%) rotate(41.7deg);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--signal);
  background: #0d2f3b;
  padding: 1px 6px;
  white-space: nowrap;
}
.chart-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--salt); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px rgba(230, 236, 234, 0.14); }
.chart-dot.is-awash { width: 6px; height: 6px; background: transparent; border: 1.25px solid var(--salt); box-shadow: none; }
.chart-dot.is-home { width: 9px; height: 9px; background: var(--signal); box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.22), 0 0 18px rgba(242, 169, 59, 0.65); z-index: 1; }
.chart-label { position: absolute; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--salt); white-space: nowrap; line-height: 1.35; }
.chart-label b { display: block; font-weight: 400; letter-spacing: 0.04em; color: var(--mist); }
.chart-label--k2 { transform: translate(12px, -50%); }
.chart-label--ev { transform: translate(12px, -100%) translateY(-6px); color: var(--signal); }
.chart-label--kg { transform: translate(-100%, 0) translate(8px, 12px); text-align: right; }
.chart-label--dh { transform: translate(-100%, -50%) translateX(-10px); text-align: right; }
.chart-label--mn { transform: translate(-50%, 0) translateY(10px); text-align: center; }
.chart-scale { position: absolute; left: 5%; bottom: 8%; height: 6px; border: 1px solid var(--salt); border-top: 0; }
.chart-scale i { position: absolute; left: 0; bottom: 9px; font-family: var(--f-mono); font-style: normal; font-size: 10px; color: var(--salt); white-space: nowrap; }
.chart-north { position: absolute; right: 4.5%; top: 5%; font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--salt); text-align: center; }
.chart-north::before { content: ""; display: block; width: 0; height: 0; margin: 0 auto 3px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 12px solid var(--salt); }
.chart .caption { margin-top: 0.8rem; }
@media (max-width: 60rem) {
  .w-head-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .chart-label { font-size: 9px; }
  .chart-label--dh, .chart-label--mn, .chart-dist { display: none; }
  .chart-label--ev { transform: translate(-100%, -100%) translate(-10px, -6px); text-align: right; }
  .chart-mer i, .chart-par i { font-size: 8px; }
}

/* ---------- salt: the refractometer ---------- */
.salt { background: linear-gradient(180deg, var(--deep) 0%, #0b2a36 100%); padding-block: clamp(5rem, 10vw, 8.5rem); }
.salt-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.refract svg { width: 100%; max-width: 29rem; height: auto; margin-inline: auto; }
.refract .caption { margin-top: 1rem; max-width: 29rem; margin-inline: auto; }
.rf-rim { fill: #0a1116; stroke: #2a3a42; stroke-width: 2; }
.rf-rim2 { fill: #04080b; }
.rf-blue { fill: #2a7ea6; }
.rf-white { fill: #e9f2f3; }
.rf-edge { stroke: #0f3a4f; stroke-width: 2; }
.rf-tick { stroke: #102c37; stroke-width: 1.5; }
.rf-num { font-family: var(--f-mono); font-size: 15px; font-weight: 600; fill: #0b1820; paint-order: stroke; stroke: rgba(233, 242, 243, 0.85); stroke-width: 3px; }
.rf-unit { font-family: var(--f-mono); font-size: 18px; font-weight: 600; fill: #e9f2f3; }
.rf-ref { stroke: rgba(233, 242, 243, 0.75); stroke-width: 1; }
.rf-ref--dark { stroke: rgba(16, 44, 55, 0.5); }
.rf-ref-t { font-family: var(--f-mono); font-size: 13px; fill: #e9f2f3; }
.rf-ref-t--dark { fill: #3b5660; }
.rf-read { font-family: var(--f-mono); font-size: 17px; font-weight: 600; fill: #0b1820; }
.salt-k { color: var(--signal); }
.salt-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.salt-lede { margin-top: 1.25rem; color: var(--spray); }
.salt-prose { margin-top: 2rem; color: var(--mist); }
.salt-kicker { margin-top: 2rem; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.05; color: var(--salt); max-width: 20ch; }
@media (max-width: 60rem) {
  .salt-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- depth: the sounding ---------- */
.depth { background: linear-gradient(180deg, #0b2a36 0%, #05121a 100%); padding-block: clamp(5rem, 10vw, 8.5rem); }
.depth-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.depth-k { color: var(--signal); }
.depth-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.depth-lede { margin-top: 1.25rem; color: var(--spray); }
.depth-facts { margin-top: 2.25rem; border-top: 1px solid rgba(143, 195, 198, 0.2); max-width: 40rem; }
.depth-facts li { padding: 1.1rem 0; border-bottom: 1px solid rgba(143, 195, 198, 0.2); color: var(--mist); }
.depth-facts b { display: block; margin-bottom: 0.3rem; font-family: var(--f-display); font-weight: 300; font-size: 1.65rem; line-height: 1.05; color: var(--salt); }
.sounding { justify-self: center; }
.sounding-col {
  position: relative;
  height: clamp(28rem, 72vh, 42rem);
  width: clamp(4rem, 7vw, 5.5rem);
  border: 1px solid rgba(143, 195, 198, 0.3);
  background:
    repeating-linear-gradient(135deg, rgba(120, 90, 130, 0.12) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #07121a 0%, #020508 100%);
}
.sounding-life { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(180deg, rgba(53, 163, 196, 0.8) 0%, rgba(24, 92, 112, 0.7) 60%, rgba(18, 70, 88, 0.55) 100%); border-bottom: 2px solid var(--signal); }
.sounding-mark {
  position: absolute;
  left: calc(100% + 1.25rem);
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  color: var(--mist);
}
.sounding-mark::before { content: ""; position: absolute; right: calc(100% + 0.35rem); top: 50%; width: 0.9rem; height: 1px; background: currentColor; }
.sounding-mark b { font-weight: 500; color: var(--salt); margin-right: 0.45rem; }
.sounding-mark--limit, .sounding-mark--limit b { color: var(--signal); }
.sounding-mark--end { transform: translateY(-100%); }
.sounding .caption { margin-top: 1.25rem; max-width: 18rem; }
@media (max-width: 60rem) {
  .depth-grid { grid-template-columns: minmax(0, 1fr); }
  .sounding { justify-self: start; }
}

/* ---------- life: the specimen drawer ---------- */
.life { background: var(--paper); color: var(--ink); padding-block: clamp(5rem, 10vw, 8.5rem); }
.life-head .label { color: var(--ink-3); }
.life-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.life-lede { margin-top: 1.25rem; max-width: 40rem; color: var(--ink-2); }
.drawer { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tag {
  position: relative;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.15rem 1.25rem 1.25rem;
  background: #f7f6f1;
  border: 1px solid rgba(11, 24, 32, 0.4);
  box-shadow: 0 1px 0 rgba(11, 24, 32, 0.08), 0 14px 24px -18px rgba(11, 24, 32, 0.4);
}
.tag::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(11, 24, 32, 0.14); pointer-events: none; }
.tag-no { font-size: var(--t-xxs); letter-spacing: 0.12em; color: var(--ink-3); }
.tag-name { font-family: var(--f-display); font-weight: 350; font-size: 1.85rem; line-height: 1; }
.tag-latin { font-style: italic; color: var(--ink-2); }
.tag-why { font-size: 0.95rem; color: var(--ink-2); }
.tag-status {
  justify-self: start;
  margin-top: 0.55rem;
  padding: 0.22rem 0.55rem;
  border: 1.5px solid currentColor;
  font-family: var(--f-mono);
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1c5a63;
}
.tag.is-gone { background: #efede6; }
.tag.is-gone .tag-name { color: var(--ink-3); }
.tag.is-gone .tag-status { color: var(--stamp); transform: rotate(-3deg); }
@media (max-width: 60rem) {
  .drawer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .drawer { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- nothing flies ---------- */
.empty-sky {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92svh, 58rem);
  display: grid;
  align-items: end;
  background: linear-gradient(180deg, #4f9fca 0%, #8fc3dc 42%, #cfe2e8 82%, #eceee8 100%);
  color: var(--ink);
}
.cloud { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, 0.55); filter: blur(24px); animation: drift 120s linear infinite; }
.cloud--a { width: 34rem; height: 7rem; top: 16%; left: -10%; }
.cloud--b { width: 22rem; height: 5rem; top: 34%; left: 45%; opacity: 0.7; animation-duration: 160s; }
.cloud--c { width: 40rem; height: 9rem; top: 55%; left: 10%; opacity: 0.5; animation-duration: 200s; }
@keyframes drift { from { transform: translateX(-8vw); } to { transform: translateX(28vw); } }
.empty-inner { padding-block: clamp(4rem, 9vw, 7rem); }
.empty-title { font-size: var(--t-xl); font-weight: 250; max-width: 14ch; }
.empty-sub { margin-top: 1.1rem; font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: #33505b; }

/* ---------- no fire ---------- */
.fire { background: #0b0f10; padding-block: clamp(5rem, 10vw, 8.5rem); color: #b8c2c2; }
.fire-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.fire-k { color: #8a9899; }
.fire-title { font-size: var(--t-xxl); font-weight: 200; margin-top: 1rem; color: var(--salt); }
.fire-prose { margin-top: 2rem; }
.ration {
  justify-self: center;
  width: min(100%, 22rem);
  background: #f5f5f0;
  color: #0b0b0b;
  padding: 0.9rem 1rem 1rem;
  border: 1.5px solid #0b0b0b;
  font-family: var(--f-mono);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.ration-title { font-size: 2.1rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.ration-sub { font-size: 0.78rem; padding: 0.3rem 0 0.45rem; border-bottom: 10px solid #0b0b0b; }
.ration-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid #0b0b0b; font-size: 0.8rem; line-height: 1.35; }
.ration-row dt { font-weight: 600; }
.ration-row dd { text-align: right; }
.ration-row--big dt, .ration-row--big dd { font-size: 0.95rem; }
.ration-need { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.1rem; padding-top: 0.45rem; border-top: 6px solid #0b0b0b; font-size: 0.85rem; }
.ration-need b { font-weight: 600; }
.ration-note { margin-top: 0.65rem; font-size: 0.72rem; line-height: 1.5; color: #333; }
.fire-inversion { margin-top: clamp(4rem, 8vw, 7rem); font-family: var(--f-display); font-weight: 300; font-size: var(--t-l); line-height: 1.04; color: var(--salt); max-width: 24ch; text-wrap: balance; }
.fire-inversion em { font-style: italic; color: var(--signal); }
.fire-before { margin-top: 2rem; max-width: 40rem; }
.law { margin-top: clamp(3rem, 6vw, 5rem); padding-block: clamp(2rem, 5vw, 3.5rem); border-top: 1px solid rgba(217, 223, 221, 0.25); border-bottom: 1px solid rgba(217, 223, 221, 0.25); }
.law p {
  text-align: center;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.2vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9dfdd;
  text-wrap: balance;
}
@media (max-width: 60rem) {
  .fire-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- sight: the eye chart ---------- */
.sight { background: #10181b; padding-block: clamp(5rem, 10vw, 8.5rem); }
.sight-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.snellen {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: min(100%, 19rem);
  padding: 2rem 1.25rem 2.25rem;
  background: #f4f5f0;
  color: #0b0b0b;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.snellen-row {
  font-family: var(--f-mono);
  font-weight: 600;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  line-height: 1.1;
  font-size: calc(3.2rem - var(--i) * 0.4rem);
  filter: blur(calc(var(--i) * 0.5px));
}
.sight-k { color: #8a9899; }
.sight-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.sight-items { margin-top: 2rem; display: grid; gap: 1.5rem; }
.sight-item { border-top: 1px solid rgba(143, 195, 198, 0.2); padding-top: 1rem; color: var(--mist); }
.sight-item h3 { font-family: var(--f-display); font-weight: 300; font-size: 1.7rem; line-height: 1.05; color: var(--salt); margin-bottom: 0.4rem; }
@media (max-width: 60rem) {
  .sight-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- air and sun ---------- */
.air { background: linear-gradient(180deg, #d6e7ec 0%, #eef0e8 100%); color: var(--ink); padding-block: clamp(5rem, 10vw, 8rem); }
.air-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: start; }
.air-head .label { color: var(--ink-3); }
.air-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.baro svg { width: 100%; max-width: 17rem; height: auto; }
.baro-rim { fill: #b9a57c; stroke: #7d6a45; stroke-width: 2; }
.baro-face { fill: #f8f6ee; stroke: #7d6a45; stroke-width: 1; }
.baro-tick { stroke: #0b1820; stroke-width: 1.2; }
.baro-num { font-family: var(--f-mono); font-size: 11px; font-weight: 500; fill: #0b1820; }
.baro-word { font-family: var(--f-mono); font-size: 12px; fill: #52636a; }
.baro-needle { stroke: #b3342b; stroke-width: 2.5; stroke-linecap: round; }
.baro-hub { fill: #0b1820; }
.baro-read { font-family: var(--f-mono); font-size: 16px; font-weight: 600; fill: #0b1820; }
.baro-cap, .albedo-cap { margin-top: 1rem; color: var(--ink-2); font-size: 1rem; }
.baro-cap b, .albedo-cap b { display: block; font-family: var(--f-display); font-weight: 350; font-size: 1.6rem; line-height: 1.05; color: var(--ink); margin-bottom: 0.35rem; }
.albedo-rows { display: grid; gap: 0.8rem; padding-top: 1.5rem; }
.albedo-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 3rem; gap: 0.75rem; align-items: center; font-family: var(--f-mono); font-size: var(--t-xs); }
.albedo-row i { position: relative; height: 16px; background: rgba(11, 24, 32, 0.08); }
.albedo-row i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); background: #2a6f7c; border-radius: 0 4px 4px 0; }
.albedo-row b { font-weight: 500; text-align: right; }
@media (max-width: 64rem) {
  .air-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .air-head { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .air-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the materials trap: a data plate on rusted steel ---------- */
.trap {
  padding-block: clamp(5rem, 10vw, 8.5rem);
  color: #f1e7de;
  background-color: #4a2a1e;
  background-image:
    radial-gradient(40% 50% at 18% 30%, rgba(168, 86, 44, 0.55), transparent 70%),
    radial-gradient(35% 45% at 72% 62%, rgba(128, 62, 30, 0.6), transparent 70%),
    radial-gradient(30% 40% at 42% 85%, rgba(92, 52, 36, 0.7), transparent 70%),
    radial-gradient(25% 30% at 85% 15%, rgba(60, 70, 72, 0.5), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.12 0 0 0 0 0.06 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.trap-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.trap-k { color: #e5c9b3; }
.trap-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; color: #fbf3ec; }
.trap-text { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.35rem); line-height: 1.55; }
.manifest {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
  padding: 1.6rem 1.8rem 1.8rem;
  background: linear-gradient(180deg, #d3d6d2 0%, #b1b6b3 100%);
  color: #111;
  border-radius: 3px;
  font-family: var(--f-mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.15), 0 24px 50px rgba(0, 0, 0, 0.45);
}
.rivet { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f2f2f2, #8a8a8a 55%, #4a4a4a); }
.rivet--tl { top: 9px; left: 9px; } .rivet--tr { top: 9px; right: 9px; } .rivet--bl { bottom: 9px; left: 9px; } .rivet--br { bottom: 9px; right: 9px; }
.manifest-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; padding-bottom: 0.6rem; border-bottom: 2px solid #111; text-align: center; }
.manifest-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.28); font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; }
.manifest-rows dd { color: #8a1f14; font-weight: 600; }
.manifest-salvage dd { color: #111; font-size: 0.8rem; letter-spacing: 0.08em; }
@media (max-width: 60rem) {
  .trap-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- dry land ---------- */
.dry { background: linear-gradient(180deg, #0b1d27 0%, #0d2b37 100%); padding-block: clamp(5rem, 10vw, 8.5rem); }
.dry-k { color: var(--signal); }
.dry-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.dry-lede { margin-top: 1.25rem; color: var(--spray); max-width: 38rem; }
.peaks { margin-top: clamp(2.5rem, 5vw, 4rem); }
.peaks-row { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.peaks-row::after { content: ""; position: absolute; left: -0.5rem; right: -0.5rem; top: 14rem; height: 2px; background: #c9e2e2; box-shadow: 0 4px 18px rgba(53, 163, 196, 0.35); }
.pk { display: grid; grid-template-rows: 14rem auto auto; justify-items: center; text-align: center; }
.pk-shape {
  align-self: end;
  width: 100%;
  max-width: 7rem;
  height: calc(var(--f) * 13rem);
  min-height: 2px;
  background: linear-gradient(180deg, #a9b9bd 0%, #62757b 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.pk.is-home .pk-shape { background: linear-gradient(180deg, #86b86b 0 12%, #a9b9bd 12%, #62757b 100%); }
.pk-name { margin-top: 0.9rem; font-family: var(--f-mono); font-size: var(--t-xxs); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--salt); }
.pk-val { margin-top: 0.2rem; font-size: var(--t-xxs); color: var(--mist); }
.pk.is-awash .pk-name { color: var(--mist); }
.peaks .caption { margin-top: 1.5rem; }
@media (max-width: 52rem) {
  .peaks-row { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
  .peaks-row::after { display: none; }
  .pk { grid-template-columns: 7.5rem minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 0.9rem; }
  .pk-shape { grid-column: 2; grid-row: 1; align-self: center; height: 12px; max-width: none; width: calc(var(--f) * 100%); min-width: 3px; clip-path: none; border-radius: 0 4px 4px 0; background: #8fa3a8; }
  .pk.is-home .pk-shape { background: linear-gradient(90deg, #8fa3a8 0 94%, #86b86b 94%); }
  .pk-name { grid-column: 1; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
  .pk-val { grid-column: 2; grid-row: 2; }
}
.dry-grid { margin-top: clamp(3.5rem, 7vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.dry-prose { color: var(--mist); }
.dry-prose strong { color: var(--salt); font-weight: 500; }
.near-frame {
  position: relative;
  aspect-ratio: 1.5;
  background:
    linear-gradient(rgba(143, 195, 198, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(143, 195, 198, 0.08) 1px, transparent 1px) 0 0 / 16.667% 100%,
    linear-gradient(180deg, #0f3441, #0a2530);
  border: 1px solid rgba(143, 195, 198, 0.3);
}
.near-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--salt); transform: translate(-50%, -50%); }
.near-dot.is-home { width: 11px; height: 11px; background: var(--signal); box-shadow: 0 0 0 5px rgba(242, 169, 59, 0.2), 0 0 18px rgba(242, 169, 59, 0.6); }
.near-dot.is-awash { background: transparent; border: 1.25px solid var(--salt); }
.near-label { position: absolute; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--salt); white-space: nowrap; line-height: 1.35; }
.near-label b { display: block; font-weight: 400; color: var(--mist); }
.near-label--everest { transform: translate(14px, -100%) translateY(-4px); color: var(--signal); }
.near-label--lhotse { transform: translate(14px, 2px); }
.near-label--makalu { transform: translate(-100%, -50%) translateX(-12px); text-align: right; }
.near-label--cho-oyu { transform: translate(12px, -50%); }
.near-scale { position: absolute; right: 5%; bottom: 8%; height: 6px; border: 1px solid var(--salt); border-top: 0; }
.near-scale i { position: absolute; right: 0; bottom: 9px; font-family: var(--f-mono); font-style: normal; font-size: 10px; color: var(--salt); white-space: nowrap; }
.near .caption { margin-top: 0.8rem; }
@media (max-width: 60rem) {
  .dry-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the atolls ---------- */
.atolls { background: radial-gradient(70% 60% at 25% 50%, #10303b, #081820 75%); padding-block: clamp(5rem, 10vw, 8.5rem); }
.atolls-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.plan svg { width: 100%; max-width: 34rem; height: auto; margin-inline: auto; }
.plan-patch { stroke: rgba(0, 0, 0, 0.45); stroke-width: 1; }
.plan-core { fill: #0d3553; stroke: #e3eef6; stroke-width: 1.6; }
.plan-ring { fill: none; stroke: rgba(227, 238, 246, 0.55); stroke-width: 1; }
.plan-leader { fill: none; stroke: #e3eef6; stroke-width: 1; }
.plan-t { font-family: var(--f-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.12em; fill: #e3eef6; }
.plan-t--dim { fill: #a9c7dd; }
.plan .caption { margin-top: 1rem; }
.atolls-k { color: var(--signal); }
.atolls-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.atolls-prose { margin-top: 2rem; color: var(--mist); }
@media (max-width: 60rem) {
  .atolls-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- relics ---------- */
.relics { background: linear-gradient(180deg, #06121a 0%, #02070b 100%); padding-block: clamp(5rem, 10vw, 8.5rem); }
.relics-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.relics-k { color: var(--signal); }
.relics-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.relics-text { margin-top: 1.5rem; color: var(--mist); max-width: 34rem; }
.hold svg { width: 100%; max-width: 34rem; height: auto; margin-inline: auto; }
.hold .caption { max-width: 34rem; margin-inline: auto; }
.hold-floor { fill: #151d21; }
.hold-wall { fill: #22313a; stroke: #3c525c; stroke-width: 1.5; }
.hold-seam { fill: none; stroke: #3c525c; stroke-width: 1.2; }
.hold-sealed { fill: #060b0e; stroke: var(--signal); stroke-width: 1.5; }
.hold-item--paper { fill: #d8d2c0; }
.hold-item--cloth { fill: #8d6f5b; }
.hold-item--tin { fill: #a3aaa7; }
.hold-crack { fill: none; stroke: #060b0e; stroke-width: 2.5; }
.hold-line { stroke: #c9e2e2; stroke-width: 1.2; }
.hold-diver { fill: #c9e2e2; }
.hold-t { font-family: var(--f-mono); font-size: 13px; fill: var(--mist); }
.hold-t--signal { fill: var(--signal); }
.hold .caption { margin-top: 1rem; }
@media (max-width: 60rem) {
  .relics-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the sky ---------- */
.sky { background: radial-gradient(100% 80% at 28% 45%, #0c2331 0%, #040b10 70%); padding-block: clamp(5rem, 10vw, 8.5rem); }
.sky-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: center; }
.planisphere svg { width: 100%; max-width: 32rem; height: auto; margin-inline: auto; overflow: visible; }
.ps-rim { fill: none; stroke: rgba(143, 195, 198, 0.35); stroke-width: 1; }
.ps-disc { fill: #06121a; stroke: rgba(143, 195, 198, 0.55); stroke-width: 1.2; }
.ps-alt { fill: none; stroke: rgba(143, 195, 198, 0.12); stroke-width: 1; }
.ps-star { fill: #e6ecea; }
.ps-band { fill: none; stroke: rgba(143, 195, 198, 0.12); stroke-width: 9; }
.ps-glint { fill: #d6e8ea; }
.ps-depot-ring { fill: none; stroke: var(--signal); stroke-width: 1; }
.ps-depot { fill: #fff3dc; filter: drop-shadow(0 0 4px rgba(242, 169, 59, 0.9)); }
.ps-leader { fill: none; stroke: rgba(242, 169, 59, 0.6); stroke-width: 1; }
.ps-t { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; fill: var(--mist); }
.ps-t--signal { fill: var(--signal); }
.ps-t--dim { fill: var(--haze); }
.ps-compass { font-family: var(--f-mono); font-size: 14px; font-weight: 600; fill: var(--salt); }
.planisphere .caption { margin-top: 1.25rem; max-width: 32rem; margin-inline: auto; }
.sky-k { color: var(--signal); }
.sky-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; }
.sky-prose { margin-top: 2rem; color: var(--mist); }
.names { margin-top: 2.5rem; }
.names-k { color: var(--haze); margin-bottom: 1rem; }
.names-list { display: grid; gap: 0.25rem; }
.names-list li { font-family: var(--f-display); font-weight: 300; line-height: 1.05; color: var(--salt); }
.names-list li:nth-child(1) { font-size: 2.3rem; }
.names-list li:nth-child(2) { font-size: 2rem; opacity: 0.85; }
.names-list li:nth-child(3) { font-size: 1.75rem; opacity: 0.72; }
.names-list li:nth-child(4) { font-size: 1.55rem; opacity: 0.6; }
.names-list li:nth-child(5) { font-size: 1.1rem; font-family: var(--f-text); font-style: italic; opacity: 0.6; margin-top: 0.4rem; }
@media (max-width: 60rem) {
  .sky-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud { animation: none; }
}

/* ---------- the monster: it came up ---------- */
.monster {
  position: relative;
  background:
    radial-gradient(1.4px 1.4px at 18% 62%, rgba(143, 195, 198, 0.35), transparent 60%),
    radial-gradient(1.2px 1.2px at 72% 30%, rgba(242, 169, 59, 0.3), transparent 60%),
    radial-gradient(1px 1px at 44% 84%, rgba(143, 195, 198, 0.3), transparent 60%),
    linear-gradient(180deg, #07161d 0%, #03090d 100%);
  background-size: 230px 230px, 310px 310px, 170px 170px, auto;
  padding-block: clamp(5rem, 10vw, 8.5rem);
}
.monster-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.monster-k { color: var(--signal); }
.monster-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; max-width: 14ch; }
.monster-lede { margin-top: 1.25rem; color: var(--spray); max-width: 34rem; }
.monster-prose { margin-top: 2rem; color: var(--mist); }
.monster-end { color: var(--salt); font-style: italic; }
.monster-xref { margin-top: 2rem; color: var(--spray); }
.mo-fig svg { width: 100%; height: auto; overflow: visible; }
.mo-fig .caption { margin-top: 1rem; }
.mo-tick { stroke: rgba(143, 195, 198, 0.4); stroke-width: 1; }
.mo-axis { font-family: var(--f-mono); font-size: 17px; fill: var(--haze); }
.mo-head { font-family: var(--f-mono); font-size: 20px; font-weight: 500; letter-spacing: 0.14em; fill: var(--salt); }
.mo-rock { fill: #221d1a; }
.mo-floor { stroke: #6f5d4c; stroke-width: 2; }
.mo-limit { stroke: rgba(230, 236, 234, 0.6); stroke-width: 1.5; stroke-dasharray: 6 5; }
.mo-in { font-family: var(--f-mono); font-size: 17px; font-weight: 500; letter-spacing: 0.12em; fill: rgba(230, 236, 234, 0.85); }
.mo-in--dim { fill: var(--haze); }
.mo-note { font-family: var(--f-text); font-style: italic; font-size: 19px; fill: var(--mist); }
.mo-side { font-family: var(--f-mono); font-size: 16px; fill: var(--mist); }
.mo-side--lit { fill: var(--spray); }
.mo-beast path { fill: #081115; stroke: rgba(143, 195, 198, 0.6); stroke-width: 1.5; }
.mo-beast--then { opacity: 0.75; }
.mo-eye { fill: var(--signal); }
.mo-path { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 4 6; }
.mo-path-head { fill: none; stroke: var(--signal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mo-came { font-family: var(--f-text); font-style: italic; font-size: 21px; fill: var(--signal); }
@media (max-width: 60rem) {
  .monster-grid { grid-template-columns: minmax(0, 1fr); }
  .mo-fig { max-width: 36rem; }
}
@media (max-width: 40rem) {
  .mo-in { font-size: 19px; }
  .mo-axis { font-size: 19px; }
  .mo-note { font-size: 21px; }
}

/* ---------- the Mariner: an argument in eight steps, and the brief ---------- */
.succ { background: linear-gradient(180deg, #0d2b37 0%, #0b2029 60%, #0a1a23 100%); padding-block: clamp(5rem, 10vw, 8.5rem); border-top: 1px solid rgba(143, 195, 198, 0.12); }
.succ-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.succ-k { color: var(--signal); }
.succ-title { font-size: var(--t-xl); font-weight: 250; margin-top: 1rem; max-width: 14ch; }
.succ-lede { margin-top: 1.25rem; color: var(--spray); max-width: 36rem; }
.proof { margin-top: 2.5rem; border-top: 1px solid rgba(143, 195, 198, 0.22); max-width: 46rem; }
.proof li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 1.2rem;
  border-bottom: 1px solid rgba(143, 195, 198, 0.14);
}
.because { font-family: var(--f-mono); font-size: var(--t-xxs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--signal); padding-top: 0.55rem; }
.because-claim { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.08; color: var(--salt); }
.because-why { margin-top: 0.5rem; color: var(--mist); max-width: 36rem; }
.proof li:last-child .because-claim { color: var(--signal); }
.succ-honest { margin-top: 2rem; max-width: 36rem; padding-left: 1.1rem; border-left: 2px solid var(--signal); font-style: italic; color: var(--salt); }
.succ-links { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.succ-links .xref { color: var(--spray); }

.brief { position: sticky; top: calc(var(--head) + 3rem); padding-top: 1.7rem; }
.folder {
  position: relative;
  padding: 1.6rem 1.3rem 1.4rem;
  border-radius: 2px 8px 8px 8px;
  background: linear-gradient(170deg, #dcc48f 0%, #cfb47c 100%);
  box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.folder-tab {
  position: absolute;
  left: 0;
  bottom: 100%;
  padding: 0.45rem 1.1rem 0.4rem;
  border-radius: 7px 7px 0 0;
  background: #dcc48f;
  font-family: var(--f-mono);
  font-size: var(--t-xxs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4d3c1d;
}
.brief-sheet {
  background: #fbfaf4;
  color: #1d2124;
  padding: 1.5rem 1.35rem 1.4rem;
  font-family: var(--f-mono);
  transform: rotate(-1.1deg);
  box-shadow: 0 2px 6px rgba(40, 28, 8, 0.35);
}
.brief-head { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 0.45rem; border-bottom: 3px double #1d2124; }
.brief-sub { margin-top: 0.55rem; font-size: var(--t-xxs); letter-spacing: 0.04em; color: #545c60; line-height: 1.5; }
.brief-dl { margin-top: 1rem; display: grid; }
.brief-dl div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding-block: 0.5rem; border-bottom: 1px solid rgba(29, 33, 36, 0.14); font-size: 0.8125rem; line-height: 1.4; }
.brief-dl dt { font-size: var(--t-xxs); letter-spacing: 0.12em; text-transform: uppercase; color: #5a6266; padding-top: 0.1rem; }
.brief-dl dd { color: #1d2124; }
.brief .caption { margin-top: 1rem; }
@media (max-width: 60rem) {
  .succ-grid { grid-template-columns: minmax(0, 1fr); }
  .brief { position: static; max-width: 30rem; }
}
@media (max-width: 36rem) {
  .proof li { grid-template-columns: minmax(0, 1fr); }
  .because { padding-top: 0; }
}
