/*
Theme Name: D'Alessio.me
Theme URI: https://dalessio.me/
Author: Richard D'Alessio / Ryde Studios
Description: Director-first portfolio for Richard D'Alessio, built around Vimeo and hybrid filmmaking work.
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dalessio-me
*/

:root {
  --ink: #090909;
  --ink-soft: #111111;
  --paper: #f3f0e8;
  --paper-dim: #b8b3a9;
  --line: rgba(243, 240, 232, 0.18);
  --line-dark: rgba(9, 9, 9, 0.2);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --page-pad: clamp(18px, 2.4vw, 42px);
  --section-gap: clamp(96px, 13vw, 220px);
  --header-h: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
button, a { color: inherit; }
a { text-decoration: none; }
button { font: inherit; }
img, iframe { display: block; max-width: 100%; }
::selection { background: var(--paper); color: var(--ink); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}
.skip-link:focus { top: 16px; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 28px);
  width: 100%;
  padding-inline: var(--page-pad);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  min-height: var(--header-h);
  padding: 20px var(--page-pad);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: #fff;
  transition: transform 500ms var(--ease);
}
.site-header.is-hidden { transform: translateY(-110%); }
.wordmark {
  display: inline-grid;
  line-height: 0.86;
  font-weight: 700;
  font-size: clamp(13px, 1.15vw, 18px);
  letter-spacing: -0.04em;
}
.site-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 44px);
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.site-nav a { position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right 350ms var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }


