/* Oceandex by Seabook
   Design read: consumer app landing for divers and snorkelers, playful but grown-up
   "night ocean" language. Native CSS + scroll-driven animation, no framework.
   Dials: variance 8 / motion 7 / density 4.

   System rules
   - One theme (dark), one accent (lime, from the app's ID brackets), cool navy neutrals only.
   - Radius scale: interactive = pill; containers = double bezel (shell 28 / core 22,
     small cards 22 / 18); tags = 6.
   - Shadows tinted navy, never black. Motion uses custom curves only.
   - z-index scale: grain 40, header 50, skip link 60. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #041226;
  --ink-2: #071a34;
  --ink-3: #0d2748;
  --shell: rgba(160, 195, 245, 0.045);
  --ring: rgba(160, 195, 245, 0.1);
  --hair: rgba(160, 195, 245, 0.12);
  --foam: #eaf2fd;
  --body: #c9d7ea;
  --mist: #9fb3cf;
  --lime: #dde85a;
  --lime-hi: #e8f174;
  --lime-ink: #1a2003;
  --shadow: 0 30px 60px -28px rgba(1, 7, 20, 0.85);
  --inset: inset 0 1px 1px rgba(234, 242, 253, 0.08);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-drift: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--foam);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

/* Film grain: fixed, non-interactive, never on scrolling containers */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ---------- Double bezel ---------- */
.bezel {
  padding: 6px; border-radius: 28px;
  background: var(--shell); box-shadow: 0 0 0 1px var(--ring), var(--shadow);
}
.bezel-core { border-radius: 22px; overflow: hidden; background: var(--ink-2); box-shadow: var(--inset); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--display); text-decoration: none; white-space: nowrap;
  transition: transform 220ms var(--ease-out), background-color 300ms var(--ease-fluid);
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; gap: 0; }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-icon { padding-right: 7px; }
.btn-orb {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(26, 32, 3, 0.1);
  transition: transform 400ms var(--ease-fluid);
}
.btn-orb svg { width: 18px; height: 18px; }
.text-link {
  font-weight: 600; text-decoration: none; padding: 6px 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: color 300ms var(--ease-fluid), background-size 400ms var(--ease-fluid);
}
@media (hover: hover) and (pointer: fine) {
  .btn-lime:hover { background: var(--lime-hi); }
  .btn-icon:hover .btn-orb { transform: translate(3px, -1px) scale(1.05); }
  .text-link:hover { color: var(--lime); background-size: 40% 1px; }
}

