/* =========================================================
   0. ROOT / THEME VARIABLES — MONOCHROME RETRO-MOCKUP SYSTEM
   ========================================================= */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-alt: #f3f3f3;
  --gray-100: #f1f1f1;
  --gray-300: #dcdcdc;
  --gray-500: #969696;
  --gray-700: #4a4a4a;
  --shadow-color: #c7c7c7;

  --panel-ink-bg: #0a0a0a;
  --panel-ink-text: #f0f0f0;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Poppins", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --border-w: 2px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-off: 6px;

  --content-width: 1140px;
  --navbar-height: 76px;

  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f2f2f2;
  --paper: #0a0a0a;
  --paper-alt: #151515;
  --gray-100: #1c1c1c;
  --gray-300: #2e2e2e;
  --gray-500: #8a8a8a;
  --gray-700: #c7c7c7;
  --shadow-color: #3a3a3a;

  --panel-ink-bg: #050505;
  --panel-ink-text: #f0f0f0;

  color-scheme: dark;
}

/* =========================================================
   1. RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: inherit; }

.mono { font-family: var(--font-mono); }

body.no-scroll { overflow: hidden; }

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   2. PRELOADER
   ========================================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner { width: min(320px, 80vw); text-align: center; }

.preloader__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.preloader__bar {
  height: 12px;
  border-radius: 4px;
  background: var(--paper-alt);
  border: var(--border-w) solid var(--ink);
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 0.15s ease-out;
}

.preloader__pct {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--gray-700);
}

/* =========================================================
   3. LAYOUT / SECTIONS
   ========================================================= */
.section { padding: 64px 0; }
.section.dotted {
  background-color: var(--paper-alt);
}

.section__inner, .navbar__inner, .hero__inner, .footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Legacy panel hooks neutralized — sections are full-bleed bands now */
.panel { padding: 0 !important; background: transparent; border: none; box-shadow: none; }
.panel::before, .panel::after { display: none; }
.panel--neutral, .panel--lime, .panel--sky, .panel--yellow, .panel--orange, .panel--pink { background: transparent; }

.panel--ink {
  background: var(--panel-ink-bg);
  color: var(--panel-ink-text);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--shadow-color);
  padding: 48px !important;
}

.panel--ink .section__title, .panel--ink .section__subheading { color: var(--panel-ink-text); border-color: var(--panel-ink-text); }
.panel--ink .section__lede { color: var(--panel-ink-text); opacity: 0.75; }
.panel--ink .eyebrow { background: var(--panel-ink-text); color: var(--panel-ink-bg); }

.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}

.section__subheading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.section__lede {
  max-width: 680px;
  color: var(--gray-700);
  margin-bottom: 40px;
}

.about__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.about__lede {
  max-width: none;
  margin-bottom: 0;
}

/* =========================================================
   4. NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: var(--border-w) solid var(--ink);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled { box-shadow: 0 6px 0 -4px var(--shadow-color); }

.navbar__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--ink);
}

.navbar__brand-accent { color: var(--ink); }

.navbar__brand-dot {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  border: var(--border-w) solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.navbar__brand-dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--paper);
  border-radius: 50%;
}
.navbar__brand-dot::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 16px;
  height: 8px;
  border-bottom: 2px solid var(--paper);
  border-radius: 0 0 8px 8px;
}

.navbar__list {
  display: flex;
  align-items: center;
  gap: 26px;
}

.navbar__link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
}

.navbar__link:hover { opacity: 0.55; }

.navbar__link.is-active {
  font-weight: 800;
}
.navbar__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.navbar__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow-color);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.theme-toggle:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-color); }

.theme-toggle__icon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun,
:root:not([data-theme="dark"]) .theme-toggle__icon--sun { display: block; }
[data-theme="dark"] .theme-toggle__icon--moon { display: block; }
[data-theme="dark"] .theme-toggle__icon--sun { display: none; }

.navbar__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--shadow-color);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.navbar__burger span {
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   5. BUTTONS / TAGS / PILLS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: var(--border-w) solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow-color);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--ghost { background: var(--paper); color: var(--ink); }

.btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--shadow-color); }
.btn--back { margin-top: 40px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  text-transform: uppercase;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

/* =========================================================
   6. HERO
   ========================================================= */
.hero { padding: 40px 0 48px; background-color: var(--paper-alt); }

