/* Deeploom Ltd — "A dive into the deep". No build step. Fonts self-hosted (OFL). */

@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/Baloo2-Bold.woff") format("woff");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("assets/fonts/AlegreyaSans-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("assets/fonts/AlegreyaSans-ExtraBold.woff") format("woff");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  /* Brand (logo) */
  --navy: #0A2540;
  --black: #0B0F14;
  --white: #FFFFFF;
  /* Extended deep-sea palette (site only) */
  --foam: #F4F7FA;
  --sky: #D6EEF6;
  --shallow: #7FCBE2;
  --sunlit: #3C9CC4;
  --teal: #1E7F8E;
  --cyan: #5CE1E6;
  --glow: #2D7FF9;
  --abyss: #04070B;

  --text: var(--foam);
  --text-soft: rgba(244, 247, 250, 0.84);
  --line: rgba(244, 247, 250, 0.16);

  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: only light; /* same look in dark and light mode; no forced dark */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--abyss);
  scrollbar-color: var(--teal) var(--abyss);
  scrollbar-width: thin;
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--abyss);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 50;
  padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--navy); color: var(--foam); font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Ambient canvas (marine snow, bubbles, bioluminescence) ---------- */
.sea-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 3; pointer-events: none;
}

/* ---------- Header ---------- */
/* Fixed "dive computer" bar: dark glass pill, readable on the pale sky and in the abyss alike */
.site-header {
  position: fixed; z-index: 40; top: clamp(.5rem, 1.5vw, 1rem); right: clamp(.5rem, 2vw, 1.5rem);
  padding: 0;
}
.site-header ul {
  display: flex; align-items: center; gap: .15rem; margin: 0; padding: .3rem; list-style: none;
  border-radius: 999px;
  background: rgba(6, 22, 38, .78);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(244,247,250,.16), 0 10px 30px -12px rgba(0,0,0,.55);
}
.site-header a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .95rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 1.1;
  color: var(--foam); text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header a:hover { background: rgba(244,247,250,.12); }
.site-header a[aria-current="true"] {
  color: var(--cyan); background: rgba(92,225,230,.14);
  box-shadow: inset 0 0 0 1px rgba(92,225,230,.45), 0 0 18px -4px rgba(92,225,230,.55);
}
.nav-home { padding: .4rem .7rem !important; }
.nav-home img { width: 40px; height: auto; }
@media (max-width: 600px) {
  .site-header { left: .5rem; right: .5rem; display: flex; justify-content: center; }
  .site-header a { min-height: 36px; padding: .35rem .6rem; font-size: .88rem; }
  .nav-home { padding: .35rem .5rem !important; }
  .nav-home img { width: 32px; }
}
/* anchor jumps land below the fixed bar */
section[id] { scroll-margin-top: 4.5rem; }

/* ---------- Depth gauge ---------- */
.gauge {
  position: fixed; z-index: 30; pointer-events: none;
  left: clamp(.75rem, 1.6vw, 1.75rem); top: 50%; translate: 0 -50%;
  display: flex; align-items: stretch; gap: .75rem;
  height: 52vh;
  --p: 0;
}
.gauge__track {
  position: relative; width: 6px; border-radius: 6px;
  background:
    repeating-linear-gradient(180deg, rgba(244,247,250,.55) 0 1px, transparent 1px 10%),
    rgba(4, 20, 35, .28);
  box-shadow: 0 0 0 1px rgba(244,247,250,.18);
}
.gauge__marker {
  position: absolute; left: 50%; top: calc(var(--p) * 100%);
  width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%;
  border: 2px solid var(--foam);
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, rgba(92,225,230,.6) 40%, rgba(45,127,249,.35) 100%);
  box-shadow: 0 0 14px rgba(92,225,230,.8);
}
.gauge__readout {
  align-self: flex-start;
  margin-top: calc(var(--p) * (52vh - 2.6rem));
  display: grid; gap: .1rem;
  padding: .35rem .65rem; border-radius: .7rem;
  background: rgba(4, 20, 35, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(244,247,250,.14);
  white-space: nowrap;
}
.gauge__depth { font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--foam); }
.gauge__zone { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,247,250,.8); }

@media (max-width: 1199px) {
  .gauge { top: auto; bottom: .75rem; left: .75rem; translate: none; height: auto; }
  .gauge__track { display: none; }
  .gauge__readout { margin-top: 0; padding: .3rem .6rem; }
  .gauge__depth { font-size: .95rem; }
  .gauge__zone { font-size: .62rem; }
}
@media (max-width: 600px) {
  .gauge { bottom: .6rem; left: .6rem; }
  .gauge__zone { display: none; }
  .gauge__readout { padding: .2rem .55rem; border-radius: 999px; }
  .gauge__depth { font-size: .85rem; }
  /* on phones the pill only shows while you're moving, so it never sits on text */
  .js .gauge { opacity: 0; transition: opacity .5s ease .4s; }
  .js .gauge.is-active { opacity: 1; transition-delay: 0s; transition-duration: .2s; }
}

/* ================= HERO / SURFACE ================= */
.hero {
  --water: 42%;
  --lw: min(84vw, 38rem, calc((42svh - 4.5rem) / 0.425)); /* also fits short screens: head stays below the nav */
  position: relative;
  height: 100vh; height: 100svh; min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, var(--foam) 0%, var(--sky) calc(var(--water) - 2%), var(--shallow) var(--water), var(--sunlit) 72%, #1D6B92 100%);
}
.hero__sky { position: absolute; inset: 0 0 calc(100% - var(--water)) 0; z-index: 0; }
.hero__sun {
  position: absolute; top: -30%; right: 8%; width: 60vmin; height: 60vmin; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0, rgba(255,255,255,.5) 25%, rgba(255,255,255,0) 65%);
}
.hero__rays { position: absolute; inset: var(--water) 0 0 0; z-index: 2; overflow: hidden; pointer-events: none; mix-blend-mode: soft-light; }
.hero__rays span {
  position: absolute; top: -5%; width: 12vw; min-width: 70px; height: 120%;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0) 85%);
  transform-origin: 50% 0; filter: blur(10px); opacity: .55;
  /* feather the sides so a beam never shows a hard vertical edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
}
.hero__rays span:nth-child(1) { left: 6%;  rotate: 14deg; --sw: 3deg; animation-delay: -2s; }
.hero__rays span:nth-child(2) { left: 26%; rotate: 8deg;  width: 6vw; --sw: -2deg; animation-delay: -5s; }
.hero__rays span:nth-child(3) { left: 48%; rotate: 2deg;  width: 16vw; --sw: 2deg; }
.hero__rays span:nth-child(4) { left: 68%; rotate: -6deg; width: 7vw; --sw: -3deg; animation-delay: -7s; }
.hero__rays span:nth-child(5) { left: 86%; rotate: -12deg; --sw: 2deg; animation-delay: -3s; }

.hero__float {
  position: absolute; z-index: 1; left: 50%;
  width: var(--lw);
  /* eye line sits just above the waterline (eyes at ~69% of lockup height) */
  top: calc(var(--water) - var(--lw) * 0.6155 * 0.69);
  translate: -50% 0;
}
.lockup { width: 100%; height: auto; color: var(--navy); overflow: visible; }

