:root {
  color-scheme: dark;
  --body-font: "PingFang TC", "Noto Sans TC", "Source Han Sans TC", "Microsoft JhengHei", sans-serif;
  --heading-font: "Chiron Hei HK";
  --water-0: #2bb3b1;
  --water-30: #1d8ea0;
  --water-200: #123a5c;
  --water-450: #0a1a2c;
  --water-680: #050b14;
  --paper: #f3f1eb;
  --ink: #0c171c;
  --accent: #ff6b2c;
  --glow: #5ff0d2;
  --metal: #b8d5d2;
  --deep-filter: url("#deep-cyan");
  --black: #000;
  --white: #fff;
  --shade: #04121c;
  --ice: #c7f4ff;
  --board: #e6e5d8;
  --board-ink: #1d3033;
  --board-metal: #53736e;
  --board-metal-light: #aabbb0;
  --glass: color-mix(in srgb, var(--shade) 86%, transparent);
  --thin: color-mix(in srgb, var(--paper) 27%, transparent);
  --faint: color-mix(in srgb, var(--paper) 79%, transparent);
  --header-h: 78px;
  --gutter: clamp(44px, 5.6vw, 120px);
  --bottom-space: 18px;
  --round: 2px;
  --torch-radius: 200px;
  --torch-warm: #fff0d7;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  position: fixed;
  inset: 0;
  height: 100dvh;
  background: var(--water-680);
  color: var(--paper);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: .025em;
  font-variant-numeric: tabular-nums;
  font-synthesis: none;
}
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button, select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
p { text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid var(--thin);
  border-radius: var(--round);
  background: var(--glass);
  color: var(--paper);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.button:hover { border-color: var(--paper); }
.button svg, .brand-mark, .light-hint svg { stroke: currentColor; stroke-width: 1.5; flex: none; }
.primary { min-height: 48px; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.primary:hover { background: color-mix(in srgb, var(--accent) 85%, var(--white)); border-color: var(--accent); }

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--shade) 48%, transparent), color-mix(in srgb, var(--shade) 23%, transparent) 55%, transparent);
  text-shadow: 0 1px 4px var(--shade), 0 0 12px color-mix(in srgb, var(--shade) 80%, transparent);
}
.site-header .button { background: color-mix(in srgb, var(--shade) 24%, transparent); }
.brand { justify-self: start; display: inline-flex; gap: 9px; align-items: center; min-height: 44px; text-decoration: none; }
.brand-mark { width: 32px; height: 32px; color: var(--accent); }
.brand-name { display: flex; align-items: baseline; gap: 10px; font-family: var(--heading-font), var(--body-font); line-height: 1.25; letter-spacing: 0; white-space: nowrap; }
.brand-name > span { font-size: 1.75rem; }
.brand-name small { font-size: .875rem; }
.instrument-readout { display: flex; align-items: center; color: var(--faint); font-size: .875rem; white-space: nowrap; }
.instrument-readout > span + span { border-left: 1px solid var(--thin); margin-left: 14px; padding-left: 14px; }
.instrument-readout b { color: var(--paper); font-weight: 700; }
.instrument-readout b[data-reading="depth"], .instrument-readout b[data-reading="temperature"] { display: inline-block; min-width: 6ch; text-align: right; }
.instrument-readout b[data-reading="light"] { display: inline-block; min-width: 4ch; text-align: right; }
/* 桌機也有「選單」按鈕，打開和手機同一個全螢幕站點選單 */
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.compact-tools { display: flex; align-items: center; gap: 8px; }
.compact-depth { display: none; }

