:root {
  --ink: #f6f3ec;
  --dim: rgba(246, 243, 236, 0.74);
  --pad: clamp(20px, 2.6vw, 40px);
  --ruler: 44px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--ink); }
body { font: 500 16px/1.3 Archivo, "Helvetica Neue", Arial, sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.picture { position: fixed; inset: 0; touch-action: pan-y; }
#slices { width: 100%; height: 100%; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 22%); }
/* The films are only ever drawn into the canvas, which covers them. They sit full size behind it
   because Safari won't start a muted film it considers invisible. */
.picture { isolation: isolate; }
#slices { position: relative; z-index: 1; }
.films { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.films video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.top { position: fixed; z-index: 2; top: var(--pad); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; align-items: center; }
.top img { width: clamp(120px, 11vw, 168px); height: auto; }
.top__contact { padding: 9px 13px 8px; background: #000; border: 2px solid #fff; font-size: 14px; line-height: 1; font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; transition: background-color 120ms linear, color 120ms linear; }
.top__contact:hover { background: #fff; color: #000; }

.stage { position: fixed; z-index: 2; left: var(--pad); right: var(--pad); bottom: calc(var(--ruler) + 14px); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; pointer-events: none; }
.stage a { pointer-events: auto; }
.index { --size: clamp(22px, 4.5vh, 46px); }
.index a { display: block; width: max-content; font-size: var(--size); line-height: 1.2; font-stretch: 125%; font-weight: 600; letter-spacing: -0.012em; text-transform: uppercase; white-space: nowrap; color: var(--dim); transition: color 120ms linear, transform 320ms var(--ease); }
.index a[aria-current] { color: #fff; transform: translateX(14px); }

.note { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.note__n { margin: 0 0.03em 18px 0; font-size: clamp(120px, 30vh, 300px); line-height: 0.86; font-stretch: 125%; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: #fff; transition: opacity 240ms linear; }
.is-picked .note__n { opacity: 0; }
.caption { margin: 0; max-width: 26em; text-align: right; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.25; text-shadow: 0 0 16px rgba(0, 0, 0, 0.7); padding-bottom: 6px; }
.caption__go { display: inline-block; margin-left: 0.5em; font-weight: 600; white-space: nowrap; border-bottom: 2px solid currentColor; }
.caption__go:hover { color: #fff; }

.ruler { position: fixed; z-index: 2; left: var(--pad); right: var(--pad); bottom: 12px; display: flex; justify-content: space-between; font-size: 14px; font-stretch: 125%; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; pointer-events: none; }

/* The opening: everything but the slices and the count waits for 2026. */
.is-intro .top, .is-intro .index li, .is-intro .caption { opacity: 0; }
.top, .index li, .caption { transition: opacity 420ms linear; }
.index li { transition-delay: calc(var(--n, 0) * 34ms); }

/* ---- Small screens: the picture pins to the top, the index scrolls under it ---- */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  :root { --pic: 46svh; --cap: 62px; }
  html, body { height: auto; }
  body { overflow: auto; }
  .picture { position: sticky; top: 0; height: var(--pic); z-index: 1; }
  .scrim { background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 22%); }
  .top { top: 14px; left: 14px; right: 14px; }
  .stage { position: static; display: block; padding: 0 var(--pad); }
  .index { --size: clamp(20px, 6vw, 30px); padding: calc(var(--cap) + 11svh) 0 46svh; }
  .index a { white-space: normal; width: auto; padding: 10px 0; line-height: 1.12; }
  .note { position: fixed; z-index: 1; top: var(--pic); left: 0; right: 0; height: var(--cap); align-items: flex-start; justify-content: center; padding: 0 var(--pad); background: #000; }
  .note__n { display: none; }
  .caption { text-align: left; max-width: none; padding: 0; font-size: 16px; }
  .ruler { top: calc(var(--pic) - 30px); bottom: auto; }
}