.hero__water { position: absolute; inset: var(--water) 0 0 0; z-index: 2; pointer-events: none; }
.hero__water::before { /* translucent water body in front of the submerged logo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(127,203,226,.62) 0, rgba(80,170,205,.45) 25%, rgba(40,120,165,.15) 65%, rgba(29,107,146,0) 100%);
}
.wave { position: absolute; left: 0; bottom: 100%; width: 200%; max-width: none; height: clamp(14px, 2.2vw, 26px); } /* 2 seamless periods; slides -50% */
.wave--back  { fill: rgba(255,255,255,.28); bottom: calc(100% + 2px); height: clamp(10px, 1.4vw, 16px); }
.wave--front { fill: rgba(127,203,226,.62); }
.caustics { position: absolute; inset: 0; overflow: hidden; opacity: .32; mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.6) 40%, transparent 85%);
          mask-image: linear-gradient(180deg, #000 0, rgba(0,0,0,.6) 40%, transparent 85%); }
.caustics::before, .caustics::after {
  content: ""; position: absolute; inset: -600px; /* fixed-px overscan: covers the largest drift (520px) at any width */
  background: url("assets/art/caustics.webp") 0 0 / 380px 380px repeat;
  filter: blur(1px);
}
.caustics::after { background-size: 520px 520px; opacity: .6; }
.caustics--faint { opacity: .14;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 50%, transparent 85%);
          mask-image: linear-gradient(180deg, transparent 0, #000 30%, #000 50%, transparent 85%); }
.stats dd { white-space: nowrap; }
.stats div:last-child dd { font-size: clamp(1.8rem, 1rem + 3vw, 3.4rem); line-height: 1.15; }

.hero__copy {
  position: absolute; z-index: 4; left: 50%; translate: -50% 0;
  top: calc(var(--water) + var(--lw) * 0.6155 * 0.31 + clamp(1.25rem, 4vh, 2.5rem));
  width: min(92vw, 40rem); text-align: center;
}
.tagline {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.45rem, 1rem + 2.4vw, 2.6rem); line-height: 1.12;
  color: var(--navy);
  text-wrap: balance;
}
.kicker { margin: .6rem 0 0; font-size: .85rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); opacity: .85; }

.dive {
  position: absolute; z-index: 5; left: 50%; bottom: clamp(1rem, 4vh, 2rem); translate: -50% 0;
  display: grid; justify-items: center; gap: .4rem;
  min-width: 44px; padding: .25rem .5rem;
  color: var(--foam); text-decoration: none;
  font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: .95rem;
}
.dive__line { position: relative; width: 2px; height: 46px; background: rgba(244,247,250,.35); border-radius: 2px; overflow: hidden; }
.dive__line i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--foam); box-shadow: 0 0 8px #fff; }
.dive:hover .dive__label { text-shadow: 0 0 12px rgba(255,255,255,.9); }

/* ================= THE DEPTHS ================= */
.depths {
  position: relative;
  background: linear-gradient(180deg,
    #1D6B92 0%, #15587A 9%, #0F4766 20%, #0B3654 33%, var(--navy) 48%,
    #08192B 64%, #060F19 80%, var(--abyss) 100%);
  overflow: clip;
}

.wrap { position: relative; z-index: 4; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1200px) { .wrap { padding-left: calc(var(--gutter) + 5rem); padding-right: calc(var(--gutter) + 2rem); } }

.zone { position: relative; padding: clamp(5rem, 12vw, 9rem) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  margin: 0 0 1rem;
  font-size: .85rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow__depth {
  padding: .2rem .6rem; border-radius: 999px;
  border: 1px solid rgba(92,225,230,.45); background: rgba(92,225,230,.08);
  font-family: var(--display); letter-spacing: .04em; font-variant-numeric: tabular-nums;
}

.display {
  margin: 0 0 1.25rem;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.6rem, 1.2rem + 6vw, 5.6rem);
  line-height: .98; letter-spacing: -0.015em;
  text-wrap: balance;
}
.display--xl { font-size: clamp(3.6rem, 1rem + 12vw, 10rem); line-height: .9; margin-bottom: 1rem; }
.display--sm { font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); margin-bottom: .5rem; }
.glow-text { color: var(--cyan); text-shadow: 0 0 28px rgba(92,225,230,.45); }

p { margin: 0 0 1rem; color: var(--text-soft); }
.lede { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.45; color: var(--text); }
.lede--center { margin-inline: auto; max-width: 36ch; }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .about__intro { max-width: 52rem; }
}
.about__intro p:not(.eyebrow):not(.lede) { max-width: 46ch; }

