/* ═══════════════════════════════════════════════════════════════════════
   ROVIEW — "THE DESCENT"
   The whole page is one dive, experienced through an ROV pilot's console.
   A fixed canvas ocean (#ocean) sits behind everything and darkens with
   scroll depth; a fixed HUD (.hud) wraps the viewport; content sections
   are waypoints on the way down.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #e2f4fb;
  --dim: #8fb3c0;
  --faint: #557687;
  --cyan: #3ee0ff;
  --cyan-soft: rgba(62, 224, 255, 0.75);
  --cyan-deep: #0e6e8c;
  --amber: #ffb03b;
  --hull: #f0c53c;
  --bg: #041019;
  --panel: rgba(7, 27, 38, 0.58);
  --panel-solid: #071b26;
  --line: rgba(120, 205, 230, 0.16);
  --line-strong: rgba(120, 205, 230, 0.34);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --disp: "Barlow Condensed", "Inter", sans-serif;
  --hud-pad: clamp(14px, 2.4vw, 34px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg) linear-gradient(180deg, #0a2e3f 0%, #06202e 18%, #031018 55%, #010509 100%) fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }

::selection { background: rgba(62, 224, 255, 0.28); }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--cyan); color: #032530; font-weight: 600;
  padding: 10px 16px; border-radius: 4px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ═══ OCEAN CANVAS ══════════════════════════════════════════════════════ */
#ocean {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  display: block;
}

/* ═══ HUD CHROME ════════════════════════════════════════════════════════ */
.hud { position: fixed; inset: 0; z-index: 60; pointer-events: none; }

.hud-corner {
  position: absolute; width: 26px; height: 26px;
  border: 1.5px solid var(--line-strong);
}
.hud-corner.tl { top: var(--hud-pad); left: var(--hud-pad); border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: var(--hud-pad); right: var(--hud-pad); border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: calc(var(--hud-pad) + 30px); left: var(--hud-pad); border-right: 0; border-top: 0; }
.hud-corner.br { bottom: calc(var(--hud-pad) + 30px); right: var(--hud-pad); border-left: 0; border-top: 0; }

.hud-col {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: none;
  flex-direction: column; gap: 6px;
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--dim);
}
/* side telemetry only when the gutters are wide enough to own it */
@media (min-width: 1420px) { .hud-col { display: flex; } }
.hud-left { left: var(--hud-pad); }
.hud-right { right: var(--hud-pad); align-items: center; }

.hud-cap { font-size: 0.62rem; letter-spacing: 0.22em; color: var(--faint); }
.hud-cap.dim { opacity: 0.7; }

.hud-row { display: flex; gap: 10px; align-items: baseline; }
.hud-row b { color: var(--cyan-soft); font-weight: 500; width: 1.6em; }
.hud-row i { font-style: normal; color: var(--ink); opacity: 0.85; min-width: 7.5ch; }

.hud-rule {
  position: relative; width: 3px; height: clamp(120px, 26vh, 260px);
  background: linear-gradient(180deg, var(--line-strong), var(--line));
  border-radius: 2px;
}
.hud-rule::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(10% - 1px), rgba(120,205,230,0.5) calc(10% - 1px) 10%);
}
.hud-marker {
  position: absolute; left: 50%; top: 0;
  width: 14px; height: 5px; border-radius: 2px;
  background: var(--hull);
  transform: translate(-50%, -2px);
  box-shadow: 0 0 10px rgba(240, 197, 60, 0.7);
}

