@font-face {
  font-family: "Anybody";
  src: url("/fonts/anybody-var.woff2") format("woff2-variations"), url("/fonts/anybody-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}

/* Two riso inks and black on ice-grey paper, taken from Yuri's own portfolio, with night sections
   in between. Where orange and aqua overlap, multiply makes the overprint green. */
:root {
  --ice: #E3E6E4;
  --night: #141515;
  --paper: var(--ice);
  --orange: #FFA41B;
  --aqua: #29B2E6;
  --ink: #000;
  --ink-soft: #45453F;
  --hairline: #C4C9C6;

  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(88px, 12vw, 176px);

  /* Type scale: 14 16 18 21 24 36 48 72 */
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-21: 1.3125rem;
  --fs-24: 1.5rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-72: 4.5rem;

  color-scheme: light;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Anybody", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  font-size: var(--fs-18);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h2, h3, dl, dd, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  font-size: var(--fs-16);
}

.mark {
  margin-right: auto;
  font-weight: 900;
  font-stretch: 150%;
  font-size: var(--fs-21);
  line-height: 1;
  text-decoration: none;
}

.site-head nav { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.site-head nav a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  font-stretch: 112%;
  background: var(--paper);
  padding: 2px 0;
}
.site-head nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* The Portuguese and Spanish section names run longer, so their menu gives way sooner */
@media (max-width: 940px) {
  :root:not([lang="en"]) .site-head .sections { display: none; }
}

.site-head .langs { gap: 2px; }
.site-head .langs a { padding: 2px 6px; font-stretch: 100%; }
.site-head .langs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.site-head .langs a[aria-current="page"]:hover { text-decoration: none; }

/* ---------- Hero: the board comes apart as you scroll ---------- */

/* 400vh = three screens of scrolling to play the whole flip and take-apart */
.hero {
  position: relative;
  height: 400vh;
}

.hero-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  --p: 0;
}

/* The two lines drift apart as you scroll; main.js sizes the type to leave room for the drift,
   so neither line ever crosses the gutter */
.name {
  --drift: 4vw;
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.78;
  letter-spacing: 0;
  pointer-events: none;
}

.name > span {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  display: block;
  white-space: nowrap;
  text-align: center;
  font-size: 22vw;
  will-change: transform;
}
.name > span > span { display: inline-block; }

.name-yuri {
  top: var(--yuri-top, 12vh);
  z-index: 1;
  color: var(--orange);
  font-stretch: 150%;
  transform: translate3d(calc(var(--p) * -1 * var(--drift)), 0, 0);
}

.name-facchini {
  top: var(--facchini-top, 30vh);
  z-index: 3;
  color: var(--aqua);
  font-stretch: 62%;
  mix-blend-mode: multiply;
  transform: translate3d(calc(var(--p) * var(--drift)), 0, 0);
}

.board-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.board-ready .board-canvas { opacity: 1; }

.leaders {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.leaders line { stroke: var(--ink); stroke-width: 1.25; }
.leaders circle { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }

/* Without WebGL (or before it loads) the setup reads as a plain list. */
.setup {
  position: absolute;
  z-index: 4;
  right: var(--gutter);
  bottom: clamp(96px, 16vh, 160px);
  display: grid;
  gap: 10px;
  visibility: hidden;
}
.no-board .setup,
.board-ready .setup { visibility: visible; }
.setup li { background: var(--paper); padding: 4px 10px 6px; opacity: 0; }
.no-board .setup li { opacity: 1; }
.setup-part {
  display: block;
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.3;
}
.setup-brand {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--fs-24);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.05;
}
/* Logos sized by eye so wide wordmarks and tall badges read at a similar weight */
.setup-logo { display: block; width: auto; height: 1.5em; margin: 0.15em 0 0.1em; }
.setup-logo--deathwish { height: 1.15em; }
.setup-logo--shakejunt { height: 1.7em; }
.setup-logo--venture { height: 1.9em; }
.setup-logo--spitfire { height: 1.25em; margin: 0; }
.setup-logo--bones { height: 1.6em; }

.board-ready .setup { inset: 0; display: block; pointer-events: none; }
.board-ready .setup li {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0);
  transition: opacity 0.25s linear;
  white-space: nowrap;
}
.board-ready .setup li.is-on { opacity: 1; }

