:root {
  --paper: #efe8d8;
  --paper-2: #e4dcc8;
  --ink: #1a1814;
  --mute: #4a453e;
  --rule: #b23a22;
  --rule-hot: #d45032;
  --cite: #6b8aaa;
  --cite-bg: transparent;
  --cite-line: rgba(107, 138, 170, .38);
  --cite-on-dusk: #8aa3b8;
  --dusk: #2a353e;
  --lamp: #3b2e24;
  --navy: #2a353e;
  --night: #2a353e;
  --cream: #f6f0e4;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.cite {
  color: var(--cite);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid var(--cite-line);
  background: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.cite::after {
  content: "↗";
  font-weight: 400;
  font-size: .62em;
  opacity: .42;
  margin-left: .14em;
  vertical-align: super;
}
.cite:hover {
  background: none;
  color: #4e7396;
  border-bottom-color: rgba(78, 115, 150, .55);
}
.cite.is-from {
  outline: 1px solid rgba(107, 138, 170, .45);
  outline-offset: 3px;
  background: rgba(107, 138, 170, .08);
}
.dusk .cite,
.measures .cite,
.circuit .cite,
.encoding .cite {
  color: var(--cite-on-dusk);
  background: none;
  border-bottom-color: rgba(138, 163, 184, .4);
}
.refs li { scroll-margin-top: 88px; }
.refs li:target,
.refs li.is-target {
  background: #d9e6f7;
  outline: 3px solid var(--cite);
  outline-offset: 6px;
}

.hint {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.4;
  color: var(--mute);
  max-width: 46rem;
}
.hint.light { color: #e8c9b8; }
.cite-guide {
  color: #9bb8d4;
  font-size: 16px;
  font-weight: 400;
}
.circuit-hint {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.cite-dock {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  max-width: calc(100vw - 32px);
}
.cite-dock[hidden] { display: none; }
.cite-dock p {
  margin: 0;
  font-size: 20px;
}
.cite-dock button {
  background: var(--cream);
  color: var(--ink);
  padding: 12px 18px;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.cite-dock button:hover { background: #fff; }
.ref-back {
  display: block;
  margin: 16px 0 4px;
  text-indent: 0;
  background: var(--cite);
  color: var(--cream);
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 600;
  width: fit-content;
}
body.cite-open { padding-bottom: 110px; }

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 80;
  background: rgba(239, 232, 216, .12);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--rule);
}

.mast {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: flex;
  justify-content: space-between;
  padding: 20px 36px;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
}
.mast-left {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}
.mast a { color: inherit; text-decoration: none; }
.mast-home { color: inherit; text-decoration: none; }
.mast-about {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: .02em;
  font-size: 15px;
  padding: 0;
  text-align: left;
}
.mast-about em {
  font-style: normal;
  font-weight: 400;
  opacity: .72;
  margin-left: .15em;
}
.mast-about:hover { color: var(--rule); }
.mast.is-solid .mast-about:hover { color: var(--rule); }
.mast.is-solid {
  color: var(--ink);
  background: rgba(239, 232, 216, .94);
  border-bottom: 1px solid rgba(26, 24, 20, .08);
}

.cover { height: 100vh; color: var(--cream); }
.cover-pin {
  position: relative;
  height: 100vh;
  display: grid;
  align-content: end;
  overflow: hidden;
}
.para { position: absolute; inset: -6%; }
.para img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  animation: ken 28s ease-in-out alternate infinite;
}
.para-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,18,22,.1), rgba(14,18,22,.78) 100%);
}
.cover-type {
  position: relative;
  z-index: 1;
  padding: 0 8vw 9vh;
}
.cover-credit {
  position: absolute;
  z-index: 2;
  right: 36px;
  bottom: 20px;
  margin: 0;
  text-align: right;
}
.cover-place {
  margin: 0;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--cream);
}
.cover-cite {
  margin: 8px 0 0;
  font-size: 14px;
  letter-spacing: .04em;
  font-weight: 400;
}
.cover .cite {
  color: rgba(246, 240, 228, .82);
  border-bottom-color: rgba(246, 240, 228, .35);
  white-space: nowrap;
}
.cover .cite::after { content: none; }
.word-delay {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(84px, 16vw, 180px);
  font-weight: 500;
  line-height: .85;
  letter-spacing: -.05em;
}
.cover-date {
  margin: 22px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(246, 240, 228, .92);
  font-weight: 500;
}

.chapter-no {
  margin: 0 0 28px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--rule);
}
.chapter-no.light { color: #e8c9b8; }

.split { padding: 10vh 7vw 12vh; }
section { scroll-margin-top: 76px; }
.split.paper { background: var(--paper); color: var(--ink); }
.split.night,
.split.dusk { background: var(--dusk); color: var(--cream); }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: center;
}
.split-grid.invert { direction: rtl; }
.split-grid.invert > * { direction: ltr; }

h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
  font-size: clamp(36px, 5vw, 58px);
  margin: 0 0 24px;
  max-width: 16ch;
}

