/* Vornky's Lagoon — vornkity.com/lagoon
   No build step: one stylesheet, hand-written, loaded from /lagoon/lagoon.css.
   Palette is pulled off the water itself — tannin green in the shallows, granite
   grey, cedar bark, and the pale bleached dock-wood used for type. */

:root {
  --deep:      #071822;
  --deeper:    #04121a;
  --water:     #0f3244;
  --water-2:   #17506a;
  --shallow:   #2c8399;
  --shoal:     #6fc0c4;
  --sand:      #e3d5b0;
  --cedar:     #b0703f;
  --cedar-lt:  #d99757;
  --moss:      #6f8f5f;
  --granite:   #7d8288;
  --paper:     #ece5d6;
  --paper-dim: #b9b3a5;
  --ink:       #0a1319;

  --bg:        var(--deep);
  --fg:        var(--paper);
  --rule:      rgba(236,229,214,.14);
  --card:      rgba(255,255,255,.038);
  --card-edge: rgba(255,255,255,.09);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --r: 14px;
}

/* daypart is stamped on <html> from the visitor's clock; it only tints. */
html[data-daypart="dawn"]  { --water-2: #2b5570; --shallow: #3f8ba0; }
html[data-daypart="day"]   { --water-2: #17506a; }
html[data-daypart="dusk"]  { --water-2: #3a4a6b; --shallow: #7a6f96; --cedar-lt: #e08a52; }
html[data-daypart="night"] { --water-2: #0d2c40; --shallow: #1d5670; --bg: #041018; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.65 var(--sans);
  letter-spacing: .005em;
  overflow-x: hidden;
}

/* faint film grain over everything, so the flat gradients don't band */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .30; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); letter-spacing: -.015em; }
h3 { font-size: 1.32rem; letter-spacing: -.005em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--shoal); text-decoration-color: rgba(111,192,196,.4); text-underline-offset: 3px; }
a:hover { color: #a5e2e4; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--paper); color: var(--ink); padding: .7em 1.1em; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto; }
.wrap--narrow { width: min(760px, calc(100% - 3rem)); }

.kicker {
  font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  color: var(--cedar-lt); margin: 0 0 1rem;
}
.lede { font-size: 1.12rem; color: var(--paper-dim); max-width: 68ch; }
.stamp {
  font: 400 .78rem/1.6 var(--mono); color: rgba(236,229,214,.42);
  letter-spacing: .02em; margin-top: 1.6rem;
}

/* ============================= BUTTONS ============================= */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 .88rem/1 var(--sans); letter-spacing: .04em;
  padding: .92em 1.35em; border-radius: 100px; cursor: pointer;
  color: var(--paper); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  text-decoration: none; transition: transform .18s, background .18s, border-color .18s;
}
.btn:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); color: var(--paper); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: linear-gradient(180deg, var(--cedar-lt), var(--cedar));
  border-color: rgba(0,0,0,.25); color: #1a0e05;
}
.btn--primary:hover { background: linear-gradient(180deg, #e7a768, var(--cedar-lt)); color: #1a0e05; }
.btn--ghost { background: transparent; }
.btn--sm { padding: .6em 1em; font-size: .8rem; }
.bell-count {
  font: 600 .72rem/1 var(--mono); padding: .3em .55em; border-radius: 100px;
  background: rgba(0,0,0,.3); color: var(--sand);
}
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
:focus-visible { outline: 2px solid var(--shoal); outline-offset: 3px; }

/* ============================== HERO ============================== */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center;
  /* An implicit `auto` track sizes to max-content, which on a narrow screen makes
     the track wider than the viewport and breaks every percentage inside it.
     minmax(0, 1fr) keeps the track tied to the container. */
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 80% at 70% 0%, #24506b 0%, transparent 60%),
    linear-gradient(180deg, #0d2c3e 0%, #0a2130 45%, var(--deep) 100%);
}
html[data-daypart="dusk"] .hero {
  background:
    radial-gradient(120% 80% at 78% 4%, #7d5a52 0%, transparent 58%),
    linear-gradient(180deg, #3b3350 0%, #182636 48%, var(--deep) 100%);
}
html[data-daypart="night"] .hero {
  background:
    radial-gradient(110% 70% at 26% -6%, #1b3550 0%, transparent 58%),
    linear-gradient(180deg, #071a26 0%, #05141d 50%, #030c12 100%);
}
html[data-daypart="dawn"] .hero {
  background:
    radial-gradient(120% 80% at 30% 2%, #8a6f68 0%, transparent 55%),
    linear-gradient(180deg, #43485e 0%, #14303f 48%, var(--deep) 100%);
}

.hero__water { position: absolute; inset: auto 0 0 0; width: 100%; height: 46%; z-index: 1; }

/* the far ridge, drawn in CSS so there is nothing to load */
.hero__ridge {
  position: absolute; left: 0; right: 0; bottom: 42%; height: 220px; z-index: 2;
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(6,20,28,.85) 46%),
    conic-gradient(from 210deg at 12% 100%, transparent 0 40%, #0b2029 40% 60%, transparent 60%);
  -webkit-mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0,220 L0,150 L60,132 L110,148 L150,120 L205,142 L250,110 L300,138 L340,118 L395,150 L440,126 L500,152 L560,128 L610,154 L660,132 L720,158 L780,136 L840,160 L900,140 L960,166 L1020,146 L1080,170 L1140,152 L1200,176 L1200,220 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0,220 L0,150 L60,132 L110,148 L150,120 L205,142 L250,110 L300,138 L340,118 L395,150 L440,126 L500,152 L560,128 L610,154 L660,132 L720,158 L780,136 L840,160 L900,140 L960,166 L1020,146 L1080,170 L1140,152 L1200,176 L1200,220 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  opacity: .92;
}
.hero__mist {
  position: absolute; left: -10%; right: -10%; bottom: 34%; height: 240px; z-index: 3;
  background: radial-gradient(60% 100% at 30% 60%, rgba(220,240,248,.16), transparent 70%),
              radial-gradient(50% 100% at 72% 50%, rgba(220,240,248,.12), transparent 72%);
  filter: blur(14px);
  animation: drift 44s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(4%); } }

.hero__inner {
  position: relative; z-index: 5;
  width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto;
  padding: 8rem 0 14rem;
}
.eyebrow {
  font: 600 .74rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(236,229,214,.62); margin: 0 0 1.4rem;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 12vw, 9.5rem); line-height: .86; letter-spacing: -.035em;
  margin: 0 0 1.6rem; text-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.hero__title span { display: block; padding-left: .09em; color: var(--sand); font-style: italic; }
.hero__sub { font-size: 1.22rem; max-width: 46ch; color: rgba(236,229,214,.86); }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin: 2.6rem 0; padding: 0;
  background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden;
  max-width: 860px;
}
.hero__facts > div { background: rgba(8,22,30,.62); padding: .95rem 1.05rem; backdrop-filter: blur(6px); }
.hero__facts dt {
  font: 600 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(236,229,214,.5); margin-bottom: .45rem;
}
.hero__facts dd { margin: 0; font: 400 1rem/1.3 var(--mono); color: var(--sand); }

.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 2.2rem; z-index: 5; transform: translateX(-50%);
  width: 1px; height: 56px; background: linear-gradient(var(--rule), transparent);
}
.hero__scroll span {
  position: absolute; top: 0; left: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--shoal); animation: fall 2.6s ease-in-out infinite;
}
@keyframes fall { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 100% { top: 52px; opacity: 0; } }

/* =============================== NAV ============================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,17,24,.78); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto;
  display: flex; align-items: center; gap: 1.4rem; height: 58px;
}
.nav__brand {
  font-family: var(--serif); font-size: 1.05rem; color: var(--paper);
  text-decoration: none; white-space: nowrap; letter-spacing: -.01em;
}
.nav__links {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none; flex: 1;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  display: block; padding: .45em .75em; border-radius: 8px; white-space: nowrap;
  font: 500 .84rem/1 var(--sans); color: rgba(236,229,214,.66); text-decoration: none;
}
.nav__links a:hover { background: rgba(255,255,255,.07); color: var(--paper); }
.nav__links a.is-current { color: var(--sand); background: rgba(217,151,87,.13); }
.nav__now { font: 400 .8rem/1 var(--mono); color: rgba(236,229,214,.5); white-space: nowrap; }

/* ============================ SECTIONS ============================ */
/* scroll-margin keeps section headings clear of the sticky nav on anchor jumps */
.section { padding: 7rem 0; position: relative; scroll-margin-top: 64px; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012)); }
.section--dark { background: var(--deeper); }
.section + .section { border-top: 1px solid var(--rule); }

/* =========================== CONDITIONS =========================== */
.gauges {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; margin-top: 2.6rem;
}
.gauge {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r);
  padding: 1.25rem 1.3rem 1.35rem; position: relative; overflow: hidden;
}
.gauge::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--shallow), transparent);
  opacity: .6;
}
.gauge h3 {
  font: 600 .68rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase;
  color: rgba(236,229,214,.55); margin: 0 0 .85rem;
}
.gauge__value {
  font-family: var(--serif); font-size: 2.7rem; line-height: 1; margin: 0 0 .5rem;
  color: var(--paper); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.gauge__value em { font: 400 .95rem/1 var(--sans); font-style: normal; color: var(--paper-dim); margin-left: .28em; }
.gauge__note { font-size: .84rem; color: rgba(236,229,214,.5); margin: 0; }
.gauge--hero { grid-column: span 2; background: linear-gradient(140deg, rgba(44,131,153,.22), rgba(255,255,255,.03)); }
.gauge--hero .gauge__value { font-size: 4.2rem; color: var(--shoal); }
.gauge--flag .gauge__flag { font-size: 1.5rem; font-family: var(--sans); }
.flag-green  { color: #8fd18a; } .flag-yellow { color: #e6c65a; }
.flag-red    { color: #e07a6a; } .flag-blue   { color: #7fb6e0; }

.spark { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin-top: .9rem; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--shoal), rgba(111,192,196,.15)); border-radius: 1px; min-height: 2px; }

.tick { animation: tick .5s ease; }
@keyframes tick { 0% { opacity: .25; } 100% { opacity: 1; } }

/* ============================== CHART ============================= */
.chart { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1.5rem; margin-top: 2.6rem; }
.chart__stage {
  position: relative; border: 1px solid var(--card-edge); border-radius: var(--r);
  overflow: hidden; background: #16241a;
}
.chart__map { position: relative; }
.chart__stage svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.chart__hint {
  position: absolute; left: 12px; bottom: 12px;
  font: 400 .74rem/1 var(--mono); color: rgba(236,229,214,.75);
  background: rgba(4,15,21,.7); padding: .55em .75em; border-radius: 7px;
  pointer-events: none;
}
/* Index of the same features as the SVG markers. It carries the whole chart on a
   phone, where the in-map labels are too small to read and get hidden. */
.chart__legend {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .8rem; border-top: 1px solid var(--card-edge);
  background: rgba(4,15,21,.5);
}
.chart__legend button {
  font: 500 .76rem/1 var(--sans); cursor: pointer;
  padding: .55em .8em; border-radius: 100px;
  background: rgba(255,255,255,.05); border: 1px solid var(--card-edge); color: var(--paper-dim);
}
.chart__legend button:hover { background: rgba(255,255,255,.11); color: var(--paper); }
.chart__legend button.is-on {
  background: rgba(217,151,87,.18); border-color: rgba(217,151,87,.5); color: var(--sand);
}
.chart__panel {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r);
  padding: 1.6rem; align-self: start; position: sticky; top: 78px;
}
.chart__meta { font: 400 .8rem/1.5 var(--mono); color: var(--cedar-lt); margin-bottom: 1rem; }
.chart__panel p:last-child { margin-bottom: 0; }
.chart__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.chart__tags span {
  font: 500 .72rem/1 var(--sans); letter-spacing: .04em;
  padding: .5em .7em; border-radius: 100px;
  background: rgba(111,192,196,.13); color: var(--shoal); border: 1px solid rgba(111,192,196,.22);
}

