/* ==== FONTS ==== */
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/Newsreader-italic-400.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: 'Newsreader'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/Newsreader-normal-400.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: 'Hanken Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/HankenGrotesk-normal-400.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: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/DMMono-normal-400.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; }

/* metric-matched fallbacks so the swap causes no layout shift */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 104%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 98%; ascent-override: 93%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "DM Mono Fallback"; src: local("Menlo"), local("Consolas"), local("Courier New"); size-adjust: 100%; ascent-override: 96%; descent-override: 26%; line-gap-override: 0%; }
/* ==== /FONTS ==== */

/* ==========================================================================
   McWilliam Photography — "Slow Light"
   paper ground · night-sky ink · one sienna accent · photographs supply the colour
   ========================================================================== */
:root {
  /* paper */
  --paper: #F7F4EE; --paper-2: #EFEAE1; --paper-3: #E6E0D4;
  --ink: #17202B; --ink-2: #3B4552; --ink-3: #5C6572;
  --rule: #E1DCD2; --rule-strong: #B9B3A6;
  --accent: #9E5026; --accent-deep: #7F3F1D; --accent-tint: #F0E3D6;
  --violet: #5B4B8A; --danger: #A33A2A; --success: #3E6B4A;
  /* night */
  --night: #0F131A; --night-2: #161C25; --night-ink: #ECE7DD; --night-ink-2: #C9C3B8; --night-ink-3: #9A948A;
  --night-rule: #232A35; --night-rule-strong: #3A4350; --night-accent: #D08A55; --night-violet: #A99BD6;
  /* semantic (remapped by .night) */
  --bg: var(--paper); --bg-2: var(--paper-2); --bg-3: var(--paper-3); --fg: var(--ink); --fg-2: var(--ink-2); --fg-3: var(--ink-3);
  --line: var(--rule); --line-strong: var(--rule-strong); --link: var(--accent); --link-deep: var(--accent-deep); --tag: var(--violet);
  /* type */
  --font-display: "Newsreader", "Newsreader Fallback", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", "Hanken Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", "DM Mono Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.8125rem, 0.792rem + 0.093vw, 0.875rem);
  --step-0: clamp(1rem, 0.958rem + 0.185vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.042rem + 0.37vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.208rem + 0.74vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.458rem + 1.3vw, 2.625rem);
  --step-4: clamp(2.25rem, 1.75rem + 2.22vw, 3.75rem);
  --step-5: clamp(2.75rem, 1.833rem + 4.07vw, 5.5rem);
  --lh-body: 1.62;
  /* space & layout */
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem); --col-gap: clamp(1rem, 2vw, 2rem);
  --w-prose: 66ch; --w-content: 72rem; --w-wide: 84rem;
  --header-h: 4.5rem; --face: 44px; --brand-size: 1.375rem;
  --row: clamp(180px, 22vw, 320px); --gap: clamp(6px, 1vw, 14px);
  --radius: 2px; --ring: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-strong);
  --ease: cubic-bezier(.2, .6, .2, 1); --t-fast: 180ms; --t-med: 250ms; --t-slow: 700ms;
  color-scheme: light;
}
.night { --bg: var(--night); --bg-2: var(--night-2); --bg-3: #1d242f; --fg: var(--night-ink); --fg-2: var(--night-ink-2); --fg-3: var(--night-ink-3); --line: var(--night-rule); --line-strong: var(--night-rule-strong); --link: var(--night-accent); --link-deep: #e3a06c; --tag: var(--night-violet); background: var(--bg); color: var(--fg-2); color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--fg-2); font-family: var(--font-sans); font-size: var(--step-0); line-height: var(--lh-body); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
/* paper grain: a static tiled SVG noise (ink at 5% alpha) baked into the ground; photographs sit above it */
body, .night { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .09 0 0 0 0 .125 0 0 0 0 .17 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
.r-1500 { --r: 1.500; } .r-750 { --r: 0.750; } .r-470 { --r: 0.470; } .r-552 { --r: 0.552; } .r-438 { --r: 0.438; } .r-488 { --r: 0.488; } .r-667 { --r: 0.667; } .r-1496 { --r: 1.496; } .r-562 { --r: 0.562; } .r-666 { --r: 0.666; } .r-600 { --r: 0.600; } .r-1778 { --r: 1.778; }
.ar-3-2 { --ar: 3 / 2; } .ar-4-5 { --ar: 4 / 5; } .ar-1-1 { --ar: 1 / 1; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--fg); margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.08; letter-spacing: -.015em; }
h2 { font-size: var(--step-3); line-height: 1.15; letter-spacing: -.008em; }
h3 { font-size: var(--step-2); line-height: 1.22; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent-tint); color: var(--ink); }
.night ::selection { background: var(--night-rule-strong); color: var(--night-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .6rem 1rem; background: var(--ink); color: var(--paper); font-weight: 500; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; }
.mono { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.muted { color: var(--fg-3); }
.small { font-size: var(--step--1); }
.eyebrow { font-family: var(--font-sans); font-size: var(--step--2); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 .6rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--w-content)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), var(--w-prose)); }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--w-wide)); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .5); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 2rem; }
.prose { max-width: var(--w-prose); }
.prose p { text-wrap: pretty; }
:where(.prose, .lede, .dek, .credit, .glance, .socket, .form-note, .contact-copy) a:not(.btn) { color: var(--fg); text-decoration: underline; text-decoration-color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color var(--t-fast), text-decoration-thickness var(--t-fast); }
:where(.prose, .lede, .dek, .glance, .socket, .contact-copy) a:not(.btn):hover { color: var(--link); text-decoration-thickness: 2px; }
.lede { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.45; color: var(--fg); text-wrap: pretty; }
.dek { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); line-height: 1.45; color: var(--fg-2); max-width: 40ch; text-wrap: pretty; }
.drop-cap::first-letter { font-family: var(--font-display); font-weight: 500; font-size: 3.1em; line-height: .85; float: left; padding: .08em .12em 0 0; color: var(--fg); }
.text-link { font-family: var(--font-sans); font-weight: 500; font-size: var(--step--1); letter-spacing: .01em; color: var(--fg); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.text-link:hover { color: var(--link); border-bottom-color: var(--link); }
.btn { display: inline-flex; align-items: center; gap: .25rem; min-height: 48px; padding: .7rem 1.35rem; font-family: var(--font-sans); font-weight: 500; font-size: var(--step--1); letter-spacing: .01em; text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.btn-primary, a.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover, a.btn-primary:hover { background: var(--accent); color: var(--paper); }
.night .btn-primary { background: var(--night-ink); color: var(--night); }
.night .btn-primary:hover { background: var(--night-accent); color: var(--night); }
.btn-secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn-secondary:hover { background: var(--fg); color: var(--bg); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.tag { color: var(--tag); font-weight: 500; }

/* ---------- Department heads, credits, TOC ---------- */
.dept { border-top: 2px solid var(--fg); padding-top: .9rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.dept-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.dept h2 { margin-bottom: 0; }
.section-tight .dept h2 { font-size: var(--step-2); }
.dept h2 a { text-decoration: none; }
.dept h2 a:hover { color: var(--link); }
.dept-link { font-family: var(--font-sans); font-weight: 500; font-size: var(--step--1); color: var(--fg); text-decoration: none; padding-bottom: .35rem; border-bottom: 2px solid transparent; }
.dept-link:hover { color: var(--link); border-bottom-color: var(--link); }
.dept-dek { margin: 0; max-width: 36ch; text-align: right; }
.credit { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; padding: .75rem 0; margin: 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); color: var(--fg-3); }
.credit-title { color: var(--fg-2); }
.credit-meta { white-space: nowrap; }
.toc { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.toc li { display: flex; align-items: baseline; gap: .9rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.toc li:first-child { border-top: 1px solid var(--line); }
.toc a { font-family: var(--font-display); font-size: var(--step-1); color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--link); }
.toc-num { min-width: 2ch; }
.leader { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-.35em); min-width: 1.5rem; }
.toc-count { text-align: right; }
.stat-strip { display: block; text-align: center; padding: .9rem 0; margin: 2rem 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); letter-spacing: .02em; word-spacing: .1em; text-wrap: balance; }
.hint { margin: 1.25rem 0 0; }
.meta-line { margin-top: .5rem; }

/* ---------- Header / masthead ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: var(--header-h); width: min(100% - 2 * var(--gutter), var(--w-wide)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--fg); text-decoration: none; }
.brand-face img { width: var(--face); height: var(--face); border-radius: 50%; object-fit: cover; box-shadow: var(--ring); flex: none; transition: width var(--t-med) var(--ease), height var(--t-med) var(--ease); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: var(--brand-size); letter-spacing: -.012em; transition: font-size var(--t-med) var(--ease); }
.brand-c { font-size: .62em; vertical-align: .42em; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .08em; margin-right: -.02em; }
.brand-type { font-family: var(--font-sans); font-weight: 500; font-size: .625rem; letter-spacing: .235em; text-transform: uppercase; color: var(--fg-3); margin-top: .35em; padding-left: .05em; }
.brand-small { --face: 40px; --brand-size: 1.25rem; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.site-nav ul a { display: inline-block; padding: .4rem 0; font-family: var(--font-sans); font-weight: 500; font-size: var(--step--1); letter-spacing: .01em; color: var(--fg-2); text-decoration: none; border-bottom: 2px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.site-nav ul a:hover { color: var(--fg); border-bottom-color: var(--link); }
.site-nav ul a[aria-current=page] { color: var(--fg); border-bottom-color: var(--link); }
.yt-link { display: inline-flex; align-items: center; gap: .45rem; padding-left: 1.5rem; border-left: 1px solid var(--line); height: 24px; font-family: var(--font-sans); font-weight: 500; font-size: var(--step--1); color: var(--fg-2); text-decoration: none; }
.yt-link .icon { width: 18px; height: 18px; transition: color var(--t-fast); }
.yt-link:hover .icon { color: #FF0033; }
.yt-link:hover span { text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: .18em; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .25rem; background: none; border: 0; color: var(--fg); font: 500 var(--step--1) var(--font-sans); cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; position: relative; transition: transform var(--t-med) var(--ease), background var(--t-fast); }
.nav-toggle-bar::before { position: absolute; top: -6px; } .nav-toggle-bar::after { position: absolute; top: 6px; }
@media (max-width: 64em) {
  .yt-link span { display: none; }
  .yt-link { padding-left: 1rem; }
  .site-nav ul { gap: 1.25rem; }
}
@media (max-width: 52em) {
  :root { --header-h: 3.75rem; --face: 38px; --brand-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.5rem; max-height: calc(100dvh - var(--header-h)); overflow: auto; }
  .nav-open .site-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--step-3); padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current=page] { color: var(--link); border-bottom-color: var(--line); }
  .yt-link { border: 0; padding: 1rem 0 0; height: auto; font-size: var(--step-0); }
  .yt-link span { display: inline; }
  .nav-open .nav-toggle-bar { background: transparent; }
  .nav-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 22em) { .brand-type { display: none; } }

/* ---------- Cover (home, 404) ---------- */
.cover { position: relative; display: grid; align-items: end; height: clamp(480px, 78svh, 880px); isolation: isolate; color: var(--paper); }
.cover-media { position: absolute; inset: 0; z-index: -1; }
.cover-media picture, .cover-media img, .cover-media .photo { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; margin: 0; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 14, 20, .78), rgba(11, 14, 20, .35) 40%, transparent 70%); }
.cover-content { padding-block: clamp(2rem, 5vw, 4rem); }
.cover-title { margin: 0 0 .6rem; color: var(--paper); display: flex; flex-direction: column; gap: .35rem; }
.cover-kicker { font-family: var(--font-sans); font-weight: 600; font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 244, 238, .85); }
.cover-name { font-family: var(--font-display); font-weight: 400; font-size: var(--step-5); line-height: 1.02; letter-spacing: -.02em; }
.cover-line { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); line-height: 1.4; color: rgba(247, 244, 238, .9); max-width: 34ch; margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
@media (max-width: 40em) {
  .cover { height: auto; display: block; color: var(--fg); }
  .cover-media { position: static; aspect-ratio: 4 / 5; }
  .cover-media picture, .cover-media img { height: 100%; object-position: center; }
  .cover::after { display: none; }
  .cover-title, .cover-name { color: var(--fg); }
  .cover-kicker { color: var(--fg-3); }
  .cover-line { color: var(--fg-2); text-shadow: none; }
  .cover-content { padding-block: 1.5rem .5rem; }
}
.cover-404 { min-height: 70svh; }
.nf-num { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(6rem, 18vw, 14rem); line-height: .9; margin: 0 0 .5rem; color: rgba(247, 244, 238, .9); letter-spacing: -.04em; }
.page-404 .cover-404 .cover-line { color: rgba(247, 244, 238, .9); }
.page-404 .cover-404 .actions .text-link { color: var(--paper); }
.page-404 .cover-404 h1 { color: var(--paper); font-size: var(--step-3); }
@media (max-width: 40em) { .page-404 .cover-404 h1, .page-404 .cover-404 .cover-line, .page-404 .cover-404 .actions .text-link, .nf-num { color: var(--fg); } }

