/* Nearwhal — night field station. Palette measured from the renders (art/sample_colors.py):
   black sea #07080e / #080e15, deep teal #0a1e23 / #133333, aurora #4d9154 / #6cbd6d / #9cdb8e, skin grey #9a967e.
   Fonts: Imbue (display), Kumbh Sans (body), Syne Mono (stamps, readouts, sonar).
   Motion: everything that moves is gated on html.js:not(.rm); html.rm = reduced motion (boot.js). */
:root {
  --night: #060b10;
  --deep: #0a1c21;
  --sea: #0f2629;
  --card: #0d2025;
  --card-2: #122b2f;
  --line: rgba(156, 219, 142, .2);
  --line-2: rgba(232, 240, 234, .12);
  --ice: #e8f0ea;
  --mist: #a8bcb2;
  --aurora: #9cdb8e;
  --aurora-2: #6cbd6d;
  --aurora-3: #4d9154;
  --tusk: #e6d6b2;
  --ink: #05110b;
  --warm: #f0b862;
  --hot: #ff8a6b;
  --cool: #7cc4e8;
  --display: 'Imbue', 'Didot', 'Bodoni 72', Georgia, serif;
  --body: 'Kumbh Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Syne Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --r: 16px;
  --navh: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navh) + 12px); -webkit-text-size-adjust: 100%; }
