/* borra — near-black, charcoal, warm amber, bone white, vermilion. */

/* Archivo, self-hosted. One variable file carries both axes: weight 100-900
   for the light-to-black range, width 62-125% for the wide display cuts.
   SIL Open Font License 1.1 — see assets/fonts/OFL.txt */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* one warm neutral ramp — no cool greys anywhere in the page */
  --ink:      #0b0b0c;
  --bone:     #ede6da;   /* 1 — headlines */
  --cream:    #f6efdc;   /* title card */
  --bone-2:   #cfc7b8;   /* 2 — body */
  --bone-3:   #a69d90;   /* 3 — secondary */
  --bone-4:   #7c7468;   /* 4 — labels */
  --line:     rgba(237,230,218,.14);

  /* one accent only. Amber stays in the film and the heap's colour wash rather
     than becoming a second UI colour. Vermilion is desaturated from the raw
     pigment so it sits with the neutrals instead of vibrating against them. */
  --verm:     #c8492c;
  --verm-lit: #d95a39;

  /* one grotesque does the whole page: black and narrow-tracked for display,
     light and open-tracked for everything small */
  --sans: 'Archivo', "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: var(--sans);
  --mono: var(--sans);
  --track-label: .18em;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --pin-pad: clamp(5.5rem, 10vh, 8rem);
  --block-gap: clamp(1.7rem, 3.2vw, 2.6rem);
  --rule: 1px solid var(--line);
  --ease: cubic-bezier(.16,.84,.24,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  /* the page ground lives here so the film can sit behind the body */
  background: var(--ink);
}
/* the poster sits on html so the first frame is there before the film
   has decoded — #stage is opacity 0 until then, and gone if it fails */
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../img/poster.webp') center / cover no-repeat;
  filter: brightness(.44) contrast(1.08) saturate(.9);
  pointer-events: none;
  transition: opacity 1.2s var(--ease);
}
.film-ready::before { opacity: 0; }

body {
  margin: 0;
  background: transparent;
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--verm); color: #fff; }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  transform: translateY(-160%);
  background: var(--bone); color: var(--ink);
  padding: .7rem 1.1rem; font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { transform: none; }

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --- environment layer ------------------------------------------- */

/* A fixed <video> is promoted to a native overlay layer on mobile and paints
   over normal content whatever its z-index says. Sitting it behind the body
   entirely — the page ground is on <html> — is the only ordering it respects. */
.topbar, .menu, main, .manifesto {
  transform: translateZ(0);
}

/* one fixed veil on the film — not per-chapter, so nothing clips at a pin edge */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    125% 95% at 50% 42%,
    color-mix(in srgb, var(--ink) 22%, transparent) 0%,
    color-mix(in srgb, var(--ink) 46%, transparent) 62%,
    color-mix(in srgb, var(--ink) 62%, transparent) 100%
  );
}

#stage {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: -1;
  object-fit: cover;
  background: var(--ink);
  pointer-events: none;
  opacity: 0;
  /* a grade on the picture, then a veil on top of it so type still reads */
  filter: brightness(.44) contrast(1.08) saturate(.9);
  transition: opacity 1.2s var(--ease);
}
.film-ready #stage { opacity: 1; }

/* if the film will not load, the html poster carries the opening shot */
.film-failed #stage { display: none; }



/* --- chrome ------------------------------------------------------- */

