/* ==========================================================================
   Flipper AV – styles
   1. Tokens & base   2. Layout helpers   3. Components   4. Nav & menu
   5. Hero scene      6. Deep-sea sections   7. Sub pages   8. Footer
   9. Effects (cursor, wipe, grain)   10. Responsive & reduced motion
   ========================================================================== */

/* ---------- 1. Tokens & base ---------- */
:root {
  --abyss: #02101f;
  --deep: #041f3a;
  --ocean: #07396b;
  --tide: #0d5a97;
  --sea: #1b6ca8;
  --surf: #5aaedd;
  --foam: #eaf7ff;
  --cyan: #4fd1ff;
  --gold: #f6c445;
  --sand: #f4d374;
  --sand-2: #e8c158;

  --text: #eaf4ff;
  --muted: rgba(234, 244, 255, 0.68);
  --line: rgba(255, 255, 255, 0.1);

  --ff-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --ff-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --pad: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --nav-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--cyan); color: var(--abyss); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10001;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--abyss);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- 2. Layout helpers ---------- */
.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

.section {
  position: relative;
  z-index: 1;
  padding-block: clamp(72px, 11vw, 150px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}

.display,
.h2 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2.5rem, 6.6vw, 5.6rem); margin: 0.3em 0 0.28em; }
.display { font-size: clamp(3.2rem, 11vw, 9rem); }

.lead {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }

/* word-mask split headings (built in JS) */
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .word > span { display: inline-block; will-change: transform; }

/* reveal start states – only when JS + motion are available */
.js:not(.no-motion) [data-reveal],
.js:not(.no-motion) [data-stagger] > * { opacity: 0; }
.js:not(.no-motion) .split .word > span { transform: translateY(110%); }

/* CSS-only entrance so above-the-fold content never waits for scripts */
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.13s + 0.1s); }
.after-wipe .rise { animation-delay: calc(var(--i, 0) * 0.13s + 0.95s); }

/* ---------- 3. Components ---------- */
.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  height: var(--h);
  padding: 0 1.6em;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #04223f;
  font: 600 0.95rem/1 var(--ff-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, translate 0.45s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

/* Kokonut-style shimmer button */
.btn-shimmer {
  color: #fff;
  background: linear-gradient(180deg, #34b2f2 0%, #0b6bb8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 12px 32px -10px rgba(31, 150, 230, 0.8);
}
.btn-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shimmer 3.4s var(--ease) infinite;
}
@keyframes shimmer { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.btn-gold {
  color: #3a2600;
  background: linear-gradient(180deg, #ffe38a 0%, #f0b429 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 32px -10px rgba(246, 196, 69, 0.7);
}

/* Spotlight card (Kokonut-style): glow + gradient border follow the pointer */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card::before,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.card::before {
  z-index: -1;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent, #4fd1ff) 26%, transparent), transparent 62%);
}
.card::after {
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), var(--accent, #4fd1ff), transparent 62%);
  -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);
}
.card:hover::before,
.card:hover::after,
.card:focus-visible::before,
.card:focus-visible::after { opacity: 1; }

/* ---------- 4. Nav & menu ---------- */
.nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 500;
  display: flex;
  justify-content: center;
  padding-inline: var(--pad);
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-140%); }

.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 980px);
  height: var(--nav-h);
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 31, 58, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 50px -20px rgba(0, 20, 50, 0.6);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.05rem/1 var(--ff-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #fff;
}
.nav-brand img { width: 30px; height: 40px; object-fit: contain; margin-block: -4px; }
.nav-brand b { color: var(--cyan); font-weight: 800; }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }

