/* Vlad Neimark — portfolio
   One family (Manrope, self-hosted): heavy and tightly tracked for names, headings and numbers,
   regular for reading. One accent (forest), used for links, numbers and the takeaway. */

@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #F3F4F0;
  --white: #FFFFFF;
  --ink: #18211C;
  --ink-2: #4C5650;
  --line: #CDD3CC;
  --forest: #276F48;
  --forest-deep: #1B5034;
  --mint: #DCE8DF;

  --font: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --fs-h1: clamp(2.75rem, 1.4rem + 5.4vw, 7rem);

  --gutter: clamp(1rem, 0.4rem + 2.4vw, 2.5rem);
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section: clamp(3.5rem, 2rem + 4.5vw, 6.5rem);
  --max: 1440px;
  --measure: 66ch;
  --radius: 10px;
  --header: 3.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-variation-settings: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
::selection { background: var(--forest); color: var(--paper); }

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

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------- Type roles ---------- */

h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }

p, li { text-wrap: pretty; }

.prose > * + * { margin-top: 1em; }
.prose { max-width: var(--measure); }
.prose a, .link {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.prose a:hover, .link:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }
.prose ul { padding-left: 1.1em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--forest); }
.prose strong { font-weight: 650; }

.lede { font-size: var(--fs-xl); line-height: 1.4; max-width: 34ch; }
.muted { color: var(--ink-2); }

.meta {
  display: flex; flex-wrap: wrap; gap: 0.25rem 1rem;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em;
}

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

/* Home: the intro already says who this is, so the bar only appears once the intro scrolls away */
.home .top { position: fixed; inset: 0 0 auto; transform: translateY(-100%); transition: transform 0.25s ease, border-color 0.2s; }
.home .top.is-shown, .home .top:focus-within { transform: none; }
.home .wrap { max-width: none; }
@media (prefers-reduced-motion: reduce) { .home .top { transition: none; } }

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.top__name { font-size: 1.125rem; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.top__nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.top__nav a { text-decoration: none; font-weight: 500; padding-block: 0.5rem; }
.top__nav a:hover { color: var(--forest); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; min-height: 2.875rem;
  padding: 0 1.25rem; border-radius: 999px;
  border: 1.5px solid currentColor; text-decoration: none; font-weight: 600;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--solid { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.btn--solid:hover { background: var(--forest-deep); border-color: var(--forest-deep); }

/* ---------- Home: intro + work, all on one screen ---------- */

.home-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 3vw, 2.75rem) var(--gap);
  padding-top: clamp(1rem, 2.5vw, 2rem); padding-bottom: var(--section);
}
.intro-card { display: flex; flex-direction: column; padding-right: 1rem; }
.intro-card h1 { font-size: clamp(2.75rem, 1.2rem + 3.4vw, 4.5rem); line-height: 0.95; letter-spacing: -0.045em; margin-left: -0.03em; }
.intro-card h1 span { display: block; }
.intro-card__role { margin-top: 1rem; font-size: var(--fs-lg); font-weight: 500; color: var(--ink-2); }
.intro-card__links { list-style: none; display: flex; gap: 0.25rem; margin-top: 1rem; margin-left: -0.5rem; }
.intro-card__links a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--ink); transition: color 0.15s, background-color 0.15s; }
.intro-card__links a:hover { color: var(--forest); background: var(--mint); }
.intro-card__links svg { width: 1.5rem; height: 1.5rem; }
.intro-card__claim { margin-top: auto; padding-top: 1.5rem; font-size: var(--fs-xl); line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }

.tile { position: relative; }
.tile__media {
  display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mint);
}
.tile__media img, .tile__media video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.tile:hover .tile__media img, .tile:hover .tile__media video { transform: scale(1.03); }
.tile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.9rem; }
.tile__title { font-size: var(--fs-lg); }
.tile__title a { text-decoration: none; }
.tile__title a::after { content: ''; position: absolute; inset: 0; }
.tile:hover .tile__title a { color: var(--forest); }
.tile__head .meta { flex-shrink: 0; }
.tile__summary { margin-top: 0.3rem; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; max-width: 42ch; }

