:root {
  --accent: #dbff7b;
}
body {
  background: #2c302c;
  color: #f5f5e9;
}
#world,
.scene-fallback,
.scene-shade,
.film-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#world {
  z-index: 0;
}
.scene-fallback {
  z-index: -1;
  background:
    radial-gradient(ellipse at 68% 60%, #b8ad8a, transparent 50%),
    linear-gradient(140deg, #374644, #a9ab90);
  display: grid;
  place-items: center;
}
.webgl-failed .scene-fallback {
  z-index: 1;
}
.fallback-arch {
  width: 48vw;
  height: 65vh;
  border: 7vw solid #677365;
  box-shadow: 20px 20px 100px #18291c;
  background: linear-gradient(90deg, #192d22, #a2ab6b);
  transform: perspective(800px) rotateY(-20deg);
}
.scene-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, #0d171d8a, transparent 65%),
    linear-gradient(0deg, #0e191569, transparent 35%);
}
.film-grain {
  z-index: 4;
  opacity: 0.055;
  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='.93' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.7' filter='url(%23n)'/%3E%3C/svg%3E");
}
.brand > span {
  font-size: 12px;
  align-self: flex-start;
  letter-spacing: 0;
  margin-left: -12px;
}
main {
  position: relative;
  z-index: 5;
}
.chapter {
  height: 145svh;
  position: relative;
  padding: 0 6.2%;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.chapter a,
.chapter button {
  pointer-events: auto;
}
.hero {
  height: 125svh;
  display: block;
  padding-top: 23vh;
}
.eyebrow {
  display: block;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.coord {
  font-size: 9px;
  line-height: 1.8;
  opacity: 0.7;
  text-align: right;
}
.hero h1 {
  font-size: clamp(90px, 13.2vw, 225px);
  font-weight: 500;
  line-height: 0.83;
  letter-spacing: -0.085em;
  margin: 36px 0 40px;
}
.hero h1 span {
  color: var(--accent);
}
.hero-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  max-width: 1350px;
}
.hero-bottom p {
  font-size: 16px;
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.hero-aside {
  font-size: 9px;
  line-height: 1.7;
  opacity: 0.8;
}
.scroll-cue {
  font-size: 9px;
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-line {
  width: 70px;
  height: 1px;
  background: #ffffff70;
  position: relative;
}
.scroll-line:after {
  content: "";
  height: 1px;
  position: absolute;
  left: 0;
  width: 22px;
  background: white;
  animation: scrollline 2s infinite;
}
@keyframes scrollline {
  to {
    transform: translateX(48px);
  }
}
.chapter-copy {
  max-width: 720px;
  text-shadow: 0 4px 45px #0003;
}
.chapter-copy h2 {
  font-size: clamp(40px, 5.5vw, 82px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.045em;
  margin: 30px 0;
}
.chapter-copy p {
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: 0.05em;
}
.chapter-copy em {
  color: var(--accent);
  font-style: normal;
}
.approach {
  justify-content: flex-end;
}
.approach .chapter-copy {
  width: 53%;
}
.entrance .location-tag {
  position: absolute;
  right: 7%;
  top: 58%;
  font-size: 9px;
}
.inside {
  justify-content: flex-end;
}
.inside .chapter-copy {
  width: 51%;
}
.finale {
  height: 115svh;
  justify-content: center;
  text-align: center;
  background: linear-gradient(transparent, #0b1d1b9c);
}
.finale h2 {
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.05em;
  margin: 28px 0;
}
.finale h2 span {
  color: var(--accent);
}
.finale p {
  font-size: 14px;
  margin-bottom: 36px;
}
.finale .pill {
  min-width: 310px;
  background: var(--accent);
  color: #192a22;
  border-color: var(--accent);
}
.next-experiment {
  display: block;
  font: 9px monospace;
  letter-spacing: 0.08em;
  margin-top: 38px;
}
.journey-hud {
  position: fixed;
  bottom: 23px;
  left: 3.4%;
  right: 3.4%;
  z-index: 20;
}
.journey-state {
  display: flex;
  gap: 9px;
  align-items: center;
  font: 8px monospace;
  letter-spacing: 0.12em;
}
.journey-state #progress-number {
  margin-left: auto;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.journey-track {
  height: 1px;
  background: #ffffff30;
  margin: 12px 0;
}
.journey-track i {
  height: 1px;
  width: 0;
  display: block;
  background: var(--accent);
}
.hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hud-bottom > .mono {
  font-size: 8px;
  opacity: 0.7;
}
.hud-bottom .motion-toggle {
  padding: 6px 10px;
  font-size: 8px;
}
.motion-reduced .film-grain {
  display: none;
}
@media (max-width: 700px) {
  .hero {
    padding-top: 25vh;
    height: 120svh;
  }
  .hero h1 {
    font-size: 19vw;
    margin: 40px 0 32px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .coord,
  .hero-aside {
    display: none;
  }
  .hero-bottom {
    display: block;
  }
  .hero-bottom p {
    font-size: 14px;
  }
  .scroll-cue {
    margin-top: 40px;
  }
  .chapter {
    padding-left: 7%;
    padding-right: 7%;
  }
  .chapter-copy,
  .inside .chapter-copy,
  .approach .chapter-copy {
    width: 100%;
  }
  .chapter-copy h2 {
    font-size: 38px;
  }
  .chapter-copy p {
    font-size: 11px;
  }
  .chapter-copy .eyebrow {
    font-size: 8px;
  }
  .entrance .location-tag {
    display: none;
  }
  .finale h2 {
    font-size: 48px;
  }
  .finale p {
    font-size: 12px;
  }
  .finale .pill {
    min-width: 280px;
  }
  .journey-hud {
    left: 7%;
    right: 7%;
    bottom: 20px;
  }
  .scene-shade {
    background: linear-gradient(90deg, #0d171d9a, #0d171d15);
  }
}
.museum-journey {
  height: 1300svh;
}
.museum-journey > .hero {
  position: absolute;
  inset: 0 0 auto;
  height: 115svh;
}
.museum-intro,
.museum-entrance {
  position: absolute;
  top: 175svh;
  right: 7%;
  max-width: 560px;
  text-shadow: 0 3px 35px #16251b80;
}
.museum-intro h2,
.museum-entrance h2 {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.5;
  margin: 28px 0;
}
.museum-intro p {
  font-size: 13px;
  line-height: 2.2;
}
.museum-entrance {
  top: 315svh;
  left: 7%;
  right: auto;
}
.gallery-stop {
  position: absolute;
  left: 0;
  right: 0;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 6% 15vh;
  pointer-events: none;
}
.art-placard {
  background: #20392bd9;
  border-left: 2px solid #dbff7b;
  padding: 24px 30px;
  max-width: 560px;
  opacity: var(--art-opacity, 0);
  transform: translateY(var(--art-shift, 18px));
  backdrop-filter: blur(15px);
}
.art-placard .eyebrow {
  font-size: 9px;
}
.art-placard h2 {
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.03em;
  margin: 12px 0;
}
.art-placard p {
  font-size: 12px;
  line-height: 1.9;
}
.museum-finale {
  position: absolute;
  top: 1220svh;
  left: 0;
  right: 0;
  padding: 60px 7% 150px;
  min-height: 80svh;
  background: linear-gradient(transparent, #10261bea);
  text-align: center;
}
.museum-finale h2 {
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 400;
  line-height: 1.4;
  margin: 24px 0;
}
.museum-finale .pill {
  background: #dbff7b;
  color: #20392b;
  min-width: 300px;
}
.motion-reduced .gallery-stop {
  pointer-events: auto;
}
.motion-reduced .art-placard {
  opacity: 1;
}
@media (max-width: 700px) {
  .museum-intro {
    left: 7%;
    right: 7%;
    top: 175svh;
  }
  .museum-intro h2,
  .museum-entrance h2 {
    font-size: 38px;
  }
  .museum-intro p {
    font-size: 11px;
  }
  .gallery-stop {
    padding: 0 7% 16vh;
  }
  .art-placard {
    padding: 18px 20px;
    width: 100%;
  }
  .art-placard h2 {
    font-size: 29px;
  }
  .art-placard p {
    font-size: 11px;
  }
  .art-placard .eyebrow {
    font-size: 8px;
  }
  .museum-finale h2 {
    font-size: 40px;
  }
}
