/* Horizontal Scroll — antjanus.com redesign #080
   The site as a contact sheet: every section is a sprocketed filmstrip that
   scrolls sideways, with visible controls, a frame counter and a scrubber. */

/* ---------- Tokens ---------- */
:root {
  /* primitives */
  --bone-50: #fcfaf5;
  --bone-100: #f2eee6;
  --bone-200: #e7e0d2;
  --bone-300: #d3ccbe;
  --umber-600: #4d4840;
  --umber-900: #1c1a17;
  --film-900: #1a1815;
  --film-800: #26231f;
  --slate-700: #2a3f54;
  --slate-600: #364f6a;
  --slate-100: #dfe6ee;
  --amber-400: #e3a445;
  --rust-700: #9c4a0c;
  --moss-700: #1c6e52;

  /* semantic (light: contact-sheet paper) */
  --paper: var(--bone-100);
  --surface: var(--bone-50);
  --surface-2: var(--bone-200);
  --ink: var(--umber-900);
  --ink-2: var(--umber-600);
  --line: var(--bone-300);
  --film: var(--film-900);
  --film-2: var(--film-800);
  --film-ink: #efe6d4;
  --film-dim: #c3b8a4;
  --edge: var(--amber-400);
  --hole: var(--bone-100);
  --accent: var(--slate-600);
  --accent-strong: var(--slate-700);
  --accent-soft: var(--slate-100);
  --on-accent: #ffffff;
  --signal: var(--rust-700);
  --ok: var(--moss-700);
  --focus: #1d5fc4;
  --code-bg: #171513;
  --code-ink: #ece4d4;

  --radius: 6px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --max: 1320px;
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --frame-w: clamp(260px, 27vw, 360px);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-prose: "Newsreader", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e0d0b;
    --surface: #221f1b;
    --surface-2: #2c2924;
    --ink: #efe9de;
    --ink-2: #b8b0a2;
    --line: #3a352f;
    --film: #1b1916;
    --film-2: #2a2622;
    --hole: #0e0d0b;
    --accent: #93b3d6;
    --accent-strong: #b8cfe7;
    --accent-soft: #1e2a37;
    --on-accent: #0c1520;
    --signal: #f0a24e;
    --ok: #57c29a;
    --focus: #8ec5ff;
    --code-bg: #131110;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0e0d0b;
  --surface: #221f1b;
  --surface-2: #2c2924;
  --ink: #efe9de;
  --ink-2: #b8b0a2;
  --line: #3a352f;
  --film: #1b1916;
  --film-2: #2a2622;
  --hole: #0e0d0b;
  --accent: #93b3d6;
  --accent-strong: #b8cfe7;
  --accent-soft: #1e2a37;
  --on-accent: #0c1520;
  --signal: #f0a24e;
  --ok: #57c29a;
  --focus: #8ec5ff;
  --code-bg: #131110;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 9rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .75rem 1rem; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }
.eyebrow {
  font-family: var(--f-mono); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 .75rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
}
.eyebrow b { color: var(--signal); font-weight: 500; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  max-width: var(--max); margin: 0 auto; padding: .6rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand svg { width: 44px; height: 44px; }
.brand-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1; }
.brand-word small { display: block; font-family: var(--f-mono); font-stretch: 100%; font-weight: 400; font-size: .8125rem; letter-spacing: .08em; color: var(--ink-2); margin-top: .2rem; }
.nav-strip { flex: 1; min-width: 0; }
.nav-strip ol {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 2px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.nav-strip ol::-webkit-scrollbar { display: none; }
.nav-strip li { flex: 0 0 auto; scroll-snap-align: start; }
.nav-strip a {
  display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: .3rem .85rem;
  text-decoration: none; color: var(--ink); border-radius: 4px; line-height: 1.15;
  border-bottom: 3px solid transparent;
}
.nav-strip a span { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.nav-strip a strong { font-weight: 600; font-size: 1.0625rem; }
.nav-strip a:hover { background: var(--surface-2); color: var(--ink); }
.nav-strip a[aria-current="page"] { background: var(--film); border-bottom-color: var(--edge); }
.nav-strip a[aria-current="page"] strong { color: var(--film-ink); }
.nav-strip a[aria-current="page"] span { color: var(--edge); }
.header-tools { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.search-mini { display: flex; }
.search-mini input {
  width: 11rem; font: inherit; font-size: 1rem; padding: .55rem .8rem; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); border-radius: 4px 0 0 4px; min-height: 44px;
}
.search-mini button { border-radius: 0 4px 4px 0; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); border-radius: 4px; cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
@media (max-width: 1180px) { .search-mini { display: none; } }
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; row-gap: .35rem; padding-bottom: .35rem; }
  .nav-strip { order: 3; flex-basis: 100%; margin-inline: calc(-1 * var(--gutter)); }
  .nav-strip ol { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .header-tools { margin-left: auto; }
  .brand-word small { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem;
  font: inherit; font-weight: 600; font-size: 1.0625rem; border-radius: 4px; cursor: pointer;
  text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent);
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { min-height: 44px; padding: .5rem .9rem; font-size: 1rem; }
.link-quiet { color: var(--ink-2); font-weight: 500; }
.link-strong { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 3px; }
.link-strong:hover { color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }

/* ---------- Film / reel ---------- */
.reel { margin-block: clamp(3rem, 7vw, 5.5rem); }
.reel-head {
  max-width: var(--max); margin: 0 auto 1.25rem; padding-inline: var(--gutter);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
}
.reel-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-stretch: 118%; font-weight: 800; letter-spacing: -.015em; }
.reel-head p { margin: .5rem 0 0; color: var(--ink-2); max-width: 60ch; }
.reel-head .reel-title { min-width: 0; }
.reel-controls { display: flex; align-items: center; gap: .6rem; }
.reel-count { font-family: var(--f-mono); font-size: .9375rem; color: var(--ink-2); min-width: 7.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.reel-count b { color: var(--ink); font-weight: 600; }
.reel-btn {
  width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 50%; padding: 0;
  transition: background-color .15s, color .15s;
}
.reel-btn svg { width: 22px; height: 22px; }
.reel-btn:hover { background: var(--ink); color: var(--paper); }
.reel-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.reel-btn[aria-disabled="true"]:hover { background: var(--surface); color: var(--ink); }
.reel-all { font-weight: 600; margin-left: .5rem; }

.film {
  position: relative; background: var(--film); padding-block: 38px 42px;
}
.film::before, .film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px; pointer-events: none;
  background-image: linear-gradient(var(--hole), var(--hole));
  background-size: 14px 12px; background-repeat: repeat-x;
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
  mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
  background-size: 100% 12px; border-radius: 2px;
}
.film::before { top: 13px; }
.film::after { bottom: 13px; }
.strip {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--inset); scroll-padding-inline: var(--inset);
  scrollbar-width: none; list-style: none; margin: 0;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline: 3px solid var(--edge); outline-offset: -3px; }
.strip > li, .frame {
  flex: 0 0 var(--frame-w); scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px;
}
.frame.wide { flex-basis: clamp(290px, 44vw, 600px); }
.frame.xwide { flex-basis: clamp(300px, 64vw, 860px); }
.frame.narrow { flex-basis: clamp(230px, 22vw, 290px); }
.strip::after { content: ""; flex: 0 0 1px; }
.edge-code {
  font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; color: var(--edge);
  display: flex; justify-content: space-between; gap: .5rem; padding-inline: 2px; white-space: nowrap;
}
.edge-code span:last-child { color: var(--film-dim); overflow: hidden; text-overflow: ellipsis; }

.scrub {
  max-width: var(--max); margin: 1rem auto 0; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.scrub-track {
  position: relative; flex: 1; height: 24px; cursor: pointer; background: none; border: 0; padding: 0;
}
.scrub-track::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.scrub-fill {
  position: absolute; top: 8px; height: 8px; left: 0; width: 20%; background: var(--accent); border-radius: 4px;
  transition: left .12s linear, width .12s linear;
}
.scrub-label { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); white-space: nowrap; }

@media (max-width: 700px) {
  :root { --frame-w: 80vw; }
  .frame.wide, .frame.xwide { flex-basis: 86vw; }
  .frame.narrow { flex-basis: 70vw; }
  .reel-controls .reel-count { display: none; }
}

/* ---------- Cards inside frames ---------- */
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; flex: 1; color: var(--ink);
  transition: transform .15s ease;
}
.card:hover { transform: translateY(-3px); }
.card .shot { aspect-ratio: 16 / 10; background: var(--film-2); overflow: hidden; position: relative; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; }
.card .shot.contain img { object-fit: contain; background: #111; }
.card .shot .tag-over {
  position: absolute; left: .6rem; bottom: .6rem; font-family: var(--f-mono); font-size: .8125rem;
  background: rgba(10, 9, 8, .82); color: #f4ecdd; padding: .2rem .5rem; border-radius: 3px;
}
.card-body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card h3 { font-size: 1.3rem; font-stretch: 108%; font-weight: 700; line-height: 1.2; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--edge); outline-offset: 3px; }
.card:hover h3 a { text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 2px; }
.card p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.5; }
.card .meta { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.card .meta b { font-weight: 500; color: var(--signal); }
.card .pos-link { position: relative; z-index: 2; }
.chip {
  display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: .8125rem;
  padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: transparent;
  text-decoration: none; line-height: 1.5;
}
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge {
  font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .1rem .5rem; border-radius: 3px; border: 1.5px solid currentColor; color: var(--signal); font-weight: 600;
}
.badge.new { color: var(--ok); }

/* End-of-strip frame */
.card.end {
  background: transparent; border: 2px dashed var(--film-dim); color: var(--film-ink);
  justify-content: center; align-items: flex-start; padding: 1.5rem; gap: .75rem;
}
.card.end h3, .card.end h3 a { color: var(--film-ink); font-size: 1.5rem; }
.card.end p { color: var(--film-dim); }
.card.unexposed { background: repeating-linear-gradient(135deg, var(--film-2) 0 12px, var(--film) 12px 24px); color: var(--film-ink); }
.card.unexposed h3 { color: var(--film-ink); }
.card.unexposed p { color: var(--film-dim); }

/* Icon card (text-only frames) */
.card.plate .card-body { padding: 1.5rem; gap: .8rem; }
.plate-num { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 3rem; line-height: 1; color: var(--accent); }
.card.dark { background: var(--film-2); color: var(--film-ink); }
.card.dark h3, .card.dark h3 a { color: var(--film-ink); }
.card.dark p { color: var(--film-dim); }

/* ---------- Page heads ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.page-head h1 {
  font-size: clamp(2.75rem, 7vw, 6rem); font-stretch: 125%; font-weight: 800; letter-spacing: -.025em; line-height: .95;
}
.page-head .lede { font-size: clamp(1.25rem, 2vw, 1.45rem); line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin: 1.25rem 0 0; }
.page-head .cta-row { margin-top: 1.75rem; }

/* ---------- Home hero ---------- */
.hero-film .strip > li:first-child { flex-basis: clamp(300px, 52vw, 720px); }
.hero-frame { background: var(--surface); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 3rem); flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.hero-frame h1 { font-size: clamp(2.4rem, 5.2vw, 4.7rem); font-stretch: 122%; font-weight: 800; line-height: .98; letter-spacing: -.025em; }
.hero-frame p.sub { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink-2); margin: 0; max-width: 46ch; }
.photo-frame { flex: 1; border-radius: var(--radius); overflow: hidden; background: var(--film-2); min-height: 420px; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-film .strip > li.photo { flex-basis: clamp(260px, 30vw, 420px); }
.hero-film .strip > li.stat-col { flex-basis: clamp(240px, 22vw, 300px); }
.stat-stack { display: grid; gap: 2px; background: var(--film); flex: 1; }
.stat-stack div { background: var(--surface); padding: 1.1rem 1.25rem; border-radius: 4px; display: flex; flex-direction: column; justify-content: center; }
.stat-stack strong { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 2.6rem; line-height: 1; }
.stat-stack span { font-family: var(--f-mono); font-size: .875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-top: .35rem; }
.hint {
  display: inline-flex; gap: .5rem; align-items: center; font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2);
}
.hint svg { width: 34px; height: 16px; }
@media (max-width: 700px) {
  .hero-film .strip > li:first-child { flex-basis: 88vw; }
  .photo-frame { min-height: 340px; }
}

