/* ==========================================================================
   Flagship Interactive — core stylesheet
   Palette : the studio's own — Dark Navy, Navy, Wave White, Sky Blue, Sunset
   Type    : Chunky Funks (the studio's own face, used for the loud moments)
             Inter (everything else — set tight, the way Apple sets it)
   ========================================================================== */

/* ---------------------------------------------------- display face ------ */
@font-face {
  font-family: "Chunky Funks";
  src: url("../fonts/ChunkyFunks-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chunky Funks";
  src: url("../fonts/ChunkyFunks-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* --------------------------------------------------------- tokens ------- */
/* Flagship's own palette. Sunset is the only warm thing on the page, so it
   carries every action; the navies do the rest of the work.                */
:root {
  /* brand */
  --navy-dark:  #06205b;   /* Dark Navy Blue */
  --navy:       #0b3fb5;   /* Navy Blue      */
  --wave:       #fffcf9;   /* Wave White     */
  --sky:        #cedaf0;   /* Sky Blue       */
  --sunset:     #de4615;   /* Sunset         */

  /* working shades, all derived from the five above */
  --abyss:      #041439;   /* one step under Dark Navy — the page floor      */
  --hull:       #06205b;
  --deep:       #08296d;
  --tide:       #0b3fb5;
  --azure:      #1a56e0;   /* Navy Blue, lifted — hover and focus states     */
  --focus:      #9dc4ff;   /* the focus ring, readable on every surface      */
  --sunset-lo:  #b3350f;   /* sunset that holds up on Wave White             */
  --sunset-hi:  #f4744a;
  --paper:      #fffcf9;
  --paper-ink:  #06205b;
  --mist:       #aec2e4;   /* Sky Blue, dimmed enough to read as body copy   */
  --foam:       #fffcf9;

  --font-display: "Chunky Funks", "Inter", sans-serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;

  --rail:  84px;
  --pad:   clamp(20px, 5vw, 72px);
  --maxw:  1320px;

  --r-btn:   980px;
  --r-card:  14px;
  --r-input: 10px;

  --ease:  cubic-bezier(.22, .61, .36, 1);
  --slow:  .8s var(--ease);
}

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

/* the eased scroller in main.js owns this; native smooth-scroll would fight it.
   It comes back automatically for anyone on reduced motion or a touch device. */
html { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.011em;          /* Inter reads loose by default; rein it in */
  font-feature-settings: "cv11", "ss01";   /* single-storey a, humanist g */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--sunset); color: var(--wave); }

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

/* --------------------------------------------------------- type --------- */
/* Two voices. Inter carries the structure, set tight and heavy — the closer
   the size gets to display scale, the tighter the tracking runs. Chunky Funks
   (the studio's own face) is saved for the loud moments: the wordmark, the
   hero, and the one accented word inside a section title.                    */

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--foam);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}

/* the studio's face, wherever we want the volume up */
.chunky {
  font-family: var(--font-display);
  font-weight: 400;             /* it only ships one weight — it is the weight */
  letter-spacing: -.005em;
  text-transform: none;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sunset-hi);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section-title {
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -.04em;        /* the bigger it gets, the tighter it sets */
  line-height: 1.03;
}
.section-title em.chunky,
.page-head h1 em.chunky {
  font-style: normal;
  color: var(--sunset-hi);
}

.lede {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
  letter-spacing: -.017em;
  font-weight: 400;
  max-width: 58ch;
}

/* --------------------------------------------------------- shell -------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px);
  padding-left: var(--rail);
}
@media (max-width: 900px) { .section { padding-left: 0; } }

/* chart-grid texture, used on the dark sections */
.charted::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(206,218,240,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(206,218,240,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
}

/* --------------------------------------------------------- header ------- */
.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px var(--pad);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-docked {
  background: rgba(4,20,57, .82);
  backdrop-filter: blur(14px);
  padding-block: 14px;
  border-bottom-color: rgba(206,218,240,.12);
}

.brand { display: flex; align-items: center; }

/* logo.png is the logo — nothing is drawn or typed in its place. Height-capped
   so a 2x/3x export can't blow up the header, and never stretched: the aspect
   ratio is whatever the file says it is. */
.brand-mark {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: height .4s var(--ease), opacity .3s;
}
.masthead.is-docked .brand-mark { height: 52px; }
.foot .brand-mark { height: 72px; }
.brand:hover .brand-mark { opacity: .82; }
@media (max-width: 900px) { .brand-mark { height: 52px; } }
@media (max-width: 600px) { .brand-mark { height: 44px; } }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: -.012em;
  color: var(--foam);
  opacity: .78;
  position: relative;
  padding-block: 4px;
  transition: opacity .25s;
  font-weight: 500;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--sunset);
  transition: width .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-current::after { width: 100%; }