.hud-bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: clamp(10px, 3vw, 34px);
  padding: 8px var(--hud-pad);
  font-size: 0.7rem; letter-spacing: 0.08em; color: var(--dim);
  background: linear-gradient(180deg, transparent, rgba(2, 10, 16, 0.82) 40%);
  border-top: 1px solid var(--line);
}
.hb-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4d5e; box-shadow: 0 0 8px rgba(255, 77, 94, 0.8);
  animation: rec-blink 1.6s steps(2, start) infinite;
}
@keyframes rec-blink { 50% { opacity: 0.25; } }
.hb-mid { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hb-tether b, .hb-depth b { color: var(--cyan); font-weight: 600; }
.hb-depth { color: var(--ink); }
.hb-depth b { font-size: 0.95rem; color: var(--hull); }

@media (max-width: 900px) {
  .hud-corner.bl, .hud-corner.br { display: none; }
  .hb-mid { display: none; }
  .hud-bottom { justify-content: space-between; }
}
@media (max-width: 620px) {
  .hb-tether { display: none; }
  .hud-bottom { font-size: 0.64rem; gap: 12px; }
  .hb-live, .hb-depth { white-space: nowrap; }
}

/* ═══ BOOT SEQUENCE ═════════════════════════════════════════════════════ */
.boot {
  position: fixed; inset: 0; z-index: 200;
  background: #010608;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.45s ease;
}
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-inner {
  width: min(560px, 86vw);
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  color: var(--cyan-soft); letter-spacing: 0.05em; line-height: 2.1;
  white-space: pre-wrap;
}
.boot-inner .ok { color: var(--ink); }
.boot-inner .go { color: var(--hull); }
.boot-skip {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.22em; color: var(--faint); text-transform: uppercase;
}

/* ═══ NAV ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 30px);
  padding: 10px calc(var(--hud-pad) + 34px);
  background: linear-gradient(180deg, rgba(2, 10, 16, 0.85), rgba(2, 10, 16, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.brand { display: inline-flex; align-items: baseline; gap: 9px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%; align-self: center;
  background: radial-gradient(circle at 35% 35%, #9deeff, var(--cyan) 55%, var(--cyan-deep));
  box-shadow: 0 0 10px rgba(62, 224, 255, 0.65);
}
.brand-sub { font-size: 0.58rem; letter-spacing: 0.26em; color: var(--faint); }

.nav-links { display: flex; gap: clamp(10px, 2vw, 22px); margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--dim); font-size: 0.85rem; font-weight: 500;
  padding: 4px 2px; white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-cta {
  font-size: 0.7rem; letter-spacing: 0.14em; color: var(--hull);
  border: 1px solid rgba(240, 197, 60, 0.35); border-radius: 4px;
  padding: 7px 13px; white-space: nowrap;
}

@media (max-width: 760px) {
  .brand-sub, .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav { padding: 10px var(--hud-pad); }
}

/* ═══ SHARED TYPE ═══════════════════════════════════════════════════════ */
h1, h2, h3 { margin: 0; }

h2 {
  font-family: var(--disp);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 0.96; letter-spacing: 0.005em;
  margin: 0.35em 0 0.4em;
  text-wrap: balance;
}
.hl { color: var(--cyan); text-shadow: 0 0 24px rgba(62, 224, 255, 0.2); }

.lede { max-width: 62ch; color: var(--dim); font-size: clamp(1rem, 1.4vw, 1.14rem); margin: 0 0 2.4rem; }
.lede strong { color: var(--ink); }

.wp-tag {
  display: inline-flex; flex-wrap: wrap; gap: 0.6ch; align-items: baseline;
  font-size: 0.7rem; letter-spacing: 0.2em; color: var(--faint);
  border: 1px solid var(--line); border-radius: 3px;
  padding: 6px 12px; margin: 0;
  background: rgba(4, 18, 26, 0.5);
}
.wp-no { color: var(--hull); }
.wp-name { color: var(--cyan-soft); }

/* ═══ REVEAL ════════════════════════════════════════════════════════════ */
html.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js .reveal.d1 { transition-delay: 0.08s; }
html.js .reveal.d2 { transition-delay: 0.16s; }
html.js .reveal.d3 { transition-delay: 0.24s; }
html.js .reveal.d4 { transition-delay: 0.34s; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ═══ HERO ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 32%;
  filter: saturate(0.55) brightness(0.82) contrast(1.06);
  animation: hero-drift 26s var(--ease-out) both;
}
/* cold grade so the overcast quay sits in the site's palette */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: #0d3346;
  mix-blend-mode: color;
  opacity: 0.5;
}
@keyframes hero-drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .hero-bg img { animation: none; } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 30%, rgba(2, 9, 14, 0.6) 78%),
    linear-gradient(180deg, rgba(2, 9, 14, 0.66) 0%, rgba(2, 9, 14, 0.3) 34%, rgba(3, 12, 18, 0.68) 72%, #030d14 99%);
}

.hero-inner { text-align: center; max-width: 1000px; padding: 0 20px; }

.hero-eyebrow {
  font-size: clamp(0.6rem, 1.4vw, 0.74rem); letter-spacing: 0.3em;
  color: var(--cyan-soft); margin: 0 0 1.4rem;
}

.hero-title {
  font-family: var(--disp);
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(4.2rem, 14.5vw, 11.5rem);
  line-height: 0.88; letter-spacing: 0.01em;
  margin: 0 0 1.6rem;
  text-shadow: 0 8px 60px rgba(0, 0, 0, 0.6);
}
.hero-title .hl { text-shadow: 0 0 36px rgba(62, 224, 255, 0.3), 0 8px 60px rgba(0, 0, 0, 0.6); }

