/* ============================================================
   mimohit.sys — ARCHIVE
   ============================================================ */

:root {
  --bg: #05070a;
  --bg-alt: #0a0d12;
  --surface: #0d1219;
  --surface-2: #121a23;
  --text: #dfe6e9;
  --text-dim: #7d8b99;
  --text-faint: #4d5866;
  --accent: #39ff88;
  --accent-soft: rgba(57, 255, 136, 0.12);
  --accent-2: #7dd3fc;
  --accent-warm: #f4a261;
  --danger: #ff5f6d;
  --border: rgba(125, 211, 252, 0.14);
  --border-soft: rgba(255, 255, 255, 0.06);
  --motion: 1;
  --radius: 3px;
  --shadow-glow: 0 0 24px rgba(57, 255, 136, 0.08);
}

html[data-mode="soothing"] {
  --bg: #1a130e;
  --bg-alt: #201811;
  --surface: #251c14;
  --surface-2: #2b2117;
  --text: #f2e6d6;
  --text-dim: #cbae8d;
  --text-faint: #8f7159;
  --accent: #e8b27f;
  --accent-soft: rgba(232, 178, 127, 0.14);
  --accent-2: #f6c78f;
  --accent-warm: #ffcf9c;
  --danger: #ff8a75;
  --border: rgba(232, 178, 127, 0.2);
  --border-soft: rgba(255, 220, 180, 0.08);
  --shadow-glow: 0 0 30px rgba(232, 178, 127, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  transition: background 0.6s ease, color 0.6s ease;
}

@media (max-width: 900px), (hover: none) {
  /* body { cursor: auto } alone isn't enough — cards/buttons/links below all set their
     own explicit `cursor: none` (needed for the custom cursor on desktop), and a class
     selector beats the body element selector, so the native pointer stayed hidden with
     nothing to replace it. Force it back everywhere the custom cursor is disabled. */
  body, body * { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

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

.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-bangers { font-family: 'Bangers', cursive; letter-spacing: 0.06em; }
.font-handwritten { font-family: 'Caveat', cursive; }

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -0.01em; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transition: background 0.4s ease, opacity 0.2s ease;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--accent);
  opacity: 0.5;
  transition: width 0.15s ease, height 0.15s ease, border-color 0.4s ease, opacity 0.2s ease, transform 0.05s linear;
}
.cursor-ring.hover { width: 52px; height: 52px; opacity: 0.9; }

/* ---------- boot screen ---------- */
.boot-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: #030405;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot-screen.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { width: min(560px, 90vw); }
.boot-ascii {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  line-height: 1.15;
  margin-bottom: 24px;
  white-space: pre;
  text-shadow: 0 0 10px rgba(57,255,136,0.5);
  overflow-x: auto;
}
.boot-lines {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  min-height: 90px;
  margin-bottom: 16px;
}
.boot-lines div { margin-bottom: 4px; }
.boot-lines .ok { color: var(--accent); }
.boot-bar { height: 3px; background: rgba(255,255,255,0.08); width: 100%; overflow: hidden; }
.boot-bar-fill { height: 100%; width: 0%; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width 0.1s linear; }

/* ---------- background layers ---------- */
#bgCanvas { position: fixed; inset: 0; z-index: -2; opacity: 0.5; }
.matrix-overlay { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.35) 50%);
  background-size: 100% 4px;
  opacity: 0.06;
}

/* ---------- layout helpers ---------- */
main { position: relative; z-index: 1; }
section { padding: 120px clamp(20px, 6vw, 90px); position: relative; }

.volume-label {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 12px;
}
.volume-label .font-bangers { font-size: 22px; color: var(--accent); }
.volume-label .font-mono { font-size: 12px; letter-spacing: 0.25em; color: var(--text-dim); text-transform: uppercase; }

.section-intro { color: var(--text-dim); margin-bottom: 48px; max-width: 60ch; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
  cursor: none;
}
.btn-primary { background: var(--accent); color: var(--bg); font-weight: 700; }
.btn-primary:hover { box-shadow: 0 0 24px var(--accent); transform: translateY(-2px); }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  height: 68px;
  background: rgba(5,7,10,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.6s ease, border-color 0.6s ease;
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
  color: var(--accent);
  cursor: none;
}
.nav-logo-bracket { color: var(--text-dim); }
.nav-logo-blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  cursor: none;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.mode-toggle {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: none;
  font-size: 15px;
  transition: all 0.4s ease;
  display: flex; align-items: center; justify-content: center;
}
.mode-toggle:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); display: block; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--border-soft); }
  .nav-burger { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding-top: 68px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em;
  color: var(--accent);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  margin-bottom: 32px;
}
.dot-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.hero-title { font-size: clamp(38px, 8vw, 92px); line-height: 1.02; margin-bottom: 20px; }
.hero-title-line {
  display: inline-block;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 24px rgba(57, 255, 136, 0.35);
}
.hero-title-line.decoding { text-shadow: 0 0 16px rgba(57, 255, 136, 0.6); }

