:root {
  --bg: #0D111A;
  --ink: #D8D7D2;
  --ink-bright: #F5F4EF;
  --accent-red: #DA3E36;
  --flag-red: #B22234;
  --flag-blue: #3D5A99;
  --blue-soft: #7A93C9;
  --rule: #1E2534;
  --rule-soft: #2A3245;
  --panel: #141A26;
  --panel-2: #1A2130;
  --muted: #A3A29B;
  --dim: #6E6E68;
  --success-bg: #22315C;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
  background-image:
    radial-gradient(1100px 700px at 88% -5%, rgba(178,34,52,0.13), transparent 60%),
    radial-gradient(1100px 700px at 8% 105%, rgba(61,90,153,0.13), transparent 60%);
  background-attachment: fixed;
}

a { color: var(--blue-soft); }
a:hover { color: var(--ink-bright); }

h1, h2, p, ul { margin: 0; }

/* ---------- Shared bits ---------- */

.eyebrow {
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: var(--accent-red);
  margin-bottom: 22px;
}

.accent { color: var(--accent-red); }

.photo-slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1.5px dashed rgba(216,215,210,0.22);
}

.photo-slot::before {
  content: "";
  width: 28px;
  height: 28px;
  opacity: 0.6;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23545B6B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
}

.photo-slot::after {
  content: attr(data-caption);
  max-width: 260px;
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,17,26,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand { display: inline-block; text-decoration: none; }

.logo--header { display: block; height: 84px; width: auto; }
.logo--footer { display: block; height: 72px; width: auto; }

.nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }

.nav a {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
  text-decoration: none;
}
.nav a:hover { color: var(--ink-bright); }

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

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the family (right of center) in frame as the crop tightens */
  object-position: 62% 35%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-scrim--x {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(13,17,26,0.95) 32%, rgba(13,17,26,0.66) 56%, rgba(13,17,26,0.22) 100%);
}
.hero-scrim--y {
  background: linear-gradient(180deg, rgba(13,17,26,0.80) 0%, rgba(13,17,26,0) 24%, rgba(13,17,26,0) 58%, rgba(13,17,26,0.95) 100%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 132px 32px 112px;
  pointer-events: none;
}

.hero-inner { max-width: 660px; pointer-events: auto; }

.hero-headline {
  font-weight: 900;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: var(--ink-bright);
}

.hero-lead {
  margin-top: 26px;
  max-width: 560px;
  color: var(--ink);
}

.hero-rule {
  width: 64px;
  height: 2px;
  background: var(--flag-blue);
  margin-top: 36px;
}

.pills { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }

.pill {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(20,26,38,0.75);
}

/* ---------- Episodes ---------- */

.episodes-wrap { max-width: var(--max); margin: 0 auto; padding: 30px 32px 0; }

.episode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 56px;
  align-items: center;
  padding: 84px 0;
  border-bottom: 1px solid var(--rule);
  opacity: 1;
}

.episode-copy .eyebrow { margin-bottom: 16px; }

.episode-copy h2 {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink-bright);
}

.episode-copy p { margin: 0 0 16px; max-width: 52ch; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(13,17,26,0.20) 0%, rgba(13,17,26,0.30) 55%, rgba(13,17,26,0.80) 100%);
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--flag-red);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 34px rgba(0,0,0,0.5);
}
.play-btn svg { margin-left: 4px; }

.video-status {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(13,17,26,0.9);
}

.episode-caption {
  margin-top: 14px;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.episode-subject {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.subject-name { font-weight: 800; font-size: 17px; color: var(--ink-bright); }
.subject-role {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 4px;
}

.stat-chip {
  display: inline-block;
  margin-top: 22px;
  background: var(--panel-2);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 16px 22px;
}
.stat-chip-value {
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
  color: var(--ink-bright);
}
.stat-chip-value.accent { color: var(--accent-red); }
.stat-chip-label {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- Mission ---------- */

.mission { padding: 96px 0; border-bottom: 1px solid var(--rule); }

.mission-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 64px;
  align-items: start;
}

.mission-copy h2 {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink-bright);
}
.mission-copy p { margin-top: 20px; max-width: 56ch; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 22px;
}
.stat-card-value {
  font-weight: 800;
  font-size: 30px;
  color: var(--ink-bright);
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
}
.stat-card-label {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.mission-band {
  position: relative;
  height: clamp(280px, 32vw, 440px);
  margin-top: 80px;
  overflow: hidden;
}
.mission-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the family and the sunset in the band as it crops */
  object-position: 50% 62%;
}
.mission-band-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13,17,26,0.92) 0%, rgba(13,17,26,0.12) 42%, rgba(13,17,26,0.12) 58%, rgba(13,17,26,0.92) 100%);
}

/* ---------- Film map ---------- */

.film-map-section { padding: 96px 0; border-bottom: 1px solid var(--rule); }

.film-map-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.film-map-copy { max-width: 640px; }
.film-map-copy h2 {
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink-bright);
}
.film-map-copy p { margin-top: 20px; max-width: 56ch; }

.film-map-frame {
  position: relative;
  max-width: 780px;
  margin: 56px auto 0;
}

#film-map { display: block; width: 100%; height: auto; }
#film-map[data-zoomed] { cursor: grab; }
#film-map[data-zoomed][data-panning] { cursor: grabbing; }

