/* ==========================================================================
   Yohan Baulac — portfolio
   Type 1 (titles, nav, names): DM Mono  ·  Type 2 (body, captions): Source Code Pro
   Green is functional only: hover, active page, render progress.
   ========================================================================== */

/* ---------- Self-hosted fonts ---------- */
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-code-pro-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/source-code-pro-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --ink: #141414;
  --muted: #6B6B6B;
  --rule: #E3E3E3;
  --placeholder: #EEEEEE;
  --accent: #1E6B47;

  /* Fonts are self-hosted in /assets/fonts (SIL Open Font License) */
  --f1: "DM Mono", ui-monospace, monospace;
  --f2: "Source Code Pro", ui-monospace, monospace;

  --track-caps: 0.02em;
  --track-big: -0.065em;
  --caps-stroke: 0.3px;   /* half-weight between Regular and Medium */

  --gutter: 24px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f2);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover, a:focus-visible, button:hover { color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

/* ---------- Type helpers ---------- */
.f1 { font-family: var(--f1); font-weight: 400; }
.caps { text-transform: uppercase; letter-spacing: var(--track-caps); }
.f1.caps, .caps .f1, .f1.caps * { -webkit-text-stroke: var(--caps-stroke) currentColor; }
.big { font-family: var(--f1); font-weight: 500; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.12; letter-spacing: var(--track-big); -webkit-text-stroke: 0; }
.display { font-family: var(--f1); font-weight: 500; font-size: clamp(40px, 6vw, 96px); line-height: 0.95; letter-spacing: var(--track-big); margin: 0; -webkit-text-stroke: 0; }
.display-s { font-family: var(--f1); font-weight: 500; font-size: clamp(28px, 4vw, 64px); line-height: 0.95; letter-spacing: var(--track-big); -webkit-text-stroke: 0; }
.body { font-size: 14px; line-height: 1.6; }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 28px;
  padding: 24px var(--gutter) 18px;
  color: var(--ink);
}
/* Soft blur band: whatever scrolls under the header melts away */
.site-header::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% + 36px);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent);
  mask-image: linear-gradient(to bottom, #000 45%, transparent);
  pointer-events: none;
}
/* Airy header type: regular weight, no stroke, open tracking */
.site-header .caps, .site-header .caps * { letter-spacing: 0.09em; -webkit-text-stroke: 0; font-weight: 400; }
.site-header .f1.caps { font-size: 12px; }
.site-header [data-tone] { --h-accent: var(--accent); transition: color 0.3s ease; }
.site-header [data-tone].muted { color: var(--muted); }
.site-header [data-tone].is-on-dark, .site-header [data-tone].is-on-dark.muted { color: #FFFFFF; --h-accent: #FFFFFF; }
.site-header a:hover, .site-header__nav [aria-current="page"] { color: var(--h-accent); }
.site-header__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 56px; }
.site-header__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 280px;
  border-top: 0.5px solid var(--rule);
  padding: 140px var(--gutter) 28px;
  display: flex; flex-direction: column; gap: 160px;
}
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 24px; }
.site-footer__top .big { flex: 999 1 480px; max-width: 760px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 14px; }
.site-footer__social { display: flex; gap: 24px; }
.site-footer__social a { color: var(--ink); }
.site-footer__social a:hover { color: var(--accent); }