/* No background plate: the bar is just a mark and a control sitting on the
   film, holding their own contrast the way the rest of the type does. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1.1rem, 2.4vh, 1.7rem) var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.wordmark {
  display: inline-flex; align-items: center;
  -webkit-user-select: none; user-select: none;
  font-family: var(--sans); font-weight: 700; font-stretch: 108%;
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  letter-spacing: -.03em; color: var(--bone); text-decoration: none;
}

.menu-btn {
  display: inline-flex; align-items: center; gap: .7rem;
  -webkit-user-select: none; user-select: none;
  background: none; border: 0; padding: .35rem 0;
  color: var(--bone); cursor: pointer;
  font-family: var(--sans); font-weight: 400; font-size: 10.5px;
  letter-spacing: var(--track-label); text-transform: uppercase;
}
.menu-btn__bars { display: grid; gap: 5px; width: 26px; }
.menu-btn__bars i {
  display: block; height: 1.5px; background: currentColor;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }
.menu-btn:active { transform: scale(.97); }

/* solid, not a veil — the film stops at the edge of it */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(5.5rem, 14vh, 9rem) var(--gutter) clamp(2rem, 6vh, 4rem);
}
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li + li { border-top: var(--rule); }
.menu__list a {
  display: flex; align-items: baseline; gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(.7rem, 2vh, 1.15rem) 0;
  font-family: var(--sans); font-weight: 800; font-stretch: 112%;
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  letter-spacing: -.035em; line-height: 1;
  color: var(--bone); text-decoration: none;
  transition: color .4s var(--ease);
}
.menu__list a span {
  font-weight: 400; font-stretch: 100%;
  font-size: 10.5px; letter-spacing: var(--track-label);
  color: var(--bone-4); flex: none; min-width: 2.2em;
}
.menu__list a:hover { color: var(--verm-lit); }
.menu__list a[aria-current="page"] { color: var(--bone); }
.menu__list a[aria-current="page"] span { color: var(--verm-lit); }
.menu__list a:active { color: var(--bone-2); }
.menu__foot {
  margin: clamp(2rem, 5vh, 3.4rem) 0 0;
  font-size: 11px; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--bone-4);
}








/* --- typography --------------------------------------------------- */

.display {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.032em;
  line-height: .93;
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2rem, 4.9vw, 4.6rem);
}
.display--lg { font-size: clamp(2.4rem, 7vw, 6.4rem); }
.display--xl { font-size: clamp(2.7rem, 9.2vw, 9.4rem); letter-spacing: -.05em; }

.tag {
  display: flex; gap: .9rem; align-items: center;
  font-family: var(--sans); font-weight: 400; font-size: 10.5px;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--bone-3); margin: 0 0 clamp(1.2rem, 2.6vw, 2.2rem);
}
.tag span + span { color: var(--bone-4); }
.tag span + span::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--line); vertical-align: middle; margin-right: .9rem;
}

.lead {
  font-size: clamp(1rem, 1.28vw, 1.2rem);
  font-weight: 300; line-height: 1.6; letter-spacing: .006em;
  color: var(--bone-2);
  max-width: 42ch; margin: clamp(1.5rem, 3vw, 2.4rem) 0 0;
  text-wrap: pretty;
}
.body {
  font-size: clamp(.94rem, 1.06vw, 1.02rem);
  font-weight: 300; line-height: 1.68; letter-spacing: .01em;
  color: var(--bone-2);
  max-width: 50ch; margin: clamp(1.3rem, 2.4vw, 2rem) 0 0;
  text-wrap: pretty;
}

.specs, .colophon { margin: var(--block-gap) 0 0; display: grid; gap: .8rem; }
.specs div, .colophon div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem;
  padding-top: .7rem; border-top: var(--rule);
}
.specs dt, .colophon dt {
  font-family: var(--sans); font-weight: 400; font-size: 10px; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--bone-4); margin: 0; padding-top: .2rem;
}
.specs dd, .colophon dd { margin: 0; font-size: .96rem; color: var(--bone-2); }
.colophon dd a, .credit a {
  color: var(--bone);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: var(--bone-4);
  transition: text-decoration-color .35s var(--ease), color .35s var(--ease);
}
.colophon dd a:hover, .credit a:hover { text-decoration-color: var(--verm-lit); }
.colophon dd a:active, .credit a:active { color: var(--bone-2); }

.readout {
  list-style: none; margin: var(--block-gap) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.6rem, 1.6vw, 1.6rem);
  border-top: var(--rule); padding-top: 1.1rem;
}
.readout li {
  display: grid; gap: .25rem;
  padding-left: clamp(.7rem, 1.6vw, 1.3rem);
  border-left: 1px solid var(--line);
}
.readout li:first-child { padding-left: 0; border-left: 0; }
.readout b {
  font-family: var(--sans); font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 700; font-stretch: 108%;
  letter-spacing: -.035em; color: var(--bone); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.readout span {
  font-family: var(--sans); font-weight: 400; font-size: 9.5px; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--bone-4);
}

