:root {
  --paper: #efe6d0;
  --paper-2: #e4d8bc;
  --ink: #1a1410;
  --ink-soft: rgba(26, 20, 16, 0.64);
  --rule: rgba(26, 20, 16, 0.14);
  --rule-strong: rgba(26, 20, 16, 0.28);
  --vermillion: #c4331a;
  --brass: #9a6f2a;
  --moss: #3a4630;
  --voice-i: #c4331a;
  --voice-ii: #9a6f2a;
  --voice-iii: #3a4630;
  --voice-iv: #2c4a5a;
  --spine: 6.5rem;
  --gutter: clamp(1.25rem, 3vw, 4.5rem);
  --spread: min(86rem, calc(100vw - var(--spine) - 4rem));
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "ui-monospace", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --theme: #efe6d0;
  color-scheme: light;
}

[data-desk="night"] {
  --paper: #12110e;
  --paper-2: #1b1915;
  --ink: #efe6d0;
  --ink-soft: rgba(239, 230, 208, 0.62);
  --rule: rgba(239, 230, 208, 0.14);
  --rule-strong: rgba(239, 230, 208, 0.3);
  --vermillion: #e85a3c;
  --brass: #d4a24a;
  --moss: #8fa36c;
  --voice-i: #e85a3c;
  --voice-ii: #d4a24a;
  --voice-iii: #8fa36c;
  --voice-iv: #7eb0c6;
  --theme: #12110e;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  cursor: none;

  &.has-touch {
    cursor: auto;
  }
}

::selection {
  background: var(--vermillion);
  color: var(--paper);
}

:focus-visible {
  outline: 1px solid var(--vermillion);
  outline-offset: 3px;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;

  &:focus {
    top: 1rem;
  }
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 12;
  opacity: 0.14;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  [data-desk="night"] & {
    mix-blend-mode: overlay;
    opacity: 0.18;
  }
}

.cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  mix-blend-mode: difference;

  .cursor__dot,
  .cursor__ring {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cursor__dot {
    width: 5px;
    height: 5px;
    background: #fff;
  }

  .cursor__ring {
    width: 22px;
    height: 22px;
    border: 1px solid #fff;
    transition: width 0.25s var(--ease), height 0.25s var(--ease);

    body.is-pointer-down &,
    body.is-hovering & {
      width: 42px;
      height: 42px;
    }
  }
}

.spine {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--spine);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 0.85rem 1.1rem;
  border-right: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, var(--paper-2));
  z-index: 8;
  overflow: hidden;

  .spine__mark {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    font-family: var(--display);
    font-variation-settings: "opsz" 72, "SOFT" 40;
    font-weight: 560;
    line-height: 1;

    span:first-child {
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      font-family: var(--mono);
      font-weight: 500;
    }

    span:last-child {
      font-size: 1.35rem;
    }
  }

  .spine__nav {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;

    a {
      display: flex;
      flex-direction: column;
      gap: 0.12rem;
      text-decoration: none;
      font-size: 0.68rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--ink-soft);
      transition: color 0.2s var(--ease);

      i {
        font-style: normal;
        font-family: var(--mono);
        font-size: 0.62rem;
        color: var(--brass);
      }

      &:hover,
      &.is-active {
        color: var(--ink);
      }

      &.is-active i {
        color: var(--vermillion);
      }
    }
  }

  .spine__foot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .spine__clock {
    margin: 0;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 1.45;
  }

  .spine__progress {
    position: absolute;
    top: 0;
    right: -1px;
    width: 2px;
    height: 100%;
    background: transparent;

    b {
      display: block;
      width: 100%;
      height: 0%;
      background: var(--vermillion);
    }
  }
}

.desk-toggle {
  appearance: none;
  border: 1px solid var(--rule-strong);
  background: transparent;
  padding: 0.45rem 0.5rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: none;

  .has-touch & {
    cursor: pointer;
  }
}

.marks {
  pointer-events: none;
  position: fixed;
  inset: 0.7rem calc(0.7rem) 0.7rem calc(var(--spine) + 0.7rem);
  z-index: 9;
}

