:root {
  color-scheme: dark;
  --background: #141816;
  --ink: #f1f0e9;
  --muted: #b6bbb5;
  --padding: clamp(24px, 4.2vw, 80px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 7px; }
::selection { background: #d7e4be; color: #141816; }
.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-style: italic; }
.eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; z-index: 100; background: var(--ink); color: var(--background); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; padding: 32px var(--padding); display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-size: 23px; font-weight: 600; letter-spacing: -.065em; }
.wordmark span { color: #b6c7a9; }
.site-header nav { font-size: 12px; }
.site-header nav span { margin-left: 25px; }
.site-header nav a, .back-top { padding-block: 10px; }
.intro { min-height: 100svh; padding: 170px var(--padding) 40px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.intro__eyebrow { color: var(--muted); margin-bottom: clamp(35px, 7vh, 90px); }
.intro h1 { font-size: clamp(54px, 7.9vw, 150px); line-height: 1.04; letter-spacing: -.065em; font-weight: 400; padding-bottom: 110px; }
.intro__bottom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: end; margin-top: auto; font-size: 12px; line-height: 1.7; }
.intro__bottom p { color: var(--muted); justify-self: center; }
.intro__index { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.explore-link { display: inline-flex; justify-self: start; gap: 45px; align-items: center; padding-block: 10px; border-bottom: 1px solid #67716a; }
.explore-link span { font-size: 19px; }

/* The static layout is also the no-JavaScript and reduced-motion experience. */
.visuals { display: none; }
.scene { min-height: 100svh; position: relative; isolation: isolate; display: flex; align-items: center; padding: 100px var(--padding); background-position: center; background-size: cover; }
.scene--1 { background-image: url('../img/scroll-transition/1.webp'); }
.scene--2 { background-image: url('../img/scroll-transition/2.webp'); }
.scene--3 { background-image: url('../img/scroll-transition/3.webp'); }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 17, 19, .66), rgba(8, 17, 19, .12)), linear-gradient(0deg, rgba(8, 17, 19, .6), transparent 60%); }
.scene__content { max-width: 1150px; }
.scene .eyebrow { margin-bottom: clamp(30px, 6vh, 70px); }
.scene .eyebrow span { margin-right: 22px; }
.scene h2 { font-size: clamp(42px, 6.1vw, 110px); line-height: 1.04; font-weight: 400; letter-spacing: -.055em; }
.scene__description { max-width: 355px; margin-top: 38px; font-size: 14px; line-height: 1.8; color: #f1f0e9; }
.scene__detail { margin-top: 32px; font-size: 10px; letter-spacing: .05em; color: #d5dbd9; }
.scene-nav { display: none; }

/* Enhanced with the original three horizontal SVG blind reveals. */
.stage.is-animated { height: 480svh; position: relative; }
.is-animated .layers { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--background); }
.is-animated .visuals { display: block; position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.is-animated .visuals::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 17, 19, .66), rgba(8, 17, 19, .12)), linear-gradient(0deg, rgba(8, 17, 19, .6), transparent 60%); }
.is-animated .scene { position: absolute; inset: 0; min-height: 0; background: none; padding-bottom: 125px; visibility: hidden; opacity: 0; }
.is-animated .scene::before { display: none; }
.is-animated .scene-nav { position: absolute; bottom: 34px; left: var(--padding); right: var(--padding); z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.scene-nav a { padding-block: 12px; }
.scene-nav__label { display: flex; gap: 18px; font-size: 11px; line-height: 1.5; margin-bottom: 15px; }
.scene-nav__label > span { opacity: .6; font-size: 10px; }
.scene-nav__track { height: 1px; display: block; background: #ffffff4d; }
.fill { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.scene-nav a[aria-current="step"] .scene-nav__label { color: #fff; }

.outro { min-height: 75svh; padding: 95px var(--padding) 30px; display: flex; flex-direction: column; }
.outro > .eyebrow { color: var(--muted); }
.outro h2 { font-size: clamp(44px, 6.1vw, 112px); font-weight: 400; letter-spacing: -.055em; line-height: 1.08; margin: 70px 0 100px; }
.outro__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 25px; border-top: 1px solid #ffffff26; font-size: 12px; }
.outro__bottom p span { margin-left: 15px; color: var(--muted); font-size: 10px; }
.back-top span { margin-left: 30px; }

@media (min-width: 1800px) {
  .scene__description { max-width: 430px; font-size: 17px; }
}
@media (max-width: 700px) {
  .site-header { padding-top: 25px; }
  .wordmark { font-size: 21px; }
  .intro { padding-top: 150px; padding-bottom: 30px; }
  .intro h1 { font-size: clamp(37px, 8.4vw, 60px); padding-bottom: 100px; }
  .intro__eyebrow { font-size: 9px; letter-spacing: .1em; }
  .intro__bottom { grid-template-columns: 1fr auto; row-gap: 32px; }
  .intro__bottom p { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .intro__index { grid-column: 2; }
  .scene { padding-block: 90px 130px; }
  .scene h2 { font-size: clamp(34px, 7.8vw, 56px); }
  .scene__description { max-width: 300px; font-size: 13px; margin-top: 28px; }
  .scene__detail { font-size: 9px; line-height: 1.8; margin-top: 24px; }
  .scene .eyebrow { font-size: 9px; margin-bottom: 35px; }
  .is-animated .scene-nav { gap: 14px; bottom: 22px; }
  .scene-nav__label { font-size: 9px; display: block; min-height: 30px; }
  .scene-nav__label > span { display: block; margin-bottom: 5px; font-size: 9px; }
  .outro { min-height: 65svh; padding-top: 65px; }
  .outro h2 { font-size: clamp(34px, 7.8vw, 56px); margin-block: 65px 90px; }
}
@media (max-height: 620px) and (min-width: 701px) {
  .scene h2 { font-size: 7.5vh; }
  .scene .eyebrow { margin-bottom: 18px; }
  .scene__description { margin-top: 18px; }
  .scene__detail { margin-top: 14px; }
  .is-animated .scene { padding-top: 35px; padding-bottom: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