.hero-sub {
  max-width: 56ch; margin: 0 auto 2.2rem;
  color: #cfe7f0; font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  text-wrap: balance;
}
.hero-sub strong { color: var(--hull); font-weight: 600; }

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 0.98rem;
  padding: 15px 30px; border-radius: 4px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-solid {
  background: linear-gradient(180deg, #5ee6ff, #2cc7e8);
  color: #04202b;
  box-shadow: 0 4px 20px rgba(62, 224, 255, 0.25);
}
.btn-solid:hover { box-shadow: 0 6px 26px rgba(62, 224, 255, 0.38); }
.btn-line {
  border: 1px solid var(--line-strong); color: var(--ink);
  background: rgba(4, 18, 26, 0.45);
}
.btn-line:hover { background: rgba(62, 224, 255, 0.1); }
.btn-small { padding: 9px 18px; font-size: 0.85rem; }

.hero-meta { margin: 2.4rem 0 0; font-size: 0.66rem; letter-spacing: 0.22em; color: var(--dim); }

.dive-cue {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.6rem; letter-spacing: 0.3em; color: var(--cyan-soft);
}
.dive-cue-line {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, transparent, var(--cyan));
  animation: cue-drop 2.2s var(--ease-out) infinite;
}
@keyframes cue-drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .dive-cue-line { animation: none; } }

/* ═══ WAYPOINT SECTIONS ═════════════════════════════════════════════════ */
.wp { position: relative; padding: clamp(90px, 14vh, 150px) 0; }

/* ═══ PANELS / VIEWPORT FRAME ═══════════════════════════════════════════ */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.viewport {
  position: relative; margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #02090e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.viewport::before {
  content: attr(data-label);
  position: absolute; top: 10px; left: 12px; z-index: 3;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.2em;
  color: var(--cyan-soft);
  background: rgba(2, 10, 16, 0.72);
  border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 3px;
  pointer-events: none;
}
.viewport::after {
  /* scan-line sheen */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.viewport img, .viewport model-viewer { width: 100%; display: block; }

/* ═══ VEHICLE ═══════════════════════════════════════════════════════════ */
.vehicle-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(18px, 3vw, 34px); align-items: stretch;
}
@media (max-width: 900px) { .vehicle-grid { grid-template-columns: 1fr; } }

.model-stage { min-height: 420px; display: grid; }
model-viewer {
  height: 100%; min-height: 420px;
  background: radial-gradient(90% 90% at 50% 42%, #0d3346 0%, #051722 62%, #02090e 100%);
  --poster-color: transparent;
}

.rov-status { padding: clamp(18px, 2.6vw, 28px); display: flex; flex-direction: column; }
.panel-cap {
  font-size: 0.64rem; letter-spacing: 0.24em; color: var(--hull);
  margin: 0 0 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.status-list { margin: 0; display: grid; gap: 9px; font-size: 0.72rem; letter-spacing: 0.04em; }
.status-list div { display: flex; justify-content: space-between; gap: 12px; }
.status-list dt { color: var(--faint); }
.status-list dd { margin: 0; color: var(--ink); text-align: right; }
.status-note {
  margin: auto 0 0; padding-top: 16px;
  color: var(--dim); font-size: 0.88rem; font-style: italic;
}

/* ═══ INTERLUDES ════════════════════════════════════════════════════════ */
.interlude {
  position: relative; min-height: 78svh;
  display: grid; place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.int-bg { position: absolute; inset: 0; }
.int-bg img { width: 100%; height: 100%; object-fit: cover; }
.int-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(110% 80% at 50% 45%, rgba(1, 6, 10, 0.12) 20%, rgba(1, 6, 10, 0.72) 100%);
}
.int-copy { position: relative; z-index: 1; text-align: center; padding: 0 22px; }
.int-depth {
  display: inline-block;
  font-size: 0.68rem; letter-spacing: 0.28em; color: var(--cyan);
  margin: 0 0 1.7rem; padding: 7px 14px;
  background: rgba(2, 10, 16, 0.66);
  border: 1px solid var(--line-strong); border-radius: 3px;
}
.int-line {
  font-family: var(--disp); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.6vw, 3.3rem); line-height: 1.08;
  margin: 0; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
}

/* ═══ JOBS ══════════════════════════════════════════════════════════════ */
.jobs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.job { padding: 0 0 22px; overflow: hidden; display: flex; flex-direction: column; }
.job-fig { margin: 0 0 18px; border-bottom: 1px solid var(--line); background: #04141d; }
.job-fig img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; opacity: 0.92; }
.job-eyebrow { font-size: 0.6rem; letter-spacing: 0.24em; color: var(--hull); margin: 0 20px 8px; }
.job h3 { font-size: 1.28rem; font-weight: 700; margin: 0 20px 10px; }
.job p { margin: 0 20px 12px; color: var(--dim); font-size: 0.92rem; }
.job-foot {
  margin: auto 20px 0; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 0.62rem; letter-spacing: 0.16em; color: var(--cyan-soft);
}

/* ═══ FLEET ═════════════════════════════════════════════════════════════ */
.fleet-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: clamp(18px, 3vw, 34px); align-items: center;
}
@media (max-width: 950px) { .fleet-grid { grid-template-columns: 1fr; } }