.mark {
  position: absolute;
  width: 12px;
  height: 12px;

  &::before,
  &::after {
    content: "";
    position: absolute;
    background: var(--ink-soft);
  }

  &::before {
    width: 1px;
    height: 12px;
    left: 5.5px;
    top: 0;
  }

  &::after {
    height: 1px;
    width: 12px;
    top: 5.5px;
    left: 0;
  }

  &.mark--tl { top: 0; left: 0; }
  &.mark--tr { top: 0; right: 0; }
  &.mark--bl { bottom: 0; left: 0; }
  &.mark--br { bottom: 0; right: 0; }
}

.stage {
  box-sizing: border-box;
  width: calc(100% - var(--spine));
  max-width: none;
  margin-left: var(--spine);
  padding: 1.5rem var(--gutter) 4rem;
}

.masthead,
.prelude,
.section,
.colophon {
  width: var(--spread);
  max-width: 100%;
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.4rem 0 1.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);

  p {
    margin: 0;
  }

  .masthead__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
  }
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vermillion);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--vermillion) 70%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--vermillion) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.prelude {
  padding: 3.2rem 0 2rem;

  .prelude__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
    gap: 2rem 4rem;
    align-items: end;
    margin-bottom: 2rem;
  }
}

.kicker {
  margin: 0 0 1.4rem;
  max-width: 28rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.display {
  margin: 0;
  max-width: 16ch;
  font-family: var(--display);
  font-weight: 560;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: clamp(3.1rem, 5.4vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;

  em {
    display: block;
    font-style: italic;
    font-weight: 400;
    color: var(--vermillion);
  }
}

.lede {
  margin: 0;
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.facts {
  margin: 0;
  display: grid;
  gap: 1rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--rule);

  div {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--rule);
  }

  dt {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  dd {
    margin: 0;
  }
}

.score {
  margin: 3.2rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);

  figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .score__legend {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.6rem;
    margin: 0.4rem 0 0;
    padding: 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    .v {
      display: inline-block;
      width: 1.4rem;
      height: 2px;
      margin-right: 0.45rem;
      vertical-align: middle;
    }
  }
}

#score {
  display: block;
  width: 100%;
  height: clamp(180px, 18vw, 320px);
  margin-top: 0.4rem;
}

.v--i { background: var(--voice-i); }
.v--ii { background: var(--voice-ii); }
.v--iii { background: var(--voice-iii); }
.v--iv { background: var(--voice-iv); }

.section {
  padding: 4.5rem 0 1rem;

  .section__head {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 40rem);
    gap: 1rem 1.5rem;
    margin-bottom: 2.4rem;

    h2 {
      margin: 0 0 0.6rem;
      font-family: var(--display);
      font-weight: 560;
      font-variation-settings: "opsz" 60, "SOFT" 30;
      font-size: clamp(1.9rem, 3vw, 2.8rem);
      letter-spacing: -0.03em;
      line-height: 1.1;
    }

    p:not(.folio) {
      margin: 0;
      color: var(--ink-soft);
    }
  }
}

.folio {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--vermillion);
}