/* The primary action. Blue means "this does something" everywhere on the site;
   Sunset is reserved for highlighting, never for a control. A filled navy
   button on a navy floor needs help separating, so it gets a hairline and a
   cast shadow rather than a louder colour.                                  */
.btn-signal {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--wave);
  background: var(--navy);
  border: 1px solid rgba(255,252,249,.18);
  border-radius: var(--r-btn);
  padding: 15px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  box-shadow: 0 10px 28px -14px rgba(11,63,181,.95);
}
.btn-signal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-signal:hover {
  transform: translateY(-2px);
  background: var(--azure);
  border-color: rgba(255,252,249,.3);
  box-shadow: 0 18px 42px -14px rgba(26,86,224,1);
}
.btn-signal:hover::after { transform: translateX(120%); }
.btn-signal span { position: relative; z-index: 1; }

.burger {
  display: none;
  background: none;
  border: 1px solid rgba(255,252,249,.25);
  padding: 10px 12px;
  cursor: pointer;
}
.burger i { display: block; width: 20px; height: 1px; background: var(--foam); margin: 5px 0; transition: transform .3s var(--ease), opacity .3s; }
.masthead.is-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.masthead.is-open .burger i:nth-child(2) { opacity: 0; }
.masthead.is-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 96px var(--pad) 40px;
    background: rgba(4,20,57,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(206,218,240,.14);
    transform: translateY(-102%);
    transition: transform .5s var(--ease);
  }
  .masthead.is-open .nav { transform: translateY(0); }
  .nav a { font-size: 15px; }
  .nav .btn-signal { width: 100%; justify-content: center; }   /* mobile menu button only, not the hero CTA */
}

/* --------------------------------------------------------- rail --------- */
/* Signature element: a sounding line. Fills as you descend the page,      */
/* and reports which water you're currently in.                            */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.rail.is-live { opacity: 1; }
.rail-track {
  position: relative;
  width: 1px;
  height: 46vh;
  background: rgba(206,218,240,.18);
}
.rail-fill {
  position: absolute;
  top: 0; left: 0;
  width: 1px;
  height: 0;
  background: var(--sunset);
  box-shadow: 0 0 12px rgba(222,70,21,.7);
}
.rail-bob {
  position: absolute;
  top: 0; left: 50%;
  width: 9px; height: 9px;
  margin: -4px 0 0 -4px;
  border: 1px solid var(--sunset);
  background: var(--abyss);
  transform: rotate(45deg);
}
.rail-mark {
  position: absolute;
  left: 50%;
  width: 8px; height: 1px;
  background: rgba(206,218,240,.35);
  transform: translateX(-50%);
}
.rail-depth {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sunset-hi);
  margin-top: 18px;
  font-feature-settings: "tnum";
}
.rail-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  writing-mode: vertical-rl;
  margin-bottom: 18px;
  opacity: .7;
  height: 130px;
  display: flex;
  align-items: center;
}
@media (max-width: 900px) { .rail { display: none; } }

/* --------------------------------------------------------- hero --------- */
/* One frame, no carousel. The trailer is the hero — a publisher's shopfront
   is the game itself, not a rotating billboard.                             */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #041439;
}

/* the single shared trailer, behind every slide. Slides 2 and 3 carry the
   same game for now, so one muted player serves both — no re-cueing, no
   flash. Give a future game its own trailer and this grows a cue step. */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #041439; }
.hero-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw;
  height: 56.25vw;              /* 16:9 by width  */
  min-height: 100vh;
  min-width: 177.78vh;          /* 16:9 by height */
  transform: translate(-50%, -50%) scale(1.02);
  border: 0;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-bg iframe { display: none; } }