.hero-foot {
  position: absolute;
  z-index: 5;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.hero-intro {
  max-width: 30ch;
  font-size: var(--fs-21);
  line-height: 1.35;
  font-weight: 500;
  background: var(--paper);
  opacity: calc(1 - var(--p) * 9);
}
.hero-cue {
  font-size: var(--fs-16);
  font-weight: 600;
  font-stretch: 112%;
  background: var(--paper);
  opacity: calc(1 - var(--p) * 12);
}

/* ---------- Sections ---------- */

.section { padding: var(--section-y) var(--gutter); }

/* Night sections alternate with the ice ones. Swapping the ink and paper tokens here turns every
   component inside over without touching its own rules. */
.about,
.site-foot {
  --paper: var(--night);
  --ink: var(--ice);
  --ink-soft: #A3A9A6;
  --hairline: #2E3331;
  background: var(--paper);
  color: var(--ink);
}

.section h2 {
  font-size: clamp(2.5rem, 7vw, var(--fs-72));
  font-weight: 800;
  font-stretch: 130%;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { grid-column: 1 / span 7; }
.section-head p {
  grid-column: 8 / -1;
  max-width: 36ch;
  color: var(--ink-soft);
}

/* About */

.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.about-photos figcaption,
.clip-meta,
.figure-label {
  font-size: var(--fs-14);
  color: var(--ink-soft);
  line-height: 1.4;
}
.about-text { grid-column: 1 / span 6; }

/* Photo collage: two columns, the second dropped a beat lower. The film portraits keep their own
   colour next to the riso-printed Rio photo. */
.about-photos {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.about-photos-col { display: grid; gap: 16px; }
.about-photos-col + .about-photos-col { margin-top: clamp(48px, 7vw, 112px); }
.about-photos img { width: 100%; }
.about-photos figcaption { margin-top: 10px; }
.about-photos-note {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: var(--fs-16);
  color: var(--ink-soft);
}
.about-photos-note a { color: var(--ink); font-weight: 700; text-underline-offset: 4px; }
.about-text h2 { margin-bottom: 0.6em; }
.about-text p { max-width: 62ch; }
.about-text .lead {
  font-size: clamp(var(--fs-21), 2.2vw, var(--fs-36));
  line-height: 1.3;
  font-weight: 500;
  max-width: 34ch;
  margin-bottom: 1em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  margin-top: 48px;
  max-width: 720px;
}
.facts dt { font-size: var(--fs-14); color: var(--ink-soft); }
.facts dd { font-size: var(--fs-21); font-weight: 700; font-stretch: 110%; line-height: 1.25; }

/* Entrance motion for [data-reveal] pieces. main.js puts .reveal on <html> only when it is going to
   animate, so without JS, or with reduced motion, everything is simply there. */
.reveal [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* About: paragraphs rise further; the heading comes up word by word out of its own line; each fact
   slides in from the column edge as an orange ink bar draws beside it; photos are uncovered from the
   bottom like a print coming off the drum. --base carries the piece's stagger into its children. */
.reveal p[data-reveal] {
  transform: translate3d(0, 48px, 0);
  transition-duration: 0.9s;
}

.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word > span { display: inline-block; }
.reveal [data-reveal="words"] { opacity: 1; transform: none; }
.reveal [data-reveal="words"] .word > span {
  transform: translate3d(0, 110%, 0);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--base, 0ms) + var(--i) * 70ms);
}
.reveal [data-reveal="words"].is-in .word > span { transform: none; }

.facts > div { position: relative; padding-left: 16px; }
.facts > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--orange);
  transform-origin: top;
}
.reveal [data-reveal="slide"] { transform: translate3d(-40px, 0, 0); transition-duration: 0.8s; }
.reveal [data-reveal="slide"]::before {
  transform: scaleY(0);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--base, 0ms) + 0.25s);
}
.reveal [data-reveal="slide"].is-in::before { transform: none; }

