:root {
  color-scheme: dark;
  --floor: #0b0b0a;
  --chalk: #f2eee6;
  --oxide: #d2472f;
  --steel: #8d918e;
  --paper: #d9d1c2;
  --ink: #10100f;
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --display: "Arial Black", Impact, Haettenschweiler, sans-serif;
  --body: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  background: var(--floor);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--floor);
  color: var(--chalk);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--oxide);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--chalk);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5.5rem;
  padding: 1rem var(--gutter);
  border-bottom: 1px solid rgba(242, 238, 230, .28);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  width: fit-content;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--display);
  font-size: .72rem;
  line-height: .95;
  letter-spacing: -.03em;
}

.wordmark > span:first-child {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  background: var(--oxide);
  color: var(--chalk);
  font-size: 1rem;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.site-header nav { display: flex; gap: 2rem; }
.site-header nav a, .header-action {
  text-transform: uppercase;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.header-action { justify-self: end; }

.opening {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 96svh;
  overflow: hidden;
  background: #1c1815;
}

.opening-media,
.opening-grade,
.opening-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.opening-media {
  z-index: -3;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(.72) contrast(1.08) brightness(.72);
}

.opening-grade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, .91) 0%, rgba(8, 8, 7, .48) 45%, rgba(8, 8, 7, .14) 75%),
    linear-gradient(0deg, rgba(8, 8, 7, .86) 0%, transparent 42%, rgba(8, 8, 7, .36) 100%);
}

.opening-grid,
.motion-grid {
  z-index: -1;
  opacity: .24;
  background-image:
    linear-gradient(90deg, transparent calc(25% - .5px), rgba(242, 238, 230, .22) 25%, transparent calc(25% + .5px)),
    linear-gradient(90deg, transparent calc(75% - .5px), rgba(242, 238, 230, .22) 75%, transparent calc(75% + .5px));
}

.opening-content {
  display: flex;
  flex-direction: column;
  min-height: 96svh;
  padding: clamp(7.5rem, 15vh, 10.5rem) var(--gutter) clamp(4.5rem, 7vh, 6rem);
}

.eyebrow {
  display: flex;
  gap: 2rem;
  margin: 0 0 clamp(2rem, 5vh, 4rem);
  text-transform: uppercase;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.eyebrow span:first-child::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: .18rem;
  margin: 0 .7rem .14rem 0;
  background: var(--oxide);
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10.8vw, 10.8rem);
  font-weight: 900;
  line-height: .73;
  letter-spacing: -.075em;
  text-transform: uppercase;
}

h1 span { display: block; }
h1 span:nth-child(2) { color: transparent; -webkit-text-stroke: 2px var(--chalk); }
h1 span:nth-child(3) { margin-left: .48em; color: var(--oxide); }

.opening-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: auto;
  padding-left: 50%;
}

