/* Self-hosted webfonts (latin subset, same unicode-range Google Fonts
   serves; anything outside it falls back to the system mono stack). */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/chakra-petch-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-mono-600.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================================================================
   AMBER//CONSOLE — a phosphor-terminal security operations theme.
   Warm near-black surfaces, amber CRT glow, hairline scanlines,
   log-style section numbering, signal-meter skill readouts.
   ================================================================== */
:root {
  /* Surfaces — warm blacks, like an old CRT bezel */
  --bg0: #0b0a07;
  --bg1: #100e09;
  --bg2: #16130b;
  --bg3: #1d1910;

  /* Phosphor */
  --amber: #ffb000;
  --amber-hi: #ffd35c;
  --amber-soft: rgba(255, 176, 0, 0.08);
  --amber-line: rgba(255, 176, 0, 0.28);
  --amber-glow: rgba(255, 176, 0, 0.16);

  /* Secondary channels */
  --cyan: #46e3d4;
  --cyan-soft: rgba(70, 227, 212, 0.08);
  --cyan-line: rgba(70, 227, 212, 0.30);
  --green: #62e979;
  --green-soft: rgba(98, 233, 121, 0.10);
  --red: #ff4f4f;
  --red-soft: rgba(255, 79, 79, 0.09);
  --red-line: rgba(255, 79, 79, 0.32);
  --violet: #c792ff;
  --violet-soft: rgba(199, 146, 255, 0.09);
  --violet-line: rgba(199, 146, 255, 0.30);

  /* Text — warm paper-white through smoke */
  --text: #ece5d3;
  --muted: #a89f89;
  --faint: #6e6857;

  /* Lines */
  --line: #29241a;
  --line-strong: #3a3323;

  --display: "Chakra Petch", "Trebuchet MS", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1060px;
  --radius: 4px;
}

/* Category channels for skill groups */
.ch-amber  { --ch: var(--amber);  --ch-soft: var(--amber-soft);  --ch-line: var(--amber-line); }
.ch-cyan   { --ch: var(--cyan);   --ch-soft: var(--cyan-soft);   --ch-line: var(--cyan-line); }
.ch-green  { --ch: var(--green);  --ch-soft: var(--green-soft);  --ch-line: rgba(98, 233, 121, 0.30); }
.ch-red    { --ch: var(--red);    --ch-soft: var(--red-soft);    --ch-line: var(--red-line); }
.ch-violet { --ch: var(--violet); --ch-soft: var(--violet-soft); --ch-line: var(--violet-line); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg0);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* CRT furniture — a faint plotting grid under everything, and
   hairline scanlines + vignette over everything. Both are pure
   decoration and ignore pointer events. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(255, 176, 0, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 176, 0, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.16) 0px, rgba(0,0,0,0.16) 1px, transparent 1px, transparent 3px),
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 60%, rgba(0,0,0,0.42) 100%);
  pointer-events: none;
  /* Plain alpha compositing: for a black-only overlay it is visually
     identical to multiply, but lets the browser keep this on a cheap
     compositor layer instead of re-blending the whole page per frame. */
}

::selection { background: var(--amber); color: #14100a; }

a { color: var(--amber); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

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

.section { padding: 96px 0; position: relative; }
.section[id] { scroll-margin-top: 92px; }
.section + .section { border-top: 1px dashed var(--line-strong); }

/* Scroll-reveal — applied only when JS runs, so content is always
   visible without it. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 7, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-hi) 40%, var(--cyan) 100%);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--amber);
  flex-shrink: 0;
  text-shadow: 0 0 12px var(--amber-glow);
}
.brand .dim { color: var(--faint); font-weight: 400; }
.brand .cursor-block {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--amber);
  vertical-align: -2px;
  margin-left: 3px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nav-links a::before { content: "./"; color: var(--faint); }
.nav-links a:hover {
  color: var(--amber);
  border-color: var(--amber-line);
  background: var(--amber-soft);
}
.nav-links a[aria-current="page"] {
  color: var(--amber);
  border-color: var(--amber-line);
}
.nav-clock {
  font-size: 12px;
  color: var(--faint);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.nav-clock .utc { color: var(--green); }

/* ============== HERO ============== */
.hero {
  padding-top: 84px;
  padding-bottom: 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid rgba(98, 233, 121, 0.35);
  background: var(--green-soft);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 30px;
}
.status-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

h1.name {
  font-family: var(--display);
  font-size: clamp(44px, 7.2vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--text);
  text-shadow:
    0 0 30px var(--amber-glow),
    3px 3px 0 rgba(255, 176, 0, 0.18);
}
h1.name .amber { color: var(--amber); }

.role {
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 18px);
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}
.role .p { color: var(--faint); }
.role .val { color: var(--cyan); }

.tagline {
  font-size: 15px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 34px;
  text-wrap: pretty;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--amber);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: var(--amber);
  color: #14100a;
  box-shadow: 0 0 24px rgba(255, 176, 0, 0.22);
}
.btn-primary:hover {
  background: var(--amber-hi);
  border-color: var(--amber-hi);
  box-shadow: 0 0 34px rgba(255, 176, 0, 0.34);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber-line);
}
.btn-ghost:hover {
  background: var(--amber-soft);
  border-color: var(--amber);
  transform: translateY(-1px);
}

