/* Nordic Noir — antjanus.com redesign 070
   Night (default) and Overcast themes on one token set. */

:root {
  /* primitives */
  --slate-950: #080c11;
  --slate-900: #0b1016;
  --slate-850: #0f161e;
  --slate-800: #141c26;
  --slate-750: #1a2531;
  --slate-700: #263241;
  --slate-600: #3a4a5e;
  --slate-400: #8e9bab;
  --slate-300: #c3cdd8;
  --slate-100: #e8eef4;
  --ice-200: #c9e1f5;
  --ice-300: #9cc3e6;
  --steel-500: #5f82a6;
  --brand: #364f6a;
  --fog-50: #f4f6f8;
  --fog-100: #e6eaee;
  --fog-200: #dce2e8;
  --fog-300: #c3ccd6;
  --ink-900: #0c1219;
  --ink-700: #25313e;
  --ink-500: #4b5868;
  --navy-600: #2c4d6f;
  --lamp-400: #e0a85a;
  --lamp-700: #8a5412;

  /* semantic — Night */
  --ground: var(--slate-900);
  --ground-2: var(--slate-850);
  --surface: var(--slate-800);
  --surface-2: var(--slate-750);
  --line: var(--slate-700);
  --line-strong: var(--slate-600);
  --ink: var(--slate-100);
  --text: var(--slate-300);
  --dim: var(--slate-400);
  --accent: var(--ice-300);
  --accent-strong: var(--ice-200);
  --accent-ink: var(--slate-900);
  --steel: var(--steel-500);
  --lamp: var(--lamp-400);
  --grain-opacity: 0.07;
  --shot-tint: rgba(38, 68, 104, 0.35);

  /* the frame (hero) stays dark in both themes */
  --frame-bg: #05080c;
  --frame-ink: #eef3f8;
  --frame-dim: #aebccb;
  --frame-accent: #9cc3e6;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --ground: var(--fog-100);
  --ground-2: var(--fog-200);
  --surface: var(--fog-50);
  --surface-2: #ffffff;
  --line: var(--fog-300);
  --line-strong: #9aa7b5;
  --ink: var(--ink-900);
  --text: var(--ink-700);
  --dim: var(--ink-500);
  --accent: var(--navy-600);
  --accent-strong: #1c3754;
  --accent-ink: #ffffff;
  --steel: var(--brand);
  --lamp: var(--lamp-700);
  --grain-opacity: 0.05;
  --shot-tint: rgba(54, 79, 106, 0.22);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .8 0 0 0 0 .87 0 0 0 0 .95 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 1px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--font-mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--lamp); color: #0b1016; padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: .875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; letter-spacing: .22em; font-size: .95rem; text-transform: uppercase; }
.brand-word small { display: block; font-family: var(--font-mono); font-stretch: 100%; font-weight: 400; letter-spacing: .14em; font-size: .8125rem; color: var(--dim); }
.nav-links { display: flex; gap: .25rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: 0 .8rem;
  font-family: var(--font-display); font-stretch: 112%; font-size: .9375rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav-links .ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px var(--lamp); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }
.nav-search { display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); }
.nav-search input {
  width: 9.5rem; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: .9375rem; padding: .55rem .7rem; min-height: 42px;
}
.nav-search input::placeholder { color: var(--dim); }
.nav-search button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text); min-width: 44px; min-height: 42px; cursor: pointer; display: grid; place-items: center; }
.nav-search button:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; min-width: 44px; padding: 0 .75rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--font-mono); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.theme-label-light { display: none; }
:root[data-theme="light"] .theme-label-dark { display: none; }
:root[data-theme="light"] .theme-label-light { display: inline; }