/* ---------- Floating island header ---------- */
.island {
  position: fixed; z-index: 50; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px;
  padding: 6px 6px 6px 14px; border-radius: 999px;
  background: rgba(7, 26, 52, 0.66);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 0 0 1px var(--ring), var(--inset), 0 20px 40px -24px rgba(1, 7, 20, 0.9);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-by { font-family: var(--mono); font-size: 11px; color: var(--mist); }
.nav { display: none; gap: 4px; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--mist); padding: 8px 14px; border-radius: 999px;
  transition: color 300ms var(--ease-fluid), background-color 300ms var(--ease-fluid);
}
.nav a:hover { color: var(--foam); }
.nav a[aria-current="true"] { color: var(--foam); background: rgba(160, 195, 245, 0.1); }
.hide-sm { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline; } }
@media (min-width: 900px) { .nav { display: flex; } .brand { margin-right: 0; } .nav { margin: 0 auto; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 104px 0 clamp(72px, 9vw, 120px);
  background:
    radial-gradient(60% 50% at 88% 0%, rgba(58, 120, 210, 0.22), transparent 70%),
    radial-gradient(50% 45% at 0% 35%, rgba(30, 80, 160, 0.22), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--lime);
  background: rgba(221, 232, 90, 0.08); box-shadow: 0 0 0 1px rgba(221, 232, 90, 0.22);
}
.hero-title {
  margin-top: 22px; font-weight: 760; font-size: clamp(60px, 9.4vw, 124px);
  line-height: 0.92; letter-spacing: -0.045em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.07em; }
.hero-title .line > span { display: inline-block; }
.hero-row { display: grid; gap: 26px; margin-top: 28px; align-items: end; }
.hero-lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; color: var(--body); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
@media (min-width: 900px) {
  .hero-row { grid-template-columns: 1fr auto; gap: 48px; }
}

.hero-stage { margin-top: clamp(40px, 6vw, 72px); border-radius: 32px; padding: 8px; }
.hero-stage .bezel-core { border-radius: 24px; }
.photo { position: relative; aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* bracket region baked into identify.png: x 58-78%, y 37-73% */
.scan-zone { position: absolute; left: 58.5%; top: 38%; width: 19%; height: 34%; overflow: hidden; border-radius: 10px; pointer-events: none; }
.scan-beam {
  position: absolute; left: 0; right: 0; top: 0; height: 36%;
  background: linear-gradient(to bottom, transparent, rgba(221, 232, 90, 0.28) 85%, rgba(221, 232, 90, 0.9) 100%);
  transform: translateY(-110%); opacity: 0;
}
/* Mirrors the app's own result label, placed under the brackets */
.id-chip {
  position: absolute; left: 50.5%; top: 76%;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 16px; border-radius: 14px;
  background: var(--lime); color: var(--lime-ink);
  box-shadow: 0 18px 36px -14px rgba(1, 7, 20, 0.8);
  transform-origin: 30% 0%;
}
.id-chip::before {
  content: ""; position: absolute; top: -5px; left: 36%; width: 12px; height: 12px;
  background: var(--lime); transform: rotate(45deg); border-radius: 2px;
}
.id-name { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; line-height: 1.1; }
.id-added { font-family: var(--mono); font-size: 11px; opacity: 0.75; }
@media (max-width: 719px) {
  .hero-stage { padding: 5px; border-radius: 24px; }
  .hero-stage .bezel-core { border-radius: 19px; }
  .id-chip { left: 44%; top: 74%; padding: 6px 10px; border-radius: 10px; }
  .id-name { font-size: 13px; }
  .id-added { font-size: 9px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(104px, 13vw, 176px) 0 clamp(112px, 14vw, 188px); position: relative; overflow-x: clip; }
h2 { font-weight: 720; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em; max-width: 15ch; text-wrap: balance; }
h3 { font-weight: 650; letter-spacing: -0.02em; }
.lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--body); max-width: 50ch; }

/* Identify: editorial split */
.identify-grid { display: grid; gap: 64px; align-items: center; }
.big-figure { margin-top: 56px; display: flex; flex-direction: column; gap: 6px; }
.figure-num { font-size: clamp(64px, 10vw, 132px); font-weight: 760; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.figure-label { color: var(--mist); font-size: 17px; }
.bezel-phone { width: min(340px, 78vw); justify-self: center; border-radius: 40px; padding: 7px; }
.bezel-phone .bezel-core { border-radius: 33px; }
@media (min-width: 900px) {
  .identify-grid { grid-template-columns: 1.3fr 0.7fr; gap: 96px; }
  .bezel-phone { transform: rotate(2.5deg); }
}

/* Collect: species cards */
.collect { background: linear-gradient(to bottom, var(--ink), var(--ink-2) 40%, var(--ink)); }
.stack-head .lead { max-width: 52ch; }
.dex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 56px; }
@media (min-width: 720px) { .dex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .dex-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.card {
  padding: 4px; border-radius: 22px; background: var(--shell); box-shadow: 0 0 0 1px var(--ring), var(--shadow);
  transition: transform 500ms var(--ease-fluid);
}
.card-core { height: 100%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--ink-2); box-shadow: var(--inset); }
.card-art { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--ink-3); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 116px; }
.card-no { font-family: var(--mono); font-size: 11px; color: var(--mist); font-variant-numeric: tabular-nums; }
.card-name { font-weight: 650; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.tag {
  margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: 10.5px;
  padding: 3px 7px; border-radius: 6px; color: var(--mist); box-shadow: inset 0 0 0 1px var(--hair);
}
.tag-found { background: var(--lime); color: var(--lime-ink); box-shadow: none; }

.is-found .card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.85), rgba(221, 232, 90, 0.3) 25%, transparent 55%);
  transition: opacity 400ms var(--ease-fluid);
}
.is-locked .face-front .card-art {
  display: grid; place-items: center; background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 17px, rgba(160, 195, 245, 0.08) 17px 18px),
    radial-gradient(circle at 50% 50%, #0f2c52, var(--ink) 75%);
}
.is-locked .face-front .card-name { font-weight: 560; font-size: 15px; line-height: 1.3; color: var(--body); }
.q { position: relative; font-family: var(--mono); font-weight: 500; font-size: clamp(40px, 5vw, 54px); color: var(--lime); line-height: 1; transition: transform 500ms var(--ease-spring); }
.ping { position: absolute; left: 50%; top: 50%; width: 70%; aspect-ratio: 1; margin: -35% 0 0 -35%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(221, 232, 90, 0.45); opacity: 0; }