.ocean, .water-column, .scene-art, .stations, .station, .sunbeams, .marine-snow { position: absolute; inset: 0; }
.ocean { overflow: hidden; pointer-events: none; isolation: isolate; }
.water-column {
  background: linear-gradient(164deg,
    color-mix(in srgb, var(--water-top, var(--water-0)), var(--water-680) var(--water-shadow, 0%)),
    color-mix(in srgb, var(--water-mid, var(--water-30)), var(--water-680) var(--water-shadow, 0%)) 46%,
    color-mix(in srgb, var(--water-bottom, var(--water-200)), var(--water-680) var(--water-shadow, 0%)));
}
.scene-art {
  --image-x: 50%;
  --image-y: 50%;
  display: none;
}
.scene-art.is-visible { display: block; }
.scene-art.is-moving {
  --edge-top: 0%;
  --edge-bottom: 0%;
  --mask-low: color-mix(in srgb, var(--black) 10%, transparent);
  --mask-mid: color-mix(in srgb, var(--black) 47%, transparent);
  --mask-high: color-mix(in srgb, var(--black) 88%, transparent);
  mask-image: linear-gradient(to bottom,
    transparent,
    var(--mask-low) calc(var(--edge-top) * .21),
    var(--mask-mid) calc(var(--edge-top) * .49),
    var(--mask-high) calc(var(--edge-top) * .78),
    var(--black) var(--edge-top),
    var(--black) calc(100% - var(--edge-bottom)),
    var(--mask-high) calc(100% - var(--edge-bottom) * .78),
    var(--mask-mid) calc(100% - var(--edge-bottom) * .49),
    var(--mask-low) calc(100% - var(--edge-bottom) * .21),
    transparent);
}
.image-field { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.image-plane { position: absolute; inset: 0; overflow: hidden; isolation: isolate; }
.image-field > img, .image-plane > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-x) var(--image-y);
}
.art-products { --scene-brightness: .5; }
.art-pipe { --scene-brightness: .38; }
.art-intake { --scene-brightness: .27; }
.art-light .image-field > img { filter: url("#shallow-water"); }
.deep-image { filter: var(--deep-filter) brightness(var(--scene-brightness)); }
.flashlight {
  mask-image: radial-gradient(circle var(--torch-radius) at var(--torch-x, 70vw) var(--torch-y, 45vh), var(--black) 55%, color-mix(in srgb, var(--black) 50%, transparent) 79%, transparent 100%);
}
.image-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle var(--torch-radius) at var(--torch-x, 70vw) var(--torch-y, 45vh),
    transparent 56%, color-mix(in srgb, var(--torch-warm) 8%, transparent) 81%,
    color-mix(in srgb, var(--torch-warm) 5%, transparent) 100%, transparent 114%);
  mix-blend-mode: screen;
}
.site-states { position: absolute; width: 0; height: 0; overflow: hidden; }
.ocean::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--shade) 60%, transparent), transparent 24%);
}
.art-surface::after, .art-light::after {
  content: "";
  position: absolute;
  inset: 0;
}
.art-surface::after {
  background: linear-gradient(90deg, color-mix(in srgb, var(--shade) 72%, transparent), color-mix(in srgb, var(--shade) 47%, transparent) 30%, transparent 59%);
}
.art-light::after {
  background: linear-gradient(270deg, color-mix(in srgb, var(--shade) 81%, transparent), color-mix(in srgb, var(--shade) 38%, transparent) 32%, transparent 61%);
}
.sunbeams {
  inset: -27% -16% -10%;
  opacity: var(--beam-opacity, .33);
  background: conic-gradient(from 120deg at 18% 0%, transparent 0deg, color-mix(in srgb, var(--ice) 27%, transparent) 11deg, transparent 16deg, color-mix(in srgb, var(--ice) 17%, transparent) 24deg, transparent 29deg, color-mix(in srgb, var(--ice) 20%, transparent) 39deg, transparent 49deg);
  mask-image: linear-gradient(to bottom, transparent 18%, var(--black) 29%, transparent 78%);
  transform-origin: 18% 0;
  animation: sunlight 12s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes sunlight { from { transform: rotate(-2deg); } to { transform: rotate(4deg); } }
.marine-snow { z-index: 1; width: 100%; height: 100%; }
.bioluminescence {
  position: absolute;
  left: var(--source-x, 0);
  top: var(--source-y, 0);
  width: var(--source-width, 100%);
  height: var(--source-height, 100%);
  visibility: hidden;
  mix-blend-mode: screen;
}
.bio-art { display: block; width: 100%; height: 100%; }
#bio-feather stop { stop-color: var(--white); }
.bio-mask ellipse { fill: url("#bio-feather"); }
.bio-color { flood-color: var(--glow); }
.bio-organism { opacity: 0; --breath: 6.8s; --delay: .16s; }
.bio-organism:nth-of-type(2) { --breath: 5.8s; --delay: .7s; }
.bio-organism:nth-of-type(3) { --breath: 7.5s; --delay: 1.22s; }
.bio-organism:nth-of-type(4) { --breath: 8.4s; --delay: 1.85s; }
.bio-point {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--halo);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(circle closest-side,
    color-mix(in srgb, var(--glow) 53%, var(--white)) 0 calc(var(--core) / 2),
    color-mix(in srgb, var(--glow) 38%, transparent) calc(var(--core) / 2 + 1px),
    color-mix(in srgb, var(--glow) 12%, transparent) 62%, transparent 100%);
  opacity: 0;
}
body.lights-out .art-intake { --scene-brightness: .08; }
body.lights-out .art-intake .flashlight { visibility: hidden; }
body.lights-out .art-intake .image-plane::after { visibility: hidden; }
body.lights-out .bioluminescence { visibility: visible; }
body.lights-out :is(.bio-organism, .bio-point) { animation: bioglow var(--breath, 5.4s) ease-in-out var(--delay, 0s) infinite backwards; }
@keyframes bioglow {
  0% { opacity: .35; }
  52% { opacity: 1; }
  100% { opacity: .35; }
}
.torch-cursor { display: none; position: absolute; width: 12px; height: 12px; z-index: 4; pointer-events: none; translate: -50% -50%; border-radius: 50%; border: 1px solid var(--paper); box-shadow: 0 0 0 1px var(--shade); }
body.torch-pointer .stations { cursor: none; }
body.torch-pointer .torch-cursor { display: block; }
body.torch-pointer .stations :is(button, input, select, a) { cursor: auto; }
body.torch-pointer .stations button { cursor: pointer; }