.pull {
  margin: var(--block-gap) 0 0; padding-left: 1.5rem;
  border-left: 1px solid var(--verm);
}
.pull p {
  margin: 0; font-size: clamp(1.06rem, 1.5vw, 1.4rem);
  line-height: 1.42; color: var(--bone);
}
.pull cite {
  display: block; margin-top: .85rem; font-style: normal;
  font-family: var(--sans); font-weight: 400; font-size: 10px; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--bone-4);
}


/* --- chapters and pinned layers ----------------------------------- */

main { position: relative; z-index: 10; }

.chapter {
  position: relative;
  /* 100svh pin + 100svh of travel: content is on from the first frame,
     then the pin holds for one viewport of scroll */
  min-height: 200svh;
}
.chapter--hero { min-height: 200svh; }

.chapter__pin {
  position: sticky; top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: var(--pin-pad) var(--gutter);
  overflow: hidden;
}
#chapter-room .chapter__pin { overflow: visible; }

.layer {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 86rem;
  margin-inline: auto;
  opacity: var(--op, 1);
  filter: blur(var(--blur, 0px));
  transform: translate3d(0, var(--y, 0px), 0);
  will-change: opacity, filter, transform;
}

/* the title card: the name centred in the frame, the heap holding the floor */
.chapter--hero .chapter__pin {
  align-items: stretch;
  /* the name runs to the edges, so this pin carries no side gutter */
  padding-inline: 0;
}
.layer--title {
  max-width: none;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  /* sit in the plantation, above the heap */
  padding-bottom: clamp(11rem, 32vh, 20rem);
}


/* the name runs the full width of the frame, edge to edge */
.hero__name {
  margin: 15px 0 0;
  width: 100%;
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 22.4vw;
  line-height: .86;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 90%, transparent);
  white-space: nowrap;
  text-align: center;
}

.hero__line {
  margin: clamp(.55rem, 1.4vw, 1rem) 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(10px, 1.05vw, 12px);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--bone-3);
}
.js .hero__line {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.05s var(--ease) .72s, transform 1.2s var(--ease) .72s;
}
.js .hero__name.is-in + .hero__line {
  opacity: 1;
  transform: none;
}

/* the heap of grounds, beans and cherries the name stands in */
.strata {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  height: clamp(12rem, 34vh, 22rem);
  pointer-events: none;
  /* the heap outlasts the words, then hands its colour to the next chapter */
  opacity: var(--strata-op, 1);
}
.js .strata {
  opacity: 0;
  transform: translate3d(0, 42%, 0);
  transition: opacity 1.45s var(--ease), transform 1.45s var(--ease);
}
.js .strata.is-in {
  opacity: var(--strata-op, 1);
  transform: none;
}
.strata__img {
  position: absolute; left: 50%; bottom: 0;
  width: max(122%, 88rem);
  transform: translate3d(-50%, var(--py, 0px), 0);
  will-change: transform;
}

.scroll-cue {
  position: absolute; z-index: 4;
  left: 50%; bottom: clamp(2.4rem, 8vh, 4.8rem);
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  text-decoration: none;
  color: var(--bone-3);
  font-family: var(--sans); font-weight: 400; font-size: 10px;
  letter-spacing: var(--track-label); text-transform: uppercase;
  opacity: var(--strata-op, 1);
}
.js .scroll-cue {
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 1.1s var(--ease) .5s, transform 1.2s var(--ease) .5s;
}
.js .strata.is-in ~ .scroll-cue {
  opacity: var(--strata-op, 1);
  transform: translateX(-50%);
}
.scroll-cue i {
  display: block; width: 1px; height: 2.2rem;
  background: currentColor;
  transform-origin: top center;
  animation: cue-draw 2.6s var(--ease) 1.4s infinite;
}
@keyframes cue-draw {
  0%, 100% { transform: scaleY(.4); opacity: .35; }
  50% { transform: scaleY(1); opacity: 1; }
}

.layer--split {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(2.4rem, 6vw, 6.5rem);
  align-items: start;
}

/* --- editorial cards ---------------------------------------------- */

.card { margin: 0; }

.card__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0e0e10;
  border: 1px solid var(--line);
  overflow: hidden;
  /* shadow tinted to the page ground, plus a hairline lift along the top edge */
  box-shadow:
    0 32px 64px -34px rgba(6,6,7,.95),
    inset 0 1px 0 rgba(237,230,218,.07);
}


.still { display: block; width: 100%; height: 100%; object-fit: cover; }

