:root {
  --ink: #f7f3ec;
  --muted: #c5c0b8;
  --dim: #8e8981;
  --night: #090907;
  --charcoal: #151511;
  --ember: #e95f3e;
  --gold: #f6c55d;
  --verdigris: #71d5c7;
  --line: color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow: rgb(0 0 0 / 46%);
  --font-sans:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:
    "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 8%, color-mix(in srgb, var(--ember) 18%, transparent), transparent 29rem),
    linear-gradient(180deg, var(--night) 0%, color-mix(in srgb, var(--night) 88%, var(--charcoal)) 42%, var(--night) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
}

[data-display-font="modern"] {
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-display-font="monumental"] {
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

body.is-reduced-motion .scroll-video {
  height: auto;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-runtime {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--night) 78%, transparent), transparent);
  pointer-events: none;
}

.site-header a {
  pointer-events: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.3rem);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-header nav a {
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 0.92fr) minmax(22rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  padding: clamp(6rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5rem) clamp(3rem, 8vw, 6rem);
}

.hero[data-media-position="left"] .hero__copy {
  order: 2;
}

.hero--without-media {
  grid-template-columns: minmax(0, 1fr);
}

.hero--without-media .hero__copy {
  max-width: 70rem;
}

.hero::after {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 0;
  left: clamp(1rem, 5vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
}

.hero__copy {
  max-width: 48rem;
}

[data-text-reveal="item"] {
  opacity: 0;
  transform: translate3d(0, 1.25rem, 0);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-text-reveal="item"][data-reveal-visible] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-text-reveal="group"] > * {
  opacity: 0;
  transform: translate3d(0, 1.1rem, 0);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

[data-text-reveal="group"] > :nth-child(2) {
  transition-delay: 80ms;
}

[data-text-reveal="group"] > :nth-child(3) {
  transition-delay: 160ms;
}

[data-text-reveal="group"] > :nth-child(4) {
  transition-delay: 240ms;
}

[data-text-reveal="group"][data-reveal-visible] > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2 {
  max-width: 13ch;
  margin-block-end: 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.35rem, 8vw, 8.8rem);
}

[data-display-font="monumental"] h1,
[data-display-font="monumental"] h2 {
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.6rem, 6vw, 6.6rem);
}

h3 {
  margin-block-end: 0.8rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__lede,
.build-notes p {
  max-width: 37rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.text-link,
.ghost-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.85rem;
  margin-top: 1.15rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link {
  border-bottom: 1px solid rgb(246 197 93 / 78%);
}

.ghost-button {
  padding-inline: 1.1rem;
  border: 1px solid rgb(247 243 236 / 42%);
  background: rgb(9 9 7 / 36%);
  backdrop-filter: blur(14px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgb(246 197 93 / 82%);
  background: rgb(246 197 93 / 13%);
  transform: translateY(-1px);
}

.hero__still {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 21rem;
  overflow: hidden;
  border: 1px solid rgb(247 243 236 / 16%);
  box-shadow: 0 2rem 8rem var(--shadow);
}

.hero__still::before,
.hero__still::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero__still::before {
  z-index: 1;
  background: linear-gradient(115deg, rgb(9 9 7 / 62%), transparent 58%);
}

.hero__still::after {
  z-index: 2;
  border: 1px solid rgb(246 197 93 / 22%);
  transform: translate(-0.85rem, 0.85rem);
}

.hero__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-video {
  position: relative;
  height: 420vh;
  background: color-mix(in srgb, var(--night) 92%, black);
}

.scroll-video__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 36rem;
  overflow: hidden;
  isolation: isolate;
}

.scroll-video__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.scroll-video__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgb(5 5 4 / 88%) 0%, rgb(5 5 4 / 44%) 42%, rgb(5 5 4 / 20%) 100%),
    linear-gradient(0deg, rgb(5 5 4 / 68%) 0%, transparent 38%, rgb(5 5 4 / 22%) 100%);
  opacity: var(--veil-strength, 0.42);
  pointer-events: none;
}

.scroll-video__fallback {
  width: 100%;
  height: 100%;
}

.scroll-video__empty,
.image-band__empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(135deg, color-mix(in srgb, var(--charcoal) 92%, var(--night)), var(--night));
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-video--poster-only,
.scroll-video--empty {
  height: 100vh !important;
}

.chapter-copy {
  position: absolute;
  z-index: 4;
  top: clamp(5rem, 10vh, 7rem);
  left: clamp(1.5rem, 4vw, 4rem);
  width: min(25rem, calc(100vw - 4rem));
  pointer-events: none;
}

.chapter-copy__panel {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  color: var(--ink);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 260ms ease, transform 360ms ease;
  text-shadow: 0 2px 1.4rem rgb(0 0 0 / 92%);
}

.chapter-copy__panel[aria-hidden="true"] {
  opacity: 0;
  transform: translateY(0.75rem);
}

.chapter-copy__eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-copy h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 0.98;
}

