/* Cutting Room: tokens */
:root {
  --black: #000000;
  --bay: #18191B;
  --rule: #2C2D30;
  --paper: #EDEDE8;
  --dim: #8E9095;
  --tally: #E5322D;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wide: 125%;
  --semi-wide: 112%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  --step-3: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  --step-4: clamp(2.5rem, 1.4rem + 5vw, 6.5rem);
  --step-hero: clamp(2.6rem, 10.5vw, 11.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1600px;
  --head-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }

body {
  margin: 0;
  background: var(--black);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--tally);
  scrollbar-color: #3B3C40 var(--black);
}
::selection { background: var(--paper); color: var(--black); }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--paper); color: var(--black); padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Header */
.site-head {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--head-h);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.site-head.over { position: absolute; inset: 0 0 auto 0; }
.wordmark { font-weight: 700; font-stretch: var(--semi-wide); text-decoration: none; font-size: var(--step-0); letter-spacing: 0.01em; }
.site-nav ul { display: flex; gap: clamp(0.25rem, 2vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.5rem;
  text-decoration: none; color: var(--dim); font-weight: 500;
}
.site-nav a:hover { color: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; }
.wordmark { white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 420px) {
  .wordmark { font-size: var(--step--1); }
  .site-nav ul { gap: 0; }
  .site-nav a { padding-inline: 0.45rem; font-size: var(--step--1); }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.35rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; background: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--paper); color: var(--black); }
.btn-primary:hover { background: #ffffff; }
.btn-ghost { border-color: rgba(237, 237, 232, 0.45); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn svg { width: 0.8em; height: 0.8em; fill: currentColor; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; align-content: end;
  padding-bottom: clamp(32px, 7vh, 80px);
}
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bay); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  /* Solid page black at the very bottom, so the video melts into the page below it */
  background: linear-gradient(to top, var(--black) 0%, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.55) 32%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.25) 100%);
}
.hero-name {
  font-size: var(--step-hero); font-stretch: var(--wide); font-weight: 800;
  line-height: 0.86; letter-spacing: -0.025em;
  margin-bottom: clamp(1rem, 3vh, 2rem);
}
.hero-name span { display: block; }