.hot { cursor: pointer; }
.hot__hit { fill: transparent; }
.hot__dot { fill: var(--sand); stroke: rgba(10,19,25,.7); stroke-width: 1.5; transition: r .2s; }
.hot__halo { fill: none; stroke: var(--sand); stroke-opacity: .35; }
.hot:hover .hot__dot, .hot.is-on .hot__dot { fill: var(--cedar-lt); r: 8; }
.hot.is-on .hot__halo { stroke: var(--cedar-lt); stroke-opacity: .9; }
.hot__label {
  font: 500 11px var(--sans); fill: var(--paper); paint-order: stroke;
  stroke: rgba(4,15,21,.85); stroke-width: 3.5px; stroke-linejoin: round;
  pointer-events: none;
}
.ping { fill: none; stroke: var(--shoal); stroke-width: 2; }
.ping-mark { fill: var(--shoal); }
.ping-txt { font: 500 10px var(--mono); fill: #d9f3f7; paint-order: stroke; stroke: rgba(4,15,21,.8); stroke-width: 3px; }

/* ============================= SOUNDER ============================ */
.sounder {
  margin-top: 1.5rem; display: grid; gap: 1.4rem; align-items: center;
  grid-template-columns: 1.4fr .8fr 1.6fr;
  background: linear-gradient(160deg, rgba(23,80,106,.3), rgba(255,255,255,.02));
  border: 1px solid var(--card-edge); border-radius: var(--r); padding: 1.5rem;
}
.sounder__head h3 { margin-bottom: .4rem; }
.sounder__head p { font-size: .88rem; color: var(--paper-dim); margin: 0; }
.sounder__readout { text-align: center; }
.sounder__big { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--shoal); font-variant-numeric: tabular-nums; }
.sounder__big em { font: 400 1rem/1 var(--sans); font-style: normal; color: var(--paper-dim); margin-left: .2em; }
.sounder__meta { font: 400 .8rem/1.4 var(--mono); color: var(--paper-dim); margin-top: .4rem; }
.sounder__profile {
  grid-column: 3; grid-row: 1 / span 2; height: 108px;
  display: flex; align-items: flex-start; gap: 2px;
  background: rgba(4,15,21,.45); border-radius: 8px; padding: 6px;
  border: 1px solid rgba(255,255,255,.06);
}
.sounder__profile i {
  flex: 0 0 auto; width: 10px; border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, rgba(111,192,196,.85), rgba(23,80,106,.9));
}
.sounder__foot {
  grid-column: 1 / span 2; display: flex; align-items: center; gap: 1rem;
  font: 400 .8rem/1 var(--mono); color: var(--paper-dim);
}

