/* Sean Fry, portfolio. Phone first, black and off-white.
   Direction: the name as a monument (tasteskill), Anton / Work Sans. */

@font-face {
  font-family: "Anton";
  src: url("../fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/worksans-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --black: #0b0b0a;
  --black-2: #161614;
  --paper: #eeede9;
  --paper-2: #e1e0db;
  --soft-on-black: #a39f96;
  --soft-on-paper: #5a574f;

  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-text: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --margin: clamp(1rem, 1.7vw, 1.5rem);
  --gap: 8px;
  --section: clamp(3.5rem, 7.5vw, 7rem);
  --bar: 3.5rem;
  --tap: 2.75rem;

  /* measured in the browser: "SEAN FRY" in Anton is 3.317em wide, "SEAN" 1.809em, caps 0.867em tall */
  --name-em: 3.317;
  --name-em-short: 1.809;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

.field-black { --bg: var(--black); --ink: var(--paper); --soft: var(--soft-on-black); --tone: var(--black-2); }
.field-black-2 { --bg: var(--black-2); --ink: var(--paper); --soft: var(--soft-on-black); --tone: #22221f; }
.field-paper { --bg: var(--paper); --ink: var(--black); --soft: var(--soft-on-paper); --tone: var(--paper-2); }
.field-black, .field-black-2, .field-paper { background: var(--bg); color: var(--ink); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--black);
  color-scheme: dark;
}
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd, table { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; touch-action: manipulation; }
:target { scroll-margin-top: var(--bar); }
::selection { background: var(--paper); color: var(--black); }
.field-paper ::selection { background: var(--black); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
[data-d="1"] { --d: 1; } [data-d="2"] { --d: 2; } [data-d="3"] { --d: 3; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.soft { color: var(--soft); }
.nums { font-variant-numeric: tabular-nums; }

.skip {
  position: fixed; left: var(--margin); top: 0.5rem; z-index: 60;
  padding: 0.6rem 1rem; background: var(--paper); color: var(--black);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* headings shared by sections */
.title {
  font-family: var(--font-display);
  font-size: var(--step-head);
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

/* placeholder marker: visible on purpose until Nahum confirms */
.tbc {
  display: inline-block;
  margin-left: 0.35em;
  padding: 0.1em 0.45em 0.15em;
  font-family: var(--font-text);
  font-size: var(--step-small);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
  background: var(--ink);
  color: var(--bg);
}

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.4rem;
  background: var(--ink); color: var(--bg);
  font-size: var(--step-body); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.link {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
.plain { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--soft); color: var(--bg); }
  .link:hover { text-decoration-color: currentColor; }
  .plain:hover { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.22em; }
}

/* ---------- hero: his photographs, whole and changing, standing on the name ---------- */
.hero {
  --name-size: calc((100vw - 2 * var(--margin)) / var(--name-em));
  position: relative;
  isolation: isolate;
  height: 100svh;
  min-height: 36rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: clip;
}
/* one column: the words placed over the picture's row must not open a second one */
.hero > * { grid-column: 1; min-width: 0; }
.hero__top { grid-row: 1; position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hero__nav {
  display: flex; align-items: center; gap: 1.4rem;
  min-height: var(--tap);
  padding: 0.35rem var(--margin) 0.45rem;
  font-size: var(--step-small);
}
.hero__nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
.hero__links { display: none; gap: 1.4rem; }
.menu-btn { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--step-body); }
.hero__caption {
  display: flex; align-items: center; gap: 0.75rem;
  max-width: 62%;
  min-height: calc(var(--tap) + 0.8rem);
  padding: 0.35rem var(--margin) 0.45rem 1rem;
  font-size: var(--step-small); line-height: 1.3; text-align: right;
}
.hero__caption-text { transition: opacity 300ms ease; }
.hero__caption.is-swap .hero__caption-text { opacity: 0; }
.hero__caption-meta { color: var(--soft-on-black); }
.hero__caption svg { flex: none; width: 1.1rem; height: 1.1rem; transition: transform 300ms var(--ease-out); }

/* never cropped: the picture sits whole in its space and stands on the name */
.hero__media { grid-row: 2; position: relative; margin: 0 var(--margin); }
.hero__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  opacity: 0;
  transition: opacity 1100ms var(--ease-soft);
}
/* its one treatment: a lower opacity on the black, so the name reads where it crosses the picture */
.hero__media img.is-on { opacity: 0.62; }

.hero__name {
  grid-row: 3;
  position: relative; z-index: 1;
  /* the top padding holds the tall glyph box of the capitals; the margin lifts the name onto the picture */
  margin-top: -0.8em;
  padding: 0.3em var(--margin) 0;
  font-family: var(--font-display);
  font-size: var(--name-size);
  line-height: 0.9;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  white-space: nowrap;
  transform-origin: 50% 100%;
}
.hero__name .line { display: inline-block; overflow: hidden; padding-top: 0.06em; margin-top: -0.06em; }
.hero__band {
  grid-row: 4;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem;
  padding: 0.9rem var(--margin) calc(1.25rem + env(safe-area-inset-bottom));
}
.hero__lead { max-width: 38ch; font-size: var(--step-lead); font-weight: 500; line-height: 1.35; }
@media (min-width: 40em) {
  .hero__band { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-top: 1.25rem; padding-bottom: 1.5rem; }
  .hero__lead { max-width: 46ch; }
}
/* from a laptop up: the picture centred, the name across its foot, the words either side of it */
@media (min-width: 60em) {
  .hero { --name-size: min(calc((100vw - 2 * var(--margin)) / var(--name-em)), 30svh); grid-template-rows: auto minmax(0, 1fr) auto; }
  .hero__name { text-align: center; padding-bottom: 1.25rem; }
  .hero__band { grid-row: 2; align-self: end; margin-bottom: calc(var(--name-size) * 0.55 + 1rem); padding: 0 var(--margin); }
  /* the words stay beside the picture: the space left of the widest (square) one */
  .hero__lead { max-width: min(16em, calc((100vw - 2 * var(--margin) - (100svh - 3.6rem - 0.4 * var(--name-size))) / 2 - 1.5rem)); font-size: var(--step-body); }
  .hero__links { display: flex; }
  .hero__nav .menu-btn { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .hero__caption:hover svg { transform: translateX(3px); }
}

/* ---------- running bar (after the hero): menu on the left, name on the right ---------- */
.bar { display: none; }
.js .bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--bar);
  padding: 0 var(--margin);
  background: var(--black); color: var(--paper);
  font-size: var(--step-small);
  transform: translateY(-101%);
  transition: transform var(--t-ui) var(--ease-out);
}
.js .bar.is-on { transform: none; }
.bar__name { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1; text-transform: uppercase; text-decoration: none; }
.bar__links { display: none; gap: 1.4rem; align-items: center; }
.bar__links a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (min-width: 60em) {
  .bar__links { display: flex; }
  .bar .menu-btn { display: none; }
}

/* ---------- galleries: one strong cover each, the whole picture at its own shape ---------- */
.works { padding: var(--section) var(--margin); }
.works__head { display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.works__title { font-size: clamp(3.25rem, 1rem + 10vw, 8.5rem); line-height: 0.86; }
.works__head p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; }
@media (min-width: 60em) {
  .works__head { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); align-items: end; column-gap: 2rem; margin-bottom: 2.5rem; }
}

/* covers in a row share one height and keep their shapes: each grows by its own width-to-height ratio */
.covers { --row-gap: 2rem; display: flex; flex-wrap: wrap; align-items: flex-start; column-gap: 0.75rem; margin-bottom: calc(var(--row-gap) * -1); }
.cover { flex: calc(var(--r, 1) * 1000) 1 0%; min-width: 0; margin-bottom: var(--row-gap); }
.covers__break { display: none; flex: 0 0 100%; height: 0; }
.covers__break--p { display: block; }
@media (min-width: 48em) {
  .covers { --row-gap: 2.75rem; column-gap: 1rem; }
  .covers__break--p { display: none; }
  .covers__break--d { display: block; }
}
.cover__btn { display: grid; gap: 0.8rem; width: 100%; text-align: left; cursor: zoom-in; }
.cover__img { width: 100%; height: auto; background: var(--tone); transition: opacity 450ms var(--ease-soft); }
.cover__text { display: grid; gap: 0.15rem; }
.cover__title { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; }
.cover__meta { font-size: var(--step-body); line-height: 1.35; color: var(--soft); }
.cover__btn:active .cover__img { opacity: 0.82; }
@media (hover: hover) and (pointer: fine) {
  /* the cover you point at stays; the others step back */
  .covers:has(.cover__btn:hover) .cover__btn:not(:hover) .cover__img { opacity: 0.4; }
}

/* ---------- film and video: a title card for each film, set with what Sean did on it ---------- */
.films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 60em) { .films { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.film__card {
  --ink: var(--paper); --bg: var(--black); --soft: var(--soft-on-black);
  display: grid; grid-template-rows: 1fr auto; gap: 1.25rem;
  aspect-ratio: 1 / 1;
  padding: 0.8rem 0.8rem 0.9rem;
  background: var(--bg); color: var(--ink);
  text-decoration: none;
  container-type: inline-size;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease;
}
/* from a tablet up each card takes the shape of a film frame */
@media (min-width: 48em) { .film__card { aspect-ratio: 16 / 9; } }
.film__role { font-family: var(--font-display); font-size: 14cqi; line-height: 0.92; text-transform: uppercase; text-wrap: balance; }
/* the play mark says it is a film; the link opens it on Instagram */
.film__title { display: flex; align-items: baseline; gap: 0.5rem; font-size: var(--step-body); font-weight: 500; line-height: 1.25; }
.film__title svg { flex: none; align-self: center; width: 0.75em; height: 0.75em; }
.tbc--solo { margin-left: 0; }
@media (hover: hover) and (pointer: fine) {
  /* a pointer turns the card to its negative */
  .film__card:hover { --ink: var(--black); --bg: var(--paper-2); --soft: var(--soft-on-paper); }
}

/* ---------- about: portrait beside his own words ---------- */
.about {
  display: grid; gap: 1.75rem;
  grid-template-areas: "head" "portrait" "text" "facts";
  padding: var(--section) var(--margin);
}
.about__head { grid-area: head; }
.about__portrait { grid-area: portrait; margin: 0; }
.about__portrait img { width: 100%; aspect-ratio: 1284 / 1434; object-fit: cover; background: var(--tone); }
.about__text { grid-area: text; display: grid; gap: 0.85em; max-width: 32em; font-size: var(--step-lead); line-height: 1.38; }
.facts { grid-area: facts; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; font-size: var(--step-body); line-height: 1.35; }
.facts dt { color: var(--soft); }
.facts dd { margin: 0.2rem 0 0; }
@media (min-width: 60em) {
  .about {
    grid-template-columns: 34% minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "portrait head" "portrait text" "portrait facts";
    column-gap: 0; row-gap: 2rem;
  }
  .about__portrait { padding-right: 3rem; }
  .facts { align-self: end; grid-template-columns: repeat(3, minmax(0, 14rem)); column-gap: 2rem; }
}

/* ---------- contact: display rows, a label column and the address set large ---------- */
.contact { padding: 0; }
.contact__row {
  display: grid; align-content: end; gap: 0.3rem;
  min-height: 5.5rem;
  padding: 1rem var(--margin) 0.9rem;
}
.contact__row:nth-child(even) { background: var(--tone); }
.contact__row h2 { font-family: var(--font-display); font-size: var(--step-head); line-height: 0.95; text-transform: uppercase; letter-spacing: 0; }
.contact__label { font-size: var(--step-lead); line-height: 1.3; color: var(--soft); }
.contact__value { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.015em; }
.contact__row a { text-decoration: none; overflow-wrap: break-word; }
@media (hover: hover) and (pointer: fine) {
  .contact__row a:hover { text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.12em; }
}
@media (min-width: 60em) {
  .contact__row { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: 1.5rem; align-items: baseline; min-height: 9.5rem; padding-bottom: 1.4rem; }
  .contact__row h2 { grid-column: 1 / -1; }
}

/* ---------- the end: the names he has worked with, each lighting up with what he did ---------- */
.footer {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: var(--section) var(--margin) 0;
  overflow: clip; /* clip, not hidden: hidden would make the footer a scroller, and the name's scroll timeline would never move */
}
.credits { position: relative; isolation: isolate; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.credits__backdrop { position: absolute; z-index: -1; inset: calc(var(--section) * -1) 0 0; pointer-events: none; }
/* his picture for that name, whole, at low opacity behind the words */
.credits__backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 900ms var(--ease-soft); }
.credits__backdrop img.is-on { opacity: 0.3; }
/* Anton's glyph box is about 1.5em tall: from a line-height of 1.04 one row of names no longer reaches into the next */
.credits__wall { font-family: var(--font-display); font-size: clamp(2.25rem, 0.75rem + 6.5vw, 7.5rem); line-height: 1.08; letter-spacing: -0.005em; text-transform: uppercase; }
.credits__wall li { display: inline-block; white-space: nowrap; } /* a name keeps its slash: no line starts with one */
.credit { display: inline-block; text-decoration: none; text-transform: uppercase; transition: color 320ms ease; }
.js .credit, .js .credit__sep { color: rgb(238 237 233 / 0.32); }
.js .credit.is-lit { color: var(--paper); }
.credits__now { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; min-height: 2.6em; font-size: var(--step-lead); line-height: 1.3; }
.credits__name { font-weight: 600; }
.credits__now .tbc { margin-left: 0.45em; }
.credits__go { font-size: var(--step-body); }

.footer__bottom { display: grid; gap: 0.25rem 2rem; padding-bottom: 0.75rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; font-size: var(--step-body); }
.footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; font-size: var(--step-small); color: var(--soft); }
.footer__legal a { display: inline-flex; align-items: center; min-height: var(--tap); }
/* his name to close: whole (never cut, Nahum 3 Dec), margin to margin, the box trimmed to the capitals */
.footer__name {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 var(--margin);
  font-family: var(--font-display);
  font-size: min(calc((100vw - 2 * var(--margin)) / var(--name-em)), 48svh);
  line-height: 0.8;
  letter-spacing: -0.012em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  text-box: trim-both cap alphabetic;
  transform-origin: 50% 100%;
}
@media (min-width: 60em) {
  .footer__bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

/* ---------- menu: opens from the left, where the button is ---------- */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--black);
  --ink: var(--black); --bg: var(--paper); --soft: var(--soft-on-paper);
}
.menu::backdrop { background: var(--black); }
.menu__inner { display: grid; grid-template-rows: auto 1fr auto; min-height: 100%; padding: 0 var(--margin) calc(1rem + env(safe-area-inset-bottom)); }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--bar); }
.menu__top span { font-family: var(--font-display); font-size: var(--step-lead); text-transform: uppercase; }
.menu__list { align-self: center; display: grid; gap: 0.35rem; }
.menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: min(15vw, 7rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-decoration: none;
}
.menu__foot { display: grid; gap: 0.25rem; font-size: var(--step-body); }
.menu__foot a { display: inline-flex; align-items: center; min-height: var(--tap); }
.close-btn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 0.25rem 0 0; font-size: var(--step-body); }