.crew { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.crew__card {
  position: relative; padding: 1.5rem 1.5rem 1.4rem 5.2rem; border-radius: 1.5rem;
  background: linear-gradient(140deg, rgba(244,247,250,.10), rgba(244,247,250,.03));
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.crew__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(92,225,230,.5), 0 0 40px -10px rgba(92,225,230,.45); }
.crew__icon { position: absolute; left: 1.4rem; top: 1.5rem; width: 2.6rem; height: 2.6rem; color: var(--cyan); }
.crew__card h3 { margin: 0 0 .3rem; font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.crew__card p { margin: 0; font-size: 1rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; }
.stats div { padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.stats dt { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.stats dd { margin: .1rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 1.2rem + 4vw, 4.2rem); line-height: 1; color: var(--foam); text-shadow: 0 0 30px rgba(92,225,230,.35); }
.stats small { font-size: .55em; color: var(--cyan); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; } .stats div:last-child { grid-column: 1 / -1; } }

/* ---------- Sea life silhouettes ---------- */
.life { position: absolute; z-index: 1; pointer-events: none; will-change: transform; }
.life--whale { width: clamp(260px, 42vw, 620px); height: auto; aspect-ratio: 400 / 130; right: -6%; top: 6%; fill: rgba(3, 25, 42, .35); filter: blur(1.5px); }
.life--school { left: 2%; top: 58%; width: clamp(140px, 20vw, 260px); height: 120px; color: rgba(3, 25, 42, .45); }
.life--school svg { position: absolute; width: 34px; height: 16px; fill: currentColor; }
.life--school svg:nth-child(1) { left: 0;   top: 30px; }
.life--school svg:nth-child(2) { left: 40px; top: 10px; width: 28px; }
.life--school svg:nth-child(3) { left: 52px; top: 52px; }
.life--school svg:nth-child(4) { left: 92px; top: 28px; width: 30px; }
.life--school svg:nth-child(5) { left: 120px; top: 64px; width: 24px; }
.life--school svg:nth-child(6) { left: 140px; top: 6px; width: 26px; }
.life--school svg:nth-child(7) { left: 170px; top: 40px; width: 30px; }
.life--manta { width: clamp(140px, 18vw, 260px); aspect-ratio: 140 / 84; height: auto; left: 4%; top: 48%; fill: rgba(2, 12, 22, .5); filter: blur(1px); }
.life--jelly { width: clamp(40px, 5vw, 64px); aspect-ratio: 60 / 96; height: auto; color: rgba(92,225,230,.55); fill: rgba(92,225,230,.18); filter: drop-shadow(0 0 14px rgba(92,225,230,.55)); }
.j1 { left: 6%; top: 14%; }
.j2 { right: 8%; top: 32%; width: clamp(30px, 3.5vw, 46px); color: rgba(45,127,249,.6); fill: rgba(45,127,249,.18); filter: drop-shadow(0 0 14px rgba(45,127,249,.6)); }
.j3 { left: 18%; top: 56%; width: clamp(24px, 2.6vw, 36px); }

/* ---------- Tentacles reaching in at section breaks (logo tentacle, reused) ---------- */
.reach { position: relative; z-index: 2; height: 0; pointer-events: none; }
.reach svg {
  position: absolute; top: calc(-1 * clamp(120px, 17vw, 250px));
  width: clamp(110px, 15vw, 220px); height: auto; aspect-ratio: 260 / 320;
  transform-origin: 50% 100%;
}
/* base hidden past the page edge, curl reaching in */
.reach--right svg { right: calc(-1 * clamp(50px, 6vw, 95px)); fill: var(--navy); --r: -78deg; transform: rotate(var(--r));
  filter: drop-shadow(0 0 1.5px rgba(127,203,226,.55)) drop-shadow(0 10px 30px rgba(0,0,0,.35)); }
.reach--left svg  { left: calc(-1 * clamp(50px, 6vw, 95px)); fill: var(--black); --r: 78deg; transform: rotate(var(--r)) scaleX(-1);
  filter: drop-shadow(0 0 1.5px rgba(92,225,230,.7)) drop-shadow(0 0 22px rgba(45,127,249,.35)); }

/* ---------- Obsidra: the ruin ---------- */
.zone--ruin { padding-top: clamp(6rem, 14vw, 11rem); }
.ruin { position: absolute; inset: 0 0 auto 0; height: min(110vh, 70rem); z-index: 0; pointer-events: none; overflow: hidden;
  /* blend into the surrounding water: fade in from above, fade out below */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 58%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 58%, transparent 100%); }
.ruin__img {
  position: absolute; left: 0; width: 100%; top: -90px; height: calc(100% + 180px); /* room for the parallax */
  object-fit: cover; object-position: 50% 38%;
  filter: saturate(.85) brightness(.82);
  will-change: transform;
}
.ruin__shade { /* darken + vignette into the deep-water navy at the sides and top */
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 85% at 50% 45%, transparent 35%, rgba(10,37,64,.85) 100%),
    linear-gradient(180deg, rgba(10,37,64,.65), rgba(8,30,52,.30) 40%, rgba(10,37,64,.70));
}
.emblem {
  width: clamp(130px, 18vw, 200px); height: auto; margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 32px rgba(255, 170, 70, .45)) drop-shadow(0 0 70px rgba(92,225,230,.25));
}
.game-head { display: grid; justify-items: center; text-align: center; }
.game-head .eyebrow { justify-content: center; }
.game-head .display--xl { text-shadow: 0 6px 50px rgba(0,0,0,.5), 0 0 60px rgba(92,225,230,.25); }

/* Platform badges: store glyphs (Simple Icons) + text; links go on these once the store pages exist */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.platform {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .8rem 1.5rem .8rem 1.1rem; border-radius: 999px;
  background: rgba(4, 16, 28, .6); box-shadow: inset 0 0 0 1.5px rgba(92,225,230,.4);
  font-size: 1.15rem; color: var(--text-soft);
}
.platform svg { width: 1.9rem; height: 1.9rem; fill: currentColor; color: var(--cyan); flex: none; }
.platform b { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--foam); margin-right: .2rem; }

/* Device showcase, mobile first: the phone is the hero in front, the PC monitor smaller behind it */
.showcase {
  position: relative; max-width: 56rem; margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding-bottom: clamp(1rem, 3vw, 2rem);
}
.device { margin: 0; }
.device__screen { position: relative; overflow: hidden; background: #020a12; }
.device__screen img, .device__screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.device--pc .device__screen {
  aspect-ratio: 16 / 9; border-radius: 14px;
  border: clamp(6px, 1vw, 12px) solid #0d1824;
  box-shadow: 0 0 0 1px rgba(244,247,250,.14), 0 0 60px -10px rgba(92,225,230,.35), 0 40px 80px -30px rgba(0,0,0,.9);
}
.device__stand { position: relative; height: clamp(26px, 5vw, 56px); }
.device__stand::before { content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 12%; height: 80%;
  background: linear-gradient(180deg, #0d1824, #16273a); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.device__stand::after { content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 30%; height: 20%; border-radius: 999px;
  background: #16273a; box-shadow: 0 10px 20px -6px rgba(0,0,0,.8), inset 0 1px 0 rgba(244,247,250,.12); }
.device--phone { position: relative; z-index: 2; width: clamp(170px, 34%, 300px); margin-left: 9%; }
.device--pc { position: absolute; z-index: 1; right: 0; top: 13%; width: 63%; }
@media (max-width: 600px) {
  .device--phone { width: 50%; margin-left: 3%; }
  .device--pc { width: 68%; top: 22%; }
}
/* the phone cycles three mobile shots with a gentle cross-fade: 18 s loop, each shot 1/3 of it.
   0% and 100% are the same state, and the three are offset by exactly a third. */
.device--phone .device__screen img.cycle { position: absolute; inset: 0; opacity: 0; }
.device--phone .device__screen img.cycle:first-child { opacity: 1; }  /* reduced motion: just the first shot */
.device--phone .device__screen {
  aspect-ratio: 9 / 16; border-radius: clamp(14px, 2.6vw, 30px);
  border: clamp(5px, .8vw, 9px) solid #0d1824;
  box-shadow: 0 0 0 1px rgba(244,247,250,.18), 0 0 50px -8px rgba(92,225,230,.4), 0 30px 60px -20px rgba(0,0,0,.95);
}
.device--phone .device__screen::before { /* speaker notch */
  content: ""; position: absolute; z-index: 1; left: 50%; top: 2.2%; translate: -50% 0; width: 28%; height: 2.2%; border-radius: 999px; background: #0d1824;
}
@media (prefers-reduced-motion: no-preference) {
  .device--phone { animation: float 8s ease-in-out infinite; }
}
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: no-preference) {
  .device--phone .device__screen img.cycle { animation: phone-cycle 18s linear infinite; }
  .device--phone .device__screen img.cycle:nth-child(2) { animation-delay: -12s; }
  .device--phone .device__screen img.cycle:nth-child(3) { animation-delay: -6s; }
}
@keyframes phone-cycle { 0% { opacity: 0; } 6% { opacity: 1; } 33.333% { opacity: 1; } 39.333% { opacity: 0; } 100% { opacity: 0; } }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; padding: 0; list-style: none; }

.relics { display: grid; gap: clamp(1rem, 2vw, 1.5rem); margin: clamp(3.5rem, 8vw, 6rem) 0 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .relics { grid-template-columns: repeat(3, 1fr); } }
.relic {
  position: relative; overflow: hidden; border-radius: 1.75rem;
  background: linear-gradient(180deg, rgba(15, 50, 80, .85), rgba(6, 18, 32, .92));
  box-shadow: inset 0 0 0 1px rgba(244,247,250,.12), 0 30px 60px -30px rgba(0,0,0,.8);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s;
}
.relic__art { aspect-ratio: 16 / 9; overflow: hidden; }
.relic__art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.relic__body { position: relative; padding: 1.1rem 1.5rem 1.6rem; }
.relic__num { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .1em; color: var(--cyan); }
.relic h3 { margin: .1rem 0 .45rem; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); line-height: 1.05; }
.relic p { margin: 0; font-size: 1rem; }
.relic:hover { transform: translateY(-8px); box-shadow: inset 0 0 0 1px rgba(92,225,230,.55), 0 0 60px -12px rgba(92,225,230,.5), 0 40px 70px -30px rgba(0,0,0,.9); }
.relic:hover .relic__art img { transform: scale(1.05); }