.opening-line {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(.75rem, 1vw, .95rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .11em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 12.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  text-transform: uppercase;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .13em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.button-primary { background: var(--oxide); color: #fff; }
.button-dark { background: var(--ink); color: var(--chalk); }
.button-outline { border-color: rgba(242, 238, 230, .45); }

.media-label,
.opening-index {
  position: absolute;
  z-index: 2;
  bottom: 1.15rem;
  margin: 0;
  color: rgba(242, 238, 230, .76);
  text-transform: uppercase;
  font-size: .56rem;
  letter-spacing: .12em;
}

.media-label { left: var(--gutter); }
.opening-index { right: var(--gutter); }

.fact-rail {
  display: grid;
  grid-template-columns: 1.15fr 2fr;
  gap: clamp(2rem, 7vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  background: var(--chalk);
  color: var(--ink);
}

.kicker {
  margin: 0 0 1.2rem;
  color: var(--oxide);
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.kicker::before { content: "●"; margin-right: .6rem; font-size: .65em; }

.fact-intro h2,
.location h2,
.concept-note h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6.2vw, 7rem);
  line-height: .84;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: .15rem 0 0;
}

.facts div { padding-top: 1rem; border-top: 1px solid rgba(16, 16, 15, .35); }
.facts dt {
  margin-bottom: 1.5rem;
  color: #5f5c56;
  text-transform: uppercase;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .13em;
}
.facts dd { margin: 0; font-weight: 700; }
.facts a { text-underline-offset: .25em; }
.fact-note {
  grid-column: 2;
  max-width: 48rem;
  margin: 2.5rem 0 0;
  color: #5f5c56;
  font-size: .8rem;
}

.movement {
  position: relative;
  height: 300svh;
  background: #12100e;
}

.motion-stage {
  position: sticky;
  top: 0;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  background: #161310 url("assets/training-progression-poster.webp") center / cover no-repeat;
}

.motion-video,
.motion-grade,
.motion-grid,
.motion-copy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.motion-video {
  z-index: -4;
  object-fit: cover;
  object-position: center center;
}

.motion-grade {
  z-index: -3;
  background: linear-gradient(90deg, rgba(7, 7, 6, .82) 0%, rgba(7, 7, 6, .35) 50%, rgba(7, 7, 6, .68) 100%);
}

.motion-grid { z-index: -2; }

.motion-copy {
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter);
}

.motion-topline,
.motion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.motion-count {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .04em;
}

.story-beats { position: relative; align-self: center; min-height: clamp(10rem, 30vh, 19rem); }
.story-beat {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 180ms linear, transform 220ms ease;
}
.story-beat.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.story-beat > span {
  position: absolute;
  right: 0;
  top: 50%;
  color: rgba(242, 238, 230, .18);
  font-family: var(--display);
  font-size: clamp(10rem, 30vw, 32rem);
  line-height: .65;
  transform: translateY(-50%);
}
.story-beat h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 17vw, 17rem);
  line-height: .75;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.story-beat p {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0 .45rem;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.motion-credit,
.motion-status { margin: 0; font-size: .62rem; letter-spacing: .05em; }
.motion-credit a { text-underline-offset: .25em; }
.motion-status { color: var(--chalk); }
.motion-opt-in {
  border: 1px solid var(--chalk);
  padding: .75rem 1rem;
  background: var(--chalk);
  color: var(--ink);
  text-transform: uppercase;
  font: 800 .64rem var(--body);
  letter-spacing: .12em;
  cursor: pointer;
}

.no-script-note { margin: 0; padding: 1rem var(--gutter); background: var(--oxide); }

.location {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 90svh;
  background: var(--paper);
  color: var(--ink);
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 9vw, 9rem) var(--gutter);
}

.location address {
  margin: clamp(2.5rem, 5vw, 4.5rem) 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 2.2rem);
  font-style: normal;
  line-height: 1.1;
  text-transform: uppercase;
}