.card { transform: perspective(800px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--lift, 0px)); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { --lift: -6px; }
  .is-found:hover .card-art::after { opacity: 1; }
  .is-locked:hover .q { transform: scale(1.15) rotate(-8deg); }
}

/* Flip to reveal */
.flip {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; width: 100%; height: 100%;
  border-radius: 18px; background: var(--ink-2); box-shadow: var(--inset);
  transform-style: preserve-3d; transition: transform 800ms var(--ease-fluid);
}
.flip:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.face { grid-area: 1 / 1; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--ink-2); }
.face-back { transform: rotateY(180deg); }
.is-revealed .flip { transform: rotateY(180deg); cursor: default; }
.sci { font-family: var(--mono); font-size: 11px; color: var(--mist); font-style: italic; }
.burst { z-index: 1; position: absolute; left: 50%; top: 50%; width: 80%; aspect-ratio: 1; margin: -40% 0 0 -40%; border-radius: 50%; box-shadow: 0 0 0 2px var(--lime); opacity: 0; pointer-events: none; }

/* Hero: bubbles from the diver's regulator */
.photo { container-type: inline-size; }
.bubbles { position: absolute; left: 45.5%; top: 42%; width: 0; height: 0; pointer-events: none; }
.bubbles i {
  position: absolute; left: 0; top: 0; width: var(--s, 12px); height: var(--s, 12px); margin: calc(var(--s, 12px) / -2) 0 0 calc(var(--s, 12px) / -2);
  border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.9) 0 12%, rgba(234, 242, 253, 0.12) 30%, rgba(234, 242, 253, 0.05) 60%);
  box-shadow: inset 0 0 0 1.5px rgba(234, 242, 253, 0.8);
}
.bubbles i:nth-child(1) { --s: clamp(8px, 1.6cqw, 18px); }
.bubbles i:nth-child(2) { --s: clamp(5px, 0.9cqw, 10px); }
.bubbles i:nth-child(3) { --s: clamp(10px, 2cqw, 22px); }
.bubbles i:nth-child(4) { --s: clamp(6px, 1.1cqw, 12px); }
.bubbles i:nth-child(5) { --s: clamp(8px, 1.4cqw, 16px); }
.bubbles i:nth-child(6) { --s: clamp(4px, 0.8cqw, 9px); }
.bubbles i:nth-child(7) { --s: clamp(7px, 1.2cqw, 14px); }
.bubbles i:nth-child(8) { --s: clamp(5px, 1cqw, 11px); }

/* Photo rights lines */
.hero-credit { font-family: var(--mono); font-size: 11px; color: var(--mist); text-align: right; padding: 10px 12px 4px; }
.credit { font-family: var(--mono); font-size: 9.5px; line-height: 1.3; color: var(--mist); opacity: 0.8; }

.collect-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; }
.collect-foot p { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: var(--mist); }

