:root {
  --paper: #eeeae1;
  --ink: #242721;
  --muted: #565b51;
  --rule: #bcbfb2;
  --pad: clamp(22px, 5vw, 86px);
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
img,
video {
  max-width: 100%;
  display: block;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: clamp(36px, 5.3vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 500;
}
p {
  line-height: 1.55;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #6d39bd;
  outline-offset: 6px;
}
.page-width {
  padding-inline: var(--pad);
}
.folio {
  font:
    11px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.045em;
  margin-bottom: 28px;
  color: var(--muted);
}
.text-link {
  display: inline-block;
  margin-top: 26px;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.skip {
  position: fixed;
  z-index: 100;
  top: -90px;
  left: 20px;
  padding: 15px;
  background: white;
}
.skip:focus {
  top: 10px;
}
.navigation {
  height: 76px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding-inline: var(--pad);
  gap: 28px;
}
.signature {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.06em;
  text-decoration: none;
}
.navigation nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
}
.navigation nav a {
  text-decoration: none;
}
.navigation button {
  border: 1px solid var(--rule);
  border-radius: 30px;
  background: var(--paper);
  font-size: 11px;
  padding: 8px 12px;
  cursor: pointer;
}
.opening {
  position: relative;
  min-height: 100svh;
}
.opening-sticky {
  min-height: 100svh;
  padding: 135px var(--pad) 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.opening h1 {
  position: relative;
  z-index: 2;
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.78;
  font-size: clamp(110px, 23vw, 360px);
  width: max-content;
}
.opening h1 small {
  display: block;
  font-size: clamp(23px, 3.7vw, 57px);
  letter-spacing: -0.04em;
  margin-top: 32px;
}
.opening .folio {
  position: relative;
  z-index: 2;
}
.opening-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: 70px;
  position: relative;
  z-index: 2;
}
.opening-bottom p {
  font-size: 18px;
}
.opening-bottom a {
  text-decoration: none;
  font-size: 14px;
}
.opening-bottom a span {
  display: inline-block;
  margin-left: 22px;
}
.paper-slip {
  position: absolute;
  right: 9%;
  top: 24%;
  width: 220px;
  aspect-ratio: 1;
  padding: 25px;
  background: #faf9f5;
  border: 1px solid #cbc8bd;
  box-shadow: 0 12px 28px #24272114;
  transform: rotate(9deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 15px;
}
.paper-slip small {
  font-size: 10px;
  color: var(--muted);
}
.paper-slip img {
  width: 62px;
}
.slip-two {
  top: 44%;
  right: 3%;
  transform: rotate(-8deg);
  background: #c2caaf;
}
.nook-stamp {
  font:
    italic 42px/0.9 Georgia,
    serif;
}
.about {
  padding-block: 105px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  border-top: 1px solid var(--rule);
  position: relative;
  background: var(--paper);
}
.about-copy {
  font-size: clamp(17px, 1.8vw, 24px);
  max-width: 620px;
}
.about-copy p + p {
  margin-top: 24px;
}
.chapter {
  position: relative;
}
.scene-sticky {
  padding-block: 75px;
  overflow: hidden;
}
.fader {
  background: #dfe3d5;
}
.section-heading {
  max-width: 730px;
}
.section-heading > p:not(.folio) {
  max-width: 420px;
  margin-top: 20px;
}
.focus-stage {
  position: relative;
  margin: 42px auto 0;
  width: min(1150px, 92%);
  height: clamp(270px, 39vw, 530px);
  display: grid;
  place-items: center;
}
.focus-window {
  position: relative;
  z-index: 3;
  width: 64%;
  background: #fff;
  border: 1px solid #8a9281;
  box-shadow: 0 25px 65px #20291a30;
  transform: rotate(-2deg);
  border-radius: 9px;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 12px;
  background: #f9faf6;
}
.window-bar img {
  width: 20px;
}
.window-bar span {
  margin-left: auto;
  font-size: 10px;
  color: #565b51;
}
.focus-window video {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  background: #101010;
}
.loose-window {
  position: absolute;
  width: 36%;
  height: 62%;
  background: #f4f2e8;
  border: 1px solid #939b89;
  border-radius: 7px;
  padding: 20px;
  box-shadow: 0 12px 26px #24272115;
}
.loose-window span {
  display: block;
  font-size: 11px;
  border-bottom: 1px solid #c2c5b8;
  padding-bottom: 12px;
}
.loose-window i {
  display: block;
  background: #d3d5c9;
  height: 7px;
  margin-top: 22px;
  width: 85%;
}
.loose-window i:nth-child(3) {
  width: 58%;
}
.window-a {
  left: 0;
  top: 0;
  transform: rotate(-10deg);
}
.window-b {
  right: 0;
  bottom: 0;
  transform: rotate(9deg);
  background: #e4d9ca;
}
.window-c {
  right: 12%;
  top: 0;
  transform: rotate(15deg);
  background: #d6d3df;
}
.window-grid {
  height: 65%;
  margin-top: 15px;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 24px,
    #beb29f 25px 26px
  );
}
.market {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
  padding-block: 130px;
  overflow: hidden;
}
.market-copy > p:not(.folio) {
  max-width: 400px;
  margin-top: 24px;
}
.market-sheet {
  background: #faf8f0;
  border: 1px solid #b9b7a9;
  padding: 32px;
  transform: rotate(4deg);
  box-shadow: 10px 14px 0 #dcd7c9;
}
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sheet-top img {
  width: 100px;
}
.sheet-top span {
  font:
    10px/1.5 ui-monospace,
    monospace;
  text-align: right;
  color: var(--muted);
}
.bars {
  height: 180px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.bars i {
  flex: 1;
  background: #586644;
  height: var(--height);
  transform-origin: bottom;
}
.bars i:nth-child(3n) {
  background: #b39650;
}
.market-row {
  padding: 19px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}
.market-row b {
  font-weight: 400;
}
.nooks {
  background: #343c36;
  color: #f4f2e9;
}
.nooks .folio {
  color: #ced4c9;
}
.nook-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.nook-heading .folio {
  grid-column: 1/-1;
  margin-bottom: 8px;
}
.nook-heading > p:last-child {
  max-width: 340px;
  align-self: end;
}
.shelf {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 55px auto 0;
  width: min(740px, 85%);
  perspective: 1100px;
  padding-bottom: 24px;
}
.nook-book {
  width: 50%;
  min-height: 340px;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: #272b24;
  text-decoration: none;
  box-shadow:
    8px 14px 0 #131d174a,
    inset 7px 0 0 #24272118;
  border-radius: 2px 7px 7px 2px;
}
.movie-book {
  background: #e2c4a3;
  transform: rotate(-5deg);
}
.tv-book {
  background: #c6cce0;
  transform: rotate(5deg);
}
.book-index,
.book-bottom {
  font:
    11px/1.5 ui-monospace,
    monospace;
}
.book-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.nook-book strong {
  font-size: clamp(40px, 6vw, 85px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.nook-book em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.nook-book:hover {
  outline: 2px solid #f4f2e9;
  outline-offset: 7px;
}
.pylsa {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: center;
  gap: 10vw;
  padding-block: 130px;
}
.pylsa-print {
  background: #f9f6ed;
  padding: 28px 28px 20px;
  box-shadow: 0 8px 25px #2427211a;
  transform: rotate(-5deg);
  max-width: 420px;
}
.pylsa-print img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.pylsa-print span {
  display: block;
  margin-top: 20px;
  font:
    11px ui-monospace,
    monospace;
}
.pylsa p:not(.folio) {
  margin-top: 24px;
  max-width: 430px;
}
.drawer {
  padding-block: 70px;
  border-top: 1px solid var(--rule);
}
.drawer h2 {
  font-size: 40px;
}
.domain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 30px;
  font:
    16px/1.7 ui-monospace,
    monospace;
}
footer {
  background: #262d27;
  color: #f6f2e7;
  padding-block: 90px 30px;
}
footer .folio {
  color: #c6cdbc;
}
.hello {
  font-size: clamp(65px, 13vw, 200px);
  line-height: 1.1;
  letter-spacing: -0.07em;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}
.hello span {
  font-size: 0.65em;
}
.footer-bottom {
  margin-top: 80px;
  border-top: 1px solid #64715e;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12px;
}
.footer-bottom div {
  display: flex;
  gap: 20px;
}
/* All motion shares the same paper motif. Native scrolling remains in control. */
.motion-enabled .opening {
  height: 155svh;
}
.motion-enabled .opening-sticky {
  position: sticky;
  top: 0;
}
.motion-enabled .opening h1 {
  transform: translateY(calc(var(--p, 0) * -100px))
    scale(calc(1 - var(--p, 0) * 0.12));
  transform-origin: left center;
}
.motion-enabled .slip-one {
  transform: translate(calc(var(--p, 0) * -34vw), calc(var(--p, 0) * 24vh))
    rotate(calc(9deg - var(--p, 0) * 31deg));
}
.motion-enabled .slip-two {
  transform: translate(calc(var(--p, 0) * -17vw), calc(var(--p, 0) * 9vh))
    rotate(calc(-8deg + var(--p, 0) * 26deg));
}
.motion-enabled .opening-bottom {
  transform: translateY(calc(var(--p, 0) * -20px));
}
.motion-enabled .fader {
  height: 185svh;
}
.motion-enabled .nooks {
  height: 160svh;
}
.motion-enabled .scene-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
}
.motion-enabled .window-a {
  transform: translate(calc(var(--p, 0) * -260px), calc(var(--p, 0) * -90px))
    rotate(calc(-10deg - var(--p, 0) * 14deg));
  opacity: calc(1 - var(--p, 0));
}
.motion-enabled .window-b {
  transform: translate(calc(var(--p, 0) * 260px), calc(var(--p, 0) * 80px))
    rotate(calc(9deg + var(--p, 0) * 12deg));
  opacity: calc(1 - var(--p, 0));
}
.motion-enabled .window-c {
  transform: translateY(calc(var(--p, 0) * -260px))
    rotate(calc(15deg + var(--p, 0) * 15deg));
  opacity: calc(1 - var(--p, 0));
}
.motion-enabled .focus-window {
  transform: rotate(calc(-2deg + var(--p, 0) * 2deg))
    scale(calc(0.94 + var(--p, 0) * 0.06));
}
.motion-enabled .market-sheet {
  transform: translateY(calc((1 - var(--p, 0)) * 65px))
    rotate(calc(7deg - var(--p, 0) * 7deg));
}
.motion-enabled .bars i {
  transform: scaleY(calc(0.16 + var(--p, 0) * 0.84));
}
.motion-enabled .movie-book {
  transform: translateX(calc((1 - var(--p, 0)) * 45px))
    rotateY(calc((1 - var(--p, 0)) * 22deg))
    rotate(calc(-9deg + var(--p, 0) * 7deg));
}
.motion-enabled .tv-book {
  transform: translateX(calc((1 - var(--p, 0)) * -45px))
    translateY(calc((1 - var(--p, 0)) * 60px))
    rotateY(calc((1 - var(--p, 0)) * -22deg))
    rotate(calc(12deg - var(--p, 0) * 10deg));
}
.motion-enabled .pylsa-print {
  transform: rotate(calc(-7deg + var(--p, 0) * 9deg))
    translateY(calc((1 - var(--p, 0)) * 35px));
}
@media (min-width: 801px) and (max-height: 850px) {
  .scene-sticky {
    padding-block: 40px;
  }
  .section-heading {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    max-width: none;
    gap: 0 40px;
  }
  .section-heading .folio {
    grid-column: 1/-1;
    margin-bottom: 14px;
  }
  .section-heading h2 {
    grid-row: 2/4;
    font-size: 52px;
  }
  .section-heading .text-link {
    align-self: start;
  }
  .focus-stage {
    height: 40vh;
    margin-top: 25px;
  }
  .focus-window {
    width: 52%;
  }
  .focus-window video {
    max-height: 30vh;
  }
  .nook-heading h2 {
    font-size: 52px;
  }
  .shelf {
    margin-top: 25px;
    width: min(540px, 75%);
  }
  .nook-book {
    min-height: 240px;
    padding: 20px;
  }
  .nook-book strong {
    font-size: 60px;
  }
}
@media (max-width: 800px) {
  .navigation {
    gap: 14px;
    height: 70px;
  }
  .navigation nav {
    gap: 16px;
  }
  .navigation button {
    font-size: 10px;
    padding: 6px;
  }
  .opening-sticky {
    padding-top: 125px;
    justify-content: start;
  }
  .opening h1 {
    font-size: 27vw;
    margin-top: 20px;
  }
  .opening h1 small {
    font-size: 7vw;
  }
  .opening .folio {
    max-width: 230px;
  }
  .paper-slip {
    width: 140px;
    top: auto;
    bottom: 140px;
    right: 25%;
    padding: 17px;
  }
  .slip-two {
    right: 7%;
    bottom: 100px;
  }
  .paper-slip img {
    width: 40px;
  }
  .nook-stamp {
    font-size: 31px;
  }
  .opening-bottom {
    margin-top: auto;
    padding-top: 220px;
  }
  .opening-bottom p {
    font-size: 15px;
  }
  .opening-bottom a {
    font-size: 12px;
  }
  .about,
  .market,
  .pylsa {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 70px;
  }
  .about-copy {
    font-size: 18px;
  }
  .scene-sticky {
    padding-block: 50px;
  }
  .section-heading h2 {
    font-size: 43px;
  }
  .focus-stage {
    height: 300px;
    margin-top: 30px;
  }
  .focus-window {
    width: 85%;
  }
  .window-bar span {
    display: none;
  }
  .loose-window {
    width: 48%;
    height: 70%;
  }
  .nook-heading {
    grid-template-columns: 1fr;
  }
  .nook-heading .folio {
    grid-column: auto;
  }
  .shelf {
    gap: 16px;
    width: 88%;
    margin-top: 32px;
  }
  .nook-book {
    padding: 19px;
    min-height: 260px;
  }
  .nook-book strong {
    font-size: 44px;
  }
  .book-index,
  .book-bottom {
    font-size: 9px;
  }
  .market-sheet {
    padding: 24px;
  }
  .pylsa-print {
    width: 80%;
    margin: auto;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .motion-enabled .opening {
    height: 125svh;
  }
  .motion-enabled .fader {
    height: 155svh;
  }
  .motion-enabled .nooks {
    height: 140svh;
  }
}
@media (max-height: 650px) {
  .motion-enabled .chapter {
    height: auto;
  }
  .motion-enabled .scene-sticky {
    position: relative;
    min-height: 0;
  }
  .opening-sticky {
    min-height: 720px;
  }
  .motion-enabled .opening {
    height: auto;
  }
  .motion-enabled .opening-sticky {
    position: relative;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* A single stationary viewport for the four project acts. */
.stage-enabled .project-journey {
  height: 620svh;
  position: relative;
  background: #dfe3d5;
}
.stage-enabled .project-theatre {
  height: 100svh;
  position: sticky;
  top: 0;
  overflow: hidden;
  isolation: isolate;
}
.stage-enabled .project-theatre > [data-scene] {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  will-change: clip-path, transform;
  overflow: hidden;
}
.stage-enabled .project-theatre .scene-sticky {
  position: relative;
  min-height: 0;
  height: 100%;
  padding: 45px 0 80px;
}
.stage-enabled .project-theatre .market,
.stage-enabled .project-theatre .pylsa {
  padding-block: 75px 100px;
  background: var(--paper);
}
.stage-enabled .project-theatre .fader {
  z-index: 1;
}
.stage-enabled .project-theatre .market {
  z-index: 2;
  clip-path: inset(0 calc((1 - var(--reveal, 0)) * 100%) 0 0);
}
.stage-enabled .project-theatre .nooks {
  z-index: 3;
  clip-path: circle(calc(var(--reveal, 0) * 150%) at 72% 52%);
}
.stage-enabled .project-theatre .pylsa {
  z-index: 4;
  clip-path: inset(
    calc((1 - var(--reveal, 0)) * 50%) 0 round
      calc((1 - var(--reveal, 0)) * 80px)
  );
  opacity: var(--visible, 0);
}
.stage-enabled .project-theatre .section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  max-width: none;
}
.stage-enabled .project-theatre .section-heading .folio {
  grid-column: 1/-1;
  margin-bottom: 16px;
}
.stage-enabled .project-theatre .section-heading h2 {
  grid-row: 2/4;
  font-size: clamp(40px, 4.5vw, 66px);
}
.stage-enabled .project-theatre .focus-stage {
  height: 43vh;
  margin-top: 25px;
}
.stage-enabled .project-theatre .focus-window {
  width: 55%;
}
.stage-enabled .project-theatre .focus-window video {
  max-height: 32vh;
}
.stage-enabled .project-theatre .nook-heading h2 {
  font-size: clamp(40px, 4.5vw, 66px);
}
.stage-enabled .project-theatre .shelf {
  width: min(590px, 65%);
  margin-top: 25px;
}
.stage-enabled .project-theatre .nook-book {
  min-height: 240px;
  max-height: 48vh;
}
.stage-enabled .project-theatre .market-sheet {
  max-width: 550px;
}
.stage-enabled .project-theatre .market-copy,
.stage-enabled .project-theatre .pylsa > div:last-child {
  transform: none;
}
.scene-controls {
  position: sticky;
  bottom: 20px;
  margin: -54px auto 0;
  width: max-content;
  max-width: 96%;
  z-index: 9;
  gap: 5px;
  align-items: center;
  padding: 8px;
  background: #f8f7f0;
  border: 1px solid #aeb5a5;
  border-radius: 9px;
  box-shadow: 0 6px 24px #1112;
}
.stage-enabled .scene-controls:not([hidden]) {
  display: flex;
}
.scene-controls button,
.scene-controls a {
  font:
    11px/1.3 ui-monospace,
    monospace;
  padding: 10px;
  border: 0;
  border-radius: 4px;
  color: #242721;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.scene-controls button[aria-current="step"] {
  background: #27392d;
  color: #fff;
}
.scene-controls button:hover,
.scene-controls a:hover {
  outline: 1px solid #74826d;
}
/* Reserve separate areas for the Fader description and moving windows. */
.fader .section-heading {
  position: relative;
  z-index: 4;
  background: #dfe3d5;
  padding-bottom: 12px;
}
.fader .section-heading .text-link {
  position: relative;
  justify-self: start;
  align-self: start;
  padding-block: 8px;
}
.fader .focus-stage {
  overflow: hidden;
  isolation: isolate;
}
.stage-enabled .project-theatre .fader .scene-sticky {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}
.stage-enabled .project-theatre .fader .section-heading {
  align-content: start;
}
.stage-enabled .project-theatre .fader .focus-stage {
  height: 100%;
  min-height: 0;
  margin: 0 auto;
}
.stage-enabled .project-theatre .fader .focus-window {
  max-height: 100%;
}
.stage-enabled .project-theatre .fader .focus-window video {
  max-height: min(30vh, 260px);
}
.theme-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 14px #0002;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle #moon-cut {
  transition: transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle #sun-rays {
  transform-origin: 12px 12px;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.theme-toggle.is-moon #moon-cut {
  transform: translateX(1px);
}
.theme-toggle.is-sun #moon-cut {
  transform: translateX(40px);
}
.theme-toggle.is-sun #sun-rays {
  opacity: 1;
  transform: scale(1) rotate(45deg);
}
.theme-toggle:active #sun-core {
  transform: scale(0.96);
  transform-origin: 12px 12px;
}
:root[data-theme="dark"] {
  --paper: #202620;
  --ink: #eeeae1;
  --muted: #bcc5b6;
  --rule: #606b59;
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}
[data-theme="dark"] .fader,
[data-theme="dark"] .fader .section-heading,
[data-theme="dark"] .stage-enabled .project-journey {
  background: #2e392c;
}
[data-theme="dark"] .paper-slip,
[data-theme="dark"] .market-sheet,
[data-theme="dark"] .pylsa-print {
  color: #242721;
}
[data-theme="dark"] .paper-slip small,
[data-theme="dark"] .sheet-top span {
  color: #565b51;
}
[data-theme="dark"] .market-sheet {
  box-shadow: 10px 14px 0 #111810;
}
[data-theme="dark"] .loose-window,
[data-theme="dark"] .window-bar {
  color: #242721;
}
[data-theme="dark"] .scene-controls {
  background: #30392d;
  color: #eeeae1;
}
[data-theme="dark"] .scene-controls button,
[data-theme="dark"] .scene-controls a {
  color: #eeeae1;
}
[data-theme="dark"] .scene-controls button[aria-current="step"] {
  background: #dce5ce;
  color: #202620;
}
.navigation,
.about,
.fader,
.section-heading,
.market,
.pylsa,
.drawer,
body,
.theme-toggle {
  transition:
    background-color 0.35s,
    color 0.35s;
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle *,
  .navigation,
  .about,
  .fader,
  .section-heading,
  .market,
  .pylsa,
  .drawer,
  body,
  .theme-toggle {
    transition: none !important;
  }
}
body:not(.motion-enabled) .theme-toggle * {
  transition: none;
}
/* Give the two names independent line boxes, including the y/þ descenders. */
.opening h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 0.9vw, 14px);
  line-height: 1.08;
  flex-shrink: 0;
}
.opening h1 > span {
  display: block;
  line-height: 1.08;
}
.opening h1 small {
  margin-top: 0;
  line-height: 1.2;
}
/* Touch layouts use document flow: no viewport-height traps or overlapping art. */
@media (max-width: 999px), (pointer: coarse) {
  html {
    scroll-padding-top: 20px;
  }
  .navigation {
    position: relative;
    height: auto;
    min-height: 72px;
    padding-block: 12px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .navigation nav {
    gap: 18px;
  }
  .navigation nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .opening,
  .motion-enabled .opening,
  .motion-enabled .fader,
  .motion-enabled .nooks {
    height: auto;
    min-height: 0;
  }
  .opening-sticky,
  .motion-enabled .opening-sticky {
    position: relative;
    min-height: 0;
    padding-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    overflow: visible;
  }
  .opening .folio,
  .opening h1,
  .opening-bottom {
    grid-column: 1/-1;
  }
  .opening h1 {
    font-size: clamp(86px, 23vw, 225px);
    max-width: 100%;
    margin: 0;
  }
  .opening h1 small {
    font-size: clamp(24px, 6vw, 50px);
  }
  .paper-slip {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 200px;
    justify-self: center;
    padding: 20px;
    transform: rotate(4deg);
    margin: 15px 0;
  }
  .slip-two {
    transform: rotate(-4deg);
  }
  .opening-bottom {
    order: 5;
    margin: 0;
    padding: 12px 0 25px;
    gap: 20px;
    align-items: start;
  }
  .opening-bottom a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .scene-sticky,
  .motion-enabled .scene-sticky {
    position: relative;
    min-height: 0;
    height: auto;
  }
  .about,
  .market,
  .pylsa {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 64px;
  }
  .market-sheet {
    width: calc(100% - 16px);
    max-width: 540px;
    margin: auto;
    transform: none;
    box-shadow: 8px 10px 0 #dcd7c9;
  }
  .section-heading {
    display: block;
  }
  .section-heading .folio {
    margin-bottom: 22px;
  }
  .section-heading h2 {
    font-size: clamp(36px, 7vw, 60px);
  }
  .focus-stage {
    width: 100%;
    height: auto;
    min-height: 220px;
    padding: 30px 18px;
    margin-top: 20px;
  }
  .focus-window {
    width: 100%;
    max-width: 600px;
    transform: none;
  }
  .focus-window video {
    max-height: none;
  }
  .loose-window {
    height: 70%;
    width: 44%;
  }
  .window-bar span {
    display: none;
  }
  .nook-heading {
    display: block;
  }
  .nook-heading p:last-child {
    margin-top: 24px;
  }
  .shelf {
    width: auto;
    margin: 35px 22px 0;
    gap: 16px;
  }
  .nook-book {
    min-width: 0;
    min-height: 260px;
    padding: 18px;
    transform: none;
    aspect-ratio: auto;
  }
  .nook-book strong {
    font-size: clamp(34px, 7vw, 60px);
  }
  .book-bottom {
    flex-wrap: wrap;
  }
  .pylsa-print {
    transform: none;
    width: min(100%, 380px);
  }
  .domain-list {
    overflow-wrap: anywhere;
  }
  .text-link {
    min-height: 44px;
    line-height: 1.5;
    padding-block: 10px;
  }
  .footer-bottom div {
    flex-wrap: wrap;
  }
  .footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  footer {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  .theme-toggle {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  .navigation nav {
    gap: 12px;
  }
  .signature {
    font-size: 24px;
  }
  .shelf {
    gap: 10px;
    margin-inline: 16px;
  }
  .nook-book {
    padding: 13px;
  }
  .opening-bottom {
    flex-direction: column;
    gap: 12px;
  }
  .paper-slip {
    padding: 14px;
  }
  .book-bottom {
    font-size: 10px;
  }
}
/* Keep motion active on touch screens, within each section's available space. */
@media (max-width: 999px), (pointer: coarse) {
  .stage-enabled .project-journey {
    height: 580svh;
  }
  .stage-enabled .project-theatre {
    height: 100svh;
  }
  .stage-enabled .project-theatre > [data-scene] {
    height: 100%;
    min-height: 0;
  }
  .stage-enabled .project-theatre .fader .scene-sticky {
    padding: 24px 0 76px;
    gap: 8px;
  }
  .stage-enabled .project-theatre .section-heading {
    display: block;
    padding-inline: 22px;
  }
  .stage-enabled .project-theatre .section-heading .folio {
    margin-bottom: 10px;
    font-size: 10px;
  }
  .stage-enabled .project-theatre .section-heading h2 {
    font-size: clamp(30px, 7vw, 48px);
    line-height: 1.04;
  }
  .stage-enabled .project-theatre .section-heading > p:not(.folio) {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 12px;
  }
  .stage-enabled .project-theatre .section-heading .text-link {
    margin-top: 6px;
    padding-block: 10px;
  }
  .stage-enabled .project-theatre .fader .focus-stage {
    height: 100%;
    min-height: 0;
    padding: 18px;
    align-self: stretch;
  }
  .stage-enabled .project-theatre .fader .focus-window {
    width: 100%;
    max-width: 520px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
  }
  .stage-enabled .project-theatre .fader .focus-window video {
    min-height: 0;
    max-height: 24svh;
    object-fit: contain;
  }
  .stage-enabled .project-theatre .window-bar {
    padding: 8px;
  }
  .stage-enabled .project-theatre .market,
  .stage-enabled .project-theatre .pylsa {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 24px 22px 85px;
    gap: 20px;
  }
  .stage-enabled .project-theatre .market-copy h2,
  .stage-enabled .project-theatre .pylsa h2 {
    font-size: clamp(30px, 7vw, 48px);
  }
  .stage-enabled .project-theatre .market-copy .folio,
  .stage-enabled .project-theatre .pylsa .folio {
    margin-bottom: 10px;
  }
  .stage-enabled .project-theatre .market-copy > p:not(.folio),
  .stage-enabled .project-theatre .pylsa p:not(.folio) {
    font-size: 14px;
    margin-top: 10px;
  }
  .stage-enabled .project-theatre .market-copy .text-link,
  .stage-enabled .project-theatre .pylsa .text-link {
    margin-top: 4px;
  }
  .stage-enabled .project-theatre .market-sheet {
    width: 100%;
    max-width: 460px;
    height: 100%;
    max-height: 330px;
    min-height: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }
  .stage-enabled .project-theatre .sheet-top img {
    width: 65px;
  }
  .stage-enabled .project-theatre .bars {
    flex: 1;
    min-height: 20px;
    height: auto;
    padding: 10px 0;
  }
  .stage-enabled .project-theatre .market-row {
    padding: 8px 0;
    font-size: 12px;
  }
  .stage-enabled .project-theatre .nooks .scene-sticky {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 24px 0 85px;
    gap: 20px;
  }
  .stage-enabled .project-theatre .nook-heading {
    display: block;
    padding-inline: 22px;
  }
  .stage-enabled .project-theatre .nook-heading h2 {
    font-size: clamp(30px, 7vw, 48px);
  }
  .stage-enabled .project-theatre .nook-heading .folio {
    margin-bottom: 10px;
  }
  .stage-enabled .project-theatre .nook-heading > p:last-child {
    font-size: 14px;
    margin-top: 12px;
  }
  .stage-enabled .project-theatre .shelf {
    width: auto;
    margin: 0 22px;
    padding: 8px 0 12px;
    gap: 14px;
    min-height: 0;
    align-items: stretch;
  }
  .stage-enabled .project-theatre .nook-book {
    min-height: 0;
    height: 100%;
    max-height: 340px;
    padding: 18px 14px;
  }
  .stage-enabled .project-theatre .nook-book strong {
    font-size: clamp(32px, 8vw, 52px);
  }
  .stage-enabled .project-theatre .pylsa > div:last-child {
    grid-row: 1;
  }
  .stage-enabled .project-theatre .pylsa-print {
    height: 100%;
    max-height: 300px;
    width: auto;
    max-width: 100%;
    margin: auto;
    padding: 12px;
    min-height: 0;
  }
  .stage-enabled .project-theatre .pylsa-print img {
    height: calc(100% - 28px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .stage-enabled .project-theatre .pylsa-print span {
    margin-top: 10px;
    font-size: 10px;
  }
  .stage-enabled .scene-controls {
    bottom: calc(12px + env(safe-area-inset-bottom));
    margin-top: -62px;
    margin-left: 12px;
    margin-right: 70px;
    max-width: calc(100% - 82px);
    width: fit-content;
    gap: 2px;
    padding: 5px;
  }
  .stage-enabled .scene-controls button {
    font-size: 0;
    min-width: 40px;
    min-height: 44px;
    padding: 8px;
  }
  .stage-enabled .scene-controls button::before {
    font:
      12px ui-monospace,
      monospace;
  }
  .stage-enabled .scene-controls button:nth-child(1)::before {
    content: "01";
  }
  .stage-enabled .scene-controls button:nth-child(2)::before {
    content: "02";
  }
  .stage-enabled .scene-controls button:nth-child(3)::before {
    content: "03";
  }
  .stage-enabled .scene-controls button:nth-child(4)::before {
    content: "04";
  }
  .stage-enabled .scene-controls a {
    font-size: 0;
    min-width: 36px;
    min-height: 44px;
    padding: 8px;
  }
  .stage-enabled .scene-controls a::after {
    content: "↗";
    font-size: 16px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .stage-enabled .project-theatre .fader .scene-sticky {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    padding-bottom: 65px;
  }
  .stage-enabled .project-theatre .market,
  .stage-enabled .project-theatre .pylsa {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    padding-bottom: 65px;
  }
  .stage-enabled .project-theatre .nooks .scene-sticky {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    padding-bottom: 65px;
  }
  .stage-enabled .project-theatre .fader .focus-window video {
    max-height: 45svh;
  }
  .stage-enabled .project-theatre .pylsa > div:last-child {
    grid-column: 1;
  }
  .stage-enabled .project-theatre .pylsa-print {
    grid-column: 2;
    grid-row: 1;
  }
  .stage-enabled .project-theatre h2 {
    font-size: 28px !important;
  }
}
@media (max-width: 999px), (pointer: coarse) {
  .motion-enabled .opening h1 {
    transform: translateY(calc(var(--p, 0) * -14px));
  }
  .motion-enabled .slip-one {
    transform: translateY(calc(var(--p, 0) * -18px))
      rotate(calc(4deg - var(--p, 0) * 9deg));
  }
  .motion-enabled .slip-two {
    transform: translateY(calc(var(--p, 0) * 18px))
      rotate(calc(-4deg + var(--p, 0) * 9deg));
  }
  .motion-enabled .opening-bottom {
    transform: none;
  }
  .motion-enabled .market-sheet {
    transform: translateY(calc((1 - var(--p, 0)) * 25px))
      rotate(calc((1 - var(--p, 0)) * 2deg));
  }
  .motion-enabled .movie-book {
    transform: translateY(calc((1 - var(--p, 0)) * 25px))
      rotate(calc((1 - var(--p, 0)) * -3deg));
  }
  .motion-enabled .tv-book {
    transform: translateY(calc((1 - var(--p, 0)) * 45px))
      rotate(calc((1 - var(--p, 0)) * 3deg));
  }
  .motion-enabled .pylsa-print {
    transform: translateY(calc((1 - var(--p, 0)) * 25px))
      rotate(calc((1 - var(--p, 0)) * -3deg));
  }
}