/* The one orchestrated moment: intro and tiles settle in on load */
@media (prefers-reduced-motion: no-preference) {
  .home-grid > * { animation: rise-in 0.7s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
  .home-grid > :nth-child(2) { animation-delay: 0.06s; }
  .home-grid > :nth-child(3) { animation-delay: 0.12s; }
  .home-grid > :nth-child(4) { animation-delay: 0.18s; }
  .home-grid > :nth-child(5) { animation-delay: 0.24s; }
  .home-grid > :nth-child(6) { animation-delay: 0.3s; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Section frame: title on the left, content on the right ---------- */

.section {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.section > .section__title { grid-column: 1 / span 4; align-self: start; }
.section > .section__body { grid-column: 5 / -1; }
.section > .section__wide { grid-column: 1 / -1; margin-top: clamp(2.5rem, 5vw, 4rem); }
.section__title p { margin-top: 1rem; color: var(--ink-2); max-width: 30ch; font-size: var(--fs-base); }
@media (min-width: 900px) {
  .section > .section__title { position: sticky; top: calc(var(--header) + 1.5rem); padding-right: 1rem; }
}
div.section__body:not(.prose) > * + * { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Home: about / experience ---------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: var(--section) var(--gap); padding-block: var(--section); border-top: 1px solid var(--line); }
.about h2 { margin-bottom: 1.5rem; }
.about__text { font-size: var(--fs-lg); line-height: 1.55; max-width: 44ch; }
.about__text > * + * { margin-top: 1em; }
.about__text a { color: var(--forest); text-underline-offset: 0.2em; }

.roles { border-top: 1px solid var(--ink); }
.roles li {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 5.5rem; gap: 0.25rem 1.5rem;
  padding-block: 1rem; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.roles a, .roles b { font-weight: 700; text-decoration: none; }
.roles a:hover { color: var(--forest); text-decoration: underline; text-underline-offset: 0.2em; }
.roles .years { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); text-align: right; }

/* ---------- Case page: head ---------- */

.case-head { padding-top: clamp(2rem, 5vw, 4.5rem); }
.case-head__kind { margin-bottom: 1rem; }
.case-head h1 {
  font-size: var(--fs-h1); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em;
  margin-left: -0.04em;
  overflow-wrap: anywhere;
}
.case-head__lede {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em;
  max-width: 28ch;
}

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--ink);
}
.facts:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .facts, .facts:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts, .facts:has(> :nth-child(5)) { grid-template-columns: 1fr; } }
.facts dt { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); margin-bottom: 0.35rem; }
.facts dd { font-size: var(--fs-base); line-height: 1.45; }

.intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.intro .prose { grid-column: 5 / -1; font-size: var(--fs-lg); line-height: 1.55; }

.cover { margin-bottom: var(--section); }
.cover img, .cover video { width: 100%; border-radius: var(--radius); }
.cover--bleed { padding-inline: 0; max-width: none; }
.cover--bleed img { border-radius: 0; max-height: 92vh; object-fit: cover; }

.note {
  grid-column: 5 / -1; margin-top: 1.5rem;
  padding: 1rem 1.25rem; border-left: 3px solid var(--forest); background: var(--mint);
  font-size: var(--fs-sm); max-width: var(--measure);
}

/* ---------- Case page: building blocks ---------- */

/* Titled items: problems, goals, findings */
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.items--one { grid-template-columns: 1fr; max-width: var(--measure); }
.items > li, .items > div { list-style: none; padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--line); }
.items h3 { margin-bottom: 0.4rem; }
.items p + p { margin-top: 0.6rem; }
.items .aside { color: var(--ink-2); font-size: var(--fs-sm); }

/* Numbered steps (only where content is a real sequence) */
.steps { counter-reset: step; list-style: none; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.steps > li::before {
  content: counter(step); grid-row: 1 / span 3;
  font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.04em; color: var(--forest);
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p + p, .steps p + ul, .steps ul + p { margin-top: 0.6rem; }
.steps ul { padding-left: 1.1em; }
.steps li li + li { margin-top: 0.35rem; }

/* Text + image rows that keep the 4 / 8 section split */
.feature {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap);
  align-items: start; padding-block: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line);
}
.feature__text { grid-column: 1 / span 4; }
.feature__text h3 { font-size: var(--fs-xl); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.feature__text p + p { margin-top: 0.6rem; }
.feature__text .why { color: var(--ink-2); }
.feature__media { grid-column: 5 / -1; }
.feature__media img { border-radius: var(--radius); background: var(--white); width: 100%; }
.feature__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }

/* Figures */
.figure img, .figure video { border-radius: var(--radius); width: 100%; background: var(--white); }
.figure figcaption, .gallery figcaption { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--ink-2); }
.figure--framed { background: var(--white); border-radius: var(--radius); padding: clamp(0.75rem, 2vw, 1.5rem); }
.figure--framed img { border-radius: 4px; }

/* Process galleries read left to right, in order */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--gap); }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 0.5rem;
  border-radius: 6px; background: var(--white);
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: start; }