/* ---------- viewer: the picture in front, its name set huge behind it ---------- */
.viewer {
  width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--black); color: var(--paper);
  --ink: var(--paper); --bg: var(--black); --soft: var(--soft-on-black);
  overscroll-behavior: contain;
}
.viewer::backdrop { background: var(--black); }
.viewer__inner { position: relative; isolation: isolate; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; overflow: hidden; }
.viewer__word {
  position: absolute; left: 0; z-index: -1;
  top: calc(var(--bar) + 0.25rem);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(6rem, 31vw, 27rem);
  line-height: 0.86;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgb(238 237 233 / 0.13);
  pointer-events: none;
  translate: calc(var(--shift, 0) * -7vw) 0;
  transition: opacity 180ms ease;
}
.viewer__word.is-swap { opacity: 0; }
.viewer__run { display: inline-block; }
.viewer__run > span { display: inline-block; padding-right: 0.28em; }
@media (min-width: 48em) {
  .viewer__word { top: 50%; margin-top: -0.43em; }
}
.viewer__top, .viewer__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--bar); padding: 0 var(--margin);
  font-size: var(--step-small);
}
.viewer__foot { padding-bottom: env(safe-area-inset-bottom); min-height: 5rem; }
.viewer__track {
  display: flex; min-height: 0; margin: 0; padding: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  list-style: none;
}
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track:focus { outline: none; }
.slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0.5rem var(--margin); }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.viewer__caption { min-width: 0; font-size: var(--step-body); line-height: 1.35; }
.viewer__caption strong { font-weight: 600; }
.viewer__caption .soft { color: var(--soft); }
.viewer__caption .tbc { margin-left: 0.4em; }
.viewer__count { font-size: var(--step-body); }
.viewer__nav { display: none; gap: 0.5rem; }
.viewer__nav button {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--black-2);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.viewer__nav button:active { transform: scale(0.94); }
.viewer__nav svg { width: 1.25rem; height: 1.25rem; }
.viewer__nav button[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .viewer__nav { display: flex; }
  .viewer__nav button:not([disabled]):hover { background: #2a2a27; }
}

/* ---------- motion (content is visible without script and with reduced motion; pictures only ever fade) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__name .line > span { animation: line-rise 900ms var(--ease-expo) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .js .hero__band > * { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 300ms); }

  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js .cover[data-reveal] { transform: none; }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .menu[open] .menu__list a { animation: rise 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 60ms); }
  .viewer[open] .viewer__inner { animation: open-in 320ms var(--ease-out) both; }
  .viewer[open] .viewer__run { animation: drift 46s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img, .cover__img, .hero__caption-text, .viewer__word, .credit, .credits__backdrop img, .film__card { transition: none; }
}
@keyframes line-rise { from { transform: translateY(102%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes open-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift { to { transform: translateX(-25%); } }

/* signature: the name steps back as the page moves on, and comes forward again at the end */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero { view-timeline-name: --hero; }
    .hero__name { animation: name-recede linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    /* at the end the name comes forward and its letters switch on one by one, S to Y, under the scroll */
    .footer__name { view-timeline: --sign block; animation: name-arrive linear both; animation-timeline: --sign; animation-range: entry 0% entry 100%; }
    .footer__name span { animation: light-on linear both; animation-timeline: --sign; animation-range: entry calc(8% + var(--i) * 11%) entry calc(14% + var(--i) * 11%); }
  }
}
@keyframes name-recede { from { scale: 1; } to { scale: 0.94; } }
@keyframes name-arrive { from { scale: 0.94; } to { scale: 1; } }
@keyframes light-on { from { opacity: 0.1; } to { opacity: 1; } }