.stats { display: flex; gap: 0; border: 1px solid var(--line-strong); background: var(--bg1); }
.stats > div {
  flex: 1;
  padding: 18px 20px;
  border-left: 1px solid var(--line-strong);
}
.stats > div:first-child { border-left: none; }
.stat-num {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stats > div:nth-child(1) .stat-num { color: var(--amber); text-shadow: 0 0 14px var(--amber-glow); }
.stats > div:nth-child(2) .stat-num { color: var(--cyan); text-shadow: 0 0 14px rgba(70,227,212,0.2); }
.stats > div:nth-child(3) .stat-num { color: var(--green); text-shadow: 0 0 14px rgba(98,233,121,0.2); }
.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Terminal window */
.term {
  border: 1px solid var(--line-strong);
  background: var(--bg1);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 18px 50px rgba(0,0,0,0.55),
    0 0 60px rgba(255, 176, 0, 0.05);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--line-strong);
}
.term-bar .light { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.4); }
.term-bar .l-r { background: var(--red); }
.term-bar .l-a { background: var(--amber); }
.term-bar .l-g { background: var(--green); }
.term-bar .term-title {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}
.term-body {
  padding: 20px 20px 24px;
  font-size: 13px;
  line-height: 1.85;
  min-height: 318px;
}
.term-body .ln { display: block; white-space: pre-wrap; word-break: break-word; }
.term-body .prompt { color: var(--green); }
.term-body .cmd { color: var(--text); }
.term-body .out { color: var(--muted); }
.term-body .hi { color: var(--amber); }
.term-body .ok { color: var(--green); }
.term-body .warn { color: var(--red); }
.term-body .caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--amber);
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
.term-body .dim { color: var(--faint); }

/* Interactive shell — .term-live is added by JS once the console goes
   live, so none of this applies when JS is off. */
.term-live .term-body {
  cursor: text;
  max-height: 420px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.term-live .term-body::-webkit-scrollbar { width: 8px; }
.term-live .term-body::-webkit-scrollbar-track { background: transparent; }
.term-live .term-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.term-live:focus-within {
  border-color: var(--amber-line);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 18px 50px rgba(0,0,0,0.55),
    0 0 60px rgba(255, 176, 0, 0.14);
}
.term-body .term-input-ln { display: flex; align-items: baseline; }
.term-input {
  flex: 1;
  min-width: 60px;
  padding: 0;
  margin-left: 0.62em; /* one mono character, matching the intro lines */
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  caret-color: var(--amber);
}
.term-input:focus,
.term-input:focus-visible { outline: none; } /* focus is shown on the window frame via :focus-within */

/* ============== INTEL TICKER ============== */
.ticker {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg1);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker-set { display: flex; }
.tick {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 26px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  border-right: 1px dashed var(--line-strong);
}
.tick b { font-weight: 600; }
.tick .t-amber { color: var(--amber); }
.tick .t-cyan { color: var(--cyan); }
.tick .t-green { color: var(--green); }
.tick .t-red { color: var(--red); }

/* ============== SECTION HEADERS ============== */
.section-head { margin-bottom: 48px; }
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.sec-tag::after {
  content: "";
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber-line), transparent);
}
h1.sec-title,
h2.sec-title {
  font-family: var(--display);
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.06;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 rgba(255, 176, 0, 0.14);
}
.sec-sub { font-size: 14px; color: var(--muted); max-width: 580px; text-wrap: pretty; }