[data-zoom] { cursor: zoom-in; }

/* Numbers */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--gap); }
.metric { border-top: 1px solid var(--ink); padding-top: 1rem; }
.metric__value {
  display: block; font-size: clamp(2.5rem, 1.7rem + 2.8vw, 4.25rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--forest);
}
.metric__label { display: block; margin-top: 0.75rem; font-weight: 600; }
.metric p { margin-top: 0.35rem; color: var(--ink-2); font-size: var(--fs-sm); max-width: 32ch; }

/* People / personas */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.people img { border-radius: 50%; width: min(9rem, 100%); aspect-ratio: 1; object-fit: cover; background: var(--mint); }
.people figcaption { margin-top: 1rem; font-weight: 600; line-height: 1.35; }
.people figcaption span { display: block; color: var(--ink-2); font-weight: 400; }

/* Press / testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--gap); }
.quote { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.quote blockquote { font-size: var(--fs-lg); line-height: 1.4; }
.quote figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; font-size: var(--fs-sm); }
.quote figcaption img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; font-weight: 650; }
.quote figcaption span { color: var(--ink-2); }

/* The one coloured block on a case page */
.takeaway { background: var(--forest); color: var(--paper); }
.takeaway .section { border-top: 0; }
.takeaway h2 { color: var(--paper); }
.takeaway p { font-size: var(--fs-xl); line-height: 1.4; max-width: 40ch; }
.takeaway + .wrap .section, .takeaway + .wrap > .figure { border-top: 0; }

.closing { padding-block: var(--section); }
.closing img { width: 100%; border-radius: var(--radius); }

/* Video embed */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Slides (showcase pages) */
/* Slides (showcase pages): one continuous strip, rounded only at the outer corners */
.slides { display: grid; gap: 0; margin-bottom: var(--section); border-radius: var(--radius); overflow: hidden; }
.slides img, .slides video { width: 100%; height: auto; border-radius: 0; background: var(--white); }
.slides .pair { gap: 0; align-items: stretch; }
.slides .pair > * { height: 100%; object-fit: cover; }

/* ---------- Next project ---------- */

.next {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end;
  padding-block: var(--section); border-top: 1px solid var(--line);
}
.next__text { grid-column: 1 / span 6; display: grid; gap: 0.75rem; justify-items: start; }
.next__label { font-weight: 600; color: var(--ink-2); }
.next__name { font-size: var(--fs-h1); font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; text-decoration: none; transition: color 0.2s; }
.next__summary { font-size: var(--fs-lg); max-width: 36ch; }
.next__all { margin-top: 0.75rem; font-weight: 600; color: var(--forest); text-underline-offset: 0.2em; }
.next__media { grid-column: 7 / -1; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mint); }
.next__media img, .next__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1); }
.next:has(a:hover) .next__name { color: var(--forest); }
.next:has(a:hover) .next__media img, .next:has(a:hover) .next__media video { transform: scale(1.03); }
@media (max-width: 899px) {
  .next { grid-template-columns: 1fr; }
  .next__text, .next__media { grid-column: 1 / -1; }
  .next__media { grid-row: 1; }
}

/* ---------- Contact footer ---------- */

.contact { background: var(--ink); color: var(--paper); }
.contact__grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.contact__title { font-size: var(--fs-h2); }
.contact__kicker { margin-bottom: 0.4rem; color: rgb(243 244 240 / 0.7); font-size: var(--fs-lg); }
.contact__links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Home already shows contacts in the intro, so only the bottom line remains */
.home .contact__grid { display: none; }
.home .contact__base { border-top: 0; }
.contact .btn { color: var(--paper); }
.contact .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.contact .btn--solid { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.contact .btn--solid:hover { background: var(--mint); border-color: var(--mint); }
.contact :focus-visible { outline-color: var(--mint); }
.contact__base {
  display: flex; justify-content: space-between; gap: 0.5rem 1.5rem; flex-wrap: wrap;
  padding-block: 1.5rem; border-top: 1px solid rgb(243 244 240 / 0.18);
  font-size: var(--fs-sm); color: rgb(243 244 240 / 0.7);
}

/* ---------- Lightbox ---------- */

.zoom {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 3vw, 2.5rem);
  border: 0; background: transparent; display: none; place-items: center;
}
.zoom[open] { display: grid; }
.zoom::backdrop { background: rgb(24 33 28 / 0.92); }
.zoom img { max-width: 100%; max-height: calc(100dvh - 5rem); width: auto; height: auto; border-radius: 6px; background: var(--white); }
.zoom__close {
  position: fixed; top: 1rem; right: 1rem; z-index: 1;
  font: inherit; font-weight: 600; color: var(--paper); background: rgb(243 244 240 / 0.12);
  border: 1px solid rgb(243 244 240 / 0.3); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer;
}
.zoom__close:hover { background: rgb(243 244 240 / 0.24); }
@media (prefers-reduced-motion: no-preference) {
  .zoom[open] img { animation: zoom-in 0.28s cubic-bezier(0.2, 0.7, 0.1, 1); }
  .zoom[open]::backdrop { animation: fade 0.2s ease-out; }
}
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- 404 ---------- */
.missing { padding-block: var(--section); min-height: 50vh; }
.missing h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.045em; }
.missing p { margin-top: 1.5rem; font-size: var(--fs-xl); }

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