.chapter-copy__body {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  line-height: 1.55;
}

.chapter-rail {
  position: absolute;
  z-index: 4;
  right: clamp(1rem, 3vw, 2.8rem);
  bottom: clamp(1rem, 4vw, 3rem);
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-rail button {
  display: grid;
  grid-template-columns: 0.6rem auto;
  align-items: center;
  gap: 0.65rem;
  width: 8.8rem;
  border: 0;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease;
}

.chapter-rail button::before {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.chapter-rail button[aria-current="true"],
.chapter-rail button:hover,
.chapter-rail button:focus-visible {
  color: var(--ink);
}

.chapter-rail button[aria-current="true"]::before {
  background: var(--gold);
  box-shadow: 0 0 1rem rgb(246 197 93 / 62%);
}

.chapter-rail span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.progress-meter {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgb(247 243 236 / 15%);
}

.progress-meter span {
  display: block;
  width: calc(var(--scroll-progress, 0) * 100%);
  height: 100%;
  background: linear-gradient(90deg, var(--verdigris), var(--gold), var(--ember));
  box-shadow: 0 0 1.4rem rgb(246 197 93 / 70%);
}

.no-js-message {
  position: absolute;
  z-index: 4;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: rgb(5 5 4 / 78%);
}

.build-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--verdigris) 16%, transparent), transparent 24rem),
    linear-gradient(180deg, var(--night) 0%, var(--charcoal) 100%);
}

.build-notes h2 {
  max-width: 11ch;
}

.build-notes__grid {
  display: grid;
  gap: 1rem;
}

.build-notes article {
  padding: clamp(1.15rem, 3vw, 1.65rem) 0;
  border-top: 1px solid var(--line);
}

.build-notes article:last-child {
  border-bottom: 1px solid var(--line);
}

.build-notes article p {
  margin: 0;
}

.text-band,
.cta-band {
  display: grid;
  min-height: 72vh;
  align-items: center;
  padding: clamp(5rem, 11vw, 10rem) clamp(1.25rem, 8vw, 9rem);
  background: var(--night);
}

.text-band__copy,
.cta-band > * {
  max-width: 50rem;
}

.text-band[data-width="narrow"] .text-band__copy {
  max-width: 36rem;
}

.text-band[data-width="wide"] .text-band__copy {
  max-width: 72rem;
}

.text-band[data-alignment="center"] .text-band__copy {
  margin-inline: auto;
  text-align: center;
}

.text-band[data-alignment="center"] h2 {
  margin-inline: auto;
}

.text-band[data-alignment="right"] .text-band__copy {
  margin-left: auto;
  text-align: right;
}

.text-band[data-alignment="right"] h2 {
  margin-left: auto;
}

.text-band p,
.cta-band p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.text-band[data-alignment="center"] p {
  margin-inline: auto;
}

.text-band[data-alignment="right"] p {
  margin-left: auto;
}

.image-band {
  position: relative;
  min-height: var(--image-band-height, 82vh);
  margin: 0;
  overflow: hidden;
  background: var(--charcoal);
}

.image-band img {
  width: 100%;
  height: var(--image-band-height, 82vh);
}

.image-band figcaption {
  position: absolute;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1rem, 4vw, 3rem);
  max-width: 32rem;
  padding: 0.8rem 1rem;
  color: #fff;
  background: rgb(0 0 0 / 58%);
  font-size: 0.82rem;
}

.cta-band {
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 32rem),
    var(--charcoal);
}

.cta-band h2,
.cta-band p {
  margin-inline: auto;
}

.no-js-fallback {
  display: grid;
  min-height: 100vh;
  align-items: end;
  padding: clamp(1.25rem, 5vw, 5rem);
  background: var(--night);
}

.no-js-fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.no-js-fallback > div {
  position: relative;
  max-width: 54rem;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .build-notes {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .hero__still {
    min-height: unset;
  }

  .scroll-video {
    height: 360vh;
  }

  .scroll-video__stage {
    min-height: 100svh;
  }

  .chapter-rail {
    right: auto;
    left: clamp(1rem, 5vw, 1.5rem);
    bottom: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100vw - 2rem);
  }

  .chapter-rail button {
    width: 100%;
    grid-template-columns: 0.5rem minmax(0, auto);
    gap: 0.45rem;
  }

  .chapter-rail span {
    font-size: 0.62rem;
    overflow-wrap: anywhere;
  }

  .chapter-copy {
    top: 5rem;
    left: 1rem;
    width: min(19rem, calc(100vw - 2rem));
  }

  .chapter-copy h2 {
    font-size: 2.15rem;
  }

  .chapter-copy__body {
    max-width: 28ch;
    margin-top: 0.65rem;
    font-size: 0.82rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-text-reveal],
  [data-text-reveal] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-video {
    height: auto;
  }

  .scroll-video__stage {
    position: relative;
    min-height: 100svh;
  }

  .scroll-video__media {
    object-position: center;
  }
}
