/* ==========================================================================
   GrayLight Fishing
   Night palette taken from the logo: lighthouse gray on black, warm lantern
   light, and the yellow used across the channel's thumbnails as the accent.
   ========================================================================== */

:root {
  --ink: #05070a;
  --ink-2: #0a0e13;
  --panel: rgba(13, 17, 23, 0.78);
  --panel-solid: #0d1117;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eceef1;
  --muted: #a3abb5;
  --dim: #5f6873;
  --steel: #8a8e95;
  --beam: #fff4d6;
  --accent: #ffcf2e;
  --accent-ink: #191304;
  --yt: #ff2d2d;

  --font-display: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

@property --r { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --dark { syntax: '<number>'; inherits: true; initial-value: 0.55; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }

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

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.2 var(--font-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Stage (fixed scene) ---------- */

.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#beam { mix-blend-mode: screen; }
#lighthouse {
  position: absolute; left: 0; top: 0;
  width: 920px; height: 900px; max-width: none;
  transform-origin: 0 0;
}
.lh-glass { filter: drop-shadow(0 0 6px rgba(255, 240, 200, 0.9)); }

.intro-badge { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.intro-ring {
  position: absolute;
  left: calc(var(--cx) - var(--r0)); top: calc(var(--cy) - var(--r0));
  width: calc(var(--r0) * 2); height: calc(var(--r0) * 2);
  overflow: visible;
}
.intro-ring circle {
  fill: none; stroke: #7b7e83; stroke-width: 0.045;
  stroke-dasharray: 6.1; stroke-dashoffset: 6.1; /* circumference of r=.965 */
  transform: rotate(-90deg);
}
.intro-wordmark {
  position: absolute;
  left: calc(var(--cx) - var(--r0) * 0.66); top: calc(var(--cy) + var(--r0) * 0.25);
  width: calc(var(--r0) * 1.32); height: auto; max-width: none;
  opacity: 0;
}
.is-intro .intro-badge { opacity: 1; visibility: visible; }
.intro-badge.is-drawing .intro-ring circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.intro-badge.is-drawing .intro-wordmark { opacity: 0.55; transition: opacity 0.9s 0.35s ease; }
.intro-badge.is-out { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }

.flash {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 40%), #fff 0%, #fffaf0 35%, #ffeccb 100%);
  opacity: 0;
}

/* While the intro plays, hide everything but the stage */
.is-intro main, .is-intro .nav { opacity: 0; visibility: hidden; }
main, .nav { transition: opacity 1s 0.15s ease, visibility 0s; }

main { position: relative; z-index: 2; }

/* ---------- Buttons & links ---------- */

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 700 14px/1 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(255, 207, 46, 0.6); }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 207, 46, 0.8); background: #ffd84f; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
.btn--yt { background: var(--yt); color: #fff; }
.btn--yt:hover { background: #ff4a4a; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 13px; }
.btn--xl { --h: 60px; padding: 0 30px; font-size: 16px; }
.btn--xl svg { width: 24px; height: 24px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line-2);
  transition: color 0.2s, border-color 0.2s, gap 0.3s var(--ease);
}
.link-arrow::after { content: '→'; font-family: var(--font-body); color: var(--accent); }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter);
  padding-top: max(18px, env(safe-area-inset-top));
  transition: background 0.4s, padding 0.4s, border-color 0.4s, opacity 1s 0.15s, visibility 0s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 18px; height: 26px; overflow: visible; }