.stations { z-index: 2; }
.station {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  visibility: hidden;
  padding: calc(var(--header-h) + var(--safe-top) + 24px) var(--gutter) calc(74px + var(--safe-bottom));
  touch-action: none;
}
.station.is-current, .station.is-leaving { visibility: visible; }
.station.is-leaving { opacity: 0; transition: opacity .24s ease; pointer-events: none; }
.station-copy { width: min(100%, 620px); }
.station-surface .station-copy { width: min(100%, 665px); }
.station-light .station-copy { grid-column: 2; justify-self: end; width: min(100%, 525px); }
.station-products .station-copy, .station-pipe .station-copy { width: min(100%, 510px); }
.station-intake .station-copy { width: min(100%, 565px, calc(43vw - var(--gutter) - 36px)); }
.station-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--paper);
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .06em;
}
.station-label::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }
.station-title {
  width: min(100%, 12.8em);
  color: var(--paper);
  font: 400 clamp(2.6rem, 3.85vw, 4.65rem)/1.28 var(--heading-font), var(--body-font);
  letter-spacing: 0;
  text-wrap: balance;
}
.station-title:focus { outline: none; }
.station-surface .station-title { font-size: clamp(3.4rem, 5.4vw, 5.75rem); width: 100%; }
.title-line { display: block; white-space: nowrap; }
.station-products .station-title, .station-pipe .station-title, .station-intake .station-title { font-size: clamp(2.5rem, 3.45vw, 4.2rem); }
.station-pipe .station-title { width: 100%; font-size: clamp(2.3rem, 3.35vw, 3.65rem); }
.station-intake .station-title { width: min(100%, 10em); }
.station-body { margin-top: clamp(14px, 2.1vh, 25px); }
.prose { max-width: 26em; font-size: clamp(1rem, 1.13vw, 1.125rem); line-height: 1.75; color: var(--paper); }
.station.is-entering .station-label { animation: clarify .4s ease both; }
.station.is-entering .station-title { animation: torch-reveal .6s ease both; }
.station.is-entering .station-body { animation: clarify .45s ease .06s both; }
@keyframes torch-reveal {
  from { mask: linear-gradient(90deg, var(--black) 38%, transparent 56%) 100% 0 / 250% 100%; filter: brightness(1.4); }
  to { mask: linear-gradient(90deg, var(--black) 38%, transparent 56%) 0 0 / 300% 100%; filter: brightness(1); }
}
@keyframes clarify { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
.surface-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 25px; }
.surface-actions .button { padding-inline: 22px; }
.measurements {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1.55fr;
  margin-top: clamp(19px, 4vh, 35px);
  border-top: 1px solid var(--thin);
  border-bottom: 1px solid var(--thin);
  max-width: 480px;
}
.measurements > div { min-width: 0; padding: 12px 12px 13px; }
.measurements > div:first-child { padding-left: 0; }
.measurements > div + div { border-left: 1px solid var(--thin); }
.measurements dt { font-size: .875rem; line-height: 1.35; }
.measurements dd { margin-top: 3px; font-size: clamp(1.4rem, 2.6vw, 2.5rem); line-height: 1.25; white-space: nowrap; }
.measurements dd small { font-size: .875rem; }
.products { list-style: none; padding: 0; border-bottom: 1px solid var(--thin); }
.products li { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 7px 0; border-top: 1px solid var(--thin); }
.products h3 { font-size: 1.125rem; line-height: 1.45; }
.products h3 small { display: inline-block; margin-left: 3px; font-size: .875rem; font-weight: 400; color: var(--faint); }
.products p { font-size: 1rem; line-height: 1.75; max-width: 26em; }
.product-action { text-align: right; display: grid; justify-items: end; align-items: center; gap: 0; font-size: .875rem; line-height: 1.15; }
.product-action > span { white-space: nowrap; }
.text-button { min-height: 44px; min-width: 52px; border: 0; background: transparent; padding: 0 0 0 5px; color: var(--paper); font-size: .875rem; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: .32em; }
.text-button:hover { color: var(--accent); }
.light-hint { display: flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--faint); font-size: .875rem; line-height: 1.45; }
.light-hint svg { color: var(--accent); }
.touch-hint { display: none; }
.process { display: grid; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--thin); }
.process li {
  display: grid;
  grid-template-columns: 1.55rem 5.25rem minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--thin);
  counter-increment: step;
  font-size: 1rem;
  line-height: 1.75;
}
.process li::before {
  content: counter(step);
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  color: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  line-height: 1;
}
.process li span { max-width: 26em; }
.process + .button { margin-top: 16px; }
.intake-intro { display: flex; align-items: center; gap: 12px 18px; }
.light-toggle svg { color: var(--accent); }
.reservation { border-top: 1px solid var(--thin); padding-top: 13px; margin-top: 18px; }
.booking-intro { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 4px 14px; margin-bottom: 9px; }
.booking-intro h3 { font-size: 1.125rem; line-height: 1.4; }
.booking-intro p { justify-self: end; max-width: 26em; }
.booking-intro p, address, .demo-note, .booking-result { font-size: .875rem; line-height: 1.5; }
.booking-intro p, address, .demo-note { color: var(--faint); }
.booking-fields { display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr) minmax(5.35rem, .83fr); gap: 8px 10px; align-items: end; }
.booking-fields label { display: grid; gap: 3px; min-width: 0; font-size: .875rem; line-height: 1.25; }
.booking-fields :is(input, select) { min-height: 44px; width: 100%; padding: 0 8px; border: 1px solid var(--thin); border-radius: var(--round); background-color: var(--glass); }
.booking-fields input { font-size: 1rem; }
select { appearance: none; padding-right: 25px !important; background-image: linear-gradient(45deg, transparent 47%, var(--paper) 49% 61%, transparent 63%), linear-gradient(-45deg, transparent 47%, var(--paper) 49% 61%, transparent 63%); background-size: 6px 6px; background-position: right 13px center, right 8px center; background-repeat: no-repeat; }
option { background: var(--shade); color: var(--paper); }
.booking-fields .primary { width: 100%; padding-inline: 6px; }
.booking-result { color: var(--paper); font-weight: 700; }
.booking-result:not(:empty) { margin-top: 8px; }
address { display: flex; flex-wrap: wrap; gap: 0 12px; font-style: normal; }
.station-intake address { margin-top: 15px; }
.demo-note { margin-top: 5px; }

