/* ============================================================
   BLACKROSE - digital noir design system
   ============================================================ */

@font-face {
  font-family: "Archivo Expanded";
  src: url("../fonts/archivo-expanded-v25-latin-900.woff2") format("woff2");
  font-weight: 900; font-stretch: 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-v22-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-v22-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-v22-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-v24-latin-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-v24-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #060407;
  --bg-2: #0d0810;
  --panel: #120a14;
  --line: rgba(255, 42, 77, 0.16);
  --line-soft: rgba(232, 228, 221, 0.09);
  --ink: #ece7de;
  --dim: #9a938a;
  --faint: #7a746c;
  --rose: #ff2a4d;
  --ember: #ff6a3d;
  --violet: #a12aff;
  --grad: linear-gradient(100deg, var(--rose) 0%, var(--ember) 55%, #ffb03a 100%);
  --display: "Archivo Expanded", "Arial Black", sans-serif;
  /* expanded grotesque runs tight, like the original Archivo Black */
  --disp-track: -0.01em;
  --body: "Space Grotesk", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  /* legibility scrim for text sitting on the hero rose bloom */
  --hero-scrim: 0 1px 14px rgba(6, 4, 7, 0.95), 0 0 32px rgba(6, 4, 7, 0.85);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --max: 78rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--rose); color: #0a0508; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; }
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--rose); color: #0a0508; padding: 0.5rem 1rem;
  font-family: var(--mono);
}
.skip:focus { left: 0; }

/* --- film grain overlay ------------------------------------ */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  animation: grain-shift 900ms steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* --- nav ---------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--pad);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 4, 7, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink);
}
.nav-rose { color: var(--rose); }
.nav-name {
  font-family: var(--mono); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.06em;
}
.nav-links { display: flex; gap: clamp(0.9rem, 3vw, 2.2rem); }
.nav-links a {
  font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.08em;
  color: var(--dim); text-transform: lowercase;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--rose);
}

.readbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--grad); z-index: 110;
}

/* --- pinned scroll stages (GTA-style scenes) ------------------ */
/* Pinning engages only with JS running and motion allowed; otherwise
   stages collapse to normal flow and every scene reads statically. */
@media (prefers-reduced-motion: no-preference) {
  html.cinema .stage {
    height: calc(var(--stage-vh, 100) * 1vh);
    height: calc(var(--stage-vh, 100) * 1svh);
  }
  html.cinema .stage .scene {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    overflow: hidden;
  }
  html.cinema .stage .hero-inner > *,
  html.cinema .stage .statement .line,
  html.cinema .stage .manifesto-copy,
  html.cinema .stage .manifesto .kicker { will-change: transform, opacity; }
}
.hero-fade {
  position: absolute; inset: 0; background: var(--bg);
  opacity: 0; pointer-events: none; z-index: 3;
}
.manifesto-wash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 70% 55% at 22% 40%, rgba(255, 42, 77, 0.13), transparent 65%),
    radial-gradient(ellipse 55% 45% at 80% 70%, rgba(161, 42, 255, 0.08), transparent 70%);
}

/* --- hero --------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 65% at 50% 42%, transparent 30%, rgba(6, 4, 7, 0.88) 100%),
    linear-gradient(to bottom, rgba(6, 4, 7, 0.35), transparent 30%, transparent 70%, var(--bg) 98%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 0 var(--pad); max-width: 100%;
}
.hero-boot {
  min-height: 1.4em; color: var(--dim);
  margin-bottom: clamp(1.6rem, 5vh, 3.4rem);
  text-shadow: 0 1px 10px rgba(6, 4, 7, 0.9);
}
.hero-boot::after { content: "_"; animation: blink 1s steps(1) infinite; color: var(--rose); }
@keyframes blink { 50% { opacity: 0; } }
.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 12.5vw, 11rem);
  line-height: 0.92; letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: uppercase;
  text-shadow: 0 0 90px rgba(255, 42, 77, 0.28), 0 0 24px rgba(6, 4, 7, 0.8);
}
.hero-name {
  margin-top: 1.8rem; color: var(--ink);
  font-size: clamp(0.78rem, 1.25vw, 0.95rem);
  letter-spacing: 0.18em; text-transform: uppercase;
  text-shadow: var(--hero-scrim);
}
.hero-name .nowrap { white-space: nowrap; }
.hero-sub {
  margin-top: 0.9rem; color: var(--dim);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.02em;
  text-shadow: var(--hero-scrim);
}
.hero-sub em { color: var(--rose); font-style: normal; }
.hero-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--faint); letter-spacing: 0.3em; text-transform: uppercase;
  font-size: 0.6875rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.cue-line {
  width: 1px; height: 3rem; background: linear-gradient(to bottom, var(--rose), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* --- glitch text -------------------------------------------- */