.brand-lantern { fill: #fff4d6; animation: lantern 4.5s ease-in-out infinite; filter: drop-shadow(0 0 4px #ffe7a8); }
.brand img { height: 22px; width: auto; opacity: 0.92; }
@keyframes lantern { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  position: relative;
  font: 600 12.5px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 8px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px;
  background: none; border: 1px solid var(--line-2); border-radius: 50%;
  cursor: pointer; position: relative;
}
.nav-toggle i { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease); }
.nav-toggle i:first-child { top: 17px; }
.nav-toggle i:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 25;
  background: radial-gradient(120% 80% at 0% 0%, rgba(255, 244, 214, 0.08), transparent 60%), rgba(5, 7, 10, 0.97);
  display: grid; place-items: center;
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; text-align: center; }
.menu a {
  font: 400 clamp(40px, 12vw, 64px)/1.1 var(--font-display); text-transform: uppercase;
  color: var(--text); text-decoration: none;
  opacity: 0; transform: translateY(16px); animation: menuIn 0.5s var(--ease) forwards;
}
.menu a:nth-child(2) { animation-delay: 0.05s; } .menu a:nth-child(3) { animation-delay: 0.1s; }
.menu a:nth-child(4) { animation-delay: 0.15s; } .menu a:nth-child(5) { animation-delay: 0.2s; }
.menu a.menu-sub { margin-top: 20px; font: 700 15px/1 var(--font-body); letter-spacing: 0.08em; color: var(--accent); animation-delay: 0.25s; }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.hero-inner {
  min-width: 0;
  margin-left: 37vw; margin-right: var(--gutter);
  padding: 120px 0 140px;
}
.hero .eyebrow { color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255, 207, 46, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 207, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 207, 46, 0); } }