@media (max-width: 899px) {
  .section, .intro, .feature, .contact__grid, .about { grid-template-columns: 1fr; }
  .section > .section__title, .section > .section__body, .section > .section__wide,
  .intro .prose, .note, .feature__text, .feature__media, .contact__title, .contact__body { grid-column: 1 / -1; grid-row: auto; }
  .section__title { margin-bottom: 2rem; }
  .home-grid { grid-template-columns: 1fr 1fr; }
  .intro-card { grid-column: 1 / -1; padding-bottom: 1rem; }
  .intro-card__claim { max-width: 24ch; }
  .items { grid-template-columns: 1fr; }
  .quad { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: 1fr; }
  .contact__grid { gap: 1.5rem; }
}
@media (max-width: 560px) {
  :root { --fs-base: 1rem; }
  .top__nav a:first-child { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .pair, .feature__media--pair { grid-template-columns: 1fr; }
  .roles li { grid-template-columns: minmax(0, 1fr) auto; }
  .roles li > span:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--ink-2); }
  .roles .years { grid-row: 1 / span 2; grid-column: 2; }
  .people { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .people figcaption { font-size: var(--fs-sm); }
}

/* Small uniform thumbnails (process snapshots) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tiles img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; width: 100%; background: var(--white); }
@media (max-width: 899px) { .tiles { grid-template-columns: 1fr 1fr; } }

/* Utilities used by page templates */
.section > .section__wide--flush { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
/* Full-width rows would slide under a sticky title */
.section:has(> .section__wide) > .section__title { position: static; }
.trio .figure img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.section__title .meta { margin-bottom: 0.75rem; }
.section__body h3 + .people, .section__body h3 + .items { margin-top: 1.25rem; }
.figure figcaption h3 { color: var(--ink); margin-bottom: 0.35rem; }
.figure--small { max-width: 26rem; }
.case-head + .slides-wrap { margin-top: clamp(2.5rem, 5vw, 4rem); }
.callout {
  font-size: var(--fs-xl); line-height: 1.4; max-width: 40ch;
  padding-left: 1.25rem; border-left: 3px solid var(--forest);
}
.metrics:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .metrics, .metrics:has(> :nth-child(4)) { grid-template-columns: 1fr; } }

.contact__base a { color: inherit; text-underline-offset: 0.2em; }
.contact__base a:hover { color: var(--paper); }

/* Click-to-load video */
.embed { display: grid; place-items: center; }
.embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.embed__play { position: relative; }
.embed__note { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: var(--fs-sm); color: rgb(243 244 240 / 0.75); }

/* Password-protected case */
.locked { padding-block: clamp(2rem, 5vw, 4.5rem) var(--section); }
.locked h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.045em; margin-left: -0.04em; }
.unlock { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--ink); max-width: 40rem; }
.unlock label { display: block; margin-top: 1.5rem; font-weight: 700; font-size: var(--fs-sm); }
.unlock__row { display: flex; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }
.unlock input {
  flex: 1 1 14rem; min-height: 2.875rem; padding: 0 1rem; font: inherit;
  border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink);
}
.unlock input:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.unlock .btn { cursor: pointer; font: inherit; font-weight: 600; }
.unlock__error { margin-top: 0.75rem; color: #9B2C1F; font-weight: 600; }

/* Legal page */
.legal { padding-block: clamp(2rem, 5vw, 4.5rem) var(--section); }
.legal h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.045em; margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal .prose h2 { font-size: var(--fs-lg); letter-spacing: -0.01em; margin-top: 2.25em; }
.legal .prose h2 + * { margin-top: 0.5em; }
.legal address { font-style: normal; }

/* Draft placeholders (only visible in `node build.mjs --drafts`) */
.todo { background: #FFF1A8; color: #5A4A00; }