.hero__inner { display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Operator dossier card ---------- */
.dossier {
  --d-bg: var(--panel-ink-bg);
  --d-panel: #141414;
  --d-line: rgba(240, 240, 240, 0.16);
  --d-line-bright: rgba(240, 240, 240, 0.34);
  --d-muted: rgba(240, 240, 240, 0.55);
  --d-text: var(--panel-ink-text);

  position: relative;
  background: var(--d-bg);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--shadow-color);
  overflow: hidden;
  color: var(--d-text);
}

.dossier::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0px, rgba(0, 0, 0, 0.22) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: multiply;
  opacity: 0.5;
}

.dossier__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--d-panel);
  border-bottom: 1.5px solid var(--d-line-bright);
}

.dossier__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--d-text);
}
.dossier__brand-icon { display: inline-flex; color: var(--d-text); }

.dossier__header-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--d-muted);
  opacity: 0.85;
}

.dossier__infobar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px dashed var(--d-line);
  font-size: 0.72rem;
}

.dossier__infobar-label { color: var(--d-muted); font-weight: 700; }
.dossier__infobar-sep { margin: 0 8px; color: var(--d-line-bright); }
.dossier__infobar-right { display: flex; align-items: center; gap: 16px; }
.dossier__clock { color: var(--d-text); font-weight: 700; letter-spacing: 0.05em; }

.dossier__status { display: flex; align-items: center; gap: 6px; color: var(--d-muted); font-weight: 700; }
.dossier__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--d-text);
  box-shadow: 0 0 6px var(--d-text);
  animation: blink 1.6s step-end infinite;
}

.dossier__body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}

.dossier__left {
  padding: 22px 20px;
  border-right: 1px dashed var(--d-line);
}

.dossier__id-label { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--d-muted); opacity: 0.8; margin-bottom: 4px; }
.dossier__id { font-size: 1.6rem; font-weight: 700; color: var(--d-text); letter-spacing: 0.04em; margin-bottom: 16px; }

.dossier__badges { display: flex; gap: 8px; margin-bottom: 20px; }
.dossier__badge {
  padding: 5px 11px;
  border: 1.5px solid var(--d-line-bright);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--d-text);
  opacity: 0.6;
}
.dossier__badge--active {
  background: var(--d-text);
  color: var(--panel-ink-bg);
  border-color: var(--d-text);
  opacity: 1;
}

.dossier__records { display: flex; flex-direction: column; gap: 10px; }
.dossier__record { display: flex; gap: 14px; font-size: 0.8rem; }
.dossier__record dt { flex: 0 0 108px; color: var(--d-muted); opacity: 0.75; }
.dossier__record dd { margin: 0; color: var(--d-text); }

.dossier__right { padding: 22px 20px; display: flex; flex-direction: column; }

.dossier__feed-label { font-size: 0.66rem; letter-spacing: 0.1em; color: var(--d-muted); opacity: 0.8; margin-bottom: 8px; }

.dossier__photo {
  position: relative;
  flex: 1;
  min-height: 190px;
  background: var(--d-panel);
  border: 1px solid var(--d-line-bright);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dossier__photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--d-muted);
}
.dossier__photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dossier__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier__scan-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }

.dossier__scan-tile {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--d-line-bright);
  border-radius: 4px;
  background-image: repeating-linear-gradient(115deg, var(--d-line) 0px, var(--d-line) 2px, transparent 2px, transparent 5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.dossier__scan-num { font-family: var(--font-mono); font-size: 0.6rem; color: var(--d-muted); opacity: 0.8; }
.dossier__scan-tag { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; color: var(--d-text); }

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: var(--border-w) solid var(--ink);
  background: var(--panel-ink-bg);
}

.terminal__dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid transparent; }
.terminal__dot--red { background: #ff5f56; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #27c93f; }
.terminal__title { margin-left: 6px; font-size: 0.75rem; color: var(--panel-ink-text); opacity: 0.65; }

.terminal__body { padding: 20px; min-height: 220px; font-size: 0.86rem; }
.terminal__line { color: var(--panel-ink-text); word-break: break-word; margin-bottom: 12px; }
.terminal__prompt { color: var(--panel-ink-text); opacity: 0.75; margin-right: 8px; }
.terminal__output { opacity: 0.72; }
.terminal__output.hl { opacity: 1; font-weight: 700; }

.terminal__cursor {
  display: inline-block;
  color: var(--panel-ink-text);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* =========================================================
   8. STATS
   ========================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 24px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); }

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
}

