:root {
  --orange: #e8611a;
  --ink: #111111;
  --white: #ffffff;
  --hover: #cfcfcf;
  --header-top: 28px;
  --font: "Liter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #0b0d10;
  -webkit-font-smoothing: antialiased;
}

ul { margin: 0; padding: 0; list-style: none; }

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

.site-header {
  position: fixed;
  inset: var(--header-top) 16px auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  width: min(840px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 40px;
  background: var(--white);
  border: 1px solid var(--orange);
  border-radius: 10px;
  box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .45);
}

.nav__list { display: contents; }
.nav__list > li { display: flex; justify-content: center; }
.nav__list > li:nth-child(1) { order: 1; }
.nav__list > li:nth-child(2) { order: 2; }
.nav__logo { order: 3; }
.nav__list > li:nth-child(3) { order: 4; }
.nav__list > li:nth-child(4) { order: 5; }

.nav__link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--hover);
  outline: none;
}

.nav__logo {
  display: block;
  padding: 0 24px;
}

.nav__logo img {
  display: block;
  height: 44px;
  width: auto;
}

.nav__toggle { display: none; }

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

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
}

.hero__media,
.hero__video {
  position: absolute;
  inset: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 6s linear;
}

.hero__video.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%);
}

.hero__content {
  position: absolute;
  left: clamp(16px, 6vw, 96px);
  right: 16px;
  bottom: clamp(32px, 8vh, 80px);
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}

.hero__title {
  margin: 0 0 28px;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.hero__indicators { display: flex; gap: 10px; }

.hero__indicator {
  position: relative;
  width: 56px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.hero__indicator::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
}

.hero__indicator span {
  position: relative;
  z-index: 1;
  display: block;
  height: 3px;
  width: 0;
  border-radius: 2px;
  background: var(--white);
}

.hero__indicator.is-active span {
  animation: indicator-fill var(--slide-duration, 5s) linear forwards;
}

.hero.is-paused .hero__indicator.is-active span {
  animation-play-state: paused;
}

@keyframes indicator-fill {
  from { width: 0; }
  to { width: 100%; }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  :root { --header-top: 16px; }

  .nav {
    grid-template-columns: auto 1fr;
    padding: 8px 12px 8px 16px;
  }

  .nav__logo { order: 0; padding: 0; justify-self: start; }
  .nav__logo img { height: 36px; }

  .nav__toggle {
    order: 1;
    justify-self: end;
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
  }

  .nav__toggle:hover { background: var(--hover); }

  .nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform .25s var(--ease);
  }

  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav__list {
    order: 2;
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 4px;
    border-top: 1px solid #eee;
  }

  .nav.is-open .nav__list { display: flex; }

  .nav__list > li { justify-content: stretch; }
  .nav__link { width: 100%; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { transition: opacity .3s linear; transform: none; }
  .hero__video.is-active { transform: none; }
}