/* Server-rendered project route for crawlers and browsers without JavaScript. */
.project-route-fallback {
  min-height: 100svh;
  padding-top: var(--header-h);
  background: var(--paper);
  color: var(--ink);
}
.js .project-route-fallback { display: none; }
.project-route-media {
  width: 100%;
  max-height: 72svh;
  overflow: hidden;
  background: #151515;
}
.project-route-media img {
  width: 100%;
  height: min(72svh, 840px);
  object-fit: cover;
}
.project-route-copy {
  padding-block: clamp(42px, 7vw, 104px) clamp(80px, 12vw, 180px);
}
.project-route-back {
  grid-column: 1 / span 2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.project-route-heading { grid-column: 4 / span 7; }
.project-route-heading .eyebrow { color: rgba(9,9,9,.58); }
.project-route-heading h1 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 138px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.055em;
}
.project-route-copy dl { grid-column: 11 / span 2; margin: 0; }
.project-route-copy dt { margin-top: 16px; color: rgba(9,9,9,.55); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.project-route-copy dt:first-child { margin-top: 0; }
.project-route-copy dd { margin: 3px 0 0; font-size: 13px; }
.project-route-description { grid-column: 4 / span 6; margin: 48px 0 0; color: rgba(9,9,9,.65); font-size: 17px; }
.project-route-watch { grid-column: 4 / span 4; margin-top: 34px; }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #0d0d0d;
}
.hero-media, .hero-poster, .hero-media iframe, .hero-scrim { position: absolute; inset: 0; }
.hero-poster {
  background:
    radial-gradient(circle at 72% 25%, rgba(255,255,255,.13), transparent 32%),
    linear-gradient(125deg, #252525 0%, #0b0b0b 48%, #181818 100%);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}
.hero-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-media.is-ready iframe { opacity: 1; }
.hero-scrim {
  background:
    linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.04) 36%, rgba(0,0,0,.66) 100%),
    linear-gradient(90deg, rgba(0,0,0,.48) 0%, transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 12vh);
  padding-bottom: clamp(54px, 8vh, 96px);
  align-content: end;
}
.hero-kicker {
  grid-column: 1 / span 4;
  margin: 0 0 18px;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero h1 {
  grid-column: 1 / span 11;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.4vw, 142px);
  line-height: .88;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero-actions {
  grid-column: 1 / span 7;
  display: flex;
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(28px, 4.2vh, 52px);
}
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  width: fit-content;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.text-link span { transition: transform 320ms var(--ease); }
.text-link:hover span, .text-link:focus-visible span { transform: translate(3px, -3px); }
.hero-actions .text-link:first-child:hover span { transform: translateY(3px); }
.sound-toggle {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  bottom: clamp(54px, 8vh, 96px);
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  cursor: pointer;
}
.sound-bars { display: flex; height: 11px; gap: 2px; align-items: flex-end; }
.sound-bars i { display: block; width: 1px; height: 35%; background: currentColor; }
.sound-toggle.is-on .sound-bars i:nth-child(1) { animation: bar 800ms infinite alternate; }
.sound-toggle.is-on .sound-bars i:nth-child(2) { animation: bar 650ms 80ms infinite alternate; }
.sound-toggle.is-on .sound-bars i:nth-child(3) { animation: bar 900ms 150ms infinite alternate; }
.sound-toggle.is-on .sound-bars i:nth-child(4) { animation: bar 700ms 30ms infinite alternate; }
@keyframes bar { to { height: 100%; } }
.hero-index {
  position: absolute;
  z-index: 3;
  right: var(--page-pad);
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.section-pad { padding-block: var(--section-gap); }
.eyebrow {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--paper-dim);
}
.section-heading .eyebrow { grid-column: 1 / span 2; }
.section-heading h2 {
  grid-column: 4 / span 8;
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-size: clamp(42px, 5.8vw, 104px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}
.filter-bar {
  margin-top: clamp(64px, 9vw, 140px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
}
.filter-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--paper-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  cursor: pointer;
  transition: color 250ms ease, opacity 250ms ease;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.filter-count {
  font-size: 9px;
  letter-spacing: .04em;
  opacity: .58;
}
.filter-button.is-empty { opacity: .42; }
.filter-button[hidden], .film-section[hidden], .site-nav a[hidden] { display: none !important; }
.filter-button:hover, .filter-button:focus-visible, .filter-button.is-active { color: var(--paper); opacity: 1; }
.filter-button.is-active::before { content: "●"; font-size: 6px; margin-right: 1px; vertical-align: 2px; }

.project-grid {
  margin-top: clamp(36px, 5vw, 80px);
  align-items: start;
  row-gap: clamp(56px, 8vw, 130px);
}
.project-card { position: relative; min-width: 0; }
.project-card:nth-child(6n + 1) { grid-column: 1 / span 8; }
.project-card:nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: 18vw; }
.project-card:nth-child(6n + 3) { grid-column: 1 / span 5; }
.project-card:nth-child(6n + 4) { grid-column: 6 / span 7; margin-top: 8vw; }
.project-card:nth-child(6n + 5) { grid-column: 1 / span 7; margin-top: 3vw; }
.project-card:nth-child(6n + 6) { grid-column: 9 / span 4; }
.project-trigger {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
}
.project-card[data-aspect="portrait"] .project-image { aspect-ratio: 4 / 5; }
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  filter: saturate(.78) contrast(1.02);
  transition: transform 900ms var(--ease), filter 600ms ease;
}
.project-trigger:hover img, .project-trigger:focus-visible img { transform: scale(1.035); filter: saturate(1); }
.project-play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(9,9,9,.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.32);
  font-size: 11px;
}
.project-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  margin-top: 13px;
}
.project-caption h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.project-caption p { margin: 3px 0 0; color: var(--paper-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.project-caption .project-year { margin: 0; font-size: 10px; color: var(--paper-dim); }
.empty-state { margin-top: 50px; color: var(--paper-dim); grid-column: 1 / -1; }

.film-section { background: var(--paper); color: var(--ink); }
.film-section .eyebrow { color: rgba(9,9,9,.55); }
.film-intro > div:first-child { grid-column: 1 / span 7; }
.film-intro h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6.7vw, 118px);
  line-height: .91;
  letter-spacing: -.052em;
}
.film-copy { grid-column: 9 / span 3; align-self: end; }
.film-copy p { margin: 0 0 32px; color: rgba(9,9,9,.7); font-size: clamp(16px, 1.35vw, 22px); line-height: 1.45; }
.film-projects { margin-top: clamp(80px, 11vw, 180px); }
.film-card { grid-column: span 6; border-top: 1px solid var(--line-dark); padding-top: 14px; }
.film-card .project-caption { border-color: var(--line-dark); }
.film-card .project-caption p, .film-card .project-year { color: rgba(9,9,9,.58); }
.film-card .project-play { color: var(--paper); }
.film-placeholder { grid-column: 1 / -1; padding: clamp(70px, 10vw, 150px) 0 0; border-top: 1px solid var(--line-dark); }
.film-placeholder p { max-width: 44ch; margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 56px); line-height: 1.05; letter-spacing: -.035em; }

.method-title .eyebrow { grid-column: 1 / span 3; }
.method-title h2 {
  grid-column: 5 / span 7;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 7.5vw, 132px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}