/* ============================== PROBE ============================= */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.6rem; }
.probe, .seiche {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--r); padding: 1.7rem;
}
.probe__hint { font-size: .85rem; color: var(--paper-dim); }
.probe__stage { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.probe__column {
  position: relative; height: 330px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #4fb3c4 0%, #2c8399 22%, #17506a 55%, #0a2634 88%, #071822 100%);
  cursor: ns-resize; user-select: none; touch-action: none;
}
.probe__thermo {
  position: absolute; left: 0; right: 0; top: 64.7%; height: 0;
  border-top: 1px dashed rgba(255,255,255,.5);
}
.probe__thermo span {
  position: absolute; right: 6px; top: 3px;
  font: 500 .64rem/1 var(--mono); color: rgba(255,255,255,.75);
}
.probe__handle {
  position: absolute; left: 0; right: 0; top: 2.9%; height: 2px;
  background: var(--cedar-lt); box-shadow: 0 0 14px rgba(217,151,87,.8);
}
.probe__handle::after {
  content: ""; position: absolute; left: 10px; top: -7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cedar-lt); border: 2px solid rgba(10,19,25,.55);
}
.probe__depth {
  position: absolute; left: 34px; top: -11px;
  font: 600 .76rem/1 var(--mono); color: #1a0e05;
  background: var(--cedar-lt); padding: .35em .55em; border-radius: 5px;
}
.probe__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .4em .6em;
  font: 400 .66rem/1.3 var(--mono); color: rgba(236,229,214,.6);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.probe__panel { display: flex; flex-direction: column; justify-content: center; }