.depth-controls { position: absolute; z-index: 4; right: calc(var(--gutter) - 15px); bottom: max(27px, var(--safe-bottom)); display: flex; align-items: end; gap: 20px; }
.surface-button { margin-bottom: 9px; padding-inline: 13px; }
.surface-button svg { color: var(--accent); }
.gauge { position: relative; width: 184px; height: 164px; }
.gauge-face { display: block; position: absolute; inset: 5px 14px auto; width: 156px; height: 156px; overflow: visible; }
.gauge-rim { stroke: var(--metal); fill: var(--glass); stroke-opacity: .69; }
.gauge-dial { stroke: var(--thin); fill: var(--glass); }
.gauge-inner { stroke: var(--thin); fill: none; stroke-dasharray: 1 3; }
.gauge-ticks { stroke: var(--metal); stroke-width: 1; opacity: .78; }
.station-tick { stroke: var(--accent); stroke-width: 1.5; }
.gauge-needle { fill: var(--accent); transform-origin: 78px 78px; transform: rotate(-130deg); }
.gauge-readout { position: absolute; left: 50%; top: 52%; translate: -50% -50%; text-align: center; display: grid; line-height: 1.2; pointer-events: none; }
.gauge-readout b { font-size: 1.18rem; white-space: nowrap; }
.gauge-readout span { margin-top: 3px; font-size: .875rem; color: var(--faint); }
.gauge-stop { position: absolute; display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); font-size: .875rem; line-height: 1; padding: 0; }
.gauge-stop:hover, .gauge-stop[aria-current] { color: var(--accent); }
.stop-surface { left: 8px; top: 119px; }
.stop-light { left: -6px; top: 75px; }
.stop-products { left: 30px; top: 15px; }
.stop-pipe { right: 20px; top: 18px; }
.stop-intake { right: 1px; top: 111px; }
.gauge-stop[aria-current]::after { content: ""; position: absolute; width: 4px; height: 4px; bottom: 7px; border-radius: 50%; background: var(--accent); }