.stat-card__label { color: var(--gray-700); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; margin-top: 6px; }

/* =========================================================
   9. DOMAIN CARDS
   ========================================================= */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.domain-card {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.domain-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); }

.domain-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 16px;
  border: var(--border-w) solid var(--ink);
}

.domain-card__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.domain-card__desc { color: var(--gray-700); font-size: 0.88rem; font-family: var(--font-mono); }

.tools-strip { border-top: var(--border-w) solid var(--ink); padding-top: 32px; }

.tools-strip__label {
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* =========================================================
   10. CALLOUT
   ========================================================= */
.callout {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-left: 8px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 28px 32px;
  color: var(--ink);
  max-width: 800px;
}

/* =========================================================
   12. OPS CONSOLE
   ========================================================= */
.ops-console {
  background: var(--panel-ink-bg);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--shadow-color);
}

.ops-console__log {
  padding: 18px 20px;
  height: 260px;
  overflow-y: auto;
  font-size: 0.84rem;
  color: var(--panel-ink-text);
  background: var(--panel-ink-bg);
}

.ops-console__log .terminal__line { margin-bottom: 6px; color: var(--panel-ink-text); white-space: pre-wrap; }
.ops-console__log .hl { color: var(--panel-ink-text); font-weight: 700; text-decoration: underline; }
.ops-console__log .err { opacity: 0.6; font-style: italic; }
.ops-console__log .ok { color: var(--panel-ink-text); }

.ops-console__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: var(--border-w) solid var(--ink);
  background: var(--panel-ink-bg);
}

.ops-console__input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--panel-ink-text);
  font-size: 0.86rem;
  outline: none;
}

/* =========================================================
   13. SKILLS
   ========================================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}

.skill-group__title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--ink);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 18px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: var(--border-w) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--shadow-color);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.skill-pill:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow-color); }

/* =========================================================
   14. TIMELINE
   ========================================================= */
.timeline { position: relative; padding-left: 36px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--ink);
}

.timeline__item { position: relative; padding-bottom: 40px; }
.timeline__item:last-child { padding-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -36px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
}

.timeline__date {
  color: var(--ink);
  background: var(--paper);
  display: inline-block;
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline__role { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; margin-bottom: 2px; color: var(--ink); }
.timeline__org { color: var(--gray-700); font-size: 0.88rem; margin-bottom: 12px; font-weight: 600; }

.timeline__list { display: flex; flex-direction: column; gap: 8px; }
.timeline__list li { position: relative; padding-left: 20px; color: var(--gray-700); font-size: 0.9rem; font-family: var(--font-mono); }
.timeline__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--ink);
  border-radius: 50%;
}

/* =========================================================
   15. PROJECTS — scan-output terminal cards
   ========================================================= */
.filter-row { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }

.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: var(--border-w) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--shadow-color);
  transition: all 0.15s ease;
}

.filter-btn:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--shadow-color); }
.filter-btn.is-active { background: var(--ink); color: var(--paper); box-shadow: 1px 1px 0 var(--shadow-color); transform: translate(2px, 2px); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--shadow-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); }
.project-card.is-hidden { display: none; }

.card-scan {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--panel-ink-bg);
  border-bottom: var(--border-w) solid var(--ink);
  font-family: var(--font-mono);
}

.card-scan__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--panel-ink-text);
  flex-shrink: 0;
}

.card-scan__tag {
  flex: 1;
  text-align: center;
  margin: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--panel-ink-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-scan__status {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--panel-ink-text);
  opacity: 0.85;
  border: 1px solid var(--panel-ink-text);
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}

.project-card__log {
  height: 120px;
  padding: 12px 14px;
  border-bottom: var(--border-w) solid var(--ink);
  background: var(--panel-ink-bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.9;
  overflow: hidden;
}

.project-card__log span { display: block; color: var(--panel-ink-text); opacity: 0.7; }
.project-card__log .accent { opacity: 1; font-weight: 700; }

.project-card__body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }

.project-card__title { font-family: var(--font-display); font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; color: var(--ink); }
.project-card__desc { color: var(--gray-700); font-size: 0.88rem; flex: 1; font-family: var(--font-mono); }