/* the slides, stacked and crossfading */
.hero-slides { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  /* top clears the fixed header, bottom reserves the control band (scroll hint
     + dots) so even the tall slides centre their copy above it, never over it */
  padding: clamp(104px, 13vh, 150px) 0 clamp(96px, 12vh, 128px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* each slide's own still, above the shared trailer. The live game slide
   lifts its poster to reveal the footage underneath. */
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .7s var(--ease);
}
.hero-slide.trailer-live .hero-poster { opacity: 0; }

/* slide one's backdrop is drawn, not photographed */
.slide-brand .hero-poster {
  background:
    radial-gradient(120% 90% at 12% 12%, rgba(26,86,224,.38), transparent 58%),
    radial-gradient(130% 100% at 92% 96%, rgba(222,70,21,.20), transparent 55%),
    linear-gradient(180deg, #041439, #08296d 68%, #06205b);
}

.hero-slide::after {              /* the scrim that keeps the type readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--abyss) 1%, rgba(4,20,57,.45) 45%, rgba(4,20,57,.62) 100%),
    linear-gradient(to right, rgba(4,20,57,.75) 0%, rgba(4,20,57,.25) 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  padding-left: calc(var(--rail) + var(--pad));
}
@media (max-width: 900px) { .hero-inner { padding-left: var(--pad); } }

.hero-copy { max-width: 760px; }

/* the mark, at the size it deserves — this is the brand's first word */
.hero-logo {
  height: clamp(44px, 3.6vw, 56px);   /* deliberately quiet — the header already
                                          carries the mark; this one just signs
                                          the statement underneath it */
  width: auto;
  object-fit: contain;
  margin-bottom: 26px;
  opacity: .95;
}
/* the copy rises each time its slide becomes active, not just on first load */
.hero-copy > * { opacity: 0; transform: translateY(26px); }
.hero-slide.is-active .hero-copy > * { animation: rise .9s var(--ease) forwards; }
.hero-slide.is-active .hero-copy > *:nth-child(1) { animation-delay: .12s; }
.hero-slide.is-active .hero-copy > *:nth-child(2) { animation-delay: .24s; }
.hero-slide.is-active .hero-copy > *:nth-child(3) { animation-delay: .36s; }
.hero-slide.is-active .hero-copy > *:nth-child(4) { animation-delay: .48s; }
.hero-slide.is-active .hero-copy > *:nth-child(5) { animation-delay: .60s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* the pulsing "Now playing" tag above a game slide's title */
.hero-tag { margin-bottom: 16px; }

.hero h1 {
  font-size: clamp(46px, 7.4vw, 108px);
  line-height: .97;
  letter-spacing: -.045em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-weight: 400;
  font-style: normal;
  letter-spacing: -.01em;
  color: var(--sunset-hi);
}
/* the branded display face is reserved for the opening slide — whatever type
   it happens to be saved as. Every slide after it keeps the accent colour but
   stays in the heading's own font, so the studio face keeps its weight. */
.hero-slides > .hero-slide:first-child h1 em {
  font-family: var(--font-display);
  letter-spacing: -.01em;
}
.hero p {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  letter-spacing: -.016em;
  color: rgba(255,252,249,.8);
  max-width: 46ch;
  margin: 0 0 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-line {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--foam);
  border: 1px solid rgba(255,252,249,.28);
  background: rgba(255,252,249,.05);
  backdrop-filter: blur(6px);
  border-radius: var(--r-btn);
  padding: 15px 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.btn-line:hover { border-color: var(--azure); background: rgba(26,86,224,.2); transform: translateY(-2px); }

/* on phones the copy fills the frame, so the duplicate hero logo comes off —
   the header already carries the mark. */
@media (max-width: 640px) {
  .hero-logo { display: none; }
}

/* ------------------------------------------------ slider controls ------- */
/* Dots bottom-centre, arrows on the flanks. All sit above the scrim. */
.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 44px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.hero-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  background: rgba(255,252,249,.25);
  transition: background .3s, width .3s var(--ease);
}
.hero-dot:hover { background: rgba(255,252,249,.5); }
.hero-dot.is-active { width: 48px; background: var(--sunset); }

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--foam);
  border: 1px solid rgba(255,252,249,.28);
  background: rgba(4,20,57,.4);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.hero-arrow:hover { border-color: var(--azure); background: rgba(26,86,224,.35); }
.hero-prev { left: calc(var(--rail) + 10px); }
.hero-next { right: 24px; }
.hero-arrow:hover.hero-prev { transform: translateY(-50%) translateX(-2px); }
.hero-arrow:hover.hero-next { transform: translateY(-50%) translateX(2px); }
@media (max-width: 640px) {
  .hero-arrow { display: none; }        /* swipe instead */
  .hero-dots { bottom: 30px; }
}

.now-playing {
  position: absolute;
  z-index: 4;
  right: var(--pad);
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(4,20,57,.6);
  border: 1px solid rgba(206,218,240,.2);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s;
  pointer-events: none;
  border-radius: var(--r-card);
}
.hero-slide.is-active .now-playing { opacity: 1; transform: none; pointer-events: auto; }
.now-playing:hover { border-color: var(--azure); }
.np-text { font-family: var(--font-sans); font-size: 13px; letter-spacing: -.008em; color: var(--mist); line-height: 1.5; }
.np-text b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.018em; color: var(--foam); margin: 2px 0 1px; }
.np-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sunset-hi); }
.np-live::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--sunset);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.np-sound {
  background: none;
  border: 1px solid rgba(206,218,240,.3);
  color: var(--foam);
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .3s, color .3s;
  border-radius: 50%;
}
.np-sound:hover { border-color: var(--azure); background: rgba(26,86,224,.4); color: var(--wave); }
@media (max-width: 900px) { .now-playing { display: none; } }

