/* ============================================================
   The Breathing Cove
   Cold navy. A night sea under a mauve moon.
   Palette sampled from the deck cover (DECK_SLIDE_01_cover.jpg).
   ============================================================ */

:root {
  --bg:          #06080b;  /* deepest water / page ground */
  --bg-2:        #090c13;  /* night sky */
  --panel:       #0f1620;  /* section surfaces */
  --water-deep:  #15202a;
  --water-mid:   #172838;
  --navy:        #2a425b;
  --navy-lit:    #265472;
  --crest:       #355263;
  --crest-bright:#5f89a5;  /* accent */
  --moon:        #3a3d59;
  --moon-warm:   #6c5365;
  --bone:        #e8e3d8;  /* headlines / title lettering */
  --ink:         #a8b6c2;  /* body text, cold */
  --ink-dim:     #6f8090;  /* secondary */
  --label:       #5f7486;  /* mono labels */
  --label-dim:   #45586a;
  --rule:        #16242f;
  --rule-2:      #223644;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'IBM Plex Sans', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: #1d3a4d; color: var(--bone); }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- type helpers ---- */
.mono {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--label);
  font-weight: 400;
}
.mono.dim { color: var(--label-dim); }

/* ============================================================
   Fixed night sea + film texture
   ============================================================ */
#water {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -3;
  touch-action: pan-y;
  background:
    radial-gradient(46% 42% at 66% 26%, #2a2436 0%, rgba(42,36,54,0) 60%),
    linear-gradient(180deg, #090c13 0%, #0a141b 48%, #06080b 100%);
}
/* When WebGL is missing, the painted plate carries the sea. */
.no-webgl #water {
  display: block !important;
  background:
    linear-gradient(180deg, rgba(6,8,11,0) 55%, rgba(6,8,11,0.85) 100%),
    url("images/hero-plate-1600.jpg") center 30% / cover no-repeat,
    #06080b;
}

/* scroll darkening veil (drives depth under reduced motion + deepens water) */
.depth-veil {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #03050a;
  opacity: calc(var(--scroll-depth, 0) * 0.5);
}

/* corner vignette to near black */
.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 42%, rgba(6,8,11,0) 46%, rgba(4,5,9,0.72) 100%);
}

/* static film grain, never repaints on scroll */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   Sticky menu
   ============================================================ */
.menu {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 34px;
  border-bottom: 0.5px solid var(--rule-2);
  background: rgba(6,8,11,0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.wordmark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}
.menu-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.menu-links {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.menu-links::-webkit-scrollbar { display: none; }
.menu-links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  transition: color .25s ease, border-color .25s ease;
}
.menu-links a:hover { color: var(--bone); }
.menu-links a.active { color: var(--crest-bright); border-bottom-color: var(--crest-bright); }

/* newsletter shortcut in the nav */
.menu-cta {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crest-bright);
  border: 0.5px solid var(--crest-bright);
  padding: 8px 16px;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.menu-cta:hover { background: var(--crest-bright); color: var(--bg); }

/* ============================================================
   Layout scaffolding
   ============================================================ */
main { position: relative; z-index: 1; }
.hero, .band { scroll-margin-top: 56px; }  /* clear the sticky menu on anchor jumps */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 34px; }
.wrap.narrow { max-width: 720px; }

.band {
  position: relative;
  padding: 104px 0;
  background: rgba(7,10,15,0.72);
  border-top: 0.5px solid var(--rule);
}
.band + .band { border-top: 0.5px solid var(--rule); }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 0 0 44px 0;
}
.sec-head .num { color: var(--crest-bright); font-size: 14px; }
.sec-head .lbl {
  color: var(--bone);
  font-size: 16px;
  letter-spacing: 0.22em;
}
.sec-head .line { flex: 1 1 auto; height: 0.5px; background: var(--rule-2); transform: translateY(-3px); }

.lede {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bone);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.28;
  letter-spacing: 0.002em;
  max-width: 24ch;
  margin: 0 0 30px 0;
}
.prose {
  max-width: 60ch;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.78;
  margin: 0 0 20px 0;
}
.prose:last-child { margin-bottom: 0; }

.sub-label { display: block; margin: 0 0 18px; color: var(--label); }
.sub-label--gap { margin-top: 46px; }
.logline {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bone);
  font-size: clamp(21px, 2.7vw, 31px);
  line-height: 1.4;
  letter-spacing: 0.002em;
  max-width: 34ch;
  margin: 0;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 0.5px solid var(--rule-2);
  color: var(--ink);
  background: rgba(6,8,11,0.35);
  transition: border-color .25s ease, color .25s ease, background .25s ease;
  cursor: pointer;
}
.btn:hover { border-color: var(--crest-bright); color: var(--bone); }
.btn--primary { color: var(--crest-bright); }
.btn--primary:hover { background: rgba(95,137,165,0.08); border-color: var(--crest-bright); }
.btn--big { padding: 18px 40px; font-size: 11px; }
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
  color: var(--label);
  border-color: var(--rule);
  background: transparent;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 53px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 120px;
}
/* soft scrim so the hero type stays legible over the bright breaking foam */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(62% 58% at 50% 50%, rgba(5,7,11,0.6) 0%, rgba(5,7,11,0.28) 45%, rgba(5,7,11,0) 74%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-cue { z-index: 1; }
.hero-eyebrow { color: var(--label); margin-bottom: 30px; }
.hero-title { margin: 0; width: 100%; }
.hero-title-img {
  width: min(90vw, 1000px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 40px rgba(0,0,0,0.6));
}
.hero-title-fallback {
  display: none;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--bone);
  font-size: clamp(44px, 10vw, 118px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.hero-title.img-missing .hero-title-fallback { display: block; }

/* the title PNG already carries the credit; only show this block if the
   image is missing and the CSS title fallback is in play */
.hero-credit { display: none; margin: 22px 0 0; line-height: 1.5; }
.hero-title.img-missing + .hero-credit { display: block; }
.credit-script {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(16px, 2vw, 21px);
  text-shadow: 0 1px 14px rgba(0,0,0,0.6);
}
.credit-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--bone);
  font-size: clamp(15px, 1.9vw, 22px);
  margin-top: 4px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.6);
}
.hero-quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--bone);
  font-size: clamp(17px, 2.3vw, 24px);
  margin: 40px 0 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 2px 24px rgba(0,0,0,0.9);
}
.hero .btn-row { margin-top: 34px; justify-content: center; }
/* the hero buttons sit over the brightest water, so give them a solid,
   blurred backdrop and brighter labels for legibility */
