/* =========================================================================
   AST CONTENT AUDIT — design system
   Concept: a naval situation-room dossier. Dark chart-room ink, brass
   instrument accents, and a rubber-stamp classification mark as the one
   signature device (Keep / Remove / Enhance / Rework / Review).
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- palette ---- */
  --ink: #0b141f;
  --ink-deep: #070c13;
  --panel: #121e2e;
  --panel-raised: #17263a;
  --panel-hover: #1c2d44;
  --hairline: #2a3b52;
  --hairline-bright: #3c5271;

  --paper: #ede7d9;
  --paper-dim: #9fadc2;
  --paper-faint: #6c7c93;

  --brass: #c6a15b;
  --brass-bright: #e4c179;
  --brass-dim: #8a713f;

  --ochre: #c1652f;
  --ochre-bright: #dd8149;
  --eucalyptus: #6e9070;
  --eucalyptus-bright: #8bb08d;
  --signal-red: #9c3b34;
  --signal-red-bright: #c1554c;
  --slate: #5c7086;
  --slate-bright: #7891ab;

  /* status -> color */
  --status-keep: var(--eucalyptus);
  --status-keep-bright: var(--eucalyptus-bright);
  --status-remove: var(--signal-red);
  --status-remove-bright: var(--signal-red-bright);
  --status-enhance: var(--brass);
  --status-enhance-bright: var(--brass-bright);
  --status-rework: var(--ochre);
  --status-rework-bright: var(--ochre-bright);
  --status-review: var(--slate);
  --status-review-bright: var(--slate-bright);

  /* ---- type ---- */
  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  /* ---- misc ---- */
  --radius: 3px;
  --radius-lg: 5px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.35), 0 8px 24px -12px rgba(0,0,0,0.55);
  --shadow-raised: 0 2px 4px rgba(0,0,0,0.4), 0 14px 32px -14px rgba(0,0,0,0.65);
  --max-width: 1180px;
  --dur-fast: 140ms;
  --dur-med: 260ms;
  --dur-stamp: 460ms;
  --ease: cubic-bezier(.2,.7,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(198,161,91,0.06), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(110,144,112,0.05), transparent 55%),
    var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* faint engraved chart-grid texture across the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(159,173,194,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,173,194,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(1200px 800px at 50% 0%, black, transparent 75%);
}

a { color: var(--brass-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.01em; margin: 0; color: var(--paper); }
code, .mono { font-family: var(--f-mono); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,20,31,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .bar {
  max-width: var(--max-width); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 28px; height: 62px;
}
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand .mark { color: var(--brass-bright); font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.09em; }
.brand .sub { color: var(--paper-faint); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }

nav.pages { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
nav.pages a {
  font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--paper-dim); padding: 8px 12px; border-radius: 2px; text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
nav.pages a:hover { color: var(--paper); }
nav.pages a.active { color: var(--brass-bright); border-bottom-color: var(--brass); }

/* ---------------------------------------------------------------------
   Hero / page headers
   --------------------------------------------------------------------- */
.hero { padding: 56px 0 34px; border-bottom: 1px solid var(--hairline); }
.hero .eyebrow {
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.hero .eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brass-dim); display: inline-block; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; max-width: 16ch; }
.hero .lede { font-family: var(--f-body); color: var(--paper-dim); font-size: 1.08rem; max-width: 62ch; margin-top: 16px; }

.page-header { padding: 44px 0 28px; border-bottom: 1px solid var(--hairline); }
.page-header .eyebrow { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 10px; }
.page-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-header .lede { color: var(--paper-dim); font-size: 1.02rem; max-width: 74ch; margin-top: 12px; }

/* ---------------------------------------------------------------------
   Stat strip
   --------------------------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin: 30px 0 0; }
.stat { background: var(--panel); padding: 18px 20px; }
.stat .n { font-family: var(--f-display); font-size: 1.9rem; color: var(--brass-bright); line-height: 1; }
.stat .n.alert { color: var(--signal-red-bright); }
.stat .n.good { color: var(--eucalyptus-bright); }
.stat .lbl { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-faint); margin-top: 6px; }

/* ---------------------------------------------------------------------
   Section scaffolding
   --------------------------------------------------------------------- */
main { display: block; padding-bottom: 90px; }
.section { padding: 46px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--hairline); padding-bottom: 12px; }
.section-head h2 { font-size: 1.15rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--paper); }
.section-head .count { font-family: var(--f-mono); color: var(--paper-faint); font-size: 0.8rem; }