/* --------------------------------------------------------- grain -------- */
/* A whisper of film grain so the flat gradients read as photographed sea.  */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  animation: shift 700ms steps(3) infinite;
}
@keyframes shift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-3%, 2%); }
  66%  { transform: translate(2%, -3%); }
}

/* ------------------------------------------------------ lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 5vw, 60px);
  background: rgba(4, 20, 57, .94);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-frame {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(222,70,21,.35);
  background: #000;
  transform: scale(.96);
  transition: transform .5s var(--ease);
}
.lightbox.is-open .lightbox-frame { transform: none; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox-close {
  position: absolute;
  top: 26px; right: 26px;
  background: none;
  border: 1px solid rgba(206,218,240,.3);
  color: var(--foam);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.01em;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color .3s, color .3s;
  border-radius: var(--r-btn);
}
.lightbox-close:hover { border-color: var(--azure); background: rgba(26,86,224,.35); color: var(--wave); }

/* ------------------------------------------------------- long haul ------ */
/* The publishing promise, evidenced: eight years on one game.              */
.haul { background: var(--hull); }
.haul-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .haul-grid { grid-template-columns: 1fr; } }

.plate {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  border: 1px solid rgba(206,218,240,.18);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: border-color .4s, transform .5s var(--ease);
  border-radius: var(--r-card);
}
.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4,20,57,.85), rgba(4,20,57,.25));
  transition: background .4s;
}
.plate:hover { border-color: var(--azure); transform: translateY(-4px); }
.plate:hover::after { background: linear-gradient(to top, rgba(4,20,57,.75), rgba(4,20,57,.1)); }
.plate-play {
  position: absolute;
  z-index: 2;
  inset: 0;
  margin: auto;
  width: 74px; height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,252,249,.6);
  border-radius: 50%;
  color: var(--foam);
  background: rgba(4,20,57,.4);
  backdrop-filter: blur(4px);
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease);
}
.plate:hover .plate-play { background: var(--navy); border-color: var(--azure); color: var(--wave); transform: scale(1.06); }
.plate-tag {
  position: absolute;
  z-index: 2;
  left: 18px; bottom: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--foam);
  text-align: left;
}
.plate-tag span {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sunset-hi);
  margin-bottom: 5px;
}

/* the eight-year run, as a chart scale */
.years {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(206,218,240,.18);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .01em;
  color: rgba(206,218,240,.55);
  font-feature-settings: "tnum";
}
.years b { color: var(--sunset-hi); font-weight: 500; }

/* --------------------------------------------------------- fleet -------- */
.fleet-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.fleet-count {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -.005em;
  color: var(--mist);
  font-weight: 500;
}

/* The fleet sizes itself to the fleet. auto-fit drops the tracks nobody filled,
   so three games stretch across the full row exactly as four would — the shelf
   never ends in a hole where a fourth card was expected. 260px is the floor a
   card can hold its art at, which lands on 4 across at full width and steps
   down to 3, 2, then 1 on its own. No breakpoints to keep in sync. */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(11,63,181,.16), rgba(6,32,91,.5));
  border: 1px solid rgba(206,218,240,.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease);
  border-radius: var(--r-card);
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(26,86,224,.75);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.card-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-art > .art-layer {
  position: absolute;
  inset: 0;
  transition: transform .8s var(--ease);
}
.card:hover .card-art > .art-layer { transform: scale(1.07); }
.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,32,91,.9), transparent 55%);
}
.card-status {
  position: absolute;
  z-index: 2;
  top: 12px; left: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: rgba(4,20,57,.72);
  border: 1px solid rgba(206,218,240,.25);
  color: var(--foam);
  backdrop-filter: blur(4px);
  font-weight: 600;
  border-radius: 980px;
}
.card-status.out { border-color: rgba(222,70,21,.7); color: var(--sunset-hi); }
/* real key art, when a game has it */
img.art-layer { width: 100%; height: 100%; object-fit: cover; }