.probe__temp { font-family: var(--serif); font-size: 3.2rem; line-height: 1; margin: 0; color: var(--sand); font-variant-numeric: tabular-nums; }
.probe__temp em { font: 400 1rem/1 var(--sans); font-style: normal; color: var(--paper-dim); }
.probe__light { font: 400 .85rem/1 var(--mono); color: var(--shoal); margin: .6rem 0 1rem; }
.probe__desc { font-size: .92rem; color: var(--paper-dim); margin: 0; }

/* ============================== SEICHE ============================ */
.seiche__dial { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; align-items: center; margin: 1.2rem 0; }
.seiche__dial svg { width: 100%; height: auto; }
.seiche__ring { fill: rgba(255,255,255,.03); stroke: var(--rule); stroke-width: 2; }
.seiche__arc {
  fill: none; stroke: var(--shoal); stroke-width: 3; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 100px 100px;
  stroke-dasharray: 540.4; stroke-dashoffset: 540.4;
}
.seiche__hand { stroke: var(--cedar-lt); stroke-width: 2.5; stroke-linecap: round; transform-origin: 100px 100px; }
.seiche__hub { fill: var(--cedar-lt); }
.seiche__state { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 .3rem; color: var(--sand); }
.seiche__next, .seiche__amp { font: 400 .82rem/1.5 var(--mono); color: var(--paper-dim); margin: 0; }
.seiche__level { height: 60px; border-radius: 8px; overflow: hidden; background: rgba(4,15,21,.5); position: relative; }
.seiche__level > div {
  position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(180deg, var(--shallow), var(--water));
  border-top: 2px solid rgba(191,233,245,.5);
}

