:root {
  color-scheme: dark;
  --night: #100d0a;
  --ink: #f5ead9;
  --muted: #cfbfaa;
  --gold: #efbf77;
  --rule: #57432c;
  --serif: Georgia, "Times New Roman", serif;
  --header-height: 82px;
  --compact-header-height: 58px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--night);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #ffd490; outline-offset: 5px; }
html { scroll-behavior: smooth; scroll-padding-top: var(--compact-header-height); }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 104px, 1240px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 12px; left: 12px; padding: 12px; transform: translateY(-150%); background: var(--night); }
.skip:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2;
  background: rgb(0 0 0 / 68%);
  border-bottom: 1px solid rgb(239 191 119 / 24%);
  transition: background .22s ease;
}
.header-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: calc(var(--header-height) - 1px);
  transition: min-height .22s ease;
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { flex: none; width: 51px; height: 51px; object-fit: contain; transform: scale(1.35); }
.brand strong { display: block; font: 400 1.26rem/1.08 var(--serif); }
.brand small { display: block; margin-top: 5px; color: var(--gold); font-size: .74rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 4vw, 44px); }
.site-nav a { display: grid; place-items: center; min-height: 44px; min-width: 44px; text-decoration: none; font-size: .9rem; font-weight: 620; }
.site-nav a[href="#videos"], .site-nav a:hover { color: var(--gold); }
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
}
.menu-toggle:hover { background: rgb(245 234 217 / 10%); }
.menu-icon {
  position: relative;
  width: 22px;
  height: 2px;
  background: currentColor;
}
.menu-icon::before, .menu-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
}
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