/* ---------- Home sections ---------- */
.welcome-head { grid-column: 1 / span 4; }
.welcome-head { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.welcome-head h2 { margin-bottom: .25rem; }
.notes { margin-top: 1.5rem; }
.notes div { grid-template-columns: 7.5rem 1fr; }
.welcome-copy { grid-column: 6 / span 7; }
@media (max-width: 52em) { .welcome-head, .welcome-copy { grid-column: 1 / -1; } .welcome-head { position: static; } .notes { order: 2; } }
.collection-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3rem var(--col-gap); }
.collection-card { grid-column: span 3; }
.collection-card.is-wide { grid-column: span 6; }
.collection-card a { display: block; text-decoration: none; color: var(--fg); }
.card-media { margin: 0; aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1px rgba(23, 32, 43, .08); }
.card-media .photo { margin: 0; height: 100%; }
.card-media picture, .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.collection-card a:hover img { transform: scale(1.02); }
.card-text { display: grid; gap: .3rem; padding-top: .9rem; }
.card-folio { display: flex; gap: .75rem; }
.card-title { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); line-height: 1.2; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .12em; transition: text-decoration-color var(--t-fast); }
.collection-card a:hover .card-title { text-decoration-color: var(--link); }
@media (max-width: 64em) { .collection-card, .collection-card.is-wide { grid-column: span 6; } .card-media { --ar: 4/5; } }
@media (max-width: 40em) { .collection-card { grid-column: span 6; } .collection-card.is-wide { grid-column: 1 / -1; } .collection-card.is-wide .card-media { --ar: 3/2; } .collection-grid { gap: 2rem 1rem; } .collection-card .card-title { font-size: var(--step-1); overflow-wrap: anywhere; } .collection-card.is-wide .card-title { font-size: var(--step-2); } }
.feature-list { display: grid; }
.feature { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 1.5rem; align-items: center; padding-block: clamp(2rem, 4vw, 4rem); border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature-media { grid-column: 1 / span 7; }
.feature-body { grid-column: 9 / span 4; }
.feature.is-flipped .feature-media { grid-column: 6 / span 7; order: 2; }
.feature.is-flipped .feature-body { grid-column: 1 / span 4; }
.feature-media .photo { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--bg-2); }
.feature-media picture, .feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body h3 { margin-top: .35rem; }
.feature-body .text-link { display: inline-block; margin-top: .5rem; }
@media (max-width: 52em) { .feature-media, .feature-body, .feature.is-flipped .feature-media, .feature.is-flipped .feature-body { grid-column: 1 / -1; order: 0; } }
.band { margin-top: var(--section); }
.video-layout { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 2rem; align-items: start; }
.video-frame { grid-column: 1 / span 7; }
.video-list { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
@media (max-width: 52em) { .video-frame, .video-list { grid-column: 1 / -1; } }
.yt-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--bg-2); cursor: pointer; overflow: hidden; border-radius: var(--radius); }
.yt-facade picture, .yt-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.yt-facade:hover img { transform: scale(1.02); }
.yt-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--night-ink); color: var(--paper); display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.yt-play .icon { width: 30px; height: 30px; margin-left: 3px; }
.yt-facade:hover .yt-play { background: var(--paper); color: var(--night); transform: scale(1.06); }
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-meta { margin: .75rem 0 0; }
.video-list a { display: grid; grid-template-columns: auto 112px 1fr; gap: .9rem; align-items: center; padding: .75rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: background var(--t-fast); }
.video-list a:hover { background: var(--bg-2); }
.video-list picture, .video-list img { width: 112px; height: 63px; object-fit: cover; border-radius: var(--radius); }
.video-title { font-weight: 500; font-size: var(--step--1); line-height: 1.35; }
.video-list a:hover .video-title { text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: .18em; }
.video-date { grid-column: 3; }
.connect { text-align: left; }
.connect .lede { max-width: 52ch; }