/* ============================== FACTS ============================= */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden; margin-top: 2.2rem; }
.fact { background: var(--bg); padding: 1.4rem 1.3rem; }
.fact span { display: block; font-family: var(--serif); font-size: 2rem; color: var(--cedar-lt); margin-bottom: .4rem; }
.fact p { font-size: .88rem; color: var(--paper-dim); margin: 0; }

/* ============================ TIMELINE ============================ */
.timeline { margin-top: 2.6rem; }
.timeline input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none; background: transparent; cursor: grab;
}
.timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; background: linear-gradient(90deg, var(--cedar), var(--shallow)); border-radius: 3px;
}
.timeline input[type="range"]::-moz-range-track {
  height: 3px; background: linear-gradient(90deg, var(--cedar), var(--shallow)); border-radius: 3px;
}
.timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -10px;
  background: var(--sand); border: 3px solid var(--deep); box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.timeline input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--sand); border: 3px solid var(--deep);
}
.timeline__ticks { display: flex; justify-content: space-between; margin: .7rem 0 2rem; }
.timeline__ticks button {
  background: none; border: 0; cursor: pointer; padding: .2em .1em;
  font: 500 .74rem/1 var(--mono); color: rgba(236,229,214,.4);
}
.timeline__ticks button:hover { color: var(--paper); }
.timeline__ticks button.is-on { color: var(--cedar-lt); }
.timeline__card {
  background: var(--card); border: 1px solid var(--card-edge); border-left: 3px solid var(--cedar);
  border-radius: 0 var(--r) var(--r) 0; padding: 2rem 2.2rem; min-height: 230px;
}
.timeline__year { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--cedar-lt); margin: 0 0 .3rem; }
.timeline__card h3 { font-size: 1.6rem; }
.timeline__card p { max-width: 72ch; }
.timeline__src { font: 400 .76rem/1.5 var(--mono); color: rgba(236,229,214,.4); margin: 0; }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================= SPECIES ============================ */
.species { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem; margin-top: 2.6rem; align-items: start; }
.card {
  /* a <button>, so it needs the flex column to stop centring its own contents */
  display: flex; flex-direction: column; align-items: stretch;
  background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r);
  padding: 1.3rem; cursor: pointer; text-align: left; color: inherit; font: inherit;
  transition: transform .18s, border-color .18s, background .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(217,151,87,.4); }