.card__player {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #0e0e10;
}
.card[data-live] .still { visibility: hidden; }

/* the play control sits in the middle of the picture, not the caption */
.play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: clamp(46px, 4.4vw, 58px); aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(237,230,218,.42);
  background: rgba(11,11,12,.30);
  box-shadow: inset 0 1px 0 rgba(237,230,218,.12);
  color: var(--bone);
  display: grid; place-items: center;
  cursor: pointer; padding: 0;
  transition: background .45s var(--ease), border-color .45s var(--ease),
              transform .45s var(--ease), opacity .4s var(--ease);
}
.play svg { width: 32%; height: 32%; fill: currentColor; margin-left: 7%; }
.play:hover {
  background: rgba(200,73,44,.88);
  border-color: var(--verm-lit);
  transform: translate(-50%, -50%) scale(1.06);
}
/* a real press, not just a colour change */
.play:active { transform: translate(-50%, -50%) scale(.95); transition-duration: .09s; }
.play[data-playing] { opacity: .28; }
.card__frame:hover .play[data-playing],
.play[data-playing]:focus-visible { opacity: 1; }
.play[hidden] { display: none; }

.card__cap {
  margin-top: .85rem;
  font-size: .88rem; line-height: 1.5; color: var(--bone-2);
  max-width: 44ch;
}
.card__id {
  display: block; margin-bottom: .4rem;
  font-family: var(--sans); font-weight: 500; font-size: 9.5px;
  letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--verm-lit);
}

.cards {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: start;
}

/* --- cutouts ------------------------------------------------------- */

.cutout {
  position: absolute; z-index: 3; pointer-events: none;
  opacity: calc(var(--op, 1) * var(--cut-op, .15));
  filter: blur(var(--cut-blur, .4px)) brightness(1.22) contrast(1.08) saturate(1.1);
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotate(var(--rot, 0deg));
  will-change: transform, opacity;
}
.cutout--beans   { --cut-op: .15; --cut-blur: .5px;  --rot: -4deg; right: -2%; bottom: 10%; width: min(52vw, 42rem); }
.cutout--trio    { --cut-op: .15; --cut-blur: .35px; --rot: 8deg;  left: -3%;  bottom: -2%; width: min(22vw, 17rem); }
.cutout--cherries{ --cut-op: .15; --cut-blur: .6px;  --rot: -6deg; right: -4%; top: 8%;     width: min(22vw, 17rem); }
.cutout--grounds { --cut-op: .15; --cut-blur: .45px; --rot: 2deg;  left: -5%;  bottom: -3%; width: min(64vw, 54rem); }
.cutout--solo    { --cut-op: .15; --cut-blur: .25px; --rot: 12deg; right: -1%; top: 6%;     width: min(13vw, 10rem); }

/* --- manifesto ----------------------------------------------------- */

.manifesto {
  position: relative; z-index: 10;
  background: transparent;
  padding: var(--pin-pad) var(--gutter);
}
.manifesto__inner {
  max-width: 86rem; margin-inline: auto;
}

.rules {
  list-style: none; margin: clamp(2.6rem, 5vw, 4.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.6rem, 3vw, 3rem);
}
.rules li { border-top: var(--rule); padding-top: 1.1rem; }
.rules b {
  display: block; font-family: var(--sans); font-weight: 500; font-size: 10px;
  letter-spacing: .2em; color: var(--verm); font-weight: 400;
  margin-bottom: .7rem;
}
.rules p { margin: 0; font-size: .97rem; line-height: 1.6; color: var(--bone-2); }

.manifesto__foot {
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: var(--rule);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr);
  gap: clamp(1.8rem, 5vw, 5rem);
  align-items: start;
}
.manifesto__foot .colophon { margin-top: 0; }
.colophon__note {
  margin: 0; font-size: .9rem; line-height: 1.62; color: var(--bone-3);
  max-width: 38ch;
}
.credit {
  margin: clamp(2.2rem, 4.5vw, 3.6rem) 0 0;
  padding-top: clamp(1.2rem, 2.4vw, 1.8rem);
  border-top: var(--rule);
  font-size: .88rem; line-height: 1.5; color: var(--bone-4);
}

.noscript {
  position: relative; z-index: 20;
  padding: 1rem var(--gutter);
  font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: var(--track-label);
  color: var(--bone-3);
}

