@font-face {
  font-family: Field;
  src: url(../lab/fonts/BarlowSemiCondensed-SemiBold.ttf);
  font-display: swap;
}
@font-face {
  font-family: Headline;
  src: url(../lab/fonts/BarlowSemiCondensed-ExtraBold.ttf);
  font-display: swap;
}
:root {
  color-scheme: dark;
  color: #fff6dd;
  background: #111812;
  font:
    18px Field,
    system-ui,
    sans-serif;
  --edge: clamp(24px, 5.3vw, 100px);
  --acid: #e8fd8f;
}
* {
  box-sizing: border-box;
}
body,
figure,
p,
h1,
h2,
ul {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 5px;
}
.skip {
  position: fixed;
  top: -6em;
  background: #111;
  padding: 12px;
  z-index: 15;
}
.skip:focus {
  top: 4px;
}
header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(20px, 3vw, 44px) var(--edge);
  background: linear-gradient(#12140f7a, transparent);
  gap: 12px;
}
header > div {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand img {
  width: clamp(106px, 10.5vw, 175px);
  height: auto;
  display: block;
}
.platform-link,
#motion {
  border: 1px solid #fff8;
  border-radius: 50px;
  color: #fff8e6;
  background: #131b19ad;
  min-height: 40px;
  padding: 9px 17px;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.platform-link span {
  margin-left: 8px;
}
#motion {
  cursor: pointer;
}
#motion[hidden] {
  display: none;
}
#journey {
  position: relative;
  isolation: isolate;
}
.stage {
  display: none;
}
.chapter {
  position: relative;
  display: flex;
  align-items: center;
  padding: 110px var(--edge);
  height: 100svh;
  min-height: 510px;
  isolation: isolate;
}
.chapter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, #07100dd9, transparent 80%),
    var(--back) center/cover;
}
.chapter::before {
  content: "";
  position: absolute;
  right: 6%;
  top: 22%;
  width: 48%;
  height: 60%;
  background: var(--cast) center/contain no-repeat;
  z-index: -1;
}
.copy {
  max-width: 52vw;
}
.location {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(13px, 1.25vw, 18px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 1.1rem;
}
.location span {
  width: 35px;
  height: 2px;
  background: currentColor;
}
.chapter h1,
.chapter h2,
.recruit h2 {
  font:
    normal clamp(76px, 9.5vw, 188px)/0.79 Headline,
    Impact,
    sans-serif;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.chapter i,
.recruit i {
  font-style: italic;
  color: var(--acid);
}
.line,
.recruit p {
  font-size: clamp(19px, 1.65vw, 28px);
  margin-top: 1.4rem;
  line-height: 1.25;
}
.explore {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 2.2em;
  font-size: 15px;
}
.explore span {
  border: 1px solid #fff8;
  border-radius: 100px;
  padding: 7px 13px;
}
.trail {
  display: none;
}
html[data-enhanced] .stage {
  display: block;
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 350px;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
  background: #1c231b;
}
.plate,
.land,
.shade,
#siege {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.plate {
  opacity: 0;
  overflow: hidden;
}
.land,
.chapter::after {
  filter: saturate(1.14) contrast(1.035) brightness(1.025);
}
.plate:first-child {
  opacity: 1;
}
.land {
  object-fit: cover;
  object-position: 60% 50%;
}
.standin {
  position: absolute;
  right: 8%;
  top: 24%;
  width: 45%;
  height: 59%;
  object-fit: contain;
  filter: drop-shadow(0 24px 10px #15110955);
}
#siege {
  opacity: 0;
  pointer-events: none;
}
#siege[data-ready="true"] {
  opacity: 1;
}
.stage:has(#siege[data-ready="true"]) .standin {
  visibility: hidden;
}
.shade {
  background:
    linear-gradient(90deg, #09100ee8 0%, #0d1710a1 23%, transparent 62%),
    linear-gradient(
      0deg,
      #080e0ed4,
      transparent 21%,
      transparent 85%,
      #10170e35
    );
}
html[data-enhanced] .chapter {
  height: 112svh;
  min-height: 510px;
  background: none;
  pointer-events: none;
}
html[data-enhanced] .chapter::after,
html[data-enhanced] .chapter::before {
  display: none;
}
.copy a {
  pointer-events: auto;
}
html[data-enhanced] .trail {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  padding: 20px var(--edge);
  height: 64px;
  margin-top: -64px;
  z-index: 4;
  background: linear-gradient(transparent, #10160e88);
}
.trail a {
  font-size: 14px;
  color: #fff8e6;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
}
.trail span {
  width: 17px;
  height: 2px;
  background: currentColor;
}
.trail a[aria-current="step"] {
  color: var(--acid);
}
.trail a[aria-current="step"] span {
  width: 40px;
}
#frostpass {
  --acid: #acf4ff;
}
#ember {
  --acid: #ffb580;
}

.recruit h2 {
  font-size: clamp(74px, 8vw, 146px);
}
.stores {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 28px 0 60px;
}
.stores button,
.stores a {
  display: grid;
  gap: 2px;
  text-align: left;
  background: #1f2c2a;
  border: 1px solid #54605b;
  border-radius: 4px;
  color: #fff4df;
  padding: 12px 24px;
}
.stores strong {
  font: 22px Headline;
}
.stores small {
  color: #c4ccbc;
  font-size: 14px;
}