.sonar-board {
  list-style: none; margin: 0; padding: clamp(16px, 2.4vw, 26px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  display: grid; gap: 2px;
}
.sonar-board li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 4px;
  font-size: 0.78rem; letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(120, 205, 230, 0.08);
}
.sonar-board li:last-child { border-bottom: 0; }
.sb-no { color: var(--faint); font-size: 0.66rem; }
.sb-name { color: var(--ink); white-space: nowrap; }
.sb-dots { flex: 1; border-bottom: 1px dotted rgba(120, 205, 230, 0.28); transform: translateY(-4px); }
.sonar-board b { color: var(--cyan); font-weight: 600; }
.sonar-board b i { color: var(--faint); font-style: normal; font-size: 0.62rem; font-weight: 400; }

/* ═══ SURVEY (interactive) ══════════════════════════════════════════════ */
.survey-hud {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: baseline;
  font-size: 0.7rem; letter-spacing: 0.16em; color: var(--dim);
  border: 1px solid var(--line); border-radius: 4px;
  background: rgba(4, 18, 26, 0.6);
  padding: 10px 16px; margin: 0 0 16px;
}
.sh-count { color: var(--hull); }
.sh-score { margin-left: auto; }
.sh-score b { color: var(--cyan); font-size: 0.92rem; }

.survey-stage { user-select: none; }
.survey-frame { position: relative; cursor: crosshair; }
.survey-frame > picture img { width: 100%; }

.survey-cross {
  position: absolute; z-index: 4; width: 46px; height: 46px;
  transform: translate(-50%, -50%); left: 50%; top: 50%;
  pointer-events: none; opacity: 0;
  transition: opacity 0.25s;
}
.survey-frame:hover .survey-cross { opacity: 1; }
.survey-cross::before, .survey-cross::after {
  content: ""; position: absolute; background: rgba(62, 224, 255, 0.85);
}
.survey-cross::before { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
.survey-cross::after { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }

.survey-flash {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: #dff6ff; opacity: 0;
}
.survey-flash.is-on { animation: shutter 0.42s ease-out; }
@keyframes shutter { 0% { opacity: 0.85; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .survey-flash.is-on { animation: none; } }

.hotspot {
  position: absolute; z-index: 3;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
}
.hotspot::before {
  content: ""; position: absolute; inset: 6px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(62, 224, 255, 0.5), inset 0 0 10px rgba(62, 224, 255, 0.25);
  animation: ping 2.6s ease-out infinite;
}
.hotspot::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--cyan);
}
@keyframes ping {
  0%, 72% { box-shadow: 0 0 14px rgba(62, 224, 255, 0.5), inset 0 0 10px rgba(62, 224, 255, 0.25); }
  82% { box-shadow: 0 0 26px rgba(62, 224, 255, 0.9), inset 0 0 14px rgba(62, 224, 255, 0.5); }
}
@media (prefers-reduced-motion: reduce) { .hotspot::before { animation: none; } }