.location-copy > p:not(.kicker) { max-width: 34rem; color: #59564f; }
.location-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
.text-link { text-transform: uppercase; text-underline-offset: .35em; font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
.location-media { position: relative; min-height: 40rem; margin: 0; overflow: hidden; }
.location-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; filter: saturate(.82) contrast(1.04); }
.location-media figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .5rem .65rem;
  background: rgba(11, 11, 10, .88);
  color: var(--chalk);
  text-transform: uppercase;
  font-size: .55rem;
  letter-spacing: .1em;
}
.location-index { position: absolute; left: var(--gutter); bottom: 1.5rem; color: #6c675e; font-size: .58rem; letter-spacing: .1em; }

.concept-note {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(3rem, 9vw, 10rem);
  padding: clamp(5rem, 12vw, 11rem) var(--gutter);
  background: var(--floor);
}

.concept-note > .kicker { grid-column: 1 / -1; margin-bottom: 0; }
.concept-note > div { align-self: end; max-width: 37rem; }
.concept-note > div p { color: #bcb6aa; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.concept-note .button { margin-top: 1.5rem; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: start;
  gap: 2rem;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid rgba(242, 238, 230, .2);
  color: #a9a398;
  font-size: .62rem;
}
.site-footer p { margin: 0; }
.site-footer > p:last-child { text-align: right; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem 1.2rem; }
.footer-links a, .site-footer a { text-underline-offset: .25em; }

.no-js .movement,
.movement[data-motion-state="static"] { height: auto; }
.no-js .motion-stage,
.movement[data-motion-state="static"] .motion-stage {
  position: relative;
  height: auto;
  min-height: 0;
  background-image: linear-gradient(rgba(7, 7, 6, .78), rgba(7, 7, 6, .9)), url("assets/training-progression-poster.webp");
}
.no-js .motion-video,
.movement[data-motion-state="static"] .motion-video { display: none; }
.no-js .motion-copy,
.movement[data-motion-state="static"] .motion-copy { position: relative; min-height: 48rem; height: auto; }
.no-js .story-beats,
.movement[data-motion-state="static"] .story-beats {
  display: grid;
  gap: 1rem;
  min-height: 0;
  padding: 3rem 0;
}
.no-js .story-beat,
.movement[data-motion-state="static"] .story-beat {
  position: relative;
  display: block;
  inset: auto;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(242, 238, 230, .25);
  opacity: 1;
  visibility: visible;
  transform: none;
}
.no-js .story-beat > span,
.movement[data-motion-state="static"] .story-beat > span { display: none; }
.no-js .story-beat h3,
.movement[data-motion-state="static"] .story-beat h3 { font-size: clamp(3rem, 10vw, 6rem); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .opening-content { padding-top: 8rem; }
  .opening-bottom { padding-left: 35%; }
  .fact-rail { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr 1fr; }
  .fact-note { grid-column: 1; }
  .location { grid-template-columns: 1fr; }
  .location-media { min-height: 60svh; }
  .location-index { display: none; }
  .concept-note { grid-template-columns: 1fr; }
  .concept-note > .kicker { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p:last-child { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .site-header { min-height: 4.75rem; padding-block: .8rem; }
  .wordmark { font-size: .62rem; }
  .wordmark > span:first-child { width: 2.1rem; height: 2.1rem; }
  .header-action { font-size: .58rem; }
  .opening, .opening-content { min-height: 92svh; }
  .opening-media { object-position: 62% center; }
  .opening-grade { background: linear-gradient(0deg, rgba(8,8,7,.9) 0%, rgba(8,8,7,.35) 62%, rgba(8,8,7,.55) 100%); }
  .eyebrow { justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
  h1 { font-size: clamp(4rem, 20vw, 6rem); line-height: .76; }
  h1 span:nth-child(3) { margin-left: .15em; }
  .opening-bottom { align-items: flex-start; flex-direction: column; padding-left: 0; }
  .opening-line { display: none; }
  .button { width: min(100%, 21rem); }
  .media-label { max-width: 70%; }
  .fact-rail { padding-block: 4.5rem; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { margin-bottom: .6rem; }
  .movement { height: 260svh; }
  .motion-stage { min-height: 30rem; }
  .motion-video { object-position: 55% center; }
  .motion-copy { padding-top: 2rem; padding-bottom: 1.5rem; }
  .motion-topline .kicker { max-width: 14rem; }
  .story-beat h3 { font-size: clamp(5rem, 26vw, 8rem); }
  .story-beat > span { font-size: 55vw; right: -6vw; }
  .motion-footer { align-items: flex-start; flex-wrap: wrap; }
  .motion-credit { max-width: 65%; }
  .location-copy { padding-block: 4.5rem 5.5rem; }
  .location-media { min-height: 55svh; }
  .concept-note { padding-block: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion-override="true"]) { scroll-behavior: auto; }
  html:not([data-motion-override="true"]) *,
  html:not([data-motion-override="true"]) *::before,
  html:not([data-motion-override="true"]) *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