/* trailer handle — appears on the art, not stacked under the copy */
.card-play {
  position: absolute;
  z-index: 3;
  right: 12px; bottom: 12px;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: rgba(4,20,57,.7);
  border: 1px solid rgba(206,218,240,.3);
  color: var(--foam);
  backdrop-filter: blur(4px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .3s, background .3s;
  border-radius: 50%;
}
.card:hover .card-play, .card-play:focus-visible { opacity: 1; transform: none; }
.card-play:hover { background: var(--navy); border-color: var(--azure); color: var(--wave); }

.card-score {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -.005em;
  color: var(--sunset-hi);
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-score::before { content: ""; width: 5px; height: 5px; background: var(--sunset); transform: rotate(45deg); }

.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 22px;
  font-size: 20px;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.card-genre {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--mist);
  opacity: .85;
}
/* developer logo badge — a light chip keeps dark studio marks legible; the
   drop-shadow outline rescues light/silver logos (built for dark backgrounds)
   so a single chip style works for every logo, whatever its polarity. */
.card-dev {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  background: var(--foam);
  border-radius: 8px;
  padding: 6px 10px;
  margin: 2px 0;
  box-shadow: 0 1px 0 rgba(4,20,57,.25);
}
.card-dev img {
  height: 20px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 .6px rgba(4,20,57,.55)) drop-shadow(0 0 .6px rgba(4,20,57,.4));
}
.card-link {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--sunset-hi);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link svg { transition: transform .35s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }

/* rows beyond the first are stowed until "show all" */
.card.is-stowed { display: none; }
.fleet-more { margin-top: 44px; display: flex; justify-content: center; }

/* --------------------------------------------------------- about -------- */
/* Chart-paper interlude: the page surfaces from the water for a moment.   */
/* Once "paper" light sections — now carry the same deep navy as the footer so
   the page reads as one dark hull, not a white gap in the middle. */
.paper {
  background: var(--abyss);
  color: var(--mist);
  position: relative;
}
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(206,218,240,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(206,218,240,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.paper h2, .paper h3 { color: var(--foam); }
.paper .eyebrow { color: var(--sunset-hi); }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { font-size: 18px; margin: 0 0 20px; }

.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.figure { border-top: 1px solid rgba(206,218,240,.2); padding-top: 14px; }
.figure b {
  display: block;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  color: var(--foam);
  line-height: 1;
  font-feature-settings: "tnum";
}
.figure span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(206,218,240,.6);
}

/* the compass — a photograph, framed like everything else on the page */
.compass { display: grid; place-items: center; }
.compass img {
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-card);
  border: 1px solid rgba(206,218,240,.18);
  box-shadow: 0 24px 60px rgba(4,20,57,.55);
}

/* ---------------------------------------------------- publishing -------- */
/* Three steps, in order — a real sequence, so the numbering earns itself. */
.voyage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
  margin-top: 56px;
  border-top: 1px solid rgba(206,218,240,.15);
}
@media (max-width: 860px) { .voyage { grid-template-columns: 1fr; } }
.leg {
  padding: 34px 32px 40px;
  border-right: 1px solid rgba(206,218,240,.12);
  position: relative;
}
.leg:last-child { border-right: 0; }
@media (max-width: 860px) {
  .leg { border-right: 0; border-bottom: 1px solid rgba(206,218,240,.12); }
  .leg:last-child { border-bottom: 0; }
}
.leg::before {  /* a knot on the course line */
  content: "";
  position: absolute;
  top: -4px; left: 32px;
  width: 7px; height: 7px;
  background: var(--sunset-hi);
  transform: rotate(45deg);
}
.leg-no {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--sunset-hi);
  margin-bottom: 20px;
}
.leg h3 { font-size: 26px; margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: -.03em;
}
.leg p { margin: 0; font-size: 16px; }

/* ---------------------------------------------------- partners ---------- */
/* extra room at the bottom so the submit wave never crowds the logos */
.partners { position: relative; padding-top: 64px; padding-bottom: clamp(104px, 12vw, 148px); border-block: 1px solid rgba(206,218,240,.12); background: var(--hull); }
.partners-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 6vw, 76px); }
.partners .eyebrow { justify-content: center; margin-bottom: 34px; }
.partners .eyebrow::before { display: none; }
.partner {
  font-family: var(--font-sans);
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--foam);
  opacity: .45;
  filter: grayscale(1);
  transition: opacity .35s, transform .35s var(--ease);
  font-weight: 600;
}
.partner:hover { opacity: 1; transform: translateY(-3px); }

/* ---------------------------------------------------- pitch form -------- */
.pitch { background: linear-gradient(180deg, var(--abyss), var(--deep) 65%, var(--hull)); }
.pitch-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) { .pitch-grid { grid-template-columns: 1fr; } }

.pitch-note {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: -.01em;
  color: var(--mist);
  border-left: 1px solid rgba(222,70,21,.5);
  padding-left: 18px;
  margin-top: 30px;
}

.form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* compact: the pitch form asks eight questions — it should not feel like eight
   pages. Tighter rows, hints folded into placeholders, and the error line only
   takes up space once there is an error to show. */