/* Hero buddy: the little figure living on top of "Alexandre" (drawn by site.js) */
.hero-name { position: relative; }
.buddy { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.buddy .b-f { stroke: #FFFFFF; stroke-linecap: round; fill: #FFFFFF; }
.buddy .b-back { stroke: #CFD0CC; fill: #CFD0CC; }   /* far arm and leg, a soft shadow */
.buddy .b-limb { fill: none; stroke-linejoin: round; }
.buddy .g-body { fill: #C9874A; }                       /* a little acoustic guitar */
.buddy .g-hole { fill: #2A1A10; }
.buddy .g-neck { stroke: #8A5A30; stroke-linecap: round; }
.buddy .b-note { fill: #FFFFFF; font-family: system-ui, sans-serif; }
.hero-line { font-size: var(--step-2); font-weight: 500; max-width: 30ch; line-height: 1.2; margin-bottom: clamp(1.5rem, 3.5vh, 2.25rem); }
.loop-toggle {
  position: absolute; right: var(--gutter); top: calc(var(--head-h) + 12px);
  min-height: 44px; padding: 0 0.9rem; border-radius: 999px;
  background: rgba(0,0,0,0.5); border: 1px solid var(--rule); color: var(--dim);
  font-size: var(--step--1); cursor: pointer;
}
.loop-toggle:hover { color: var(--paper); }
.loop-toggle[hidden] { display: none; }

/* Client logo strip, edge to edge under the hero buttons */
.clients {
  --logo-h: clamp(56px, 6.2vw, 92px); --logo-gap: clamp(56px, 6.5vw, 112px);
  display: flex; overflow: hidden; margin-top: clamp(2.25rem, 6vh, 4rem); padding-block: 0.25rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  list-style: none; margin: 0; padding: 0 var(--logo-gap) 0 0; flex-shrink: 0;
  display: flex; align-items: center; gap: var(--logo-gap);
  animation: clients-scroll 55s linear infinite;
}
.clients:hover .clients-track { animation-play-state: paused; }
.clients li { flex-shrink: 0; display: flex; }
.clients img { display: block; height: var(--logo-h); width: auto; opacity: 0.88; }
@keyframes clients-scroll { to { transform: translateX(-100%); } }

/* Sections */
.section { padding-block: clamp(56px, 10vh, 120px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.75rem; margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.section-title { font-size: var(--step-3); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.015em; }
.section-link { color: var(--paper); text-decoration: none; }
.section-link:hover { text-decoration: underline; }

/* Frames and placeholders */
.frame { position: relative; aspect-ratio: 16 / 9; margin: 0; background: var(--bay); overflow: hidden; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-portrait { aspect-ratio: 4 / 5; }
.slate {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 0.25rem; text-align: center; padding: 1rem;
  color: var(--dim); font-size: var(--step--1);
  outline: 1px dashed #3B3C40; outline-offset: -10px;
}
.slate-title { color: var(--paper); font-weight: 600; font-stretch: var(--semi-wide); font-size: var(--step-0); }
.frame-sm .slate { outline-offset: -4px; }
.frame-sm .slate > * { display: none; }

.tbd {
  display: inline-block; padding: 0 0.45em; border: 1px dashed var(--dim); border-radius: 4px;
  color: var(--dim); font-size: 0.9em; line-height: 1.6;
}

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px; padding: 0 1rem; border-radius: 999px;
  background: none; border: 1px solid var(--rule); color: var(--dim); cursor: pointer;
}
.chip:hover { color: var(--paper); border-color: var(--dim); }
.chip[aria-pressed="true"] { color: var(--paper); border-color: var(--paper); }
.chip[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tally); }
.result-count { color: var(--dim); font-size: var(--step--1); margin-bottom: 0.75rem; }

/* Work page: video tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); grid-template-columns: 1fr; }
[data-tiles] { overflow-x: clip; }  /* keeps the hover glow from widening the page */
.tile[hidden] { display: none; }
.tile { position: relative; }
.tile.is-floating, .tile.is-lit { z-index: 1; }
.tile-media { position: relative; transform-origin: center; backface-visibility: hidden; }
.tile.is-floating .tile-media { will-change: transform; }
.tile-media .tile-frame { z-index: 1; }
.tile-glow {
  position: absolute; top: -14%; left: -9%; width: 118%; height: 128%; pointer-events: none;
  filter: blur(30px) saturate(1.6); mix-blend-mode: screen;
  opacity: 0; transition: opacity 0.5s ease-in-out 0.5s;   /* lingers after the cursor leaves, gone at 1 s */
}
.tile.is-glowing .tile-glow { opacity: 0.55; transition: opacity 0.6s var(--ease) 0s; }
.tile-link { display: block; text-decoration: none; }
.tile-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.tile.is-playing .tile-frame video { opacity: 1; }
.tile-live { position: absolute; top: 12px; left: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--tally); opacity: 0; transition: opacity 0.3s; }
.tile.is-playing .tile-live { opacity: 1; }
.tile-cap { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; margin-top: 0.8rem; }
.tile-title { font-size: var(--step-1); font-stretch: var(--semi-wide); font-weight: 650; line-height: 1.15; }
.tile-year { color: var(--dim); font-variant-numeric: tabular-nums; }
.tile-meta { grid-column: 1 / -1; color: var(--dim); font-size: var(--step--1); }
.tile-link:hover .tile-title, .tile-link:focus-visible .tile-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.tile-link:focus-visible { outline: none; }
.tile-link:focus-visible .tile-frame { outline: 2px solid var(--paper); outline-offset: 4px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1700px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Watch feed: one film per screen, snap-scrolled */
html.is-watching { overflow: hidden; }
.feed {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--black); color: var(--paper); overflow: hidden;
}
.feed::backdrop { background: var(--black); }
.feed-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed-track::-webkit-scrollbar { display: none; }
.feed-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.feed-item video { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.feed-item::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}
.feed-state {
  position: absolute; width: 72px; height: 72px; border-radius: 50%; background: rgba(0, 0, 0, 0.55);
  display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 0.2s;
}
.feed-state::before { content: ""; margin-left: 6px; border-left: 22px solid var(--paper); border-block: 14px solid transparent; }
.feed-item.is-paused .feed-state { opacity: 1; }
.feed-info {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter);
  bottom: calc(36px + env(safe-area-inset-bottom)); max-width: 40rem;
}
.feed-title { font-size: var(--step-3); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.015em; line-height: 1; }
.feed-meta { color: #C9CAC6; margin-top: 0.4rem; }
.feed-more { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-weight: 600; }
.feed-seek {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: env(safe-area-inset-bottom);
  width: 100%; height: 24px; margin: 0; accent-color: var(--tally); cursor: pointer;
}
.feed-bar {
  position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top)); right: var(--gutter);
  display: flex; gap: 0.5rem;
}
.feed-bar .icon-btn { background: rgba(0, 0, 0, 0.6); }
.feed-bar [aria-pressed="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.45em; border-radius: 50%; background: var(--tally); vertical-align: 0.1em; }
.feed-hint {
  position: absolute; z-index: 2; top: calc(20px + env(safe-area-inset-top)); left: var(--gutter);
  color: var(--paper); font-size: var(--step--1); font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  transition: opacity 0.4s; pointer-events: none;
}
.feed.has-moved .feed-hint { opacity: 0; }
.feed[data-kind="gallery"] [data-sound] { visibility: hidden; }

/* Photo carousel in the feed: swipe sideways through a project's photos, up for the next film */
.feed-gallery { display: block; }
.feed-strip {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.feed-strip::-webkit-scrollbar { display: none; }
.feed-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; }
/* Pinned to the slide so every photo, portrait or landscape, fits whole on screen */
.feed-slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.feed-arrow {
  position: absolute; z-index: 1; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--rule); background: rgba(0, 0, 0, 0.55); color: var(--paper); font-size: 1.6rem; line-height: 1;
  cursor: pointer; transition: opacity 0.2s;
}
.feed-arrow[data-dir="-1"] { left: var(--gutter); }
.feed-arrow[data-dir="1"] { right: var(--gutter); }
.feed-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .feed-arrow { display: none; } }   /* phones swipe instead */

/* Project page: full screen opens the watch feed */
.player-full {
  position: absolute; top: 12px; right: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 40px; padding: 0 0.9rem; border-radius: 999px; border: 1px solid rgba(237, 237, 232, 0.35);
  background: rgba(0, 0, 0, 0.55); color: var(--paper); font-size: var(--step--1); font-weight: 600; cursor: pointer;
}
.player-full:hover { border-color: var(--paper); }
.player-full svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Page heads */
.page-head { padding-top: clamp(32px, 8vh, 96px); padding-bottom: clamp(24px, 5vh, 56px); }
.page-title { font-size: var(--step-4); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.025em; line-height: 0.92; }
.page-lede { color: var(--dim); font-size: var(--step-1); margin-top: 1rem; max-width: 46ch; }

/* Project page */
.project-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.5rem 2rem; }
.project-year { color: var(--dim); font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.player { position: relative; background: var(--black); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: var(--bay); }
.player .slate { background: var(--bay); }
.now-playing { display: inline-flex; align-items: center; gap: 0.5em; color: var(--paper); font-size: var(--step--1); min-height: 1.5em; }
.now-playing::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tally); }
.now-playing[hidden] { display: none; }
.credits { display: grid; gap: 1.25rem 2rem; margin: clamp(24px, 4vh, 40px) 0 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credits div { border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.credits dt { color: var(--dim); font-size: var(--step--1); }
.credits dd { margin: 0.2rem 0 0; font-weight: 500; }
.client-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; }
.client-logos .client-logo { max-height: clamp(2.6rem, 4.5vw, 3.6rem); max-width: min(100%, 11rem); }
/* Logos keep their own shape: compact marks are capped by height, long wordmarks by width */
.client-logo {
  display: block; width: auto; height: auto; margin-top: 0.6rem;
  max-width: min(100%, 16rem); max-height: clamp(3.5rem, 6vw, 5rem);
}
.project-summary { margin-top: 2rem; max-width: 62ch; font-size: var(--step-1); line-height: 1.45; }
@media (min-width: 960px) { .credits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Project photographs: a masonry of thumbnails, opened in the lightbox */
.photos { margin-top: clamp(56px, 10vh, 120px); }
.photos-title { font-size: var(--step-2); font-stretch: var(--semi-wide); font-weight: 700; border-top: 1px solid var(--rule); padding-top: 1rem; margin-bottom: 1.25rem; }
.photos-title span { color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 0.4em; }
.gallery { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: clamp(8px, 1.2vw, 16px); }
.gallery li { break-inside: avoid; margin-bottom: clamp(8px, 1.2vw, 16px); }
.gallery li.is-hero { column-span: all; margin-block: clamp(8px, 1.2vw, 16px) clamp(16px, 2.4vw, 32px); }
.gallery li.is-hero:first-child { margin-top: 0; }
.social { margin-top: clamp(56px, 10vh, 120px); }
.social-video { display: block; width: min(100%, 380px); aspect-ratio: 9 / 16; max-height: 80vh; background: var(--bay); }
.photo-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--bay); cursor: zoom-in; }
.photo-btn img { width: 100%; height: auto; transition: opacity 0.2s; }
.photo-btn:hover img { opacity: 0.85; }
@media (min-width: 960px) { .gallery { columns: 3; } }

.next {
  display: block; text-decoration: none; border-top: 1px solid var(--rule);
  padding-top: 1.25rem; margin-top: clamp(56px, 10vh, 120px);
}
.next-label { color: var(--dim); }
.next-title { display: block; font-size: var(--step-4); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.02em; line-height: 0.95; margin-top: 0.25rem; }
.next:hover .next-title { text-decoration: underline; text-decoration-thickness: 2px; }

/* Cars */
.cars { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.car-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.car-btn:disabled { cursor: default; }
.car-title { font-size: var(--step-1); font-stretch: var(--semi-wide); font-weight: 650; margin-top: 0.75rem; }
.car-meta { color: var(--dim); font-size: var(--step--1); margin-top: 0.15rem; }
.car:target .frame { outline: 2px solid var(--tally); outline-offset: 4px; }

/* Social */
.social-group { padding-top: clamp(18px, 3vh, 28px); border-top: 1px solid var(--rule); }
.social-group + .social-group { margin-top: clamp(56px, 10vh, 112px); }
.social-brand { display: flex; align-items: center; gap: 0.9rem; color: var(--paper); }
.social-icon { width: 26px; height: 26px; flex: none; }
.social-icon + .social-icon { margin-left: -0.25rem; }
.social-name { font-size: var(--step-1); font-stretch: var(--wide); font-weight: 700; letter-spacing: 0.01em; }
.social-divide { width: 1px; height: 22px; background: var(--rule); }
.social-brand img { display: block; height: clamp(14px, 1.5vw, 18px); width: auto; max-width: 70vw; }
.social-label { color: var(--dim); font-size: var(--step--1); margin: 0.9rem 0 1.1rem; }
.social-totals { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(2rem, 5vw, 4.5rem); margin: 0 0 clamp(28px, 5vh, 48px); }
.social-totals dt { color: var(--dim); font-size: var(--step--1); }
.social-totals dd { margin: 0.2rem 0 0; font-size: var(--step-3); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.025em; line-height: 0.95; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 559px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-media { position: relative; aspect-ratio: 9 / 16; background: var(--bay); border-radius: 6px; overflow: hidden; }
.post-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-sound { position: absolute; right: 0.6rem; bottom: 0.6rem; min-height: 32px; padding: 0 0.7rem; border: 0; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: var(--paper); font: inherit; font-size: var(--step--1); cursor: pointer; }
.post-sound[aria-pressed="true"] { background: var(--paper); color: var(--black); }
.post-strip { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.post-strip::-webkit-scrollbar { display: none; }
.post-strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.post-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 0.55); color: var(--paper); font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.post-arrow[data-d="-1"] { left: 0.6rem; }
.post-arrow[data-d="1"] { right: 0.6rem; }
.post-arrow[hidden] { display: none; }
.post-count { position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: rgb(0 0 0 / 0.55); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.post-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; margin: 0.9rem 0 0; }
.post-stats dt { color: var(--dim); font-size: var(--step--1); }
.post-stats dd { margin: 0.1rem 0 0; font-size: var(--step-2); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.015em; }
.post-meta { color: var(--dim); font-size: var(--step--1); margin-top: 0.75rem; }
.post-link { display: inline-block; margin-top: 0.25rem; font-size: var(--step--1); color: var(--paper); }
.social-asof { color: var(--dim); font-size: var(--step--1); margin-top: clamp(32px, 6vh, 56px); }
.social-asof:empty { display: none; }

/* Dialogs: reel + lightbox */
.viewer {
  width: min(100vw - 2 * var(--gutter), 1400px); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--paper); overflow: visible;
}
.viewer::backdrop { background: rgba(0, 0, 0, 0.92); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.viewer-title { font-weight: 600; }
.icon-btn {
  min-width: 44px; min-height: 44px; padding: 0 0.9rem; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--black); color: var(--paper); cursor: pointer;
}
.icon-btn:hover { border-color: var(--paper); }
.viewer video, .viewer img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--black); }
.viewer .stage { position: relative; aspect-ratio: 16 / 9; background: var(--bay); }
.viewer .stage img, .viewer .stage video { position: absolute; inset: 0; height: 100%; max-height: none; }
.lightbox-nav { display: flex; gap: 0.5rem; }

/* About */
.about { display: grid; gap: clamp(32px, 5vw, 80px); }
.about-body { display: grid; gap: 1.25rem; font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
.about-body .tbd { font-size: var(--step--1); }
.about-body a { color: var(--paper); }
.about-facts { display: grid; gap: 0.9rem; margin: 0.75rem 0 0; font-size: var(--step-0); }
.about-facts div { border-top: 1px solid var(--rule); padding-top: 0.7rem; }
.about-facts dt { color: var(--dim); font-size: var(--step--1); }
.about-facts dd { margin: 0.15rem 0 0; }
.about .frame-portrait { width: clamp(180px, 18vw, 260px); max-width: 100%; }
/* The portrait sits to the right of the text, top-aligned; on phones it stacks underneath */
@media (min-width: 560px) { .about { grid-template-columns: minmax(0, 40ch) auto; justify-content: start; align-items: start; } }

.contact { border-top: 1px solid var(--rule); }
.contact-grid { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.contact-alt { display: grid; gap: 0.5rem; margin-top: 1.25rem; color: var(--dim); }
.contact-alt a { color: var(--paper); }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--paper); background: var(--bay);
  border: 1px solid var(--rule); border-radius: 6px; padding: 0.8rem 0.9rem; min-height: 48px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--paper); outline-offset: 1px; border-color: transparent; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--tally); }
.form-status { min-height: 1.5em; color: var(--dim); }
.form .btn { justify-self: start; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: clamp(56px, 10vh, 112px) 32px; }
.foot-ask { font-size: var(--step-3); font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.015em; line-height: 1; max-width: 18ch; }
.foot-mail { display: inline-block; margin-top: 1.25rem; font-size: var(--step-2); font-weight: 500; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(40px, 8vh, 80px); color: var(--dim); font-size: var(--step--1); }
.foot-row ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.foot-row a { display: inline-flex; min-height: 44px; align-items: center; }

/* Not found */
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .clients { overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .clients-track { animation: none; }
  .clients-track[aria-hidden] { display: none; }
}
