.hp-world {
  --hp-ink: #101719;
  --hp-paper: #f0eee7;
  --hp-muted: rgba(240, 238, 231, .68);
  --hp-line: rgba(240, 238, 231, .28);
  --hp-progress: 0;
  position: relative;
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow: clip;
  background: var(--hp-ink);
  color: var(--hp-paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.hp-world button,
.hp-world input {
  font: inherit;
}

.hp-world__story {
  position: relative;
  height: 700svh;
  min-height: 4200px;
}

.hp-world__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  background: #101719;
}

.hp-world__media,
.hp-world__frame,
.hp-world__light,
.hp-world__grain,
.hp-world__shade {
  position: absolute;
  inset: 0;
}

.hp-world__media {
  z-index: 0;
  overflow: hidden;
  background: #121a1d;
}

.hp-world__frame {
  margin: 0;
  opacity: var(--hp-frame-opacity, 0);
  transform: translate3d(0, calc(var(--hp-frame-shift, 0) * 1%), 0) scale(1.055);
  transition: opacity 120ms linear;
  will-change: opacity, transform;
}

.hp-world:not(.is-ready) .hp-world__frame:first-child {
  opacity: 1;
}

.hp-world__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 49%;
  filter: saturate(.92) contrast(1.035);
}

.hp-world__frame:nth-child(1) img { object-position: 50% 44%; }
.hp-world__frame:nth-child(2) img { object-position: 52% 48%; }
.hp-world__frame:nth-child(3) img { object-position: 50% 52%; }
.hp-world__frame:nth-child(4) img { object-position: 50% 52%; }
.hp-world__frame:nth-child(5) img { object-position: 50% 53%; }
.hp-world__frame:nth-child(6) img { object-position: 50% 52%; }
.hp-world__frame:nth-child(7) img { object-position: 50% 55%; }

.hp-world__light {
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(20% + var(--hp-progress) * 62%) 22%, rgba(235, 209, 157, calc(.3 - var(--hp-progress) * .16)), transparent 36%),
    linear-gradient(180deg, rgba(20, 35, 47, calc(var(--hp-progress) * .28)), transparent 55%);
  mix-blend-mode: screen;
}

.hp-world__grain {
  z-index: 2;
  pointer-events: none;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hp-world__shade {
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 11, 13, .78) 0%, rgba(7, 11, 13, .45) 34%, rgba(7, 11, 13, .08) 67%, rgba(7, 11, 13, .22) 100%),
    linear-gradient(180deg, rgba(7, 11, 13, .4), transparent 32%, transparent 66%, rgba(7, 11, 13, .65));
}

.hp-world__brand {
  position: absolute;
  z-index: 5;
  top: clamp(24px, 4vw, 52px);
  right: clamp(24px, 4vw, 70px);
  left: clamp(24px, 4vw, 70px);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hp-line);
  color: rgba(240, 238, 231, .72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hp-world__chapters {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: clamp(24px, 7vw, 118px);
  width: min(660px, calc(100% - 48px));
  transform: translateY(-48%);
}

.hp-world__chapter {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  pointer-events: none;
  transition: opacity 430ms ease, transform 620ms cubic-bezier(.2, .7, .2, 1), visibility 430ms;
}

.hp-world__chapter.is-active {
  position: relative;
  top: auto;
  visibility: visible;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.hp-world__eyebrow {
  margin: 0 0 18px;
  color: rgba(240, 238, 231, .7);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.hp-world__chapter h1,
.hp-world__chapter h2,
.hp-world__closing h2 {
  margin: 0;
  color: var(--hp-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 8.4vw, 132px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.066em;
  text-wrap: balance;
  text-shadow: 0 5px 35px rgba(0, 0, 0, .24);
}

.hp-world__chapter h2 {
  font-size: clamp(52px, 7.4vw, 116px);
}

.hp-world__lead {
  max-width: 470px;
  margin: clamp(22px, 3vw, 36px) 0 0;
  color: rgba(240, 238, 231, .8);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: balance;
}

.hp-world__note-trigger,
.hp-world__cta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: clamp(20px, 3vw, 34px);
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(240, 238, 231, .46);
  background: transparent;
  color: var(--hp-paper);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, gap 180ms ease;
}

.hp-world__note-trigger:hover,
.hp-world__note-trigger:focus-visible,
.hp-world__cta:hover,
.hp-world__cta:focus-visible {
  gap: 18px;
  border-color: var(--hp-paper);
}

.hp-world__note-trigger span {
  color: rgba(240, 238, 231, .5);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0;
}

.hp-world__note {
  max-width: 430px;
  margin: 17px 0 0;
  padding-left: 18px;
  border-left: 1px solid rgba(240, 238, 231, .35);
  color: rgba(240, 238, 231, .72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.2vw, 18px);
  font-style: italic;
  line-height: 1.55;
}

.hp-world__note[hidden] {
  display: none;
}

.hp-world__timeline {
  position: absolute;
  z-index: 6;
  right: clamp(24px, 4vw, 70px);
  bottom: clamp(27px, 4vw, 56px);
  left: clamp(24px, 4vw, 70px);
}

.hp-world__timeline-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: rgba(240, 238, 231, .78);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hp-world__timeline-head time {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .05em;
}

.hp-world__range-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hp-world__range {
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
}

.hp-world__range::-webkit-slider-runnable-track {
  height: 1px;
  background: linear-gradient(90deg, var(--hp-paper) calc(var(--hp-progress) * 100%), var(--hp-line) 0);
}

.hp-world__range::-moz-range-track {
  height: 1px;
  background: var(--hp-line);
}

.hp-world__range::-moz-range-progress {
  height: 1px;
  background: var(--hp-paper);
}

.hp-world__range::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -6.5px;
  border: 1px solid rgba(240, 238, 231, .86);
  border-radius: 50%;
  background: rgba(16, 23, 25, .58);
  box-shadow: 0 0 0 5px rgba(16, 23, 25, .2);
  appearance: none;
  -webkit-appearance: none;
}

.hp-world__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(240, 238, 231, .86);
  border-radius: 50%;
  background: rgba(16, 23, 25, .58);
  box-shadow: 0 0 0 5px rgba(16, 23, 25, .2);
}

.hp-world__range:focus-visible {
  outline: 2px solid var(--hp-paper);
  outline-offset: 7px;
}

.hp-world__ticks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 4px;
  color: rgba(240, 238, 231, .48);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hp-world__ticks span:nth-child(2),
.hp-world__ticks span:nth-child(3),
.hp-world__ticks span:nth-child(4) { text-align: center; }
.hp-world__ticks span:last-child { text-align: right; }

.hp-world__hint,
.hp-world__credit {
  position: absolute;
  z-index: 6;
  margin: 0;
  color: rgba(240, 238, 231, .48);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hp-world__hint {
  top: 50%;
  right: clamp(10px, 1.5vw, 22px);
  transform: translateY(-50%);
}

.hp-world__hint span {
  display: inline-block;
  margin-bottom: 8px;
}

.hp-world__credit {
  bottom: 155px;
  left: clamp(10px, 1.5vw, 22px);
  transform: rotate(180deg);
}

.hp-world__closing {
  position: relative;
  min-height: 82svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 12vw, 170px) 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(95, 119, 131, .22), transparent 42%),
    #11191b;
  text-align: center;
}