/* ============== PANELS (corner-bracket frames) ============== */
.panel {
  position: relative;
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  padding: 28px;
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--amber);
  border-style: solid;
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ============== ABOUT ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}
.prose p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.prose p::before { content: "> "; color: var(--amber); }
.prose strong { color: var(--text); font-weight: 600; }

.comp-head {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 16px;
}
.comp-head .path { color: var(--faint); }
.panel ul.comp-list { list-style: none; }
.comp-list li {
  font-size: 13.5px;
  color: var(--muted);
  padding: 10px 0;
  border-top: 1px dashed var(--line);
  display: flex;
  gap: 10px;
}
.comp-list li:first-child { border-top: none; padding-top: 0; }
.comp-list li::before { content: "[+]"; color: var(--amber); flex-shrink: 0; }

/* ============== SKILLS ============== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.skill-group {
  position: relative;
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  padding: 22px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.skill-group:hover {
  border-color: var(--ch-line);
  box-shadow: 0 0 30px var(--ch-soft), 0 12px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px);
}
.skill-group::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--ch);
  border-left: 2px solid var(--ch);
}
.skill-group h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ch);
  margin-bottom: 2px;
}
.skill-group .group-desc {
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: block;
}
.skill-list { list-style: none; }
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}
.skill-row:first-child { border-top: none; }
.skill-name { font-size: 13.5px; color: var(--text); }
.skill-badge {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  color: var(--faint);
  white-space: nowrap;
  flex-shrink: 0;
}
.skill-badge.hot {
  color: var(--ch);
  border-color: var(--ch-line);
  background: var(--ch-soft);
}

/* ============== RESEARCH — case file ============== */
.casefile {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: var(--bg1);
  border: 1px dashed var(--line-strong);
  padding: 36px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.casefile:hover {
  border-color: var(--amber-line);
  box-shadow: 0 0 44px rgba(255, 176, 0, 0.07), 0 16px 40px rgba(0,0,0,0.45);
  transform: translateY(-3px);
}
.casefile .stamp {
  position: absolute;
  top: 26px;
  right: -34px;
  transform: rotate(35deg);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  border-top: 1px solid var(--red-line);
  border-bottom: 1px solid var(--red-line);
  background: var(--red-soft);
  padding: 4px 40px;
  opacity: 0.9;
  pointer-events: none;
}
.casefile .file-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  padding: 4px 12px;
  margin-bottom: 20px;
}
.casefile h3 {
  font-family: var(--display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 640px;
}
.casefile .desc { font-size: 14px; color: var(--muted); margin-bottom: 22px; max-width: 660px; text-wrap: pretty; }

.bullets { list-style: none; margin-bottom: 22px; }
.bullets li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 10px;
  text-wrap: pretty;
}
.bullets li::before {
  content: ">>";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 11px;
  top: 2px;
  letter-spacing: -1px;
}

.key-finding {
  border: 1px solid var(--red-line);
  border-left: 3px solid var(--red);
  background: var(--red-soft);
  padding: 15px 18px;
  margin-bottom: 22px;
}
.key-finding .kf-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.key-finding .kf-label::before { content: "[!] "; }
.key-finding .kf-body { font-size: 13.5px; color: var(--text); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 4px 11px;
  background: var(--bg2);
  border: 1px solid var(--line-strong);
}
.chip::before { content: "#"; color: var(--faint); }

.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
}
.case-foot .arrow { transition: transform 0.18s ease; }
.casefile:hover .case-foot .arrow { transform: translateX(6px); }