/* ---------- Pinned sideways sequence (home) ---------- */
.pin { position: relative; margin-block: clamp(3rem, 7vw, 5rem); }
.pin-sticky { background: var(--film); color: var(--film-ink); padding-block: 2.5rem 2rem; position: relative; overflow: hidden; }
.pin-sticky::before, .pin-sticky::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--hole);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
  mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
}
.pin-sticky::before { top: 12px; }
.pin-sticky::after { bottom: 12px; }
.pin-head { max-width: var(--max); margin: 0 auto 1.5rem; padding-inline: var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.pin-head h2 { color: var(--film-ink); font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-stretch: 118%; font-weight: 800; }
.pin-head p { color: var(--film-dim); margin: .4rem 0 0; }
.pin-track { display: flex; gap: 24px; padding-inline: var(--inset); will-change: transform; }
.pin-panel {
  flex: 0 0 min(80vw, 1020px); display: grid; grid-template-columns: 1.1fr 1fr; background: var(--surface);
  color: var(--ink); border-radius: var(--radius); overflow: hidden; min-height: 400px;
}
.pin-panel img { width: 100%; height: 100%; object-fit: cover; }
.pin-panel .pp-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.pin-panel .pp-num { font-family: var(--f-mono); color: var(--signal); font-size: .9375rem; letter-spacing: .08em; }
.pin-panel h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-stretch: 120%; font-weight: 800; line-height: 1.02; }
.pin-panel p { color: var(--ink-2); margin: 0; }
.pin-panel ul { margin: 0; padding-left: 1.1rem; color: var(--ink-2); }
.pin-progress { max-width: var(--max); margin: 1.5rem auto 0; padding-inline: var(--gutter); display: flex; gap: 6px; }
.pin-progress span { flex: 1; height: 4px; background: var(--film-2); border-radius: 2px; overflow: hidden; }
.pin-progress span i { display: block; height: 100%; width: 0; background: var(--edge); }
.pin.native .pin-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--inset); scrollbar-width: none; }
.pin.native .pin-panel { scroll-snap-align: start; }
.pin.pinned .pin-sticky { position: sticky; top: var(--header-h, 69px); min-height: calc(100vh - var(--header-h, 69px)); display: flex; flex-direction: column; justify-content: center; }
.pin.pinned .pin-head, .pin.pinned .pin-progress { width: 100%; }
@media (max-width: 800px) {
  .pin-panel { grid-template-columns: 1fr; flex-basis: 86vw; min-height: 0; }
  .pin-panel img { aspect-ratio: 16/9; height: auto; }
}