.glitch { position: relative; display: inline-block; }
.glitch > span { position: relative; z-index: 1; }
.glitch::before, .glitch::after {
  content: attr(data-glitch);
  position: absolute; inset: 0; overflow: hidden;
  opacity: 0; pointer-events: none;
}
.glitch::before { color: var(--rose); z-index: 0; }
.glitch::after { color: #2ad9ff; z-index: 0; }
.glitch.glitching::before {
  opacity: 0.85;
  animation: slice-a 340ms steps(3) 1;
}
.glitch.glitching::after {
  opacity: 0.7;
  animation: slice-b 340ms steps(3) 1;
}
@keyframes slice-a {
  0% { clip-path: inset(12% 0 74% 0); transform: translate(-6px, 2px); }
  34% { clip-path: inset(58% 0 18% 0); transform: translate(5px, -2px); }
  67% { clip-path: inset(30% 0 52% 0); transform: translate(-4px, 1px); }
  100% { clip-path: inset(80% 0 4% 0); transform: translate(3px, 0); }
}
@keyframes slice-b {
  0% { clip-path: inset(66% 0 10% 0); transform: translate(5px, -1px); }
  34% { clip-path: inset(8% 0 78% 0); transform: translate(-5px, 2px); }
  67% { clip-path: inset(44% 0 40% 0); transform: translate(4px, -2px); }
  100% { clip-path: inset(20% 0 66% 0); transform: translate(-3px, 0); }
}

/* --- shared section chrome ---------------------------------- */
section { position: relative; }
.manifesto, .domains, .work, .writing, .contact {
  padding: clamp(5rem, 12vh, 9rem) var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.kicker {
  color: var(--rose); text-transform: lowercase;
  margin-bottom: 2.2rem; letter-spacing: 0.12em;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.5vw, 5.8rem);
  line-height: 0.95; text-transform: uppercase; letter-spacing: var(--disp-track);
  margin-bottom: 3rem;
}

/* --- reveal ------------------------------------------------- */
/* Hidden state only when JS is running (html.js set inline in head);
   without JS the content must stay visible. */
html.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].in { opacity: 1; transform: none; }

/* --- manifesto ---------------------------------------------- */
.manifesto { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  html.cinema .manifesto.scene {
    display: flex; align-items: center;
    max-width: none;
  }
  html.cinema .manifesto.scene .manifesto-inner {
    max-width: var(--max); margin: 0 auto; width: 100%;
    padding: 0 var(--pad);
  }
}
.manifesto-inner { max-width: 60rem; }
.statement {
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  line-height: 1.02; text-transform: uppercase; letter-spacing: var(--disp-track);
}
.statement .line { display: block; }
.manifesto-copy {
  margin-top: 2.6rem; max-width: 44rem;
  color: var(--dim); font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

/* --- ticker (passing record strip) ---------------------------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 1.05rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex; width: max-content;
  /* duration scales with list length (--ticker-n set by the partial) so
     editing data/home.yaml keeps the scroll rate, not the lap time */
  animation: ticker-scroll calc(var(--ticker-n, 12) * 4s) linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; }