.prose {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 24px;
  line-height: 1.58;
  max-width: 40rem;
}
.prose p { margin: 0 0 1em; }
.night .prose,
.dusk .prose { color: #e8e1d4; }

.pull {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--rule);
}

.poster {
  margin: 8vh auto 0;
  max-width: 1100px;
  cursor: pointer;
}
.poster svg { width: 100%; height: auto; display: block; }
.poster figcaption,
.art figcaption {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.45;
  color: var(--mute);
}
.night .art figcaption,
.dusk .art figcaption { color: #c8c0b4; }

#fig1-strike {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(1);
}
#fig1-delay { opacity: 1; }
#fig1:not(.is-on) #fig1-strike {
  transform: scaleX(0);
  animation: none;
}
#fig1.is-on #fig1-strike {
  animation: strike 1.4s var(--ease) .15s both;
}
#fig1.is-on #fig1-delay {
  animation: rise 1.1s var(--ease) .35s both;
}
@keyframes strike { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise {
  from { opacity: .35; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes ken {
  from { transform: scale(1.04); }
  to { transform: scale(1.12); }
}
@keyframes tap-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 80, 50, .0); }
  50% { box-shadow: 0 0 0 10px rgba(212, 80, 50, .22); }
}
@keyframes hall-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178, 58, 34, 0); }
  50% { box-shadow: 0 0 0 10px rgba(178, 58, 34, .22); }
}

.art {
  margin: 0;
}
.art img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.frost img {
  filter: none;
}

.encoding {
  --moon: 0;
  background: color-mix(in srgb, var(--lamp) calc((1 - var(--moon)) * 100%), var(--dusk) calc(var(--moon) * 100%));
  color: var(--cream);
  min-height: 300vh;
}
.encoding-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: 10vh 7vw 8vh;
}
.encoding .chapter-no,
.encoding .hint { color: #e8c9b8; }
.encoding .prose { color: #efe6d8; }
.scene-stack {
  position: relative;
  margin: 0;
  overflow: hidden;
}
.scene-stack .scene-lamp,
.scene-stack .scene-moon {
  width: 100%;
  height: min(64vh, 560px);
  object-fit: cover;
  object-position: 68% 72%;
  display: block;
}
.scene-moon {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: var(--moon);
  pointer-events: none;
}
.encoding figcaption { color: #cfc6b8; }

.art .scene-stack img {
  height: min(64vh, 560px);
  object-fit: cover;
  object-position: 68% 72%;
  filter: none;
}

.measures {
  background: var(--navy);
  color: var(--cream);
  padding: 7vh 6vw 8vh;
}
.measures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: stretch;
}
.measures-grid article {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 0;
}
.viz-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.viz-kicker {
  margin: 0 0 8px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 18px;
  color: #e8c9b8;
}
.giant {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(64px, 9vw, 120px);
  line-height: .9;
  letter-spacing: -.05em;
}
.giant-sub {
  font-size: .45em;
  letter-spacing: 0;
}
.viz-line {
  margin: 16px 0 0;
  font-size: 22px;
  line-height: 1.45;
  color: #e4ddd0;
  max-width: 28ch;
}
.waffle {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin: 16px 0 8px;
  max-width: 380px;
}
.waffle span {
  aspect-ratio: 1;
  background: rgba(239,232,216,.16);
  border-radius: 3px;
}
.waffle span.on { background: var(--cream); }
.punch {
  margin: 36px auto 0;
  max-width: none;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.15;
}

.circuit {
  background: var(--night);
  color: var(--cream);
  min-height: 100vh;
  padding: 10vh 6vw 12vh;
  display: grid;
  align-content: center;
  gap: 36px;
}
.nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.nodes button {
  min-width: 176px;
  min-height: 176px;
  border: 2px solid rgba(239,232,216,.45);
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 6px;
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
  transition: transform .2s var(--ease), background .2s, border-color .2s;
}
.nodes button:not(.is-on) {
  animation: tap-pulse 1.63s ease-in-out infinite;
}
.nodes button:hover {
  transform: scale(1.05);
  border-color: var(--cream);
}
.nodes small {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
  letter-spacing: .18em;
  color: var(--rule-hot);
}
.nodes button.is-on {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  transform: scale(1.1);
}
.nodes button.is-on:hover {
  transform: scale(1.1);
}
.nodes i {
  width: 48px;
  height: 3px;
  background: var(--rule);
}
.circuit-panel {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}
.circuit-kicker {
  margin: 0 0 8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 18px;
  color: #e8c9b8;
}
.circuit-panel h2 {
  max-width: none;
  margin-bottom: 16px;
}
.circuit-panel p {
  margin: 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 26px;
  line-height: 1.45;
  color: #e8e1d4;
}
.circuit-panel .circuit-kicker {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 18px;
  color: #e8c9b8;
}

.scope {
  background: var(--paper);
  color: var(--ink);
  padding: 10vh 6vw 12vh;
}
.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.scope-in,
.scope-out {
  padding: 48px 40px;
}
.scope-in { background: var(--night); color: var(--cream); }
.scope-out { background: var(--paper-2); }
.scope-grid p {
  margin: 0 0 28px;
  font-size: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rule);
}
.scope-out p { color: var(--rule); }
.scope-grid ul { margin: 0; padding: 0; list-style: none; }
.scope-grid li {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(239,232,216,.18);
}
.scope-out li { border-bottom-color: rgba(26,24,20,.12); }
.scope-note {
  max-width: 42rem;
  margin: 36px auto 0;
  font-size: 20px;
  font-family: "IBM Plex Serif", Georgia, serif;
  text-align: center;
  color: var(--mute);
}

.hall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3.2vw, 42px);
  margin: 0 0 40px;
}
.hall-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 0 0 28px;
}
.hall-head h2 { margin: 0; }
.hall-hint {
  text-align: right;
  max-width: 22rem;
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
}
.hall button {
  text-align: left;
  padding: 28px 24px;
  min-height: 220px;
  background: var(--paper-2);
  display: grid;
  align-content: start;
  gap: 10px;
  transition: transform .2s var(--ease), background .2s;
}
.hall button:not(.is-on) {
  animation: hall-pulse 1.63s ease-in-out infinite;
}
.hall button:not(.is-on)::after {
  content: "click";
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: lowercase;
  color: rgba(178, 58, 34, .42);
  font-weight: 400;
  margin-top: auto;
}
.hall button:hover { transform: translateY(-4px); }
.hall button.is-on {
  background: var(--night);
  color: var(--cream);
}
.hall em {
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--rule);
}
.hall b {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 500;
}
.hall span {
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.4;
  opacity: .88;
}
#reception h2 { max-width: none; }
.hall-copy {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}
.hall-copy[data-align="0"] { justify-content: flex-start; }
.hall-copy[data-align="1"] { justify-content: center; }
.hall-copy[data-align="2"] { justify-content: flex-end; }
.hall-reading {
  display: none;
  width: min(38rem, 100%);
  text-align: left;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.55;
}
.hall-reading.is-on {
  display: grid;
  gap: 1.15em;
}
.hall-reading p { margin: 0; }