/* The wipe sits on the image inside each photo: a fully clipped element counts as unseen to the
   IntersectionObserver, so the observed wrapper itself must stay unclipped */
.reveal [data-reveal="photo"] { opacity: 1; transform: none; }
.about-photo { overflow: hidden; }
.reveal [data-reveal="photo"] img {
  transform: scale(1.08);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1), transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--base, 0ms);
}
.reveal [data-reveal="photo"].is-in img { transform: none; clip-path: inset(0 0 0 0); }
.reveal [data-reveal="photo"] figcaption { opacity: 0; transition: opacity 0.6s ease-out; transition-delay: calc(var(--base, 0ms) + 0.6s); }
.reveal [data-reveal="photo"].is-in figcaption { opacity: 1; }

/* Video parts: a contact sheet of riso-printed stills */

.clips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px) 24px;
}
.clip a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  text-decoration: none;
}
.clip img {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 14px;
}
.clip--feature { grid-column: span 2; grid-row: span 2; }
.clip--feature img { aspect-ratio: auto; height: calc(100% - 92px); min-height: 280px; }
.clip-year {
  grid-row: 2 / span 2;
  font-size: var(--fs-36);
  font-weight: 900;
  font-stretch: 62%;
  line-height: 0.9;
}
.clip-title {
  font-size: var(--fs-21);
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.2;
}
.clip--feature .clip-year { font-size: var(--fs-72); }
.clip--feature .clip-title { font-size: var(--fs-36); font-stretch: 115%; line-height: 1.05; }
.clip a:hover .clip-title,
.clip a:focus-visible .clip-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Reach */

.figures {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: end;
  margin-bottom: clamp(64px, 8vw, 104px);
}
.figure-value {
  font-size: var(--fs-48);
  font-weight: 800;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}
.figure--hero .figure-value {
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 0.85;
  margin-bottom: 12px;
}
.figure-label { font-size: var(--fs-16); max-width: 28ch; }
.figure-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.chart { max-width: 1120px; }
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.chart-head h3 {
  font-size: var(--fs-24);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1.2;
}
.chart-head p { font-size: var(--fs-16); color: var(--ink-soft); }

.chart-toggle,
.btn {
  font: inherit;
  font-size: var(--fs-16);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.chart-toggle[aria-pressed="true"],
.btn { background: var(--ink); color: var(--paper); }
.chart-toggle:hover { background: var(--ink); color: var(--paper); }

.chart-plot {
  position: relative;
  --label-w: clamp(10rem, 24vw, 17rem);
}
.chart-axis {
  position: relative;
  height: 24px;
  margin-left: calc(var(--label-w) + 16px);
  margin-right: 56px;
  font-size: var(--fs-14);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.chart-axis span { position: absolute; left: var(--at); transform: translateX(-50%); }
.chart-axis span:first-child { transform: none; }
.chart-axis span:last-child { transform: translateX(-100%); }

.bars {
  position: relative;
  /* hairline gridlines at 0 / 25 / 50 / 75 / 100% of the track */
  --track-l: calc(var(--label-w) + 16px);
  background:
    linear-gradient(var(--hairline), var(--hairline)) calc(var(--track-l)) 0 / 1px 100% no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) calc(var(--track-l) + (100% - var(--track-l) - 56px) * 0.25) 0 / 1px 100% no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) calc(var(--track-l) + (100% - var(--track-l) - 56px) * 0.5) 0 / 1px 100% no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) calc(var(--track-l) + (100% - var(--track-l) - 56px) * 0.75) 0 / 1px 100% no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) calc(100% - 56px) 0 / 1px 100% no-repeat;
}
.bars a,
.bars .bar-row {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  column-gap: 16px;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}
.bar-name {
  font-size: var(--fs-16);
  line-height: 1.2;
  text-align: right;
  padding: 4px 0;
}
.bar-track { position: relative; height: 16px; margin-right: 56px; }
/* --grow (0–1) is set by main.js while the bars count up; without JS it stays at full width */
.bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(max(var(--w), 3px) * var(--grow, 1));
  background: var(--aqua);
  border-radius: 0 4px 4px 0;
}
.bar-value {
  position: absolute;
  top: 50%;
  left: calc(max(var(--w), 3px) * var(--grow, 1) + 8px);
  transform: translateY(-50%);
  font-size: var(--fs-14);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  visibility: hidden;
}
.bars li.is-labeled .bar-value,
.bars.show-all .bar-value { visibility: visible; }
.bars a:hover .bar, .bars a:focus-visible .bar { background: var(--ink); }
.bars a:hover .bar-name, .bars a:focus-visible .bar-name { text-decoration: underline; text-underline-offset: 3px; }