.ticker-item {
  color: var(--dim); white-space: nowrap;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
}
.ticker-sep { color: var(--rose); margin: 0 1.9rem; font-family: var(--mono); font-size: 0.7rem; opacity: 0.65; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- record (proof by numbers) ------------------------------- */
.record {
  padding: clamp(4rem, 10vh, 7rem) var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.stat-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.stat-card {
  background: var(--bg);
  padding: 2.6rem 1.8rem 2.4rem;
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: background 300ms ease;
}
.stat-card:hover { background: var(--bg-2); }
.stat-n {
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; }
.stat-sub { color: var(--faint); font-size: 0.71875rem; }

/* --- domains ------------------------------------------------ */
.domain-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.domain-card {
  background: var(--bg);
  padding: 2.2rem 1.8rem 2.6rem;
  position: relative;
  transition: background 300ms ease;
}
.domain-card:hover { background: var(--bg-2); }
.domain-card:hover .domain-index { color: var(--rose); }
.domain-index {
  color: var(--faint); font-size: 0.75rem; display: block; margin-bottom: 1.6rem;
  transition: color 300ms ease;
}
.domain-card h3 {
  font-family: var(--body); font-weight: 700;
  font-size: 1.25rem; margin-bottom: 0.8rem; letter-spacing: 0.01em;
}
.domain-card p { color: var(--dim); font-size: 0.95rem; }
.domain-tags { margin-top: 1.4rem; color: var(--faint); font-size: 0.71875rem; }

/* --- work --------------------------------------------------- */
.work-list { border-top: 1px solid var(--line-soft); }
.work-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
  padding: 2.4rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background 250ms ease, padding 250ms ease;
}
.work-item:hover { background: linear-gradient(90deg, rgba(255, 42, 77, 0.06), transparent 70%); padding-left: 1.2rem; }
.work-index {
  font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: transparent; -webkit-text-stroke: 1px var(--faint);
  transition: -webkit-text-stroke-color 250ms ease;
}
.work-item:hover .work-index { -webkit-text-stroke-color: var(--rose); }
.work-body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.work-kind { color: var(--rose); font-size: 0.71875rem; text-transform: uppercase; letter-spacing: 0.16em; }
.work-title { font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
.work-desc { color: var(--dim); font-size: 0.95rem; max-width: 46rem; }
.work-arrow {
  font-size: 1.4rem; color: var(--faint);
  transition: color 250ms ease, transform 250ms ease;
}
.work-item:hover .work-arrow { color: var(--rose); transform: translate(4px, -4px); }

/* --- publications ------------------------------------------- */
.research { padding: clamp(5rem, 12vh, 9rem) var(--pad); max-width: var(--max); margin: 0 auto; }
.spotlight {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 3rem;
}
.spotlight-kicker {
  color: var(--rose); text-transform: uppercase;
  font-size: 0.6875rem; letter-spacing: 0.18em;
  margin-bottom: 1.1rem;
}
.spotlight-title {
  font-family: var(--body); font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25;
  margin-bottom: 1rem;
}
.spotlight-copy { color: var(--dim); max-width: 52rem; font-size: 1rem; }
.spotlight-venue {
  margin-top: 1.5rem; color: var(--faint);
  font-size: 0.71875rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.pub-list { border-top: 1px solid var(--line-soft); }
.pub-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 2rem;
  align-items: center;
  padding: 1.5rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  transition: background 250ms ease, padding 250ms ease;
}
a.pub-row:hover { background: linear-gradient(90deg, rgba(255, 42, 77, 0.06), transparent 70%); padding-left: 1.2rem; }
.pub-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.pub-title { font-weight: 500; font-size: 1.02rem; line-height: 1.45; }
a.pub-row:hover .pub-title { color: var(--rose); }
.pub-venue { color: var(--faint); font-size: 0.71875rem; text-transform: uppercase; letter-spacing: 0.1em; }
.pub-status {
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ember); border: 1px solid rgba(255, 106, 61, 0.35);
  padding: 0.3rem 0.7rem; white-space: nowrap;
}
.pub-status.is-live { color: var(--rose); border-color: var(--line); }
@media (max-width: 640px) {
  .pub-row { grid-template-columns: 1fr; }
  .pub-status { justify-self: start; }
}

/* --- writing / post lists ----------------------------------- */
.post-list { border-top: 1px solid var(--line-soft); }
.post-row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.4rem 2rem;
  padding: 1.7rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
  transition: background 250ms ease, padding 250ms ease;
}
.post-row:hover { background: linear-gradient(90deg, rgba(255, 42, 77, 0.06), transparent 70%); padding-left: 1.2rem; }
.post-date { color: var(--faint); }
.post-title { font-weight: 700; font-size: 1.2rem; }
.post-row:hover .post-title { color: var(--rose); }
.post-desc { grid-column: 2; color: var(--dim); font-size: 0.92rem; }
.more-link { margin-top: 2.4rem; }
.empty { color: var(--faint); padding: 3rem 0; }

/* --- buttons ------------------------------------------------ */
.btn-ghost, .btn-solid {
  display: inline-block; padding: 0.8rem 1.6rem;
  border: 1px solid var(--line);
  color: var(--ink); letter-spacing: 0.06em;
  transition: background 250ms ease, color 250ms ease, border-color 250ms ease;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }
.btn-solid { background: var(--rose); border-color: var(--rose); color: #0a0508; font-weight: 700; }
.btn-solid:hover { background: transparent; color: var(--rose); }

/* --- contact ------------------------------------------------ */
.contact { text-align: center; padding-bottom: clamp(6rem, 16vh, 11rem); }
.contact-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8.5vw, 6.6rem);
  text-transform: uppercase; line-height: 0.95; letter-spacing: var(--disp-track);
  margin-bottom: 1.6rem;
}
.contact-copy { color: var(--dim); margin-bottom: 2.6rem; }
.contact-alt { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* --- inner pages -------------------------------------------- */
.is-inner main { padding-top: 7rem; }
.page-head {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) 2rem;
}
.page-head, .post-head { position: relative; }
.inner-rose {
  position: absolute; top: -5rem; right: -4rem;
  width: 28rem; max-width: 78vw;
  aspect-ratio: 1 / 1; height: auto;
  opacity: 0.5; pointer-events: none; z-index: 0;
}
.page-head > *:not(.inner-rose), .post-head > *:not(.inner-rose) {
  position: relative; z-index: 1;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  text-transform: uppercase; line-height: 0.95;
}
.page-intro { margin-top: 1.6rem; color: var(--dim); max-width: 46rem; }
.list-page {
  max-width: var(--max); margin: 0 auto;
  padding: 1rem var(--pad) clamp(5rem, 12vh, 8rem);
}