.index-rule {
  display: grid;
  grid-template-columns: 3.2rem minmax(8rem, 1.3fr) minmax(8rem, 1.4fr) 6.5rem 1.6rem;
  gap: 0.8rem;
  padding: 0 0 0.55rem;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.movement {
  border-bottom: 1px solid var(--rule);

  &.is-open .movement__cue {
    transform: rotate(225deg) translateY(-3px);
  }

  .movement__head {
    width: 100%;
    display: grid;
    grid-template-columns: 3.2rem minmax(8rem, 1.3fr) minmax(8rem, 1.4fr) 6.5rem 1.6rem;
    gap: 0.8rem;
    align-items: baseline;
    padding: 1.15rem 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: none;

    .has-touch & {
      cursor: pointer;
    }

    &:hover .movement__title {
      color: var(--vermillion);
    }
  }

  .movement__no,
  .movement__year {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .movement__title {
    font-family: var(--display);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 560;
    letter-spacing: -0.02em;
  }

  .movement__role {
    color: var(--ink-soft);
  }

  .movement__cue {
    justify-self: end;
    width: 11px;
    height: 11px;
    border-right: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.25s var(--ease);
  }

  .movement__body {
    padding: 0 0 1.6rem;
  }

  .movement__spread {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
    gap: 1.8rem 2.4rem;
    align-items: start;
  }

  .movement__lead {
    margin: 0 0 0.9rem;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.35;
  }

  .movement__copy p {
    margin: 0 0 1rem;
  }

  .movement__links a {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-underline-offset: 0.28em;
  }
}

.poster {
  position: relative;
  min-height: 16rem;
  padding: 1rem;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  overflow: hidden;

  .poster__word {
    position: absolute;
    left: 1rem;
    bottom: 0.85rem;
    font-family: var(--display);
    font-size: 2rem;
    font-style: italic;
    line-height: 0.9;
    letter-spacing: -0.03em;
    opacity: 0.88;
  }

  .poster__stamp {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .poster__watermark {
    position: absolute;
    right: -12%;
    bottom: -18%;
    width: 72%;
    opacity: 0.16;
    pointer-events: none;
  }

  .poster__tiles {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-top: 2.4rem;
    width: 100%;

    img {
      display: block;
      width: 100%;
      height: auto;
    }
  }

  .poster__fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .poster__mark {
    position: relative;
    z-index: 1;
    width: 46%;
    height: auto;

    &.poster__mark--icon {
      width: 34%;
    }
  }

  .poster__wordmark {
    position: relative;
    z-index: 1;
    width: 58%;
    height: auto;
  }

  &.poster--cavalry {
    background: #24224a;
    color: #efe6d0;

    .poster__stamp {
      color: #efe6d0;
    }
  }

  &.poster--evx {
    background: #04150b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    .poster__stamp {
      color: #efe6d0;
    }
  }

  &.poster--koobo {
    background: #ffd54a;
    padding: 0;

    .poster__stamp {
      color: #1a1410;
    }
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;

  li {
    border: 1px solid var(--rule-strong);
    padding: 0.15rem 0.5rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

.voices__layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.5rem 2rem;
  min-height: 28rem;
}

.voice-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);

  .voice-list__item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem;
    padding: 0.85rem 0;
    border: 0;
    border-bottom: 1px solid var(--rule);
    background: transparent;
    text-align: left;
    cursor: none;

    .has-touch & {
      cursor: pointer;
    }

    i {
      font-family: var(--mono);
      font-style: normal;
      font-size: 0.7rem;
      color: var(--ink-soft);
    }

    &.is-active {
      color: var(--vermillion);
    }
  }
}

.constellation {
  position: relative;
  min-height: 28rem;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 2rem,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 2rem 100%;
  border: 1px solid var(--rule);

  .constellation__wires,
  .constellation__nodes {
    position: absolute;
    inset: 0;
  }

  .constellation__wires {
    width: 100%;
    height: 100%;
  }

  .constellation__note {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.8rem;
    margin: 0;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: none;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), border-color 0.2s;

  .has-touch & {
    cursor: pointer;
  }

  &.is-dim {
    opacity: 0.22;
  }

  &.is-hot,
  &:hover {
    border-color: var(--ink);
    transform: translate(-50%, -50%) scale(1.06);
  }

  &[data-voice="interface"] { color: var(--voice-i); }
  &[data-voice="systems"] { color: var(--voice-ii); }
  &[data-voice="persistence"] { color: var(--voice-iii); }
  &[data-voice="delivery"] { color: var(--voice-iv); }
}

.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);

  li {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 40rem);
    gap: 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--rule);
  }

  time {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--vermillion);
  }

  h3 {
    margin: 0 0 0.35rem;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 560;
  }

  p {
    margin: 0;
    color: var(--ink-soft);
  }
}

.coda {
  .coda__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
    gap: 2.5rem;
    align-items: start;
  }

  .coda__email {
    margin: 0 0 1rem;
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.15;

    a {
      text-decoration-thickness: 1px;
      text-underline-offset: 0.18em;
    }
  }

  .coda__channels {
    display: flex;
    gap: 1.1rem;
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  blockquote {
    margin: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--vermillion);
    font-family: var(--display);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.4;
  }
}