.method-grid { margin-top: clamp(92px, 12vw, 190px); }
.method-grid article {
  grid-column: span 3;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.method-number { font-size: 10px; color: var(--paper-dim); }
.method-grid h3 { margin: clamp(42px, 6vw, 86px) 0 18px; font-size: 17px; font-weight: 500; }
.method-grid p { margin: 0; max-width: 30ch; color: var(--paper-dim); font-size: 13px; line-height: 1.55; }

.about-section { border-top: 1px solid var(--line); }
.about-layout > .eyebrow { grid-column: 1 / span 2; }
.about-main { grid-column: 4 / span 8; }
.about-main h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 96px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.045em;
}
.about-lead { margin: clamp(44px, 6vw, 92px) 0 0; max-width: 47ch; color: var(--paper-dim); font-size: clamp(18px, 1.65vw, 28px); }
.about-facts { grid-column: 4 / span 8; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: clamp(80px, 10vw, 150px); }
.about-facts div { border-top: 1px solid var(--line); padding-top: 14px; }
.about-facts strong { display: block; font-family: var(--serif); font-size: clamp(42px, 4.7vw, 82px); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
.about-facts span { display: block; margin-top: 12px; color: var(--paper-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }

.ryde-section { background: #181818; border-block: 1px solid var(--line); }
.ryde-link { display: grid; grid-template-columns: 2fr 8fr 2fr; gap: 24px; align-items: center; padding: clamp(34px, 5vw, 80px) var(--page-pad); transition: background 400ms ease; }
.ryde-link:hover { background: #202020; }
.ryde-label, .ryde-copy { color: var(--paper-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.ryde-title { font-family: var(--serif); font-size: clamp(38px, 5vw, 88px); line-height: 1; letter-spacing: -.04em; }
.ryde-title span { display: inline-block; font-family: var(--sans); font-size: .35em; vertical-align: top; transform: translateY(.2em); transition: transform 350ms var(--ease); }
.ryde-link:hover .ryde-title span { transform: translate(.25em, -.05em); }

.contact-layout > .eyebrow { grid-column: 1 / span 2; }
.contact-layout h2 { grid-column: 4 / span 8; margin: 0; font-family: var(--serif); font-size: clamp(54px, 8.2vw, 148px); font-weight: 400; line-height: .87; letter-spacing: -.06em; max-width: 10ch; }
.contact-email { grid-column: 4 / span 8; margin-top: clamp(70px, 9vw, 130px); padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: clamp(24px, 3.2vw, 58px); letter-spacing: -.035em; display: flex; justify-content: space-between; align-items: baseline; }
.contact-email span { font-size: .5em; transition: transform 350ms var(--ease); }
.contact-email:hover span { transform: translate(5px, -5px); }
.contact-meta { grid-column: 4 / span 8; display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 22px; color: var(--paper-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.contact-meta a:hover { color: var(--paper); }
.site-footer { padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--paper-dim); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.site-footer span:first-child { grid-column: 1 / span 3; }
.site-footer span:nth-child(2) { grid-column: 4 / span 6; }
.site-footer span:last-child { grid-column: 12; justify-self: end; }

.project-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
}
.project-dialog::backdrop { background: rgba(0,0,0,.86); }
.project-dialog[open] { animation: dialog-in 500ms var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(15px); } }
.dialog-close {
  position: fixed;
  right: var(--page-pad);
  top: 24px;
  z-index: 3;
  border: 0;
  background: rgba(9,9,9,.72);
  backdrop-filter: blur(12px);
  padding: 10px 0 10px 16px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  cursor: pointer;
}
.dialog-close span { font-size: 18px; margin-left: 10px; vertical-align: -2px; }
.dialog-player { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.dialog-player iframe { width: 100%; height: 100%; border: 0; }
.dialog-details { padding-block: clamp(48px, 7vw, 100px) clamp(100px, 12vw, 180px); }
.dialog-details > div:first-child { grid-column: 1 / span 7; }
.dialog-details h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(46px, 7vw, 120px); font-weight: 400; line-height: .9; letter-spacing: -.055em; }
.dialog-details dl { grid-column: 9 / span 3; margin: 0; align-self: start; }
.dialog-details dt { margin-top: 18px; color: var(--paper-dim); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.dialog-details dt:first-child { margin-top: 0; }
.dialog-details dd { margin: 4px 0 0; font-size: 13px; }
.dialog-details > p { grid-column: 1 / span 6; margin: 48px 0 0; color: var(--paper-dim); font-size: 16px; }
.dialog-nav { grid-column: 9 / span 3; margin-top: 48px; display: flex; gap: 24px; }
.dialog-nav button { border: 0; border-bottom: 1px solid currentColor; background: none; padding: 0 0 4px; text-transform: uppercase; letter-spacing: .1em; font-size: 9px; cursor: pointer; }
.noscript { position: fixed; z-index: 1000; inset: auto 0 0; padding: 16px; background: var(--paper); color: var(--ink); text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .site-header { align-items: center; padding-top: 18px; }
  .menu-toggle {
    display: grid;
    gap: 5px;
    border: 0;
    background: none;
    padding: 8px 0 8px 12px;
    cursor: pointer;
  }
  .menu-toggle span { width: 24px; height: 1px; background: currentColor; transition: transform 300ms ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: 110px var(--page-pad) 44px;
    background: #0b0b0b;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 14px;
    font-family: var(--serif);
    font-size: clamp(38px, 10vw, 72px);
    line-height: .95;
    letter-spacing: -.04em;
    text-transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms ease, visibility 300ms ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav a::after { display: none; }
  .hero-content { padding-top: calc(var(--header-h) + 18vh); }
  .hero-kicker { grid-column: 1 / span 8; }
  .hero h1 { grid-column: 1 / -1; }
  .hero-actions { grid-column: 1 / -1; }
  .hero-index { display: none; }
  .section-heading h2, .method-title h2, .about-main, .about-facts, .contact-layout h2, .contact-email, .contact-meta { grid-column: 3 / span 10; }
  .film-intro > div:first-child { grid-column: 1 / span 8; }
  .film-copy { grid-column: 9 / span 4; }
  .method-grid article { grid-column: span 6; margin-bottom: 50px; }
  .about-facts { grid-template-columns: repeat(2, 1fr); }
  .ryde-link { grid-template-columns: 1fr; }
  .ryde-title { order: -1; }
  .project-route-back { grid-column: 1 / span 2; }
  .project-route-heading { grid-column: 3 / span 8; }
  .project-route-copy dl { grid-column: 11 / span 2; }
  .project-route-description, .project-route-watch { grid-column: 3 / span 8; }
  .dialog-details > div:first-child { grid-column: 1 / span 8; }
  .dialog-details dl, .dialog-nav { grid-column: 9 / span 4; }
}

@media (max-width: 640px) {
  :root { --page-pad: 17px; --section-gap: 88px; }
  .content-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .hero h1 { font-size: clamp(48px, 15.4vw, 78px); line-height: .91; }
  .hero h1 br { display: none; }
  .project-route-media img { height: 58svh; }
  .project-route-back { grid-column: 1 / -1; margin-bottom: 24px; }
  .project-route-heading, .project-route-copy dl, .project-route-description, .project-route-watch { grid-column: 1 / -1; }
  .project-route-copy dl { margin-top: 36px; }
  .hero-kicker { grid-column: 1 / -1; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sound-toggle { right: 17px; bottom: 28px; }
  .section-heading .eyebrow, .method-title .eyebrow, .about-layout > .eyebrow, .contact-layout > .eyebrow { grid-column: 1 / -1; margin-bottom: 26px; }
  .section-heading h2, .method-title h2, .about-main, .about-facts, .contact-layout h2, .contact-email, .contact-meta { grid-column: 1 / -1; }
  .section-heading h2 { font-size: 46px; }
  .filter-bar { padding-inline: 17px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; }
  .project-grid { display: block; }
  .project-card, .project-card:nth-child(n) { margin: 0 0 58px; }
  .project-caption { gap: 12px; }
  .film-intro > div:first-child, .film-copy { grid-column: 1 / -1; }
  .film-copy { margin-top: 44px; }
  .film-projects { display: block; }
  .film-card { margin-bottom: 50px; }
  .method-grid { display: block; }
  .method-grid article { margin: 0 0 54px; }
  .about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .about-facts strong { font-size: 45px; }
  .ryde-link { padding-block: 46px; }
  .contact-email { font-size: 23px; }
  .contact-meta { display: grid; }
  .site-footer span:first-child { grid-column: 1 / span 3; }
  .site-footer span:nth-child(2) { display: none; }
  .site-footer span:last-child { grid-column: 6; }
  .dialog-player { margin-top: 64px; }
  .dialog-details > div:first-child, .dialog-details dl, .dialog-details > p, .dialog-nav { grid-column: 1 / -1; }
  .dialog-details dl { margin-top: 36px; }
  .dialog-nav { margin-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-media iframe { display: none; }
  .reveal { opacity: 1; transform: none; }
}


/* WordPress integration */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