.hp-world__closing h2 {
  max-width: 1050px;
  font-size: clamp(48px, 7.6vw, 116px);
}

.hp-world__closing > p:not(.hp-world__eyebrow) {
  max-width: 630px;
  margin: 34px 0 0;
  color: rgba(240, 238, 231, .68);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.7;
  text-wrap: balance;
}

.hp-world__closing > a {
  margin-top: 38px;
  padding: 13px 20px;
  border: 1px solid rgba(240, 238, 231, .5);
  border-radius: 999px;
  color: var(--hp-paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.hp-world__closing > a:hover,
.hp-world__closing > a:focus-visible {
  background: var(--hp-paper);
  color: var(--hp-ink);
}

.hp-world a:focus-visible,
.hp-world button:focus-visible {
  outline: 2px solid var(--hp-paper);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .hp-world__story {
    height: 610svh;
    min-height: 3900px;
  }

  .hp-world__stage {
    min-height: 620px;
  }

  .hp-world__shade {
    background:
      linear-gradient(180deg, rgba(7, 11, 13, .48), transparent 29%, transparent 46%, rgba(7, 11, 13, .82) 78%),
      linear-gradient(90deg, rgba(7, 11, 13, .24), transparent 72%);
  }

  .hp-world__brand {
    top: 20px;
    right: 20px;
    left: 20px;
    font-size: 8px;
  }

  .hp-world__brand span:last-child {
    text-align: right;
  }

  .hp-world__chapters {
    top: auto;
    right: 22px;
    bottom: 136px;
    left: 22px;
    width: auto;
    transform: none;
  }

  .hp-world__chapter h1,
  .hp-world__chapter h2 {
    font-size: clamp(50px, 15vw, 78px);
    line-height: .86;
  }

  .hp-world__lead {
    max-width: 390px;
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.48;
  }

  .hp-world__note-trigger,
  .hp-world__cta {
    margin-top: 13px;
    padding: 8px 0;
    font-size: 8px;
  }

  .hp-world__note {
    max-width: 360px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
  }

  .hp-world__timeline {
    right: 22px;
    bottom: 29px;
    left: 22px;
  }

  .hp-world__ticks {
    font-size: 6.5px;
    letter-spacing: .08em;
  }

  .hp-world__hint,
  .hp-world__credit {
    display: none;
  }

  .hp-world__frame:nth-child(5) img { object-position: 61% 50%; }
}

@media (max-width: 520px) {
  .hp-world__eyebrow {
    margin-bottom: 12px;
    font-size: 8px;
  }

  .hp-world__chapter h1,
  .hp-world__chapter h2 {
    font-size: clamp(46px, 14.8vw, 66px);
  }

  .hp-world__chapter:nth-child(5) h2 {
    font-size: clamp(40px, 12.7vw, 58px);
  }

  .hp-world__chapter .hp-world__lead {
    max-width: 320px;
  }

  .hp-world__frame:nth-child(2) img { object-position: 56% 49%; }
  .hp-world__frame:nth-child(6) img { object-position: 53% 51%; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-world__frame,
  .hp-world__chapter,
  .hp-world__closing > a,
  .hp-world__note-trigger,
  .hp-world__cta {
    transition-duration: .01ms !important;
  }

  .hp-world__frame {
    transform: none !important;
  }
}