.hero-role { font-size: clamp(14px, 2vw, 18px); color: var(--accent-2); margin-bottom: 24px; min-height: 24px; }
.type-cursor { color: var(--accent); animation: blink 1s step-end infinite; }

.hero-desc { max-width: 62ch; color: var(--text-dim); font-size: 16px; margin-bottom: 40px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }
.hero-hint { font-size: 12px; color: var(--text-faint); }
.hero-hint a { color: var(--accent-2); border-bottom: 1px dotted var(--accent-2); cursor: none; }

.hero-corner-data {
  position: absolute; bottom: 40px; right: clamp(20px, 6vw, 90px);
  text-align: right; font-size: 11px; color: var(--text-faint); display: none;
}
@media (min-width: 900px) { .hero-corner-data { display: block; } }
.hero-corner-data div { margin-bottom: 4px; }
.konami-hint { color: var(--text-faint); opacity: 0.5; font-style: italic; }

/* ---------- story panels ---------- */
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 900px) { .panel-row { grid-template-columns: 1fr; } }

.story-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.story-main { display: flex; flex-direction: column; gap: 24px; }
.story-side { display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.6s ease;
}
.panel:hover { border-color: var(--border); }
.panel-narrow { grid-column: span 1; }
.panel-wide { grid-column: span 1; }
.panel-accent { background: linear-gradient(160deg, var(--surface), var(--surface-2)); border-left: 3px solid var(--accent); }

.panel-sfx {
  position: absolute; top: 12px; right: 20px;
  font-size: 22px; color: var(--accent); opacity: 0.18;
  transform: rotate(-6deg);
}
.panel-sfx.small { font-size: 16px; }

.narrative { font-family: 'Source Serif 4', serif; font-size: 17px; color: var(--text); margin-bottom: 18px; }
.narrative.small { font-size: 15px; color: var(--text-dim); }
.narrative strong { color: var(--accent-2); font-weight: 600; }
.narrative-quote {
  font-family: 'Source Serif 4', serif; font-style: italic; font-size: 20px;
  color: var(--accent); border-left: 2px solid var(--accent); padding-left: 20px; margin: 24px 0;
}

.panel-heading { font-size: 12px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 20px; }
.fact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border-soft); font-size: 13px; }
.fact-key { color: var(--text-faint); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; font-size: 11px; }
.fact-val { color: var(--text); text-align: right; }

