/* Gil Mebane site, v5. Spec-sheet / telemetry: white and black panels, condensed caps, mono data labels, cyan accent, pixel-dissolve images. */
:root {
  --white: #f4f4f1; --black: #0a0a0a; --ink: #0a0a0a; --ink-2: #5a5a57; --rule: rgba(10,10,10,0.16);
  --accent: #1ee3d6; --accent-ink: #0a0a0a;
  --bg: var(--white); --text: var(--ink); --muted: var(--ink-2); --line: var(--rule);
  --cond: 'Anton', Impact, 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --display: 'Archivo', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --body: 'Space Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
  --panel: #e7e6e1;
  --surface: transparent; --surface-solid: var(--white); --border: var(--rule); --blue-bg: transparent; --blue-fg: var(--ink); --gray-bg: transparent; --gray-fg: var(--ink-2); --radius: 0; --radius-sm: 0; --shadow: none;
}
:root[data-theme='dark'] { --panel: #161616; --white: #0a0a0a; --black: #f4f4f1; --ink: #f4f4f1; --ink-2: #a3a39e; --rule: rgba(244,244,241,0.18); --bg: var(--white); --text: var(--ink); --muted: var(--ink-2); --line: var(--rule); --surface-solid: var(--white); color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0 0 0.4em; text-wrap: balance; }
h1, h2, .cond { font-family: var(--cond); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.88; }
h1 { font-size: clamp(3.4rem, 11vw, 10rem); }
h2 { font-size: clamp(2.4rem, 6.4vw, 6rem); }
h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.05; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; max-width: 40ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.wrap { width: min(1520px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow, .folio, .label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.label b { color: var(--ink); font-weight: 500; }
.grad { color: var(--accent); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.bg, .lg-defs, .ticker, .hero-badge { display: none; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Panels: the page alternates white and black */
.panel { position: relative; }
.panel-dark { background: #0a0a0a; color: #f4f4f1; --ink: #f4f4f1; --ink-2: #9a9a95; --rule: rgba(244,244,241,0.18); --white: #0a0a0a; --black: #f4f4f1; }
:root[data-theme='dark'] .panel-dark { background: #f4f4f1; color: #0a0a0a; --ink: #0a0a0a; --ink-2: #5a5a57; --rule: rgba(10,10,10,0.16); --white: #f4f4f1; --black: #0a0a0a; }

/* Masthead nav: a thin data bar */
.nav { position: sticky; top: 0; z-index: 50; mix-blend-mode: difference; color: #fff; pointer-events: none; transition: background 0.2s; }
.nav.solid { mix-blend-mode: normal; background: #0a0a0a; color: #f4f4f1; }
.nav.solid .nav-inner { pointer-events: auto; }
.nav-inner { width: min(1520px, 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; height: 54px; gap: 16px; }
.nav-inner > * { pointer-events: auto; }
.brand { font-family: var(--cond); font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a, .dd-btn { font: inherit; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; color: inherit; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a[aria-current='page'], .dd-btn[aria-current='page'] { text-decoration: underline; text-underline-offset: 5px; }
.nav-links a.btn { border: 1px solid currentColor; padding: 7px 12px; min-height: 0; margin-left: 6px; }
.nav-links a.btn::after { content: none; }
.nav-links a.btn:hover { background: #fff; color: #000; }
.menu { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; position: relative; color: inherit; }
.menu span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; top: 18px; }
.menu span + span { top: 26px; }
.theme, .search-btn { font: inherit; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; height: 40px; padding: 0 8px; border: 0; background: none; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.search-btn { margin-left: auto; }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #0a0a0a; color: #f4f4f1; padding: 8px 0; z-index: 60; border: 1px solid rgba(244,244,241,0.25); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 16px; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: #f4f4f1; color: #0a0a0a; }

/* Buttons: mono, outlined */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 18px; color: var(--ink); background: none; border: 1px solid var(--ink); cursor: pointer; min-height: 44px; transition: background 0.2s, color 0.2s; }
.btn::after { content: '\2192'; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--rule); }
.btn-small { padding: 6px 12px; min-height: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.link-arrow, .more { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow:hover, .more:hover, a:hover .more { color: var(--accent); border-color: var(--accent); }
.panel-dark .btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }

/* Section rhythm */
.section { padding: clamp(64px, 9vw, 140px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 56px); max-width: 1000px; }
.section-head h2 { color: var(--accent); }
.section-head .lead { color: var(--ink-2); }
.card, .glass { background: none; border: 0; box-shadow: none; }

/* Data rows: mono labels and values in a strip */
.data { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.data > div { padding: 14px 16px 14px 0; border-right: 1px solid var(--rule); margin-right: 16px; }
.data > div:last-child { border-right: 0; margin-right: 0; }
.data b { display: block; font-family: var(--cond); font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1; letter-spacing: 0.01em; margin-bottom: 6px; font-weight: 400; }
.data span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); display: block; line-height: 1.5; }
.data span.sub { text-transform: none; letter-spacing: 0; }

/* Tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 14px 0 0; }
.tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 0; border: 0; background: none; }
.tag-blue { color: var(--ink); }
.tag-cloud { margin: 24px 0 0; gap: 8px 18px; }
.tag-cloud .tag-n { color: var(--accent); margin-left: 2px; }
.tag-blue::before { content: '\25A0'; color: var(--accent); font-size: 0.7em; vertical-align: 0.1em; margin-right: 0.55em; display: inline-block; }
a.tag:hover { color: var(--accent); }

/* Placeholders */
.ph { position: relative; border: 1px solid var(--rule); display: flex; align-items: flex-end; color: var(--ink-2); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; width: 100%; background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--rule), transparent calc(50% + 0.5px)); }
.ph span { max-width: 36ch; }

/* ---------- Masthead: name centered at the top, portrait center, side copy, data strip bottom ---------- */
.masthead { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; position: relative; padding-top: 54px; }
.mast-name { text-align: center; margin: clamp(28px, 6vh, 64px) var(--gutter) 0; font-size: clamp(3.4rem, 12vw, 12rem); line-height: 0.86; letter-spacing: 0.01em; position: relative; z-index: 1; }
.mast-name span { display: inline-block; }
.mast-name span + span { margin-left: 0.18em; }
.masthead-grid { display: grid; grid-template-columns: 1fr minmax(260px, 30vw) 1fr; align-items: end; gap: var(--gutter); padding: clamp(16px, 4vh, 40px) var(--gutter) 0; min-height: 0; }
.masthead-side { padding-bottom: 6vh; }
.masthead-side p { margin: 0 0 14px; max-width: 26ch; font-size: 0.95rem; }
.masthead-side .label { margin-bottom: 6px; }
.masthead-side-l { justify-self: start; }
.masthead-art { position: relative; aspect-ratio: 3 / 4; max-height: 64vh; width: 100%; justify-self: center; z-index: 2; }
.masthead-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.masthead-data { padding: 0 var(--gutter) 22px; }
.masthead-data .data { border-bottom: 0; }
.data b { font-size: clamp(1.4rem, 2.4vw, 2.3rem); }

/* Pixel dissolve: a grid of tiles over image B, revealed in a shuffled order by scroll progress */
.pixel { position: relative; overflow: hidden; }
.pixel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pixel .pxgrid { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: grid; pointer-events: none; }
.pixel .pxgrid i { display: block; min-width: 0; min-height: 0; opacity: 0; }
.pixel .pxgrid i.on { opacity: 1; }

/* Statement */
.statement { padding: clamp(72px, 12vw, 200px) var(--gutter); }
.statement p { font-family: var(--cond); text-transform: uppercase; line-height: 0.9; font-size: clamp(2.4rem, 8vw, 8rem); max-width: 14ch; margin: 0; }
.statement p + p { color: var(--accent); margin-top: 0.1em; }
.statement .lead { font-family: var(--body); text-transform: none; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.45; color: var(--ink-2); max-width: 44ch; margin-top: 28px; }

/* Chapters: pinned and scrubbed */
.chapter { position: relative; height: 300vh; }
.chapter-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.chapter-art { position: absolute; inset: 0; perspective: 1400px; }
.chapter-art img, .chapter-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); will-change: transform, opacity; transition: opacity 0.3s linear; }
.chapter-art img.on, .chapter-art video.on { opacity: 1; }
.chapter.dim .chapter-art img { filter: brightness(0.85); }
.chapter.dim .chapter-art::after { background: linear-gradient(90deg, rgba(0,0,0,0.9), rgba(0,0,0,0.78) 36%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0)); }
.chapter-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.25) 75%, rgba(0,0,0,0.15)); pointer-events: none; }
.chapter-copy { position: relative; z-index: 2; grid-column: 1; align-self: center; padding: 72px var(--gutter) 72px; color: #fff; max-height: 100svh; box-sizing: border-box; }
.chapter-copy .folio { color: var(--accent); margin-bottom: 22px; display: flex; gap: 18px; align-items: baseline; }
.chapter-copy .folio a { color: #fff; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.chapter-copy .folio a:hover { color: var(--accent); }
.chapter-line { font-family: var(--cond); text-transform: uppercase; line-height: 0.92; font-size: clamp(1.35rem, 2.55vw, 2.6rem); margin: 0 0 0.3em; opacity: 0.18; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); max-width: 20ch; text-wrap: balance; }
.chapter-line.on { opacity: 1; transform: none; }
.chapter-copy .lead { color: rgba(255,255,255,0.85); margin-top: 16px; max-width: 40ch; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s; font-size: 0.92rem; line-height: 1.45; }
.chapter-copy .lead.on { opacity: 1; transform: none; }
.chapter-stat { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; }
.chapter-stat b { font-family: var(--cond); font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1; color: var(--accent); }
.chapter-stat span { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); max-width: 22ch; }
.chapter-copy .btn { color: #fff; border-color: #fff; margin-top: 10px; }
.chapter-copy .btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.chapter-cap { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; color: rgba(255,255,255,0.75); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; max-width: 30ch; }
.chapter-progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; width: auto; height: 3px; background: rgba(255,255,255,0.16); }
.chapter-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* Season line: a drawn path with stations. Stations grow on hover and open the project. */
.season-wrap { position: relative; }
.season-wrap svg { width: 100%; height: auto; overflow: visible; display: block; }
.season-wrap path.track { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: url(#crayon); opacity: 0.92; }
.season-wrap circle { fill: #0a0a0a; stroke: var(--accent); stroke-width: 2; transition: r 0.25s var(--ease); }
.season-wrap text { font-family: var(--mono); font-size: 11px; fill: rgba(244,244,241,0.7); letter-spacing: 0.08em; text-transform: uppercase; transition: font-size 0.25s var(--ease), fill 0.2s; }
.season-wrap text.big { font-family: var(--cond); font-size: 26px; fill: #f4f4f1; letter-spacing: 0.02em; }
.season-wrap .st-link { cursor: pointer; }
.season-wrap .st-link:hover text { fill: var(--accent); font-size: 14px; }
.season-wrap .station:hover circle { r: 9; }
.season-wrap .station:hover text.big { fill: var(--accent); font-size: 32px; }
.season-btn { position: absolute; left: calc(720 / 900 * 100%); top: calc(322 / 410 * 100%); transform: translate(-50%, -50%); color: #f4f4f1; border-color: #f4f4f1; }
.season-btn:hover { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
@supports (animation-timeline: view()) { .season-wrap path.track { animation: draw linear both; animation-timeline: view(); animation-range: entry 0% cover 62%; } @keyframes draw { to { stroke-dashoffset: 0; } } }

/* Vertical timeline with floating photos (home) */
.tline { position: relative; padding: 8px 0 24px; }
.tline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.tl-stop { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: center; padding: clamp(24px, 3.5vw, 48px) 0; position: relative; }
.tl-stop::before { content: attr(data-year); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; background: var(--white); padding: 6px 10px; border: 1px solid var(--rule); z-index: 2; }
.tl-stop figure { margin: 0; perspective: 1000px; }
.tl-stop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; will-change: transform; }
.tl-stop figcaption { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0 0; }
.tl-stop .copy { padding: 0 var(--gutter); }
.tl-stop .copy h3 { font-family: var(--cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 3.2rem); line-height: 0.9; letter-spacing: 0; }
.tl-stop .copy p { color: var(--ink-2); max-width: 42ch; }
.tl-stop:nth-child(even) figure { order: 2; }

/* Closing frame: outlined box, a fading slideshow with place and date, whole thing links to About */
.frame { position: relative; display: block; margin: 0 var(--gutter); border: 2px solid var(--accent); height: min(78vh, 820px); overflow: hidden; color: inherit; }
.frame .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.frame .slide.on { opacity: 1; }
.frame .slide { background: #0a0a0a; }
.frame .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; z-index: 2; }
.frame .slide .bg { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(28px) brightness(0.45) saturate(0.8); z-index: 1; }
.frame .slide figcaption { position: absolute; left: 24px; bottom: 24px; z-index: 3; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(10,10,10,0.72); padding: 10px 14px; display: grid; gap: 4px; max-width: 34ch; }
.frame .slide figcaption b { font-weight: 400; color: var(--accent); }
.frame .corner { position: absolute; z-index: 3; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(10,10,10,0.72); padding: 8px 10px; }
.frame .c1 { top: 18px; left: 18px; } .frame .c2 { top: 18px; right: 18px; text-align: right; }
.frame:hover .c2 { background: var(--accent); color: #0a0a0a; }
.frame h2 { position: absolute; right: 28px; bottom: 24px; z-index: 3; font-size: clamp(1.8rem, 3.6vw, 3.4rem); color: #fff; mix-blend-mode: difference; margin: 0; width: max-content; max-width: calc(100% - 56px); text-align: right; line-height: 0.9; }
.slide-dots { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 5px; max-width: 60%; flex-wrap: wrap; justify-content: center; }
.slide-dots i { width: 6px; height: 6px; background: rgba(255,255,255,0.4); display: block; }
.slide-dots i.on { background: var(--accent); }

/* Also: three quiet links */
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.also a { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--rule); color: inherit; display: grid; gap: 8px; }
.also a + a { border-left: 1px solid var(--rule); padding-left: 20px; }
.also b { font-family: var(--cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 0.95; }
.also a:hover b { color: var(--accent); }
.also span { color: var(--ink-2); font-size: 0.92rem; }

/* Index: ruled rows */
.index { border-top: 1px solid var(--ink); margin-top: 8px; }
.index-more { margin: 28px 0 0; }
.index-row { display: grid; grid-template-columns: 70px 1.3fr 1.2fr 1fr 32px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); color: inherit; position: relative; overflow: hidden; }
.index-row.pcard { display: grid; }
.index-row:hover h3 { color: var(--accent); }
.index-row .folio { padding-top: 6px; margin: 0; }
.index-row h3 { margin: 0; font-family: var(--cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 2.2rem); letter-spacing: 0.01em; line-height: 0.95; }
.index-row p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.index-row .tags { margin: 0; }
.index-row .go { font-family: var(--mono); justify-self: end; }
.index-row .peek { position: absolute; right: 48px; top: 50%; width: 200px; height: calc(100% - 24px); max-height: 150px; object-fit: cover; object-position: center; transform: translateY(-50%) scale(0.9); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.4s var(--ease); z-index: 3; border: 1px solid var(--accent); }
.index-row:hover .peek { opacity: 1; transform: translateY(-50%) scale(1); }
.index-row .peek.peek-logo { object-fit: contain; background: var(--logo-bg, #ffffff); padding: 0; }
.index-row .peek.peek-photo { object-fit: contain; background: var(--panel); }
.index-row.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.chip { font: inherit; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 0; border: 0; border-bottom: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.chip:hover { color: var(--ink); }
.chip[aria-pressed='true'] { color: var(--ink); border-bottom-color: var(--accent); }
.work-tools { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin: 24px 0 0; }
.work-search span { position: absolute; left: -9999px; }
.work-search input { width: 100%; min-width: 260px; }
.subnav { position: sticky; top: 54px; z-index: 40; background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.subnav .wrap { display: flex; gap: 0; overflow-x: auto; }
.subnav a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 24px 12px 0; color: var(--ink-2); white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.section.is-empty { display: none; }
#tag-note b { color: var(--accent); font-weight: 500; }

/* Secondary grids */
.tiles, .grid-2, .grid-3 { display: grid; gap: 32px var(--gutter); }
.tiles { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile { display: block; padding: 16px 0 0; border-top: 1px solid var(--ink); color: inherit; }
.tile:hover h3 { color: var(--accent); }
.tile h3 { font-family: var(--cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: 0.01em; }
.tile p { color: var(--ink-2); margin: 6px 0 10px; font-size: 0.95rem; }
.tile .more { display: inline-block; margin-top: 4px; }
.tile .icon { display: none; }
.pcard { display: block; color: inherit; }
.pcard.is-hidden { display: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.stat { padding: 18px 16px 18px 0; border-right: 1px solid var(--rule); margin-right: 16px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--cond); font-weight: 400; font-size: clamp(2.4rem, 5.2vw, 5rem); line-height: 0.95; margin-bottom: 8px; color: var(--accent); }
.stat span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); line-height: 1.5; display: block; max-width: 30ch; }

/* Timeline page: ledger */
.timeline { border-top: 1px solid var(--ink); }
.tl-item { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.tl-when { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding-top: 8px; }
.tl-item h3 { margin: 0 0 2px; grid-column: 2; font-family: var(--cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: 0.01em; }
.tl-item h3 a:hover { color: var(--accent); }
.tl-role { color: var(--ink-2); margin-bottom: 6px; grid-column: 2; font-family: var(--mono); font-size: 0.72rem; }
.tl-item p { grid-column: 2; margin: 0; }

/* ---------- Project page: spec sheet ---------- */
.p-hero { padding: clamp(72px, 10vw, 140px) 0 0; }
.crumbs { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 24px; }
.crumbs a:hover { color: var(--accent); }
.p-hero h1 { font-size: clamp(2.8rem, 9vw, 9rem); max-width: 12ch; }
.p-hero .lead { margin: 18px 0 0; color: var(--ink-2); }
.snapshot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.snap { padding: 18px 16px 20px 0; border-right: 1px solid var(--rule); margin-right: 16px; }
.snap:last-child { border-right: 0; margin-right: 0; }
.snap b { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; font-weight: 500; }
.snap span { font-size: 0.95rem; line-height: 1.4; display: block; }
.snap a { border-bottom: 1px solid var(--ink); }
.article-art { margin: clamp(40px, 6vw, 80px) 0; perspective: 1200px; }
.article-art { position: relative; height: min(72vh, 680px); overflow: hidden; background: var(--panel); }
.article-art .art-bg { position: absolute; inset: -40px; background: var(--img) center / cover no-repeat; filter: blur(30px) saturate(1.05); opacity: 0.5; transform: scale(1.08); }
.article-art img { position: relative; width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.article-art.is-logo { height: min(44vh, 400px); background: var(--logo-bg, #ffffff); }
.article-art.is-logo .art-bg { display: none; }
.article-art.is-logo img { object-fit: scale-down; padding: 0; }
.art-cap { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 10px 0 0; }
.table-wrap { overflow-x: auto; margin: 0 0 40px; }
table { border-collapse: collapse; width: 100%; font-size: 0.85rem; font-family: var(--mono); }
th, td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-2); font-weight: 400; width: 140px; padding-right: 20px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.64rem; }
.prose { font-size: 1.05rem; line-height: 1.55; }
.prose > * { max-width: 62ch; }
.prose h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); margin: 2em 0 0.5em; max-width: 16ch; color: var(--accent); }
.prose h3 { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); margin: 2em 0 0.8em; }
.prose ul { padding-left: 0; list-style: none; }
.prose li { margin-bottom: 0.6em; padding-left: 18px; position: relative; }
.prose li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 2px; background: var(--accent); }
.prose a { border-bottom: 1px solid var(--ink); }
.prose a:hover { color: var(--accent); border-color: var(--accent); }
.prose .gallery, .prose .media, .prose .table-wrap, .prose .deck, .prose .deck-scroll { max-width: none; }
.prose .deck-scroll { margin: 1.4em 0 1em; }
.prose .deck-scroll figure { flex-basis: min(78vw, 560px); }
.callout { margin: clamp(48px, 8vw, 120px) 0; padding: 0; border: 0; background: none; max-width: none; }
.callout .eyebrow { margin-bottom: 18px; color: var(--accent); }
.callout p { margin: 0; font-family: var(--cond); text-transform: uppercase; line-height: 0.96; font-size: clamp(1.35rem, 2.8vw, 2.4rem); max-width: 28ch; }
.callout-quiet p { font-family: var(--body); text-transform: none; font-size: 1.1rem; line-height: 1.5; max-width: 60ch; }
.next { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 20px; padding: 28px 0; margin: 40px 0 0; border-top: 1px solid var(--ink); color: inherit; }
.next small { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 6px; }
.next b { font-family: var(--cond); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: 0.01em; }
.next:hover b { color: var(--accent); }
.media { margin: 2em 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 2em 0; }
.gallery figure { margin: 0; perspective: 1000px; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--panel); will-change: transform; }
.gallery figcaption, .media figcaption, .deck figcaption { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0 0; }
.gallery figure:nth-child(3n), .gallery-1 figure { grid-column: 1 / -1; }
.gallery figure:nth-child(3n) img { aspect-ratio: 21 / 9; }
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.6em 0; }
.deck figure { margin: 0; }
.deck img { width: 100%; border: 1px solid var(--rule); }
.deck-pages { grid-template-columns: repeat(4, 1fr); }
.deck-scroll { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: clamp(40px, 6vw, 80px) 0 10px; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.deck-scroll figure { flex: 0 0 min(78vw, 720px); margin: 0; scroll-snap-align: start; }
.deck-scroll img { width: 100%; border: 1px solid var(--rule); display: block; }
.deck-hint { margin: 0 0 clamp(30px, 5vw, 60px); }
.viewer { margin: 0 0 clamp(30px, 5vw, 60px); }
.viewer model-viewer { display: block; border: 1px solid var(--rule); }
.viewer-cap { margin: 10px 0 0; }
.crumbs .back { margin-right: 10px; }
.crumb-sep { margin-right: 10px; color: var(--ink-2); }
.tl-year { font-family: var(--cond); font-size: clamp(2rem, 5vw, 3.6rem); margin: 48px 0 10px; line-height: 1; }
.tl-kind { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-left: 8px; }
.st-year text { cursor: pointer; }
.resume-page { margin: 0; max-width: 820px; }
.resume-page img { width: 100%; border: 1px solid var(--rule); }
.resume-page figcaption { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0 0; }

/* Split and essay */
.split { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img, .split .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; will-change: transform; }
.split h2 { margin-top: 0; }
.now { display: grid; grid-template-columns: 180px 1fr; gap: 24px; border-top: 1px solid var(--ink); padding-top: 20px; }
.now ul { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 0.8rem; line-height: 1.8; }
.pulse { width: 8px; height: 8px; background: var(--accent); display: inline-block; margin-right: 10px; }
.essay { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--gutter); align-items: start; }
.essay figure { margin: 0; perspective: 1000px; }
.essay img { width: 100%; object-fit: cover; will-change: transform; }
.essay figcaption { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0 0; }
.essay .e1 { grid-column: 1 / 8; } .essay .e2 { grid-column: 9 / 13; margin-top: 18vh; } .essay .e3 { grid-column: 2 / 6; margin-top: -8vh; } .essay .e4 { grid-column: 7 / 13; } .essay .e5 { grid-column: 1 / 5; margin-top: 10vh; } .essay .e6 { grid-column: 6 / 11; margin-top: -4vh; }
.essay .e1 img { aspect-ratio: 3 / 2; } .essay .e2 img { aspect-ratio: 4 / 5; } .essay .e3 img { aspect-ratio: 1; } .essay .e4 img { aspect-ratio: 16 / 9; } .essay .e5 img { aspect-ratio: 4 / 5; } .essay .e6 img { aspect-ratio: 3 / 2; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.serif { font-family: var(--display); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.contact-grid .grid-2 { gap: 0; border-top: 1px solid var(--ink); }
.contact-card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); color: inherit; }
.contact-card:hover { color: var(--accent); }
.contact-card b { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; color: var(--ink-2); padding-top: 4px; }
.contact-card span { font-size: 1.1rem; }
form.card { display: grid; gap: 18px; }
label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); display: grid; gap: 6px; }
input, textarea, select { font: inherit; font-family: var(--body); font-size: 1rem; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); border-radius: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.cta { padding: 0; text-align: left; border: 0; background: none; }
.cta h2 { max-width: 12ch; }
.cta .lead { margin: 0 0 24px; color: var(--ink-2); }
.contact-row { flex-wrap: wrap; }

/* Footer */
.footer { border-top: 1px solid var(--ink); padding: 40px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: start; }
.footer-name { font-family: var(--cond); text-transform: uppercase; font-size: 1.2rem; margin: 0 0 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; justify-content: flex-end; }
.footer-links a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer .small { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.04em; margin: 8px 0 0; }

/* Search */
.search { position: fixed; inset: 0; z-index: 90; background: var(--white); display: flex; align-items: flex-start; justify-content: center; padding: 12vh var(--gutter) 24px; }
.search[hidden] { display: none; }
.search-box { width: min(760px, 100%); position: relative; }
.search-box input { width: 100%; font-family: var(--cond); text-transform: uppercase; font-size: clamp(1.8rem, 5vw, 3.6rem); padding: 10px 70px 10px 0; }
.search-close { position: absolute; top: 18px; right: 0; font: inherit; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.search-results { max-height: 60vh; overflow: auto; padding: 12px 0; }
.search-results p { padding: 12px 0; margin: 0; }
.search-hit { display: grid; grid-template-columns: 90px 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: inherit; }
.search-hit:hover b { color: var(--accent); }
.search-hit b { font-family: var(--cond); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; }
.search-hit span { grid-column: 2; color: var(--ink-2); font-size: 0.9rem; }
.search-hit small { grid-column: 1; grid-row: 1 / 3; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); padding-top: 8px; }

/* Motion */
.drift { transition: transform 0.9s var(--ease); }
.reveal { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .zoom { animation: zoom-in linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  @keyframes zoom-in { from { opacity: 0.25; transform: scale(0.92) translateY(3vh); } to { opacity: 1; transform: none; } }
  .mast-name { animation: mast linear both; animation-timeline: scroll(root); animation-range: 0 40vh; }
  @keyframes mast { to { transform: translateX(-4vw); opacity: 0; } }
  .article-art img, .split img, .gallery img, .essay img, .tl-stop img { animation: tilt-in linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  .prose > h2, .prose > h3, .prose > p, .prose > ul, .prose > ol, .prose > .table-wrap, .snapshot .snap, .callout { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes fade-up { from { opacity: 0.15; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes tilt-in { from { transform: perspective(1200px) rotateX(10deg) translateY(10vh) scale(0.94); opacity: 0.3; } to { transform: none; opacity: 1; } }
}

@media (max-width: 900px) {
  .masthead { padding-top: 54px; }
  .masthead-grid { grid-template-columns: 1fr; align-items: start; }
  .mast-name { font-size: clamp(3rem, 15vw, 6rem); }
  .masthead-art { max-height: 56vh; aspect-ratio: 3 / 4; order: -1; }
  .masthead-side { padding-bottom: 0; }
  .season-btn { position: static; margin-top: 14px; }
  .frame .slide figcaption { left: 12px; bottom: 12px; max-width: 70%; }
  .frame h2 { right: 12px; bottom: 90px; }
  .data { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .data > div { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--rule); }
  .chapter { height: 260vh; }
  .chapter-stage { grid-template-columns: 1fr; }
  .chapter-copy { align-self: end; padding-bottom: 80px; }
  .chapter-art::after { background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0.05) 65%); }
  .tline::before { left: 18px; }
  .tl-stop { grid-template-columns: 1fr; padding-left: 44px; }
  .tl-stop::before { left: 18px; transform: translate(-50%, -50%); top: 24px; }
  .tl-stop:nth-child(even) figure { order: 0; }
  .tl-stop .copy { padding: 0; }
  .frame { margin: 0 10px; min-height: 70vh; padding: 70px 16px; }
  .frame h2 { left: 14px; bottom: 50px; }
  .frame .big { right: 14px; top: 50px; }
  .index-row { grid-template-columns: 50px 1fr 24px; gap: 12px; }
  .index-row p, .index-row .tags { grid-column: 2; }
  .index-row .peek { display: none; }
  .work-tools { grid-template-columns: 1fr; }
  .also { grid-template-columns: 1fr; }
  .also a + a { border-left: 0; padding-left: 0; }
  .tiles, .grid-2, .grid-3, .contact-grid, .photo-strip { grid-template-columns: 1fr; }
  .stats, .snapshot { grid-template-columns: 1fr 1fr; }
  .stat, .snap { border-right: 0; margin-right: 0; }
  .split { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .tl-item h3, .tl-role, .tl-item p { grid-column: 1; }
  .now { grid-template-columns: 1fr; }
  .essay { grid-template-columns: repeat(6, 1fr); }
  .essay .e1 { grid-column: 1 / 7; } .essay .e2 { grid-column: 3 / 7; margin-top: 0; } .essay .e3 { grid-column: 1 / 4; margin-top: 0; } .essay .e4 { grid-column: 1 / 7; } .essay .e5 { grid-column: 1 / 4; margin-top: 0; } .essay .e6 { grid-column: 2 / 7; margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .menu { display: block; }
  .nav-links { position: fixed; inset: 54px 0 0 0; flex-direction: column; align-items: flex-start; padding: 20px var(--gutter); background: #000; color: #fff; display: none; mix-blend-mode: normal; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn), .dd-menu a { font-size: 2rem; font-family: var(--cond); text-transform: uppercase; letter-spacing: 0.02em; padding: 8px 0; }
  .dd { display: contents; } .dd-btn { display: none; } .dd-menu { display: block; position: static; background: none; padding: 0; }
  .search-btn span { display: none; }
  .gallery, .deck, .deck-pages { grid-template-columns: 1fr 1fr; }
  .gallery figure:nth-child(3n) img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mast-name, .zoom, .article-art img, .split img, .gallery img, .essay img, .tl-stop img, .season-wrap path.track, .prose > *, .snapshot .snap, .callout { animation: none !important; }
  .season-wrap path.track { stroke-dashoffset: 0; }
  .frame .slide { transition: none; }
  .chapter { height: auto; } .chapter-stage { position: static; height: auto; min-height: 70vh; }
  .chapter-art img:first-of-type, .chapter-line, .chapter-copy .lead { opacity: 1; transform: none; }
  .pixel .pxgrid { display: none; }
  * { transition-duration: 0.01ms !important; }
}
@media print { .nav, .footer { display: none; } body { background: #fff; color: #000; } }

/* Phone fixes. Everything here is scoped to narrow screens so the desktop layout is untouched. */
.season-hint { display: none; }
@media (max-width: 760px) {
  .nav { mix-blend-mode: normal; background: #0a0a0a; color: #f4f4f1; }
  .nav .nav-inner { pointer-events: auto; }
  .season-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: thin; }
  .season-scroll .season-wrap { width: 820px; }
  .season-scroll .season-btn { position: absolute; left: calc(720 / 900 * 100%); top: calc(322 / 410 * 100%); transform: translate(-50%, -50%); margin: 0; }
  .frame h2 { top: 14px; bottom: auto; left: 14px; right: auto; text-align: left; }
  .season-hint { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244,244,241,0.6); margin: 6px 0 0; }
  .chapter-art::after, .chapter.dim .chapter-art::after { background: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.82) 40%, rgba(0,0,0,0.9)); }
  .chapter-art img { opacity: 0; } .chapter-art img.on { opacity: 0.85; }
  .frame .corner, .slide-dots { display: none; }
  .frame .big, .frame h2 { font-size: 1.5rem; }
  .article-art { height: auto; }
  .article-art .art-bg { display: none; }
  .article-art img { height: auto; max-height: 70vh; }
  .article-art.is-logo img { padding: 0; }
  .next b { line-height: 1.02; display: block; }
  .p-hero h1 { overflow-wrap: break-word; }
  .callout p { font-size: 1.3rem; line-height: 1.05; }
}