.map-zoom {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.map-zoom button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--rule-soft);
  color: var(--ink-bright);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.map-zoom button:hover { border-color: var(--blue-soft); }

.map-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--panel-2);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 10px 14px;
  pointer-events: none;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  box-shadow: 0 10px 34px rgba(0,0,0,0.5);
  z-index: 3;
}
.map-tooltip strong {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-bright);
  margin-bottom: 2px;
}
.map-tooltip[hidden] { display: none; }

.film-locations { max-width: 780px; margin: 36px auto 0; }
.film-locations-title {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.film-locations ul { margin: 0; padding: 0; list-style: none; }
.film-locations li { border-bottom: 1px solid var(--rule); }
.film-locations a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  color: var(--ink);
  text-decoration: none;
}
.film-locations a::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-red);
}
.film-locations a:hover { color: var(--ink-bright); }
.film-locations strong { color: var(--ink-bright); font-weight: 700; }

.map-dots circle { fill: #2E3A55; }

.film-marker { cursor: pointer; }
.film-marker .marker-hit { fill: transparent; }
.film-marker .marker-core {
  fill: var(--accent-red);
  stroke: var(--bg);
  stroke-width: 2;
  transition: r .15s ease;
}
.film-marker:hover .marker-core,
.film-marker:focus-visible .marker-core { fill: #E8564E; r: 10; }
.film-marker:focus-visible { outline: none; }
.film-marker .marker-ring {
  fill: none;
  stroke: var(--accent-red);
  stroke-width: 2;
  animation: marker-pulse 2.4s ease-out infinite;
}
@keyframes marker-pulse {
  0%   { r: 8;  opacity: 0.9; }
  70%  { r: 24; opacity: 0; }
  100% { r: 24; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .film-marker .marker-ring { animation: none; r: 12; opacity: 0.5; }
}

/* ---------- Partner ---------- */

.partner { padding: 96px 0; border-bottom: 1px solid var(--rule); }
.partner-inner { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.partner-panel {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--flag-red);
  border-radius: 10px;
  padding: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 56px;
  align-items: center;
}

.partner-copy h2 {
  margin: 0 0 18px;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--ink-bright);
}
.partner-copy p { max-width: 56ch; }

.partner-list { margin: 18px 0 0; padding: 0; list-style: none; }
.partner-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.partner-list li:last-child { border-bottom: 0; }
.partner-list strong { color: var(--ink-bright); font-weight: 700; }

.partner-family-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--panel-2);
  border: 1px solid var(--rule-soft);
  border-left: 3px solid var(--flag-blue);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 56ch;
}
.partner-family-note strong { color: var(--ink-bright); }

.partner-form-card {
  background: var(--panel-2);
  border: 1px solid var(--rule-soft);
  border-radius: 10px;
  padding: 32px;
}

.partner-form[hidden] { display: none; }
.partner-form { display: flex; flex-direction: column; gap: 14px; }

.form-kicker {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
}

.form-mode { display: flex; gap: 8px; }
.form-mode label { flex: 1; cursor: pointer; }
.form-mode input { position: absolute; opacity: 0; pointer-events: none; }
.form-mode span {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 10px 8px;
}
.form-mode input:checked + span {
  color: var(--ink-bright);
  border-color: var(--blue-soft);
  background: #1E2A44;
}
.form-mode input:focus-visible + span { border-color: var(--ink-bright); }
.field[hidden] { display: none; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.field .optional { text-transform: none; letter-spacing: 0; color: var(--dim); }

.field input, .field select, .field textarea {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--ink-bright);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-soft);
}

.btn-submit {
  display: inline-block;
  margin-top: 6px;
  background: var(--flag-red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 15px 28px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-submit:hover { background: var(--accent-red); }

.form-fallback { font-size: 12px; color: var(--muted); }
.form-fallback a {
  color: var(--ink-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--flag-blue);
}
.form-fallback a:hover { color: var(--blue-soft); }

.partner-success[hidden] { display: none; }
.partner-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
}
.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--success-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-title { font-weight: 800; font-size: 19px; color: var(--ink-bright); }
.success-message { color: var(--ink); font-size: 14px; line-height: 1.6; }

.link-button {
  cursor: pointer;
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  font-family: inherit;
}
.link-button:hover { color: var(--ink-bright); }

/* ---------- Footer ---------- */

.site-footer { padding: 64px 0 56px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 12px; color: var(--dim); max-width: 520px; line-height: 1.6; }
.footer-legal div + div { margin-top: 8px; }

/* ---------- Reveal-on-scroll ---------- */

[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(18px);
}
[data-reveal] {
  transition: opacity .7s ease, transform .7s ease;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .header-inner { padding: 14px 20px; }
  .nav { gap: 16px; }
  .nav a { font-size: 11.5px; }
  .logo--header { height: 56px; }
  .logo--footer { height: 48px; }
  .hero-content { padding: 96px 20px 72px; }
  .episodes-wrap { padding: 24px 20px 0; }
  .mission-inner, .partner-inner { padding: 0 20px; }
  .partner-panel { padding: 32px; }
  /* auto-fit(minmax(400px,...)) never actually collapses below its floor —
     force a single column once the viewport can't fit that floor anyway. */
  .episode, .mission-inner, .partner-panel { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  /* tight portrait crop: keep the family clear of the headline */
  .hero-photo { object-position: 74% 32%; }
}