.card.is-active { border-color: rgba(143,209,138,.45); background: rgba(143,209,138,.07); }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.card h3 { font-size: 1.12rem; margin: 0 0 .2rem; }
.card__sci { font: italic 400 .78rem/1.4 var(--serif); color: var(--paper-dim); display: block; margin-bottom: .7rem; }
.card__pill { font: 600 .62rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  padding: .45em .6em; border-radius: 100px; white-space: nowrap; }
.pill-on  { background: rgba(143,209,138,.16); color: #8fd18a; }
.pill-off { background: rgba(255,255,255,.06); color: rgba(236,229,214,.45); }
.card__body { font-size: .9rem; color: var(--paper-dim); margin: 0; max-height: 0; overflow: hidden;
  transition: max-height .3s ease, margin .3s ease; }
.card.is-open .card__body { max-height: 320px; margin-top: .6rem; }
.card__more { font: 500 .74rem/1 var(--mono); color: var(--shoal); margin-top: .8rem; display: block; }

/* ============================== LORE ============================== */
.lore { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.2rem; margin-top: 2.6rem; }
.tale {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--card-edge); border-radius: var(--r); padding: 1.7rem;
  position: relative; overflow: hidden;
}
.tale__no {
  position: absolute; right: -6px; top: -18px; font-family: var(--serif);
  font-size: 6rem; color: rgba(255,255,255,.045);
}
.tale h3 { font-style: italic; }
.tale p { font-size: .93rem; color: var(--paper-dim); }
.tale p:last-of-type { margin-bottom: 0; }
.tale__attr { font: 400 .76rem/1.5 var(--mono); color: var(--cedar-lt); }
.lore__bell { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.lore__bell p { font-size: .88rem; color: var(--paper-dim); margin: 0; max-width: 52ch; }
.ringing { animation: shake .5s ease; }
@keyframes shake {
  0%,100% { transform: rotate(0); } 20% { transform: rotate(-9deg); }
  45% { transform: rotate(7deg); } 70% { transform: rotate(-4deg); }
}

/* ============================= LOG FORM =========================== */
.logform {
  background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--r);
  padding: 1.6rem; margin-top: 2.4rem; display: grid; gap: 1rem;
}
.logform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.logform label { display: block; font: 600 .68rem/1 var(--sans); letter-spacing: .15em;
  text-transform: uppercase; color: rgba(236,229,214,.55); }
.logform input, .logform select, .logform textarea {
  display: block; width: 100%; margin-top: .55rem;
  background: rgba(4,15,21,.5); border: 1px solid var(--card-edge); border-radius: 9px;
  color: var(--paper); font: 400 .95rem/1.5 var(--sans); padding: .75em .9em;
  letter-spacing: normal; text-transform: none;
}
.logform textarea { resize: vertical; }
.logform input:focus, .logform select:focus, .logform textarea:focus {
  outline: none; border-color: rgba(111,192,196,.6); background: rgba(4,15,21,.75);
}
.logform__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font: 400 .78rem/1 var(--mono); color: var(--paper-dim); }

.logbook { margin-top: 1.6rem; display: grid; gap: .9rem; }
.entry {
  border-left: 2px solid var(--rule); padding: .2rem 0 .2rem 1.2rem;
}
.entry.is-mine { border-left-color: var(--cedar-lt); }
.entry__head { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap;
  font: 400 .76rem/1.4 var(--mono); color: rgba(236,229,214,.45); }
.entry__who { color: var(--sand); font-weight: 500; }
.entry__where { color: var(--shoal); }
.entry p { margin: .3rem 0 0; font-size: .95rem; }