/* Dive log: asymmetric bento */
.bento { display: grid; gap: 14px; }
.bento .bezel-core { height: 100%; }
.bento-media .bezel-core {
  display: grid; place-items: end center; padding-top: 40px;
  background: radial-gradient(80% 60% at 50% 100%, rgba(58, 120, 210, 0.35), transparent 70%), var(--ink-2);
}
.bento-media img { width: min(340px, 86%); border-radius: 26px 26px 0 0; }
.bento-head .bezel-core, .bento-fields .bezel-core { padding: clamp(28px, 4vw, 48px); }
.bento-head h2 { max-width: 13ch; }
.bento-fields .bezel-core {
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(160, 195, 245, 0.05) 23px 24px),
    var(--ink-2);
}
.bento-fields h3 { font-size: 20px; color: var(--mist); font-weight: 560; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: rgba(160, 195, 245, 0.07); box-shadow: inset 0 0 0 1px var(--hair);
}
@media (min-width: 900px) {
  .bento { grid-template-columns: 5fr 7fr; grid-template-rows: auto auto; gap: 18px; }
  .bento-media { grid-row: 1 / span 2; }
  .bento-fields { align-self: stretch; }
}

/* How it works: dive profile */
.profile { position: relative; margin-top: 64px; }
.profile-line { display: none; }
.steps { display: grid; box-shadow: inset 1px 0 0 var(--hair); margin-left: 5px; }
.step { position: relative; padding: 0 0 40px 30px; }
.step::before { content: ""; position: absolute; left: -5px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime); }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--mist); font-size: 16px; max-width: 30ch; }
@media (min-width: 900px) {
  .profile-line { display: block; width: 100%; height: 150px; overflow: visible; }
  .profile-line path { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
  .profile-track { stroke: var(--hair); stroke-dasharray: 2 6; }
  .profile-draw { stroke: var(--lime); stroke-dasharray: 1; stroke-dashoffset: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; box-shadow: none; margin: 36px 0 0; }
  .step { padding: 30px 0 0; box-shadow: inset 0 1px 0 var(--hair); }
  .step::before { left: 0; top: -5px; }
}

/* Protect: full-bleed statement over a blurred real photo */
.protect { overflow: hidden; padding-bottom: 0; isolation: isolate; }
.protect-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.22;
  background: url("identify-sm.jpg") 70% 40% / cover no-repeat;
  filter: blur(26px) saturate(120%); transform: scale(1.1);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
}
.protect h2 { max-width: 16ch; }
.protect-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .protect-grid { grid-template-columns: 1.1fr 0.9fr; gap: 96px; align-items: end; } }
.audience-label { color: var(--mist); font-size: 17px; font-weight: 500; margin-bottom: 14px; }
.audience-list li {
  font-size: clamp(28px, 3.6vw, 44px); font-weight: 720; letter-spacing: -0.035em; line-height: 1.12;
  color: rgba(234, 242, 253, 0.3); transition: color 700ms var(--ease-fluid);
}
.audience-list li.lit { color: var(--foam); }

.marquee { margin-top: clamp(96px, 11vw, 150px); padding: 26px 0; overflow: hidden; box-shadow: inset 0 1px 0 var(--hair), inset 0 -1px 0 var(--hair); }
.marquee-track { display: flex; width: max-content; gap: 72px; animation: marquee 40s linear infinite; }
.marquee-track span { font-size: clamp(24px, 3vw, 36px); font-weight: 650; letter-spacing: -0.03em; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--mist); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* FAQ: open two-column list */
.faq-grid { display: grid; gap: 40px 64px; margin-top: 56px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1fr; } }
.qa h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.25; }
.qa p { margin-top: 10px; color: var(--body); max-width: 60ch; }