/* ============== RESEARCH — ATT&CK coverage matrix ============== */
.attack {
  position: relative;
  margin-top: 24px;
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  padding: 26px;
}
.attack::before,
.attack::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--amber);
  border-style: solid;
  pointer-events: none;
}
.attack::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.attack::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.attack-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.attack-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 9px;
}
.attack-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.attack-note { font-size: 13px; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.attack-note b { color: var(--text); font-weight: 600; }

.attack-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 15px; }
.attack-legend .lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.attack-legend .lg::before {
  content: "";
  width: 12px; height: 12px;
  border: 1px solid;
  flex-shrink: 0;
}
.lg-cov::before  { background: rgba(255, 176, 0, 0.35); border-color: var(--amber); }
.lg-key::before  { background: rgba(255, 79, 79, 0.35); border-color: var(--red); }
.lg-none::before { background: var(--bg2);              border-color: var(--line-strong); }

.attack-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.attack-scroll::-webkit-scrollbar { height: 8px; }
.attack-scroll::-webkit-scrollbar-track { background: transparent; }
.attack-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.attack-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(134px, 1fr);
  gap: 7px;
  align-items: start;
  min-width: max-content;
}
.tac { display: flex; flex-direction: column; gap: 5px; }
.tac-head {
  padding: 8px 10px;
  background: var(--bg3);
  border: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--amber-line);
}
.tac-name {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--text);
}
.tac-meta {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
}
.tac-meta b { color: var(--amber); font-weight: 600; }

.tech {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--bg2);
  font-family: var(--mono);
  cursor: default;
}
.tech .tid { display: block; font-size: 10px; letter-spacing: 0.03em; color: var(--faint); }
.tech .tname { display: block; font-size: 11.5px; line-height: 1.28; color: var(--muted); margin-top: 1px; }
.tech.none { opacity: 0.45; }

.tech.cov {
  cursor: pointer;
  border-color: rgba(255, 176, 0, 0.5);
  background: rgba(255, 176, 0, 0.14);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tech.cov .tid { color: var(--amber); }
.tech.cov .tname { color: var(--text); }
.tech.cov:hover,
.tech.cov:focus-visible,
.tech.cov.active {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.22);
  box-shadow: 0 0 18px var(--amber-glow);
  transform: translateY(-2px);
  outline: none;
}

.tech.cov.key { border-color: rgba(255, 79, 79, 0.55); background: rgba(255, 79, 79, 0.16); }
.tech.cov.key .tid { color: var(--red); }
.tech.cov.key .tid::after { content: " [!]"; }
.tech.cov.key:hover,
.tech.cov.key:focus-visible,
.tech.cov.key.active {
  border-color: var(--red);
  background: rgba(255, 79, 79, 0.24);
  box-shadow: 0 0 18px var(--red-line);
}

.attack-readout {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--amber);
  background: var(--bg0);
  font-size: 13px;
  line-height: 1.6;
  min-height: 54px;
}
.attack-readout .ro-tag {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 2px;
}
.attack-readout .ro-body { color: var(--muted); text-wrap: pretty; }
.attack-readout .ro-hint { color: var(--faint); }
.attack-readout .ro-id { color: var(--amber); font-weight: 600; }
.attack-readout .ro-name { color: var(--text); }
.attack-readout .ro-fam { color: var(--cyan); }
.attack-readout.key { border-left-color: var(--red); }
.attack-readout.key .ro-tag { color: var(--red); }
.attack-readout.key .ro-id { color: var(--red); }

@media (max-width: 720px) {
  .attack { padding: 20px 16px; }
  .attack-grid { grid-auto-columns: minmax(126px, 1fr); }
}