.nav-cta { --h: 44px; padding-inline: 1.3em; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 100px var(--pad) 60px;
  background: rgba(2, 16, 31, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0s 0.4s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.4s var(--ease); }
.menu a {
  font: 800 clamp(2.4rem, 11vw, 4rem)/1.1 var(--ff-display);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: #fff;
}
.menu a small { font: 600 0.8rem/1 var(--ff-body); letter-spacing: 0.2em; color: var(--cyan); margin-right: 14px; vertical-align: super; }

/* ---------- 5. Hero scene ---------- */
.hero {
  --horizon: 50%;
  --wl-far: 63%;
  --wl-near: 76%;
  --beach: 17%;
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: #7cc4f0;
}

.scene, .scene > * { position: absolute; }
.scene { inset: 0; }

.sky {
  inset: 0;
  background: linear-gradient(180deg, #3a96dc 0%, #6fbbec 26%, #b4e2fa 44%, #e3f5ff 50%);
}

.sun-wrap { right: 13%; top: 11%; width: 96px; height: 96px; }
.sun {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fffbe0 0%, #ffe680 55%, #ffd23f 100%);
  box-shadow: 0 0 0 16px rgba(255, 236, 140, 0.2), 0 0 0 38px rgba(255, 236, 140, 0.1), 0 0 120px 40px rgba(255, 226, 120, 0.55);
  animation: sunpulse 7s ease-in-out infinite;
}
@keyframes sunpulse { 50% { transform: scale(1.05); } }

.cloud {
  left: 0;
  top: var(--y);
  width: var(--w);
  height: calc(var(--w) * 0.26);
  border-radius: 999px;
  background: #fff;
  opacity: 0.88;
  animation: drift var(--t) linear infinite;
  animation-delay: var(--d);
}
.cloud::before,
.cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 46%; height: 190%; left: 14%; bottom: 30%; }
.cloud::after { width: 34%; height: 150%; left: 48%; bottom: 25%; }
@keyframes drift { from { transform: translateX(-25vw); } to { transform: translateX(110vw); } }

.sea-back {
  top: var(--horizon); bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, #a7dcf6 0%, #58b1e2 10%, #3394cd 42%, #2380ba 100%);
}
.sea-back::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
}

/* sparkling sun reflection on the water */
.glint {
  top: var(--horizon);
  right: calc(13% - 20px);
  width: 136px;
  height: 22%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0 2px, transparent 2px 10px);
  -webkit-mask: radial-gradient(ellipse 50% 100% at 50% 0, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 50% 100% at 50% 0, #000 20%, transparent 75%);
  animation: glint 3.2s ease-in-out infinite;
}
@keyframes glint { 50% { opacity: 0.45; transform: scaleX(0.9); } }

/* dolphin lanes: clipped at their own waterline so dolphins dive behind the wave */
.lane { left: 0; right: 0; top: 0; overflow: hidden; pointer-events: none; }
.lane-far { height: var(--wl-far); }
.lane-near { height: var(--wl-near); }

.dolphin {
  position: absolute;
  left: 0; bottom: 0;
  display: block;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
.dolphin-sprite { position: absolute; inset: 0; will-change: transform; }
.dolphin-sprite img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 40, 90, 0.28));
  -webkit-user-drag: none;
  user-select: none;
}
.lane-far .dolphin-sprite img { filter: drop-shadow(0 6px 10px rgba(0, 40, 90, 0.2)) saturate(0.9); }