/* ---------- Generic sections on paper ---------- */
.section { max-width: var(--max); margin: clamp(3rem, 7vw, 5.5rem) auto; padding-inline: var(--gutter); }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-stretch: 118%; font-weight: 800; letter-spacing: -.015em; margin-bottom: .6rem; }
.section > p.intro { color: var(--ink-2); max-width: 62ch; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel h3 { font-size: 1.35rem; font-stretch: 112%; margin-bottom: .8rem; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.panel li a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 44px; align-items: center; }
.panel li a:hover { color: var(--accent); }
.panel li a span { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); }
.panel.inverse { background: var(--film); border-color: var(--film); color: var(--film-ink); }
.panel.inverse h3 { color: var(--film-ink); }
.panel.inverse p { color: var(--film-dim); }
.panel.inverse .btn { background: var(--edge); border-color: var(--edge); color: #1a1208; }
.panel.inverse .btn:hover { background: #f2bf6e; border-color: #f2bf6e; }

/* Hairline stat strip (used site-wide) */
.stat-strip {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat-strip > div { background: var(--surface); padding: 1rem 1.2rem; }
.stat-strip dt { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.stat-strip dd { margin: .2rem 0 0; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-strip dd small { font-family: var(--f-body); font-stretch: 100%; font-weight: 400; font-size: 1rem; color: var(--ink-2); display: block; }

/* Jump strip (sticky chapter pills) */
.jump {
  position: sticky; top: var(--header-h, 69px); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line);
}
.jump ol { list-style: none; margin: 0 auto; max-width: var(--max); padding: .5rem var(--gutter); display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; align-items: center; }
.jump ol::-webkit-scrollbar { display: none; }
.jump li { flex: 0 0 auto; }
.jump .label { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; padding-right: .5rem; }
.jump a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .3rem .9rem; border: 1px solid var(--line);
  border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 500; font-size: 1rem;
}
.jump a span { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.jump a:hover, .jump a[aria-current="true"] { background: var(--film); color: var(--film-ink); border-color: var(--film); }
.jump a[aria-current="true"] span, .jump a:hover span { color: var(--edge); }

/* Filter chips */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters button {
  font: inherit; font-size: 1rem; min-height: 44px; padding: .35rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button span { font-family: var(--f-mono); font-size: .8125rem; opacity: .8; margin-left: .3rem; }

/* Archive reel (writing) */
.year-frame { background: var(--surface); border-radius: var(--radius); padding: 1.25rem 1.25rem .5rem; flex: 1; }
.year-frame h3 { font-size: 2.6rem; font-stretch: 125%; font-weight: 900; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.year-frame h3 small { font-family: var(--f-mono); font-size: .875rem; font-weight: 400; color: var(--ink-2); font-stretch: 100%; }
.year-frame ol { list-style: none; margin: 1rem 0 0; padding: 0; }
.year-frame li { border-top: 1px solid var(--line); }
.year-frame li[hidden] { display: none; }
.year-frame li a { display: block; padding: .7rem 0; text-decoration: none; color: var(--ink); }
.year-frame li a:hover strong { text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 2px; }
.year-frame li strong { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.year-frame li span { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.year-frame .empty-year { color: var(--ink-2); font-size: 1rem; padding: .8rem 0; }
.frame.year { flex-basis: clamp(280px, 28vw, 360px); }

/* ---------- Article ---------- */
.article-head { max-width: 1100px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 2rem; }
.crumbs { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.crumbs a { color: var(--ink-2); }
.article-head h1 { font-size: clamp(2.5rem, 6vw, 5.2rem); font-stretch: 120%; font-weight: 800; letter-spacing: -.025em; line-height: .98; max-width: 16ch; }
.article-head .lede { font-family: var(--f-prose); font-size: clamp(1.35rem, 2.2vw, 1.65rem); color: var(--ink-2); margin: 1.25rem 0 1.5rem; max-width: 50ch; line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-family: var(--f-mono); font-size: .9375rem; color: var(--ink-2); align-items: center; }
.article-meta a { color: var(--accent); }
.chapters {
  position: sticky; top: var(--header-h, 69px); z-index: 40; background: var(--film); color: var(--film-ink);
}
.chapters-inner { display: flex; align-items: stretch; }
.chapters .ch-label { flex: 0 0 auto; font-family: var(--f-mono); font-size: .8125rem; color: var(--edge); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; padding: 0 1rem 0 var(--inset); }
.chapters ol { list-style: none; margin: 0; padding: 0 var(--gutter) 0 0; display: flex; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; flex: 1; }
.chapters ol::-webkit-scrollbar { display: none; }
.chapters li { flex: 0 0 auto; }
.chapters a {
  display: flex; gap: .5rem; align-items: baseline; padding: .8rem 1rem; min-height: 48px; text-decoration: none; color: var(--film-dim);
  border-left: 1px solid rgba(255,255,255,.1); font-size: 1rem; white-space: nowrap;
}
.chapters a span { font-family: var(--f-mono); font-size: .8125rem; color: var(--edge); }
.chapters a:hover { color: var(--film-ink); }
.chapters a[aria-current="true"] { color: var(--film-ink); background: var(--film-2); box-shadow: inset 0 -3px 0 var(--edge); }
.read-progress { height: 3px; background: rgba(255,255,255,.08); }
.read-progress i { display: block; height: 100%; width: 0; background: var(--edge); }
.article-hero { margin-bottom: 3rem; }
.article-hero .frame { flex-basis: min(92vw, 1100px); }
.article-hero .photo-frame { min-height: 0; aspect-ratio: 2 / 1; }
.prose { max-width: 70ch; margin: 0 auto; padding-inline: var(--gutter); font-family: var(--f-prose); font-size: 1.25rem; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.35rem); font-stretch: 115%; font-weight: 800; margin-top: 2.6em; display: flex; gap: .8rem; align-items: baseline; }
.prose h2 .hnum { font-family: var(--f-mono); font-size: .9rem; color: var(--signal); font-weight: 500; font-stretch: 100%; }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--surface-2); padding: .1em .35em; border-radius: 3px; }
.callout { border-left: 4px solid var(--accent); background: var(--surface); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
.callout .c-label { display: block; font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .3rem; font-weight: 600; }
.callout.why { border-color: var(--ok); } .callout.why .c-label { color: var(--ok); }
.callout.ask { border-color: var(--signal); } .callout.ask .c-label { color: var(--signal); }
.callout.skill { border-color: var(--edge); background: var(--film); color: var(--film-ink); }
.callout.skill .c-label { color: var(--edge); }
.callout.skill a { color: #f2c27a; }
.callout.skill code { background: var(--film-2); color: var(--film-ink); }
.code {
  margin-inline: calc(-1 * min(6vw, 4rem)); background: var(--code-bg); border-radius: var(--radius); position: relative; overflow: hidden;
}
@media (max-width: 800px) { .code { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; } }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: .35rem .5rem .35rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-bar span { font-family: var(--f-mono); font-size: .8125rem; color: var(--edge); letter-spacing: .08em; }
.copy-btn {
  font-family: var(--f-mono); font-size: .875rem; min-height: 40px; min-width: 44px; padding: .3rem .8rem; cursor: pointer;
  background: transparent; color: #e6dccb; border: 1px solid rgba(255,255,255,.22); border-radius: 4px;
}
.copy-btn:hover { background: rgba(255,255,255,.08); }
.code pre {
  margin: 0; padding: 1.1rem 1.25rem 1.3rem; overflow-x: auto; color: var(--code-ink);
  font-family: var(--f-mono); font-size: .9375rem; line-height: 1.6; tab-size: 2;
  background:
    linear-gradient(90deg, var(--code-bg) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(-90deg, var(--code-bg) 30%, transparent) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(227,164,69,.35), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(227,164,69,.35), transparent) right / 14px 100% no-repeat scroll;
}
.prose pre code, .pane pre code { background: none; padding: 0; font-size: inherit; color: inherit; border-radius: 0; }
.code pre:focus-visible { outline: 3px solid var(--edge); outline-offset: -3px; }
.tok-c { color: #9a927f; font-style: italic; }
.tok-s { color: #b5d68a; }
.tok-k { color: #f0a86a; }
.tok-t { color: #8cc3ec; }
.article-foot { max-width: 70ch; margin: 3.5rem auto 0; padding-inline: var(--gutter); display: grid; gap: 1.5rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.share-row .label { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-right: .4rem; }

/* Newsletter */
.newsletter { background: var(--film); color: var(--film-ink); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); }
.newsletter h2, .newsletter h3 { color: var(--film-ink); font-size: clamp(1.5rem, 2.6vw, 2rem); font-stretch: 115%; }
.newsletter p { color: var(--film-dim); margin: .5rem 0 1rem; }
.nl-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.nl-form label.visually-hidden + input, .nl-form input[type="email"] {
  flex: 1 1 14rem; min-height: 48px; font: inherit; font-size: 1rem; padding: .6rem .9rem; border-radius: 4px;
  border: 1px solid #5a534a; background: #0f0e0c; color: #f3ecdf;
}
.nl-form input::placeholder { color: #a39a8b; }
.nl-form .btn { background: var(--edge); border-color: var(--edge); color: #1a1208; }
.nl-form .btn:hover { background: #f2bf6e; border-color: #f2bf6e; }
.nl-status { font-size: 1rem; color: #f2c27a; min-height: 1.5em; margin: .6rem 0 0; }

/* ---------- About ---------- */
.career-bar { display: flex; gap: 2px; background: var(--film); padding: 2px; border-radius: 4px; margin-bottom: 1.5rem; }
.career-bar a { flex: var(--yrs) 1 0; min-width: 0; background: var(--surface); padding: .5rem .6rem; text-decoration: none; color: var(--ink); border-radius: 2px; }
.career-bar a strong { display: block; font-size: .9375rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.career-bar a span { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); white-space: nowrap; }
.career-bar a:hover { background: var(--accent-soft); }
@media (max-width: 800px) { .career-bar { overflow-x: auto; } .career-bar a { flex: 0 0 9rem; } }
.phase { background: var(--surface); border-radius: var(--radius); padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: .7rem; }
.phase .when { font-family: var(--f-mono); font-size: .875rem; color: var(--signal); letter-spacing: .06em; }
.phase h3 { font-size: 1.6rem; font-stretch: 118%; font-weight: 800; }
.phase p { color: var(--ink-2); margin: 0; font-size: 1.0625rem; }
.phase ul { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.phase li { border-top: 1px solid var(--line); padding-top: .6rem; font-size: 1rem; line-height: 1.45; }
.phase li strong { display: block; font-size: 1.0625rem; }
.phase li span { font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.phase blockquote { margin: 0; font-size: 1rem; color: var(--ink-2); border-left: 3px solid var(--edge); padding-left: .8rem; }
.quote-frame { background: var(--surface); border-radius: var(--radius); padding: 1.75rem 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 240px; }
.quote-frame q { font-family: var(--f-prose); font-style: italic; font-size: 1.6rem; line-height: 1.3; quotes: "\201C" "\201D"; }
.quote-frame span { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); }
.about-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .about-split { grid-template-columns: 1fr !important; } }
.about-split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.beyond { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.beyond li { border-top: 2px solid var(--ink); padding-top: .9rem; }
.beyond h3 { font-size: 1.35rem; font-stretch: 112%; margin-bottom: .3rem; }
.beyond p { color: var(--ink-2); margin: 0; }
.cap-frame { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .8rem; }
.cap-frame h3 { font-size: 1.5rem; font-stretch: 115%; font-weight: 800; }
.cap-frame p { color: var(--ink-2); margin: 0; font-size: 1.0625rem; }
.cap-frame .chips .chip { font-size: .875rem; color: var(--ink); }

/* ---------- Patterns ---------- */
.pattern-tools { display: grid; gap: 1rem; margin-top: 2rem; }
.search-field { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-field input {
  flex: 1 1 20rem; min-height: 52px; font: inherit; font-size: 1.0625rem; padding: .7rem 1rem; border-radius: 4px;
  border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
}
.result-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-family: var(--f-mono); font-size: .9375rem; color: var(--ink-2); }
.result-line button { font: inherit; background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 .25rem; }
.empty-state { max-width: var(--max); margin: 2rem auto; padding: 2.5rem var(--gutter); text-align: center; }
.empty-state svg { width: 120px; height: 80px; color: var(--ink-2); margin: 0 auto 1rem; }
.empty-state h2 { font-size: 1.75rem; font-stretch: 112%; margin-bottom: .4rem; }
.empty-state p { color: var(--ink-2); }
.thumb { aspect-ratio: 16/10; background: var(--surface-2); display: grid; place-items: center; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.thumb svg { width: 72%; height: 72%; color: var(--accent); }
.thumb .pnum { position: absolute; top: .5rem; left: .6rem; font-family: var(--f-mono); font-size: .8125rem; color: var(--ink-2); }
.card .goodfor { font-size: 1rem; color: var(--ink-2); }
.card .goodfor b { color: var(--ink); font-weight: 600; }
.three-ways .card-body h3 { font-size: 1.5rem; }
.ways-foot { max-width: 70ch; color: var(--ink-2); }

.pattern-head { max-width: 1100px; margin: 0 auto; padding: 2rem var(--gutter) 1.5rem; }
.pattern-head h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-stretch: 120%; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.pattern-head .lede { font-size: 1.25rem; color: var(--ink-2); max-width: 66ch; margin: 1rem 0 1.5rem; }
.usecases { columns: 2 16rem; padding-left: 1.2rem; margin: .4rem 0 1.25rem; }
.usecases li { margin-bottom: .3rem; }
.panes { max-width: 1100px; margin: 0 auto; padding-inline: var(--gutter); }
.panes-box { border: 2px solid var(--film); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.pane-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: var(--film); padding: .4rem; flex-wrap: wrap; }
.pane-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pane-tabs button {
  font: inherit; font-size: 1rem; min-height: 44px; padding: .4rem 1rem; border: 0; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--film-dim); display: flex; gap: .45rem; align-items: baseline;
}
.pane-tabs button span { font-family: var(--f-mono); font-size: .8125rem; color: var(--edge); }
.pane-tabs button:hover { color: var(--film-ink); }
.pane-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: 600; }
.pane-actions { display: flex; gap: .4rem; }
.pane-actions .copy-btn { color: var(--film-ink); }
.pane { padding: clamp(1rem, 3vw, 2rem); }
.pane[hidden] { display: none; }
.pane pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 1.1rem; border-radius: 4px; overflow-x: auto; font-family: var(--f-mono); font-size: .9375rem; line-height: 1.6; }
.pane .note { font-size: 1rem; color: var(--ink-2); margin-bottom: 1rem; }
.prompt-text { font-family: var(--f-prose); font-size: 1.2rem; line-height: 1.6; max-width: 68ch; }
.prompt-text p { margin-bottom: 1em; }
.prompt-text ul { font-family: var(--f-body); font-size: 1rem; color: var(--ink-2); }
.stage { background: var(--surface-2); border-radius: 4px; padding: clamp(1rem, 2.5vw, 1.75rem); }
.stage .cap { font-size: 1rem; color: var(--ink-2); margin: 0 0 .75rem; }
.stage .cap + .hss-strip { margin-bottom: 1.75rem; }
.hss-strip {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 60rem) { .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .15rem; text-align: left; min-width: 0; }
button.hss-tile { font: inherit; color: inherit; border: 0; cursor: pointer; border-radius: 0; }
button.hss-tile:hover { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 0 -3px 0 var(--accent); }
button.hss-tile:focus-visible { outline-offset: -4px; }
.hss-label { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
.hss-fig { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.hss-fig.dim { color: var(--ink-2); font-weight: 400; }
.hss-sub { font-size: .9375rem; color: var(--ink-2); }
.hss-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.hss-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .6rem .9rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 1rem; }
.hss-list li span { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); }
.hss-list li[hidden] { display: none; }
.hss-status { font-size: 1rem; color: var(--ink-2); margin: .8rem 0 0; }
.frame.current .card { outline: 3px solid var(--edge); outline-offset: 3px; }
.pager { max-width: 1100px; margin: 2rem auto 0; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pager a { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1rem 1.2rem; text-decoration: none; color: var(--ink); }
.pager a span { font-family: var(--f-mono); font-size: .875rem; color: var(--ink-2); display: block; }
.pager a strong { font-size: 1.2rem; font-stretch: 110%; font-family: var(--f-display); }
.pager a:last-child { text-align: right; }
.pager a:hover { border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(4rem, 8vw, 6rem); background: var(--film); color: var(--film-ink); position: relative; padding-top: 3rem; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 12px; background: var(--hole);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
  mask-image: repeating-linear-gradient(90deg, #000 0 14px, transparent 14px 30px);
}
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--gutter) 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; } }
.site-footer h2 { color: var(--film-ink); font-size: 1rem; font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer p { color: var(--film-dim); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 40px; align-items: center; color: var(--film-ink); text-decoration: none; }
.site-footer li a:hover { color: var(--edge); text-decoration: underline; }
.site-footer .brand { color: var(--film-ink); margin-bottom: 1rem; }
.site-footer :focus-visible { outline-color: var(--edge); }
.footer-end { border-top: 1px solid rgba(255,255,255,.1); }
.footer-end div { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gutter) 2.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--f-mono); font-size: .875rem; color: var(--film-dim); }
.footer-end b { color: var(--edge); font-weight: 500; }
.footer-search { display: flex; gap: .4rem; margin-top: 1rem; }
.footer-search input { flex: 1; min-width: 0; min-height: 44px; font: inherit; font-size: 1rem; padding: .5rem .8rem; border-radius: 4px; border: 1px solid #5a534a; background: #0f0e0c; color: #f3ecdf; }
.footer-search input::placeholder { color: #a39a8b; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

/* Title plate when an entry has no image */
.shot.blank { display: flex; flex-direction: column; justify-content: space-between; padding: 1rem 1.1rem; color: var(--film-ink);
  background: linear-gradient(135deg, var(--film-2), var(--film)); }
.shot.blank[data-col="dg"] { background: linear-gradient(135deg, #2f4a3c, #18231d); }
.shot.blank[data-col="ai"] { background: linear-gradient(135deg, var(--slate-600), #1b2735); }
.blank-mark { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -.03em; color: #f4ecdd; }
.blank-meta { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: #e3c28c; }
.top-space { height: 1.5rem; }
.hero-film { margin-top: 0; }
.hero-film .reel-head { align-items: center; }
.hss-tile dt, .hss-tile dd { margin: 0; }
.pin.pinned .pin-panel { height: min(56vh, 500px); min-height: 0; }
.pin.pinned .pin-panel img { min-height: 0; }
.pin.pinned .pp-body { overflow: hidden; }

/* gallery article */
.prose figure { margin: 1.5rem 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line, currentColor); }
.prose blockquote.callout { margin-inline: 0; }
.callout p { margin: 0; }
.callout p + p { margin-top: .75rem; }
.prose code { overflow-wrap: anywhere; }