/* ============== EXPERIENCE — event log ============== */
.log { display: flex; flex-direction: column; }
.log-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 30px;
  padding: 32px 0;
  border-top: 1px dashed var(--line-strong);
}
.log-item:first-child { border-top: none; padding-top: 6px; }
.log-date {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--faint);
  padding-top: 3px;
}
.log-date .live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
}
.log-date .live::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.log-content {
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
  position: relative;
}
.log-content::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 6px;
  width: 7px; height: 7px;
  background: var(--bg0);
  border: 1px solid var(--faint);
  transform: rotate(45deg);
}
.log-item.current .log-content { border-left-color: var(--amber-line); }
.log-item.current .log-content::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 10px var(--amber-glow); }
.log-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.log-company { font-size: 12.5px; color: var(--cyan); letter-spacing: 0.04em; margin-bottom: 16px; }
.log-company::before { content: "@ "; color: var(--faint); }
.log-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ============== CONTACT ============== */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}
.contact-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.contact-loc svg { width: 15px; height: 15px; color: var(--cyan); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.contact-form label::before { content: "> "; color: var(--faint); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg0);
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  caret-color: var(--amber);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 0 20px rgba(255, 176, 0, 0.12);
}
.submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.form-status {
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.form-status.show { opacity: 1; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ============== FOOTER ============== */
footer {
  border-top: 1px solid var(--line-strong);
  background: var(--bg1);
  padding: 26px 0;
  position: relative;
  z-index: 1;
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.foot-inner .eof { color: var(--amber); }
.foot-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.foot-avail::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .term-body { min-height: 0; }
  .nav-clock { display: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 11px 20px; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .section { padding: 68px 0; }
  .hero { padding-top: 56px; padding-bottom: 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { flex-direction: column; }
  .stats > div { border-left: none; border-top: 1px solid var(--line-strong); }
  .stats > div:first-child { border-top: none; }
  .log-item { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .log-content { padding-left: 18px; }
  .casefile { padding: 26px 22px; }
  .casefile .stamp { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form input,
  .contact-form textarea { font-size: 16px; } /* >=16px prevents iOS zoom on focus */
  .term-input { font-size: 16px; }
  .term-live .term-body { max-height: 360px; }
  .submit-row { flex-direction: column-reverse; align-items: stretch; }
  .submit-row .btn { justify-content: center; }
  .form-status { text-align: center; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .cta-row .btn { flex: 1 1 auto; }
  .panel, .skill-group { padding: 18px; }
  .foot-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}

/* ==================================================================
   PHASE 2 ADDITIONS — multi-page components
   ================================================================== */

/* ---- Header: nav CTA + hex scroll offset ---- */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber);
  border: 1px solid var(--amber-line);
  background: var(--amber-soft);
  padding: 6px 12px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  border-color: var(--amber);
  background: rgba(255, 176, 0, 0.14);
  box-shadow: 0 0 18px var(--amber-glow);
}
.nav-cta::before { content: "▷"; font-size: 9px; }
.nav-hex { color: var(--faint); }
.nav-hex b { color: var(--amber); font-weight: 600; }
@media (max-width: 960px) { .nav-cta { display: none; } }

/* ---- Intel ticker items as links ---- */
a.tick { text-decoration: none; transition: color 0.15s ease, background 0.15s ease; }
a.tick:hover, a.tick:focus-visible { color: var(--amber); background: var(--amber-soft); }

/* ---- Case card grid (home #casefiles + /casefiles/ index) ---- */
.cf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.cf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg1);
  border: 1px dashed var(--line-strong);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.cf-card:hover,
.cf-card:focus-visible {
  border-color: var(--amber-line);
  box-shadow: 0 0 40px rgba(255, 176, 0, 0.07), 0 16px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
}
.cf-card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.cf-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.cf-id .num { color: var(--amber); font-weight: 600; }
.cf-domain {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.cf-card h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}
.cf-card .desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; text-wrap: pretty; flex: 1; }
.cf-card .tag-row { margin-bottom: 18px; }
.cf-card .case-foot { margin-top: auto; }
.cf-card:hover .case-foot .arrow,
.cf-card:focus-visible .case-foot .arrow { transform: translateX(6px); }

/* Redacted exhibit — blurred at rest, declassifies on hover/focus.
   Touch devices (no hover) and print get the clear version. */
.cf-exhibit {
  position: relative;
  border-bottom: 1px dashed var(--line-strong);
  background: var(--bg2);
  overflow: hidden;
}
.cf-exhibit svg { display: block; width: 100%; height: auto; }
.cf-exhibit .ex-art {
  filter: blur(7px) saturate(0.55);
  opacity: 0.7;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.cf-exhibit .redact-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(11, 10, 7, 0.25);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cf-card:hover .ex-art,
.cf-card:focus-visible .ex-art { filter: none; opacity: 1; }
.cf-card:hover .redact-label,
.cf-card:focus-visible .redact-label { opacity: 0; }
@media (hover: none) {
  .cf-exhibit .ex-art { filter: none; opacity: 1; }
  .cf-exhibit .redact-label { display: none; }
}

/* ---- Filter row (/casefiles/ index) ---- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}
.filter-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 4px;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filter-btn::before { content: "./"; color: var(--faint); }
.filter-btn:hover { color: var(--amber); border-color: var(--amber-line); }
.filter-btn[aria-pressed="true"] {
  color: var(--amber);
  border-color: var(--amber-line);
  background: var(--amber-soft);
  box-shadow: 0 0 14px rgba(255, 176, 0, 0.1);
}
.cf-card.filtered-out { display: none; }

/* ---- Page head (subpages) + breadcrumbs ---- */
.page-head { padding: 72px 0 0; }
.crumbs {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-bottom: 26px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs .sep { margin: 0 8px; color: var(--line-strong); }
.crumbs .here { color: var(--amber); }

/* ---- Case file report header ---- */
.report {
  position: relative;
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  margin-bottom: 44px;
}
.report::before,
.report::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--amber);
  border-style: solid;
  pointer-events: none;
}
.report::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.report::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.report-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 11px 26px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg3);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.report-bar b { font-weight: 600; color: var(--green); }
.report-bar .warn b { color: var(--red); }
.report-main { padding: 30px 26px 26px; }
.report-file {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
h1.report-title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.08;
  margin-bottom: 12px;
  text-shadow: 2px 2px 0 rgba(255, 176, 0, 0.14);
}
.report-sub { font-size: 14.5px; color: var(--muted); max-width: 640px; text-wrap: pretty; margin-bottom: 22px; }
.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
.report-meta > div { background: var(--bg0); padding: 12px 16px; }
.report-meta .k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.report-meta .v { font-size: 13px; color: var(--text); }

/* ---- Case file layout: sticky rail + article ---- */
.cf-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.cf-rail {
  position: sticky;
  top: 92px;
  font-size: 12.5px;
}
.cf-rail-head {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.cf-rail ol { list-style: none; }
.cf-rail a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 0 7px 14px;
  border-left: 1px solid var(--line-strong);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cf-rail a:hover { color: var(--amber); }
.cf-rail a.active { color: var(--amber); border-left-color: var(--amber); }
.rail-progress {
  height: 3px;
  background: var(--bg2);
  border: 1px solid var(--line-strong);
  margin-top: 16px;
  overflow: hidden;
}
.rail-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-hi));
  box-shadow: 0 0 8px var(--amber-glow);
}
.rail-progress-label {
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

@media (max-width: 900px) {
  .cf-layout { grid-template-columns: 1fr; gap: 26px; }
  .cf-rail {
    position: static;
    border-bottom: 1px dashed var(--line-strong);
    padding-bottom: 16px;
  }
  .cf-rail ol { display: flex; flex-wrap: wrap; gap: 2px 16px; }
  .cf-rail a { border-left: none; padding: 4px 0; }
  .cf-rail a.active { border-left: none; }
  .rail-progress, .rail-progress-label { display: none; }
}

.cf-article { min-width: 0; }
.cf-section { padding: 8px 0 40px; scroll-margin-top: 100px; }
.cf-section + .cf-section { border-top: 1px dashed var(--line); padding-top: 36px; }
.cf-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.cf-h .n { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: 0.1em; }

/* ---- Exhibits inside case files ---- */
.exhibit {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--bg1);
  margin: 24px 0;
}
.exhibit-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg3);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.exhibit-head b { color: var(--amber); font-weight: 600; }
.exhibit-body { padding: 22px; }
.exhibit-body svg { display: block; width: 100%; height: auto; }
.exhibit-cap {
  padding: 12px 16px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--faint);
}