dialog { color: var(--paper); border: 0; padding: 0; }
dialog::backdrop { background: color-mix(in srgb, var(--shade) 65%, transparent); }
.icon-close { width: 44px; padding: 0; font-size: 1.6rem; font-weight: 400; line-height: 1; }
.dive-board {
  position: fixed; inset: auto 0 0; margin: 0 auto;
  width: min(100% - 30px, 560px); max-width: none; max-height: calc(100dvh - 24px);
  background: transparent; overflow: auto; padding-top: 22px;
}
.dive-board[open] { animation: board-rise .55s cubic-bezier(.16,.76,.33,1) both; }
@keyframes board-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
.board-clip {
  position: absolute; z-index: 1; top: 5px; left: 50%; translate: -50% 0;
  width: 102px; height: 34px; border-radius: 11px 11px 4px 4px;
  border: 1px solid var(--board-metal); background: linear-gradient(180deg,var(--board-metal-light),var(--board-metal));
  box-shadow: 0 3px 5px color-mix(in srgb, var(--board-ink) 26%, transparent);
}
.board-clip::before { content: ""; position: absolute; inset: 7px 25px auto; height: 8px; border: 1px solid var(--board-metal); border-radius: 10px; }
.board-inner { position: relative; background: var(--board); border: 5px solid var(--board-metal); color: var(--board-ink); padding: 33px 29px max(26px, var(--safe-bottom)); border-radius: 4px 4px 0 0; }
.board-inner .icon-close { position: absolute; top: 12px; right: 12px; background: transparent; border-color: var(--board-metal); color: var(--board-ink); }
.board-inner .icon-close:focus-visible { outline-color: var(--board-ink); }
.board-inner h2 { padding-right: 40px; font-size: 1.55rem; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.detail-fields { margin-top: 18px; border-bottom: 1px solid var(--board-metal); }
.detail-fields > div { display: grid; grid-template-columns: minmax(5em, .37fr) 1fr; gap: 11px; padding: 10px 0; border-top: 1px solid var(--board-metal); }
.detail-fields dt { font-weight: 700; }
.dive-menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; background: transparent; overflow: hidden; }
.menu-water { position: absolute; inset: 0; background: linear-gradient(160deg, var(--water-200), var(--water-450) 43%, var(--water-680)); }
.menu-water::before, .menu-water::after { content: ""; position: absolute; top: -22px; left: -16%; width: 132%; height: 47px; border-radius: 45%; background: var(--water-200); }
.menu-water::after { left: -25%; opacity: .48; animation: wave 2.1s ease-in-out infinite alternate; }
.dive-menu[open] .menu-water { animation: flood .57s cubic-bezier(.24,.75,.25,1) both; }
@keyframes flood { from { transform: translateY(102%); } to { transform: translateY(0); } }
@keyframes wave { to { transform: translate(14%, 10px) rotate(2deg); } }
.menu-inner {
  position: relative; height: 100%; overflow: auto; overscroll-behavior: contain;
  padding: max(18px, var(--safe-top)) clamp(20px, 6vw, 74px) max(18px, var(--safe-bottom));
  width: min(100%, 720px); margin-inline: auto; display: flex; flex-direction: column; justify-content: safe center;
}
.dive-menu[open] .menu-inner { animation: appear .28s ease .25s both; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.menu-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 9px; }
.menu-header h2 { font-size: 1.15rem; }
.menu-stations { border-top: 1px solid var(--thin); }
.menu-stations button { width: 100%; display: grid; justify-items: start; gap: 2px; min-height: 44px; padding: clamp(9px, 1.6dvh, 18px) 6px; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid var(--thin); text-align: left; line-height: 1.32; }
.menu-stations button:hover, .menu-stations button[aria-current] { color: var(--accent); }
.menu-stations span { font-size: clamp(1.23rem, 4.9vw, 1.8rem); }
.menu-stations b { margin-left: 7px; font-weight: 700; }
.menu-stations small { font-size: .875rem; color: var(--paper); }
@media (min-width: 901px) and (orientation: landscape) {
  .menu-inner { width: min(760px, 86vw); max-width: none; }
  .menu-stations span { font-size: clamp(2rem, 2.6vw, 2.6rem); }
  .menu-stations small { font-size: 1rem; }
}
.menu-footer { display: grid; justify-items: start; gap: 10px; padding-top: 17px; }