/* Final CTA */
.final {
  padding: clamp(112px, 14vw, 176px) 0 clamp(120px, 15vw, 190px);
  background: radial-gradient(70% 55% at 50% 100%, rgba(221, 232, 90, 0.08), transparent 100%), var(--ink);
  text-align: center;
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-icon { border-radius: 22px; box-shadow: 0 24px 50px -18px rgba(1, 7, 20, 0.9), 0 0 0 1px var(--ring); margin-bottom: 36px; }
.final h2 { max-width: 13ch; font-size: clamp(44px, 7.4vw, 100px); }
.final .lead { margin-inline: auto; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.store {
  min-width: 204px; display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 26px 0 22px; border-radius: 999px;
  background: var(--foam); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 19px; line-height: 1.05; text-align: left;
  transition: transform 220ms var(--ease-out), background-color 300ms var(--ease-fluid);
}
.store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.7; }
.store svg { width: 24px; height: 24px; }
.store:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .store:hover { background: var(--lime); } }

/* Footer */
.site-footer { box-shadow: inset 0 1px 0 var(--hair); padding: 40px 0 48px; font-size: 14px; color: var(--mist); }
.footer-row { display: grid; gap: 20px; }
.footer-row .brand { color: var(--foam); }
.footer-note { max-width: 46ch; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; transition: color 300ms var(--ease-fluid); }
.footer-links a:hover { color: var(--foam); }
@media (min-width: 900px) {
  .footer-row { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 48px; }
  .footer-copy { grid-column: 1 / -1; }
}

/* 404 */
.lost { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.lost h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 760; letter-spacing: -0.045em; line-height: 1; }
.lost img { border-radius: 18px; margin: 0 auto 32px; }
.lost p { margin: 20px auto 32px; color: var(--body); max-width: 40ch; }