.site-header.is-compact { background: rgb(0 0 0 / 85%); }
.site-header.is-compact .header-inner { min-height: calc(var(--compact-header-height) - 1px); }
.site-header.is-compact .brand img { width: 40px; height: 40px; }
.site-header.is-compact .brand span { display: none; }
.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}
.hero-images, .hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-images { z-index: -2; background: #1b1510; }
.hero-image {
  object-fit: cover;
  opacity: 0;
}
.hero-image.is-active, .hero-image.is-outgoing { opacity: 1; }
.hero-image.is-active { z-index: 1; }
.hero-image.is-entering { animation: hero-fade 1.55s ease-in-out; }
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-shade {
  z-index: -1;
  mask-image: linear-gradient(to bottom, transparent, #000 calc(var(--header-height) + 65px));
  background:
    linear-gradient(90deg, rgba(12,8,5,.88) 0%, rgba(16,10,6,.69) 34%, rgba(16,10,6,.18) 72%, rgba(11,7,5,.03) 100%),
    linear-gradient(0deg, rgba(13,9,6,.95) 0%, rgba(13,9,6,.3) 25%, transparent 54%);
}
.hero-inner { display: grid; grid-template-rows: 1fr auto; align-items: center; padding-top: var(--header-height); }
.hero-content { padding-block: clamp(65px, 10svh, 115px) clamp(55px, 8svh, 95px); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .7em;
  margin: 0;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-kicker::before, .gold-rule { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; flex: 0 0 auto; }
.hero h1 {
  margin: 20px 0 23px;
  font: 400 clamp(3.2rem, 7.2vw, 7rem)/.96 var(--serif);
  letter-spacing: -.06em;
  text-wrap: balance;
}
.hero h1 em { display: block; font-weight: inherit; letter-spacing: -.068em; }
.hero h1 em, .hero-description .captain-name { color: #f0c17d; }
.hero-description { max-width: 34ch; margin: 0; color: #f2e3d1; font-size: clamp(1rem, 1.65vw, 1.2rem); line-height: 1.6; }
.captain-name { color: var(--ink); font-weight: 700; }
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 52px;
  margin-top: 30px;
  padding: 0 22px;
  text-decoration: none;
  color: #1d130c;
  background: #f1c27f;
  border: 1px solid #ffdb9d;
  border-radius: 3px;
  font-weight: 720;
  transition: background .2s ease;
}
.primary-action:hover { background: #ffdaa0; }
.play-icon { display: inline-block; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }

.hero-bottom { display: flex; align-items: center; padding-block: 0 18px; }
.scenes { display: flex; align-items: center; gap: 12px; }
.scene-choice, .rotate-control { border: 0; background: transparent; min-height: 44px; }
.scene-choice { position: relative; width: clamp(44px, 5vw, 62px); padding: 0; }
.scene-choice::before, .scene-fill { position: absolute; inset: calc(50% - 1px) 0 auto; height: 2px; }
.scene-choice::before { content: ""; background: #827666; }
.scene-choice[aria-pressed="true"]::before { background: #ad9c86; }
.scene-fill { background: var(--ink); transform: scaleX(0); transform-origin: left; }
.rotate-control:hover { color: var(--gold); }
.rotate-control { display: grid; place-items: center; min-width: 44px; color: #efe2d1; }
.pause-icon { width: 10px; height: 12px; border-inline: 2px solid currentColor; }
.rotate-control[aria-pressed="true"] .pause-icon { width: 0; height: 0; border: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; }

.videos, .roles { padding-block: clamp(65px, 8vw, 110px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px 36px; margin-bottom: 29px; }
.section-heading h2 { margin: 9px 0 0; font: 400 clamp(2.4rem, 5.6vw, 4.4rem)/1.05 var(--serif); letter-spacing: -.05em; }
.section-heading > p { max-width: 29ch; margin: 0 0 4px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.chapter-list { display: grid; gap: clamp(16px, 2.5vw, 32px); }
.video-card {
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #1b150f;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
button.video-card:hover { border-color: #b5925f; }
.card-image { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #100d0a; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-title { margin: 0; font: 400 1.48rem/1.25 var(--serif); }
.duration { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.feature { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.feature-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 17px;
  padding: clamp(19px, 4vw, 49px);
  background: radial-gradient(ellipse at 90% 10%, #2b2015, transparent 82%);
}
.feature-copy .card-title { font-size: clamp(2rem, 4.3vw, 3.6rem); letter-spacing: -.045em; }
.feature-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: .95rem;
  font-weight: 650;
}
button.feature:hover .feature-action { color: #ffe0a8; }
.chapter-status { margin: 0; color: var(--muted); }

.roles { border-top: 1px solid #3e3022; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 33px); margin: 0; padding: 0; list-style: none; }
.role-card { overflow: hidden; border: 1px solid var(--rule); border-radius: 3px; background: #1b150f; }
.role-portrait { display: block; width: 100%; height: auto; }
.role-card-copy { padding: clamp(16px, 2vw, 22px); border-top: 1px solid var(--rule); }
.role-card h3 { margin: 0; color: var(--gold); font: 400 1.55rem/1.2 var(--serif); }
.role-card p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }

.site-footer { border-top: 1px solid #3e3022; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 18px; padding-block: 23px; font-size: .875rem; }
.footer-inner a { text-align: right; text-underline-offset: .22em; }
.footer-inner a:hover { color: var(--gold); }

dialog {
  width: min(100% - 32px, 920px);
  max-height: calc(100% - 30px);
  padding: 0;
  background: #17110d;
  color: var(--ink);
  border: 1px solid #97764b;
  border-radius: 5px;
}
dialog::backdrop { background: rgba(7, 5, 4, .89); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px 8px 19px; }
.dialog-header h2 { margin: 0; font: 400 1.5rem/1.2 var(--serif); }
.close-video { width: 44px; height: 44px; background: transparent; border: 1px solid transparent; border-radius: 3px; color: var(--gold); font: 400 1.8rem/1 system-ui, sans-serif; }
.close-video:hover { border-color: var(--rule); }
#video-player { display: block; width: 100%; max-height: 72vh; aspect-ratio: 16 / 9; background: #050403; }
.video-error { padding: 6px 19px 19px; }
.video-error button { padding: 9px 13px; background: #291e14; color: var(--gold); border: 1px solid #806240; border-radius: 3px; }

@media (max-width: 700px) {
  :root { --header-height: 70px; --compact-header-height: 54px; }
  .shell { width: calc(100% - 44px); }
  .header-inner { gap: 8px; }
  .brand img { width: 45px; height: 45px; }
  .brand strong { font-size: 1.13rem; }
  .brand small { font-size: .68rem; letter-spacing: .08em; }
  .site-nav { gap: 7px; }
  .hero-image.camp { object-position: 77% 50%; }
  .hero-image.march { object-position: 45% 50%; }
  .hero-image.captain { object-position: 52% 50%; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(14,9,6,.62), rgba(14,9,6,.14) 100%),
      linear-gradient(0deg, rgba(13,9,6,.97) 1%, rgba(13,9,6,.52) 30%, rgba(13,9,6,.27) 73%, rgba(13,9,6,.04) 100%);
  }
  .hero-content { align-self: end; }
  .hero h1 { font-size: clamp(2.85rem, 10.4vw, 4.7rem); }
  .section-heading { display: grid; justify-content: start; }
  .feature, .role-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-copy { gap: 10px; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 32px); }
  .site-nav { gap: 5px; }
  .site-nav a { font-size: .8rem; }
  .brand { gap: 6px; white-space: nowrap; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: .98rem; }
  .brand small { font-size: .63rem; letter-spacing: .04em; }
  .hero h1 { font-size: 2.6rem; }
}

@media (max-height: 480px) {
  .hero-content { padding-block: clamp(8px, 3vh, 14px); }
  .hero h1 { margin-block: 10px; font-size: clamp(1.75rem, 9vh, 2.65rem); }
  .hero .primary-action { margin-top: 12px; }
  .hero-bottom { padding-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
  .hero-image.is-entering { animation: none; }
}

.brand-type { display: block; width: 7.25rem; height: auto; fill: var(--ink); overflow: visible; }
.brand-type text { font: 20px var(--serif); }
.brand-type text + text { font: 650 12px system-ui, sans-serif; fill: var(--gold); }
.is-compact .brand-type { display: none; }
.site-header { padding-top: env(safe-area-inset-top); }
.shell { max-width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right) - 24px); }
.hero { min-height: 100lvh; align-content: start; }
.hero-inner {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-height) + env(safe-area-inset-top));
}
.hero-bottom { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.install-action {
  position: relative;
  margin-inline-start: auto;
  width: 44px; height: 44px; flex: 0 0 44px;
  padding: 0; border: 1px solid rgb(239 191 119 / 55%); border-radius: 50%;
  background: rgb(16 13 10 / 65%); color: var(--gold);
}
.install-action:not([hidden]) { display: grid; place-items: center; }
.install-label {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  translate: -50% 0;
  font-size: .8125rem;
  line-height: 1.3;
  font-weight: 650;
  white-space: nowrap;
  text-shadow: 0 1px 4px #100d0a;
}
@media (prefers-reduced-motion: no-preference) {
  .install-label { animation: install-hop 4s ease-in-out infinite; }
  @keyframes install-hop {
    0%, 12%, 24%, 100% { transform: translateY(0); }
    6% { transform: translateY(-4px); }
    18% { transform: translateY(-2px); }
  }
}
.install-action:hover { background: #332415; border-color: var(--gold); }
#install-dialog { max-width: 29rem; }
#install-help { margin: 4px 20px 22px; line-height: 1.55; }
@media (max-width: 700px) {
  .brand-type { width: 5.9rem; }
}
@media (max-width: 380px) {
  .brand-type { width: 5rem; }
}

@media (min-width: 1050px) {
  .role-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.videos, .roles { position: relative; background-color: var(--night); }
@media (prefers-reduced-motion: no-preference) {
  .hero { position: sticky; top: 0; }
  .hero-image.is-active, .hero-image.is-outgoing {
    animation: hero-zoom 7.55s linear both;
    animation-play-state: var(--zoom-state, running);
  }
  .hero-image.is-entering {
    animation: hero-zoom 7.55s linear both, hero-fade 1.55s ease-in-out;
    animation-play-state: var(--zoom-state, running), running;
  }
  @keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.07); }
  }
}

@media (hover: none) and (pointer: coarse) {
  .menu-toggle {
    display: grid;
    border-radius: 50%;
    border: 1px solid rgb(255 242 219 / 26%);
    background: linear-gradient(145deg, rgb(255 246 224 / 15%), rgb(255 246 224 / 4%));
  }
  .menu-icon::before, .menu-icon::after { transition: transform .22s ease; }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(218px, 100%);
    display: grid;
    gap: 2px;
    padding: 7px;
    max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top) - 16px);
    overflow-y: auto;
    border: 1px solid rgb(255 240 214 / 34%);
    border-radius: 22px;
    background: #28231e;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%), 0 12px 32px rgb(0 0 0 / 32%);
    transform-origin: top right;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px) scale(.94);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, visibility 0s .28s;
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-nav {
      background: linear-gradient(145deg, rgb(69 62 51 / 74%), rgb(22 19 17 / 69%));
      -webkit-backdrop-filter: blur(22px) saturate(145%);
      backdrop-filter: blur(22px) saturate(145%);
    }
  }
  .menu-toggle[aria-expanded="true"] + .site-nav {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  .site-nav a { justify-items: start; padding-inline: 15px; border-radius: 15px; }
  .site-nav a:active, .site-nav a:focus-visible { background: rgb(255 245 221 / 12%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav { transition-delay: 0s; }
}