.dolphin-label {
  position: absolute;
  left: 50%; top: -30px;
  transform: translateX(-50%) translateY(6px);
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(4, 31, 58, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font: 600 0.68rem/1 var(--ff-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.dolphin.is-up .dolphin-label { opacity: 1; transform: translateX(-50%); }
.dolphin:hover .dolphin-label { background: var(--cyan); color: var(--abyss); }

/* wave bands that hide the clipped part of the dolphins */
.wave { left: 0; right: 0; bottom: 0; overflow: hidden; }
.wave-far { top: calc(var(--wl-far) - 14px); }
.wave-near { top: calc(var(--wl-near) - 14px); }
.wave-svg {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  max-width: none;
  height: 22px;
  animation: wavemove var(--spd, 14s) linear infinite;
}
.wave-svg path { vector-effect: non-scaling-stroke; }
.wave-body { position: absolute; left: 0; right: 0; top: 21px; bottom: 0; }
.wave-far .wave-body { background: #2380ba; }
.wave-near .wave-body { background: linear-gradient(180deg, #1b6ca8, #14588f); }
.wave-far .wave-svg path.fill { fill: #2380ba; }
.wave-near .wave-svg path.fill { fill: #1b6ca8; }
.wave-svg path.line { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2px; }
@keyframes wavemove { to { transform: translateX(-50%); } }

.beach {
  left: 0; right: 0; bottom: 0;
  height: var(--beach);
  background: linear-gradient(180deg, #f6dc8c 0%, var(--sand) 35%, var(--sand-2) 100%);
}
.beach::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: linear-gradient(180deg, rgba(160, 120, 40, 0.35), transparent);
}
.shore {
  left: 0; right: 0;
  bottom: calc(var(--beach) - 10px);
  height: 22px;
  overflow: hidden;
}
.shore .wave-svg { --spd: 9s; height: 22px; }
.shore path.fill { fill: rgba(255, 255, 255, 0.92); }
.shore path.line { stroke: none; }

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(86px, 12vh, 140px);
  padding-inline: var(--pad);
  text-align: center;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-logo {
  height: clamp(150px, 30vh, 330px);
  width: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 50, 110, 0.35));
}
.hero-eyebrow {
  margin-top: clamp(8px, 1.6vh, 18px);
  font: 700 clamp(0.8rem, 1.2vw, 0.95rem)/1 var(--ff-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 60, 120, 0.5);
}
.hero .btn-ghost { background: rgba(4, 31, 58, 0.42); border-color: rgba(255, 255, 255, 0.35); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(16px, 2.6vh, 28px); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: calc(var(--beach) + 26px);
  z-index: 12;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font: 600 0.68rem/1 var(--ff-body);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 50, 100, 0.6);
}
.scroll-cue i {
  width: 22px; height: 36px;
  border: 2px solid currentColor;
  border-radius: 14px;
  position: relative;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%; top: 6px;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: currentColor;
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- 6. Deep-sea sections ---------- */
.deep {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background: linear-gradient(180deg, var(--tide) 0%, var(--ocean) 18%, var(--deep) 52%, var(--abyss) 100%);
}

.tide {
  position: absolute;
  left: 0; right: 0; top: 1px;
  height: 44px;
  overflow: hidden;
  transform: translateY(-100%);
  pointer-events: none;
}
.tide .wave-svg { height: 44px; --spd: 18s; }
.tide .wave-svg path.fill { fill: var(--tide); }
.tide .wave-svg path.line { stroke: rgba(255, 255, 255, 0.6); stroke-width: 2px; }

.bubbles {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  pointer-events: none;
}

/* moving-head light beams */
.beams { position: absolute; left: 0; right: 0; top: 0; height: 900px; overflow: hidden; z-index: 0; pointer-events: none; }
.beam {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: min(46vw, 560px);
  height: 880px;
  margin-left: calc(min(46vw, 560px) / -2);
  background: linear-gradient(180deg, rgba(160, 225, 255, 0.34), rgba(160, 225, 255, 0.04) 70%, transparent);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  mix-blend-mode: screen;
  animation: sweep var(--t) ease-in-out infinite alternate;
  animation-delay: var(--d);
  will-change: transform;
}
@keyframes sweep { from { transform: rotate(var(--a1)); } to { transform: rotate(var(--a2)); } }

.deep > section, .deep > div:not(.beams):not(.tide) { position: relative; z-index: 1; }

/* marquee */
.marquee {
  position: relative;
  z-index: 1;
  padding-block: clamp(36px, 5vw, 64px);
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(2, 16, 31, 0.28);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group span {
  padding-inline: clamp(18px, 3vw, 40px);
  font: 800 clamp(2.6rem, 7vw, 6rem)/1 var(--ff-display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.marquee-group span:nth-child(even) { color: #fff; -webkit-text-stroke: 0; }
.marquee-group img { width: clamp(34px, 4vw, 56px); height: auto; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* intro statement – words light up while scrolling */
.intro-text {
  max-width: 1020px;
  margin-top: 28px;
  font: 700 clamp(1.7rem, 4.2vw, 3.4rem)/1.18 var(--ff-display);
  letter-spacing: -0.025em;
}
.intro-text .w { opacity: 0.16; transition: opacity 0.2s linear; }
.no-motion .intro-text .w { opacity: 1; }
.intro-text em { font-style: normal; color: var(--cyan); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 7vw, 90px); }
.stat { padding: clamp(22px, 3vw, 36px); }
.stat strong {
  display: block;
  font: 800 clamp(3rem, 8vw, 6.4rem)/0.95 var(--ff-display);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 20%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { display: block; margin-top: 10px; color: var(--muted); font-weight: 500; }

/* crew grid */
.crew-grid {
  --cols: 5;
  --gap: clamp(12px, 1.6vw, 22px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}
.crew-grid > .crew-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.crew-card {
  --accent: #4fd1ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(300px, 27vw, 380px);
  padding: clamp(16px, 1.7vw, 22px);
  text-decoration: none;
  color: #fff;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.crew-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.crew-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 2; }
.crew-num { font: 700 0.8rem/1 var(--ff-body); letter-spacing: 0.22em; color: var(--muted); }
.crew-arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.35s, color 0.35s, transform 0.5s var(--ease);
}
.crew-arrow svg { width: 18px; height: 18px; }
.crew-card:hover .crew-arrow { background: var(--accent); color: var(--abyss); transform: rotate(45deg); }

.crew-figure {
  position: absolute;
  left: 50%; top: 47%;
  width: 62%;
  transform: translate(-50%, -50%) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  z-index: 1;
}
.crew-figure::before {
  content: "";
  position: absolute;
  inset: -12% -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 50%, transparent), transparent 72%);
  opacity: 0.55;
  transition: opacity 0.5s, transform 0.6s var(--ease);
}
.crew-card:hover .crew-figure::before { opacity: 1; transform: scale(1.1); }
.crew-figure img {
  position: relative;
  width: 100%; height: auto;
  filter: drop-shadow(0 22px 28px rgba(0, 10, 30, 0.5));
  animation: bob 5.5s ease-in-out infinite;
  animation-delay: var(--bob, 0s);
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(2.4deg); } }

.crew-meta { position: relative; z-index: 2; display: grid; gap: 4px; }
.crew-flipper { font: 600 0.74rem/1 var(--ff-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.crew-name { font: 800 clamp(1.5rem, 2.3vw, 2.1rem)/1.05 var(--ff-display); letter-spacing: -0.03em; overflow-wrap: anywhere; }

/* Gouden Fin */
.gf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.gf-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 560px; margin-inline: auto; width: 100%; }
.gf-rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(246, 196, 69, 0.2) 0 5deg, transparent 5deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 15%, transparent 72%);
  mask: radial-gradient(closest-side, #000 15%, transparent 72%);
  animation: spin 70s linear infinite;
}
.gf-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 196, 69, 0.34), transparent 72%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.gf-trophy {
  position: relative;
  width: 76%;
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(246, 196, 69, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.spark {
  position: absolute;
  width: 14px; height: 14px;
  background: #fff3c4;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.4) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.text-gold {
  background: linear-gradient(110deg, #a8761a 10%, #ffe9a0 30%, #f6c445 48%, #fff3c4 62%, #b8861f 90%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldshine 7s linear infinite;
}
@keyframes goldshine { to { background-position: -260% 0; } }
.text-gold:has(.word) { background: none; animation: none; }
.text-gold .word > span {
  background: linear-gradient(110deg, #a8761a 10%, #ffe9a0 30%, #f6c445 48%, #fff3c4 62%, #b8861f 90%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldshine 7s linear infinite;
}

.points { display: grid; gap: 14px; margin: 30px 0 36px; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; padding: 18px 20px; }
.points .ico {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(246, 196, 69, 0.16);
  color: var(--gold);
}
.points .ico svg { width: 18px; height: 18px; }
.points b { display: block; font-weight: 600; color: #fff; }
.points span { color: var(--muted); font-size: 0.95rem; }

/* partners */
.partner-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); }
.partner-card { display: flex; flex-direction: column; gap: 22px; padding: clamp(18px, 2.2vw, 28px); text-decoration: none; color: #fff; --accent: #4fd1ff; }
.partner-logo {
  display: grid;
  place-items: center;
  height: clamp(160px, 18vw, 230px);
  padding: 24px;
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.partner-logo img { max-width: 78%; max-height: 78%; object-fit: contain; transition: transform 0.6s var(--ease); }
.partner-card:hover .partner-logo img { transform: scale(1.06); }
.partner-card p { color: var(--muted); }
.partner-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--cyan); }
.partner-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.partner-card:hover .partner-link svg { transform: translate(3px, -3px); }

/* merch */
.merch-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(28px, 5vw, 70px);
  --accent: #7c8cff;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(79, 209, 255, 0.4);
  background: rgba(79, 209, 255, 0.1);
  color: var(--cyan);
  font: 600 0.74rem/1 var(--ff-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.merch-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.merch-item {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.5s var(--ease), color 0.3s, border-color 0.3s;
}
.merch-item svg { width: 54%; height: auto; }
.merch-item:nth-child(2) { transform: translateY(18px); }
.merch-item:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-6px) rotate(-2deg); }

/* ---------- 7. Sub pages ---------- */
.deep--page { min-height: 100vh; padding-top: calc(var(--nav-h) + 60px); background: linear-gradient(180deg, var(--tide) 0%, var(--ocean) 14%, var(--deep) 46%, var(--abyss) 100%); }
.page-hero { position: relative; z-index: 1; padding-block: clamp(40px, 8vw, 100px) clamp(30px, 5vw, 60px); text-align: center; }
.page-hero .display { margin: 0.18em 0 0.2em; }
.page-hero .lead { margin-inline: auto; }
.page-body { position: relative; z-index: 1; padding-bottom: clamp(70px, 10vw, 140px); }

.prose-card { max-width: 820px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); }
.prose-card p { color: var(--muted); font-size: 1.08rem; }
.prose-card p + p { margin-top: 1.1em; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.info-card { padding: 22px; }
.info-card.wide { grid-column: 1 / -1; }
.info-card h3 { font: 700 0.74rem/1 var(--ff-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.info-card dl { display: grid; gap: 10px; margin: 0; }
.info-card dt { font-size: 0.8rem; color: var(--muted); }
.info-card dd { margin: 0; font-weight: 500; }
.info-card p { color: var(--muted); }
.todo { color: rgba(234, 244, 255, 0.4); font-style: italic; font-weight: 400; }

.person-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.person-copy .display { font-size: clamp(3.6rem, 10vw, 8rem); margin: 0.12em 0 0.18em; }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.25s; }
.back-link:hover { color: #fff; }
.back-link svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.back-link:hover svg { transform: translateX(-4px); }

.person-figure { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 460px; width: 100%; margin-inline: auto; --accent: #4fd1ff; }
.person-figure::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent 72%);
}
.person-figure img { position: relative; width: 74%; filter: drop-shadow(0 30px 36px rgba(0, 10, 30, 0.55)); animation: bob 6s ease-in-out infinite; }
.person-ring {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  animation: spin 40s linear infinite;
}

.person-nav { position: relative; z-index: 1; padding-bottom: clamp(60px, 9vw, 120px); }
.person-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.person-nav a { display: grid; gap: 6px; padding: 24px 28px; text-decoration: none; color: #fff; }
.person-nav a:last-child { text-align: right; }
.person-nav small { font: 600 0.72rem/1 var(--ff-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.person-nav strong { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1 var(--ff-display); letter-spacing: -0.03em; }

.gf-page { display: grid; justify-items: center; gap: 36px; }
.gf-page .gf-stage { max-width: 440px; }

.notfound { display: grid; place-items: center; min-height: 100vh; padding: 120px var(--pad) 60px; text-align: center; }

/* ---------- 8. Footer ---------- */
.footer { position: relative; z-index: 2; overflow: hidden; background: var(--abyss); border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: clamp(48px, 7vw, 90px) 30px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: var(--muted); }
.footer h3 { font: 700 0.74rem/1 var(--ff-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer ul.cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer ul a { color: var(--muted); text-decoration: none; transition: color 0.25s, padding 0.35s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 6px; }
.footer-mark {
  margin: 0 0 -0.12em;
  text-align: center;
  font: 800 clamp(4.4rem, 21.5vw, 20rem)/0.82 var(--ff-display);
  letter-spacing: -0.05em;
  white-space: nowrap;
  user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(79, 209, 255, 0.35) 45%, rgba(79, 209, 255, 0) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-bottom { padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; position: relative; z-index: 1; background: var(--abyss); }
.footer-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.to-top { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #fff; font: 600 0.85rem/1 var(--ff-body); cursor: pointer; transition: background 0.3s; }
.to-top:hover { background: rgba(255, 255, 255, 0.1); }
.to-top svg { width: 14px; height: 14px; }

/* ---------- 9. Effects ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9500;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), #fff);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 9400;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 9800;
  width: 0; height: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor.is-on { opacity: 1; }
.cursor-ring {
  position: absolute;
  left: -20px; top: -20px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  mix-blend-mode: difference;
  color: transparent;
  font: 700 0.68rem/1 var(--ff-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.cursor.is-link .cursor-ring { transform: scale(1.7); background: rgba(255, 255, 255, 0.95); border-color: transparent; }
.cursor.is-label .cursor-ring { transform: scale(2.2); background: #fff; border-color: transparent; color: #000; mix-blend-mode: normal; }
.cursor.is-down .cursor-ring { transform: scale(0.8); }

/* page transition wipe */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: none;
  place-items: center;
  background: linear-gradient(180deg, var(--tide), var(--abyss));
  transform: translateY(calc(100% + 90px));
  pointer-events: none;
}
.js .wipe { display: grid; }
.is-wiping .wipe { transform: translateY(0); }
.wipe-edge { position: absolute; left: 0; width: 100%; height: 70px; }
.wipe-edge.top { top: 0; transform: translateY(-99%); }
.wipe-edge.bottom { bottom: 0; transform: translateY(99%) scaleY(-1); }
.wipe-edge path { fill: var(--tide); }
.wipe-edge.bottom path { fill: var(--abyss); }
.wipe img { width: 54px; height: auto; animation: bob 1.4s ease-in-out infinite; }

/* ---------- 10. Responsive & reduced motion ---------- */
@media (max-width: 1000px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { padding-right: 8px; }
  .crew-grid { --cols: 3; }
  .gf-grid, .person-grid, .merch-card { grid-template-columns: 1fr; }
  .person-figure { order: -1; max-width: 340px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --nav-h: 58px; }
  .hero { min-height: 600px; --wl-far: 66%; --wl-near: 78%; --beach: 14%; }
  .sun-wrap { width: 62px; height: 62px; right: 8%; top: 10%; }
  .glint { width: 90px; right: calc(8% - 14px); }
  .hero-logo { height: clamp(130px, 26vh, 220px); }
  .scroll-cue { display: none; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat { display: flex; align-items: baseline; gap: 18px; }
  .stat span { margin: 0; }
  .partner-grid, .info-grid { grid-template-columns: 1fr; }
  .crew-grid { --cols: 2; }
  .crew-card { min-height: 280px; }
  .person-nav-grid { grid-template-columns: 1fr; }
  .person-nav a:last-child { text-align: left; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom-in { flex-direction: column-reverse; align-items: flex-start; }
  .merch-items { gap: 10px; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
}