/* Coverage meters (CF-002 exhibit) */
.meter-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.meter-list li { display: grid; grid-template-columns: 170px 1fr 44px; gap: 14px; align-items: center; font-size: 12.5px; }
.meter-list .m-name { color: var(--muted); }
.meter-list .m-bar { height: 10px; background: var(--bg2); border: 1px solid var(--line); position: relative; }
.meter-list .m-bar span { position: absolute; inset: 1px auto 1px 1px; background: linear-gradient(90deg, var(--amber), var(--amber-hi)); box-shadow: 0 0 10px var(--amber-glow); }
.meter-list .m-bar.key span { background: linear-gradient(90deg, var(--red), #ff8a5c); box-shadow: 0 0 10px var(--red-line); }
.meter-list .m-val { color: var(--amber); text-align: right; font-weight: 600; }
@media (max-width: 600px) { .meter-list li { grid-template-columns: 1fr 60px; } .meter-list .m-name { grid-column: 1 / -1; } }

/* Pipeline steps (CF-003 exhibit) */
.pipeline { list-style: none; counter-reset: step; }
.pipeline li {
  position: relative;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--line-strong);
  background: var(--bg2);
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
  counter-increment: step;
}
.pipeline li::before {
  content: "0" counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 11px;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.pipeline li b { color: var(--text); font-weight: 600; }
.pipeline li.gate { border-left: 3px solid var(--red); }

/* ---- Next-file banner + article footer CTA ---- */
.next-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border: 1px dashed var(--line-strong);
  background: var(--bg1);
  text-decoration: none;
  margin: 44px 0 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.next-file:hover { border-color: var(--amber-line); box-shadow: 0 0 30px rgba(255, 176, 0, 0.06); }
.next-file .nf-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.next-file .nf-title { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--text); letter-spacing: 0.03em; }
.next-file .arrow { color: var(--amber); font-weight: 600; transition: transform 0.18s ease; }
.next-file:hover .arrow { transform: translateX(6px); }

/* ---- Sticky mobile contact pill ---- */
/* The sentinel needs a real box — IntersectionObserver never re-fires on a
   zero-area inline span, so it gets 1px of invisible block height. */
#cta-sentinel { display: block; height: 1px; visibility: hidden; }

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 80px);
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #14100a;
  background: var(--amber);
  border: 1px solid var(--amber-hi);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 176, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sticky-cta.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.sticky-cta::before { content: "▷"; font-size: 10px; }