.form.is-compact { gap: 14px; }
.form.is-compact .field { gap: 5px; }
.form.is-compact .field input,
.form.is-compact .field select,
.form.is-compact .field textarea { padding: 11px 14px; }
.form.is-compact .field textarea { min-height: 92px; }
.form.is-compact .err { min-height: 0; margin: 0; }
.form.is-compact .err:empty { display: none; }
.form.is-compact .form-foot { margin-top: 8px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.008em;
  color: var(--foam);
}
.field small { font-family: var(--font-sans); font-size: 11px; color: var(--mist); opacity: .75; }

.field input,
.field select,
.field textarea {
  background: rgba(255,252,249,.04);
  border: 1px solid rgba(206,218,240,.22);
  color: var(--foam);
  padding: 14px 16px;
  border-radius: var(--r-input);
  transition: border-color .3s, background .3s, box-shadow .3s;
  width: 100%;
  font-size: 16px;
  letter-spacing: -.011em;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%23aec2e4' stroke-width='1.5' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.field select option { background: var(--hull); color: var(--foam); }
.field input::placeholder, .field textarea::placeholder { color: rgba(206,218,240,.5); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sunset-hi);
  background: rgba(222,70,21,.06);
  box-shadow: 0 0 0 1px rgba(222,70,21,.35);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #e5613c; }
.err { color: #ff8a63; font-family: var(--font-sans); font-size: 11px; min-height: 14px;
  font-size: 13px;
  letter-spacing: -.005em;
}

/* checkbox flags (creators page) */
.flags { display: flex; flex-wrap: wrap; gap: 12px; }
.flag-check { position: relative; }
.flag-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.flag-check span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: -.012em;
  padding: 11px 18px;
  border: 1px solid rgba(206,218,240,.22);
  color: var(--mist);
  cursor: pointer;
  transition: all .3s var(--ease);
  font-weight: 500;
  border-radius: var(--r-btn);
}
.flag-check span::before {
  content: "";
  width: 8px; height: 8px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: background .3s;
}
.flag-check input:checked + span { border-color: var(--azure); color: var(--wave); background: rgba(26,86,224,.24); }
.flag-check input:checked + span::before { background: var(--focus); }
.flag-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.02em; color: var(--sunset-hi);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.008em;
}

/* --------------------------------------------------------- footer ------- */
.foot {
  position: relative;
  background: var(--abyss);
  border-top: 1px solid rgba(206,218,240,.12);
  padding: clamp(56px, 7vw, 88px) var(--pad) 32px;
}
.foot::before {              /* the chart grid surfaces one last time */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(206,218,240,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(206,218,240,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

.foot-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr 1.3fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(206,218,240,.12);
}
@media (max-width: 1000px) { .foot-top { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 560px)  { .foot-top { grid-template-columns: 1fr; } }

.foot-about { max-width: 34ch; }
.foot-about .brand { margin-bottom: 20px; }
.foot-mission {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.01em;
  color: var(--mist);
  margin: 0 0 24px;
}

.socials { display: flex; gap: 10px; }
.social {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(206,218,240,.22);
  border-radius: 50%;
  color: var(--mist);
  transition: color .3s, border-color .3s, transform .3s var(--ease), background .3s;
}
.social:hover {
  color: var(--wave);
  background: var(--sunset);
  border-color: var(--sunset-hi);
  transform: translateY(-3px);
}

.foot-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sunset-hi);
  margin: 0 0 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-col a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--mist);
  transition: color .25s, padding-left .25s var(--ease);
}
.foot-col a:hover { color: var(--focus); padding-left: 5px; }

