.stage {
  display: none;
}

.track {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.chapter {
  position: relative;
  min-height: 100vh;
  padding: 18vh var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.chapter .copy {
  max-width: 48rem;
  display: grid;
  gap: 28px;
}

.chapter .copy p:not(.kicker):not(.lede):not(.engagement):not(.proof) {
  max-width: var(--measure);
  color: var(--soft);
}

.chapter [data-panel] {
  display: grid;
  gap: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cue {
  display: none;
}

.unit-number img {
  width: min(100%, 560px);
  height: auto;
}

.unit-number figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.noise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.noise s {
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
}

.practice-list,
.rules {
  display: grid;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
}

.practice-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.practice-list span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sat);
  padding-top: 6px;
}

.practice-list h3,
.rules h3 {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.practice-list p,
.rules p {
  color: var(--muted);
  font-size: 15px;
}

.rules article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.rules h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.rules h3::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  background: var(--sat);
}

.engagement {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.engagement b {
  font-weight: 400;
  color: var(--fg);
}

.quote {
  max-width: 40rem;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 13px;
}

.proof a {
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.proof a:hover {
  color: var(--fg);
  border-color: var(--sat);
}

.button.address {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 14px;
}

.immersive .stage {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.immersive .track {
  display: block;
}

.immersive #scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.immersive .labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.immersive .site-footer {
  background: var(--bg);
}

.shell {
  position: absolute;
  left: 0;
  top: 0;
  width: 640px;
  transform-origin: 0 0;
  color: var(--fg);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 1px 10px rgb(11 10 8 / 0.7);
}

.shell.live {
  pointer-events: auto;
}

.shell > [data-panel] {
  display: grid;
  gap: 22px;
}

.shell .kicker {
  font-size: 14px;
}

.shell .h2 {
  font-size: 76px;
}

.shell .display {
  font-size: 118px;
}

.shell .lede,
.shell p {
  font-size: 22px;
  line-height: 1.5;
  color: var(--soft);
}

.shell .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.45em, 0) rotateX(-75deg);
  transform-origin: 50% 100%;
  transition:
    transform 1s var(--ease) calc(var(--i) * 55ms),
    opacity 0.8s ease calc(var(--i) * 55ms);
}

.shell.live .w {
  opacity: 1;
  transform: none;
}

.shell [data-panel] > :not(h1):not(h2),
.shell article > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: transform 1s var(--ease) 0.25s, opacity 0.9s ease 0.25s;
}

.shell.live [data-panel] > :not(h1):not(h2),
.shell.live article > * {
  opacity: 1;
  transform: none;
}

.shell-hero {
  width: 1240px;
  text-align: center;
  transform-style: preserve-3d;
}

.shell-hero > [data-panel],
.shell-hero h1,
.shell-hero h1 em {
  transform-style: preserve-3d;
}

.shell-hero h1 {
  font-size: 168px;
  line-height: 0.92;
}

.shell-hero h1 em {
  display: inline-block;
}

.shell-hero .lede {
  max-width: 720px;
  margin: 0 auto;
  font-size: 26px;
}

.shell-hero .kicker {
  font-size: 16px;
}

.shell.shell-hero.bursting .w,
.shell.shell-hero.bursting [data-panel] > :not(h1) {
  transition: none;
}

.shell-hero.live .w {
  transform: translate3d(calc(var(--dx) * var(--b, 0)), calc(var(--dy) * var(--b, 0)), calc(var(--dz) * var(--b, 0)))
    rotateX(calc(var(--rx) * var(--b, 0))) rotateY(calc(var(--ry) * var(--b, 0)));
  opacity: clamp(0, calc((1 - var(--b, 0)) * 2.4), 1);
}

.shell.shell-hero.live [data-panel] > :not(h1) {
  opacity: clamp(0, calc(1 - var(--b, 0) * 4), 1);
}

.shell-hero .actions {
  justify-content: center;
}

.shell-hero .cue {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.shell-hero .cue::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 12px;
  background: var(--sat);
  animation: cue 1.6s var(--ease) infinite;
}

@keyframes cue {
  50% {
    transform: translateY(6px);
  }
}

.shell-noise {
  width: auto;
  text-shadow: none;
}

.shell-noise s {
  display: block;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--ash);
  text-decoration-color: var(--sat);
  text-decoration-thickness: 2px;
  background: rgb(20 18 14 / 0.82);
  border: 1px solid var(--rule);
}

.shell-unit {
  width: 640px;
  padding: 36px;
  background: rgb(11 10 8 / 0.72);
  border: 1px solid rgb(255 196 49 / 0.35);
  text-shadow: none;
}

.shell-unit .h2 {
  font-size: 64px;
}

.shell-service,
.shell-rule {
  width: 520px;
  padding: 28px 30px;
  background: rgb(11 10 8 / 0.78);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--sat);
  text-shadow: none;
}

.shell-service article {
  display: grid;
  gap: 14px;
}

.shell-service span {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--sat);
}

.shell-service h3,
.shell-rule h3 {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.shell-service p,
.shell-rule p {
  margin-top: 10px;
  font-size: 19px;
  color: var(--ash);
}

.shell-rule h3 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shell-rule h3::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--sat);
  box-shadow: 0 0 18px 2px rgb(255 196 49 / 0.6);
}

.shell-aim,
.shell-quote,
.shell-contact {
  width: 680px;
}

.shell-quote .quote {
  font-size: 40px;
}

.shell-quote .proof {
  font-size: 18px;
}

.shell-contact .display {
  font-size: 96px;
}

.chapter-meter,
.hud {
  display: none;
}

.immersive .chapter-meter {
  display: flex;
}

.immersive .hud {
  display: block;
  position: fixed;
  left: var(--gutter);
  bottom: 20px;
  z-index: 30;
  color: var(--soft);
}

.immersive .hud::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: var(--sat);
}

html.immersive {
  overscroll-behavior: none;
}

@media (max-width: 760px) {
  .chapter {
    padding: 14vh 20px;
  }

  .rules {
    grid-template-columns: 1fr;
  }

  .shell {
    width: 500px;
  }

  .shell-hero {
    width: 600px;
  }

  .shell-hero h1 {
    font-size: 104px;
  }

  .shell-hero .lede {
    font-size: 24px;
  }

  .shell .h2 {
    font-size: 64px;
  }

  .shell .display,
  .shell-contact .display {
    font-size: 80px;
  }

  .shell-service,
  .shell-rule {
    width: 460px;
  }
}

html:not(.immersive) .masthead {
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.immersive main.story {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell .mirror-focus {
  outline: 3px solid var(--sat);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .shell,
  .shell-aim,
  .shell-quote,
  .shell-contact {
    width: 420px;
  }

  .shell-unit {
    width: 440px;
  }

  .shell .kicker {
    font-size: 17px;
  }

  .shell .lede,
  .shell p {
    font-size: 24px;
  }

  .shell .button {
    padding: 18px 24px;
    font-size: 19px;
  }

  .shell .proof,
  .shell-quote .proof {
    font-size: 21px;
  }

  .shell .unit-number figcaption {
    font-size: 17px;
  }

  .shell-quote .quote {
    font-size: 34px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .immersive .site-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px var(--gutter) 44px;
    font-size: 12px;
  }
}
