:root {
  color-scheme: dark;
}

html {
  background: #050505;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, #050505 44rem),
    linear-gradient(120deg, #050505 0%, #0b0b0a 44%, #050505 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 72%);
  opacity: 0.45;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.75'/%3E%3C/svg%3E");
}

.page-shell {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .page-shell {
    padding-inline: 2rem;
  }
}

@media (min-width: 1100px) {
  .page-shell {
    padding-right: 16rem;
  }
}

@media (min-width: 1600px) {
  .page-shell {
    max-width: 1440px;
    padding-right: 18rem;
  }
}

@media (min-width: 2000px) {
  .page-shell {
    max-width: 1560px;
  }
}

.video-frame {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    #0d0d0c;
}

.video-frame iframe {
  display: block;
  height: 100%;
  width: 100%;
}

.section-jump-nav {
  position: sticky;
  top: 4rem;
  z-index: 35;
  margin: 0 -1.25rem 3rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.section-jump-nav::-webkit-scrollbar {
  display: none;
}

.section-jump-nav__inner {
  display: flex;
  gap: 0.6rem;
  min-width: max-content;
  padding: 0.75rem 1.25rem;
}

.section-jump-nav__item {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(244, 244, 245, 0.78);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.62rem 0.9rem;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.section-jump-nav__item.is-active {
  border-color: rgba(215, 255, 114, 0.68);
  background: rgba(215, 255, 114, 0.16);
  color: #ffffff;
}

@media (min-width: 640px) {
  .section-jump-nav {
    margin-inline: -2rem;
  }

  .section-jump-nav__inner {
    padding-inline: 2rem;
  }
}

@media (min-width: 1100px) {
  .section-jump-nav {
    position: static;
    margin: 0 0 4rem;
    overflow: visible;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .section-jump-nav__inner {
    flex-wrap: wrap;
    min-width: 0;
    padding: 0;
  }
}

.scroll-nav {
  display: none;
}

@media (min-width: 1100px) {
  .scroll-nav {
    position: fixed;
    top: 50%;
    right: clamp(1rem, 2.2vw, 3rem);
    z-index: 45;
    display: block;
    width: 20rem;
    pointer-events: auto;
    transform: translate(0, -50%);
  }

  .scroll-nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    bottom: 0.45rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.16);
  }

  .scroll-nav__item {
    position: relative;
    display: block;
    padding: 0.8rem 0 0.8rem 1.6rem;
    text-decoration: none;
  }

  .scroll-nav__dot {
    position: absolute;
    left: -0.325rem;
    top: 1.25rem;
    height: 0.65rem;
    width: 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: #050505;
    transition:
      background-color 180ms ease,
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  .scroll-nav__label {
    display: block;
    color: rgba(244, 244, 245, 0.78);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.25;
    transition: color 180ms ease;
  }

  .scroll-nav__meta {
    display: block;
    margin-top: 0.28rem;
    color: rgba(161, 161, 170, 0.58);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 180ms ease;
  }

  .scroll-nav__item.is-active .scroll-nav__dot {
    border-color: #d7ff72;
    background: #d7ff72;
    box-shadow: 0 0 18px rgba(215, 255, 114, 0.55);
    transform: scale(1.45);
  }

  .scroll-nav__item.is-active .scroll-nav__label {
    color: #ffffff;
  }

  .scroll-nav__item.is-active .scroll-nav__meta {
    color: #d7ff72;
  }
}

@media (min-width: 1600px) {
  .scroll-nav {
    right: clamp(1.25rem, 2.4vw, 3.5rem);
    width: 20.5rem;
  }
}

@media (min-width: 2000px) {
  .scroll-nav {
    right: clamp(1.35rem, 2.35vw, 3.75rem);
    width: 28rem;
  }

  .scroll-nav__item {
    padding: 1rem 0 1rem 2.1rem;
  }

  .scroll-nav__dot {
    left: -0.425rem;
    top: 1.55rem;
    height: 0.85rem;
    width: 0.85rem;
  }

  .scroll-nav__label {
    font-size: 25px;
    line-height: 1.2;
  }

  .scroll-nav__meta {
    margin-top: 0.36rem;
    font-size: 18px;
    letter-spacing: 0.11em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