@media (max-width: 1120px) {
  .nav-search { display: none; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1.25rem;
    background: var(--ground); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { min-height: 52px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }
  .nav-tools { margin-left: auto; }
  .brand-word small { display: none; }
}
@media (max-width: 420px) {
  .theme-text { display: none; }
}

/* ---------- The frame (letterboxed hero) ---------- */
.frame { background: var(--frame-bg); color: var(--frame-ink); position: relative; isolation: isolate; }
.frame a { color: var(--frame-accent); }
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  min-height: clamp(44px, 6vw, 72px);
  font-family: var(--font-mono); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--frame-dim);
  max-width: var(--max); margin: 0 auto; padding: .6rem var(--gutter);
}
.rec { display: inline-flex; align-items: center; gap: .5rem; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0a85a; box-shadow: 0 0 12px #e0a85a; animation: blink 2.4s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.frame-body { position: relative; min-height: clamp(520px, 64vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: grayscale(.55) saturate(.6) contrast(1.1) brightness(.7); }
.frame-body::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 10% 20%, transparent 30%, rgba(5, 8, 12, .55) 75%),
    linear-gradient(180deg, rgba(30, 60, 100, .32), rgba(5, 8, 12, .2) 40%, rgba(5, 8, 12, .92) 100%);
}
.frame-fallback { background: linear-gradient(160deg, #1b2a3b, #0a1018 60%, #05080c); }
.rain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18;
  background-image: repeating-linear-gradient(104deg, transparent 0 22px, rgba(200, 225, 245, .55) 22px 23px, transparent 23px 61px);
  background-size: 100% 240px;
  animation: rain 1.1s linear infinite;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
@keyframes rain { to { background-position: -60px 240px; } }
.frame-copy { width: 100%; max-width: var(--max); margin: 0 auto; padding: 4rem var(--gutter) 2.5rem; }
.frame-copy.right { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.frame-copy.right > .frame-text { grid-column: 2; }
.eyebrow { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--frame-accent); margin: 0 0 1rem; }
.frame h1 {
  color: var(--frame-ink);
  font-stretch: 118%; font-weight: 300;
  font-size: clamp(2.35rem, 5.4vw, 5rem);
  line-height: 1.02; letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.frame h1 strong { font-weight: 800; }
.frame .lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--frame-dim); max-width: 44rem; margin-top: 1.25rem; }
.subtitle {
  display: block; text-align: center; margin: 1.75rem auto 0; max-width: 52rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.3rem); line-height: 1.5; color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 14px rgba(0, 0, 0, .9);
}
.subtitle::before, .subtitle::after { content: "—"; color: var(--frame-dim); margin: 0 .6rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: .9375rem;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.frame .btn-primary { background: #9cc3e6; color: #0b1016; }
.frame .btn-primary:hover { background: #d4e8f8; color: #0b1016; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.link-secondary { font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: currentColor; min-height: 44px; display: inline-flex; align-items: center; }
.frame .link-secondary { color: var(--frame-ink); }
.link-tertiary { color: var(--dim); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.frame .link-tertiary { color: var(--frame-dim); }
.link-tertiary:hover { text-decoration: underline; }
.bar-stats { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; }
.bar-stats b { color: var(--frame-ink); font-weight: 500; margin-right: .5rem; }

@media (max-width: 900px) {
  .frame-copy.right { grid-template-columns: 1fr; }
  .frame-copy.right > .frame-text { grid-column: 1; }
  .frame-body.home { min-height: 0; padding-top: 58vw; }
  .frame-body.home .frame-img { object-position: 20% 20%; height: 78vw; }
  .frame-body.home::before { background: linear-gradient(180deg, rgba(30, 60, 100, .3) 0, rgba(5, 8, 12, .1) 30vw, #05080c 76vw); }
  .bar { font-size: .8125rem; letter-spacing: .1em; }
  .subtitle::before, .subtitle::after { display: none; }
}

/* ---------- Section scaffolding ---------- */
.scene { padding: clamp(3.5rem, 7vw, 6.5rem) 0; position: relative; }
.scene + .scene::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2 * var(--gutter))); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--steel) 50%, var(--line-strong) 80%, transparent);
}
.scene.band { background: var(--ground-2); }
.scene-head { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.slug { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; margin: 0; }
.slug .no { font-family: var(--font-mono); font-size: .875rem; color: var(--lamp); letter-spacing: .1em; }
.slug .no + span { flex: 1; height: 1px; background: var(--line); max-width: 5rem; }
.scene-head h2 { font-stretch: 116%; font-weight: 300; font-size: clamp(2rem, 4.2vw, 3.5rem); text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
.scene-head h2 strong { font-weight: 750; }
.scene-head p { grid-column: 1; margin: .35rem 0 0; color: var(--dim); max-width: 44rem; }
.scene-head .more { grid-row: 2 / span 2; grid-column: 2; align-self: end; }
.more { font-family: var(--font-mono); font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.more:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .scene-head { grid-template-columns: 1fr; }
  .scene-head .more { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* ---------- Graded images ---------- */
.shot { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--surface-2), var(--ground-2)); aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.5) saturate(.65) contrast(1.06) brightness(.86); transition: filter .5s var(--ease), transform .8s var(--ease); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--shot-tint), transparent 55%); pointer-events: none; }
a:hover .shot img, a:focus-visible .shot img { filter: grayscale(.1) saturate(.95) contrast(1.02) brightness(.97); transform: scale(1.025); }
.shot.blank { display: grid; place-items: center; padding: 1.5rem; }
.shot.blank span { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--line-strong); text-align: center; line-height: 1.1; }
.shot .tc { position: absolute; left: .75rem; bottom: .6rem; z-index: 1; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; color: #dfe8f1; text-shadow: 0 1px 2px #000; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@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; } }

.card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .15s var(--ease); }
.card:hover, .card:focus-within { border-color: var(--line-strong); }
.card > a { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.card > a:hover h3 { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card p { margin: 0; color: var(--text); font-size: 1.0625rem; line-height: 1.55; }
.meta { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .06em; color: var(--dim); display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0; }
.meta .code { color: var(--lamp); }
.tags { list-style: none; margin: 0; padding: 0 1.35rem 1.25rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag, .tags li {
  font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em;
  color: var(--dim); border: 1px solid var(--line); padding: .15rem .55rem; background: var(--ground);
}
a.tag { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
a.tag:hover { color: var(--ink); border-color: var(--accent); }

.card.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.card.feature > a { display: contents; }
.card.feature .shot { aspect-ratio: auto; min-height: 340px; }
.card.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); font-stretch: 108%; }
.card.feature .card-body { padding: clamp(1.5rem, 3vw, 2.5rem); justify-content: center; }
@media (max-width: 800px) { .card.feature { grid-template-columns: 1fr; } .card.feature .shot { min-height: 0; aspect-ratio: 16/9; } }

/* start here shelf */
.shelf { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.25rem, 2.4vw, 2rem); }
.shelf-side { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.shelf-side .card > a { flex-direction: row; }
.shelf-side .shot { aspect-ratio: auto; width: 40%; flex: none; }
.shelf-main .shot { aspect-ratio: 16 / 10; }
.shelf-main h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
@media (max-width: 900px) { .shelf { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .shelf-side .card > a { flex-direction: column; } .shelf-side .shot { width: 100%; aspect-ratio: 16/9; } }

/* ---------- Episode guide (list rows) ---------- */
.episodes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.episodes li { border-bottom: 1px solid var(--line); }
.episodes a {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: .25rem 1.5rem; align-items: baseline;
  padding: 1.25rem .75rem; text-decoration: none; color: inherit;
  transition: background-color .15s var(--ease);
}
.episodes a:hover { background: var(--surface); }
.episodes .ep-no { font-family: var(--font-mono); font-size: .9375rem; color: var(--lamp); letter-spacing: .06em; }
.episodes strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.episodes a:hover strong { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.episodes .ep-desc { display: block; color: var(--text); font-size: 1.0625rem; margin-top: .3rem; }
.episodes time { font-family: var(--font-mono); font-size: .9375rem; color: var(--dim); white-space: nowrap; }
@media (max-width: 640px) {
  .episodes a { grid-template-columns: 1fr; padding: 1.1rem .25rem; }
  .episodes time { order: -1; }
  .episodes .ep-no { order: -2; }
}

/* ---------- Hairline strip (stats / experiments) ---------- */
.strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.strip > * { background: var(--surface); padding: 1.5rem 1.4rem; }
.strip .fig { display: block; font-family: var(--font-display); font-stretch: 118%; font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.strip .fig-label { margin-top: .6rem; }
.strip a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .5rem; min-height: 100%; }
.strip a:hover { background: var(--surface-2); }
.strip a:hover h3 { color: var(--accent-strong); }
.strip h3 { font-size: 1.2rem; }
.strip p { margin: 0; font-size: 1.0625rem; }
.type-pill { align-self: flex-start; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lamp); border: 1px solid currentColor; padding: .1rem .5rem; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.25rem); }
.panel h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.lamp-panel {
  position: relative; background: radial-gradient(120% 120% at 100% 0%, rgba(224, 168, 90, .22), transparent 55%), #0e141b;
  color: #d8e1ea; border: 1px solid #2a3644;
}
.lamp-panel h3 { color: #f2f5f8; }
.lamp-panel p { color: #c3cdd8; }
.lamp-panel .btn-primary { background: #e0a85a; color: #0b1016; }
.lamp-panel .btn-primary:hover { background: #f0c485; color: #0b1016; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 52px; text-decoration: none; color: var(--ink); font-weight: 500; }
.link-list a:hover { color: var(--accent-strong); }
.link-list a span:last-child { font-family: var(--font-mono); font-size: .875rem; color: var(--dim); }

/* ---------- Page header (non-hero pages use the frame too) ---------- */
.frame-body.short { min-height: clamp(380px, 48vh, 520px); }
.frame-body.short h1 { font-size: clamp(2.6rem, 7vw, 6rem); }

/* ---------- Jump nav ---------- */
.jump { position: sticky; top: 68px; z-index: 40; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.jump ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a { display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: 0 .9rem; white-space: nowrap; text-decoration: none; color: var(--text); font-family: var(--font-mono); font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.jump a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.jump a.active { color: var(--ink); border-bottom-color: var(--lamp); }
.jump .count { color: var(--dim); }

/* ---------- Project rows ---------- */
.reel { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.reel-item { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0; background: var(--surface); border: 1px solid var(--line); }
.reel-item:nth-child(even) .shot { order: 2; }
.reel-item .shot { aspect-ratio: auto; min-height: 300px; background: #070b10; }
.reel-item .shot img { object-fit: contain; }
.reel-item .shot.cover img { object-fit: cover; }
.reel-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: .9rem; justify-content: center; }
.reel-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-stretch: 110%; }
.reel-body p { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); align-self: flex-start; }
.mini-stats div { background: var(--ground); padding: .55rem .9rem; }
.mini-stats b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.mini-stats span { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 800px) {
  .reel-item { grid-template-columns: 1fr; }
  .reel-item:nth-child(even) .shot { order: 0; }
  .reel-item .shot { min-height: 0; aspect-ratio: 16 / 9; }
}
.gif-note { position: absolute; right: .6rem; top: .6rem; z-index: 1; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: #dfe8f1; background: rgba(5, 8, 12, .75); padding: .15rem .5rem; }

/* stars row */
.stars { font-family: var(--font-mono); font-size: .9375rem; color: var(--lamp); }

/* ---------- Writing filters ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-bottom: 1.5rem; }
.field { display: flex; align-items: center; border: 1px solid var(--line-strong); background: var(--surface); flex: 1 1 22rem; min-width: 0; }
.field svg { width: 20px; height: 20px; margin-left: .8rem; color: var(--dim); flex: none; }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; padding: .75rem .8rem; min-height: 50px; }
.field input::placeholder { color: var(--dim); }
.pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill {
  min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); background: transparent; color: var(--text);
  font-family: var(--font-mono); font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.pill:hover { border-color: var(--line-strong); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.select { min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; padding: 0 .75rem; }
.result-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: 0 0 1.5rem; }
.result-line .clear { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.empty { border: 1px dashed var(--line-strong); padding: 2.5rem 1.5rem; text-align: center; }
.empty h3 { font-size: 1.4rem; margin-bottom: .5rem; }
[hidden] { display: none !important; }

/* two list columns */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }
.duo h3 { font-size: 1.5rem; font-stretch: 110%; text-transform: uppercase; font-weight: 400; letter-spacing: .04em; margin-bottom: .25rem; }
.duo .sub { color: var(--dim); margin-bottom: 1rem; }

/* tags cloud */
.cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.cloud a { font-family: var(--font-mono); font-size: .9375rem; text-decoration: none; color: var(--text); border: 1px solid var(--line); padding: .35rem .75rem; min-height: 40px; display: inline-flex; align-items: center; gap: .5rem; }
.cloud a span { color: var(--dim); }
.cloud a:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- AI page ---------- */
.notice-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.notice-strip p { margin: 0; font-size: 1.1875rem; color: var(--ink); max-width: 44rem; }
.story {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 18rem); gap: 1.5rem 2rem; align-items: center;
  padding: 2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.story:first-child { border-top: 1px solid var(--line); }
.story .part { font-family: var(--font-display); font-stretch: 125%; font-weight: 200; font-size: 4rem; line-height: 1; color: var(--line-strong); }
.story:hover .part { color: var(--lamp); }
.story h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: .5rem; }
.story:hover h3 { color: var(--accent-strong); }
.story p { margin: 0; }
.story .shot { aspect-ratio: 4 / 3; }
.story.soon { opacity: 1; }
.story.soon .part { color: var(--line); }
.story.soon h3 { color: var(--dim); }
@media (max-width: 860px) {
  .story { grid-template-columns: 4rem minmax(0, 1fr); }
  .story .part { font-size: 2.6rem; }
  .story .shot { grid-column: 1 / -1; aspect-ratio: 16/9; }
}
.original { border-left: 3px solid var(--lamp); background: var(--surface); padding: 1rem 1.25rem; margin: 0 0 2rem; }
.original strong { color: var(--ink); }

/* ---------- About ---------- */
.bio { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.bio .big { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.55; color: var(--ink); }
@media (max-width: 900px) { .bio { grid-template-columns: 1fr; } }
details.history > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .75rem;
  min-height: 48px; padding: 0 1.25rem; border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: .9375rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
details.history > summary::-webkit-details-marker { display: none; }
details.history > summary:hover { border-color: var(--accent); }
details.history > summary .open-t { display: none; }
details.history[open] > summary .open-t { display: inline; }
details.history[open] > summary .closed-t { display: none; }
details.history > summary svg { transition: transform .2s var(--ease); width: 18px; height: 18px; }
details.history[open] > summary svg { transform: rotate(180deg); }
.career { margin-top: 2rem; }
.career-bar { display: flex; height: 18px; gap: 2px; }
.career-bar span { background: var(--steel); opacity: .45; }
.career-bar span:last-child { background: var(--lamp); opacity: 1; }
.career-bar span:nth-child(3) { opacity: .75; }
.career-legend { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .4rem 1.5rem; }
.career-legend li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .45rem 0; }
.career-legend span { font-family: var(--font-mono); font-size: .9375rem; color: var(--dim); }
.timeline { list-style: none; margin: 2.5rem 0 0; padding: 0; position: relative; }
.timeline > li { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem 2.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.timeline .period { font-family: var(--font-mono); color: var(--lamp); font-size: .9375rem; letter-spacing: .06em; }
.timeline h3 { font-size: 1.6rem; font-stretch: 110%; margin: .2rem 0 0; }
.timeline .roles { list-style: none; margin: 1rem 0 0; padding: 0; }
.timeline .roles li { padding: .5rem 0 .5rem 1.1rem; border-left: 1px solid var(--line-strong); }
.timeline .roles li b { color: var(--ink); font-weight: 600; }
.timeline .roles ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.timeline .roles ul li { border: 0; padding: .2rem 0; }
@media (max-width: 760px) { .timeline > li { grid-template-columns: 1fr; } }
.principles { list-style: none; counter-reset: p; margin: 0; padding: 0; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid #263241; font-family: var(--font-display); font-weight: 300; font-stretch: 105%; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.25; color: #eef3f8; }
.principles li::before { content: "0" counter(p); font-family: var(--font-mono); font-size: .9375rem; color: #e0a85a; padding-top: .55rem; }
.noir-band { background: #070b10; color: #c3cdd8; }
.noir-band h2, .noir-band h3 { color: #eef3f8; }
.noir-band .label, .noir-band .scene-head p { color: #9aa8b8; }
.noir-band a { color: #9cc3e6; }
.noir-band .panel { background: #0e141b; border-color: #263241; }
.noir-band .panel p { color: #c3cdd8; }
.noir-band .tags li { background: #0b1016; border-color: #263241; color: #aebccb; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split .shot { aspect-ratio: 4 / 5; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .shot { aspect-ratio: 4/3; } }
.def-list { margin: 0; }
.def-list div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.def-list dt { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.def-list dd { margin: .35rem 0 0; }

/* ---------- Article ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--steel), var(--accent)); box-shadow: 0 0 8px var(--accent); }
.progress-pct { position: fixed; right: 12px; bottom: 12px; z-index: 60; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; background: var(--surface); border: 1px solid var(--line); color: var(--dim); padding: .25rem .55rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: 1rem; }
.crumbs a { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .12em; text-transform: uppercase; }
.crumbs .tag { background: rgba(5, 8, 12, .6); border-color: #3a4a5e; color: #d8e1ea; }
.frame h1.article-title { text-transform: none; font-weight: 600; font-stretch: 105%; letter-spacing: -0.015em; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; max-width: 20ch; }
.article-layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 4rem; max-width: var(--max); margin: 0 auto; padding: 3.5rem var(--gutter) 0; }
.toc-rail { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; }
.toc-rail ol { list-style: none; margin: 1rem 0 0; padding: 0; border-left: 1px solid var(--line); }
.toc-rail a { display: block; padding: .5rem 0 .5rem 1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--dim); font-size: 1rem; line-height: 1.4; }
.toc-rail a:hover { color: var(--ink); }
.toc-rail a.active { color: var(--ink); border-left-color: var(--lamp); }
.toc-rail .md-link { margin-top: 1.75rem; display: inline-flex; font-family: var(--font-mono); font-size: .875rem; }
.toc-mobile { display: none; border: 1px solid var(--line); background: var(--surface); margin-bottom: 2rem; }
.toc-mobile summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; padding: 0 1rem; }
.toc-mobile ol { margin: 0; padding: 0 1rem 1rem 2.2rem; }
.toc-mobile li { padding: .3rem 0; }
@media (max-width: 1100px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-rail { display: none; }
  .toc-mobile { display: block; }
}
.prose { max-width: 42rem; font-size: 1.1875rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.4em; }
.prose p { margin: 0; }
.prose p + p { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); font-stretch: 112%; font-weight: 300; text-transform: uppercase; letter-spacing: .02em; margin-top: 2.6em; padding-top: 1.1rem; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose h2 .sc { display: block; font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .14em; color: var(--lamp); margin-bottom: .4rem; }
.prose strong { color: var(--ink); }
.prose code:not(pre code) { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .08em .35em; color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--dim); font-family: var(--font-mono); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); padding: 1.1rem 1.35rem; font-size: 1.125rem; }
.callout .label { display: block; margin-bottom: .35rem; color: var(--accent); }
.callout.q { border-left-color: var(--lamp); }
.callout.q .label { color: var(--lamp); }
.callout.skill { border-left-color: var(--steel); background: var(--ground-2); }
.callout.skill .label { color: var(--dim); }
.callout p { margin: 0; }
.codeblock { margin-left: calc(-1 * min(4rem, 6vw)); margin-right: calc(-1 * min(4rem, 6vw)); background: #060a0f; border: 1px solid #1f2a36; }
.codeblock-head { display: flex; justify-content: space-between; align-items: center; padding: 0 .5rem 0 1rem; border-bottom: 1px solid #1f2a36; min-height: 44px; }
.codeblock-head .label { color: #8e9bab; font-size: .8125rem; }
.copy-btn { min-height: 38px; padding: 0 .8rem; background: transparent; border: 1px solid #2a3644; color: #c3cdd8; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy-btn:hover { border-color: #9cc3e6; color: #fff; }
.codeblock pre { margin: 0; padding: 1.1rem 1.25rem 1.35rem; overflow-x: auto; font-size: .9375rem; line-height: 1.65; color: #d4dde6; tab-size: 2; }
.codeblock code { font-family: var(--font-mono); background: none !important; }
@media (max-width: 1100px) { .codeblock { margin-left: 0; margin-right: 0; } }
/* Prism tokens, cold palette */
.token.comment, .token.prolog { color: #7d8b9b; font-style: italic; }
.token.keyword, .token.operator.arrow { color: #9cc3e6; }
.token.string, .token.template-string { color: #b8d8a8; }
.token.function { color: #e8eef4; font-weight: 500; }
.token.class-name, .token.builtin { color: #e0a85a; }
.token.tag, .token.boolean, .token.number { color: #d7a8c4; }
.token.attr-name, .token.property { color: #aec9e2; }
.token.punctuation, .token.operator { color: #8e9bab; }
.article-foot { max-width: 42rem; margin-top: 3.5rem; }
.share-band { background: var(--ground-2); margin-top: 4.5rem; padding: 3.5rem 0; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
@media (max-width: 860px) { .share-grid { grid-template-columns: 1fr; } }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.news-form { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.news-form input[type="email"] { flex: 1 1 14rem; min-width: 0; min-height: 48px; border: 1px solid var(--line-strong); background: var(--ground); color: var(--ink); font: inherit; padding: 0 .9rem; }
.news-form input::placeholder { color: var(--dim); }
.news-ok { margin-top: .75rem; color: var(--ink); }
.news-ok strong { color: var(--lamp); }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-top: .75rem; font-size: 1rem; }
.check input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--accent); }

/* ---------- Patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.three-ways > div { background: var(--surface); padding: 1.5rem; }
.three-ways h3 { font-size: 1.25rem; font-stretch: 112%; text-transform: uppercase; letter-spacing: .06em; margin: .4rem 0 .5rem; }
.three-ways p { margin: 0; }
@media (max-width: 800px) { .three-ways { grid-template-columns: 1fr; } }
.ways-foot { margin-top: 1.25rem; max-width: 60rem; color: var(--text); }
.pcard { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.pcard:hover, .pcard:focus-within { border-color: var(--line-strong); }
.pcard > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.pcard .thumb { height: 180px; border-bottom: 1px solid var(--line); background: var(--ground-2); position: relative; overflow: hidden; display: grid; place-items: center; padding: 1.25rem; }
.pcard .file-no { position: absolute; top: .6rem; left: .75rem; font-family: var(--font-mono); font-size: .8125rem; color: var(--dim); letter-spacing: .08em; }
.pcard h2 { font-size: 1.3rem; }
.pcard > a:hover h2 { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.pcard .card-body p { font-size: 1.0625rem; }
.badge { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; padding: .05rem .45rem; border: 1px solid currentColor; }
.badge.new { color: var(--lamp); }
.badge.upd { color: var(--accent); }
.th { width: 100%; height: 100%; display: flex; gap: 6px; align-items: flex-end; }
.th i { display: block; background: var(--steel); opacity: .7; flex: 1; }
.th i:nth-child(3n) { background: var(--accent); opacity: .85; }
.th.layout { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 6px; }
.th.layout i { opacity: .35; }
.th.layout i:first-child { grid-column: span 2; opacity: .8; }
.th.inter { flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.th.inter i { flex: none; height: 16px; opacity: .35; }
.th.inter i:nth-child(2) { opacity: 1; background: var(--accent); width: 70%; box-shadow: 0 0 0 3px var(--ground-2), 0 0 0 5px var(--lamp); }
.th.forms { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; }
.th.forms i { flex: none; height: 30px; opacity: 1; background: transparent; border: 1px solid var(--line-strong); }
.th.forms i:last-child { width: 40%; align-self: flex-end; background: var(--accent); border-color: var(--accent); }
.th.color { gap: 0; }
.th.color i { height: 100%; opacity: 1; }

/* pattern detail */
.back { font-family: var(--font-mono); font-size: .9375rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.uses { columns: 2 16rem; padding-left: 1.2rem; margin: .75rem 0 0; }
.uses li { break-inside: avoid; padding: .2rem 0; }
.panes { border: 1px solid var(--line-strong); background: var(--surface); margin-top: 2.5rem; }
.panes-head { display: flex; justify-content: space-between; align-items: stretch; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tablist { display: flex; overflow-x: auto; }
.tablist button { min-height: 52px; padding: 0 1.1rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dim); font-family: var(--font-mono); font-size: .9375rem; letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--lamp); }
.pane-actions { display: flex; gap: .5rem; align-items: center; padding: .4rem .6rem; }
.pane-actions button { min-height: 40px; padding: 0 .9rem; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font-family: var(--font-mono); font-size: .875rem; cursor: pointer; }
.pane-actions button:hover { border-color: var(--accent); }
.pane { padding: clamp(1rem, 3vw, 2rem); }
.pane pre { margin: 0; background: #060a0f; color: #d4dde6; border: 1px solid #1f2a36; padding: 1.1rem 1.25rem; overflow-x: auto; font-size: .9375rem; line-height: 1.6; }
.pane .note { margin-bottom: 1rem; color: var(--text); }
.prompt-text { max-width: 44rem; }
.prompt-text p { margin-bottom: 1em; }

/* the demo pattern itself (scoped) */
.hss-demo { background: var(--ground); border: 1px dashed var(--line); padding: clamp(1rem, 3vw, 1.75rem); container-type: inline-size; }
.hss-cap { margin: 0 0 .75rem; color: var(--text); font-size: 1rem; }
.hss-strip { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@container (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, 1fr); } }
@container (min-width: 42rem) { .hss-strip.four { grid-template-columns: repeat(4, 1fr); } .hss-strip.five { grid-template-columns: repeat(5, 1fr); } }
.hss-tile { background: var(--surface); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; text-align: left; }
.hss-label { font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.hss-fig { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.hss-fig.none { color: var(--dim); font-weight: 400; }
.hss-sub { color: var(--dim); font-size: .9375rem; }
button.hss-tile { border: 0; font: inherit; cursor: pointer; color: inherit; }
button.hss-tile:hover { background: var(--surface-2); }
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-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); padding: .7rem 1rem; font-size: 1rem; }
.hss-list li span { font-family: var(--font-mono); font-size: .875rem; color: var(--dim); }
.hss-status { margin: .9rem 0 0; font-size: 1rem; color: var(--text); }

/* ---------- Credits footer ---------- */
.credits { background: #05080c; color: #aebccb; padding: 5rem 0 2.5rem; margin-top: 0; position: relative; overflow: hidden; }
.credits::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("assets/fjord-night.jpg") center 70% / cover no-repeat, radial-gradient(90% 60% at 50% 110%, rgba(95, 130, 166, .25), transparent 70%);
  opacity: .28;
}
.credits > * { position: relative; }
.credits a { color: #d8e1ea; text-decoration: none; }
.credits a:hover { color: #9cc3e6; text-decoration: underline; }
.fade { text-align: center; font-family: var(--font-display); font-stretch: 125%; font-weight: 200; letter-spacing: .4em; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.2rem); color: #eef3f8; margin: 0 0 3rem; }
.roll { max-width: 38rem; margin: 0 auto 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.roll dt { text-align: right; font-family: var(--font-mono); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: #8e9bab; padding-top: .2rem; }
.roll dd { margin: 0; color: #eef3f8; font-size: 1.0625rem; }
.credit-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 2.5rem; border-top: 1px solid #1f2a36; padding-top: 2.5rem; }
.credit-cols h2 { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .14em; text-transform: uppercase; color: #8e9bab; font-weight: 500; margin-bottom: 1rem; }
.credit-cols ul { list-style: none; margin: 0; padding: 0; }
.credit-cols li a { display: inline-flex; min-height: 36px; align-items: center; font-size: 1.0625rem; }
.credit-cols p { color: #aebccb; font-size: 1.0625rem; }
.credits .news-form input[type="email"] { background: #0b1016; border-color: #3a4a5e; color: #eef3f8; }
.credits .news-form input::placeholder { color: #8e9bab; }
.credits .btn-primary { background: #9cc3e6; color: #0b1016; }
.credits .btn-primary:hover { background: #d4e8f8; }
.credits .news-ok { color: #eef3f8; }
.credits .news-ok strong { color: #e0a85a; }
.credits-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1f2a36; font-family: var(--font-mono); font-size: .875rem; letter-spacing: .06em; color: #8e9bab; }
@media (max-width: 900px) { .credit-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .credit-cols { grid-template-columns: 1fr; }
  .roll { grid-template-columns: 1fr; text-align: center; gap: .15rem; }
  .roll dt { text-align: center; margin-top: .8rem; }
}

/* misc layout helpers */
.stack > * + * { margin-top: 1rem; }
.two-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem); }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }
.readable { max-width: 46rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rain { opacity: .08; }
}
.credit-cols .brand { color: #eef3f8; }
.credit-blurb { margin-top: 1rem; }

/* fix pass */
.scene-head .slug { grid-row: 1; }
.scene-head h2, .scene-head p:not(.slug) { grid-column: 1; }
.article-layout > article { min-width: 0; }
.frame-body.short::before {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, .78), rgba(5, 8, 12, .35) 70%),
    linear-gradient(180deg, rgba(30, 60, 100, .35), rgba(5, 8, 12, .25) 40%, rgba(5, 8, 12, .94) 100%);
}
@media (max-width: 640px) {
  .frame-body.short::before { background: linear-gradient(180deg, rgba(20, 40, 70, .55), rgba(5, 8, 12, .82) 45%, rgba(5, 8, 12, .96)); }
}
.token.tag { border: 0; background: none; padding: 0; font-size: inherit; letter-spacing: 0; color: #d7a8c4; }

.prose-fig { margin: 1.8em 0; border: 1px solid var(--line); }
.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; }
