@font-face {
  font-family: "Big Shoulders";
  src: url("../assets/fonts/big-shoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Melodrama";
  src: url("../assets/fonts/melodrama-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root {
  font-family: "Big Shoulders", sans-serif;
  color: #293f3c;
  background: #000;
  font-synthesis: none;
  --pad: clamp(16px, 2.2vw, 32px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  color: inherit;
  font: inherit;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
}
button:focus-visible,
a:focus-visible,
article:focus-visible {
  outline: 3px solid #655382;
  outline-offset: 6px;
  border-radius: 4px;
}
::selection {
  background: #bdbdff;
  color: #253317;
}
.journey {
  height: calc(100svh + var(--travel, 0px));
}
.viewport {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: clamp(6px, 0.9vw, 12px);
}
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(12px, 1.6vw, 22px);
  background: #d3dcd3;
  isolation: isolate;
}
.watercolor-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}
.watercolor-background[data-state="fallback"] {
  visibility: hidden;
}
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  padding: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand,
.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.wordmark {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #293f3c50;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 620;
}
.status i {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #4f7860;
  box-shadow: 0 0 9px #4f786020;
}
.header-meta {
  gap: 28px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}
.current-section {
  border-bottom: 2px solid currentColor;
  padding: 4px 0;
}
.edition {
  opacity: 0.65;
  font-size: 15px;
  font-weight: 560;
}
.track {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  width: max-content;
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 6vw, 110px);
  padding: 0 var(--pad) 0 calc(var(--pad) + 2vw);
  transform: translate3d(var(--track-x, 0px), -50%, 0);
  will-change: transform;
}
.work-head {
  align-self: center;
  flex: 0 0 auto;
  width: min(80vw, 440px);
}
.work-head h1 {
  position: relative;
  margin: 0;
  font-size: clamp(64px, 10vw, 170px);
  line-height: 0.84;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.work-head p {
  margin: 22px 0 0;
  max-width: 30ch;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.35;
  font-weight: 480;
  text-wrap: pretty;
}
.work-head .work-more {
  margin-top: 14px;
  opacity: 0.75;
}
.project {
  flex: 0 0 auto;
  width: clamp(138px, calc((100svh - 320px) * 9 / 16), 300px);
  scroll-margin: 120px 0;
}
.project-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 620;
}
.project-label > :last-child {
  opacity: 0.7;
}
.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  overflow: hidden;
  border: 2.5px solid #000;
  border-radius: 18px;
  color: #37432b;
  transition: border-color 0.2s;
}
.chalk {
  background: #e9e9dc;
}
.sand {
  background: #d6cabc;
}
.lilac {
  background: #c6c5dc;
  color: #49455e;
}
.pink {
  background: #dec4c2;
  color: #6e4d4b;
}
.butter {
  background: #e1d79f;
  color: #5e582f;
}
.cover-top {
  position: absolute;
  top: 22px;
  left: 24px;
  font-size: 15px;
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cover-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(90px, 12vw, 190px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.055em;
  opacity: 0.72;
}
.cover-bottom {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid currentColor;
  font-size: 15px;
  font-weight: 560;
}
.project:hover .cover,
.project:focus-visible .cover {
  border-color: #655382;
}
.project h2 {
  margin: 14px 0 0;
  font:
    500 clamp(24px, 2vw, 30px) / 1.15 "Melodrama",
    serif;
  letter-spacing: -0.005em;
}
.project p {
  max-width: 44ch;
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 480;
  line-height: 1.35;
}
.ruler {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) * 0.7);
  z-index: 3;
}
.ruler-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 8px;
  align-items: center;
  padding-bottom: 9px;
  font-size: 13px;
  font-weight: 620;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.intro-link,
.scroll-note {
  width: 120px;
}
.intro-link {
  grid-area: 1 / 1;
  text-align: left;
  opacity: 0.65;
  text-transform: uppercase;
}
.scroll-note {
  grid-area: 1 / 2;
  justify-self: end;
  text-align: right;
  opacity: 0.65;
}
.project-nav {
  position: relative;
  grid-area: 2 / 1 / 3 / -1;
  width: 100%;
  height: 26px;
}
.project-nav button {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  opacity: 0.6;
  padding: 5px 8px;
}
.ruler button:hover,
.ruler .is-active {
  opacity: 1;
}
.project-nav .is-active {
  color: #293f3c;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ticks {
  position: relative;
  height: 10px;
}
.tick {
  position: absolute;
  bottom: 0;
  width: 1.5px;
  height: 7px;
  transform: translateX(-50%);
  background: #293f3c66;
}
.tick-major {
  height: 11px;
  background: #293f3ca6;
}
.playhead {
  position: absolute;
  bottom: 0;
  left: var(--playhead-x, 0px);
  transform: translateX(-50%);
  width: 2px;
  height: 17px;
  background: #655382;
}
.skip-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10;
  padding: 12px 18px;
  background: #f4f2ff;
  color: #253317;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