/* the ship's log — the one thing we ask for down here */
.foot-signup p {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--mist);
  margin: 0 0 16px;
}
.signup {
  display: flex;
  gap: 8px;
  border: 1px solid rgba(206,218,240,.22);
  border-radius: var(--r-btn);
  padding: 5px 5px 5px 18px;
  background: rgba(255,252,249,.04);
  transition: border-color .3s, background .3s;
}
.signup:focus-within { border-color: var(--azure); background: rgba(26,86,224,.12); }
.signup input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--foam);
  font-size: 15px;
  letter-spacing: -.011em;
}
.signup input::placeholder { color: rgba(206,218,240,.55); }
.signup button {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--wave);
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s;
}
.signup button:hover { transform: translateX(2px); background: var(--azure); }
.signup-msg {
  font-size: 13px;
  letter-spacing: -.005em;
  color: var(--sunset-hi);
  min-height: 18px;
  margin: 10px 0 0;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
}
.foot-legal { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot-legal a {
  font-size: 13px;
  color: rgba(206,218,240,.7);
  transition: color .25s;
}
.foot-legal a:hover { color: var(--focus); }
.foot-note { font-size: 13px; color: rgba(206,218,240,.55); letter-spacing: -.005em; margin: 0; }
.foot-coords {
  font-size: 13px;
  font-weight: 600;
  font-feature-settings: "tnum";
  color: var(--sunset-hi);
  letter-spacing: .04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.foot-coords::before {
  content: "";
  width: 6px; height: 6px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

/* --------------------------------------------------------- reveal ------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }

/* --------------------------------------------------- inner page --------- */
.page-head {
  position: relative;
  padding: 190px var(--pad) 70px;
  padding-left: calc(var(--rail) + var(--pad));
  background: radial-gradient(120% 90% at 20% 0%, #0b3fb5 0%, #06205b 45%, #041439 100%);
  border-bottom: 1px solid rgba(206,218,240,.12);
  overflow: hidden;
}
@media (max-width: 900px) { .page-head { padding-left: var(--pad); } }
.page-head .inner { max-width: var(--maxw); margin: 0 auto; }
.page-head h1 { font-size: clamp(40px, 6vw, 82px); margin-bottom: 20px;
  font-size: clamp(40px, 5.6vw, 76px);
  letter-spacing: -.042em;
}
.page-head p { max-width: 54ch; margin: 0; }
.back-link {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.01em;
  color: var(--sunset-hi);
  display: inline-flex;
  gap: 9px;
  margin-bottom: 26px;
}
.back-link:hover { color: var(--focus); }

.creator-form-wrap {
  max-width: 780px;
  margin: 0 auto;
}

/* --------------------------------------------------- reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-slide.is-active .hero-copy > *, .now-playing { opacity: 1; transform: none; }
}

/* ====================================================================== */
/*  BOARDING — the page load                                              */
/*  The flag runs up the mast, the line pays out, and the deck opens.     */
/* ====================================================================== */
.boarding {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--abyss);
  transition: transform 1s var(--ease), opacity .6s .3s;
}
.boarding.is-away {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.boarding::before {                       /* the chart grid, one last time */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(206,218,240,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(206,218,240,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000, transparent 100%);
}
.boarding-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 30px;
  width: min(340px, 74vw);
}
.boarding-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  opacity: 0;
  transform: translateY(14px);
  animation: hoist 1s var(--ease) .1s forwards;
}
@keyframes hoist { to { opacity: 1; transform: none; } }

/* the sounding line, paying out */
.boarding-bar {
  width: 100%;
  height: 1px;
  background: rgba(206,218,240,.18);
  position: relative;
  overflow: visible;
}
.boarding-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--sunset);
  box-shadow: 0 0 14px rgba(222,70,21,.9);
  transition: width .25s linear;
}
.boarding-bar span::after {               /* the plumb bob on the end */
  content: "";
  position: absolute;
  right: -4px; top: -3px;
  width: 7px; height: 7px;
  background: var(--sunset);
  transform: rotate(45deg);
}
.boarding-meta {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: -18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mist);
  font-feature-settings: "tnum";
}
.boarding-meta b { color: var(--sunset-hi); font-weight: 600; }
body.is-boarding { overflow: hidden; }

/* ====================================================================== */
/*  THE PITCH BUTTON — the one control that gets to have fun              */
/*  A flag flies on it; on hover the sea rises to meet it and the flag    */
/*  snaps out in the wind.                                                */
/* ====================================================================== */
.btn-hoist { position: relative; }

/* the sea, rising into the button */
.btn-hoist .swell {
  position: absolute;
  z-index: 0;
  left: -10%;
  bottom: -140%;
  width: 120%;
  height: 200%;
  fill: var(--azure);
  transition: bottom .55s var(--ease);
  pointer-events: none;
}
.btn-hoist:hover .swell { bottom: -58%; }
.btn-hoist:hover { background: var(--navy); }         /* the swell does the colour work */
.btn-hoist > span { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn-hoist .swell { display: none; }
}

/* ====================================================================== */
/*  PARTNERS — logo files from assets/images/                              */
/*  The logos are transparent PNGs in each brand's own colour. On the navy  */
/*  band we present them colourless: no plate, and every mark forced to one  */
/*  grey tone regardless of its source colour — brightness(0) flattens it to */
/*  a silhouette, invert() lifts that to grey. Hover restores the true       */
/*  brand colour. This is how most publishers show platform partners.        */
/* ====================================================================== */
.partners-inner { gap: clamp(24px, 4vw, 60px); }

