:root {
  --about-peak-white: #fbfff4;
  --about-peak-ink: #173328;
}

html, body {
  background: var(--about-peak-ink);
  height: 100vh;
  min-height: 100vh;
  min-width: 100vw;
  width: 100vw;
}

body {
  inset: 0;
  font-family: "Britti Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  height: 100vh !important;
  min-height: 100vh;
  min-width: 100vw;
  width: 100vw !important;
}

#canvas,
#transition-container,
#preloader {
  bottom: 0 !important;
  height: 100vh !important;
  left: 0 !important;
  min-height: 100vh;
  min-width: 100vw;
  right: 0 !important;
  top: 0 !important;
  width: 100vw !important;
}

#preloader {
  z-index: 10001 !important;
}

#preloader-canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.about-peak-wordmark {
  color: var(--about-peak-white);
  display: inline-flex;
  align-items: center;
  font-family: "Britti Sans", "Noto Sans SC", sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
}

#site-header a,
#home-pool__cta,
#home-join__buttons a {
  text-decoration: none;
}

#about-sound-control {
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 2.8em;
  mix-blend-mode: difference;
  overflow: hidden;
  padding: 0;
  position: fixed;
  right: calc(clamp(20px, 3vw, 42px) + clamp(152px, 12vw, 190px));
  top: clamp(20px, 3vw, 42px);
  width: 2.8em;
  z-index: 14;
}

#about-sound-control canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.about-sound-control__label {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 812px) {
  #about-sound-control {
    height: 2.5em;
    right: calc(20px + 98px);
    top: 20px;
    width: 2.5em;
  }
}

#home-hero .title {
  white-space: nowrap;
  z-index: 4;
}

#home-everblade__logo,
#home-evernet__logo,
#home-relayers .logo {
  opacity: 0 !important;
  pointer-events: none;
}

#home-everyone .title {
  font-family: "Britti Sans", "Noto Sans SC", sans-serif;
}

#home-everyone__lps .title {
  font-size: clamp(48px, 6.5vw, 96px);
  white-space: nowrap;
}

#home-everyone__lps .title-wrapper {
  align-items: center !important;
  text-align: center;
  width: 100%;
}

#home-everyone__lps .subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: min(100%, 48ch);
}

#home-everyone .subtitle,
#home-relayers .description,
#home-pool .description {
  font-family: "Britti Sans", "Noto Sans SC", "PingFang SC", sans-serif;
}

#home-relayers .title {
  max-width: 12ch;
  text-align: center;
}

#home-relayers .title-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  width: min(84vw, 980px);
  z-index: 1;
}

#home-relayers .description {
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.48;
  max-width: 72ch;
  text-align: left;
  width: 100%;
}

/* A long-form film shelf: the original scene stays alive behind one film at a time. */
#home-relayers {
  padding-bottom: calc(var(--vh) * 440);
}

#home-relayers .section__content {
  align-items: stretch;
  display: block;
  height: calc(var(--vh) * 100);
  overflow: hidden;
  position: relative;
}

#home-relayers .film-engine-copy {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

#home-relayers .film-story {
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}

#home-relayers .film-story__intro,
#home-relayers .film-panel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 680ms ease, transform 850ms cubic-bezier(.22, .8, .2, 1), visibility 0s linear 850ms;
}

#home-relayers .film-story__intro {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: center;
  margin: auto;
  max-width: min(84vw, 980px);
  position: absolute;
  text-align: center;
  transform: translateY(24px);
}

#home-relayers .film-story__eyebrow,
#home-relayers .film-panel__index,
#home-relayers .film-panel__english,
#home-relayers .film-panel__caption {
  font-family: "Britti Sans", "Noto Sans SC", sans-serif;
  font-size: clamp(10px, .78vw, 13px);
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.25;
  text-transform: uppercase;
}

#home-relayers .film-story__eyebrow {
  color: rgba(251, 255, 244, .7);
  margin: 0 0 18px;
}

#home-relayers .film-story__title {
  color: var(--about-peak-white);
  font-family: "Feature Display", "Noto Serif SC", serif;
  font-size: clamp(64px, 10vw, 148px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .84;
  margin: 0;
  max-width: 10ch;
}

#home-relayers .film-story__title span {
  display: block;
  font-size: .62em;
  letter-spacing: -.045em;
  margin-top: .13em;
}

#home-relayers .film-story__lead {
  color: var(--about-peak-white);
  font-family: "Britti Sans", "Noto Sans SC", sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
  margin: 28px 0 0;
  max-width: 38ch;
}

#home-relayers .film-panel {
  align-items: center;
  box-sizing: border-box;
  display: grid;
  gap: clamp(30px, 5.6vw, 104px);
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, .72fr);
  inset: 0;
  margin: auto;
  padding: clamp(40px, 7vh, 86px) clamp(42px, 7vw, 132px);
  position: absolute;
  transform: translateY(28px);
}

#home-relayers .film-panel--reverse {
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.42fr);
}

#home-relayers .film-panel__media {
  margin: 0;
  min-width: 0;
  position: relative;
}

#home-relayers .film-panel--reverse .film-panel__media {
  order: 2;
}

#home-relayers .film-panel--reverse .film-panel__copy {
  order: 1;
}

#home-relayers .film-panel__frame {
  background: rgba(13, 9, 34, .22);
  border: 1px solid rgba(251, 255, 244, .28);
  border-radius: 22px;
  box-shadow: 0 20px 70px rgba(8, 0, 26, .32);
  overflow: hidden;
}

#home-relayers .film-panel__image {
  display: block;
  height: min(50vh, 480px);
  object-fit: cover;
  width: 100%;
}