.chart-tip {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-14);
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  white-space: nowrap;
}
.chart-tip.is-on { opacity: 1; }
.chart-tip strong { font-weight: 800; }

/* Sponsors: an aqua flood with logos printed in black */

.sponsors { background: var(--aqua); }
.sponsors .section-head p { color: var(--ink); }

.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 88px) 24px;
}
.logo-wall a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
}
.logo {
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 0.9;
  font-weight: 900;
  white-space: nowrap;
  transition: text-shadow 0.15s ease;
}
/* Logos sized by eye so the wide Deathwish wordmark and the tall Venture and Spitfire badges carry a
   similar weight; the wall aligns them on their labels */
.logo-wall { align-items: end; --logo-h: clamp(64px, 8vw, 112px); }
.logo-img { display: block; width: auto; height: var(--logo-h); max-width: 100%; transition: filter 0.15s ease; }
.logo-img--deathwish { height: calc(var(--logo-h) * 0.62); }
.logo-img--dc { height: calc(var(--logo-h) * 0.85); }
.logo-img--shakejunt { height: calc(var(--logo-h) * 0.82); }
.logo-img--bones { height: calc(var(--logo-h) * 0.66); }
.logo-makes { font-size: var(--fs-16); font-weight: 600; }
.logo-wall a:hover .logo,
.logo-wall a:focus-visible .logo { text-shadow: 4px 3px 0 var(--orange); }
.logo-wall a:hover .logo-img,
.logo-wall a:focus-visible .logo-img { filter: drop-shadow(4px 3px 0 var(--orange)); }

.logo--deathwish { font-stretch: 58%; text-transform: uppercase; letter-spacing: 0.01em; }
.logo--dc { font-stretch: 125%; text-transform: uppercase; }
.logo--venture { font-stretch: 135%; font-weight: 800; text-transform: uppercase; }
.logo--spitfire { font-stretch: 75%; }
.logo--shakejunt { font-stretch: 68%; font-weight: 800; }

/* Contact: orange flood */

.contact {
  position: relative;
  background: var(--orange);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  overflow: hidden;
}
.contact-text { grid-column: 1 / span 9; position: relative; z-index: 1; }
.contact-text h2 { margin-bottom: 0.4em; }
.contact-text > p { max-width: 40ch; font-size: var(--fs-21); line-height: 1.4; }
.email {
  display: block;
  margin: 0.35em 0 0.4em;
  font-size: 9vw;
  font-weight: 800;
  font-stretch: 56%;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.email > span { display: inline-block; }
.email:hover > span { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.1em; }

.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--orange); }
.btn:hover { background: var(--paper); color: var(--ink); }
.copy-status { font-size: var(--fs-16); font-weight: 600; }