/* ==========================================================
   Motion. Every item has a job: hierarchy, story or feedback.
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Hero load: headline rises, then the photo */
  .js .hero-title .line > span { transform: translateY(105%); animation: rise 1000ms var(--ease-fluid) forwards; }
  .js .hero-title .line:nth-of-type(2) > span { animation-delay: 90ms; }
  .js .hero-eyebrow, .js .hero-row { opacity: 0; animation: fade-up 800ms var(--ease-fluid) 300ms forwards; }
  .js .hero-stage { opacity: 0; transform: translateY(28px) scale(0.985); animation: stage-in 1100ms var(--ease-fluid) 380ms forwards; }

  /* Story: scan, lock, name */
  .js .scan-beam { animation: beam 1100ms var(--ease-drift) 1200ms 2 both; }
  .js .id-chip { opacity: 0; transform: translateY(8px) scale(0.9); animation: chip-in 560ms var(--ease-spring) 3400ms forwards; }
  .js #scan.replay .scan-beam { animation: beam 1100ms var(--ease-drift) 0ms 2 both; }
  .js #scan.replay .id-chip { animation: chip-in 560ms var(--ease-spring) 2200ms both; }

  /* Heavy fade-up on entry */
  .js .reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 900ms var(--ease-fluid), transform 900ms var(--ease-fluid), filter 900ms var(--ease-fluid); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
  .js .steps .step:nth-child(2), .js .faq-grid .qa:nth-child(even) { transition-delay: 90ms; }
  .js .steps .step:nth-child(3) { transition-delay: 180ms; }
  .js .steps .step:nth-child(4) { transition-delay: 270ms; }
  .js .bento-head { transition-delay: 90ms; }
  .js .bento-fields { transition-delay: 180ms; }

  /* Cards dealt in sequence, found cards catch the light */
  .js .dex-grid .card { opacity: 0; }
  .js .dex-grid.in .card { opacity: 1; animation: deal 800ms var(--ease-fluid) backwards; transition: transform 500ms var(--ease-fluid); }
  .js .dex-grid.in .card.tilting { transition: transform 120ms linear; }
  .js .dex-grid .card:nth-child(1) { --r: -3deg; }
  .js .dex-grid .card:nth-child(2) { --r: -1.5deg; animation-delay: 70ms; }
  .js .dex-grid .card:nth-child(3) { --r: -0.5deg; animation-delay: 140ms; }
  .js .dex-grid .card:nth-child(4) { --r: 0.5deg; animation-delay: 210ms; }
  .js .dex-grid .card:nth-child(5) { --r: 1.5deg; animation-delay: 280ms; }
  .js .dex-grid .card:nth-child(6) { --r: 3deg; animation-delay: 350ms; }
  .js .dex-grid.in .is-found .card-art::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
    transform: translateX(-100%); animation: shine 1000ms var(--ease-drift) 700ms forwards;
  }
  /* Reveal: ring bursts as the card lands */
  .js .is-revealed .burst { animation: burst 900ms var(--ease-out) 450ms both; }
  .js .is-revealed .face-back img { animation: photo-in 900ms var(--ease-fluid) 350ms both; }

  /* Bubbles drift up from the regulator, on a loop only while the hero is on screen */
  .js .bubbles i { animation: bubble 3.6s var(--ease-drift) infinite; animation-play-state: paused; }
  .js .hero-on .bubbles i { animation-play-state: running; }
  .js .bubbles i:nth-child(2) { animation-delay: 0.35s; --bx: -2.2cqw; }
  .js .bubbles i:nth-child(3) { animation-delay: 0.9s; --bx: 1.4cqw; }
  .js .bubbles i:nth-child(4) { animation-delay: 1.3s; --bx: -1cqw; }
  .js .bubbles i:nth-child(5) { animation-delay: 1.8s; --bx: 2cqw; }
  .js .bubbles i:nth-child(6) { animation-delay: 2.2s; --bx: -2.8cqw; }
  .js .bubbles i:nth-child(7) { animation-delay: 2.7s; --bx: 0.6cqw; }
  .js .bubbles i:nth-child(8) { animation-delay: 3.1s; --bx: -1.6cqw; }

  /* Hero photo settles as it scrolls away */
  @supports (animation-timeline: view()) {
    .js .photo img { animation: settle linear both; animation-timeline: view(); animation-range: exit -20% exit 80%; }
  }

  /* Undiscovered cards "search" a few times, then rest */
  .js .dex-grid.in .ping { animation: ping 3.2s var(--ease-out) 3 both; }
  .js .dex-grid.in .card:nth-child(4) .ping { animation-delay: 500ms; }
  .js .dex-grid.in .card:nth-child(5) .ping { animation-delay: 1000ms; }
  .js .dex-grid.in .card:nth-child(6) .ping { animation-delay: 1500ms; }

  /* Dive profile draws with scroll (IO fallback sets .in) */
  .js .profile-draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-drift); }
  .js .profile.in .profile-draw { stroke-dashoffset: 0; }
  @supports (animation-timeline: view()) {
    .js .profile-draw { transition: none; animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}

@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stage-in { to { opacity: 1; transform: none; } }
@keyframes beam { 0% { transform: translateY(-110%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(300%); opacity: 0; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { transform: scale(0.2); opacity: 0.9; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@keyframes deal { from { opacity: 0; transform: translateY(32px) rotate(var(--r, 0deg)); } }
@keyframes shine { to { transform: translateX(100%); } }
@keyframes burst { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes photo-in { from { transform: scale(1.18); filter: blur(6px) brightness(1.4); } to { transform: none; filter: none; } }
@keyframes bubble { 0% { transform: translate(0, 0) scale(0.5); opacity: 0; } 10% { opacity: 1; } 55% { transform: translate(calc(var(--bx, 0.8cqw) * -0.6), -20cqw) scale(1); } 100% { transform: translate(var(--bx, 0.8cqw), -40cqw) scale(1.25); opacity: 0; } }
@keyframes settle { to { transform: scale(1.08) translateY(-3%); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 12px; column-gap: 40px; padding: 0 var(--gutter); }
  .marquee-track span:nth-child(n+6) { display: none; }
  .audience-list li { color: var(--foam); }
  .is-revealed .flip { transform: none; }
  .is-revealed .face-front { visibility: hidden; }
  .face-back { transform: none; }
  .is-locked:not(.is-revealed) .face-back { visibility: hidden; }
  .bubbles { display: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