@media (min-width: 961px) { .sticky-cta { display: none; } }
@media print { .sticky-cta { display: none; } }

/* ---- Footer nav links ---- */
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot-links a { color: var(--muted); text-decoration: none; letter-spacing: 0.06em; }
.foot-links a::before { content: "./"; color: var(--faint); }
.foot-links a:hover { color: var(--amber); }

/* ---- Bridge page (/research/) ---- */
.bridge-panel { max-width: 720px; }
.bridge-panel .btn { margin-top: 8px; }

/* ---- CV page ---- */
.cv-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 40px; }
.cv-block { margin-bottom: 40px; }
.cv-block h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 9px;
  margin-bottom: 20px;
}
.cv-role { margin-bottom: 26px; }
.cv-role-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.cv-role-head h3 { font-family: var(--display); font-size: 15.5px; font-weight: 600; letter-spacing: 0.03em; }
.cv-role-head .dates { font-size: 12px; color: var(--faint); letter-spacing: 0.05em; }
.cv-org { font-size: 12.5px; color: var(--cyan); margin-bottom: 10px; }
.cv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
@media (max-width: 640px) { .cv-cols { grid-template-columns: 1fr; } }
.cv-li { font-size: 13px; color: var(--muted); padding: 4px 0; }
.cv-li b { color: var(--text); font-weight: 600; }

@media print {
  * { transition: none !important; animation: none !important; }
  body::before, body::after { display: none !important; }
  .site-header, footer, .sticky-cta, .no-print, .reveal::before { display: none !important; }
  html, body { background: #fff !important; color: #1a1710 !important; font-size: 11pt; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .wrap { max-width: none; padding: 0; }
  .section, .page-head { padding: 0 0 18pt; border: none !important; }
  a { color: #1a1710 !important; text-decoration: none; }
  h1.report-title, .cv-block h2, .cv-role-head h3, h2.sec-title { color: #000 !important; text-shadow: none !important; }
  .cv-block h2 { border-color: #999; }
  .cv-org { color: #333 !important; }
  .cv-li, .bullets li, .prose p, .sec-sub { color: #222 !important; }
  .bullets li::before { color: #555 !important; }
  .chip { border-color: #bbb; background: #fff; color: #333; }
  .panel, .report { background: #fff; border-color: #bbb; }
  .panel::before, .panel::after, .report::before, .report::after { display: none; }
}

/* View-all row under the home case grid; ticker also pauses on keyboard focus */
.cf-more { display: flex; justify-content: center; margin-top: 30px; }
.ticker:focus-within .ticker-track { animation-play-state: paused; }