/* ---------- Social ---------- */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--fg-3); transition: color var(--t-fast); }
.social a:hover { color: var(--fg); }
.social .icon { width: 20px; height: 20px; }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 3vw, 2rem); }
.page-head h1 { margin-bottom: .35em; }
.page-head .dek { margin-bottom: .5em; }
.breadcrumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--step--1); color: var(--fg-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--link); text-decoration: underline; text-underline-offset: .18em; }
.breadcrumbs [aria-current] { color: var(--fg-2); }

/* ---------- Gallery: justified rows, no JS ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.gallery > li { display: contents; }
.gallery::after { content: ""; flex: 999 1 auto; }
.gallery .photo { margin: 0; flex: var(--r) 1 calc(var(--r) * var(--row)); max-width: 100%; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px rgba(23, 32, 43, .08); }
.night .gallery .photo, .lightbox .photo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.gallery .photo picture, .gallery .photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery .photo img { aspect-ratio: var(--r); transition: transform var(--t-slow) var(--ease); }
.gallery .photo:hover img { transform: scale(1.02); }
.photo-link { display: block; height: 100%; }
.photo-link:focus-visible { outline-offset: -3px; }
.photo-caption { position: absolute; left: .6rem; right: .6rem; bottom: .6rem; margin: 0; pointer-events: none; opacity: 0; transition: opacity var(--t-fast); }
.chip { display: inline-block; padding: .3rem .5rem; border-radius: var(--radius); background: rgba(15, 19, 26, .72); color: var(--night-ink); font-size: var(--step--2); white-space: normal; line-height: 1.35; }
.photo:hover .photo-caption, .photo:focus-within .photo-caption { opacity: 1; }
@media (hover: none) { .photo-caption { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 1; } }
@media (max-width: 40em) { :root { --row: 150px; } .gallery .photo.is-portrait { min-width: 26%; } }
.gallery-lead .photo { flex: 1 1 100%; max-height: 82svh; background: var(--bg-2); }
.gallery-lead .photo img { aspect-ratio: auto; height: auto; max-height: 82svh; object-fit: contain; width: 100%; }
.gallery-lead .photo:hover img { transform: none; }
.opening { margin-top: .5rem; }
.see-all { margin: 1.25rem 0 0; text-align: right; }
.spread + .spread { border-top: 1px solid var(--line); }
.spread .gallery { --row: clamp(150px, 15vw, 230px); }
.page-collection .gallery:not(.gallery-lead) { --row: clamp(170px, 17vw, 250px); }
.page-about .gallery { --row: clamp(170px, 17vw, 250px); }
.notes-list { list-style: none; margin: 0; padding: 0; }
.notes-list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.notes-list li:first-child { border-top: 1px solid var(--line); }
.notes-list li:target { background: var(--bg-2); }
.note-title { font-family: var(--font-display); font-size: var(--step-1); color: var(--fg); text-decoration: none; }
.note-title:hover { color: var(--link); }
.notes-list p { margin: .25rem 0 0; font-size: var(--step--1); color: var(--fg-2); max-width: 66ch; }
.note-meta { color: var(--fg-3); }
.collection-nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; border-top: 1px solid var(--line); padding-top: 2rem; }
.collection-nav-link { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--fg); }
.collection-nav-link > span { display: grid; gap: .15rem; }
.collection-nav-link .nav-title { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.collection-nav-link:hover .nav-title { color: var(--link); }
.nav-thumb .photo { margin: 0; width: 96px; height: 64px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.nav-thumb picture, .nav-thumb img { width: 100%; height: 100%; object-fit: cover; }
.collection-nav-link.is-next { justify-self: end; text-align: right; }
.collection-nav-link.is-all { justify-self: center; }
@media (max-width: 40em) { .collection-nav .wrap { grid-template-columns: 1fr; } .collection-nav-link.is-next { justify-self: start; text-align: left; flex-direction: row-reverse; } .collection-nav-link.is-all { justify-self: start; } }

/* ---------- Lightbox (native dialog, night) ---------- */
.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--night); color: var(--night-ink-2); display: grid; grid-template-rows: 56px minmax(0, 1fr) auto; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(15, 19, 26, .9); }
.lb-backdrop { position: absolute; inset: 56px 0 0; }
.lb-figure { display: contents; margin: 0; }
.lb-stage { position: relative; grid-row: 2; align-self: center; justify-self: center; aspect-ratio: var(--ar, 3 / 2); height: 100%; max-height: 100%; width: auto; max-width: 100%; background: #000; }
.lb-img { width: 100%; height: 100%; object-fit: contain; transition: opacity 200ms; }
.is-loading .lb-img { opacity: .25; }
.lb-spinner { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--night-accent); animation: sweep 1s linear infinite; display: none; }
.is-loading .lb-spinner { display: block; }
@keyframes sweep { from { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } to { transform: scaleX(0); transform-origin: right; } }
.lb-caption { grid-row: 3; min-height: 0; padding: .9rem calc(var(--gutter) + 56px); display: grid; grid-template-columns: 1fr auto; gap: .25rem 2rem; align-items: center; background: var(--night-2); font-size: var(--step--1); }
.lb-title { font-family: var(--font-display); font-size: var(--step-1); color: var(--night-ink); grid-column: 1; }
.lb-text { grid-column: 1; color: var(--night-ink-2); text-wrap: pretty; max-width: 72ch; }
.lb-meta { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-mono); font-size: var(--step--2); color: var(--night-ink-3); white-space: nowrap; }
.lb-btn { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: transparent; color: var(--night-ink); border: 1px solid var(--night-rule-strong); display: grid; place-items: center; cursor: pointer; opacity: .6; transition: opacity var(--t-fast), background var(--t-fast); }
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; background: var(--night-2); }
.lb-btn:disabled { opacity: .2; pointer-events: none; }
.lb-close { top: 4px; right: var(--gutter); }
.lb-prev { left: var(--gutter); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--gutter); top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; top: 0; left: var(--gutter); height: 56px; display: flex; align-items: center; font-family: var(--font-mono); font-size: var(--step--2); color: var(--night-ink-3); letter-spacing: .08em; }
@media (hover: none) { .lb-prev, .lb-next { display: none; } .lb-caption { padding-inline: var(--gutter); } }
@media (max-width: 40em) { .lb-caption { grid-template-columns: 1fr; padding-inline: var(--gutter); } .lb-meta { grid-column: 1; grid-row: auto; white-space: normal; } .lb-close { right: .5rem; } }