/* Bubble-pop hover (cards + buttons) */
.relic::before, .relic::after, .btn::before, .btn::after, .beacon::before {
  content: ""; position: absolute; z-index: 3; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(244,247,250,.8);
  opacity: 0; bottom: 8%;
}
.relic::before { left: 18%; } .relic::after { left: 78%; width: 7px; height: 7px; }
.btn::before { left: 20%; bottom: 10%; width: 7px; height: 7px; } .btn::after { left: 72%; bottom: 10%; width: 5px; height: 5px; }
.beacon::before { right: 12%; bottom: 20%; width: 6px; height: 6px; }

/* Heroes panel */
.heroes {
  position: relative; margin-top: clamp(1.5rem, 3vw, 2rem);
  display: grid; gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 1.75rem;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(92,225,230,.18), transparent 60%),
    linear-gradient(180deg, rgba(15,50,80,.6), rgba(6,18,32,.85));
  box-shadow: inset 0 0 0 1px rgba(244,247,250,.12);
  overflow: hidden;
}
@media (min-width: 900px) { .heroes__text { display: flex; align-items: baseline; gap: 2rem; } .heroes__text h3 { margin: 0; white-space: nowrap; } }
.heroes__text p { margin: 0; max-width: 32ch; }

/* Line-up: one shared stage. Every card is the same 600x760-unit box, so one scale applies to all
   heroes; images sit on a common ground line 40 units above the bottom (see the HTML comment). */