#home-relayers .film-panel__caption {
  color: rgba(251, 255, 244, .66);
  margin: 12px 0 0 2px;
}

#home-relayers .film-panel__copy {
  color: var(--about-peak-white);
  min-width: 0;
}

#home-relayers .film-panel__index {
  color: rgba(251, 255, 244, .72);
  margin: 0 0 16px;
}

#home-relayers .film-panel__title {
  font-family: "Feature Display", "Noto Serif SC", serif;
  font-size: clamp(48px, 5.35vw, 92px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .9;
  margin: 0;
  white-space: nowrap;
}

/* This title is deliberately a little tighter so the 9 stays with the film name. */
#home-relayers .film-panel--f9 .film-panel__title {
  font-size: clamp(38px, 4.45vw, 68px);
  letter-spacing: -.07em;
}

#home-relayers .film-panel__english {
  color: rgba(251, 255, 244, .76);
  margin: 14px 0 26px;
}

#home-relayers .film-panel__note {
  color: rgba(251, 255, 244, .62);
  font-size: clamp(10px, .76vw, 12px);
  letter-spacing: .08em;
  line-height: 1.45;
  margin: -8px 0 22px;
}

#home-relayers .film-panel__body {
  font-family: "Britti Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(15px, 1.16vw, 18px);
  line-height: 1.58;
  margin: 0;
  max-width: 25ch;
}

/* The warm still leads; the copy stays directly on the flowing violet field. */
#home-relayers .film-panel--mood {
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, .79fr);
}

#home-relayers .film-panel--mood .film-panel__copy {
  background: none;
  border-left: 0;
  padding: 0;
}

#home-relayers .film-panel--mood .film-panel__title {
  font-size: clamp(44px, 4.35vw, 74px);
}

#home-relayers .film-panel--mood .film-panel__english {
  margin-bottom: 18px;
}

#home-relayers[data-film-step="intro"] .film-story__intro,
#home-relayers[data-film-step="matrix"] .film-panel--matrix,
#home-relayers[data-film-step="f9"] .film-panel--f9,
#home-relayers[data-film-step="mood"] .film-panel--mood {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
  visibility: visible;
}

#home-pool .title {
  max-width: 14ch;
}

#home-join__buttons {
  gap: 12px;
}

/* The source animation requires this node; keep it out of the visual footer. */
#home-join .about-peak-runtime-subtitle {
  display: none !important;
}

.about-peak-noscript {
  background: #173328;
  color: #fbfff4;
  display: grid;
  inset: 0;
  padding: 32px;
  place-content: center;
  position: fixed;
  text-align: center;
  z-index: 10000;
}

@media (max-width: 767px) {
  .about-peak-wordmark {
    font-size: 14px;
    letter-spacing: .02em;
  }

  #home-hero .title {
    font-size: clamp(62px, 20vw, 82px);
    letter-spacing: -.045em;
  }

  #home-hero .kicker {
    white-space: nowrap;
  }

  #home-everblade .title,
  #home-evernet .title {
    font-size: clamp(54px, 16.6vw, 65px);
  }

  #home-everyone .title {
    font-size: clamp(36px, 11vw, 48px);
  }

  #home-everyone__lps .title {
    font-size: clamp(24px, 7.1vw, 34px);
  }

  #home-relayers .title {
    font-size: clamp(54px, 16vw, 72px);
    line-height: .92;
  }

  #home-relayers .title-wrapper {
    width: min(calc(100vw - 44px), 36ch);
  }

  #home-relayers .description {
    font-size: 12px;
    line-height: 1.48;
    max-width: none;
  }

  #home-relayers {
    padding-bottom: calc(var(--vh) * 400);
  }

  #home-relayers .film-story__intro {
    max-width: calc(100vw - 44px);
  }

  #home-relayers .film-story__title {
    font-size: clamp(58px, 18vw, 84px);
    line-height: .86;
  }

  #home-relayers .film-story__lead {
    font-size: 14px;
    margin-top: 22px;
  }

  #home-relayers .film-panel,
  #home-relayers .film-panel--reverse {
    display: flex;
    flex-direction: column;
    gap: 17px;
    justify-content: center;
    padding: 58px 22px 32px;
  }

  #home-relayers .film-panel__media,
  #home-relayers .film-panel--reverse .film-panel__media {
    order: 1;
    width: 100%;
  }

  #home-relayers .film-panel__copy,
  #home-relayers .film-panel--reverse .film-panel__copy {
    order: 2;
    width: 100%;
  }

  #home-relayers .film-panel__frame {
    border-radius: 15px;
  }

  #home-relayers .film-panel__image {
    height: min(30vh, 252px);
  }

  #home-relayers .film-panel__caption {
    font-size: 9px;
    margin-top: 9px;
  }

  #home-relayers .film-panel__index,
  #home-relayers .film-panel__english,
  #home-relayers .film-panel__note {
    font-size: 10px;
  }

  #home-relayers .film-panel__index {
    margin-bottom: 10px;
  }

  #home-relayers .film-panel__title {
    font-size: clamp(46px, 15vw, 62px);
  }

  #home-relayers .film-panel--f9 .film-panel__title {
    font-size: clamp(38px, 12.2vw, 50px);
  }

  #home-relayers .film-panel__english {
    margin: 9px 0 15px;
  }

  #home-relayers .film-panel__body {
    font-size: 14px;
    line-height: 1.45;
    max-width: 31ch;
  }

  #home-relayers .film-panel--mood .film-panel__copy {
    background: none;
    border-left: 0;
    padding: 0;
  }

  #home-pool .title {
    font-size: clamp(54px, 15vw, 70px);
    line-height: .92;
  }

  #site-header__mobile-cta span:first-child {
    font-size: 13px;
  }
}

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

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