@media (min-width: 901px) and (orientation: landscape) and (max-width: 1350px) {
  .station-copy { max-width: 94%; }
  .station-light .station-copy { max-width: 94%; }
  .station-intake .station-copy { max-width: 100%; }
}
@media (min-width: 901px) and (orientation: landscape) and (max-width: 1100px) {
  .station-products .station-copy { max-width: 88%; }
  .art-products { --image-x: 58%; }
}
@media (min-width: 901px) and (orientation: landscape) and (max-aspect-ratio: 3/2) {
  .art-intake { --image-x: 60%; }
  .art-intake .image-field {
    top: max(64px, 8%);
    bottom: 10%;
    mask-image: linear-gradient(to bottom, transparent, var(--black) 7% 83%, transparent);
  }
}
@media (min-width: 901px) and (orientation: landscape) and (max-height: 680px) {
  :root { --header-h: 64px; }
  .station { padding-top: calc(var(--header-h) + var(--safe-top) + 8px); padding-bottom: 63px; }
  .station-label { margin-bottom: 8px; }
  .station-title { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
  .station-surface .station-title { font-size: clamp(2.65rem, 5.1vw, 4.7rem); }
  .station-products .station-title, .station-pipe .station-title, .station-intake .station-title { font-size: clamp(2.15rem, 3.25vw, 3.35rem); }
  .station-body { margin-top: 9px; }
  .reservation { margin-top: 10px; padding-top: 8px; }
  .station-intake address { margin-top: 8px; }
}
@media (max-width: 900px), (orientation: portrait) {
  :root { --header-h: 64px; --gutter: clamp(18px, 5.1vw, 48px); --torch-radius: clamp(115px, 35vw, 180px); }
  .site-header { grid-template-columns: auto 1fr auto; gap: 10px; }
  .instrument-readout { justify-content: center; }
  .header-book, .depth-controls { display: none; }
  .compact-tools { display: flex; gap: 8px; align-items: center; }
  .compact-depth { display: inline; font-size: .875rem; white-space: nowrap; }
  .menu-open { padding-inline: 11px; }
  .scene-art { mask-image: none; --field-size: 57%; }
  .image-field {
    bottom: auto; height: var(--field-size);
    mask-image: linear-gradient(to bottom, var(--black) 0 65%, transparent 100%);
  }
  .art-surface { --image-x: 71%; --image-y: 34%; --field-size: 66%; }
  .art-light { --image-x: 21%; --image-y: 31%; --field-size: 61%; }
  .art-products { --image-x: 87%; --image-y: 52%; --field-size: 52%; }
  .art-pipe { --image-x: 72%; --image-y: 23%; --field-size: 53%; }
  .art-intake { --image-x: 79%; --image-y: 12%; --field-size: 52%; }
  .art-intake .image-field {
    top: calc(var(--header-h) + var(--safe-top));
    height: calc(var(--field-size) - var(--header-h) * .65);
    mask-image: linear-gradient(to bottom, transparent, var(--black) 5% 65%, transparent 100%);
  }
  .art-surface::after, .art-light::after { display: none; }
  .ocean::after {
    background: linear-gradient(to bottom, transparent 25%, color-mix(in srgb, var(--shade) 22%, transparent) 46%, color-mix(in srgb, var(--shade) 86%, transparent) 73%, var(--glass) 100%);
  }
  .station { display: flex; align-items: end; padding: calc(var(--header-h) + var(--safe-top) + 10px) var(--gutter) calc(var(--bottom-space) + var(--safe-bottom) + 9px); }
  .station .station-copy { width: min(100%, 635px); max-width: none; margin-inline: auto; }
  .station-label { margin-bottom: 7px; }
  .station-title, .station-surface .station-title, .station-products .station-title, .station-pipe .station-title, .station-intake .station-title {
    width: 100%; font-size: clamp(2rem, 5.7vw, 3.45rem);
  }
  .station-surface .station-title { font-size: clamp(2.55rem, 7.5vw, 4.4rem); }
  .station-body { margin-top: 11px; }
  .surface-actions { margin-top: 17px; gap: 8px; }
  .surface-actions .button { padding-inline: 14px; }
  .measurements { margin-top: 17px; }
  .measurements > div { padding-block: 8px; }
  .pointer-hint { display: none; }
  .touch-hint { display: inline; }
}
@media (max-width: 540px) {
  .site-header { gap: 7px; }
  .brand { gap: 4px; }
  .brand-mark { width: 25px; height: 25px; }
  .brand-name { align-items: start; display: grid; gap: 1px; }
  .brand-name > span { font-size: 1.35rem; }
  .instrument-readout { display: grid; justify-content: center; line-height: 1.36; }
  .instrument-readout > span:first-child { display: none; }
  .instrument-readout > span + span { margin: 0; padding: 0; border: 0; }
  .instrument-readout b[data-reading] { min-width: auto; text-align: left; }
  .compact-tools { gap: 6px; }
  .menu-open { padding-inline: 8px; }
  .art-surface { --field-size: 60%; --image-x: 71%; }
  .art-light { --field-size: 53%; --image-x: 15%; }
  .art-products { --field-size: 44%; --image-x: 85%; }
  .art-pipe { --field-size: 45%; --image-x: 72%; }
  .art-intake { --field-size: 45%; --image-x: 89%; }
  .station-label::before { width: 20px; }
  .products li { padding-block: 5px; }
  .products h3 { font-size: 1rem; }
  .process li { grid-template-columns: 1.38rem 4.3rem minmax(0, 1fr); gap: 6px; padding-block: 6px; }
  .intake-intro { gap: 10px; }
  .intake-intro .button { padding-inline: 9px; }
  .reservation { margin-top: 12px; padding-top: 10px; }
  .booking-intro { display: block; margin-bottom: 7px; }
  .booking-fields { gap: 7px; }
  .station-intake address { margin-top: 10px; }
}
@media (max-width: 900px) and (max-height: 720px), (orientation: portrait) and (max-height: 720px), (min-width: 901px) and (orientation: landscape) and (max-height: 550px) {
  .station { align-items: stretch; }
  .station-copy { overflow: auto; overscroll-behavior: contain; margin-block: auto 0; max-height: 100%; padding: 4px; margin-left: -4px; touch-action: pan-y; }
  .station-light .station-copy { margin-left: 0; }
  .station { touch-action: auto; }
  .station-label { margin-bottom: 5px; }
  .station-intake .station-body { margin-top: 6px; }
}
@media (pointer: coarse) {
  .pointer-hint { display: none; }
  .touch-hint { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .marine-snow, .flashlight, .light-hint, .torch-cursor { display: none !important; }
  .sunbeams { animation: none; }
  .deep-image { filter: none; }
  body.lights-out .art-intake .deep-image { filter: brightness(.39); }
  body.lights-out :is(.bio-organism, .bio-point) { animation: none; opacity: .88; }
  .station.is-leaving { transition: opacity .16s ease; }
  .station.is-entering :is(.station-label, .station-title, .station-body) { animation: appear .22s ease both; }
  .dive-menu[open] :is(.menu-inner, .menu-water), .dive-board[open] { animation: appear .17s ease both; }
  .menu-water::after { animation: none; }
}