.compose {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--rule);

  .compose__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
  }

  .compose__hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
  }

  &.is-sent .compose__hint {
    color: var(--moss);
  }

  &.is-error .compose__hint {
    color: var(--vermillion);
  }
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 0.3rem;

  label {
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  input,
  select,
  textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--rule-strong);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    padding: 0.45rem 0;
    outline: none;

    &:focus {
      border-bottom-color: var(--vermillion);
    }
  }

  option {
    background-color: var(--paper);
    color: var(--ink);
  }

  textarea {
    resize: vertical;
    min-height: 7rem;
  }
}

.btn {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: none;

  .has-touch & {
    cursor: pointer;
  }

  &:hover:not(:disabled) {
    background: var(--vermillion);
    border-color: var(--vermillion);
  }

  &:disabled {
    opacity: 0.45;
  }
}

.colophon {
  margin-top: 4.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.6rem;
  color: var(--ink-soft);
  font-size: 0.92rem;

  p {
    margin: 0;
    max-width: 52rem;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1600px) {
  :root {
    --spread: min(100rem, calc(100vw - var(--spine) - 8rem));
  }
}

@media (min-width: 2000px) {
  :root {
    --spread: min(112rem, calc(100vw - var(--spine) - 12rem));
  }
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 4.4rem;
    scroll-padding-bottom: 5.75rem;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .marks {
    display: none;
  }

  .spine {
    position: sticky;
    top: 0;
    inset: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--gutter);
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    overflow: visible;

    .spine__nav {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      flex: none;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 0;
      padding: 0.35rem 0.3rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
      border-top: 1px solid var(--rule);
      background: color-mix(in srgb, var(--paper) 94%, var(--paper-2));
      z-index: 9;

      a {
        align-items: center;
        justify-content: center;
        gap: 0.12rem;
        min-height: 2.75rem;
        padding: 0.2rem 0.15rem;
        font-size: 0.58rem;
        letter-spacing: 0.05em;
        text-align: center;
      }
    }

    .spine__foot {
      flex-direction: row;
      align-items: center;
    }

    .spine__clock span:last-child {
      display: none;
    }

    .spine__progress {
      top: auto;
      right: 0;
      bottom: -1px;
      left: 0;
      width: auto;
      height: 2px;

      b {
        width: 0%;
        height: 100%;
      }
    }
  }

  body:has(:is(input, textarea, select):focus) .spine .spine__nav {
    display: none;
  }

  .stage {
    width: 100%;
    margin-left: 0;
    padding-top: 1rem;
    padding-bottom: 6.5rem;
  }

  .masthead,
  .prelude,
  .section,
  .colophon {
    width: 100%;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .prelude .prelude__hero,
  .section .section__head,
  .movement .movement__head,
  .index-rule,
  .movement .movement__spread,
  .voices__layout,
  .log li,
  .coda .coda__grid {
    grid-template-columns: 1fr;
  }

  .index-rule span:nth-child(3),
  .index-rule span:nth-child(4),
  .movement .movement__role,
  .movement .movement__year {
    display: none;
  }

  .movement .movement__head {
    grid-template-columns: 2.2rem 1fr 1.4rem;
  }

  .display {
    max-width: none;
  }

  .constellation {
    min-height: 0;
    background: none;
    border: 0;

    .constellation__wires {
      display: none;
    }

    .constellation__nodes {
      position: static;
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      padding-bottom: 2.2rem;
    }

    .constellation__note {
      position: static;
    }
  }

  .node,
  .node.is-hot,
  .node:hover {
    position: static;
    transform: none;
  }
}

@media (max-width: 640px) {
  .spine .spine__mark span:last-child {
    display: none;
  }

  .desk-toggle span {
    font-size: 0;

    &::before {
      content: "Desk";
      font-size: 0.62rem;
    }
  }

  .score figcaption span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .live {
    box-shadow: none;
  }
}

@media print {
  .grain,
  .cursor,
  .spine,
  .marks,
  .score,
  .compose,
  .constellation {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    cursor: auto;
  }

  .stage {
    margin: 0;
    padding: 0;
    max-width: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