.hero-title {
  position: relative;
  margin: 18px 0 26px;
  font: 400 clamp(64px, 12.4vw, 236px)/0.86 var(--font-display);
  text-transform: uppercase; letter-spacing: 0.005em;
}
.ht { display: block; }
.ht-base {
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-stroke: 1.5px rgba(226, 232, 240, 0.42);
}
.ht-lit, .ht-flare {
  /* oversized box so the glow isn't clipped by the mask at the element's edges */
  position: absolute; inset: -0.25em; padding: 0.25em;
  color: #fffaf0;
  -webkit-text-stroke: 1.5px #fff;
  text-shadow: 0 0 18px rgba(255, 232, 180, 0.65), 0 0 60px rgba(255, 220, 150, 0.3);
  pointer-events: none;
}
.ht-lit {
  opacity: 0;
  --soft: calc(var(--bhw, 6deg) * 0.6);
  -webkit-mask-image:
    conic-gradient(from calc(var(--bdir, 90deg) - var(--bhw, 6deg) - var(--soft)) at var(--bx, 0px) var(--by, 0px),
      transparent 0deg, #000 var(--soft), #000 calc(var(--soft) + 2 * var(--bhw, 6deg)), transparent calc(2 * var(--soft) + 2 * var(--bhw, 6deg)), transparent 360deg),
    radial-gradient(circle at var(--bx, 0px) var(--by, 0px), #000 calc(var(--blen, 0px) * 0.72), transparent var(--blen, 0px));
  -webkit-mask-composite: source-in;
  mask-image:
    conic-gradient(from calc(var(--bdir, 90deg) - var(--bhw, 6deg) - var(--soft)) at var(--bx, 0px) var(--by, 0px),
      transparent 0deg, #000 var(--soft), #000 calc(var(--soft) + 2 * var(--bhw, 6deg)), transparent calc(2 * var(--soft) + 2 * var(--bhw, 6deg)), transparent 360deg),
    radial-gradient(circle at var(--bx, 0px) var(--by, 0px), #000 calc(var(--blen, 0px) * 0.72), transparent var(--blen, 0px));
  mask-composite: intersect;
}
.ht-flare { opacity: 0; }

.hero-sub { max-width: 34em; font-size: clamp(16px, 1.35vw, 19px); color: var(--muted); }
.hero-sub em { font-style: normal; color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-latest {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  margin-top: 26px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  text-decoration: none; font-size: 14px; color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.hero-latest:hover { border-color: var(--line-2); color: var(--text); }
.hero-latest[hidden] { display: none; }
.hero-latest .tag { flex: none; padding: 5px 10px; border-radius: 999px; background: var(--yt); color: #fff; font: 700 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.hero-latest-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 40px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--beam); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- 50 Fish Before 50 ---------- */

.fifty { position: relative; height: 360vh; }
.fifty-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
}
.fifty-head { position: absolute; left: 24vw; top: max(92px, 11vh); max-width: 44vw; }
.fifty-title {
  margin-top: 12px;
  font: 400 clamp(44px, 5.4vw, 92px)/0.9 var(--font-display); text-transform: uppercase;
}
.fifty-title span { color: var(--steel); }
.br-m { display: none; }
.fifty-lede { margin-top: 12px; max-width: 36em; color: var(--muted); font-size: 15px; }

.fifty-count {
  position: absolute; right: 4vw; top: max(92px, 11vh);
  display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; column-gap: 10px;
  text-align: right;
}
.fc-num { font: 400 clamp(64px, 8vw, 132px)/0.85 var(--font-display); color: var(--accent); text-shadow: 0 0 40px rgba(255, 207, 46, 0.35); font-variant-numeric: tabular-nums; }
.fc-of { font: 400 clamp(24px, 2.4vw, 40px)/1 var(--font-display); color: var(--steel); }
.fc-label { grid-column: 1 / -1; margin-top: 8px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.fc-bar { grid-column: 1 / -1; margin-top: 12px; height: 3px; width: 100%; min-width: 180px; background: var(--line); border-radius: 3px; overflow: hidden; }
.fc-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width 0.5s var(--ease); }

.fifty-grid {
  position: absolute; left: 24vw; right: 4vw; top: 36vh; bottom: 9vh;
  display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(5, 1fr);
  gap: clamp(4px, 0.55vw, 10px);
  margin: 0; padding: 0; list-style: none;
}
.fifty-status {
  position: absolute; left: 24vw; bottom: 3vh;
  font: 600 11px/1.2 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
  transition: color 0.4s;
}
.fifty-status.is-done { color: var(--text); }
.fifty-status a { color: var(--accent); }

.tile {
  --lit: 0;
  position: relative; overflow: hidden;
  border-radius: 8px;
  background: rgba(16, 21, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.5s, box-shadow 0.5s, background 0.5s;
}
.tile > a, .tile > div { position: absolute; inset: 0; display: block; color: inherit; text-decoration: none; }
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.18);
  transition: filter 0.8s ease, transform 0.8s var(--ease);
}
.tile::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(140% 120% at var(--lx, 0%) var(--ly, 50%), rgba(255, 244, 214, 0.75), rgba(255, 244, 214, 0.12) 60%, transparent 85%);
  mix-blend-mode: screen;
  opacity: var(--lit);
}
.tile-num { position: absolute; top: 7px; left: 8px; z-index: 1; font: 600 10px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--dim); transition: color 0.5s; }
.tile-q {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 clamp(18px, 2vw, 34px)/1 var(--font-display); color: rgba(255, 255, 255, 0.06);
  transition: color 0.6s;
}
.tile-name {
  position: absolute; left: 8px; right: 8px; bottom: 7px; z-index: 1;
  font: 700 clamp(10px, 0.82vw, 13px)/1.15 var(--font-body); color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s var(--ease);
}
.tile-sci { display: block; margin-top: 2px; font: 500 italic clamp(8px, 0.62vw, 10px)/1.2 var(--font-body); color: rgba(255, 255, 255, 0.7); }
.tile-check {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
  transform: scale(0); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.tile-check svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; }

.tile.is-found .tile-num { color: var(--muted); }
.tile.is-found:not(.is-caught) .tile-q { color: rgba(255, 255, 255, 0.2); }
.tile.is-target.is-found .tile-q { color: transparent; }
.tile.is-target.is-found .tile-name { opacity: 0.55; transform: none; font-weight: 600; }
.tile.is-target .tile-name::before { content: 'Wanted'; display: block; font: 600 8px/1.4 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

.tile.is-caught { background: linear-gradient(160deg, rgba(30, 40, 52, 0.7), rgba(12, 16, 22, 0.7)); }
.tile.is-caught.is-found { border-color: rgba(255, 207, 46, 0.5); box-shadow: 0 0 0 1px rgba(255, 207, 46, 0.15), 0 10px 30px -12px rgba(255, 207, 46, 0.4); }
.tile.is-caught.is-found img { filter: brightness(0.82) saturate(1.05); }
.tile.is-caught.is-found .tile-name { opacity: 1; transform: none; }
.tile.is-caught.is-found .tile-check { transform: scale(1); }
.tile.is-caught.is-found::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 60%);
}
.tile.is-caught a:hover img { transform: scale(1.08); }
.tile.flash { animation: tileFlash 0.9s var(--ease); }
@keyframes tileFlash {
  0% { box-shadow: 0 0 0 2px #fff, 0 0 50px 10px rgba(255, 236, 180, 0.9); transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ---------- Generic sections ---------- */

.section { position: relative; padding: clamp(96px, 16vh, 180px) 0; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 40px; margin-bottom: clamp(36px, 6vh, 64px);
}
.section-head h2 {
  margin-top: 16px;
  font: 400 clamp(52px, 8.4vw, 132px)/0.88 var(--font-display); text-transform: uppercase;
}
.section-lede { max-width: 26em; color: var(--muted); font-size: 17px; }

.js .beam-text {
  background-image: linear-gradient(100deg, var(--text) 0%, var(--text) 40%, #fff 46%, #fff6dc 49%, rgba(255, 255, 255, 0.12) 56%, rgba(255, 255, 255, 0.12) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  transition: background-position 1.8s var(--ease);
}
.js .beam-text.is-in { background-position: 0 0; }

.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Videos ---------- */

.feature {
  display: grid; grid-template-columns: 1.55fr 1fr;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  min-height: 200px;
}
.feature-media { position: relative; aspect-ratio: 16 / 9; display: block; overflow: hidden; background: #0b0e12; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feature-badge { display: inline-flex; align-items: center; gap: 10px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.feature-title { font: 800 clamp(22px, 2.3vw, 34px)/1.15 var(--font-body); letter-spacing: -0.01em; }
.feature-blurb { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feature-meta, .vcard-meta { font: 500 12px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--dim); }
.feature-body .btn { align-self: flex-start; margin-top: 6px; }

.play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(5, 7, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}
.play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.feature:hover .play, .vcard:hover .play { transform: scale(1.1); background: var(--accent); border-color: var(--accent); }
.feature:hover .play svg, .vcard:hover .play svg { fill: var(--accent-ink); }

.glint {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 246, 220, 0.42) 48%, rgba(255, 246, 220, 0.1) 54%, transparent 66%);
  transform: translateX(-130%);
}
.feature:hover .glint, .vcard:hover .glint, .short:hover .glint { transform: translateX(130%); transition: transform 1s ease; }

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; margin-top: 28px; }
.vcard { display: block; text-decoration: none; color: inherit; }
.vcard-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: #0b0e12; border: 1px solid var(--line); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.88); transition: transform 0.8s var(--ease), filter 0.6s; }
.vcard:hover .vcard-media img { transform: scale(1.06); filter: none; }
.vcard .play { width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: 0; }
.vcard .play svg { width: 18px; height: 18px; }
.vcard:hover .play, .vcard:focus-visible .play { opacity: 1; }
.vcard-title {
  margin-top: 14px; font: 600 16px/1.35 var(--font-body);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.vcard:hover .vcard-title { color: var(--accent); }
.vcard-meta { display: block; margin-top: 6px; }

.shorts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: clamp(56px, 9vh, 96px) 0 20px; }
.shorts-head h3 { font: 400 clamp(32px, 3.6vw, 52px)/1 var(--font-display); text-transform: uppercase; }
.shorts {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 17vw, 200px);
  gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.short { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; scroll-snap-align: start; background: #0b0e12; border: 1px solid var(--line); text-decoration: none; color: #fff; }
.short img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.short:hover img { transform: scale(1.06); }
.short::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%); }
.short-title {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  font: 600 13px/1.3 var(--font-body);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.short-views { display: block; margin-top: 4px; font: 500 11px/1 var(--font-mono); color: rgba(255, 255, 255, 0.65); }
.noscript { color: var(--muted); }

.skeleton { background: linear-gradient(100deg, #0d1117 30%, #151b23 50%, #0d1117 70%); background-size: 300% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { background-position: -100% 0; } }

/* ---------- Boats ---------- */

.boat {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
.boat + .boat { margin-top: clamp(80px, 14vh, 160px); }
.boat-media { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.boat-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.boat-media figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px;
  background: rgba(5, 7, 10, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 11px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
}
.boat-kicker { font: 600 12px/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.boat-name { margin-top: 14px; font: 400 clamp(64px, 9vw, 140px)/0.86 var(--font-display); text-transform: uppercase; }
.boat-name--lite { font-style: italic; }
.boat-name--lite span { color: var(--steel); }
.boat-model { margin: 14px 0 22px; font: 600 14px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.boat-body > p:not([class]) { color: var(--muted); font-size: 17px; max-width: 34em; }
.specs { display: grid; gap: 0; margin: 28px 0 30px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 600 11px/1.6 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.specs dd { font-weight: 600; }

.boat--lite {
  grid-template-columns: 1fr 1.1fr;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(120, 190, 220, 0.12), transparent 60%),
    linear-gradient(160deg, rgba(36, 44, 54, 0.75), rgba(12, 16, 22, 0.75));
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lite-logo { position: relative; width: 112px; height: 112px; margin-bottom: 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 20px 50px -20px #000; }
.lite-logo img { width: 100%; height: 100%; }
.lite-sweep {
  position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen;
  background: conic-gradient(from 0deg at 48% 18%, transparent 0deg, rgba(255, 246, 220, 0.55) 10deg, transparent 22deg, transparent 360deg);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.route { margin: 26px 0 28px; max-width: 360px; }
.route svg { width: 100%; overflow: visible; }
.route-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 0.012 0.012; }
.js .route .route-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s 0.3s var(--ease); }
.js .route.is-in .route-line { stroke-dashoffset: 0; }
.route circle { fill: var(--ink); stroke: var(--accent); stroke-width: 2; }
.route text { fill: var(--muted); font: 600 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

.lite-media { position: relative; aspect-ratio: 1 / 1.02; }
.lm { position: absolute; border-radius: 16px; object-fit: cover; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); border: 1px solid var(--line-2); }
.lm-1 { left: 0; top: 4%; width: 86%; aspect-ratio: 16 / 10; }
.lm-2 { right: 0; top: 50%; width: 52%; aspect-ratio: 16 / 10; z-index: 2; }
.lm-3 { left: 6%; bottom: 0; width: 50%; aspect-ratio: 4 / 3; z-index: 1; }

/* ---------- Crew ---------- */

.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.crew-card {
  --mx: 50%; --my: 35%; --r: 0px; --dark: 0.2;
  position: relative; border-radius: 20px; overflow: hidden;
  background: var(--panel-solid); border: 1px solid var(--line);
  transition: --r 0.6s var(--ease), --dark 0.6s var(--ease), border-color 0.4s, opacity 1s var(--ease), transform 1s var(--ease);
}
.js .crew-card[data-reveal] { transition: --r 0.6s var(--ease), --dark 0.6s var(--ease), border-color 0.4s, opacity 1s var(--ease), transform 1s var(--ease); }
.js .crew-card[data-reveal]:nth-child(2) { transition-delay: 0s, 0s, 0s, 0.12s, 0.12s; }
.js .crew-card[data-reveal]:nth-child(3) { transition-delay: 0s, 0s, 0s, 0.24s, 0.24s; }
.crew-photo { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.crew-photo img { width: 100%; height: 100%; object-fit: cover; }
.crew-photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(5, 7, 10, 0) 0, rgba(5, 7, 10, 0) calc(var(--r) * 0.45), rgba(5, 7, 10, var(--dark)) var(--r));
}
@media (hover: hover) {
  .crew-card { --dark: 0.62; }
  .crew-card:hover { --r: 260px; --dark: 0.9; border-color: var(--line-2); }
}
.crew-body { padding: 22px 24px 26px; }
.crew-name { font: 400 44px/1 var(--font-display); text-transform: uppercase; }
.crew-role { margin: 8px 0 12px; font: 600 11.5px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.crew-body p:last-child { color: var(--muted); font-size: 15px; }

.stories { display: grid; gap: 22px; margin-top: clamp(64px, 10vh, 110px); }
.story {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  border-radius: 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.story img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.story--flip img { order: 2; }
.story-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; align-items: flex-start; }
.story-body h3 { font: 400 clamp(34px, 3.6vw, 54px)/0.95 var(--font-display); text-transform: uppercase; }
.story-body p:not(.eyebrow) { color: var(--muted); }

/* ---------- Merch ---------- */

.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.product {
  position: relative; padding: 28px 28px 30px; text-align: center;
  border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(80% 60% at 50% 30%, rgba(255, 244, 214, 0.07), transparent 70%), linear-gradient(180deg, #10151c, #090c10);
  transform-style: preserve-3d;
}
.product-art { padding: 6px 10% 18px; transform: translateZ(40px); transition: transform 0.4s var(--ease); }
.product-art svg { width: 100%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.6)); }
.tee-type { font-family: var(--font-display); }
.product h3 { font: 800 19px/1.2 var(--font-body); }
.product p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.soon { display: inline-block; margin-top: 16px; padding: 7px 12px; border-radius: 999px; border: 1px dashed rgba(255, 207, 46, 0.5); font: 600 10.5px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.merch-cta { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Finale / footer ---------- */

.finale {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
}
.finale-inner { padding: max(14vh, 110px) var(--gutter) 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.finale-title { margin: 16px 0 28px; font: 400 clamp(72px, 13vw, 210px)/0.84 var(--font-display); text-transform: uppercase; }
.footer-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  padding: 80px var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, rgba(5, 7, 10, 0.92) 55%);
  font-size: 13px; color: var(--muted);
}
.footer-bar img { height: 40px; width: auto; opacity: 0.7; }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bar nav a { text-decoration: none; font: 600 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-bar nav a:hover { color: var(--accent); }

/* ---------- Player dialog ---------- */

.player {
  width: min(1100px, 94vw); max-width: none; max-height: 92vh;
  padding: 0; border: 0; border-radius: 18px; overflow: visible;
  background: #000; color: #fff;
}
.player::backdrop { background: rgba(3, 4, 6, 0.86); backdrop-filter: blur(6px); }
.player[open] { animation: playerIn 0.45s var(--ease); }
@keyframes playerIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.player-frame { aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.player.is-short { width: min(420px, 92vw); }
.player.is-short .player-frame { aspect-ratio: 9 / 16; max-height: 86vh; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.player-close svg { width: 18px; height: 18px; stroke: var(--accent-ink); stroke-width: 2.5; fill: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav-links { gap: 20px; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav .btn--yt { margin-left: auto; }

  .boat, .boat--lite { grid-template-columns: 1fr; }
  .boat--lite .lite-media { order: -1; }
  .crew-grid, .merch-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .story { grid-template-columns: 1fr; }
  .story--flip img { order: 0; }
  .story img { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .nav .btn--yt span { display: none; }
  .nav .btn--yt { width: 38px; padding: 0; }

  /* lighthouse sits top-right; the headline lines up with the lantern so the beam can light it */
  .hero { align-items: flex-start; }
  .hero-inner { margin: 0 var(--gutter); padding: calc(30vh - 58px) 0 110px; padding-top: calc(30svh - 58px); }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: 0.16em; }
  .hero-title { font-size: 14vw; margin: 14px 0 22px; }
  .hero-sub { padding-right: 25vw; font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-foot .coords { display: none; }
  .hero-foot { justify-content: center; }

  .vgrid { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .footer-bar { justify-content: center; text-align: center; }
}

/* Tall screens (phones, portrait tablets): 5 x 10 log with the lighthouse at the bottom.
   Keep in sync with the `tall` check in stage.js. */
@media (max-width: 760px), (max-aspect-ratio: 9 / 10) {
  .br-m { display: inline; }
  .fifty { height: 320vh; }
  .fifty-head { left: var(--gutter); right: var(--gutter); top: max(76px, 9vh); max-width: 64vw; }
  .fifty-title { font-size: min(11vw, 84px); }
  .fifty-lede { display: none; }
  .fifty-count { right: var(--gutter); top: calc(max(76px, 9vh) + 18px); }
  .fc-num { font-size: min(16vw, 120px); }
  .fc-of { font-size: min(6vw, 44px); }
  .fc-label, .fc-bar { display: none; }
  .fifty-grid {
    left: var(--gutter); right: var(--gutter); top: calc(max(76px, 9vh) + min(36vw, 230px)); bottom: 19vh;
    grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(10, 1fr);
    gap: clamp(4px, 1vw, 8px);
  }
  .fifty-status { left: var(--gutter); right: var(--gutter); bottom: auto; top: calc(max(76px, 9vh) + min(28.7vw, 196px)); font-size: 9.5px; letter-spacing: 0.14em; }
  .tile { border-radius: 5px; }
  .tile-num { top: 3px; left: 4px; font-size: clamp(7.5px, 1.4vw, 10px); }
  .tile-name { left: 4px; right: 4px; bottom: 3px; font-size: clamp(8.5px, 1.9vw, 13px); }
  .tile-sci, .tile.is-target .tile-name::before { display: none; }
  .tile-check { width: 12px; height: 12px; top: 3px; right: 3px; }
  .tile-check svg { width: 8px; height: 8px; }
  .tile-q { font-size: clamp(16px, 3vw, 26px); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fifty { height: auto; }
  .fifty-pin { position: relative; }
}
