/* palette */
:root {
  --navy: #06121D;
  --panel: #0E2237;
  --steel: #1E4D74;
  --frost: #5AA9DC;
  --ice: #D6E8F5;
  --text: var(--ice);
  --ink: var(--ice);
  --muted: rgba(214, 232, 245, .8);
  --line: rgba(214, 232, 245, .25);
  --radius: 28px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", sans-serif;
  font-size: 17.6px;
  color: var(--muted);
  background: var(--navy);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 40px;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-logo { width: 46px; height: 46px; border-radius: 10px; display: block; }
.brand-text { font-size: 17px; font-weight: 500; line-height: 1.1; }
.brand-text small { display: block; font-size: 11px; font-weight: 400; opacity: .85; }

.nav {
  flex: 1; max-width: 520px; margin: 0 auto;
  display: flex; justify-content: center; gap: 26px;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px;
  font-size: 13px; font-weight: 500;
}
.nav a:hover { color: var(--frost); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.pill:hover { transform: translateY(-2px); }
.pill-white { background: var(--text); color: var(--navy); }
.pill-ico { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--navy); color: var(--text); font-size: 8px; }
.pill-amber { background: var(--navy); color: var(--ice); font-size: 12px; padding: 10px 24px; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.play { font-size: 10px; }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 24px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--text); transition: .25s; }
.burger span:nth-child(1) { top: 3px; }
.burger span:nth-child(2) { top: 11px; }
.burger span:nth-child(3) { top: 19px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  color: var(--navy);
  background: var(--frost);
}
.hero-img { display: block; width: 100%; height: auto; }
.hero-inner { padding: 36px 40px 70px; }
@media (min-width: 761px) {
  .hero { background: var(--navy); color: var(--ice); }
  .hero-inner {
    position: absolute; left: 40px; bottom: 12%;
    max-width: 380px; padding: 24px 28px 26px;
    background: rgba(6, 18, 29, .85); border-radius: 20px;
  }
  .hero h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); margin-bottom: 14px; }
  .subtitle { margin: 0 0 18px; }
  .pill-amber { background: var(--frost); color: var(--navy); }
  .hero .socials a { background: var(--frost); color: var(--navy); }
  .hero .socials a:hover { background: var(--ice); }
  .hero + .amber-band { margin-top: 28px; }
}
.subtitle { font-size: 1.15rem; font-weight: 500; margin: -8px 0 22px; }
.eyebrow { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 500; line-height: 1.1; margin-bottom: 22px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--ice); font-size: 11px; font-weight: 700;
}
.socials a:hover { background: var(--ice); color: var(--navy); }
.socials.small a { background: var(--ice); color: var(--navy); width: 22px; height: 22px; font-size: 9px; }
.socials.small a:hover { background: var(--frost); }

.amber-band {
  min-height: 80px; margin: -40px 40px 0; padding: 16px 32px; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--steel); color: var(--ice); border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.band-facts { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 1rem; font-weight: 500; }
.band-facts li { display: flex; flex-direction: column; line-height: 1.25; }
.band-facts span { color: var(--frost); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.amber-band .pill-amber { background: var(--frost); color: var(--navy); }

/* Section titles */
.section-title { text-align: center; color: var(--ink); font-size: 2rem; font-weight: 400; }
.divider { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 14px 0 34px; }
.divider i { width: 4px; height: 4px; border-radius: 50%; background: var(--frost); }
.divider b { width: 18px; height: 3px; border-radius: 2px; background: var(--frost); }

/* Library */
.library { padding: 90px 0 40px; }
.filters { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; padding: 0 20px; }
.chip {
  font: 500 12px "Outfit", sans-serif; text-transform: uppercase; letter-spacing: .03em;
  padding: 10px 18px; border: 0; border-radius: 6px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--frost); }
.chip.is-active { background: var(--frost); color: var(--navy); border-color: var(--frost); }

.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 0 4px;
}
.poster {
  position: relative; aspect-ratio: 1024 / 436;
  border-radius: 24px; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 18px 20px;
  background: var(--bg);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  transition: transform .25s;
}
.poster span { position: relative; z-index: 1; color: var(--fg); font-size: 1.7rem; font-weight: 600;  }
.poster:hover { transform: scale(1.02); }
.poster[hidden] { display: none; }