/* ---------------------------------------------------------------------
   System dossier cards (dashboard)
   --------------------------------------------------------------------- */
.system-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.system-card {
  background: linear-gradient(180deg, var(--panel-raised), var(--panel));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow-card);
  transition: opacity 480ms var(--ease), transform var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease);
  opacity: 0; transform: translateY(10px);
}
.system-card.in-view { opacity: 1; transform: translateY(0); }
.system-card:hover { border-color: var(--hairline-bright); transform: translateY(-3px); box-shadow: var(--shadow-raised); text-decoration: none; }
.system-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.system-card .ref { font-family: var(--f-mono); font-size: 0.66rem; color: var(--brass-dim); letter-spacing: 0.06em; }
.system-card h3 { font-size: 1.12rem; margin-top: 4px; color: var(--paper); }
.system-card p { font-family: var(--f-body); color: var(--paper-dim); font-size: 0.9rem; margin: 0; }
.system-card .gauge-row { display: flex; gap: 22px; align-items: center; margin-top: 2px; }

/* radial completion gauge */
.gauge { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle.track { fill: none; stroke: var(--hairline); stroke-width: 5; }
.gauge circle.fill { fill: none; stroke: var(--brass); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 900ms var(--ease); }
.gauge .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 0.78rem; color: var(--paper); }

.quality-mini { display: flex; flex-direction: column; gap: 6px; }
.quality-mini .lbl { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-faint); }
.qbars { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.qbars i { display: block; width: 5px; background: var(--hairline); border-radius: 1px; }
.qbars i.on { background: var(--brass); }

.stamp-tally { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.stamp-tally .t { font-family: var(--f-mono); font-size: 0.68rem; padding: 2px 7px; border-radius: 2px; border: 1px solid var(--hairline); color: var(--paper-dim); }
.stamp-tally .t b { color: var(--paper); font-weight: 600; }
.stamp-tally .t.keep { border-color: color-mix(in srgb, var(--status-keep) 45%, var(--hairline)); }
.stamp-tally .t.remove { border-color: color-mix(in srgb, var(--status-remove) 45%, var(--hairline)); }
.stamp-tally .t.enhance { border-color: color-mix(in srgb, var(--status-enhance) 45%, var(--hairline)); }
.stamp-tally .t.rework { border-color: color-mix(in srgb, var(--status-rework) 45%, var(--hairline)); }
.stamp-tally .t.review { border-color: color-mix(in srgb, var(--status-review) 45%, var(--hairline)); }

/* ---------------------------------------------------------------------
   Feature "case file" cards
   --------------------------------------------------------------------- */
.feature-list { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.feature-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px 26px 22px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 84px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 480ms var(--ease), transform var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.feature-card.in-view { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: var(--hairline-bright); box-shadow: var(--shadow-raised); transform: translateY(-2px); }
.feature-card .fc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.feature-card .fc-titles { min-width: 0; }
.feature-card .ref { font-family: var(--f-mono); font-size: 0.68rem; color: var(--brass-dim); letter-spacing: 0.07em; display: block; margin-bottom: 6px; }
.feature-card h3 { font-size: 1.28rem; line-height: 1.25; color: var(--paper); }
.feature-card .country-tag { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--paper-faint); border: 1px solid var(--hairline); border-radius: 2px; padding: 1px 6px; margin-left: 8px; vertical-align: middle; }

.feature-card .fc-desc { font-family: var(--f-body); color: var(--paper-dim); font-size: 0.98rem; margin: 14px 0 0; max-width: 78ch; }

.fc-metrics { display: flex; gap: 34px; margin: 18px 0 4px; flex-wrap: wrap; }
.metric { min-width: 150px; }
.metric .lbl { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 6px; display: flex; justify-content: space-between; }
.metric .lbl span.val { color: var(--paper); }
.bar-track { height: 6px; background: var(--hairline); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; background: var(--brass); transition: width 900ms var(--ease); }
.bar-fill.q1 { background: var(--signal-red); }
.bar-fill.q2 { background: var(--ochre); }
.bar-fill.q3 { background: var(--brass); }
.bar-fill.q4 { background: var(--eucalyptus); }
.bar-fill.q5 { background: var(--eucalyptus-bright); }

.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.chip {
  font-family: var(--f-mono); font-size: 0.72rem; color: var(--paper-dim);
  background: var(--panel-raised); border: 1px solid var(--hairline); border-radius: 2px;
  padding: 3px 8px; line-height: 1.5;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
a.chip { text-decoration: none; }
a.chip:hover { color: var(--brass-bright); border-color: var(--brass-dim); text-decoration: none; }
.chip-group-label { font-family: var(--f-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-faint); align-self: center; margin-right: 2px; }

.fc-findings { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 20px; }
@media (max-width: 760px) { .fc-findings { grid-template-columns: 1fr; } }
.finding-col h4 { font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--paper-faint); margin-bottom: 8px; }
.finding-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.finding-col li { font-size: 0.88rem; color: var(--paper-dim); padding-left: 16px; position: relative; line-height: 1.45; }
.finding-col.strengths li::before { content: "+"; position: absolute; left: 0; color: var(--eucalyptus-bright); font-family: var(--f-mono); font-weight: 600; }
.finding-col.weaknesses li::before { content: "\2013"; position: absolute; left: 0; color: var(--ochre-bright); font-family: var(--f-mono); }
.finding-col.bugs { grid-column: 1 / -1; background: rgba(156,59,52,0.08); border: 1px solid rgba(156,59,52,0.3); border-radius: 2px; padding: 12px 16px; }
.finding-col.bugs h4 { color: var(--signal-red-bright); }
.finding-col.bugs li { color: var(--paper); font-family: var(--f-mono); font-size: 0.82rem; }
.finding-col.bugs li::before { content: "\26A0"; position: absolute; left: 0; color: var(--signal-red-bright); }

.fc-crossrefs { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--hairline); }
.fc-crossrefs h4 { font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--paper-faint); margin-bottom: 8px; }
.fc-crossrefs ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.fc-crossrefs li { font-size: 0.86rem; color: var(--paper-dim); }
.fc-crossrefs li a { color: var(--brass-bright); }