.partner {
  display: grid;
  place-items: center;
  min-width: clamp(110px, 11vw, 156px);
  padding: 12px 18px;
  background: transparent;      /* colourless — the mark stands on its own */
  border-radius: var(--r-card);
  opacity: 1;
  transition: transform .35s var(--ease);
}
.partner:hover { transform: translateY(-4px); }
.partner img {
  height: clamp(52px, 5vw, 78px);
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(.62);   /* any colour → one even grey */
  opacity: .85;
  transition: filter .35s, opacity .35s;
}
.partner:hover img {
  filter: none;                 /* back to the real brand colour on hover */
  opacity: 1;
}

/* --- endless logo marquee (JS adds .is-marquee past ~4 logos) ----------- */
/* Two identical sets ride in one track; sliding it -50% swaps set A for its
   twin, so the loop never shows a seam. Edges fade out; hover pauses it. */
.partners-inner.is-marquee {
  display: block;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: partnersScroll 40s linear infinite;
}
.partners-inner.is-marquee:hover .partners-track { animation-play-state: paused; }
/* inside the marquee each logo carries its own even spacing (not a flex gap),
   so both halves tile identically and the seam stays invisible */
.partners-track .partner {
  min-width: 0;
  padding: 0;
  margin: 0 clamp(20px, 3.4vw, 46px);
  flex: none;
}
@keyframes partnersScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 600px) {
  .partners-track .partner { margin: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .partners-inner.is-marquee { -webkit-mask-image: none; mask-image: none; }
  .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ====================================================================== */
/* ====================================================================== */
/*  On the navy band, a navy button disappears. It goes white instead.    */
/* ====================================================================== */
.haul .plate-play {
  background: rgba(255,252,249,.92);
  border-color: rgba(255,252,249,.9);
  color: var(--navy);
}
.haul .plate:hover .plate-play {
  background: var(--wave);
  border-color: var(--wave);
  color: var(--navy);
  transform: scale(1.08);
}
.haul .plate:hover { border-color: rgba(255,252,249,.5); }

/* ====================================================================== */
/*  MOTION EXTRAS — card tilt + glare, wave dividers, parallax             */
/*  All of these are progressive: JS only wires the tilt and parallax on   */
/*  fine pointers with motion allowed, and the wave drift stops for        */
/*  prefers-reduced-motion. Nothing here is load-bearing for layout.       */
/* ====================================================================== */

/* --- fleet card tilt + glare ------------------------------------------- */
/* The transform itself is written inline by JS (buildCardTilt) so the tilt
   and the hover lift share one matrix. This just adds the light sweep. */
.card { transform-style: preserve-3d; }
.card.is-tilting { transition: transform .12s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
.card-glare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s var(--ease);
  background: radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.30), transparent 60%);
  mix-blend-mode: soft-light;
}
.card.is-tilting .card-glare { opacity: 1; }

/* --- wave dividers between sections ------------------------------------- */
/* Injected by buildWaves() at the top of each section, filled in that section's
   own colour so the coloured water reads as rising into the section above. A
   faint crest line keeps the wave legible even between two same-coloured
   sections (haul→partners, partners→submit, submit→footer). */
.wave-divider {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: clamp(38px, 5.5vw, 82px);
  transform: translateY(-99%);
  overflow: hidden;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}
/* Two identical full-width waves ride in a 200%-wide flex track; sliding the
   track (a plain div, so no SVG transform quirks) by -50% swaps one wave for
   its twin — seamless, and the right edge is always covered by the second. */
.wave-track { display: flex; width: 200%; height: 100%; animation: waveDrift 18s linear infinite; }
.wave-track svg { flex: 0 0 50%; width: 50%; height: 100%; display: block; }
.wave-divider + * { position: relative; z-index: 2; }   /* content clears the wave */
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-50%); } }  /* -50% of the 200% track = one full wave */

.wave-paper .wave-fill { fill: var(--paper); }
.wave-hull  .wave-fill { fill: var(--hull); }
.wave-abyss .wave-fill { fill: var(--abyss); }
.wave-line { stroke-width: 1.5; }
.wave-paper .wave-line { stroke: rgba(6,32,91,.16); }        /* dark line on light */
.wave-hull  .wave-line { stroke: rgba(255,252,249,.12); }    /* light line on navy */
.wave-abyss .wave-line { stroke: rgba(255,252,249,.10); }

/* --- parallax ---------------------------------------------------------- */
/* JS shifts background-position-y only, so covered images never expose an
   edge. will-change keeps the repaint cheap. */
[data-parallax] { will-change: background-position; }

@media (prefers-reduced-motion: reduce) {
  .wave-track { animation: none; }
  .card.is-tilting .card-glare { opacity: 0; }
}

/* honeypot — hidden anti-spam field on the public forms */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