.hero .btn {
  font-size: 11px;
  color: var(--bone);
  background: rgba(6,8,11,0.62);
  border-color: var(--rule-3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero .btn--primary { color: var(--crest-bright); }
.hero .btn:hover { border-color: var(--crest-bright); color: var(--bone); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: var(--label);
}
.scroll-cue .bar {
  width: 0.5px;
  height: 36px;
  background: linear-gradient(180deg, rgba(95,137,165,0) 0%, var(--crest-bright) 100%);
  animation: scrollpulse 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.5); }
  50%      { opacity: 0.9;  transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue .bar { animation: none; opacity: 0.6; }
}

/* ============================================================
   Proof of Concept + Behind the Scenes video
   ============================================================ */
.player-card {
  border: 0.5px solid var(--rule-2);
  background: #04080a;
}
.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #04080a;
}
.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* click-to-play poster (nicer than a black Vimeo frame, and defers the embed) */
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #05090d;
  display: block;
}
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-poster::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,8,11,0.12) 0%, rgba(6,8,11,0.5) 100%);
}
.play-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 0.5px solid rgba(233,239,236,0.75);
  background: rgba(6,8,11,0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  font-size: 21px;
  padding-left: 5px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.video-poster:hover .play-btn {
  border-color: var(--crest-bright);
  background: rgba(95,137,165,0.28);
  transform: translate(-50%, -50%) scale(1.07);
}
.placeholder-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(80% 70% at 50% 40%, #0d1a24 0%, rgba(13,26,36,0) 70%),
    #05090d;
}
.player-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 0.5px solid var(--rule);
}
.player-caption .mono { font-size: 13px; }
.player-caption a { color: var(--label); transition: color .25s ease; }
.player-caption a:hover { color: var(--crest-bright); }

/* ---- BTS still grid ---- */
.still-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.still {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 0.5px solid var(--rule);
}
.still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* hide empty still slots (and their grid) until stills are added */
.still.is-empty { display: none; }
.still-grid.is-empty { display: none; }
.still figcaption {
  position: absolute;
  left: 10px;
  bottom: 8px;
  z-index: 2;
  color: var(--label);
}
.still::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,8,11,0) 55%, rgba(6,8,11,0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================================
   About the Director
   ============================================================ */
.director {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}
.director-portrait {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  border: 0.5px solid var(--rule-2);
}
.director-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.director-portrait figcaption { display: none; }
.director-name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--bone);
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 6px;
  line-height: 1;
}
.director-role { display: block; color: var(--crest-bright); margin-bottom: 20px; }
.bio-pending { color: var(--ink-dim); font-style: italic; }

/* ============================================================
   Support
   ============================================================ */
#mailing .wrap { text-align: center; }
#mailing .sec-head { text-align: left; }
.support-ask {
  font-family: var(--serif);
  color: var(--bone);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  margin: 0 0 30px;
}
.trust { margin-top: 18px; color: var(--label-dim); }

/* mailing list sign-up */
.signup {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.signup-input {
  flex: 1 1 280px;
  max-width: 380px;
  background: rgba(12,18,24,0.72);
  border: 1px solid var(--navy);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 17px 18px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.signup-input::placeholder { color: var(--label); text-transform: none; letter-spacing: 0.04em; }
.signup-input:focus {
  outline: none;
  border-color: var(--crest-bright);
  background: rgba(12,18,24,0.92);
  box-shadow: 0 0 0 3px rgba(95,137,165,0.16);
}
.signup-btn { flex: 0 0 auto; cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bd-credit { margin-top: 14px; }
.bd-credit a { color: var(--label-dim); transition: color .25s ease; }
.bd-credit a:hover { color: var(--label); }

/* ============================================================
   Footer
   ============================================================ */
.foot {
  position: relative;
  z-index: 1;
  background: rgba(4,6,10,0.9);
  border-top: 0.5px solid var(--rule-2);
}
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 34px 46px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-mark {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bone);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}
.foot-genre { color: var(--label); }
.foot-nav { display: grid; gap: 12px; justify-items: end; }
.foot-nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label);
  transition: color .25s ease;
}
.foot-nav a:hover { color: var(--bone); }
.foot-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px 40px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 0.5px solid var(--rule);
}
.foot-legal .credit { color: var(--label); }
.foot-legal .copy { color: var(--label-dim); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .director { grid-template-columns: 1fr; gap: 26px; }
  .director-portrait { max-width: 220px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .menu { padding: 14px 18px; gap: 14px; }
  .wordmark { font-size: 12px; letter-spacing: 0.16em; }
  .menu-links { gap: 16px; }
  .wrap { padding: 0 20px; }
  .band { padding: 72px 0; }
  .still-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .foot-inner { padding: 46px 20px 38px; gap: 30px; }
  .foot-top { flex-direction: column; gap: 26px; }
  .foot-nav { justify-items: start; }
  .foot-legal { flex-direction: column; gap: 10px; }
}