.fc-verdict { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hairline); display: flex; gap: 14px; align-items: flex-start; }
.fc-verdict .lbl { font-family: var(--f-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--paper-faint); white-space: nowrap; padding-top: 3px; }
.fc-verdict p { margin: 0; font-size: 0.88rem; color: var(--paper-dim); font-family: var(--f-body); }

.fc-team-status { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--paper-faint); }
.fc-team-status .pending { color: var(--slate-bright); border: 1px dashed var(--slate); padding: 2px 8px; border-radius: 2px; }

/* ---------------------------------------------------------------------
   Stamp badge — the signature element
   --------------------------------------------------------------------- */
.stamp {
  --c: var(--slate);
  flex-shrink: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c);
  border: 2px solid var(--c);
  border-radius: 4px;
  padding: 7px 14px 6px;
  position: relative;
  transform: rotate(var(--rot, -4deg));
  opacity: 0.92;
  white-space: nowrap;
  filter: url(#stampTexture);
  transition: transform var(--dur-med) var(--ease);
}
.stamp::before {
  content: "";
  position: absolute; inset: 3px;
  border: 1px solid var(--c);
  border-radius: 2px;
  opacity: 0.7;
}
.stamp::after {
  content: "";
  position: absolute; inset: -4px;
  border: 1px solid var(--c);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.stamp.keep { --c: var(--status-keep-bright); }
.stamp.remove { --c: var(--status-remove-bright); }
.stamp.enhance { --c: var(--status-enhance-bright); }
.stamp.rework { --c: var(--status-rework-bright); }
.stamp.review { --c: var(--status-review-bright); }

/* The signature moment: a rubber stamp slamming onto the page. Core is the
   scale/opacity snap with a press-compress-rebound envelope; Light is a
   brief ink-flash glow synced to the contact frame (42%); Detail is the
   ::after ink ring, blooming outward just after contact and outliving Core
   by ~50ms. Response (per-card --rot jitter and --c status color, fired
   once per card by the scroll observer in render.js) is carried by the
   custom properties already set above. */
.stamp.stamp-hit {
  animation-name: stampHit;
  animation-duration: var(--dur-stamp);
  animation-timing-function: linear;
  animation-fill-mode: both;
}
.stamp.stamp-hit::after {
  animation-name: stampRing;
  animation-duration: 420ms;
  animation-timing-function: var(--ease);
  animation-delay: 90ms;
  animation-fill-mode: both;
}
@keyframes stampHit {
  0%   { transform: scale(1.6) rotate(var(--rot,-4deg)); opacity: 0; box-shadow: 0 0 0 0 transparent; animation-timing-function: cubic-bezier(.16,1,.3,1); }
  42%  { transform: scale(0.93) rotate(var(--rot,-4deg)); opacity: 1; box-shadow: 0 0 16px 1px color-mix(in srgb, var(--c) 65%, transparent); animation-timing-function: var(--ease-spring); }
  64%  { transform: scale(1.045) rotate(var(--rot,-4deg)); opacity: 1; box-shadow: 0 0 8px 0 color-mix(in srgb, var(--c) 25%, transparent); animation-timing-function: cubic-bezier(.3,.1,.3,1); }
  100% { transform: scale(1) rotate(var(--rot,-4deg)); opacity: 0.92; box-shadow: 0 0 0 0 transparent; }
}
@keyframes stampRing {
  0%   { opacity: 0; transform: scale(0.88); }
  30%  { opacity: 0.5; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.3); }
}