.stat {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: var(--rule);
  white-space: nowrap;
  padding-bottom: 0;
  line-height: inherit;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.16em;
  background: rgba(178, 58, 34, .22);
  pointer-events: none;
}
.stat i {
  position: absolute;
  left: 0;
  bottom: 0.05em;
  height: 0.16em;
  background: var(--rule);
  pointer-events: none;
}
.close-poster {
  padding: 28px 8px 0 0;
}
.close-poster p {
  margin: 0;
  font-size: 22px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.close-poster .big {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(52px, 7vw, 88px);
  letter-spacing: -.04em;
  text-transform: none;
  color: var(--rule);
  line-height: .95;
  margin: 6px 0 28px;
}
.close-poster .faint {
  color: var(--ink);
  text-decoration: line-through;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 6px;
}

.refs {
  background: var(--paper-2);
  padding: 10vh 8vw 14vh;
}
.refs h2 {
  font-size: 40px;
  max-width: none;
}
.refs ul {
  max-width: 54rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.refs li {
  margin: 0 0 18px;
  padding: 8px 10px 8px 1.6em;
  text-indent: -1.6em;
  font-size: 18px;
  line-height: 1.5;
}
.refs a { color: #3d5f86; word-break: break-word; }
.endnote {
  margin-top: 40px;
  max-width: 44rem;
  color: var(--mute);
  font-size: 16px;
}

@media (max-width: 900px) {
  .split-grid,
  .split-grid.invert,
  .measures-grid,
  .scope-grid,
  .hall { grid-template-columns: 1fr; direction: ltr; }
  .nodes button { min-width: 132px; min-height: 132px; font-size: 24px; }
  .nodes i { width: 20px; }
  .mast { padding: 16px 20px; font-size: 14px; }
  .art img { height: 46vh; }
  .art .scene-stack img,
  .scene-stack .scene-lamp { height: 42vh; }
  .encoding { min-height: 240vh; }
  .cover-credit { right: 20px; bottom: 16px; }
  .cover-place { font-size: 14px; }
  .punch { white-space: normal; }
  .mast-left { gap: 12px; flex-wrap: wrap; }
  .mast-about { font-size: 13px; }
  .hall-head { flex-direction: column; align-items: flex-end; }
  .hall-hint { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  #fig1-strike, #fig1-delay, #fig1.is-on #fig1-strike, #fig1.is-on #fig1-delay {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .para img { animation: none; }
  .nodes button:not(.is-on),
  .hall button:not(.is-on) { animation: none; }
  html { scroll-behavior: auto; }
}

@media print {
  .mast, .progress, .cite-dock { display: none; }
  .cover { height: auto; }
  .cover-pin { position: relative; height: auto; }
  .para img { animation: none; }
  body { background: #fff; color: #000; }
}