/* ---------- About / glance ---------- */
.about-portrait { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
.about-copy { grid-column: 7 / span 6; }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); aspect-ratio: var(--ar); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.glance { margin: 1.5rem 0 0; }
.glance div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.glance div:first-child { border-top: 1px solid var(--line); }
.glance dt { font-family: var(--font-mono); font-size: var(--step--2); color: var(--fg-3); }
.glance dd { margin: 0; color: var(--fg); }
.signoff { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); }
@media (max-width: 52em) { .about-portrait, .about-copy { grid-column: 1 / -1; position: static; } .about-portrait { max-width: 30rem; } }

/* ---------- Contact ---------- */
.contact-copy { grid-column: 1 / span 5; }
.contact-form { grid-column: 7 / span 6; }
@media (max-width: 52em) { .contact-copy, .contact-form { grid-column: 1 / -1; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 40em) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-family: var(--font-sans); font-weight: 500; font-size: var(--step--1); color: var(--fg); }
.field-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
input, textarea, button { font: inherit; }
input[type=text], input[type=email], textarea { width: 100%; min-height: 48px; padding: .7rem .875rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); color: var(--fg); transition: border-color var(--t-fast); }
input:hover, textarea:hover { border-color: var(--fg-3); }
input:focus, textarea:focus { outline: 2px solid var(--link); outline-offset: 2px; border-color: var(--fg); }
textarea { resize: vertical; min-height: 9rem; }
.alert { display: none; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--radius); font-size: var(--step--1); background: var(--bg-2); color: var(--danger); border: 1px solid var(--danger); }
.alert:target { display: block; }
.form-status { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--radius); font-size: var(--step--1); }
.form-status:empty { display: none; }
.form-status.is-ok { background: var(--bg-2); color: var(--success); border: 1px solid var(--success); font-family: var(--font-display); font-style: italic; font-size: var(--step-1); }
.form-status.is-error { background: var(--bg-2); color: var(--danger); border: 1px solid var(--danger); }
.form-note { margin: 1rem 0 0; }
.success-mark { display: inline-grid; place-items: center; width: 1em; height: 1em; color: var(--success); vertical-align: -.1em; }