@media (max-height: 740px) and (min-width: 721px) {
  .work-head h1 {
    font-size: min(10vw, 18svh);
  }
  .work-head p {
    font-size: 19px;
  }
}
@media (max-width: 720px) {
  .status {
    display: none;
  }
  .wordmark {
    font-size: 18px;
  }
  .header-meta {
    font-size: 16px;
    gap: 18px;
  }
  .edition {
    font-size: 13px;
  }
  .work-head {
    width: min(76vw, 360px);
  }
  .work-head h1 {
    font-size: clamp(72px, 18vw, 125px);
  }
  .work-head p {
    font-size: 19px;
    max-width: 25ch;
  }
  .project {
    width: min(72vw, calc((100svh - 300px) * 9 / 16), 300px);
  }
  .cover-number {
    font-size: clamp(90px, 25vw, 170px);
  }
  .cover-top {
    top: 16px;
    left: 18px;
    font-size: 12px;
  }
  .cover-bottom {
    bottom: 16px;
    left: 18px;
    right: 18px;
    font-size: 12px;
  }
  .project-label {
    font-size: 14px;
  }
  .project h2 {
    font-size: 25px;
  }
  .project p {
    font-size: 15px;
    max-width: 30ch;
  }
  .ruler-top {
    font-size: 12px;
  }
  .intro-link {
    width: auto;
  }
  .scroll-note {
    display: none;
  }
}
@media (max-height: 500px) {
  .track {
    top: 54%;
  }
  .project { width: clamp(90px, calc((100svh - 190px) * 9 / 16), 170px); }
  .project p { display: none; }
  .project-label { font-size: 11px; gap: 6px; }
  .work-head h1 {
    font-size: 64px;
  }
  .work-head p {
    font-size: 16px;
    margin-top: 12px;
  }
  .project h2 {
    font-size: 20px;
  }
  .project p {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey {
    height: auto;
  }
  .viewport {
    position: relative;
    height: auto;
    min-height: 100svh;
  }
  .stage {
    height: auto;
    min-height: 100svh;
  }
  .track {
    position: relative;
    inset: auto;
    transform: none;
    will-change: auto;
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 170px var(--pad) 110px;
    gap: 56px;
  }
  .work-head {
    width: 100%;
  }
  .project {
    width: min(100%, 300px);
  }
  .project:hover .cover,
  .project:focus-visible .cover {
    transform: none;
  }
  .cover {
    transition: none;
  }
  .ticks,
  .scroll-note {
    display: none;
  }
  .ruler {
    bottom: 24px;
  }
}
.work-head h1 {
  letter-spacing: 0;
}
.canvas-text > canvas {
  display: block;
  pointer-events: none;
}
.canvas-text-wrap > canvas {
  max-width: 100%;
}
.canvas-accessible-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cover-artwork { background: #08070c; color: #f0e6ff; text-align: left; }
.cover-artwork img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cover-live-preview { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; background: transparent; opacity: 0; transition: opacity .2s ease; }
.cover-live-preview.is-ready { opacity: 1; }
.cover-artwork::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#0006, transparent 25%, transparent 65%, #000b);
  pointer-events: none;
}
.cover-film-meta, .cover-film-caption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  font-size: 13px;
}
.cover-film-meta { top: 18px; letter-spacing: 0.04em; }
.cover-film-caption { bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.project:has(.cover-artwork) { cursor: pointer; }

.project-dialog {
  padding: 0;
  border: 1px solid #bba8d238;
  border-radius: 22px;
  width: min(920px, calc(100vw - 48px), calc((100svh - 96px) * var(--artwork-width-ratio, 0.5625) + 360px));
  max-width: none;
  max-height: calc(100svh - 48px);
  overflow: auto;
  background: #101015;
  color: #e9e1ef;
  box-shadow: 0 28px 100px #0008;
}
.project-dialog::backdrop { background: #0d151bd1; backdrop-filter: blur(12px); }
.artwork-window { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.artwork-stage { min-width: 0; background: #000; }
.artwork-stage iframe {
  display: block;
  width: 100%;
  aspect-ratio: var(--artwork-ratio, 9 / 16);
  max-height: calc(100svh - 50px);
  border: 0;
  background: #000;
}
.artwork-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e9e1ef40;
  border-radius: 50%;
  background: #101015bb;
  color: #e9e1ef;
}
.artwork-close:hover { background: #554363; }
.artwork-story { display: flex; flex-direction: column; align-items: flex-start; padding: 70px 30px 32px; }
.artwork-eyebrow { margin: 0 0 26px; font-size: 14px; opacity: 0.6; letter-spacing: 0.04em; }
.artwork-story h2 { margin: 0; font: 500 32px / 1.15 "Melodrama", Georgia, serif; width: 100%; }
.artwork-poem { margin: 30px 0; width: 100%; font: 15px / 1.8 Georgia, serif; color: #c8bccf; }
@media (max-width: 680px) {
  .project-dialog { width: min(440px, calc(100vw - 24px)); max-height: calc(100svh - 24px); border-radius: 16px; }
  .artwork-window { grid-template-columns: 1fr; }
  .artwork-stage iframe { height: min(68svh, calc((100vw - 24px) / var(--artwork-width-ratio, 0.5625))); max-height: none; }
  .artwork-story { padding: 22px 24px 26px; }
  .artwork-eyebrow { margin-bottom: 10px; }
  .artwork-story h2 { font-size: 24px; }
  .artwork-poem { margin: 18px 0; font-size: 13px; }
}
@media (max-height: 550px) and (min-width: 681px) {
  .artwork-story { padding: 48px 24px 20px; }
  .artwork-story h2 { font-size: 24px; }
  .artwork-poem { font-size: 12px; line-height: 1.5; margin: 12px 0; }
  .artwork-eyebrow { margin-bottom: 10px; }
}
