/* Beneath the Decks — v2 (white) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FFFFFF;
  --ink: #0E1250;        /* body text: brand navy, deepened */
  --navy: #1B1F8A;       /* brand navy */
  --muted: #555A99;      /* secondary text */
  --line: rgba(27, 31, 138, 0.16);
  --sans: 'Space Grotesk', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ── FLYING LOGOS (fixed layer, behind all content) ── */
.fly { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fly img { position: absolute; left: 0; top: 0; height: auto; opacity: 0.12; will-change: transform; }
main, footer { position: relative; z-index: 1; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.place { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--muted); }
.kicker { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.kicker .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF4D5E; margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 0 4px rgba(255,77,94,.22); }
h2.title { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; max-width: 16ch; color: var(--navy); }
.lede { font-size: 19px; color: var(--muted); max-width: 56ch; margin-top: 20px; }
section { position: relative; }
[id] { scroll-margin-top: 80px; }
.block { padding: clamp(80px, 11vw, 150px) 0; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  padding: 15px 22px; border-radius: 999px;
  border: 1px solid var(--navy); color: var(--navy); background: rgba(255,255,255,.6);
  transition: background .2s, color .2s; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: rgba(27,31,138,.07); }
.btn.solid { background: var(--navy); color: #fff; }
.btn.solid:hover { background: var(--ink); }

/* ── NAV ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); color: var(--navy);
  transition: background .3s, color .3s, box-shadow .3s;
}
.nav.on-dark { color: #fff; }
.nav.scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 16px; }
.nav .brand img { height: 34px; width: 34px; border-radius: 8px; background: #fff; object-fit: cover; }
.nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav ul a { text-decoration: none; font-size: 15px; opacity: .85; }
.nav ul a:hover { opacity: 1; }
.nav ul .btn { padding: 11px 18px; font-size: 14px; opacity: 1; }
.nav.on-dark:not(.scrolled) ul .btn { background: #fff; color: var(--navy); border-color: #fff; }
.menu-btn { display: none; background: none; border: 0; color: inherit; font: 600 15px var(--sans); cursor: pointer; padding: 8px 0; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav ul {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; padding: 8px var(--pad) 28px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open ul { display: flex; }
  .nav.open { background: #fff; color: var(--navy); }
  .nav ul li { width: 100%; }
  .nav ul a { display: block; padding: 14px 0; font-size: 20px; color: var(--navy); }
  .nav ul .btn { display: inline-flex; margin-top: 14px; font-size: 16px; color: #fff; }
}

/* ── HERO (video) ── */
.hero { min-height: 80svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #06082A; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,8,42,.55) 0%, rgba(6,8,42,0) 28%, rgba(6,8,42,.25) 55%, rgba(6,8,42,.88) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 {
  font-size: clamp(76px, 15.5vw, 236px); line-height: .84; letter-spacing: -0.055em; font-weight: 700;
  margin-left: -0.04em;
}
.hero .kicker { color: #fff; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero .place { font-size: clamp(24px, 2.6vw, 34px); margin-top: 14px; color: #fff; }
.hero .sub { max-width: 48ch; color: #DDE0FF; margin-top: 14px; font-size: 17px; }
.hero .btn { border-color: #fff; color: #fff; background: transparent; }
.hero .btn:hover { background: rgba(255,255,255,.12); }
.hero .btn.solid { background: #fff; color: var(--navy); }
.hero .scroll-note { position: absolute; right: var(--pad); bottom: clamp(48px, 8vh, 96px); color: #DDE0FF; font-size: 14px; writing-mode: vertical-rl; }
@media (max-width: 700px) { .hero .scroll-note { display: none; } }

/* ── NEXT EPISODE (VOL 03) ── */
.next .wrap { position: relative; display: grid; grid-template-columns: auto minmax(300px, 1fr) auto; gap: 48px; align-items: end; }
.next h2 { font-size: clamp(54px, 7.4vw, 112px); line-height: .88; letter-spacing: -0.05em; font-weight: 700; color: var(--navy); }
.next .place { font-size: clamp(26px, 3vw, 40px); margin-top: 16px; }
.next .first { font-size: 21px; line-height: 1.4; max-width: 30ch; color: var(--navy); font-weight: 500; }
.next .first + p { color: var(--muted); margin-top: 16px; max-width: 42ch; }
.vclip { position: relative; width: clamp(200px, 20vw, 300px); aspect-ratio: 9/16; border-radius: 8px; overflow: hidden; background: #E9EAF7; }
.vclip video, .vclip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.vrow .vclip { width: 100%; }
@media (max-width: 700px) { .vrow { grid-template-columns: 1fr 1fr; } .vrow .vclip:last-child { display: none; } }
@media (max-width: 1000px) { .next .wrap { grid-template-columns: 1fr; } .next .vclip { width: min(70vw, 300px); } }

/* ── EPISODE INDEX ── */
.index-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.ep {
  display: grid; grid-template-columns: 64px minmax(200px, 340px) 1fr auto; gap: 32px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.ep:last-child { border-bottom: 1px solid var(--line); }
.ep .vol { font-size: 15px; color: var(--muted); align-self: start; padding-top: 6px; font-variant-numeric: tabular-nums; }
.ep .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 6px; background: #E9EAF7; }
.ep .thumb img, .ep .thumb video { width: 100%; height: 100%; object-fit: cover; }
.ep .thumb video { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.ep:hover .thumb video.ready { opacity: 1; }
.ep h3 { font-size: clamp(34px, 4.4vw, 58px); line-height: .95; letter-spacing: -0.04em; font-weight: 700; color: var(--navy); }
.ep h3 a { text-decoration: none; }
.ep h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ep .place { font-size: 24px; margin-top: 6px; }
.ep .blurb { color: var(--muted); margin-top: 10px; max-width: 52ch; font-size: 16px; }
.ep .acts { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ep .acts .btn { justify-content: center; padding: 12px 18px; font-size: 14px; }
@media (max-width: 960px) {
  .ep { grid-template-columns: 1fr; gap: 18px; }
  .ep .vol { padding: 0; }
  .ep .acts { flex-direction: row; flex-wrap: wrap; }
}

/* ── EDGE REEL ── */
.reel .head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
@media (max-width: 860px) { .reel .head { grid-template-columns: 1fr; } }
.mosaic { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(180px, 26vw)); max-height: 820px; padding: 0 8px; }
.mosaic figure { position: relative; overflow: hidden; background: #06082A; border-radius: 4px; }
.mosaic video, .mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .a { grid-column: 1; grid-row: 1 / 3; }
.mosaic .b { grid-column: 2 / 4; grid-row: 1; }
.mosaic .c { grid-column: 4; grid-row: 1 / 3; }
.mosaic .d { grid-column: 2; grid-row: 2; }
.mosaic .e { grid-column: 3; grid-row: 2; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 46vw; max-height: none; }
  .mosaic .a, .mosaic .b, .mosaic .c, .mosaic .d, .mosaic .e { grid-column: auto; grid-row: auto; }
  .mosaic .b { grid-column: 1 / 3; }
}
.reel .foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 15px; }

/* ── CONCEPT ── */
.concept { padding: clamp(44px, 5vw, 64px) 0 clamp(72px, 9vw, 130px); }
.concept .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
.statement { font-size: clamp(48px, 6.6vw, 100px); line-height: .94; letter-spacing: -0.045em; font-weight: 700; color: var(--navy); }
.concept .copy p { font-size: 20px; line-height: 1.5; max-width: 46ch; }
.concept .copy p + p { margin-top: 18px; }
.concept .kick { font-family: var(--serif); font-style: italic; font-size: 26px !important; line-height: 1.3 !important; color: var(--navy); }
@media (max-width: 860px) { .concept .wrap { grid-template-columns: 1fr; gap: 28px; } }

.reel .foot { align-items: center; }
.yt-link { display: inline-flex; transition: transform .2s; }
.yt-link:hover { transform: scale(1.08); }
.yt-logo { width: 68px; height: 48px; }

/* ── LISTEN ── */
.listen .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.listen iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; }
@media (max-width: 860px) { .listen .wrap { grid-template-columns: 1fr; } }

/* ── GALLERY ── */
.gallery { padding: 0 0 clamp(80px, 11vw, 150px); }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 12px; scrollbar-width: thin; scrollbar-color: var(--navy) transparent; }
.strip figure { flex: none; scroll-snap-align: start; }
.strip img { height: clamp(260px, 38vw, 480px); width: auto; border-radius: 6px; }

/* ── ABOUT ── */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 56px; }
.person h3 { font-size: 34px; letter-spacing: -0.03em; line-height: 1.05; color: var(--navy); }
.person .role { color: var(--muted); font-size: 15px; margin-top: 6px; }
.person .place { font-size: 21px; }
.person .email { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--navy); text-underline-offset: 4px; }
.person p.bio { margin-top: 18px; max-width: 54ch; }
.person details { margin-top: 14px; max-width: 54ch; color: var(--muted); }
.person summary { cursor: pointer; color: var(--navy); font-weight: 600; font-size: 15px; list-style: none; }
.person summary::-webkit-details-marker { display: none; }
.person summary::after { content: " +"; }
.person details[open] summary::after { content: " –"; }
.person details p { margin-top: 12px; }
.crew { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 48px; flex-wrap: wrap; color: var(--muted); }
.crew strong { color: var(--navy); font-weight: 600; display: block; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; gap: 40px; } }

/* ── JOIN ── */
.join .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.join.block { padding-top: 0; }
.join form { display: flex; gap: 10px; flex-wrap: wrap; }
.join input[type=email] {
  flex: 1 1 260px; font: 400 17px var(--sans); color: var(--ink);
  background: rgba(255,255,255,.8); border: 1px solid var(--navy); border-radius: 999px; padding: 15px 22px;
}
.join input[type=email]::placeholder { color: var(--muted); }
.join .fine { color: var(--muted); font-size: 14px; margin-top: 12px; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 860px) { .join .wrap { grid-template-columns: 1fr; } }

/* ── FOOTER ── */
footer { padding: 56px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
footer .brand img { height: 72px; width: 72px; border-radius: 14px; object-fit: cover; }
footer .brand p { color: var(--muted); font-size: 14px; margin-top: 14px; }
footer ul { list-style: none; display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
footer ul a { color: var(--muted); text-decoration: none; }
footer ul a:hover { color: var(--navy); }

/* ── EPISODE PAGES ── */
.ep-hero { min-height: 78svh; }
.ep-hero h1 { font-size: clamp(64px, 12vw, 180px); }
.ep-hero .vclip { position: absolute; right: var(--pad); bottom: clamp(48px, 8vh, 96px); z-index: 1; }
@media (max-width: 1000px) { .ep-hero .vclip { display: none; } }
.hero.light { background: transparent; color: var(--navy); }
.hero.light::after { display: none; }
.hero.light .kicker { color: var(--muted); text-shadow: none; font-weight: 400; }
.hero.light .place { color: var(--muted); }
.hero.light .sub { color: var(--muted); }
.hero.light .btn { border-color: var(--navy); color: var(--navy); }
.hero.light .btn.solid { background: var(--navy); color: #fff; }
.player { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: 8px; background: #000; }
.story { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.story .copy p { max-width: 62ch; }
.story .copy p + p { margin-top: 18px; }
.story aside dl { display: grid; gap: 18px; }
.story aside dt { color: var(--muted); font-size: 15px; }
.story aside dd { font-size: 19px; color: var(--navy); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 40px; } }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.more a { text-decoration: none; display: block; }
.more img { aspect-ratio: 16/10; object-fit: cover; width: 100%; border-radius: 6px; }
.more h3 { font-size: 30px; letter-spacing: -0.03em; margin-top: 12px; color: var(--navy); }
.more .place { font-size: 19px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ep .thumb video { display: none; }
}