html.rm { scroll-behavior: auto; }
body { margin: 0; background: var(--night); color: var(--ice); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aurora); text-underline-offset: 3px; }
a:hover { color: var(--ice); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--aurora); color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--ink); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 11, 16, .55); color: var(--ice); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn img { width: 18px; height: 18px; }
.btn:hover { border-color: var(--aurora); color: var(--ice); background: rgba(15, 38, 41, .8); }
.btn.buy { background: var(--aurora); border-color: var(--aurora); color: var(--ink); }
.btn.buy:hover { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.btn.buy img { background: #fff; border-radius: 50%; padding: 1px; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn.ghost { background: rgba(6, 11, 16, .55); }
.btn.ghost img[src*="dexscreener"], .btn.ghost img[src*="/x.svg"] { filter: invert(1); }
html.js:not(.rm) .btn:active { transform: scale(.97); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--navh); display: flex; align-items: center; gap: 20px; padding: 0 24px; background: rgba(6, 11, 16, .82); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ice); text-decoration: none; flex: none; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.brand .wm { font: 400 26px/1 var(--display); letter-spacing: .01em; }
.brand:hover { color: var(--aurora); }
.links { display: flex; gap: 26px; margin: 0 auto; }
.links a { color: var(--mist); text-decoration: none; font: 400 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; }
.links a:hover { color: var(--aurora); }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ice); border: 1px solid var(--ice); color: var(--ink); }
.ico img { width: 18px; height: 18px; }
.ico:hover { background: var(--aurora); border-color: var(--aurora); color: var(--ink); }
.motion-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--mist); font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.motion-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mist); }
.motion-btn[aria-pressed="true"] .dot { background: var(--aurora); box-shadow: 0 0 10px var(--aurora); }
.motion-btn:hover { color: var(--ice); border-color: var(--aurora); }
.burger { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ice); font: 600 14px/1 var(--body); cursor: pointer; }
.burger .bars, .burger .bars::before, .burger .bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.burger .bars { position: relative; }
.burger .bars::before, .burger .bars::after { content: ''; position: absolute; left: 0; }
.burger .bars::before { top: -5px; }
.burger .bars::after { top: 5px; }
.burger[aria-expanded="true"] .bars { background: transparent; }
.burger[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

.menu { position: fixed; left: 0; right: 0; top: var(--navh); bottom: 0; z-index: 39; background: rgba(6, 11, 16, .97); padding: 18px 24px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.menu-close { align-self: flex-end; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ice); font: 600 14px/1 var(--body); cursor: pointer; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { color: var(--ice); text-decoration: none; font: 400 34px/1.25 var(--display); padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.menu nav a:hover { color: var(--aurora); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (max-width: 1100px) {
  .links { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  .nav { padding: 0 16px; gap: 10px; }
  .nav .motion-btn, .sonar-nav { display: none; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 420px) {
  .nav [data-link="dex"] { display: none; }
  .burger-lbl { display: none; }
  .brand .wm { font-size: 23px; }
}
@media (max-width: 350px) {
  .brand .wm { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(620px, calc(100svh - var(--navh)), 900px); display: flex; align-items: center; overflow: hidden; background: var(--night); }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 68% 50%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 11, 16, .92) 0%, rgba(6, 11, 16, .72) 34%, rgba(6, 11, 16, 0) 62%), linear-gradient(0deg, rgba(6, 11, 16, .7) 0%, rgba(6, 11, 16, 0) 30%); pointer-events: none; }
.aurora { position: absolute; inset: -20% -10% 40% -10%; z-index: 1; pointer-events: none; opacity: .0; background: radial-gradient(40% 60% at 30% 40%, rgba(156, 219, 142, .35), transparent 70%), radial-gradient(35% 50% at 70% 30%, rgba(108, 189, 109, .3), transparent 70%); mix-blend-mode: screen; }
html.js:not(.rm) .aurora { opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-4%, 0, 0) scaleY(1); } to { transform: translate3d(4%, 3%, 0) scaleY(1.12); } }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 48px 24px 56px; }
.hero-in > * { max-width: 600px; }
.kicker { font: 400 13px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--aurora); }
.kicker .tk { color: var(--tusk); }
.hero h1 { margin: 14px 0 26px; }
.wm-xl { display: block; font: 400 clamp(72px, 10.5vw, 150px)/.9 var(--display); letter-spacing: -.01em; color: var(--ice); margin-bottom: 18px; }
.b1, .b2 { display: block; font: 400 clamp(24px, 2.6vw, 34px)/1.25 var(--body); }
.b1 { color: var(--mist); }
.b2 { color: var(--aurora); font-weight: 600; }
.readouts { display: flex; margin: 0 0 30px; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.readouts div { flex: 1; padding: 12px 16px 12px 0; }
.readouts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.readouts dt { font: 400 11px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.readouts dd { margin: 4px 0 0; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--display); color: var(--ice); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ca { margin: 0 0 8px; }
.ca-btn { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 100%; padding: 10px 12px 10px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(6, 11, 16, .8); color: var(--ice); font: 400 15px/1.35 var(--mono); text-align: left; cursor: pointer; }
.ca-btn[aria-disabled="true"] { cursor: default; }
.ca-lbl { color: var(--aurora); letter-spacing: .14em; }
.ca-v { overflow-wrap: anywhere; min-width: 0; }
.ca-hint { padding: 7px 12px; border-radius: 999px; background: var(--aurora); color: var(--ink); font: 700 13px/1 var(--body); }
.ca-btn:hover .ca-hint { background: var(--ice); }
.ca-soon { font: 400 13px/1.5 var(--mono); color: var(--mist); letter-spacing: .02em; }

@media (max-width: 1000px) {
  .hero { display: block; min-height: 0; }
  .hero-pic { position: relative; display: block; aspect-ratio: 3 / 2; height: auto; }
  .hero-pic img { position: absolute; }
  .hero::after { background: linear-gradient(0deg, var(--night) 0%, rgba(6, 11, 16, 0) 22%); height: 0; padding-top: 66.66%; bottom: auto; }
  .aurora { inset: -10% -10% auto -10%; height: 50%; }
  .hero-in { padding: 8px 24px 56px; }
  .hero-in > * { max-width: 680px; }
}
@media (max-width: 700px) {
  .hero-pic { aspect-ratio: 4 / 5; }
  .hero-pic img { object-position: 50% 50%; }
  .hero::after { padding-top: 125%; }
  .hero-in { padding: 0 16px 48px; margin-top: -36px; }
  .wm-xl { font-size: clamp(64px, 19vw, 96px); margin-bottom: 12px; }
  .readouts div { padding-right: 10px; }
  .readouts div + div { padding-left: 10px; }
  .cta .btn { flex: 1 1 auto; }
}

/* ---------- sections ---------- */
section { position: relative; }
.sonar, .sightings, .tusk, .how, .join { padding: clamp(72px, 9vw, 128px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head h2, .tusk h2, .join h2 { margin: 12px 0 14px; font: 400 clamp(40px, 5.2vw, 68px)/1.02 var(--display); color: var(--ice); }
.lede { color: var(--mist); font-size: 18px; max-width: 62ch; }

/* ---------- sonar ---------- */
.sonar { background: linear-gradient(180deg, var(--night), var(--deep) 30%, var(--deep)); border-top: 1px solid var(--line-2); }
.sonar .sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.sonar .lede { margin: 0 auto; }
.sonar .readout { text-align: center; }
.sonar-box { max-width: min(100%, calc((100svh - var(--navh) - 150px) * 1.5)); min-width: min(100%, 640px); margin: 0 auto; }
.stage { position: relative; aspect-ratio: 3 / 2; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #07121a; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.stage .deep { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(4, 8, 12, .55)); }
.cells { position: absolute; inset: 0; z-index: 4; display: grid; }
.cell { appearance: none; border: 0; margin: 0; padding: 0; background: transparent; color: var(--ice); cursor: crosshair; border-radius: 0; box-shadow: inset 0 0 0 .5px rgba(156, 219, 142, .14); }
.cell:hover { background: rgba(156, 219, 142, .07); }
.cell:focus-visible { outline: 2px solid var(--aurora); outline-offset: -2px; border-radius: 4px; background: rgba(156, 219, 142, .1); }
.cell[disabled] { cursor: default; }
.marks, .rings { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mark { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid currentColor; background: rgba(6, 11, 16, .6); }
.mark.cold { color: var(--cool); }
.mark.cool { color: #b7d8c6; }
.mark.warm { color: var(--warm); }
.mark.hot { color: var(--hot); }
.ring { position: absolute; width: 60%; aspect-ratio: 1; margin: 0; border-radius: 50%; border: 2px solid currentColor; opacity: 0; transform: translate(-50%, -50%) scale(.05); }
.ring.cold { color: var(--cool); }
.ring.cool { color: #b7d8c6; }
.ring.warm { color: var(--warm); }
.ring.hot { color: var(--hot); }
html.js:not(.rm) .ring { animation: ping 1.3s cubic-bezier(.2, .6, .3, 1) forwards; }
html.rm .ring { opacity: .7; transform: translate(-50%, -50%) scale(.18); }
@keyframes ping { 0% { opacity: .95; transform: translate(-50%, -50%) scale(.05); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.whal { position: absolute; z-index: 3; width: 34%; height: auto; transform: translate(-50%, -62%); filter: drop-shadow(0 0 24px rgba(156, 219, 142, .45)); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 96%); mask-image: linear-gradient(180deg, #000 55%, transparent 96%); }
.cell[disabled]:hover { background: transparent; }
html.js:not(.rm) .whal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -30%) scale(.8); } to { opacity: 1; transform: translate(-50%, -62%) scale(1); } }
.hud { position: absolute; z-index: 5; left: 14px; top: 14px; display: flex; gap: 14px; padding: 8px 14px; border-radius: 999px; background: rgba(6, 11, 16, .78); border: 1px solid var(--line); font: 400 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mist); pointer-events: none; }
.hud b { color: var(--aurora); font-weight: 400; }
.nojs { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 18px; border-radius: 12px; background: rgba(6, 11, 16, .9); color: var(--ice); }
.readout { margin-top: 18px; min-height: 1.6em; font: 400 clamp(18px, 2vw, 22px)/1.4 var(--mono); color: var(--ice); }
.readout .cold { color: var(--cool); }
.readout .cool { color: #b7d8c6; }
.readout .warm { color: var(--warm); }
.readout .hot { color: var(--hot); }
.readout .found { color: var(--aurora); }
.result { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.result-t { font: 400 clamp(24px, 3vw, 32px)/1.2 var(--display); color: var(--ice); }
.result-b { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
@media (max-width: 700px) {
  .sonar-box { max-width: 100%; min-width: 0; }
  .stage { aspect-ratio: 5 / 6; border-radius: 18px; }
  .whal { width: 58%; }
  .hud { left: 10px; top: 10px; }
  .result-b { margin-left: 0; width: 100%; }
  .result-b .btn { flex: 1 1 auto; }
}

/* ---------- sighting log ---------- */
.sightings { background: var(--night); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 6vw, 80px); }
.entry { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.entry:nth-child(even) figure { order: 2; }
.entry figure { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--card); }
.entry figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.entry-t { padding-left: 22px; border-left: 1px solid var(--line); }
.stamp { font: 400 13px/1.5 var(--mono); letter-spacing: .08em; color: var(--aurora); margin-bottom: 10px; }
.entry h3 { font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--display); color: var(--ice); margin-bottom: 12px; }
.entry-t > p:not(.stamp):not(.tags) { color: var(--mist); max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font: 400 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ice); }
@media (max-width: 800px) {
  .entry { grid-template-columns: 1fr; }
  .entry:nth-child(even) figure { order: 0; }
  .entry-t { padding-left: 16px; }
}

/* ---------- tusk ---------- */
.tusk { background: linear-gradient(180deg, var(--night), var(--sea)); border-top: 1px solid var(--line-2); }
.tusk-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tusk-pic { margin: 0; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1; max-width: 520px; }
.tusk-pic img { width: 100%; height: 100%; object-fit: cover; }
.tusk-t > p:not(.kicker) { color: var(--mist); margin-bottom: 14px; max-width: 54ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 26px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 12px 0 0; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts dt { font: 400 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.facts dd { margin: 6px 0 0; font: 400 clamp(24px, 2.4vw, 32px)/1.1 var(--display); color: var(--tusk); }
@media (max-width: 800px) {
  .tusk-in { grid-template-columns: 1fr; }
  .tusk-pic { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 12px; }
}

/* ---------- buy ---------- */
.how { background: var(--sea); }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); counter-increment: s; }
.steps li::before { content: '0' counter(s); position: absolute; right: 20px; top: 20px; font: 400 13px/1 var(--mono); color: var(--aurora); letter-spacing: .1em; }
.steps img { width: 40px; height: 40px; padding: 7px; margin-bottom: 18px; border-radius: 50%; background: var(--ice); }
.steps h3 { font: 400 28px/1.1 var(--display); color: var(--ice); margin-bottom: 8px; }
.steps p { color: var(--mist); font-size: 16px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.buy-row .ca { margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- join: the X profile as a card ---------- */
.join { background: var(--night); border-top: 1px solid var(--line-2); }
.join-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.xcard { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.xcard-banner { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.xcard-body { padding: 0 24px 26px; }
.xcard-av { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--card); margin-top: -48px; position: relative; }
.xcard-name { margin-top: 10px; font: 400 32px/1.1 var(--display); color: var(--ice); }
.xcard-bio { margin-top: 8px; color: var(--mist); font-size: 16px; max-width: 48ch; }
.join .lede { margin: 0 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ice); color: var(--ink); font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid var(--ice); }
.chip img { width: 18px; height: 18px; }
.chip:hover { background: var(--aurora); border-color: var(--aurora); color: var(--ink); }
@media (max-width: 800px) { .join-in { grid-template-columns: 1fr; } .xcard-body { padding: 0 18px 22px; } }

/* ---------- footer ---------- */
.foot { background: #04080c; border-top: 1px solid var(--line-2); padding: 48px 0 56px; }
.foot-in { display: grid; gap: 12px; }
.foot-wm { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.foot-wm .wm { font: 400 44px/1 var(--display); color: var(--ice); }
.foot-wm .tk { font: 400 14px/1 var(--mono); letter-spacing: .14em; color: var(--tusk); }
.foot-line { color: var(--aurora); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--ice); font: 400 13px/2 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.foot-links a:hover { color: var(--aurora); }
.fine { color: var(--mist); font-size: 14px; max-width: 80ch; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 60; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ice); color: var(--ink); font: 600 15px/1.4 var(--body); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
html.rm .toast { transition: opacity .2s; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
html.js:not(.rm) .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
html.js:not(.rm) .reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--navh)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 40px 24px; max-width: 1180px; margin: 0 auto; }
.nf img { border-radius: 50%; border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
.nf h1 { font: 400 clamp(44px, 6vw, 80px)/1 var(--display); margin: 12px 0 14px; }
.nf .lede { margin-bottom: 24px; }
@media (max-width: 760px) { .nf { grid-template-columns: 1fr; padding: 24px 16px; } .nf img { max-width: 280px; } }

/* =====================================================================
   REVIEW FIXES — token-site-review wf_15d32de4-f4e (2026-09-27). Numbers = research/review_index.txt.
   Kept as one block at the end so the cascade wins and every change is easy to find.
   ===================================================================== */
:root { --r: 4px; }                                                        /* 6: one corner language, pills only for taps */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }                                                   /* 13 */
.aurora { opacity: .55; }                                                  /* 24: frozen, not removed, in reduced motion */

/* 8: centred section links; the motion toggle lives in the footer and the menu */
@media (min-width: 1101px) {
  .nav { display: grid; grid-template-columns: 1fr auto 1fr; }
  .brand { justify-self: start; }
  .links { margin: 0; }
  .nav-right { justify-self: end; margin-left: 0; }
}

/* 2: the wordmark is the masthead */
.wm-xl { font: 300 clamp(72px, 14.5vw, 210px)/.86 var(--display); letter-spacing: -.015em; margin-bottom: 22px; }
.b1, .b2 { font: 300 clamp(22px, 2.1vw, 30px)/1.3 var(--body); }
.b2 { font-weight: 500; }
@media (min-width: 1001px) and (max-width: 1180px) {                      /* 23: keep the column clear of his head */
  .hero-in > * { max-width: 540px; }
  .wm-xl { font-size: clamp(72px, 12vw, 150px); }
}
@media (max-width: 700px) {                                                /* 16 + 2: CTA above the fold on phones */
  .hero-pic { aspect-ratio: 1 / 1; }
  .hero-pic img { object-position: 50% 38%; }
  .hero::after { padding-top: 100%; }
  .hero-in { display: flex; flex-direction: column; margin-top: -64px; }
  .hero-in .readouts { order: 3; margin: 22px 0 0; }
  .hero h1 { margin: 10px 0 20px; }
  .wm-xl { font-size: clamp(64px, 32vw, 150px); margin-bottom: 10px; }
}
@media (max-width: 1000px) and (max-height: 500px) {                      /* 16: landscape phones */
  .hero-pic { aspect-ratio: auto; height: max(150px, calc(100svh - var(--navh) - 120px)); }
  .hero::after { padding-top: 0; height: max(150px, calc(100svh - var(--navh) - 120px)); }
}

/* 17 (house-rule version): the full CA always shows; on phones label + hint on row 1, the address on row 2 */
@media (max-width: 700px) {
  .ca, .ca-btn { width: 100%; }
  .ca-btn { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "lbl hint" "v v"; gap: 8px 12px; padding: 12px 14px; }
  .ca-lbl { grid-area: lbl; }
  .ca-hint { grid-area: hint; justify-self: end; }
  .ca-v { grid-area: v; font-size: 16px; letter-spacing: .02em; }
}

/* 1 + 3 + 15 + 29: a drawn sonar scope; the readout in a bar ABOVE the sea; the sea fits one screen */
.sonar .sec-head { margin-bottom: 28px; }
.sonar-box { max-width: min(100%, calc((100svh - var(--navh) - 96px) * 1.5)); min-width: min(100%, 420px); }
.sonar-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; min-height: 48px; margin-bottom: 10px; }
.sonar-bar .hud { position: static; flex: none; }
.sonar-bar .readout { margin: 0; flex: 1 1 260px; min-height: 0; text-align: right; font-size: clamp(15px, 1.7vw, 19px); }
.stage { border-radius: var(--r); }
.scope { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 calc(11% - 1px), rgba(156, 219, 142, .16) calc(11% - 1px) 11%),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(156, 219, 142, .22) 0 calc(50% + .5px), transparent 0),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(156, 219, 142, .22) 0 calc(50% + .5px), transparent 0); }
.sweep { position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: conic-gradient(from 0deg, transparent 0 82%, rgba(156, 219, 142, .16) 98%, rgba(156, 219, 142, .5) 100%); opacity: 0; }
html.js:not(.rm) .sweep { opacity: 1; animation: sweep 7s linear infinite; }
@keyframes sweep { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(1turn); } }
@media (max-width: 700px) {
  .sonar-box { min-width: 0; }
  .stage { border-radius: var(--r); }
  .sonar-bar .readout { text-align: left; }
}

/* 18: marks carry the distance number (1 hot, 2 warm, 3 cool; cold stays a hollow ring) */
.mark { width: 24px; height: 24px; margin: -12px 0 0 -12px; display: grid; place-items: center; font: 400 12px/1 var(--mono); }
.mark.hot { background: rgba(255, 138, 107, .25); }

/* 4: an even log rhythm, big log numbers, and a full-width closing plate */
.log { counter-reset: log; }
.entry { counter-increment: log; }
.entry-t::before { content: counter(log, decimal-leading-zero); display: block; margin-bottom: 12px; font: 300 clamp(64px, 7vw, 112px)/.8 var(--display); color: var(--tusk); }
.entry figure { border-radius: 2px; border: 0; background: none; }        /* 6 */
.tags span { padding: 0; border: 0; border-radius: 0; color: var(--mist); }  /* 13: log notation, not filter chips */
.tags span + span::before { content: '/'; margin-right: 8px; color: var(--aurora-3); }
@media (min-width: 801px) {
  .entry:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .entry:nth-child(5) { grid-template-columns: 1fr; }
  .entry:nth-child(5) figure img { aspect-ratio: 21 / 9; object-position: 50% 40%; }
  .entry:nth-child(5) .entry-t { max-width: 640px; }
}

/* 11: the porthole joins the sonar language; no layout jump on phones */
.tusk-pic { outline: 1px solid rgba(156, 219, 142, .32); outline-offset: 16px; box-shadow: 0 0 0 48px rgba(156, 219, 142, .035), 0 0 140px rgba(156, 219, 142, .16); }
@media (max-width: 800px) { .tusk-pic { width: min(100% - 40px, 320px); max-width: none; margin: 0 auto; outline-offset: 10px; } }

/* 7: numbered rules instead of three boxed cards */
.steps { gap: 28px 40px; }
.steps li { padding: 24px 0 20px; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.steps li::before { position: static; display: block; margin-bottom: 16px; font: 300 clamp(56px, 6vw, 88px)/.85 var(--display); letter-spacing: 0; color: var(--tusk); }
.steps img { position: absolute; right: 0; top: 24px; width: 32px; height: 32px; padding: 5px; margin: 0; }
@media (max-width: 800px) {
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
  .steps li::before { grid-row: span 2; font-size: 52px; }
}

/* 30: the X card is a real link with the handle */
.xcard { display: block; color: inherit; text-decoration: none; border-radius: 14px; }
.xcard:hover { border-color: var(--aurora); color: inherit; }
.xcard-handle { margin-top: 2px; color: var(--mist); font: 400 15px/1.3 var(--body); }

/* 5: the page ends on a giant wordmark over the empty sea */
.foot { padding: clamp(120px, 14vw, 200px) 0 40px; border-top: 0; background: linear-gradient(180deg, rgba(4, 8, 12, .15) 0%, rgba(4, 8, 12, .6) 45%, #04080c 85%), url(/img/deep.webp) center top / cover no-repeat, #04080c; }
.foot-in { gap: 18px; }
.foot-wm { flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-wm .wm { font: 300 clamp(96px, 28vw, 400px)/.78 var(--display); letter-spacing: -.02em; margin-left: -.04em; }
.foot-links { align-items: center; }

/* 22: 44 px tap targets */
.ico { width: 44px; height: 44px; }
.btn.sm, .motion-btn, .burger, .menu-close, .brand { min-height: 44px; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 6px; }

/* 26: small mono labels are larger on phones */
@media (max-width: 700px) {
  .readouts dt, .facts dt { font-size: 12.5px; letter-spacing: .12em; }
  .tags span { font-size: 13px; }
  .ca-soon { font-size: 14px; }
}

/* 25: no sticky hover after a tap on touch screens */
@media (hover: none) {
  .cell:hover { background: transparent; }
  .btn:hover { border-color: var(--line); color: var(--ice); background: rgba(6, 11, 16, .55); }
  .btn.buy:hover { background: var(--aurora); border-color: var(--aurora); color: var(--ink); }
  .chip:hover { background: var(--ice); border-color: var(--ice); }
  .ico:hover { background: var(--ice); border-color: var(--ice); }
  .xcard:hover { border-color: var(--line); }
}

/* 20: if JS is off or main.js failed, hide controls that cannot work and say so on the sonar */
html:not(.js) .burger, html.broken .burger, html:not(.js) .motion-btn, html.broken .motion-btn,
html:not(.js) .sonar-bar, html.broken .sonar-bar { display: none !important; }
html.broken .stage::before { content: 'The sonar did not load. Refresh to play. The sightings below still work.'; position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(80%, 340px); padding: 14px 18px; border-radius: 12px; background: rgba(6, 11, 16, .9); color: var(--ice); text-align: center; }
@media (max-width: 1100px) { html:not(.js) .links, html.broken .links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; } }

/* 14: the 404 plate is the dive */
.nf img { object-position: 62% 50%; }