.project-card__links { display: flex; gap: 10px; margin-top: 18px; }
.project-card__link {
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
}

/* =========================================================
   16. WRITEUPS — stacked-card teaser
   ========================================================= */
#writeups .btn { margin-top: 4px; }

.writeups-stack {
  position: relative;
  height: 190px;
  margin: 8px 0 48px;
}

.writeups-stack__card {
  position: absolute;
  top: 0;
  width: 220px;
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--shadow-color);
  overflow: hidden;
}

.writeups-stack__card:nth-child(1) { left: 0; transform: rotate(-6deg); z-index: 1; }
.writeups-stack__card:nth-child(2) { left: 160px; transform: rotate(3deg); z-index: 2; }
.writeups-stack__card:nth-child(3) { left: 320px; transform: rotate(-3deg); z-index: 3; }

.writeups-stack__card .card-scan__tag { font-size: 0.62rem; }
.writeups-stack__card .project-card__log { height: 90px; }
.writeups-stack__card .project-card__body { padding: 12px 14px; }
.writeups-stack__card .project-card__title { font-size: 0.82rem; margin-bottom: 0; }

/* =========================================================
   17. ACHIEVEMENTS
   ========================================================= */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 18px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.achievement-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); }

.achievement-card__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  font-size: 0.82rem;
  border: var(--border-w) solid var(--ink);
}

.achievement-card__body { flex: 1; min-width: 0; }

.achievement-card__title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; color: var(--ink); }
.achievement-card__meta { color: var(--gray-700); font-size: 0.78rem; margin-top: 3px; font-weight: 600; }

.achievement-card__link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.achievement-card__link:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   18. CERTIFICATIONS
   ========================================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 20px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cert-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); }

.cert-card__body { min-width: 0; }
.cert-card__title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--ink); }
.cert-card__meta { color: var(--gray-700); font-size: 0.78rem; }

/* =========================================================
   19. EDUCATION
   ========================================================= */
.edu-grid { display: flex; flex-direction: column; gap: 16px; }

.edu-entry {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 22px 26px;
  flex-wrap: wrap;
}

.edu-entry__degree h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.edu-entry__inst { color: var(--gray-700); font-size: 0.88rem; }
.edu-entry__date {
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

/* =========================================================
   20. CONTACT
   ========================================================= */
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--shadow-color);
  padding: 16px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.contact-link:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); }
.contact-link svg { flex-shrink: 0; color: var(--ink); }

/* =========================================================
   21. FOOTER
   ========================================================= */
.footer {
  background: var(--panel-ink-bg);
  color: var(--panel-ink-text);
  border-top: var(--border-w) solid var(--ink);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__tagline { color: var(--panel-ink-text); font-size: 0.8rem; font-weight: 700; }
.footer__copy { color: var(--panel-ink-text); opacity: 0.65; font-size: 0.82rem; }

/* =========================================================
   22. BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: var(--border-w) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 5px 5px 0 var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.15s ease;
  z-index: 400;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--shadow-color); }

/* =========================================================
   23. TOAST
   ========================================================= */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: var(--paper);
  border: var(--border-w) solid var(--ink);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 6px 6px 0 var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 700;
  max-width: 90vw;
}

.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.toast__close {
  background: var(--paper);
  color: var(--ink);
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.toast__close:hover { opacity: 1; }

/* =========================================================
   24. REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   25. RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .about__row { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .dossier__body { grid-template-columns: 1fr; }
  .dossier__left { border-right: none; border-bottom: 1px dashed var(--d-line); }
}

@media (max-width: 768px) {
  .navbar__nav {
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    bottom: 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 24px;
  }
  .navbar__nav.is-open { transform: translateX(0); }
  .navbar__list { flex-direction: column; align-items: flex-start; gap: 10px; }
  .navbar__link { display: block; padding: 14px 4px; width: 100%; font-size: 1rem; }
  .navbar__burger { display: flex; }

  .domain-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .achievements-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .edu-entry { flex-direction: column; }
  .section { padding: 40px 0; }
  .panel--ink { padding: 28px !important; }
  .writeups-stack { display: none; }
  .dossier__infobar { flex-direction: column; align-items: flex-start; }
  .dossier__record { flex-direction: column; gap: 2px; }
  .dossier__record dt { flex: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dossier__scan-strip { grid-template-columns: repeat(3, 1fr); }
}