.stamp-dot { --c: var(--slate); width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.stamp-dot.keep { --c: var(--status-keep); } .stamp-dot.remove { --c: var(--status-remove); }
.stamp-dot.enhance { --c: var(--status-enhance); } .stamp-dot.rework { --c: var(--status-rework); }
.stamp-dot.review { --c: var(--status-review); }

/* ---------------------------------------------------------------------
   Triage table
   --------------------------------------------------------------------- */
.triage-controls { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 18px; align-items: center; }
.triage-controls input[type="search"], .triage-controls select {
  background: var(--panel); border: 1px solid var(--hairline); color: var(--paper);
  font-family: var(--f-mono); font-size: 0.82rem; padding: 8px 10px; border-radius: 2px;
}
.triage-controls input[type="search"] { min-width: 220px; }
.triage-controls label { font-family: var(--f-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-faint); display: flex; gap: 6px; align-items: center; }
.triage-count { font-family: var(--f-mono); font-size: 0.78rem; color: var(--paper-faint); margin-left: auto; }

/* No overflow at desktop widths on purpose: `overflow-x: auto` makes this a scroll
   container, which becomes the sticky ancestor for the thead below — and because the
   header sits at that scrollport's top edge, `top: 62px` pushes it *down* over row 1
   instead of pinning it under the site header. The table only needs to scroll once the
   viewport is narrower than its 900px min-width, so scope the overflow to that case. */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--radius); }
@media (max-width: 980px) { .table-wrap { overflow-x: auto; } }
table.triage { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 900px; }
table.triage thead th {
  text-align: left; font-family: var(--f-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--paper-faint); background: var(--panel-raised); padding: 10px 14px; border-bottom: 1px solid var(--hairline);
  position: sticky; top: 62px; cursor: pointer; user-select: none; white-space: nowrap;
  transition: color var(--dur-fast) var(--ease);
}
table.triage thead th:hover { color: var(--brass-bright); }
table.triage thead th .arrow { opacity: 0.5; margin-left: 4px; }
table.triage tbody td { padding: 10px 14px; border-bottom: 1px solid var(--hairline); color: var(--paper-dim); vertical-align: top; transition: background-color var(--dur-fast) var(--ease); }
table.triage tbody tr:hover td { background: var(--panel-raised); }
table.triage tbody tr:last-child td { border-bottom: none; }
table.triage td.title-cell a { color: var(--paper); font-weight: 500; }
table.triage td.title-cell .sys { display: block; font-family: var(--f-mono); font-size: 0.68rem; color: var(--paper-faint); margin-top: 2px; }
table.triage td.num { font-family: var(--f-mono); text-align: right; }
table.triage td.status-cell { white-space: nowrap; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
footer.site-footer { border-top: 1px solid var(--hairline); padding: 30px 0 60px; margin-top: 60px; }
footer.site-footer p { font-family: var(--f-mono); font-size: 0.74rem; color: var(--paper-faint); margin: 4px 0; }

/* ---------------------------------------------------------------------
   Reveal-on-scroll utility (used by render.js)
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .site-header .bar { height: auto; flex-wrap: wrap; padding: 10px 20px; gap: 10px; }
  nav.pages { gap: 0; width: 100%; }
  .container { padding: 0 18px; }
  .fc-metrics { gap: 20px; }
}