.hotspot-tag {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  transform: translateX(-50%);
  font-size: 0.6rem; letter-spacing: 0.12em; white-space: nowrap;
  color: var(--ink); background: rgba(2, 10, 16, 0.85);
  border: 1px solid var(--line-strong);
  padding: 4px 8px; border-radius: 3px;
  opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.hotspot:hover .hotspot-tag, .hotspot:focus-visible .hotspot-tag { opacity: 1; }

.hotspot.is-shot { cursor: default; }
.hotspot.is-shot::before {
  animation: none;
  border-color: var(--amber);
  box-shadow: 0 0 16px rgba(255, 176, 59, 0.6);
  border-radius: 3px; inset: 8px;
}
.hotspot.is-shot::after { background: var(--amber); }

.survey-done[hidden] { display: none; }
.survey-done {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-content: center; gap: 8px; text-align: center;
  background: rgba(2, 10, 16, 0.82);
  backdrop-filter: blur(3px);
}
.sd-head {
  margin: 0; font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  letter-spacing: 0.24em; color: var(--hull); font-weight: 600;
}
.sd-line { margin: 0 0 14px; font-size: 0.74rem; letter-spacing: 0.18em; color: var(--ink); }
.sd-line b { color: var(--cyan); }
.survey-done .btn { justify-self: center; }

.survey-log {
  border-top: 1px solid var(--line);
  background: rgba(2, 10, 16, 0.8);
  padding: 10px 16px;
  font-size: 0.66rem; letter-spacing: 0.12em; color: var(--dim);
  display: grid; gap: 4px;
  min-height: 38px;
}
.survey-log .sl-line b { color: var(--amber); font-weight: 500; }

.survey-note { color: var(--faint); font-size: 0.9rem; margin: 18px 0 0; }

/* ═══ CONSOLE / FEATURES ════════════════════════════════════════════════ */
.feat-grid {
  list-style: none; margin: clamp(20px, 3vw, 34px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.feat-grid li { padding: 22px 22px 24px; color: var(--dim); font-size: 0.94rem; }
.feat-grid b {
  display: block; margin-bottom: 10px;
  color: var(--cyan); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.2em;
}

/* ═══ PAPER ═════════════════════════════════════════════════════════════ */
.paper-grid {
  display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px); align-items: center;
  margin-top: clamp(20px, 3vw, 36px);
}
@media (max-width: 800px) { .paper-grid { grid-template-columns: 1fr; } }

.paper-cover {
  display: block; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  transform: rotate(-1.6deg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.paper-cover:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.7); }
.paper-copy h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.25; margin-bottom: 14px; }
.paper-copy p { color: var(--dim); margin: 0 0 24px; max-width: 58ch; }

/* ═══ RESURFACE ═════════════════════════════════════════════════════════ */
.resurface {
  position: relative;
  padding: clamp(110px, 18vh, 190px) 0 clamp(80px, 12vh, 130px);
  text-align: center;
}
.resurface .lede { margin-left: auto; margin-right: auto; }
.resurface .hero-ctas { margin-bottom: clamp(50px, 8vh, 80px); }

.steam-plate {
  display: inline-block; margin: 0 0 26px;
  font-size: 0.76rem; letter-spacing: 0.26em; color: var(--hull);
  border: 1px solid rgba(240, 197, 60, 0.38); border-radius: 4px;
  padding: 13px 24px;
  background: rgba(26, 19, 4, 0.42);
}

.faq {
  max-width: 720px; margin: 0 auto; text-align: left;
  display: grid; gap: 10px;
}
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; gap: 14px; align-items: baseline;
  padding: 16px 0; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { color: var(--hull); font-size: 0.7rem; letter-spacing: 0.14em; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--cyan); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--dim); font-size: 0.95rem; }

/* ═══ FOOTER ════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(1, 6, 10, 0.85);
  padding: 26px 0 56px; /* clears the fixed HUD bottom bar */
}
.footer-row {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  justify-content: space-between;
  font-size: 0.62rem; letter-spacing: 0.16em; color: var(--faint);
}
.foot-links a { color: var(--dim); }

/* ═══ SMALL SCREENS ═════════════════════════════════════════════════════
   Phones get a calmer console: monitor labels become a bar above the
   image instead of floating over it, headings wrap naturally, reticles
   shrink (hit areas stay 44px), and tall media is cropped to a peek.   */
@media (max-width: 640px) {
  h2 br { display: none; }

  .wp-tag { font-size: 0.6rem; letter-spacing: 0.14em; padding: 6px 10px; }

  .viewport::before {
    position: static; display: block; width: 100%;
    border: 0; border-bottom: 1px solid var(--line);
    border-radius: 0; padding: 9px 14px;
    background: rgba(2, 10, 16, 0.85);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }

  .interlude { min-height: 62svh; }
  .int-depth { font-size: 0.56rem; letter-spacing: 0.16em; padding: 6px 10px; margin-bottom: 1.3rem; }

  .hotspot::before { inset: 11px; }
  .hotspot-tag { display: none; }
  .survey-hud { gap: 8px 18px; font-size: 0.62rem; }
  .survey-log { font-size: 0.6rem; letter-spacing: 0.08em; }

  .model-stage, model-viewer { min-height: 320px; }

  .paper-grid { align-items: start; }
  .paper-cover { transform: none; }
  .paper-cover img {
    width: 100%; max-height: 46vh;
    object-fit: cover; object-position: top;
  }

  .status-list { font-size: 0.66rem; }
  .status-list div { flex-wrap: wrap; }

  .footer-row { flex-direction: column; gap: 10px; }
}

/* ═══ NO-JS: keep the page fully readable ═══════════════════════════════ */
html.no-js .boot { display: none; }
html.no-js #ocean { display: none; }
