/* Cinematic Widescreen — antjanus.com redesign 071
   The whole site is letterboxed: the nav is the upper matte, the footer the lower matte.
   Mattes stay black in both themes; the "screen" between them changes. */

:root {
  /* primitives */
  --black: #050506;
  --ink-900: #0c0c0f;
  --ink-850: #121216;
  --ink-800: #19191f;
  --ink-700: #26262e;
  --ink-600: #3a3a44;
  --paper-50: #f5f1e8;
  --paper-100: #ece6d8;
  --paper-200: #ddd5c3;
  --paper-300: #c9bfaa;
  --light-100: #efe9dc;
  --light-300: #b3ab9d;
  --tungsten-400: #e8ae52;
  --tungsten-700: #8a4f06;
  --slate-400: #7fa3c9;
  --slate-600: #364f6a;
  --red-400: #e5675a;

  /* mattes (theme-independent) */
  --matte: var(--black);
  --matte-text: var(--light-100);
  --matte-muted: #a39c8f;
  --matte-accent: var(--tungsten-400);
  --matte-line: #24242a;

  /* type */
  --font-title: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-credit: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 4.4rem);
  --step-5: clamp(2.8rem, 1.2rem + 6.5vw, 7rem);

  --gutter: clamp(16px, 3.5vw, 48px);
  --maxw: 1320px;
  --bar: clamp(36px, 6vw, 84px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* Theatre (dark) is the default screening condition */
:root,
:root[data-theme="dark"] {
  --screen: var(--ink-900);
  --surface: var(--ink-850);
  --surface-2: var(--ink-800);
  --line: var(--ink-700);
  --line-strong: var(--ink-600);
  --text: var(--light-100);
  --text-muted: #aaa396;
  --heading: #fbf7ee;
  --accent: var(--tungsten-400);
  --accent-ink: #1a1206;
  --link: #f0c27a;
  --grade: var(--slate-400);
  --code-bg: #08080a;
  --grain-opacity: .07;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --screen: var(--paper-50);
  --surface: #fbf8f1;
  --surface-2: var(--paper-100);
  --line: var(--paper-200);
  --line-strong: var(--paper-300);
  --text: #25231f;
  --text-muted: #57524a;
  --heading: #111013;
  --accent: var(--tungsten-700);
  --accent-ink: #fff8ec;
  --link: var(--slate-600);
  --grade: var(--slate-600);
  --code-bg: #0e0e11;
  --grain-opacity: .035;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--screen);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after {
  /* film grain, drawn with SVG turbulence so no raster is required */
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("assets/film-grain.png"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }

img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
.matte :focus-visible, .site-foot :focus-visible { outline-color: var(--matte-accent); }
.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: 200; background: var(--matte-accent); color: #111; padding: .6rem 1rem; font-family: var(--font-credit); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type roles ---------- */
.title, h1, h2, h3 { font-family: var(--font-title); color: var(--heading); font-weight: 500; line-height: 1.1; margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: -.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
.film-title { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; line-height: 1.05; }
.credit { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; font-weight: 500; font-size: var(--step--1); line-height: 1.4; }
.credit-strong { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.muted { color: var(--text-muted); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text); max-width: 40ch; }
.mono { font-family: var(--font-mono); }
p { margin: 0 0 1em; }

/* ---------- upper matte: nav ---------- */
.matte {
  background: var(--matte);
  color: var(--matte-text);
}
.site-head {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--matte-line);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--matte-text); text-decoration: none; flex-shrink: 0; }
.brand svg { width: 38px; height: 38px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: var(--font-title); font-weight: 600; letter-spacing: .22em; font-size: 1.05rem; }
.brand-word small { font-family: var(--font-credit); letter-spacing: .24em; font-size: .875rem; color: var(--matte-muted); margin-top: 3px; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .7rem;
  color: var(--matte-text); text-decoration: none;
  font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav a .reel { font-family: var(--font-mono); font-size: .8125rem; color: var(--matte-muted); letter-spacing: 0; }
.nav a:hover { color: #fff; border-bottom-color: var(--matte-line); }
.nav a[aria-current="page"] { border-bottom-color: var(--matte-accent); color: #fff; }
.nav a.nav-ai { border: 1px solid var(--matte-accent); color: var(--matte-accent); margin-left: .35rem; padding: 0 .9rem; }
.nav a.nav-ai:hover, .nav a.nav-ai[aria-current="page"] { background: var(--matte-accent); color: #111; }
.nav a.nav-ai .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .nav a.nav-ai .dot { animation: none; } }
.head-tools { display: flex; align-items: center; gap: .5rem; }
.search-form { display: flex; align-items: center; border: 1px solid var(--matte-line); }
.search-form input {
  background: transparent; border: 0; color: var(--matte-text); font: inherit; font-size: 1rem;
  padding: .5rem .75rem; width: 9rem; min-height: 42px;
}
.search-form input::placeholder { color: var(--matte-muted); }
.search-form button, .icon-btn {
  background: transparent; color: var(--matte-text); border: 0; cursor: pointer; min-width: 44px; min-height: 44px;
  display: inline-grid; place-items: center; font: inherit;
}
.icon-btn { border: 1px solid var(--matte-line); }
.icon-btn:hover, .search-form button:hover { color: var(--matte-accent); }
.icon-btn svg, .search-form svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }
.mobile-panel { display: none; }

@media (max-width: 1180px) {
  .search-form input { width: 6.5rem; }
  .nav a { padding: 0 .5rem; letter-spacing: .1em; }
  .nav a .reel { display: none; }
}
@media (max-width: 960px) {
  .nav, .site-head .search-form { display: none; }
  .menu-btn { display: inline-grid; }
  .head-tools { margin-left: auto; }
  .mobile-panel { border-top: 1px solid var(--matte-line); padding: 1rem var(--gutter) 1.5rem; }
  .mobile-panel.open { display: block; }
  .mobile-panel ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .mobile-panel a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--matte-line); color: var(--matte-text); text-decoration: none; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; font-size: 1.15rem; }
  .mobile-panel a[aria-current="page"] { color: var(--matte-accent); }
  .mobile-panel .reel { font-family: var(--font-mono); font-size: .875rem; color: var(--matte-muted); }
  .mobile-panel .search-form { display: flex; }
  .mobile-panel .search-form input { flex: 1; width: auto; }
}

/* ---------- letterbox frame ---------- */
.letterbox { background: var(--matte); color: var(--matte-text); position: relative; }
.lb-bar {
  height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto;
  font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .2em; font-size: .875rem; color: var(--matte-muted);
}
.lb-bar .tc { font-family: var(--font-mono); letter-spacing: .02em; }
.lb-bar .rec { color: var(--matte-accent); }
.lb-frame { position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; background: #111 linear-gradient(120deg, #1d2530, #0c0c0f 60%); max-height: 78vh; width: 100%; }
.lb-frame > img { width: 100%; height: 100%; object-fit: cover; }
.lb-frame::after { /* teal-and-tungsten grade, brand slate in the shadows */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(54, 79, 106, .35), transparent 45%), radial-gradient(ellipse at 70% 40%, rgba(232, 174, 82, .12), transparent 60%);
  mix-blend-mode: normal;
}
.lb-anim .lb-bar { animation: matte-in 1.1s var(--ease) both; }
@keyframes matte-in { from { height: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lb-anim .lb-bar { animation: none; } }

.lb-title {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 12%; width: min(46%, 640px);
  color: var(--matte-text);
}
.lb-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(270deg, rgba(5, 5, 6, .92) 0%, rgba(5, 5, 6, .75) 38%, rgba(5, 5, 6, 0) 70%); }
.lb-title .presents { color: var(--matte-accent); margin-bottom: 1rem; display: block; }
.lb-title h1 { color: #fff; font-size: clamp(2.2rem, 1rem + 3.2vw, 4.2rem); line-height: 1.02; }
.lb-title p { color: #d9d3c6; margin-top: 1rem; font-size: 1.125rem; max-width: 44ch; }
.title-reveal { animation: reveal 1.6s .35s var(--ease) both; }
@keyframes reveal { from { opacity: 0; letter-spacing: .3em; filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .title-reveal { animation: none; } }

@media (max-width: 860px) {
  .lb-frame { aspect-ratio: 4 / 3.4; max-height: none; }
  .lb-frame.keep-wide { aspect-ratio: 2.39 / 1; }
  .lb-frame:not(.keep-wide) { aspect-ratio: auto; overflow: visible; background: var(--matte); }
  .lb-frame:not(.keep-wide) > img { aspect-ratio: 4 / 3.6; height: auto; }
  .lb-frame:not(.keep-wide)::after { bottom: auto; aspect-ratio: 4 / 3.6; width: 100%; }
  .lb-scrim { background: linear-gradient(0deg, rgba(5,5,6,.9), transparent 55%); }
  .lb-title { position: relative; right: auto; bottom: auto; width: auto; padding: 1.5rem var(--gutter) .5rem; }
  .lb-frame .lb-scrim { display: none; }
  .lb-bar { letter-spacing: .12em; }
  .lb-bar .hide-sm { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.4rem;
  font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--heading); color: var(--screen); }
.matte .btn-primary, .letterbox .btn-primary { background: var(--matte-accent); color: #111; }
.matte .btn-primary:hover, .letterbox .btn-primary:hover { background: #fff; }
.btn-line { border-color: currentColor; color: var(--heading); }
.letterbox .btn-line, .matte .btn-line { color: #fff; }
.btn-line:hover { background: var(--heading); color: var(--screen); }
.letterbox .btn-line:hover { background: #fff; color: #111; }
.btn-quiet { color: var(--text-muted); padding: 0 .4rem; text-decoration: underline; text-underline-offset: .3em; }
.letterbox .btn-quiet { color: var(--matte-muted); }
.btn-quiet:hover { color: var(--heading); }
.letterbox .btn-quiet:hover { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1.5rem; }

/* ---------- scene headers ---------- */
.scene { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.scene + .scene { border-top: 1px solid var(--line); }
.slate {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.slate-no {
  font-family: var(--font-credit); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .9375rem;
  color: var(--accent); border: 1px solid var(--accent); padding: .35rem .7rem; white-space: nowrap; align-self: start; margin-top: .4rem;
}
.slate h2 { font-size: var(--step-3); }
.slate p { margin: .5rem 0 0; color: var(--text-muted); max-width: 60ch; }
.slate .more { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; white-space: nowrap; color: var(--heading); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .15rem; }
.slate .more:hover { color: var(--accent); }
@media (max-width: 700px) {
  .slate { grid-template-columns: 1fr; gap: .75rem; }
  .slate-no { justify-self: start; margin: 0; }
}

/* ---------- film frames (cards) ---------- */
.frame-card { position: relative; display: flex; flex-direction: column; gap: .85rem; }
.frame-card .shot {
  position: relative; aspect-ratio: 2.39 / 1; overflow: hidden; background: var(--surface-2);
  border-top: 10px solid var(--matte); border-bottom: 10px solid var(--matte);
}
.frame-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; filter: saturate(.85) contrast(1.05); }
.frame-card:hover .shot img { transform: scale(1.04); filter: none; }
@media (prefers-reduced-motion: reduce) { .frame-card .shot img { transition: none; } .frame-card:hover .shot img { transform: none; } }
.frame-card .shot .tc { position: absolute; left: .6rem; bottom: .45rem; font-family: var(--font-mono); font-size: .8125rem; color: #fff; background: rgba(0,0,0,.72); padding: .1rem .4rem; }
.frame-card .shot.blank { display: grid; place-items: center; background: radial-gradient(ellipse at center, #26303c, #0c0c0f 70%); }
.frame-card .shot.blank span { font-family: var(--font-title); text-transform: uppercase; letter-spacing: .2em; color: #e9e2d3; font-size: 1.15rem; text-align: center; padding: 0 1rem; line-height: 1.3; }
.frame-card .meta { display: flex; gap: .75rem; flex-wrap: wrap; align-items: baseline; color: var(--text-muted); }
.frame-card .meta .kind { color: var(--accent); }
.frame-card h3 { font-size: 1.4rem; }
.frame-card h3 a { color: var(--heading); text-decoration: none; }
.frame-card h3 a::after { content: ""; position: absolute; inset: 0; }
.frame-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.frame-card p { margin: 0; color: var(--text-muted); }
.frame-card:focus-within .shot { outline: 3px solid var(--accent); outline-offset: 3px; }
.frame-card h3 a:focus-visible { outline: none; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- filmstrip (horizontal scroller with sprockets) ---------- */
.filmstrip {
  background: var(--matte); color: var(--matte-text); position: relative; padding: 30px 0;
}
.filmstrip::before, .filmstrip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: repeating-linear-gradient(90deg, transparent 0 10px, #d8d0c0 10px 24px, transparent 24px 34px);
  opacity: .55; border-radius: 2px;
}
.filmstrip::before { top: 9px; }
.filmstrip::after { bottom: 9px; }
.strip-track { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scrollbar-width: thin; scrollbar-color: #444 transparent; }
.strip-cell { flex: 0 0 min(78vw, 400px); scroll-snap-align: start; background: #111; position: relative; }
.strip-cell a { color: inherit; text-decoration: none; display: block; }
.strip-cell .shot { aspect-ratio: 16 / 9; overflow: hidden; background: #1a1f27; }
.strip-cell .shot img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .2s; }
.strip-cell a:hover .shot img, .strip-cell a:focus-visible .shot img { filter: none; }
.strip-cell .cap { padding: 1rem 1.1rem 1.25rem; }
.strip-cell .cap .credit { color: var(--matte-accent); }
.strip-cell h3 { color: #fff; font-size: 1.25rem; margin-top: .4rem; }
.strip-cell p { color: #c9c2b4; font-size: 1rem; margin: .5rem 0 0; }
.strip-cell a:focus-visible { outline-offset: -3px; }
.strip-controls { display: flex; gap: .5rem; justify-content: flex-end; }
.strip-controls button { background: transparent; border: 1px solid var(--line-strong); color: var(--heading); min-width: 48px; min-height: 48px; cursor: pointer; font-size: 1.2rem; }
.strip-controls button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- billing block ---------- */
.billing {
  font-family: var(--font-credit); text-transform: uppercase; text-align: center; color: var(--text-muted);
  letter-spacing: .06em; line-height: 1.35; font-size: 1rem; font-weight: 400;
}
.billing b { color: var(--heading); font-weight: 600; font-size: 1.2rem; letter-spacing: .04em; }

/* ---------- stats as billing ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-row > div { padding: 1.5rem 1rem; text-align: center; }
.stat-row > div + div { border-left: 1px solid var(--line); }
.stat-row .n { font-family: var(--font-title); font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.6rem); color: var(--heading); line-height: 1; display: block; }
.stat-row .l { display: block; margin-top: .6rem; color: var(--text-muted); }
.letterbox .stat-row, .matte .stat-row { border-color: var(--matte-line); }
.letterbox .stat-row > div + div { border-color: var(--matte-line); }
.letterbox .stat-row .n { color: #fff; }
.letterbox .stat-row .l { color: var(--matte-muted); }

/* ---------- lists: filmography ---------- */
.filmography { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.filmography li { border-bottom: 1px solid var(--line); }
.filmography a.row {
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 12rem; gap: 1.5rem; align-items: baseline;
  padding: 1.35rem .5rem; text-decoration: none; color: var(--text); position: relative; transition: background .15s;
}
.filmography a.row:hover { background: var(--surface); }
.filmography a.row:hover .t { text-decoration: underline; text-decoration-color: var(--accent); }
.filmography .d { font-family: var(--font-mono); font-size: .9375rem; color: var(--text-muted); }
.filmography .t { font-family: var(--font-title); font-size: 1.4rem; color: var(--heading); line-height: 1.25; display: block; }
.filmography .desc { display: block; color: var(--text-muted); margin-top: .35rem; max-width: 70ch; font-size: 1.0625rem; }
.filmography .c { text-align: right; color: var(--accent); }
.year-head { font-family: var(--font-title); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); color: transparent; -webkit-text-stroke: 1px var(--line-strong); line-height: 1; margin: 3rem 0 .75rem; letter-spacing: .04em; }
@supports not (-webkit-text-stroke: 1px black) { .year-head { color: var(--line-strong); } }
@media (max-width: 720px) {
  .filmography a.row { grid-template-columns: 1fr; gap: .3rem; padding: 1.1rem 0; }
  .filmography .c { text-align: left; order: -1; }
}

/* ---------- chips / pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.chip { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .12em; font-size: .875rem; border: 1px solid var(--line-strong); padding: .25rem .6rem; color: var(--text-muted); text-decoration: none; display: inline-block; }
a.chip:hover { border-color: var(--accent); color: var(--heading); }
.badge { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .14em; font-size: .875rem; font-weight: 600; padding: .15rem .55rem; border: 1px solid var(--accent); color: var(--accent); }
.badge.solid { background: var(--accent); color: var(--accent-ink); }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filter-bar button {
  font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .14em; font-size: 1rem; font-weight: 500;
  background: transparent; color: var(--text); border: 1px solid var(--line-strong); min-height: 44px; padding: 0 1rem; cursor: pointer;
}
.filter-bar button:hover { border-color: var(--heading); }
.filter-bar button[aria-pressed="true"] { background: var(--heading); color: var(--screen); border-color: var(--heading); }
.filter-bar button .count { font-family: var(--font-mono); font-size: .875rem; opacity: .75; margin-left: .35rem; letter-spacing: 0; }

/* ---------- panels ---------- */
.panel-dark { background: var(--matte); color: var(--matte-text); }
.panel-dark h2, .panel-dark h3 { color: #fff; }
.panel-dark .muted { color: var(--matte-muted); }
.panel-dark a:not(.btn) { color: var(--matte-accent); }
.panel-dark .btn-primary { color: #111; }
.filmography a.row.two { grid-template-columns: 7rem minmax(0, 1fr); }
@media (max-width: 720px) { .filmography a.row.two { grid-template-columns: 1fr; } }
.surface { background: var(--surface); border: 1px solid var(--line); }

/* ---------- newsletter ---------- */
.ticket {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center;
  border: 1px solid var(--line-strong); background: var(--surface); padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  -webkit-mask: radial-gradient(circle 16px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 16px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket h2 { font-size: var(--step-2); }
.ticket .admit { color: var(--accent); display: block; margin-bottom: .6rem; }
.sub-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.sub-form label.visually-hidden + input, .sub-form input[type="email"] {
  flex: 1 1 14rem; min-height: 48px; padding: 0 1rem; font: inherit; font-size: 1.0625rem; color: var(--heading);
  background: var(--screen); border: 1px solid var(--line-strong);
}
.sub-form input::placeholder { color: var(--text-muted); }
.sub-form .consent { flex-basis: 100%; display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; color: var(--text-muted); }
.sub-form .consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--accent); }
.sub-form .status { flex-basis: 100%; margin: 0; min-height: 1.5em; font-size: 1rem; }
@media (max-width: 760px) { .ticket { grid-template-columns: 1fr; } }

/* ---------- lower matte: footer ---------- */
.site-foot { background: var(--matte); color: var(--matte-text); padding: 5rem 0 2.5rem; border-top: 1px solid var(--matte-line); }
.end-card { text-align: center; margin-bottom: 4rem; }
.end-card .the-end { font-family: var(--font-title); font-style: italic; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); color: #fff; letter-spacing: .02em; }
.end-card p { color: var(--matte-muted); margin: .75rem auto 0; max-width: 46ch; }
.foot-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-top: 3rem; border-top: 1px solid var(--matte-line); }
.foot-cols h2 { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .2em; font-size: .9375rem; color: var(--matte-accent); font-weight: 600; margin-bottom: 1rem; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-cols li a { color: var(--matte-text); text-decoration: none; display: inline-block; padding: .3rem 0; font-size: 1.0625rem; }
.foot-cols li a:hover { color: var(--matte-accent); text-decoration: underline; }
.foot-cols p { color: var(--matte-muted); font-size: 1.0625rem; }
.site-foot .sub-form input[type="email"] { background: #111114; color: #fff; border-color: #3a3a44; }
.site-foot .sub-form input::placeholder { color: #8e887d; }
.foot-billing { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--matte-line); font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .08em; color: var(--matte-muted); text-align: center; font-size: .9375rem; line-height: 1.5; }
.foot-billing b { color: var(--matte-text); font-weight: 600; }
.foot-billing .copy { display: block; margin-top: 1rem; letter-spacing: .14em; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- page title cards ---------- */
.title-card { text-align: center; padding: clamp(3rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); }
.title-card .presents { color: var(--matte-accent); display: block; margin-bottom: 1.25rem; }
.title-card h1 { color: #fff; font-size: var(--step-5); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; line-height: 1; }
.title-card p { color: #d4cdbf; max-width: 58ch; margin: 1.5rem auto 0; font-size: 1.1875rem; }
.title-card .rule { width: 80px; height: 1px; background: var(--matte-accent); margin: 1.75rem auto 0; border: 0; }

/* ---------- chapters (TOC), article ---------- */
.progress-tc {
  position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none;
}
.progress-tc .fill { height: 100%; width: 0; background: var(--matte-accent); }
.tc-readout { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; background: var(--matte); color: var(--matte-text); border: 1px solid var(--matte-line); padding: .45rem .75rem; font-family: var(--font-mono); font-size: .875rem; display: flex; gap: .6rem; align-items: center; }
.tc-readout .rec { color: var(--red-400); }

.article-hero .meta-line { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; color: var(--matte-muted); margin-top: 1.5rem; }
.article-hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.5vw, 5.4rem); text-transform: none; letter-spacing: 0; line-height: 1.05; max-width: 18ch; margin: 0 auto; }
.crumb { color: var(--matte-accent); text-decoration: none; }
.crumb:hover { text-decoration: underline; }

.article-shell { display: grid; grid-template-columns: 250px minmax(0, 720px) 1fr; gap: 3.5rem; max-width: var(--maxw); margin: 0 auto; padding: 4rem var(--gutter) 2rem; }
.chapters { position: sticky; top: 92px; align-self: start; }
.chapters h2 { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .2em; font-size: .9375rem; color: var(--accent); font-weight: 600; margin-bottom: 1rem; }
.chapters ol { list-style: none; padding: 0; margin: 0; counter-reset: ch; border-left: 1px solid var(--line-strong); }
.chapters li { counter-increment: ch; }
.chapters a { display: grid; grid-template-columns: 2.2rem 1fr; padding: .55rem 0 .55rem 1rem; color: var(--text-muted); text-decoration: none; font-size: 1rem; line-height: 1.35; border-left: 3px solid transparent; margin-left: -2px; }
.chapters a::before { content: counter(ch, decimal-leading-zero); font-family: var(--font-mono); font-size: .875rem; color: var(--text-muted); padding-top: .1rem; }
.chapters a:hover { color: var(--heading); }
.chapters a.active { color: var(--heading); border-left-color: var(--accent); }
.chapters a.active::before { color: var(--accent); }
.chapters .runtime { margin-top: 1.25rem; color: var(--text-muted); }
.chapters-mobile { display: none; }
.aside-right { align-self: start; position: sticky; top: 92px; }
.aside-right .credit { color: var(--text-muted); }
.aside-right ul { list-style: none; margin: .75rem 0 2rem; padding: 0; }
.aside-right li a, .aside-right li button { display: block; padding: .4rem 0; color: var(--heading); font-size: 1rem; background: none; border: 0; font-family: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.aside-right li a:hover, .aside-right li button:hover { text-decoration-color: var(--accent); }

@media (max-width: 1200px) {
  .article-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .aside-right { display: none; }
}
@media (max-width: 900px) {
  .article-shell { grid-template-columns: minmax(0, 1fr); padding-top: 2rem; gap: 0; }
  .chapters { display: none; }
  .chapters-mobile { display: block; margin-bottom: 2rem; border: 1px solid var(--line-strong); }
  .chapters-mobile summary { cursor: pointer; padding: 1rem 1.1rem; min-height: 48px; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; color: var(--heading); display: flex; justify-content: space-between; }
  .chapters-mobile ol { margin: 0; padding: 0 1.1rem 1rem 2.6rem; }
  .chapters-mobile li { padding: .35rem 0; }
  .chapters-mobile a { color: var(--heading); }
  .tc-readout { display: none; }
}

.prose { font-size: 1.1875rem; line-height: 1.7; min-width: 0; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: var(--step-3); margin: 3.5rem 0 1.25rem; scroll-margin-top: 96px; display: flex; gap: 1rem; align-items: baseline; }
.prose h2 .chno { font-family: var(--font-mono); font-size: 1rem; color: var(--accent); flex-shrink: 0; }
.prose p { margin: 0 0 1.35em; }
.prose ol, .prose ul { padding-left: 1.4rem; margin: 0 0 1.35em; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--accent); font-family: var(--font-mono); }
.prose code { overflow-wrap: anywhere; font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); padding: .1em .35em; border: 1px solid var(--line); }
.prose a { color: var(--link); }
.prose strong { color: var(--heading); }

.callout { border-left: 3px solid var(--line-strong); padding: 1rem 1.25rem; margin: 0 0 1.5em; background: var(--surface); }
.callout p:last-child { margin-bottom: 0; }
.callout .label { display: block; margin-bottom: .35rem; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .18em; font-weight: 600; font-size: .9375rem; }
.callout.why { border-left-color: var(--grade); }
.callout.why .label { color: var(--grade); }
.callout.question { border-left-color: var(--accent); background: transparent; border: 1px dashed var(--line-strong); border-left: 3px solid var(--accent); }
.callout.question .label { color: var(--accent); }
.callout.note .label, .callout.skill .label { color: var(--heading); }
.callout.skill { background: var(--matte); color: var(--matte-text); border-left-color: var(--matte-accent); }
.callout.skill .label { color: var(--matte-accent); }
.callout.skill a { color: var(--matte-accent); }
.callout.skill code { background: #1c1c22; border-color: #2c2c34; color: #fff; }

.reel-code { margin: 0 0 1.75em; background: var(--code-bg); color: #e6e1d6; border: 1px solid #22222a; max-width: none !important; }
.reel-code .bar { display: flex; justify-content: space-between; align-items: center; padding: 0 .5rem 0 1rem; min-height: 44px; border-bottom: 1px solid #22222a; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; font-size: .875rem; color: #a39c8f; }
.reel-code .bar .lang::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--red-400); border-radius: 50%; margin-right: .6rem; vertical-align: middle; }
.reel-code button { background: transparent; color: #e6e1d6; border: 1px solid #33333c; min-height: 36px; padding: 0 .8rem; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .14em; font-size: .875rem; cursor: pointer; }
.reel-code button:hover { border-color: var(--tungsten-400); color: var(--tungsten-400); }
.reel-code pre { margin: 0; padding: 1.1rem 1.25rem 1.3rem; overflow-x: auto; font-family: var(--font-mono); font-size: .9375rem; line-height: 1.6; tab-size: 2; }
.reel-code .k { color: #e8ae52; }
.reel-code .s { color: #9fcf8f; }
.reel-code .c { color: #8e98a6; font-style: italic; }
.reel-code .tg { color: #8fb8e0; }
.reel-code pre code, .pane pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }

.end-slate { border-top: 1px solid var(--line-strong); padding-top: 2rem; margin-top: 3rem; }

/* ---------- about: credits ---------- */
.crawl { text-align: center; padding: 5rem var(--gutter) 6rem; background: var(--matte); color: var(--matte-text); }
.crawl h2 { color: #fff; }
.crawl .dept { margin: 0 auto 5rem; max-width: 980px; }
.crawl .dept-title { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .3em; color: var(--matte-accent); font-weight: 600; font-size: 1rem; margin-bottom: 2rem; }
.crawl .dept-intro { color: #cfc8ba; max-width: 56ch; margin: -1rem auto 2.5rem; }
.credit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: .55rem 0; align-items: baseline; }
.credit-pair .role { text-align: right; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .14em; color: #b6ae9f; font-size: 1.0625rem; }
.credit-pair .name { text-align: left; font-family: var(--font-title); color: #fff; font-size: 1.35rem; }
.credit-pair .name small { display: block; font-family: var(--font-mono); font-size: .875rem; color: #a39c8f; margin-top: .15rem; }
.credit-card { margin: 0 auto 5rem; }
.credit-card .role { display: block; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .3em; color: #b6ae9f; font-size: 1rem; }
.credit-card .name { display: block; font-family: var(--font-title); text-transform: uppercase; letter-spacing: .12em; color: #fff; font-size: clamp(2rem, 1.2rem + 3.5vw, 4rem); margin-top: .6rem; line-height: 1.05; }
.phase { margin: 0 auto 4.5rem; max-width: 820px; }
.phase h3 { font-family: var(--font-title); font-style: italic; color: #fff; font-size: var(--step-2); }
.phase .period { font-family: var(--font-mono); color: var(--matte-accent); font-size: 1rem; display: block; margin: .5rem 0 1rem; }
.phase p { color: #cfc8ba; max-width: 58ch; margin: 0 auto 1.75rem; }
.phase .bullets { text-align: left; max-width: 62ch; margin: 1rem auto 0; padding: 1.25rem 1.5rem; border: 1px solid var(--matte-line); color: #d9d3c6; font-size: 1.0625rem; }
.phase .bullets li { margin: .4rem 0; }
.phase .bullets li::marker { color: var(--matte-accent); }
.quote-card { font-family: var(--font-title); font-style: italic; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.3; max-width: 26ch; margin: 0 auto 2.75rem; }
.quote-card::before { content: "\201C"; color: var(--matte-accent); }
.quote-card::after { content: "\201D"; color: var(--matte-accent); }
.career-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 0; margin: 0 auto 4rem; max-width: 1000px; }
.career-bar span { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .12em; color: #d9d3c6; padding: 0 1rem; border-right: 1px solid #3a3a44; font-size: 1rem; }
.career-bar span:last-child { border-right: 0; }
.career-bar b { color: var(--matte-accent); font-weight: 500; font-family: var(--font-mono); font-size: .875rem; letter-spacing: 0; margin-left: .35rem; }
.roll-btn { position: fixed; left: 1rem; bottom: 1rem; z-index: 60; }
@media (max-width: 640px) {
  .credit-pair { grid-template-columns: 1fr; gap: .1rem; padding: .8rem 0; }
  .credit-pair .role, .credit-pair .name { text-align: center; }
  .roll-btn { left: auto; right: 1rem; }
}

/* ---------- patterns ---------- */
.pattern-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); position: relative; }
.pattern-card:hover { border-color: var(--line-strong); }
.pattern-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.pattern-card .thumb { aspect-ratio: 2.39 / 1; background: var(--matte); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.pattern-card .thumb .fno { position: absolute; left: .55rem; top: .4rem; font-family: var(--font-mono); font-size: .8125rem; color: #a39c8f; }
.pattern-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pattern-card .row1 { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pattern-card .row1 .credit { color: var(--accent); }
.pattern-card h3 { font-size: 1.3rem; }
.pattern-card h3 a { color: var(--heading); text-decoration: none; }
.pattern-card h3 a::after { content: ""; position: absolute; inset: 0; }
.pattern-card h3 a:focus-visible { outline: none; }
.pattern-card p { margin: 0; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.5; }
.pattern-card .date { font-family: var(--font-mono); font-size: .875rem; color: var(--text-muted); margin-top: auto; padding-top: .5rem; }
/* abstract thumbnails, one per category */
.th { width: 62%; height: 58%; position: relative; }
.th-data { background: repeating-linear-gradient(90deg, transparent 0 8%, rgba(232,174,82,.0) 8%), linear-gradient(to top, #e8ae52 0 0) ; display: flex; align-items: flex-end; gap: 6%; background: none; }
.th-data i { flex: 1; background: #e8ae52; opacity: .85; }
.th-layout { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: #3a3a44; padding: 3px; }
.th-layout i { background: #1d1d23; }
.th-layout i:first-child { grid-row: span 2; background: #7fa3c9; opacity: .8; }
.th-inter { display: flex; gap: 8%; align-items: center; justify-content: center; }
.th-inter i { width: 28%; height: 40%; border: 2px solid #e6e1d6; border-radius: 3px; }
.th-inter i.on { background: #e8ae52; border-color: #e8ae52; box-shadow: 0 4px 0 #8a4f06; }
.th-forms { display: flex; flex-direction: column; gap: 12%; justify-content: center; }
.th-forms i { height: 22%; border: 1px solid #6a6a76; }
.th-forms i:last-child { width: var(--submit, 40%); background: #e8ae52; border-color: #e8ae52; }
.th-color { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.th-color i:nth-child(1) { background: #364f6a; } .th-color i:nth-child(2) { background: #4a6d8c; } .th-color i:nth-child(3) { background: #7fa3c9; }
.th-color i:nth-child(4) { background: #e8ae52; } .th-color i:nth-child(5) { background: #8a4f06; }

.pat-tools { display: grid; gap: 1.25rem; margin-bottom: 2.5rem; }
.pat-search { display: flex; border: 1px solid var(--line-strong); background: var(--surface); }
.pat-search input { flex: 1; min-width: 0; min-height: 56px; padding: 0 1.1rem; font: inherit; font-size: 1.125rem; background: transparent; border: 0; color: var(--heading); }
.pat-search input::placeholder { color: var(--text-muted); }
.pat-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; align-items: center; }
.pat-status select { font: inherit; font-size: 1rem; min-height: 44px; background: var(--surface); color: var(--heading); border: 1px solid var(--line-strong); padding: 0 .75rem; }
.link-btn { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; text-decoration: underline; min-height: 44px; padding: 0 .5rem; }
.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line-strong); }
.empty[hidden] { display: none; }
.three-ways { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.three-ways > div { padding: 1.5rem; }
.three-ways > div + div { border-left: 1px solid var(--line-strong); }
.three-ways h3 { font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .18em; font-size: 1.05rem; color: var(--accent); font-weight: 600; }
.three-ways p { margin: .5rem 0 0; color: var(--text-muted); font-size: 1.0625rem; }
.three-ways .foot { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line-strong); color: var(--text); }
@media (max-width: 800px) { .three-ways { grid-template-columns: 1fr; } .three-ways > div + div { border-left: 0; border-top: 1px solid var(--line-strong); } }

/* pattern detail panes */
.panes { border: 1px solid var(--line-strong); background: var(--surface); }
.panes-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; border-bottom: 1px solid var(--line-strong); background: var(--matte); }
.tabs { display: flex; flex-wrap: wrap; }
.tabs button { background: transparent; border: 0; border-right: 1px solid var(--matte-line); color: var(--matte-muted); font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; font-size: 1rem; min-height: 50px; padding: 0 1.2rem; cursor: pointer; }
.tabs button:hover { color: #fff; }
.tabs button[aria-selected="true"] { color: #111; background: var(--matte-accent); }
.pane-actions { display: flex; gap: .5rem; align-items: center; padding: .35rem .5rem; }
.pane-actions button { background: transparent; border: 1px solid #3a3a44; color: var(--matte-text); font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .14em; font-size: .9375rem; min-height: 40px; padding: 0 .9rem; cursor: pointer; }
.pane-actions button:hover { border-color: var(--matte-accent); color: var(--matte-accent); }
.pane { padding: clamp(1rem, 3vw, 2rem); }
.pane[hidden] { display: none; }
.pane pre { margin: 0; overflow-x: auto; font-family: var(--font-mono); font-size: .9375rem; line-height: 1.6; background: var(--code-bg); color: #e6e1d6; padding: 1.25rem; }
.pane .note { color: var(--text-muted); margin: 0 0 1rem; font-size: 1.0625rem; }
.pane.prompt-pane { font-size: 1.125rem; max-width: 72ch; }
.stage { background: var(--surface-2); padding: clamp(1rem, 3vw, 2rem); }
.stage-cap { color: var(--text-muted); font-size: 1rem; margin: 0 0 .75rem; }

/* the demo pattern itself: hairline stat strip */
.hss-strip { display: grid; gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); overflow: hidden; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 52rem) { .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--surface); padding: 1rem 1.1rem; min-width: 0; text-align: left; font: inherit; color: inherit; border: 0; }
button.hss-tile { cursor: pointer; }
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); }
.hss-label { display: block; font-family: var(--font-mono); text-transform: uppercase; font-size: .8125rem; letter-spacing: .06em; color: var(--text-muted); overflow-wrap: anywhere; }
.hss-fig { display: block; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--heading); margin: .2rem 0; font-family: var(--font-body); }
.hss-fig.missing { color: var(--text-muted); font-weight: 400; }
.hss-sub { display: block; font-size: .9375rem; color: var(--text-muted); overflow-wrap: anywhere; }
.hss-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hss-list li[hidden] { display: none; }
.hss-list .st { font-family: var(--font-mono); font-size: .875rem; color: var(--text-muted); white-space: nowrap; }
.hss-status { margin: .9rem 0 0; color: var(--text); font-size: 1rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; }
.pager a { display: block; padding: 1.25rem 1.4rem; border: 1px solid var(--line-strong); text-decoration: none; color: var(--heading); }
.pager a:hover { border-color: var(--accent); }
.pager .credit { color: var(--text-muted); display: block; margin-bottom: .3rem; }
.pager .t { font-family: var(--font-title); font-size: 1.3rem; }
.pager a.next { text-align: right; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } }

/* misc */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.section-intro { max-width: 62ch; color: var(--text-muted); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--matte-line); }
.kv > div { padding: 1.1rem 1.2rem; }
.kv > div + div { border-left: 1px solid var(--matte-line); }
.kv .credit { color: var(--matte-muted); display: block; }
.kv b { font-family: var(--font-title); font-size: 2.2rem; color: #fff; font-weight: 500; display: block; line-height: 1.1; margin-top: .25rem; }
.poster { position: relative; display: flex; flex-direction: column; background: var(--matte); color: var(--matte-text); text-decoration: none; border: 1px solid var(--matte-line); }
.poster .img { aspect-ratio: 2 / 3; overflow: hidden; position: relative; background: #151a21; }
.poster .img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .6s var(--ease); }
.poster:hover .img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .poster .img img { transition: none; } .poster:hover .img img { transform: none; } }
.poster .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,5,6,.95) 0%, rgba(5,5,6,.2) 45%, transparent 70%); }
.poster .over { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem 1.25rem 1.4rem; z-index: 1; text-align: center; }
.poster .over .credit { color: var(--matte-accent); }
.poster .over h3 { color: #fff; font-family: var(--font-title); text-transform: uppercase; letter-spacing: .1em; font-size: 1.35rem; margin-top: .4rem; line-height: 1.15; }
.poster .foot { padding: 1rem 1.25rem 1.3rem; color: #cfc8ba; font-size: 1rem; line-height: 1.55; }
.poster .foot .read { display: inline-block; margin-top: .75rem; color: var(--matte-accent); font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; }
.poster.soon .img { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #111114 0 14px, #16161b 14px 28px); }
.poster.soon .img::after { display: none; }
.poster:focus-visible { outline-offset: 4px; }
.notice { border: 1px solid var(--matte-accent); padding: 1rem 1.25rem; color: #e9e2d3; max-width: 70ch; margin: 0 auto; text-align: center; }
.notice b { color: var(--matte-accent); font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .16em; display: block; margin-bottom: .2rem; }
.consult { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.consult p { margin: 0; font-family: var(--font-title); font-size: 1.5rem; color: var(--heading); max-width: 36ch; line-height: 1.3; }
.compact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compact-list li { background: var(--screen); padding: 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; position: relative; }
.compact-list h3 { font-size: 1.25rem; }
.compact-list h3 a { color: var(--heading); text-decoration: none; }
.compact-list h3 a::after { content: ""; position: absolute; inset: 0; }
.compact-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.compact-list li:focus-within { outline: 3px solid var(--accent); outline-offset: -3px; }
.compact-list h3 a:focus-visible { outline: none; }
.compact-list p { margin: 0; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.5; }
.compact-list .stars { font-family: var(--font-mono); font-size: .9375rem; color: var(--accent); }
.feature-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.feature-row:nth-child(even) .fr-media { order: 2; }
.feature-row .fr-media { border-top: 12px solid var(--matte); border-bottom: 12px solid var(--matte); background: #0c0c0f; aspect-ratio: 16 / 9; overflow: hidden; }
.feature-row .fr-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row .fr-media.terminal img { object-fit: contain; background: #0c0c0f; }
.feature-row h3 { font-size: var(--step-2); }
.feature-row h3 a { color: var(--heading); text-decoration: none; }
.feature-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.feature-row p { color: var(--text-muted); margin: .75rem 0 1rem; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } .feature-row:nth-child(even) .fr-media { order: 0; } }
.jump { position: sticky; top: 68px; z-index: 20; background: var(--screen); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: .25rem 1.25rem; align-items: center; overflow-x: auto; min-height: 56px; }
.jump a { white-space: nowrap; color: var(--text); text-decoration: none; font-family: var(--font-credit); text-transform: uppercase; letter-spacing: .14em; font-size: 1rem; padding: .6rem 0; }
.jump a:hover { color: var(--accent); }
.jump .credit { color: var(--text-muted); white-space: nowrap; }
.jump a .count { font-family: var(--font-mono); font-size: .875rem; color: var(--text-muted); letter-spacing: 0; }
[id] { scroll-margin-top: 140px; }

.prose-fig { margin: 0 0 1.5em; border: 1px solid var(--line-strong); }
.prose-fig img { display: block; width: 100%; height: auto; }
.prose blockquote.callout { margin-inline: 0; }
.prose .callout p + p { margin-top: .7em; }
.prose code { overflow-wrap: anywhere; }