/* ---------- Render bar / log (shared) ---------- */
.render-bar { height: 2px; background: #F2F2F2; }
.render-bar__fill { display: block; height: 100%; width: 0; background: var(--accent); }
.render-log { display: flex; justify-content: space-between; gap: 6px 24px; margin-top: 8px; }
.render-log__items { display: flex; flex-wrap: wrap; gap: 6px 24px; }

/* ---------- Home hero ---------- */
.hero { padding: 24px var(--gutter) 0; }
.hero__frame { position: relative; aspect-ratio: 16 / 8; min-height: 360px; background: var(--bg); overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; color: #fff; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide:hover { color: #fff; }
.hero__caption {
  position: absolute; right: var(--gutter); top: var(--gutter);
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  opacity: 0; transition: opacity 0.4s ease;
}
.hero__caption-sub { color: #E3E3E3; }
.is-rendered .hero__caption { opacity: 1; }
.hero__buckets {
  position: absolute; inset: 0; z-index: 3;
  display: grid; grid-template-columns: repeat(16, 1fr); grid-template-rows: repeat(8, 1fr);
  pointer-events: none;
}
/* Not rendered yet: the hero shows through, heavily blurred, like a coarse preview */
.hero__buckets i { background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(22px) saturate(0.8); backdrop-filter: blur(22px) saturate(0.8); box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08); }
.hero__buckets i.is-active { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 0.5px rgba(255, 255, 255, 0.6); }
.hero__buckets i.is-done { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero__dots {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: 4;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 16px;
  font-size: 12px; color: #fff; opacity: 0; transition: opacity 0.4s ease;
}
.is-rendered .hero__dots { opacity: 1; }
.hero__dot { position: relative; text-align: left; padding-top: 10px; color: rgba(255,255,255,0.55); }
.hero__dot.is-active, .hero__dot:hover { color: #fff; }
.hero__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,0.4); }
.hero__dot-bar { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: var(--accent); }
.hero__dot.is-active .hero__dot-bar { animation: dot-fill var(--slide-ms, 6000ms) linear forwards; }
@keyframes dot-fill { to { width: 100%; } }

/* ---------- Statement ---------- */
.statement { display: flex; flex-wrap: wrap; gap: 16px 24px; padding: 220px var(--gutter) 240px; }
.statement > span { flex: 1 1 200px; max-width: 320px; }
.statement .big { flex: 999 1 480px; max-width: 880px; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.25; }

/* ---------- Feed ---------- */
.feed { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.feed__head { display: flex; justify-content: space-between; }
.feed__head a { color: var(--ink); }
.feed__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 220px; align-items: start; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card__media { position: relative; background: var(--placeholder); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__meta { display: flex; justify-content: space-between; gap: 16px; }
.card__meta > div { display: flex; flex-direction: column; }
.card:hover .card__title, .card:hover .card__num { color: var(--accent); }
.card--0 { grid-column: 2 / span 10; }
.card--1 { grid-column: 1 / span 5; }
.card--2 { grid-column: 7 / span 6; margin-top: 320px; }
.card--3 { grid-column: 1 / -1; }
.card--4 { grid-column: 1 / span 7; }
.button { align-self: center; margin-top: 180px; padding: 14px 20px; border: 1px solid var(--ink); }
.button:hover { border-color: var(--accent); }

/* ---------- Page head (Index) ---------- */
.page-head { padding: 220px var(--gutter) 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head__count { font-family: var(--f2); font-weight: 400; font-size: 0.35em; letter-spacing: 0; color: var(--muted); vertical-align: top; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.filters button { padding: 6px 0; }
.filters button.is-active { color: var(--accent); }

/* ---------- Index list ---------- */
.index-list { position: relative; padding: 0 var(--gutter); }
.index-row {
  display: grid; grid-template-columns: 1fr 4fr 2fr 3fr 2fr; column-gap: 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 0.5px solid var(--rule); font-size: 13px;
}
.index-row--head { font-size: 11px; padding: 10px 0; border-bottom-color: var(--rule); }
.index-row--head + .index-row { border-top: 0; }
.index-row .ix-year { text-align: right; }
.index-row:not(.index-row--head):hover, .index-row:not(.index-row--head):hover .ix-sub { color: var(--accent); }
.index-row[hidden] { display: none; }
.index-preview {
  position: absolute; z-index: 5; top: 0; left: 0; width: 320px;
  background: var(--ink); pointer-events: none; overflow: hidden;
  opacity: 0; transform: translate(-50%, 0);
  transition: opacity 0.2s ease, left 0.25s ease, top 0.25s ease;
}
.index-preview.is-visible { opacity: 1; }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about-intro { padding: 260px var(--gutter) 0; }
.about-intro .big { max-width: 980px; font-size: clamp(22px, 2.8vw, 40px); line-height: 1.1; }
.about-body { padding: 160px var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 40px 24px; align-items: flex-start; }
.about-body__text { flex: 1 1 360px; max-width: 520px; margin: 32px auto 0 16%; display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.6; }
.about-body__text a { align-self: flex-start; margin-top: 8px; }
.about-body__portrait { flex: 0 0 auto; width: 200px; margin: -64px 8% 0 0; display: flex; flex-direction: column; gap: 8px; }
.about-body__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; background: var(--ink); }
.about-cols { margin-top: 260px; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px 24px; }
.about-cols > div { display: flex; flex-direction: column; gap: 14px; }
.about-cols ul { display: flex; flex-direction: column; gap: 6px; }
.availability { margin-top: 160px; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }

/* ---------- Project ---------- */
.project-head { padding: 240px var(--gutter) 96px; display: flex; flex-direction: column; gap: 96px; }
.project-head__nav { display: flex; justify-content: space-between; gap: 16px; }
.project-head__nav a { color: var(--muted); }
.project-head .display { max-width: 1100px; }
.project-meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.project-meta > div { display: flex; flex-direction: column; gap: 4px; }
.project-meta dd { margin: 0; }
.film { padding: 0 var(--gutter); }
.film__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.film__frame video, .film__frame iframe, .film__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film__controls { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.film__controls-left { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.film__controls button { color: var(--ink); }
.split { padding: 220px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px 24px; }
.split > span { flex: 1 1 200px; max-width: 320px; }
.split__body { flex: 999 1 480px; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.split__body .big { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.15; }
.split__body .body { max-width: 560px; }
.split--tight { padding: 0 0 32px; }
.gallery { padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 140px 32px; align-items: start; }
.gallery__item { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; }
.gallery__item img, .gallery__item video { width: 100%; height: auto; background: var(--placeholder); }
.gallery__item--half { grid-column: span 3; }
.gallery__item--third { grid-column: span 2; }
.gallery__item--offset-right { grid-column: 3 / -1; }
.gallery__item--offset-left { grid-column: 1 / span 4; }
.breakdown { padding: 260px var(--gutter) 0; }
.breakdown__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.breakdown__grid figure { display: flex; flex-direction: column; gap: 8px; }
.breakdown__grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--placeholder); }
.credits { padding-bottom: 0; }
.credits__list { flex: 999 1 480px; max-width: 560px; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.credits__list dd { margin: 0; }
.next { padding: 280px var(--gutter) 0; }
.next a { display: flex; flex-direction: column; gap: 16px; }
.next__head { display: flex; justify-content: space-between; }
.next__body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.next__body img { width: 320px; max-width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--placeholder); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card--0, .card--1, .card--2, .card--3, .card--4 { grid-column: 1 / -1; margin-top: 0; }
  .feed__grid { row-gap: 120px; }
  .statement { padding: 140px var(--gutter); }
  .split { padding: 140px var(--gutter); }
  .gallery { row-gap: 64px; }
  .gallery__item--half, .gallery__item--third, .gallery__item--offset-right, .gallery__item--offset-left { grid-column: 1 / -1; margin-top: 0; }
  .about-body__text { margin-left: 0; }
  .about-body__portrait { margin: 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .index-row { grid-template-columns: 1fr 6fr 2fr; }
  .ix-hide { display: none; }
  .index-preview { display: none; }
  .hero__frame { aspect-ratio: 4 / 5; min-height: 0; }
  .about-intro { padding-top: 120px; }
  .project-head { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Large type never gets the caps stroke */
.display.display, .big.big, .display-s.display-s, .page-head__count.page-head__count { -webkit-text-stroke: 0; }
/* Full-width slot: keep tall covers from taking the whole page */
.card--3 .card__media { max-height: 82vh; }

/* ---------- Project cursor: a render bucket + the project name ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; display: flex; align-items: center; gap: 10px; opacity: 0; transition: opacity 0.15s ease; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor__mark { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 1px rgba(255,255,255,0.9); position: relative; }
.cursor__mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 2px; margin: -1px 0 0 -1px; background: var(--accent); }
.cursor__label { margin-top: -8px; background: var(--bg); color: var(--ink); padding: 3px 6px; font-family: var(--f1); font-size: 11px; text-transform: uppercase; letter-spacing: var(--track-caps); -webkit-text-stroke: var(--caps-stroke) currentColor; white-space: nowrap; }
.cursor__label::after { content: " →"; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }
}

/* ==========================================================================
   Motion — smooth scroll, reveals, parallax, page transitions
   ========================================================================== */
:root { --ease: cubic-bezier(0.19, 1, 0.22, 1); }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

/* Page fade */
.js body { opacity: 0; transition: opacity 0.6s ease; }
.js body.is-ready { opacity: 1; }
.js body.is-leaving { opacity: 0; transition-duration: 0.35s; }

/* Fade up */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1s ease, transform 1.4s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Media: clip open + slow settle, then gentle parallax */
[data-reveal-media] { overflow: hidden; }
[data-reveal-media] img, [data-reveal-media] video { translate: 0 var(--py, 0%); scale: 1.08; transition: scale 1.8s var(--ease); will-change: translate; }
.js [data-reveal-media] { clip-path: inset(14% 6% 14% 6%); transition: clip-path 1.6s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal-media] img, .js [data-reveal-media] video { scale: 1.22; }
.js [data-reveal-media].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal-media].is-in img, .js [data-reveal-media].is-in video { scale: 1.08; }
.card:hover [data-reveal-media] img, .js .card:hover [data-reveal-media].is-in img { scale: 1.12; transition-duration: 1.2s; }
.about-body__portrait img { scale: 1; }
.js .about-body__portrait.is-in img { scale: 1; }
.film__frame video, .film__frame iframe { translate: none; scale: 1; }
.js .film__frame.is-in video { scale: 1; }

/* Words rising line by line */
.word { display: inline-block; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; clip-path: inset(-1em -0.4em 0 -0.4em); }
.word > span { display: inline-block; }
.js [data-split] .word > span { transform: translate3d(0, 110%, 0); transition: transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-split].is-in .word > span { transform: none; }

/* Hero parallax */
.hero__slide img { translate: 0 var(--hero-y, 0px); scale: 1.08; }

/* ---------- Contact ---------- */
.contact-intro { padding: 200px var(--gutter) 0; }
.contact-intro .big { max-width: 1000px; margin: 0; font-size: clamp(28px, 4vw, 64px); line-height: 1.02; }
.contact-intro .contact__back { display: inline-block; margin-top: 80px; }
.contact { padding: 140px var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 96px 40px; align-items: flex-start; }
.contact__info { flex: 1 1 280px; max-width: 420px; display: flex; flex-direction: column; gap: 64px; }
.contact__block { display: flex; flex-direction: column; gap: 12px; }
.contact__block ul { display: flex; flex-direction: column; gap: 6px; }
.contact__email { text-align: left; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: var(--track-big); font-weight: 500; text-transform: none; }
.contact__form { flex: 999 1 480px; max-width: 760px; margin-left: auto; display: flex; flex-direction: column; gap: 40px; }
.contact__lead { max-width: 520px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 0.5px solid #CFCFCF; border-radius: 0; padding: 8px 0 12px;
  outline: none; transition: border-color 0.2s ease; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field input::placeholder { color: #B5B5B5; }
.contact__submit { align-self: flex-start; font-size: 14px; padding: 6px 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  .contact-intro { padding-top: 160px; }
  .contact { padding-top: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .js body, .js [data-reveal], .js [data-reveal-media], .js [data-split] .word > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  [data-reveal-media] img, [data-reveal-media] video, .hero__slide img { translate: none !important; scale: 1 !important; }
}
.page-contact .site-footer { margin-top: 220px; padding-top: 24px; gap: 0; }

/* Footer always at the bottom of the window, even on short pages */
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* ---------- No text (I-beam) cursor anywhere ---------- */
html, body, * { cursor: default; }
a, a *, button, button *, select, label[for], summary, [data-copy] { cursor: pointer; }
input, textarea { cursor: default; }

/* ---------- Header links: brackets close in on hover, stay on the active page ---------- */
.site-header__nav a { position: relative; }
.site-header__nav a::before, .site-header__nav a::after {
  position: absolute; top: 0; opacity: 0; color: var(--h-accent);
  transition: transform 0.35s var(--ease, cubic-bezier(.19,1,.22,1)), opacity 0.2s ease;
}
.site-header__nav a::before { content: "["; left: -1.25ch; transform: translateX(-6px); }
.site-header__nav a::after { content: "]"; right: -1.05ch; transform: translateX(6px); }
.site-header__nav a:hover::before, .site-header__nav a:hover::after,
.site-header__nav a[aria-current="page"]::before, .site-header__nav a[aria-current="page"]::after { opacity: 1; transform: none; }
.site-header__nav { gap: 8px 44px; }

/* ---------- Video ---------- */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; translate: 0 var(--hero-y, 0px); scale: 1.08; }
.card__media { position: relative; }
.card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; translate: 0 var(--py, 0%); scale: 1.08; }
.card__video.is-playing { opacity: 1; }
.index-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
.index-preview video.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__video, .card__video { display: none; } }

/* ==========================================================================
   Alignment: brackets never go past the gutters
   ========================================================================== */
.site-header__nav { padding-right: 1.05ch; }   /* room for the last "]" inside the right gutter */

/* ==========================================================================
   Mobile header: name + [MENU] → full-screen menu
   ========================================================================== */
.menu-toggle { display: none; }
.menu { display: none; }
@media (max-width: 720px) {
  .site-header { flex-wrap: nowrap; }
  .site-header__id span, .site-header__nav { display: none; }
  .menu-toggle { display: block; font-size: 12px; }
  .site-header .menu-toggle { letter-spacing: 0.09em; -webkit-text-stroke: 0; }

  .menu {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 200;
    background: var(--bg); padding: 24px var(--gutter) 28px;
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
  .menu__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.09em; }
  .menu__top button { font-size: 12px; letter-spacing: 0.09em; }
  /* Big links. The brackets sit INSIDE the margin: their outer edge lines up with the name above. */
  .menu__links { margin: auto 0 0; display: flex; flex-direction: column; gap: 4px; }
  .menu__links li { transform: translate3d(0, 28px, 0); opacity: 0; transition: transform 0.8s var(--ease), opacity 0.4s ease; }
  .menu.is-open .menu__links li { transform: none; opacity: 1; }
  .menu.is-open .menu__links li:nth-child(2) { transition-delay: 0.05s; }
  .menu.is-open .menu__links li:nth-child(3) { transition-delay: 0.1s; }
  .menu.is-open .menu__links li:nth-child(4) { transition-delay: 0.15s; }
  .menu__links a {
    position: relative; display: inline-block; padding: 0 0.62em;
    font-family: var(--f1); font-weight: 500; font-size: clamp(40px, 12vw, 56px); line-height: 1.04;
    letter-spacing: -0.02em; text-transform: uppercase;
  }
  .menu__links a::before, .menu__links a::after { position: absolute; top: 0; color: var(--accent); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.2s ease; }
  .menu__links a::before { content: "["; left: 0; transform: translateX(-10px); }
  .menu__links a::after { content: "]"; right: 0; transform: translateX(10px); }
  .menu__links a[aria-current="page"], .menu__links a:active, .menu__links a:hover { color: var(--accent); }
  .menu__links a[aria-current="page"]::before, .menu__links a[aria-current="page"]::after,
  .menu__links a:active::before, .menu__links a:active::after,
  .menu__links a:hover::before, .menu__links a:hover::after { opacity: 1; transform: none; }
  .menu__foot { margin-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
  .menu__foot .site-footer__social { gap: 16px; }

  /* Home feed on mobile: same size, aligned, centred */
  .feed__grid { row-gap: 72px; }
  .card { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .card__media { aspect-ratio: 4 / 5 !important; max-height: none !important; }
}

/* Uppercase display titles: same tracking as the mobile menu (−0.02em), refined by optical kerning */
.display.caps, .display-s.caps { letter-spacing: -0.02em; }

/* Eleventy Image wraps images in <picture>: keep the layout as if the <img> were alone */
picture { display: contents; }