/* --- post / prose ------------------------------------------- */
.post {
  max-width: 48rem; margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) var(--pad) clamp(5rem, 12vh, 8rem);
}
.post-head { margin-bottom: 3rem; }
.post-head .kicker { margin-bottom: 1.2rem; color: var(--faint); }
.post-title-main {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  line-height: 1.02; text-transform: uppercase; letter-spacing: var(--disp-track);
}
.post-standfirst {
  margin-top: 1.4rem; color: var(--dim);
  font-size: 1.15rem; line-height: 1.55;
}
.prose > * + * { margin-top: 1.3rem; }
.prose h2 {
  font-family: var(--body); font-weight: 700; font-size: 1.6rem;
  margin-top: 3rem; letter-spacing: 0.01em;
}
.prose h2::before { content: "// "; color: var(--rose); font-family: var(--mono); font-size: 1.2rem; }
.prose h3 { font-weight: 700; font-size: 1.2rem; margin-top: 2.2rem; }
.prose a { color: var(--rose); border-bottom: 1px solid var(--line); }
.prose a:hover { border-bottom-color: var(--rose); }
.prose code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--panel); padding: 0.15em 0.4em; border-radius: 3px;
}
.prose pre {
  background: #0a0710 !important;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--rose);
  padding: 1.2rem 1.4rem; overflow-x: auto;
  font-size: 0.85rem; line-height: 1.6;
}
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose blockquote {
  border-left: 2px solid var(--rose); padding-left: 1.4rem; color: var(--dim);
}
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 3rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line-soft); padding: 0.6rem 0.9rem; text-align: left; }
.prose th { background: var(--panel); font-family: var(--mono); font-size: 0.78rem; }

/* --- cert grid (about page) ----------------------------------- */
.cert-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  margin-top: 1.6rem;
}
.cert-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  transition: border-color 250ms ease, transform 250ms ease;
}
.cert-card:hover { border-color: var(--line); transform: translateY(-3px); }
.cert-card img { width: 100%; height: auto; }
.cert-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.cert-name { font-weight: 700; font-size: 0.98rem; }
.cert-card:hover .cert-name { color: var(--rose); }
.cert-meta { font-family: var(--mono); color: var(--faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; }

.post-foot { margin-top: 4rem; border-top: 1px solid var(--line-soft); padding-top: 2rem; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* --- footer ------------------------------------------------- */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 3.5rem var(--pad) 2.5rem;
}
.footer-grid {
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; color: var(--rose); }
.footer-tag { color: var(--dim); }
.footer-line { color: var(--rose); }
.footer-head {
  color: var(--faint); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.6875rem; margin-bottom: 1.1rem;
}
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.footer-col a {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--dim);
  border-bottom: 1px solid transparent; letter-spacing: 0.04em;
}
.footer-col a:hover { color: var(--ink); border-bottom-color: var(--rose); }
.footer-note { color: var(--faint); font-size: 0.71875rem; }
.footer-copy { color: var(--faint); font-size: 0.71875rem; padding-top: 1.6rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* --- footer status strip -------------------------------------- */
/* Populated by JS; without JS it stays hidden so no dead placeholders show. */
.statusbar { display: none; }
html.js .statusbar {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem;
  border-top: 1px solid var(--line-soft);
  padding: 0.65rem var(--pad);
  color: var(--faint); font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.sb-status em { color: var(--rose); font-style: normal; }

/* --- nav contact cta ----------------------------------------- */
.nav-links a.nav-cta {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  color: var(--rose); border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.nav-links a.nav-cta:hover { background: var(--rose); color: #0a0508; border-color: var(--rose); }

/* --- responsive --------------------------------------------- */
@media (max-width: 640px) {
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.75rem; }
  .post-row { grid-template-columns: 1fr; }
  .post-desc { grid-column: 1; }
  .work-item { grid-template-columns: 1fr auto; }
  .work-index { display: none; }
  .hero-cue { display: none; }
}

/* --- reduced motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .cue-line { animation: none; }
  .hero-boot::after { animation: none; }
  .ticker-track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .glitch.glitching::before, .glitch.glitching::after { animation: none; opacity: 0; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