/* ============================ VISITING ============================ */
.prose h3 { margin-top: 2rem; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--paper-dim); }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.rules li {
  padding-left: 1.5rem; position: relative; font-size: .95rem; color: var(--paper-dim);
}
.rules li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 2px; background: var(--cedar);
}
.rules strong { color: var(--paper); font-weight: 600; }
.season { margin: 0; display: grid; gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.season > div { background: var(--bg); padding: .85rem 1rem; display: grid;
  grid-template-columns: 96px 1fr; gap: 1rem; align-items: baseline; }
.season > div.is-now { background: rgba(217,151,87,.12); }
.season dt { font: 600 .74rem/1.4 var(--mono); color: var(--cedar-lt); }
.season dd { margin: 0; font-size: .88rem; color: var(--paper-dim); }

/* ============================== QUIZ ============================== */
.quiz { margin-top: 2.4rem; background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--r); padding: 2rem; }
.quiz__prog { font: 400 .76rem/1 var(--mono); color: var(--cedar-lt); margin-bottom: 1rem; }
.quiz__q { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 1.4rem; }
.quiz__opts { display: grid; gap: .7rem; }
.quiz__opt {
  text-align: left; padding: 1em 1.2em; border-radius: 11px; cursor: pointer;
  background: rgba(255,255,255,.045); border: 1px solid var(--card-edge);
  color: var(--paper); font: 400 .97rem/1.45 var(--sans);
  transition: background .16s, border-color .16s, transform .16s;
}
.quiz__opt:hover { background: rgba(111,192,196,.12); border-color: rgba(111,192,196,.4); transform: translateX(4px); }
.quiz__result h3 { font-size: 2rem; color: var(--sand); }
.quiz__result p { color: var(--paper-dim); }
.quiz__bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin-bottom: 1.4rem; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cedar), var(--shoal)); transition: width .3s; }

/* ============================== FOOT ============================== */
.foot { padding: 4rem 0 5rem; border-top: 1px solid var(--rule); background: var(--deeper); }
.foot__mark { font-family: var(--serif); font-size: 1.5rem; color: var(--sand); margin-bottom: .4rem; }
.foot p { font-size: .88rem; color: var(--paper-dim); }
.foot__fine { font-size: .78rem; color: rgba(236,229,214,.38); max-width: 74ch; }

/* ============================= CONSENT ============================ */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: rgba(4,15,21,.94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--card-edge);
  animation: rise .35s ease;
}
.consent[hidden] { display: none; }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.consent__inner {
  width: min(var(--wrap), calc(100% - 3rem)); margin-inline: auto;
  padding: 1.2rem 0; display: flex; align-items: center; gap: 2rem;
  justify-content: space-between; flex-wrap: wrap;
}
.consent__title {
  font-family: var(--serif); font-size: 1.1rem; color: var(--sand); margin: 0 0 .3rem;
}
.consent__text {
  font-size: .86rem; color: var(--paper-dim); margin: 0; max-width: 74ch;
}
.consent__btns { display: flex; gap: .6rem; flex-shrink: 0; }

/* ============================ RESPONSIVE ========================== */
@media (max-width: 960px) {
  .chart { grid-template-columns: 1fr; }
  .chart__panel { position: static; }
  .sounder { grid-template-columns: 1fr 1fr; }
  .sounder__profile { grid-column: 1 / span 2; grid-row: auto; }
  .sounder__foot { grid-column: 1 / span 2; }
  .two { grid-template-columns: 1fr; }
  .gauge--hero { grid-column: span 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 4.5rem 0; }
  .hero__inner { padding: 5rem 0 9rem; }
  .wrap, .wrap--narrow { width: calc(100% - 2.2rem); }
  .gauges { grid-template-columns: repeat(2, 1fr); }
  .gauge--hero { grid-column: span 2; }
  .hero__facts, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sounder { grid-template-columns: 1fr; }
  .sounder__foot, .sounder__profile { grid-column: 1; }
  /* 11px in an 800-unit viewBox is under 5 real pixels here — the legend takes over */
  .hot__label { display: none; }
  .gauge__value { font-size: 2.2rem; }
  .gauge--hero .gauge__value { font-size: 3.2rem; }
  .probe__stage { grid-template-columns: 1fr; }
  .seiche__dial { grid-template-columns: 110px 1fr; }
  .logform__row { grid-template-columns: 1fr; }
  .nav__now { display: none; }
  .timeline__card { padding: 1.5rem; }
  .quiz { padding: 1.4rem; }
}

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