/* ---------- Documents (privacy, licensing, sitemap) ---------- */
.document h2 { font-size: var(--step-2); margin-top: 2em; }
.sitemap h2 { font-size: var(--step-2); margin-top: 1.5em; }

/* ---------- Footer colophon ---------- */
.site-footer { margin-top: var(--section); background: var(--bg-2); border-top: 1px solid var(--line-strong); position: relative; }
.site-footer::before { content: ""; position: absolute; top: 3px; left: 0; right: 0; height: 3px; background: var(--fg); }
.footer-inner { width: min(100% - 2 * var(--gutter), var(--w-content)); margin-inline: auto; padding: clamp(3rem, 6vw, 5rem) 0 2rem; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 2.5rem; font-size: var(--step--1); color: var(--fg-2); }
.footer-brand { grid-column: 1 / span 5; }
.footer-tag { max-width: 36ch; margin: 1rem 0 1.25rem; color: var(--fg-3); }
.footer-col { grid-column: span 2; }
.footer-col:nth-of-type(1) { grid-column: 7 / span 2; }
.footer-col ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-col a { text-decoration: none; color: var(--fg-2); }
.footer-col a:hover { color: var(--fg); text-decoration: underline; text-decoration-color: var(--link); text-underline-offset: .18em; }
.footer-col a[aria-current=page] { color: var(--fg); }
.socket { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.socket p { margin: 0; }
.socket .to-top { margin-left: 1.5rem; }
@media (max-width: 52em) { .footer-brand, .footer-col, .footer-col:nth-of-type(1) { grid-column: 1 / -1; } .footer-inner { row-gap: 2rem; } }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .gallery .photo:hover img, .collection-card a:hover img, .yt-facade:hover img { transform: none; }
}
@media print { .site-header, .site-footer, .nav-toggle, .lightbox, .yt-play { display: none !important; } body { background: #fff; color: #000; } body::before { display: none; } }