.lineup {
  position: relative; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 0; row-gap: 1.25rem;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { .lineup { grid-template-columns: repeat(4, 1fr); } }
.hero-card { position: relative; display: grid; align-content: start; justify-items: center; gap: .15rem; text-align: center; }
.hero-card__stage {
  position: relative; width: 100%; aspect-ratio: 600 / 760;
  background: radial-gradient(60% 45% at 50% 62%, rgba(255, 190, 110, .10), transparent 70%); /* warm torch-glow */
}
.hero-card__stage::before { /* the shared floor: segments touch (column-gap 0), so it reads as one ledge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(40 / 760 * 100%);
  background:
    linear-gradient(180deg, rgba(92,225,230,.45) 0 1.5px, transparent 1.5px),
    linear-gradient(180deg, rgba(92,225,230,.10), transparent);
}
.hero-card__stage::after { /* contact shadow under the feet */
  content: ""; position: absolute; left: 20%; right: 20%; bottom: calc(40 / 760 * 100% - 1.6%); height: 3.2%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.65), transparent);
}
.hero-card picture { display: contents; }
.hero-card img, .hero-card .mystery {
  position: absolute; z-index: 1; left: 50%;
  height: calc(var(--h) / 760 * 100%); width: auto; max-width: none;
  bottom: calc(var(--b) / 760 * 100%);
  translate: -50% 0; transform-origin: 50% 100%;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.45));
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .7s;
}
.hero-card:hover img { transform: translateY(-4%) scale(1.02); filter: drop-shadow(0 14px 16px rgba(0,0,0,.5)) drop-shadow(0 0 18px rgba(92,225,230,.35)); }
.hero-card__name { margin: .55rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, .9rem + .6vw, 1.35rem); color: var(--foam); }
.hero-card__note { margin: 0; font-size: .85rem; font-style: italic; color: var(--cyan); }
.hero-card__role { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.hero-card__hook { margin: .35rem 0 0; padding: 0 .35rem; font-size: .92rem; line-height: 1.4; color: var(--text-soft); max-width: 24ch; }
.hero-card__for { margin: .3rem 0 0; padding: 0 .35rem; font-size: .85rem; font-style: italic; color: var(--foam); max-width: 24ch; }
@media (max-width: 639px) { .hero-card__hook, .hero-card__for { font-size: .84rem; } }

/* The Guardian: still waking up (108% tall, same ground line) */
.mystery { overflow: visible; }
.mystery__shape { fill: #020a12; stroke: rgba(92,225,230,.35); stroke-width: 1.2; filter: drop-shadow(0 0 14px rgba(45,127,249,.4)); }
.mystery__eyes rect { fill: var(--cyan); opacity: .12; }
.mystery__q { font-family: var(--display); font-weight: 700; font-size: 54px; fill: rgba(92,225,230,.22); }
.mystery__zzz { position: absolute; z-index: 2; right: 18%; top: 4%; margin: 0; font-family: var(--display); font-weight: 700; color: rgba(244,247,250,.6); pointer-events: none; }
.mystery__zzz span { position: absolute; opacity: 0; }
.mystery__zzz span:nth-child(2) { left: .7rem; font-size: 1.2em; }
.mystery__zzz span:nth-child(3) { left: 1.5rem; font-size: 1.5em; }
@media (prefers-reduced-motion: no-preference) {
  .mystery__eyes rect { animation: stir 9s ease-in-out infinite; }
  .mystery__zzz span { animation: zzz 6s ease-in-out infinite; }
  .mystery__zzz span:nth-child(2) { animation-delay: 1.2s; }
  .mystery__zzz span:nth-child(3) { animation-delay: 2.4s; }
}
@keyframes stir { 0%, 70%, 100% { opacity: .12; } 78%, 84% { opacity: .75; } 81% { opacity: .2; } }

/* Sonar meta */
.sonar { display: grid; gap: 1rem; margin: clamp(2.5rem, 5vw, 3.5rem) 0; }
@media (min-width: 700px) { .sonar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sonar { grid-template-columns: repeat(4, 1fr); } }
.sonar div {
  position: relative; padding: 1.1rem 1.25rem 1.1rem 3.2rem; border-radius: 1.25rem;
  background: rgba(4, 16, 28, .55); box-shadow: inset 0 0 0 1px rgba(92,225,230,.22);
}
.sonar div::before { /* sonar blip */
  content: ""; position: absolute; left: 1.25rem; top: 1.45rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 0 rgba(92,225,230,.6);
}
.sonar div::after { /* the ping ring around the blip */
  content: ""; position: absolute; left: 1.25rem; top: 1.45rem; width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid rgba(92,225,230,.8); opacity: 0; pointer-events: none;
}
.sonar dt { font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.sonar dd { margin: .15rem 0 0; font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }

/* Porthole (trailer) frame */
.porthole { margin: 0 auto 2.5rem; max-width: 52rem; padding: clamp(10px, 1.6vw, 18px); border-radius: 2.5rem;
  background: linear-gradient(145deg, #23384d, #0b1520 60%, #1a2b3b);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 2px rgba(244,247,250,.08);
  position: relative;
}
.porthole::before { /* rivets */
  content: ""; position: absolute; inset: clamp(4px, .6vw, 7px); border-radius: 2.2rem; pointer-events: none;
  background:
    radial-gradient(circle, rgba(244,247,250,.35) 0 2px, transparent 3px) 0 0 / 40px 40px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 6px;
}
.porthole__glass {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1.9rem; background: #061320;
  box-shadow: inset 0 0 0 1px rgba(92,225,230,.25);
}
.porthole__glass img, .porthole__glass video { display: block; width: 100%; height: 100%; object-fit: cover; }
.porthole__glass::after { /* glass sheen + vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.10), transparent 30%);
  box-shadow: inset 0 0 50px rgba(0,0,0,.6);
}

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin: 0 0 1rem; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--foam), #cfeaf3); color: var(--navy);
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(92,225,230,0), 0 10px 24px -12px rgba(0,0,0,.7);
  transition: box-shadow .4s, transform .4s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 30px 0 rgba(92,225,230,.55), 0 10px 24px -12px rgba(0,0,0,.7); }
.fineprint { font-size: .85rem; color: rgba(244,247,250,.7); }

/* ---------- Contact: the abyss ---------- */
.zone--abyss { padding-bottom: 0; }
.contact { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.beacons { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.beacon {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem;
  padding: .85rem 1.1rem; border-radius: 1.1rem;
  background: rgba(10, 37, 64, .45);
  box-shadow: inset 0 0 0 1px rgba(92,225,230,.22);
  transition: box-shadow .4s, transform .4s, background-color .4s;
}
.beacon:hover { transform: translateX(4px); background: rgba(10, 37, 64, .7); box-shadow: inset 0 0 0 1px rgba(92,225,230,.6), 0 0 34px -8px rgba(92,225,230,.55); }
.beacon__label { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.beacon__label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
/* contact: two groups, the studio (Deeploom) and the game (Obsidra) */
.channels { display: grid; gap: clamp(1.5rem, 3vw, 2rem); }
.channels__title {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.channels__title img { height: 26px; width: auto; flex: none; }
/* linked rows: the whole row is the link; the URL itself is never shown */
.beacon--link { padding: 0; }
.beacon--link a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem;
  width: 100%; min-height: 48px; padding: .85rem 1.1rem; border-radius: inherit;
  color: inherit; text-decoration: none;
}
.beacon--link a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.beacon__action { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .95rem; color: var(--cyan); }
.beacon__arrow { width: 14px; height: 14px; transition: transform .3s; }
.beacon--link a:hover .beacon__arrow, .beacon--link a:focus-visible .beacon__arrow { transform: translate(2px, -2px); }

/* Lurky, asleep on the sea floor */
.lurky { position: relative; z-index: 2; margin-top: clamp(3rem, 8vw, 6rem); display: grid; justify-items: center; }
.lurky__halo {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: min(120vw, 1100px); aspect-ratio: 2 / 1;
  background: radial-gradient(50% 55% at 50% 75%, rgba(45,127,249,.30), rgba(92,225,230,.10) 45%, transparent 70%);
  pointer-events: none;
}
.lurky__body { position: relative; width: min(94vw, 58rem); margin-bottom: -1.6%; }
.lurky__svg { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 2px rgba(92,225,230,.45)) drop-shadow(0 0 26px rgba(45,127,249,.22)); }
/* Friendly bioluminescence: a soft, pale, even light that fills the eye openings (like the logo's background
   showing through), so the eyes read as the logo's sleepy half-discs with navy pupils, never as glaring slits. */
.lurky__eyeglow {
  position: absolute; z-index: 0; inset: 0;
  background:
    radial-gradient(12% 14% at 38.7% 80%, #eafcff 0, #cdf3f8 55%, rgba(170,232,242,.55) 80%, rgba(170,232,242,0) 100%),
    radial-gradient(10.5% 13% at 61.1% 83%, #eafcff 0, #cdf3f8 55%, rgba(170,232,242,.55) 80%, rgba(170,232,242,0) 100%);
  opacity: .9;
}
.lurky__zzz { position: absolute; z-index: 2; right: 30%; top: 22%; margin: 0; font-family: var(--display); font-weight: 700; color: rgba(244,247,250,.7); pointer-events: none; }
.lurky__zzz span { position: absolute; opacity: 0; }
.lurky__zzz span:nth-child(1) { font-size: 1rem; }
.lurky__zzz span:nth-child(2) { font-size: 1.4rem; left: 1rem; }
.lurky__zzz span:nth-child(3) { font-size: 1.9rem; left: 2.2rem; }
.lurky.is-awake .lurky__zzz { visibility: hidden; }
.seafloor { position: relative; z-index: 2; width: 100%; height: clamp(40px, 7vw, 110px); fill: #020406; margin-top: -2px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 4;
  display: grid; justify-items: center; gap: .4rem;
  padding: 1.5rem var(--gutter) 3.5rem; text-align: center;
  background: #020406;
}
.site-footer p { margin: 0; font-size: .95rem; }
.site-footer__depth { font-family: var(--display); font-weight: 700; color: var(--cyan); letter-spacing: .04em; }
.surface-link {
  margin-top: .75rem; display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; padding: .5rem 1rem; border-radius: 999px;
  font-family: var(--display); font-weight: 700; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(244,247,250,.25); transition: box-shadow .4s;
}
.surface-link:hover { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 24px -4px rgba(92,225,230,.6); }

/* ---------- TODO markers (remove once filled in) ---------- */
.todo {
  color: var(--foam);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .8em; font-weight: 400;
  border: 1.5px dashed rgba(244,247,250,.6); border-radius: .5rem; padding: .12em .45em;
  overflow-wrap: anywhere;
}
.todo--block { display: block; max-width: 40rem; margin: 0 auto 1rem; padding: .7rem 1rem; }
.btn--todo { background: transparent; color: var(--foam); border: 1.5px dashed rgba(244,247,250,.65); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85rem; font-weight: 400; }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ================= LOGO + AMBIENT ANIMATION ================= */
.tentacle, .curl, .head { transform-box: fill-box; }
.tentacle { transform-origin: 50% 100%; }
.curl     { transform-origin: 0% 100%; }
.head     { transform-origin: 50% 100%; }
.lid {
  transform-box: fill-box; transform-origin: 50% 0%;
  transform: scaleY(0);
  /* The lid is the eye hole's own outline, extended ~9 units up into the solid head (so it starts
     inside the head, not on the hole's edge), plus a 6-unit same-colour stroke so it overlaps the
     head on every side. Together they stop the anti-aliased hole edge leaking a light hairline. */
  stroke: currentColor; stroke-width: 6; stroke-linejoin: round;
  transition: transform 140ms ease-in;
}
.lockup.is-blinking .lid { transform: scaleY(1); transition-duration: 110ms; }
.lockup.is-slow-blink .lid { transition-duration: 320ms; transition-timing-function: ease-in-out; }

/* Lurky: asleep (lids shut) until you arrive; then lids lift a little. */
/* Asleep: lids shut (solid body colour, like a blink). Awake: lids lift slowly to the LOGO's own pose (scaleY 0:
   flat heavy top lid, round lower eye, small pupil): drowsy and curious, never slanted. */
/* closing (falling asleep): slow and drowsy, 3.8 s */
.lurky__svg .lid { stroke: #0A2540; transform: scaleY(1); transition: transform 3.8s cubic-bezier(.4,.05,.45,1); }
/* opening (waking): 1.9 s */
.lurky.is-awake .lurky__svg .lid { transform: scaleY(0); transition: transform 1.9s cubic-bezier(.4,0,.3,1); }
/* blinks stay quick both ways */
.lurky.is-awake.is-blinking .lurky__svg .lid { transform: scaleY(1); transition-duration: 180ms; transition-timing-function: ease-in-out; }
.lurky.is-awake.is-unblink .lurky__svg .lid { transition-duration: 220ms; transition-timing-function: ease-out; }


@media (prefers-reduced-motion: no-preference) {
  /* staggered intro (see "Hero intro" below), then the idle bob from 3.6 s */
  .hero__float { animation: bob 7s ease-in-out 3.6s infinite; }
  /* idle loops start exactly when each part's intro ends, from the same (identity) pose */
  .lockup .tentacle { animation: sway 9s ease-in-out 2.2s infinite; }
  .lockup .curl { animation: curl 9s ease-in-out 2.35s infinite; }
  .lockup .head { animation: breathe 6.5s ease-in-out 1.15s infinite; }
  .wave--back  { animation: wave 14s linear infinite; }
  .wave--front { animation: wave 9s linear infinite reverse; }
  .caustics::before { animation: drift-a 38s linear infinite; } /* exactly one 380px tile per loop */
  .caustics::after  { animation: drift-b 55s linear infinite; }   /* exactly one 520px tile per loop */
  .hero__rays span { animation: ray 12s ease-in-out infinite alternate; }
  .dive__line i { animation: dive 2.4s cubic-bezier(.5,0,.5,1) infinite; }

  .lurky__svg .tentacle { animation: sway 12s ease-in-out infinite; }
  .lurky__svg .curl { animation: curl 12s ease-in-out -4s infinite; }
  .lurky__svg .head { animation: breathe 8s ease-in-out infinite; }
  .lurky__zzz span { animation: zzz 6s ease-in-out infinite; }
  .lurky__zzz span:nth-child(2) { animation-delay: 1.2s; }
  .lurky__zzz span:nth-child(3) { animation-delay: 2.4s; }

  .reach--right svg { animation: reach 11s ease-in-out infinite; }
  .reach--left svg  { animation: reachL 13s ease-in-out infinite; }
  .life--school { animation: school 26s ease-in-out infinite alternate; }
  .life--jelly { animation: jelly 7s ease-in-out infinite; }
  .j2 { animation-duration: 9s; animation-delay: -3s; }
  .j3 { animation-duration: 8s; animation-delay: -5s; }
  .sonar div::after { animation: blip 3.2s ease-out infinite; }
  .sonar div:nth-child(2)::after { animation-delay: 1s; }
  .sonar div:nth-child(3)::after { animation-delay: 2s; }
  .sonar div:nth-child(4)::after { animation-delay: .5s; }
  .lurky__halo { animation: halo 8s ease-in-out infinite; }

  .relic:hover::before, .btn:hover::before, .beacon:hover::before { animation: pop 1.4s ease-out forwards; }
  .relic:hover::after, .btn:hover::after { animation: pop 1.6s ease-out .25s forwards; }
}

@keyframes bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(6px) rotate(.6deg); } }
@keyframes sway { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-2.2deg); } }
@keyframes curl { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } }
@keyframes breathe { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.006,1.018); } }
/* The wave SVG is 2x the view wide; -50% = 600 viewBox units = a whole number of wave periods
   (back: period 600, front: period 300), so the loop is seamless at any width. */
@keyframes wave { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
/* Texture scrolls move by whole tiles (tile = background-size), so 0% and 100% look identical. */
@keyframes drift-a { from { transform: translate3d(0,0,0); } to { transform: translate3d(380px, 380px, 0); } }
@keyframes drift-b { from { transform: translate3d(0,0,0); } to { transform: translate3d(-520px, 520px, 0); } }
@keyframes ray { from { transform: rotate(0deg); opacity: .35; } to { transform: rotate(var(--sw)); opacity: .7; } }
@keyframes dive { 0% { transform: translateY(-10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }
@keyframes zzz { 0% { transform: translate(0,10px); opacity: 0; } 30% { opacity: .9; } 100% { transform: translate(18px,-40px); opacity: 0; } }
@keyframes reach  { 0%,100% { transform: rotate(var(--r)); } 50% { transform: rotate(calc(var(--r) + 5deg)); } }
@keyframes reachL { 0%,100% { transform: rotate(var(--r)) scaleX(-1); } 50% { transform: rotate(calc(var(--r) - 5deg)) scaleX(-1); } }
@keyframes school { from { translate: 0 0; } to { translate: 160px -30px; } } /* ping-pong (alternate), px not vw */
@keyframes jelly { 0%,100% { translate: 0 0; scale: 1 1; } 40% { translate: 0 -18px; scale: .96 1.05; } }
/* sonar ping: a ring that grows and fades to 0 opacity, restarting invisible (transform/opacity only) */
@keyframes blip { 0% { transform: scale(1); opacity: 0; } 12% { transform: scale(1.4); opacity: .7; } 70%, 100% { transform: scale(3.3); opacity: 0; } }
@keyframes halo { 0%,100% { opacity: .8; } 50% { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 85% { opacity: .9; transform: translateY(-70px) scale(1); } 100% { opacity: 0; transform: translateY(-80px) scale(1.6); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lid, .lurky__svg .lid { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.zone--ruin .cta-row { justify-content: center; }

/* ---------- Real captures: loops, gallery, lightbox ---------- */
.relic__art video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-wrap { position: relative; }
.vid-toggle {
  position: absolute; z-index: 3; right: .6rem; bottom: .6rem;
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: rgba(4,16,28,.72); color: var(--foam); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(244,247,250,.25);
  opacity: .75; transition: opacity .3s, box-shadow .3s;
}
.vid-toggle:hover, .vid-toggle:focus-visible { opacity: 1; box-shadow: inset 0 0 0 1px var(--cyan), 0 0 16px -2px rgba(92,225,230,.6); }
.vid-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.device--phone .vid-toggle { display: none; }
.porthole__cap { margin: .8rem .5rem 0; text-align: center; font-size: .9rem; color: var(--text-soft); }

.gallery { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* One big feature image */
.feature { margin: 0 0 clamp(1.5rem, 4vw, 2.5rem); }
.feature a {
  display: block; overflow: hidden; border-radius: 1.4rem; aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 0 1px rgba(244,247,250,.12), 0 30px 60px -30px rgba(0,0,0,.9);
  transition: box-shadow .5s;
}
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.feature a:hover, .feature a:focus-visible { box-shadow: inset 0 0 0 1px rgba(92,225,230,.55), 0 0 50px -12px rgba(92,225,230,.5); }
.feature a:hover img { transform: scale(1.03); }
.feature figcaption { margin: .7rem .25rem 0; text-align: center; font-size: 1rem; color: var(--text-soft); }

/* ---------- Focus carousel (mobile screenshots) ---------- */
.focus { position: relative; margin-top: clamp(1rem, 3vw, 2rem); }
/* fallback (no JS): a swipeable row of phone cards */
.focus__track { display: flex; gap: 1rem; margin: 0; padding: .5rem .25rem 1rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.fcard { flex: 0 0 min(78vw, 320px); scroll-snap-align: center; }
.fcard a {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: clamp(1.2rem, 2.4vw, 1.9rem);
  border: clamp(5px, .8vw, 9px) solid #0d1824; background: #020a12;
  box-shadow: 0 0 0 1px rgba(244,247,250,.16), 0 30px 60px -24px rgba(0,0,0,.95);
}
.fcard img { width: 100%; height: 100%; object-fit: cover; }
.fcard__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .8rem .8rem; font-size: .85rem; font-weight: 800; line-height: 1.3;
  background: linear-gradient(180deg, transparent, rgba(2,10,18,.92) 45%); }
.focus__nav, .focus__dots, .focus__cap:empty { display: none; }

/* coverflow (JS on) */
.focus.is-coverflow { --ph: min(76vh, 760px); --pw: calc(var(--ph) * 9 / 16); overflow: hidden; padding-bottom: .25rem; }
@media (max-width: 699px) { .focus.is-coverflow { --pw: min(78vw, 44vh); --ph: calc(var(--pw) * 16 / 9); } } /* never taller than ~78% of the screen */
.is-coverflow .focus__stage { position: relative; height: var(--ph); perspective: 1600px; touch-action: pan-y; }
.is-coverflow .focus__track { display: block; overflow: visible; padding: 0; height: 100%; }
.is-coverflow .fcard {
  position: absolute; left: 50%; top: 0; width: var(--pw); height: var(--ph);
  transform: translateX(-50%) scale(.5); opacity: 0; pointer-events: none;
  transition: transform .9s cubic-bezier(.22,.8,.25,1), opacity .9s ease;
}
.is-coverflow .fcard a { height: 100%; aspect-ratio: auto; }
.is-coverflow .fcard__cap { display: none; }
.is-coverflow .fcard a::after { /* dims the side phones */
  content: ""; position: absolute; inset: 0; background: #031020; opacity: .5; transition: opacity .9s ease; pointer-events: none;
}
.is-coverflow .fcard[data-pos="0"] { transform: translateX(-50%); opacity: 1; z-index: 3; pointer-events: auto; }
.is-coverflow .fcard[data-pos="0"] a { box-shadow: 0 0 0 1px rgba(92,225,230,.35), 0 0 70px -10px rgba(92,225,230,.45), 0 40px 80px -30px rgba(0,0,0,.95); }
.is-coverflow .fcard[data-pos="0"] a::after { opacity: 0; }
.is-coverflow .fcard[data-pos="1"]  { transform: translateX(calc(-50% + 80%)) scale(.76) rotateY(-24deg); opacity: .85; z-index: 2; pointer-events: auto; }
.is-coverflow .fcard[data-pos="-1"] { transform: translateX(calc(-50% - 80%)) scale(.76) rotateY(24deg);  opacity: .85; z-index: 2; pointer-events: auto; }
.is-coverflow .fcard[data-pos="2"]  { transform: translateX(calc(-50% + 135%)) scale(.58) rotateY(-32deg); opacity: .45; z-index: 1; }
.is-coverflow .fcard[data-pos="-2"] { transform: translateX(calc(-50% - 135%)) scale(.58) rotateY(32deg);  opacity: .45; z-index: 1; }
@media (max-width: 699px) {
  .is-coverflow .fcard[data-pos="1"]  { transform: translateX(calc(-50% + 92%)) scale(.82) rotateY(-18deg); }
  .is-coverflow .fcard[data-pos="-1"] { transform: translateX(calc(-50% - 92%)) scale(.82) rotateY(18deg); }
  .is-coverflow .fcard[data-pos="2"], .is-coverflow .fcard[data-pos="-2"] { opacity: 0; }
}
/* glow + caustics behind the centre phone */
.focus__glow { position: absolute; left: 50%; top: 0; width: min(110vw, 1100px); height: calc(var(--ph, 600px) * 1.05); translate: -50% 0; pointer-events: none;
  background: radial-gradient(38% 46% at 50% 50%, rgba(92,225,230,.20), rgba(45,127,249,.10) 45%, transparent 72%); }
.focus__glow .caustics { opacity: .16;
  -webkit-mask-image: radial-gradient(40% 50% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(40% 50% at 50% 50%, #000, transparent 75%); }
.focus:not(.is-coverflow) .focus__glow { display: none; }

.is-coverflow .focus__nav {
  display: grid; place-items: center; position: absolute; z-index: 5; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(4,16,28,.72); color: var(--foam); box-shadow: inset 0 0 0 1px rgba(244,247,250,.25);
  transition: box-shadow .3s, background-color .3s;
}
.is-coverflow .focus__nav svg { width: 22px; height: 22px; }
.is-coverflow .focus__nav:hover, .is-coverflow .focus__nav:focus-visible { box-shadow: inset 0 0 0 1px var(--cyan), 0 0 22px -4px rgba(92,225,230,.6); }
.focus__nav--prev { left: calc(50% - var(--pw) / 2 - 64px); }
.focus__nav--next { right: calc(50% - var(--pw) / 2 - 64px); }
@media (max-width: 699px) {
  .focus__nav--prev { left: 4px; } .focus__nav--next { right: 4px; }
  .is-coverflow .focus__nav { width: 40px; height: 40px; }
}
.is-coverflow .focus__cap { display: block; min-height: 2.8em; max-width: 34rem; margin: .9rem auto .4rem; padding: 0 1rem; text-align: center;
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 800; color: var(--foam); }
.is-coverflow .focus__dots { display: flex; justify-content: center; gap: .15rem; }
.focus__dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.focus__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(244,247,250,.35); transition: background-color .3s, transform .3s; }
.focus__dots button[aria-current="true"]::before { background: var(--cyan); transform: scale(1.3); box-shadow: 0 0 10px var(--cyan); }
.focus__count { display: block; text-align: center; font-size: .78rem; letter-spacing: .14em; color: var(--text-soft); margin-top: .2rem; }
@media (prefers-reduced-motion: reduce) { .is-coverflow .fcard, .is-coverflow .fcard a::after { transition: none; } }

/* Lightbox: portrait phone shots get a narrow frame */
.lightbox.lightbox--portrait { width: auto; max-width: 94vw; }
.lightbox--portrait .lightbox__img { width: auto; height: min(84vh, 1100px); max-height: none; margin: 0 auto; }
.lightbox--portrait .lightbox__cap { max-width: 26rem; margin-inline: auto; text-align: center; }

.lightbox {
  width: min(94vw, 1280px); max-height: 92vh; padding: clamp(.5rem, 1.5vw, 1rem); border: 0; border-radius: 1.25rem;
  background: #04101c; color: var(--foam);
  box-shadow: 0 0 0 1px rgba(92,225,230,.3), 0 40px 120px rgba(0,0,0,.8);
}
.lightbox::backdrop { background: rgba(2, 6, 12, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__img { display: block; width: 100%; height: auto; max-height: calc(92vh - 5rem); object-fit: contain; border-radius: .8rem; }
.lightbox__cap { margin: .6rem .25rem 0; font-size: .95rem; }
.lightbox__close {
  position: absolute; right: .9rem; top: .9rem; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(4,16,28,.8); color: var(--foam); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(244,247,250,.3);
}
.lightbox__close:hover { box-shadow: inset 0 0 0 1px var(--cyan); }
.device--pc .vid-toggle { right: .6rem; left: auto; } /* the phone overlaps the monitor's left side */
@media (max-width: 699px) {
  .vid-toggle { width: 30px; height: 30px; right: .45rem; bottom: .45rem; }
  .device--pc .vid-toggle { right: .45rem; left: auto; }
  .vid-toggle svg { width: 13px; height: 13px; }
}

/* Gameplay loops are recorded clips, so their last frame differs from the first. main.js dips them to
   the panel colour for ~0.3 s around the wrap, so the cut reads as a soft blink, not a hard jump. */
video.loop { transition: opacity .28s ease; background: #04101c; }
video.loop.is-wrapping { opacity: .15; }

/* ---------- Hero intro: plays once per page load ----------
   1 Lurky's head - drawn FULL, no gaps - rises out of the water (0.1-1.1 s) and settles; one slow blink (main.js).
   2 The big tentacle (1.1-2.2 s) and then the right curl (1.3-2.35 s) swing in from outward angles,
     pivoting at their bases on the waterline, with a lazy overshoot. Each carries its gap in with it
     (mask #head-notches in index.html), so the head's gaps form as the tentacles arrive.
   3 DEEPLOOM rises letter by letter from under the water, 70 ms apart (1.85-3.04 s).
   4 The tagline (2.7 s) and the kicker (2.95 s) float in. Everything is done by ~3.6 s.
   Intro transforms sit on wrapper groups (.intro-*, .ltr) and the idle loops on the inner groups. Every intro
   ends at identity and the idle loops start then, so the handover can't jump. Transform + opacity only; with
   reduced motion none of this runs and the final pose shows immediately. */
.intro-head, .intro-tentacle, .intro-curl, .ltr { transform-box: fill-box; }
.intro-head     { transform-origin: 50% 100%; }
.intro-tentacle { transform-origin: 50% 100%; }   /* base of the tentacle, on the waterline */
.intro-curl     { transform-origin: 0% 100%; }    /* where the curl meets the head */
.ltr            { transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  .intro-head     { animation: intro-head 1s cubic-bezier(.22,.9,.3,1) .1s both; }
  /* eyes: closed while rising, a short pause once settled, then a slow 1 s ease-in-out open to the logo pose.
     No fill-mode: after 2.35 s the base style (lid scaleY 0 = logo) takes over, so blinks keep working. */
  .lockup .lid  { animation: intro-lids 2.35s linear; }

  .intro-tentacle { animation: intro-tentacle 1.1s cubic-bezier(.3,.7,.35,1) 1.1s both; }  /* starts once the head has settled */
  .intro-curl     { animation: intro-curl 1.05s cubic-bezier(.3,.7,.35,1) 1.3s both; }
  .ltr            { animation: intro-letter .7s cubic-bezier(.25,.8,.35,1) calc(1.85s + var(--i) * 70ms) both; }
  .hero__copy .tagline { animation: intro-fade .75s ease-out 2.7s both; }
  .hero__copy .kicker  { animation: intro-fade .65s ease-out 2.95s both; }
}
@keyframes intro-head {
  0%   { transform: translateY(150px); opacity: 0; }
  12%  { opacity: 1; }
  72%  { transform: translateY(-7px); }
  88%  { transform: translateY(2px); }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes intro-tentacle {
  0%   { transform: rotate(-16deg); opacity: 0; }
  25%  { opacity: 1; }
  68%  { transform: rotate(2.5deg); }
  86%  { transform: rotate(-.8deg); }
  100% { transform: rotate(0deg); opacity: 1; }
}
@keyframes intro-curl {
  0%   { transform: rotate(18deg); opacity: 0; }
  25%  { opacity: 1; }
  68%  { transform: rotate(-3deg); }
  86%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); opacity: 1; }
}
@keyframes intro-letter {
  0%   { transform: translateY(46px); opacity: 0; }
  70%  { transform: translateY(-3px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes intro-fade {
  0%   { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* The hero's tentacle/curl groups (and their mask twins) include notch shapes that reach 20 units below the
   waterline, which grows their fill-box; these origins put the pivots back exactly on the waterline (y 455). */
.lockup .tentacle, .lockup .intro-tentacle { transform-origin: 50% calc(100% - 20px); }
.lockup .curl, .lockup .intro-curl { transform-origin: calc(17px) calc(100% - 20px); }

@keyframes intro-lids {
  0%, 57.4% { transform: scaleY(1); animation-timing-function: cubic-bezier(.45,0,.35,1); }
  100%      { transform: scaleY(0); }
}

/* Follow Obsidra: a row of round app icons under the platform badges */
.follow { display: grid; justify-items: center; gap: .55rem; margin: 1.4rem 0 0; }
.follow__label { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.follow__icons { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.social {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--foam); background: rgba(4, 16, 28, .6);
  box-shadow: inset 0 0 0 1px rgba(92,225,230,.35);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, color .3s, background-color .3s;
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social:hover, .social:focus-visible {
  color: var(--cyan); background: rgba(10, 37, 64, .85); transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--cyan), 0 0 22px -4px rgba(92,225,230,.65);
}
.social:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 400px) { .social { width: 44px; height: 44px; } .follow__icons { gap: .45rem; } }

/* "Coming soon" row (not a link yet) */
.beacon__soon { font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: var(--text-soft); font-style: italic; }
.beacon--soon:hover { transform: none; background: rgba(10, 37, 64, .45); box-shadow: inset 0 0 0 1px rgba(92,225,230,.22); }
.beacon--soon::before { display: none; }

/* Obsidra intro: pitch (lead), story (body), platform line (small) */
.game-pitch { max-width: 46ch; text-wrap: balance; }
.game-story { max-width: 40rem; margin: 0 auto; text-align: center; }
.game-story p { margin: 0 0 .9rem; text-wrap: pretty; }
.game-platforms { margin: .2rem 0 0; font-size: .9rem; font-weight: 800; letter-spacing: .04em; color: var(--cyan); }
@media (max-width: 480px) {
  .platform { padding: .65rem 1.15rem .65rem .9rem; font-size: 1rem; gap: .6rem; }
  .platform svg { width: 1.6rem; height: 1.6rem; }
  .platform b { font-size: 1.25rem; }
}
/* Offline selling point, right above the platform badges */
.game-offline {
  margin: 1.1rem auto 0; max-width: 40rem; text-align: center; font-size: 1.12rem; color: var(--text-soft);
}
.game-offline svg { display: inline-block; width: 1.55rem; height: 1.55rem; margin: 0 .4rem 0 0; vertical-align: -.35rem; color: var(--cyan); }
.game-offline b { color: var(--foam); font-weight: 800; }
@media (max-width: 480px) { .game-offline { font-size: .95rem; } }