@media (max-width: 700px) {
  header {
    padding: 19px 20px;
  }
  header > div {
    gap: 7px;
  }
  .brand img {
    width: 100px;
  }
  #motion,
  .platform-link {
    font-size: 13px;
    padding: 7px 10px;
    min-height: 34px;
  }
  .chapter,
  html[data-enhanced] .chapter {
    align-items: flex-end;
    padding: 0 22px max(94px, 13svh);
    height: 100svh;
  }
  .chapter::before,
  .standin {
    right: 8%;
    width: 78%;
    top: 13%;
    height: 40%;
  }
  .chapter::after {
    background:
      linear-gradient(0deg, #08100dea 4%, transparent 79%),
      var(--back) 65% center/cover;
  }
  .shade {
    background: linear-gradient(
      0deg,
      #08100df2 1%,
      #101810b8 26%,
      transparent 61%,
      #07100c48 100%
    );
  }
  .copy {
    max-width: 100%;
  }
  .location {
    margin-bottom: 0.65rem;
    font-size: 12px;
  }
  .chapter h1,
  .chapter h2 {
    font-size: clamp(62px, 16vw, 104px);
  }
  .line {
    font-size: 18px;
    max-width: 28ch;
    margin-top: 12px;
  }
  .explore {
    margin-top: 12px;
  }
  .explore span {
    padding: 2px 9px;
  }
  .trail a {
    font-size: 12px;
  }
  .trail span {
    width: 10px;
  }
  .trail a[aria-current="step"] span {
    width: 21px;
  }
  html[data-enhanced] .trail {
    justify-content: space-between;
    padding: 12px 20px;
    height: 54px;
    margin-top: -54px;
    gap: 7px;
  }
  .stores button,
  .stores a {
    padding: 10px 13px;
  }
}
@media (max-height: 540px) and (min-width: 701px) {
  .chapter h1,
  .chapter h2 {
    font-size: 68px;
  }
  .explore {
    margin-top: 12px;
  }
}
html[data-motion="off"] .stage {
  display: none;
}
html[data-motion="off"] .chapter::after {
  background:
    linear-gradient(90deg, #07100ddd, transparent 80%),
    var(--back) center/cover;
}
html[data-motion="off"] .chapter::after,
html[data-motion="off"] .chapter::before {
  display: block;
}
html[data-motion="off"] .trail {
  background: #101815;
}
@media (max-width: 700px) {
  html[data-motion="off"] .chapter::after {
    background:
      linear-gradient(0deg, #08100df4, transparent 80%),
      var(--back) 65% center/cover;
  }
}
header {
  position: fixed;
  pointer-events: none;
}
header a,
header button {
  pointer-events: auto;
}

html[data-motion="off"] .copy {
  transform: none !important;
}
@media (min-width: 701px) {
  .standin {
    top: 30%;
    height: 55%;
  }
}
@media (max-width: 700px) {
  .standin,
  .chapter::before {
    top: 23%;
    height: 34%;
  }
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.recruit p {
  max-width: 42ch;
}
html[data-motion="on"] {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html[data-motion="on"] {
    scroll-behavior: auto;
  }
}
html[data-motion="off"] .copy,
.copy:focus-within {
  opacity: 1 !important;
}

/* Let the portrait and the invitation share the final frame. */
.chapter.finale {
  --acid: #ffd890;
}
.portrait-plate .land {
  filter: blur(9px) brightness(0.76) saturate(0.92);
}
.portrait-plate .standin,
.chapter.finale::before {
  top: 8%;
  right: 1%;
  width: 58%;
  height: 90%;
}
.finale .stores {
  margin: 1.4rem 0 0;
}
.finale .copy {
  pointer-events: auto;
}
.finale .recruit p {
  margin-top: 1rem;
  max-width: 34ch;
}
@media (max-width: 700px) {
  .chapter.finale,
  html[data-enhanced] .chapter.finale {
    padding-bottom: 63px;
  }
  .finale .recruit h2 {
    font-size: clamp(48px, 12.5vw, 78px);
  }
  .finale .recruit p {
    max-width: 34ch;
    margin-top: 10px;
    font-size: 16px;
  }
  .finale .stores {
    margin-top: 12px;
    gap: 6px;
  }
  .finale .stores button,
  .finale .stores a {
    padding: 7px 12px;
  }
  .finale .stores strong {
    font-size: 18px;
  }
  .portrait-plate .standin,
  .chapter.finale::before {
    width: 92%;
    height: 53%;
    right: 4%;
    top: 5%;
  }
}
.portrait-plate .standin,
.chapter.finale::before {
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}
@media (max-width: 700px) {
  .finale .copy {
    width: 100%;
  }
  .finale .stores {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 360px;
  }
  .finale .stores button,
  .finale .stores a {
    width: 100%;
    padding-inline: 8px;
  }
  .finale .stores strong {
    white-space: nowrap;
    font-size: clamp(15px, 4.5vw, 18px);
  }
}

/* The snow shelf and canyon floor occupy the lower half of the phone crop. */
@media (max-width: 700px) {
  #frostpass.chapter,
  #ember.chapter {
    align-items: flex-start;
    padding-top: max(92px, 13svh);
  }

  #frostpass .copy,
  #ember .copy {
    text-shadow: 0 2px 12px rgba(7, 14, 19, .85);
  }

  #frostpass h2,
  #ember h2 {
    font-size: clamp(48px, 12.8vw, 78px);
  }
}