.panel-terminal-look { background: #08090c; padding: 0; }
html[data-mode="soothing"] .panel-terminal-look { background: #17110c; }
html[data-mode="soothing"] .hero-title-line { text-shadow: 0 0 24px rgba(232, 178, 127, 0.35); }
html[data-mode="soothing"] .hero-title-line.decoding { text-shadow: 0 0 16px rgba(232, 178, 127, 0.6); }
.fake-titlebar {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--border-soft);
}
.fake-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: var(--text-faint); opacity: 0.5; }
.fake-titlebar span:nth-child(1) { background: #ff5f57; }
.fake-titlebar span:nth-child(2) { background: #febc2e; }
.fake-titlebar span:nth-child(3) { background: #28c840; }
.fake-title { margin-left: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }
.fake-code { padding: 24px; font-size: 13px; color: var(--accent); line-height: 1.8; overflow-x: auto; }
.fake-code .term-val { color: var(--text-dim); }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 820px; }
.timeline-line { position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-left: 44px; margin-bottom: 48px; }
.timeline-node {
  position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg);
}
.timeline-node.active { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline-meta { font-size: 11px; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 6px; }
.timeline-card h3 { font-size: 20px; margin-bottom: 4px; }
.timeline-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
.timeline-card ul li { position: relative; padding-left: 18px; color: var(--text-dim); margin-bottom: 8px; font-size: 14px; }
.timeline-card ul li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ---------- dossiers ---------- */
.dossier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .dossier-grid { grid-template-columns: 1fr; } }
.dossier-full { grid-column: 1 / -1; max-width: 640px; width: 100%; margin: 0 auto; }
.dossier-full p:not(.dossier-sub) { max-width: 90ch; }
.dossier {
  background: var(--surface); border: 1px solid var(--border-soft); padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.dossier:hover { border-color: var(--accent); transform: translateY(-4px); }
.dossier-header { display: flex; justify-content: space-between; margin-bottom: 16px; }
.dossier-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }
.dossier-status { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 3px 10px; border-radius: 999px; }
.status-active { background: var(--accent-soft); color: var(--accent); }
.status-progress { background: rgba(244,162,97,0.15); color: var(--accent-warm); }
.dossier h3 { font-size: 22px; margin-bottom: 4px; }
.dossier-sub { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.dossier p:not(.dossier-sub) { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.dossier blockquote { font-family: 'Source Serif 4', serif; font-style: italic; color: var(--accent-2); font-size: 15px; margin-bottom: 20px; }
.dossier-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dossier-tags span { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 4px 10px; border: 1px solid var(--border); color: var(--text-dim); }

/* ---------- archive / projects ---------- */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1100px) { .archive-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .archive-grid { grid-template-columns: 1fr; } }

.archive-card {
  background: var(--surface); border: 1px solid var(--border-soft); padding: 32px;
  cursor: none; transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex; flex-direction: column;
}
.archive-card:hover, .archive-card:focus-visible {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  outline: none;
}
.archive-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.archive-id { font-size: 10px; color: var(--text-faint); }
.archive-icon { font-size: 22px; filter: grayscale(0.3); }
.archive-card h3 { font-size: 20px; margin-bottom: 4px; }
.archive-stack { font-size: 11px; color: var(--accent-2); margin-bottom: 14px; }
.archive-desc { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; flex-grow: 1; }
.archive-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.archive-tags span { font-size: 9px; font-family: 'JetBrains Mono', monospace; padding: 3px 8px; background: var(--surface-2); color: var(--text-dim); }
.archive-link { font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }


/* ---------- skills ---------- */
/* ---------- skills ---------- */
.matrix-dashboard {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 1100px) {
  .matrix-dashboard {
    grid-template-columns: 1fr;
  }
}

.matrix-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .matrix-categories {
    grid-template-columns: 1fr;
  }
}

.matrix-monitor {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skill-block {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  padding: 24px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.skill-block:hover {
  border-color: var(--border);
}
.skill-block h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.3s ease;
  cursor: none;
}
.chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 12px var(--accent-soft);
}

/* Segmented progress bar styling */
.diag-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diag-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.diag-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}
.diag-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.diag-pct {
  color: var(--accent);
}
.diag-bar {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--surface-2),
    var(--surface-2) 6px,
    transparent 6px,
    transparent 9px
  );
  overflow: hidden;
}
.diag-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--accent),
    var(--accent) 6px,
    transparent 6px,
    transparent 9px
  );
  box-shadow: 0 0 12px var(--accent-soft);
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.diag-fill.filled {
  width: var(--pct);
}