/* --- reveals -------------------------------------------------------- */

.w { display: inline-block; overflow: hidden; vertical-align: top; }
.w > i {
  display: inline-block; font-style: normal;
  transform: translateY(105%) rotate(2.2deg);
  opacity: 0;
  transition: transform .95s var(--ease), opacity .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 42ms);
}
.is-in .w > i, .is-in.w > i { transform: none; opacity: 1; }

.js .hero__name:not(:has(.w)) { visibility: hidden; }

/* title card: each letter rises out of the heap, left to right */
.hero__name .w > i {
  transform: translateY(108%);
  transition: transform 1.28s var(--ease), opacity 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 72ms + 160ms);
}
.hero__name.is-in .w > i { transform: none; opacity: 1; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.15s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 80ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.chapter.is-reading [data-reveal] { opacity: 1; transform: none; }
.chapter.is-reading [data-split] .w > i { transform: none; opacity: 1; }

.chapter [data-split] .w > i {
  transition: transform 1.2s var(--ease), opacity 1.05s var(--ease);
  transition-delay: calc(var(--i, 0) * 58ms + 50ms);
}

/* --- cursor --------------------------------------------------------- */


/* --- responsive ------------------------------------------------------ */

@media (min-width: 1081px) {
  .layer--split { padding-right: clamp(1.5rem, 3.5vw, 3.5rem); }
  /* the house rules step down the page rather than sitting in a straight row */
  .rules li:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3.2rem); }
}

@media (max-width: 1080px) {
  .layer--split { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }
}

@media (max-width: 820px) {
  .chapter, .chapter--hero { min-height: 200svh; }

  .layer { display: flex; flex-direction: column; align-items: stretch; }
  .layer--split { display: flex; align-items: stretch; }

  /* pinned chapters have one viewport to say everything in */
  .display { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .display--lg { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .display--xl { font-size: clamp(2.3rem, 10.4vw, 3.4rem); }
  .tag { margin-bottom: .9rem; }
  .lead { font-size: 1rem; margin-top: 1rem; max-width: none; }
  .body { font-size: .95rem; margin-top: .9rem; max-width: none; }
  .specs,
  .readout,
  .pull { margin-top: 1.2rem; }
  .specs { gap: .5rem; }
  .readout { padding-top: .8rem; }
  .scroll-cue { bottom: clamp(1.6rem, 6vh, 3rem); }
  .cards { gap: 1rem; }
  .card__frame { aspect-ratio: auto; height: 21vh; }
  .card__cap { margin-top: .55rem; font-size: .8rem; line-height: 1.4; }
  .play { width: 46px; }

  .strata { height: clamp(10rem, 30vh, 17rem); }

  .chapter--hero .chapter__pin {
    /* the title layer has to fill the pin before it can centre inside it */
    align-items: stretch;
    padding-top: 3.4rem;
    padding-bottom: 0;
  }
  .layer--title {
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: clamp(8rem, 26vh, 14rem);
  }
  .hero__name {
    font-size: 18vw;
    line-height: .88;
    letter-spacing: -.05em;
    padding-inline: 4vw;
    box-sizing: border-box;
  }
}

@media (max-width: 520px) {
  .chapter__pin { padding-inline: 1.25rem; }
  .chapter--hero .chapter__pin { padding-inline: 0; }
  .card__cap { font-size: .84rem; }
}

/* --- reduced motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter, .chapter--hero { min-height: auto; }
  .chapter__pin {
    position: static; min-height: auto; height: auto;
    padding-block: var(--pin-pad);
  }
  .layer { opacity: 1 !important; filter: none !important; transform: none !important; }
  .cutout { transform: rotate(var(--rot, 0deg)) !important; opacity: var(--cut-op, .15) !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .w > i { transform: none; opacity: 1; transition: none; }
  .js .strata, .strata { opacity: 1; transform: none; }
  .js .hero__line { opacity: 1; transform: none; }
  .js .scroll-cue, .scroll-cue { opacity: 1; transform: translateX(-50%); }
  .strata__img { transform: translateX(-50%); }
  .scroll-cue i { animation: none; opacity: .7; transform: none; }
  #stage, .film-ready #stage { opacity: .5; }
  * { transition-duration: .01ms !important; }
}
  