* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --deep: #071e25; --night: #04161d; --panel: #0a2931;
  --ice: #f0f3e9; --muted: #b7cdce; --glass: #8de3cc; --brass: #e6bd7a;
  --edge: #375358; --body: "Segoe UI", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
html { scroll-padding-top: 1rem; }
body { margin: 0; color: var(--ice); background: var(--deep); font: 1rem/1.6 var(--body); }
a { color: inherit; text-underline-offset: .28em; }
button, summary { font: inherit; cursor: pointer; }
button { color: inherit; }
a, button, summary, input { -webkit-tap-highlight-color: #8de3cc45; }
:focus-visible { outline: 3px solid #ffdb87; outline-offset: 4px; }
main:focus { outline: none; }
img { display: block; max-width: 100%; }
.frame { width: min(76rem, calc(100% - clamp(2.2rem, 9vw, 10rem))); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 9; inset: .5rem auto auto .5rem; padding: .75rem; background: var(--ice); color: var(--deep); }
[hidden] { display: none !important; }
.mast { position: relative; z-index: 4; background: #071d24; border-bottom: 1px solid #a7c3ac3d; }
.mast-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: bold 1.4rem/1 var(--display); text-decoration: none; }
.brand img { border-radius: .65rem; }
.desktop-nav, .foot nav { display: flex; flex-wrap: wrap; column-gap: clamp(1.2rem,3vw,2.7rem); }
.mast nav a, .foot nav a, .nav-release { display: inline-flex; align-items: center; min-height: 44px; color: #d4e2dd; font-size: .925rem; text-decoration: none; }
.mast a:hover, .foot a:hover, .chart-link:hover { color: var(--brass); }
.nav-release { padding-inline: 1.1rem; border: 1px solid #987e52; border-radius: .35rem; color: #f3cf99; }
.mobile-menu { display: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--edge); }
.hero-water, .trench-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-water img, .trench-art { width: 100%; height: 100%; object-fit: cover; }
.hero-water img { object-position: 50% 48%; }
.hero::before, .trench::before { content:""; position: absolute; inset: 0; z-index: -2; }
.hero::before { background: linear-gradient(90deg,#051a24f2 0%,#092930d9 27%,#06293473 58%,#07373b14 82%),linear-gradient(0deg,#041b20ed 0%,transparent 32%,#09313524); }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 3%; align-items: center; min-height: clamp(510px,43vw,680px); padding-block: clamp(2.3rem,5vw,5rem); }
.overline, .surface-line, .viewport figcaption, .map-label, .entries summary small { font-family: var(--body); font-size: .78rem; line-height: 1.35; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.overline { color: var(--brass); margin: 0 0 .9rem; }
.rule { display: inline-block; vertical-align: middle; width: 2.35rem; height: 1px; background: var(--brass); margin-right: .55rem; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--display); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(2.85rem,5.15vw,5rem); line-height: .99; letter-spacing: -.046em; }
h1 em { display: block; color: #9fe5d3; }
.intro { max-width: 40ch; color: #dfebe6; font-size: clamp(1rem,1.45vw,1.19rem); line-height: 1.58; margin: 1.45rem 0 1.6rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.5rem; }
.store, .ping { display: inline-flex; align-items: center; justify-content: center; border-radius: .42rem; color: #20271e; border: 1px solid #ffdf9c; background: linear-gradient(158deg,#ffde9c,#e4b974 76%,#dcad67); box-shadow: inset 0 1px #fff4c3,0 3px 0 #785c37; font-weight: 700; text-decoration: none; transition: transform .16s; }
.store { gap: .75rem; padding: .54rem 1.1rem .65rem; font-size: 1.17rem; line-height: 1.1; }
.store small { display: block; margin-bottom: .12rem; font-size: .78rem; font-weight: 550; }
.play-mark { display: block; width: 0; height: 0; border: solid transparent; border-width: .68rem 0 .68rem 1rem; border-left-color: #24392f; }
.store:hover,.ping:hover { transform: translateY(-2px); }
.store:active,.ping:active { transform: translateY(1px); }
.chart-link { display: inline-flex; min-height: 44px; align-items: center; font-size: .96rem; font-weight: 650; text-decoration-color: #8eb8a9; }
.viewport { position: relative; width: min(100%, 28.5rem); margin-inline: auto; padding: .85rem; }
.rim { position:relative; aspect-ratio:1; }
.rim img { width:100%; height:100%; object-fit:contain; mask-image:radial-gradient(ellipse 50% 50%, black 92%, transparent 100%); }
.viewport figcaption { position:relative; width:fit-content; margin:.7rem auto 0; color:#f8e9c9; text-shadow:0 1px 3px #062226; font-size:.76rem; letter-spacing:.16em; }
.surface-line { display:flex; justify-content:space-between; align-items:center; gap:1rem; min-height:3.3rem; border-top:1px solid #adc8b243; color:#d3e8dd; }
.surface-line a, .motion-toggle { min-height:44px; display:inline-flex; align-items:center; gap:.55rem; }
.surface-line a { text-decoration:none; }
.surface-line a span { color:var(--brass); font-size:1.25rem; }
.motion-toggle { background:none; border:0; font-size:.82rem; font-weight:500; color:#d3e8dd; padding:.25rem; }
.light-rays { position:absolute; inset:-15% 0; pointer-events:none; z-index:-1; opacity:.33; background:linear-gradient(116deg,transparent 42%,#a6f4d318 43%,transparent 46%,#d2ffd831 50%,transparent 52%,#b4ffde18 57%,transparent 62%); }
.bubbles { position:absolute; inset:0; z-index:-1; pointer-events:none; }
.bubbles i { position:absolute; bottom:15%; left:48%; width:8px; height:8px; border:1px solid #c2f9ef9c; border-radius:50%; }
.bubbles i:nth-child(2) { left:52%; width:5px; height:5px; animation-delay:-3s; }
.bubbles i:nth-child(3) { left:91%; animation-delay:-5s; }
.section { padding-block:clamp(3.4rem,6.3vw,6.2rem); }
.section-heading { display:flex; justify-content:space-between; align-items:end; gap:2rem; margin:0 0 1.8rem; }
h2 { font-size:clamp(2.6rem,4.5vw,4.35rem); line-height:1; letter-spacing:-.048em; }
.section-heading > p { max-width:34ch; color:var(--muted); line-height:1.5; }
.section-heading .overline { margin-bottom:.65rem; }
.chart { display:grid; grid-template-columns:1.8fr 1fr; padding:0; margin:0; min-width:0; border:1px solid #777958; border-radius:.6rem; overflow:hidden; background:var(--panel); }
.map { position:relative; min-height:23rem; overflow:hidden; isolation:isolate; background:#164849; }
.chart-paint { position:absolute; inset:0; z-index:-1; }
.chart-paint img { width:100%; height:100%; object-fit:cover; object-position:50% 48%; }
.map::before { content:""; position:absolute; inset:0; background:linear-gradient(108deg,#07353659,#042d3824 57%,#062d374d),linear-gradient(0deg,#032c3380,transparent 38%); }
.chart-grid { position:absolute; inset:0; opacity:.62; background:url(assets/hex-grid.svg) center / 108px 62.36px; }
.map-label { position:absolute; left:1.1rem; top:1.1rem; color:#fff2d7; background:#092a30f0; border-left:2px solid var(--brass); padding:.5rem .8rem; font-size:.79rem; letter-spacing:.1em; }
.map-label small { display:block; font-size:.76rem; font-weight:400; letter-spacing:.015em; text-transform:none; color:#d7e5dc; }
.petrel { position:absolute; left:49%; top:50%; width:clamp(42px,5vw,74px); height:auto; filter:drop-shadow(0 3px 3px #123); }
.pin { position:absolute; width:3.3rem; height:3.6rem; transform:translate(-50%,-50%); cursor:pointer; }
.kelp-pin { left:27%; top:52%; }.shell-pin { left:52%; top:74%; }.jelly-pin { left:75%; top:36%; }
.pin input { appearance:none; cursor:pointer; position:absolute; inset:0; margin:0; width:100%; height:100%; border:0; border-radius:5px; }
.pin span { display:grid; place-items:center; pointer-events:none; position:absolute; inset:0; color:#fff5d4; background:#102e37; clip-path:polygon(50% 0,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%); font:bold 1.25rem var(--display); }
.pin span::after { content:""; position:absolute; inset:2px; background:#caa870; clip-path:polygon(50% 0,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%,50% 0,50% 3%,7% 27%,7% 73%,50% 97%,93% 73%,93% 27%,50% 3%); }
.pin img { width:72%; height:72%; object-fit:contain; }
.pin input:checked + span { background:#f6cf81; color:#163438; }
.pin input:checked + span::after { background:#444a3a; }
.pin input:focus-visible { outline:3px solid var(--ice); outline-offset:4px; }
.observations { border-left:1px solid #728068; padding:clamp(1.2rem,2.8vw,2.7rem); display:grid; align-items:center; }
.specimen { display:none; }
.kelp-record, .chart:has(.shell-pin input:checked) .shell-record,.chart:has(.jelly-pin input:checked) .jelly-record { display:block; }
.chart:has(.shell-pin input:checked,.jelly-pin input:checked) .kelp-record { display:none; }
.specimen img { width:100%; height:clamp(95px,10vw,140px); object-fit:cover; border-radius:.25rem; margin-bottom:1rem; }
.specimen .overline { margin-bottom:.35rem; }
h3 { font-size:clamp(1.45rem,2.1vw,2rem); line-height:1.14; }
.specimen p:last-child,.game-grid p,.entries details p,.download p:last-child { margin-top:.65rem; color:var(--muted); }
.games { background:#0b2b32; border-block:1px solid #38575b; }
.game-grid { display:grid; gap:clamp(1rem,2vw,2rem); grid-template-columns:repeat(4,minmax(0,1fr)); }
.game-grid article { border-top:2px solid #9d8b5c; }
.game-grid img { width:100%; height:auto; aspect-ratio:1.85; object-fit:cover; }
.game-grid article > div { padding-top:1.1rem; }
.game-grid p { line-height:1.48; }
.trench { isolation:isolate; position:relative; overflow:hidden; background:#04171e; border-bottom:1px solid var(--edge); }
.trench-art { object-position:50% 53%; }
.trench::before { background:linear-gradient(90deg,#041721f5 4%,#051b24e8 30%,#092c3094 60%,#03242b47),linear-gradient(0deg,#031921dd,transparent 55%); }
.trench-layout { display:grid; align-items:center; grid-template-columns:1.2fr 1fr; gap:2rem; }
.trench-copy > p:not(.overline) { max-width:42ch; margin-top:1.1rem; }
.trench-copy .quiet { color:#b7d2cc; font-size:.9rem; }
.ping { margin-top:1.4rem; padding:.55rem 1.05rem; min-height:44px; }
.echo-message { display:block; margin-top:.5rem; color:#c1ffe8; }
.echo-message:empty { display:none; }
.instrument { position:relative; display:grid; place-items:center; height:15rem; }
.instrument img { width:min(11rem,60%); height:auto; z-index:1; }
.echo-ring { position:absolute; width:min(11rem,60%); aspect-ratio:1; border:2px solid var(--glass); border-radius:50%; opacity:0; }
.log { display:grid; grid-template-columns:.9fr 1.4fr; align-items:center; gap:clamp(2rem,7vw,7rem); }
.log-intro img { width:72px; height:65px; object-fit:contain; margin-bottom:1rem; }
.entries details { border-top:1px solid var(--edge); }
.entries details:last-child { border-bottom:1px solid var(--edge); }
.entries summary, .mobile-menu summary { list-style:none; }
summary::-webkit-details-marker { display:none; }
.entries summary { position:relative; padding:1.05rem 2.25rem 1.1rem 0; }
.entries summary::after { content:"+"; position:absolute; right:.4rem; top:50%; transform:translateY(-50%); font-size:1.5rem; color:var(--brass); }
.entries details[open] summary::after { content:"−"; }
.entries summary small { display:block; color:var(--glass); margin-bottom:.3rem; }
.entries summary strong { font:400 clamp(1.2rem,1.8vw,1.65rem) var(--display); }
.entries details p { margin:0 0 1.2rem; max-width:58ch; }
.download { background:#12363b; border-block:1px solid #587075; padding-block:3.4rem; }
.release-row { display:flex; align-items:center; gap:1.5rem; }
.release-row img { border-radius:20%; }
.release-row h2 { font-size:clamp(2rem,4vw,3.6rem); }
.release-row .overline { margin-bottom:.55rem; }
.foot { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-block:1.4rem; }
.foot .brand { font-size:1.2rem; }

@keyframes drift { from { transform:translate(0,0) rotate(-2deg); } to { transform:translate(.6rem,-.28rem) rotate(2deg); } }
@keyframes shafts { from { transform:translateX(-2%); } to { transform:translateX(3%); } }
@keyframes rise { 0% { transform:translateY(0); opacity:0; } 15% { opacity:.85; } 100% { transform:translate(7px,-95px); opacity:0; } }
@keyframes echo { from { transform:scale(.65); opacity:.85; } to { transform:scale(1.85); opacity:0; } }
@keyframes arrive { from { opacity:.82; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes depth { from { transform:scale(1.035) translateY(-1%); } to { transform:scale(1.035) translateY(1%); } }
@keyframes treasure { 50% { filter:brightness(1.1); } }
@media (prefers-reduced-motion:no-preference) {
  .motion-ready .petrel { animation:drift 5s ease-in-out alternate infinite paused; }
  .motion-ready .light-rays { animation:shafts 11s ease-in-out alternate infinite paused; }
  .motion-ready .bubbles i { animation:rise 8s ease-out infinite paused; }
  .motion-ready .bubbles i:nth-child(2) { animation-delay:-3s; }
  .motion-ready .bubbles i:nth-child(3) { animation-delay:-5s; }
  .motion-ready .in-view .petrel,.motion-ready .in-view .light-rays,.motion-ready .in-view .bubbles i { animation-play-state:running; }
  .motion-ready .pinging .echo-ring { animation:echo 1.1s ease-out 2; }
  .motion-ready .revealing { animation:arrive .5s ease-out; }
  .motion-ready .game-grid article:last-child:hover img { animation:treasure 1.1s ease-out; }
  @supports (animation-timeline:view()) {
    .motion-ready .hero-water { animation:depth linear both; animation-timeline:view(); }
  }
}
@media (max-width:56rem) {
  .desktop-nav,.nav-release { display:none; }
  .mobile-menu { display:block; }
  .mobile-menu summary { padding:.55rem .9rem; border:1px solid var(--edge); border-radius:.35rem; min-height:44px; }
  .mobile-menu nav { display:grid; position:absolute; top:100%; right:0; width:min(22rem,100%); padding:.5rem 1.5rem; background:var(--deep); border:1px solid var(--edge); }
  .game-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem 1.3rem; }
  .chart { grid-template-columns:1.4fr 1fr; }
}
@media (max-width:40.625rem) {
  .mast-row { min-height:62px; }.brand img { width:38px; height:38px; }
  .hero-layout { grid-template-columns:1fr; gap:1.6rem; min-height:0; padding:2.15rem 0 1.5rem; }
  .hero::before { background:linear-gradient(180deg,#041c25ed,#072c34b0 48%,#0b373e57 70%,#041b20ed); }
  .viewport { width:min(79%,19rem); }.hero-copy .overline { margin-bottom:.85rem; }
  h1 { font-size:clamp(2.45rem,9.7vw,3.9rem); }
  h1 em { margin-top:.06em; }
  .intro { margin:1rem 0 1.05rem; line-height:1.5; }
  .hero-actions { gap:1.1rem; }.store { font-size:1.06rem; }
  .section-heading { display:block; }.section-heading > p { margin-top:.85rem; max-width:45ch; }
  .chart { grid-template-columns:1fr; }.map { min-height:16rem; }
  .observations { border-left:0; border-top:1px solid #728068; }
  .specimen img { float:right; width:27%; height:86px; margin:0 0 .5rem .85rem; }
  .game-grid { gap:1.5rem 1rem; }
  .trench-layout { grid-template-columns:minmax(0,1fr) 5rem; gap:.7rem; }
  .instrument { height:6rem; }.instrument img,.echo-ring { width:100%; }
  .log { grid-template-columns:1fr; gap:1.4rem; }.log-intro img { float:right; margin:0; }
  .release-row { align-items:flex-start; }.release-row img { width:55px; height:55px; }
  .foot { align-items:flex-start; flex-direction:column; gap:.5rem; }
}
@media (max-width:22rem) {
  .hero-copy .rule { width:.9rem; }
  .hero-copy .overline { letter-spacing:.11em; }
  .hero-actions { gap:.6rem .7rem; }
  .hero-actions .store { padding-inline:.7rem; gap:.5rem; }
  .chart-link { font-size:.9rem; }
}
@media (max-width:27rem) {
  .game-grid { grid-template-columns:1fr; }.game-grid img { aspect-ratio:2.4; }
  .trench-layout { grid-template-columns:1fr; }.instrument { grid-row:1; justify-self:start; width:5rem; height:5rem; }
}
@media (orientation:landscape) and (max-height:31rem) and (min-width:41rem) {
  .mast-row { min-height:52px; }
  .brand img { width:36px; height:36px; }
  .hero-layout { grid-template-columns:1.45fr 1fr; min-height:0; padding-block:.9rem; }
  .viewport { width:min(100%,13rem); padding:.3rem; }
  h1 { font-size:clamp(2rem,3.5vw,3.1rem); line-height:1; }
  .hero-copy .overline { margin-bottom:.45rem; }
  .intro { margin:.55rem 0 .7rem; max-width:47ch; }
  .surface-line { min-height:44px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .motion-toggle { display:none; }
}