/* Skills dynamic console screen */
.skills-console {
  background: #040608;
  border: 1px solid var(--border-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  position: relative;
  overflow: hidden;
}
html[data-mode="soothing"] .skills-console {
  background: #120e0a;
}
.skills-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}
.console-header {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 8px;
}
.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-indicator.online {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.5s step-end infinite;
}
.console-body {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.console-line {
  white-space: pre-wrap;
}
.console-line.faint {
  color: var(--text-faint);
}
.console-line.cmd {
  color: var(--text);
  font-weight: 500;
}
.console-line.success {
  color: var(--accent);
  font-size: 10px;
  margin-top: 4px;
}
.console-line.text-accent-2 {
  color: var(--accent-2);
}

.cert-strip { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 22px 0; overflow: hidden; }
.cert-strip-label { font-size: 13px; letter-spacing: 0.12em; color: var(--text-faint); white-space: nowrap; }
.cert-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.cert-track-inner { display: flex; gap: 48px; white-space: nowrap; animation: scroll-left 36s linear infinite; font-size: 16px; color: var(--accent-2); font-family: 'JetBrains Mono', monospace; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- terminal ---------- */
.term-window { border: 1px solid var(--border); background: #06080a; max-width: 980px; width: 100%; margin: 0 auto; }
html[data-mode="soothing"] .term-window { background: #150f0a; }
.term-body {
  height: 380px; overflow-y: auto; padding: 24px; font-family: 'JetBrains Mono', monospace;
  font-size: 14px; color: var(--text-dim); line-height: 1.8;
}
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-cup { white-space: pre; word-break: normal; color: var(--accent-warm); overflow-x: auto; }
.term-cmd-hl { color: var(--accent); }
.term-line.echo { color: var(--accent-2); }
.term-line.error { color: var(--danger); }
.term-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-soft); }
.term-prompt { color: var(--accent); font-size: 14px; }
.term-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-size: 14px; }

/* ---------- recovery ---------- */
.recovery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 60px; }
@media (max-width: 900px) { .recovery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .recovery-grid { grid-template-columns: 1fr; } }
.recovery-card {
  background: var(--surface); border: 1px solid var(--border-soft); padding: 28px; text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.recovery-card:hover { transform: translateY(-6px); border-color: var(--accent-warm); }
.recovery-icon { font-size: 30px; margin-bottom: 14px; }
.recovery-card h4 { font-size: 12px; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 10px; }
.recovery-card p { font-size: 13px; color: var(--text-dim); }

.recovery-note { text-align: center; font-size: 26px; color: var(--accent-warm); max-width: 60ch; margin: 0 auto; }

/* ---------- gallery / field notes ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; } }

.gallery-tall { grid-row: span 2; }

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  cursor: none;
}
.gallery-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.85) contrast(1.05) brightness(0.85);
  transform: scale(1.04);
  transition: filter 0.6s ease, transform 0.8s cubic-bezier(.16,.84,.44,1);
}
.gallery-card:hover img, .gallery-card:focus-visible img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.gallery-tag {
  font-size: 10px; letter-spacing: 0.1em; color: var(--accent);
  margin-bottom: 8px; opacity: 0.9;
  text-shadow: 0 0 8px rgba(0,0,0,0.6);
}
.gallery-caption {
  font-family: 'Source Serif 4', serif; font-style: italic; font-size: 13px;
  color: #f2f2f2; line-height: 1.5;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-card:hover .gallery-caption, .gallery-card:focus-visible .gallery-caption {
  opacity: 1; transform: translateY(0);
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 48px clamp(20px, 6vw, 90px); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-logo { color: var(--accent); font-size: 13px; margin-bottom: 6px; }
.footer-copy { font-size: 10px; color: var(--text-faint); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 11px; color: var(--text-dim); letter-spacing: 0.1em; cursor: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-uptime-label { font-size: 9px; color: var(--text-faint); text-align: right; }
.footer-uptime-val { font-size: 13px; color: var(--accent); font-weight: 700; text-align: right; }

/* ---------- misc ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--accent); color: var(--accent);
  font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 12px 22px;
  z-index: 9999; opacity: 0; pointer-events: none; transition: all 0.4s ease;
  box-shadow: var(--shadow-glow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.scroll-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border: 1px solid var(--border); background: var(--surface); color: var(--accent);
  font-size: 18px; cursor: none; z-index: 400;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all 0.4s ease;
}
.scroll-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { box-shadow: var(--shadow-glow); border-color: var(--accent); }

/* reveal-on-scroll — eased like a slow pour settling, no blur (keeps scroll smooth/cheap) */
.reveal {
  opacity: 0;
  transform: translateY(38px) scale(0.98);
  transition:
    opacity 1.1s cubic-bezier(.22,.61,.36,1),
    transform 1.1s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

.reveal.dir-left { transform: translate(-40px, 18px) scale(0.98); }
.reveal.dir-left.in { transform: translate(0, 0) scale(1); }

.reveal.dir-right { transform: translate(40px, 18px) scale(0.98); }
.reveal.dir-right.in { transform: translate(0, 0) scale(1); }

.reveal.dir-scan { transform: translateY(16px) scale(0.98); }
.reveal.dir-scan.in { transform: translateY(0) scale(1); }

@media (max-width: 700px) {
  .reveal.dir-left, .reveal.dir-right { transform: translateY(30px) scale(0.98); }
  .reveal.dir-left.in, .reveal.dir-right.in { transform: translateY(0) scale(1); }
}

/* brew meter — a little coffee cup that fills as you scroll the archive */
.brew-meter {
  position: fixed; left: 24px; bottom: 24px; z-index: 400;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
}
.brew-stack { position: relative; width: 30px; height: 50px; }
.brew-steam {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; height: 16px;
}
.brew-steam span {
  width: 2px; height: 10px; background: var(--accent-warm);
  opacity: 0; border-radius: 2px;
  animation: steam-rise 2.6s ease-in-out infinite;
}
.brew-steam span:nth-child(2) { animation-delay: 0.5s; }
.brew-steam span:nth-child(3) { animation-delay: 1s; }
@keyframes steam-rise {
  0% { transform: translateY(4px) scaleY(0.5); opacity: 0; }
  35% { opacity: 0.55; }
  100% { transform: translateY(-14px) scaleY(1.3); opacity: 0; }
}
.brew-cup {
  position: absolute; bottom: 0; left: 1px; right: 1px; height: 32px;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 9px 9px;
  background: var(--surface);
  overflow: hidden;
}
.brew-liquid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: linear-gradient(180deg, var(--accent-warm), #6b3f1d);
  transition: height 0.2s linear;
}
.brew-pct { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-faint); letter-spacing: 0.08em; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 10px var(--accent);
  z-index: 9996;
  transition: width 0.08s linear, background 0.6s ease;
}

/* volume label scan sweep */
.volume-label { position: relative; overflow: hidden; }
.volume-label::after {
  content: "";
  position: absolute; top: 0; left: -100%; bottom: 0; width: 60%;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  transition: left 1.1s cubic-bezier(.16,.84,.44,1);
}
.volume-label.scanned::after { left: 140%; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