.contact-photo {
  grid-column: 10 / -1;
  width: 100%;
  max-width: 360px;
  justify-self: end;
  mix-blend-mode: multiply;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px 48px;
  flex-wrap: wrap;
  padding: 28px var(--gutter) 36px;
  font-size: var(--fs-14);
  color: var(--ink-soft);
}
.site-foot p:last-child { max-width: 72ch; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Floating "Get in touch": an orange ink chip with a printed offset shadow, hidden by js/fab.js
   at the top of the hero and while the contact section is on screen */

.fab {
  position: fixed;
  right: var(--gutter);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  padding: 14px 20px;
  border: 2px solid #000;
  background: var(--orange);
  color: #000;
  box-shadow: 4px 4px 0 #000;
  font-size: var(--fs-16);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.15s ease, visibility 0s;
}
.fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.fab:focus-visible { outline: 3px solid #000; outline-offset: 4px; }
.fab.is-off {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .figure--hero { grid-column: 1 / -1; }
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clip--feature { grid-column: 1 / -1; grid-row: auto; }
  .clip--feature img { height: auto; aspect-ratio: 16 / 9; }
  /* Side by side the collage gets too small, so the text comes first and the photos follow */
  .about { display: block; }
  .about-photos { max-width: 640px; margin-top: 64px; }
}

@media (max-width: 760px) {
  /* Phones get the type scale one step down: body copy 16px instead of 18px, display sizes smaller */
  :root {
    --fs-16: 0.9375rem;
    --fs-18: 1rem;
    --fs-21: 1.125rem;
    --fs-24: 1.25rem;
    --fs-36: 1.75rem;
    --fs-48: 2.25rem;
    --fs-72: 3rem;
  }
  .section h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .figure--hero .figure-value { font-size: clamp(3.25rem, 15vw, 4.5rem); }
  .logo-wall { --logo-h: 52px; }

  /* Video parts two to a row; the feature keeps the full width */
  .clips { gap: 28px 12px; }
  .clip:not(.clip--feature) a { grid-template-columns: minmax(0, 1fr); }
  .clip:not(.clip--feature) img { margin-bottom: 10px; }
  .clip:not(.clip--feature) .clip-year { grid-row: auto; font-size: var(--fs-21); line-height: 1; margin-bottom: 4px; }
  .clip:not(.clip--feature) .clip-title { font-size: var(--fs-16); line-height: 1.25; }
  .clip:not(.clip--feature) .clip-meta { font-size: 0.8125rem; }
  .fab { padding: 10px 14px; font-size: 0.8125rem; box-shadow: 3px 3px 0 #000; }

  .site-head .sections { display: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .about-photos, .about-photos-col { gap: 12px; }
  .about-photos { margin-top: 56px; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo { font-size: clamp(1.6rem, 7.4vw, 2.25rem); white-space: normal; }
  .contact { display: block; }
  .contact-photo { max-width: 220px; margin: 40px 0 0 auto; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-intro { font-size: var(--fs-18); }
  .setup li { padding: 3px 8px 4px; }
  .setup-part { font-size: 0.75rem; }
  .setup-brand { font-size: var(--fs-18); font-stretch: 112%; }
  .chart-head { flex-direction: column; align-items: flex-start; }

  .chart-axis { margin-left: 0; margin-right: 48px; }
  .bars { --track-l: 0px; }
  .bars a, .bars .bar-row { grid-template-columns: 1fr; padding: 4px 0; }
  .bar-name { text-align: left; padding: 0 0 4px; }
  .bar-track { margin-right: 48px; }
  .bars {
    background:
      linear-gradient(var(--hairline), var(--hairline)) 0 0 / 1px 100% no-repeat,
      linear-gradient(var(--hairline), var(--hairline)) calc((100% - 48px) * 0.25) 0 / 1px 100% no-repeat,
      linear-gradient(var(--hairline), var(--hairline)) calc((100% - 48px) * 0.5) 0 / 1px 100% no-repeat,
      linear-gradient(var(--hairline), var(--hairline)) calc((100% - 48px) * 0.75) 0 / 1px 100% no-repeat,
      linear-gradient(var(--hairline), var(--hairline)) calc(100% - 48px) 0 / 1px 100% no-repeat;
  }
}

@media (max-width: 520px) {
  .figures { grid-template-columns: minmax(0, 1fr); }
  .clip--feature .clip-year { font-size: var(--fs-48); }
  .clip--feature .clip-title { font-size: var(--fs-24); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-pin { position: relative; }
  .board-canvas, .board-ready .setup li { transition: none; }
  .name > span { transform: none; }
  .hero-intro { opacity: 1; }
  .hero-cue { display: none; }
  .reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