/* FAQ */
.how { padding: 70px 40px 100px; }
.faq {
  max-width: 1100px; margin: 0 auto; padding: 24px 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.faq details { max-width: 520px; margin: 0 auto; padding: 12px 20px; }
.faq summary {
  list-style: none; cursor: pointer; color: var(--ice); font-weight: 500; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\25BE"; font-size: 12px; }
.faq details[open] summary::after { content: "\2013"; font-size: 16px; }
.faq p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Footer */
.footer { background: var(--navy); border-top: 1px solid var(--line); color: var(--text); padding: 60px 40px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
.footer h3 { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.muted { color: var(--muted); font-size: 13px; display: block; }
.footer p.muted { margin: 16px 0; max-width: 300px; }
.links li { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.links a:hover { color: var(--frost); }
.contact-row { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.contact-row strong { display: block; font-size: 13px; font-weight: 500; }
.ico { font-size: 26px; color: var(--frost); }

/* Email sign-up */
.notify { padding: 40px 24px 70px; }
.notify-copy { text-align: center; max-width: 560px; margin: 0 auto 28px; }
.notify-card { max-width: 720px; margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.notify-fallback { text-align: center; margin-top: 18px; font-size: 14px; }
.notify-fallback a { color: var(--frost); text-decoration: underline; }
.notify-card iframe { display: block; width: 100%; height: 560px; border: 0; }

/* Film player (top of page) and detail card (below the film box) */
.player { background: var(--navy); }
.player-frame {
  width: 100%; aspect-ratio: 2000 / 1116;
  display: grid; place-items: center; text-align: center;
  background: var(--bg, var(--frost)); color: var(--fg, var(--navy));
  font-size: 1.4rem; font-weight: 500;
}
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-frame video { width: 100%; height: 100%; display: block; background: var(--navy); object-fit: contain; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 40px 0; }
.player-bar h2 { color: var(--ice); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.player-bar .eyebrow { color: var(--frost); margin: 0; }
.player .pill-amber { background: var(--frost); color: var(--navy); border: 0; cursor: pointer; font-family: inherit; }
.player + .hero + .amber-band, .player:not([hidden]) ~ .amber-band { margin-top: 28px; }

.poster { cursor: pointer; }
.poster.is-selected { outline: 4px solid var(--ice); outline-offset: -4px; }
.film-detail {
  grid-column: 1 / -1; position: relative;
  background: var(--panel); color: var(--ice); border: 1px solid var(--line);
  border-radius: 24px; padding: 28px 32px 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.film-detail .eyebrow { color: var(--frost); margin: 0 0 4px; }
.film-detail h3 { font-size: 2rem; font-weight: 500; line-height: 1.1; margin-bottom: 10px; }
.film-detail p { max-width: 640px; margin-bottom: 18px; color: var(--muted); }
.film-detail .pill-amber { background: var(--frost); color: var(--navy); }
.film-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.film-detail.no-meta { grid-template-columns: 1fr; }
.film-detail .logline { font-size: 1.2rem; font-style: italic; color: var(--ice); margin-bottom: 14px; }
.detail-meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; align-content: start; padding: 4px 40px 0 0; font-size: 15px; }
.detail-meta dt { color: var(--frost); font-weight: 500; }
.detail-meta dd { color: var(--ice); }

/* image posters and top-of-page player image */
.poster.has-image { background: var(--navy) var(--img, none) center var(--pos, 30%) / cover no-repeat; }
.poster.has-image span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.poster.has-image.show-title span {
  position: relative; width: auto; height: auto; overflow: visible; clip: auto;
  padding: 8px 18px; border-radius: 999px; background: rgba(6, 18, 29, .85); font-size: 1.3rem;
}
.player-frame { position: relative; overflow: hidden; }
.slide-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 999px;
  background: rgba(6, 18, 29, .85); color: var(--ice); font-size: 1rem; font-weight: 500; border: 1px solid var(--line);
}
.play-ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--frost); color: var(--navy); font-size: 11px; }
.detail-close {
  position: absolute; top: 16px; right: 18px; width: 34px; height: 34px;
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--frost); color: var(--navy); font: 600 18px "Outfit", sans-serif;
}

/* Inner pages */
.page-head { background: var(--steel); color: var(--ice); padding: 56px 40px 60px; text-align: center; }
.page-head .eyebrow { font-weight: 600; margin-bottom: 4px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.1; }
.content { max-width: 900px; margin: 0 auto; padding: 60px 24px 90px; color: var(--text); }
.content h2 { color: var(--ice); font-size: 1.6rem; font-weight: 500; margin: 36px 0 10px; }
.content h2:first-child { margin-top: 0; }
.content p { margin-bottom: 14px; }
.content strong { color: var(--ice); font-weight: 600; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 14px; }
.team-card { background: var(--panel); color: var(--ice); border: 1px solid var(--line); border-radius: 20px; padding: 24px 16px; text-align: center; }
.team-card h3 { font-size: 1.1rem; font-weight: 600; }
.team-card p { color: var(--muted); margin: 0; font-size: 14px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--frost); color: var(--navy); font-weight: 700; font-size: 1.3rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.support-card { background: var(--panel); color: var(--ice); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.support-card h3 { font-size: 1.4rem; font-weight: 500; margin-bottom: 8px; }
.support-card p { color: var(--muted); flex: 1; }
.support-card .pill-amber { background: var(--frost); color: var(--navy); }

/* Mobile */
@media (max-width: 900px) {
  .team, .support-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { padding: 10px 20px; }
  .site-header .pill-white { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 245px; max-width: none; margin: 0;
    flex-direction: column; justify-content: flex-start; gap: 20px;
    padding: 80px 24px; background: var(--frost); border-radius: 0; border: 0; color: var(--navy); font-size: 18px;
    transform: translateX(-100%); transition: transform .3s;
  }
  .nav.is-open { transform: none; }
  .burger[aria-expanded="true"] { position: fixed; right: 20px; z-index: 60; }
  .nav.is-open ~ .burger span { background: var(--text); }
  .hero-inner { padding: 28px 20px 50px; }
  .player-bar { padding: 20px 20px 50px; flex-direction: column; align-items: flex-start; }
  .page-head { padding: 40px 20px 44px; }
  .film-detail { padding: 24px 20px 28px; grid-template-columns: 1fr; gap: 20px; }
  .detail-meta { padding-right: 0; }
  .amber-band { margin: -30px 20px 0; padding: 18px 20px; flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .how { padding: 60px 16px 80px; }
}

/* Lab (password-locked) */
body[data-locked]:not(.unlocked) { display: none; }
.nav-lab { color: var(--frost); }
.lab-dialog {
  border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  background: var(--panel); color: var(--ice); width: min(92vw, 400px);
  margin: auto;
}
.lab-dialog::backdrop { background: rgba(6, 18, 29, .8); }
.lab-form h2 { font-size: 1.6rem; font-weight: 500; margin-bottom: 6px; }
.lab-form p { color: var(--muted); margin-bottom: 16px; }
.lab-form input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--navy); color: var(--ice); font: inherit; margin-bottom: 12px;
}
.lab-form input:focus { outline: 2px solid var(--frost); outline-offset: 1px; }
.lab-form .lab-error { color: #ff9b9b; font-size: 14px; margin-bottom: 12px; }
.lab-actions { display: flex; justify-content: flex-end; gap: 10px; }
.lab-actions .pill { border: 0; cursor: pointer; font-family: inherit; }
.lab-actions .pill-amber { background: var(--frost); color: var(--navy); }
.detail-desc { margin: 6px 0 18px; }
.detail-desc h4 { color: var(--frost); font-size: 1rem; font-weight: 500; margin-bottom: 10px; }
.detail-desc p { margin-bottom: 12px; font-size: 15px; }

.pill[hidden] { display: none; }

.detail-meta dd a { color: var(--frost); text-decoration: underline; }
.detail-meta dd a:hover { color: var(--ice); }

/* About page logo banner (the image has a pure black background, so the band is black too) */
.page-head-logo { background: #000; padding: 28px 20px 12px; }
.page-head-logo .eyebrow { margin-bottom: 0; }
.banner-logo { display: block; width: min(680px, 92%); height: auto; margin: 0 auto; }

/* Game page */
.game-content { max-width: 560px; padding-top: 36px; }
.game-frame { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #1b130e; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.game-frame iframe { display: block; width: 100%; height: 880px; border: 0; }
@media (max-width: 640px) {
  .game-content { padding-left: 8px; padding-right: 8px; }
  .game-frame iframe { height: 960px; }
}
.game-note { text-align: center; margin-top: 16px; font-size: 14px; }
.game-note a { color: var(--frost); text-decoration: underline; }

/* Film description card slot: sits between the info bar and Our Work */
.detail-slot { margin: 0 40px; }
.detail-slot:not(:empty) { margin-top: 28px; }
@media (max-width: 760px) { .detail-slot { margin-left: 20px; margin-right: 20px; } }

/* Top-of-page gallery: the video is the first slide, photos follow (swipe, arrows or dots) */
.slides { position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--frost); outline-offset: -3px; }
.slide { overflow: hidden; flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; position: relative; display: grid; place-items: center; background: #000; text-align: center; }
.slide-main { background: var(--bg, var(--frost)); color: var(--fg, var(--navy)); font-size: 1.4rem; font-weight: 500; }
/* Photos sit inside the frame on black, never cropped: square and portrait photos get black bars at the sides */
.slide .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; padding: 0 0 4px; border-radius: 50%; border: 1px solid var(--line); background: rgba(6, 18, 29, .72); color: var(--ice); font: 400 30px/1 "Outfit", sans-serif; cursor: pointer; }
.slide-btn:hover:not(:disabled) { background: var(--frost); color: var(--navy); }
.slide-btn:disabled { opacity: .25; cursor: default; }
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }
.slide-dots { position: absolute; top: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.slide-dots button { pointer-events: auto; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 6px; background: rgba(214, 232, 245, .5); cursor: pointer; transition: width .2s, background .2s; }
.slide-dots button.on { width: 24px; background: var(--frost); }
@media (max-width: 760px) { .slide-btn { width: 40px; height: 40px; font-size: 26px; } .slide-btn.prev { left: 8px; } .slide-btn.next { right: 8px; } }
