/* ==========================================================================
   NoETHER-X Research Labs — Global Stylesheet
   Hand-authored, zero-build CSS (deploys directly to GitHub Pages).
   Design tokens follow the brief's palette + typography exactly.
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Palette (from brief) */
  --bg:          #05070B;
  --surface:     #111827;
  --surface-2:   #0B111C;
  --surface-3:   #0E1626;
  --primary:     #00D9FF;   /* cyan  */
  --accent:      #8B5CF6;   /* violet */
  --highlight:   #00FFA3;   /* green */
  --text:        #FFFFFF;
  --muted:       #A0AEC0;
  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Derived accents */
  --primary-dim: rgba(0, 217, 255, 0.12);
  --accent-dim:  rgba(139, 92, 246, 0.14);
  --glow:        0 0 0 1px rgba(0, 217, 255, 0.25), 0 12px 40px -12px rgba(0, 217, 255, 0.35);

  /* Type */
  --font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --font-body:    "Inter", "IBM Plex Sans", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Metrics */
  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--highlight); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: #001014; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

/* ---- Ambient page texture ------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -6%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(800px 520px at 12% 4%, rgba(0, 217, 255, 0.12), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 96px; position: relative; }
.section--tight { padding-block: 64px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: #001014; padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--primary); display: inline-block; }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

.lead { color: var(--muted); font-size: 1.15rem; max-width: 640px; }
.mono { font-family: var(--font-mono); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-highlight { color: var(--highlight); }
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text); background: transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--text); }
.btn--primary {
  background: linear-gradient(120deg, var(--primary), #4be0ff);
  color: #001014; border-color: transparent; font-weight: 600;
}
.btn--primary:hover { box-shadow: var(--glow); color: #001014; }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-dim); }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }
.brand:hover { color: var(--text); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(0,217,255,.35), rgba(139,92,246,.25));
  border: 1px solid var(--line-strong); font-family: var(--font-mono); font-weight: 700; color: var(--primary);
}
.brand__name b { color: var(--text); }
.brand__name span { color: var(--muted); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.24em; display: block; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  color: var(--muted); font-size: 0.9rem; padding: 8px 12px; border-radius: 8px; position: relative;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--primary); }
.nav__toggle { display: none; }

@media (max-width: 940px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(5, 7, 11, 0.98); border-bottom: 1px solid var(--line); padding: 12px 18px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px; font-size: 1rem; }
  .nav__toggle { display: grid; }
  .brand__name span { display: none; }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-top: 92px; padding-bottom: 84px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  line-height: 1.02; margin-top: 22px; letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--primary) 10%, var(--accent) 55%, var(--highlight) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 26px; font-size: clamp(1.05rem, 2vw, 1.35rem); color: var(--muted); max-width: 620px; }
.hero__sub b { color: var(--text); font-weight: 600; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ticker {
  margin-top: 52px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em;
}
.hero__ticker span { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticker span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 10px var(--highlight); }

/* ---- Cards & grids ------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px 160px at var(--mx, 50%) -20%, rgba(0,217,255,0.10), transparent 70%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9); }
.card:hover::after { opacity: 1; }
.card__tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-dim); border: 1px solid rgba(0,217,255,0.2);
  padding: 4px 10px; border-radius: 999px; display: inline-block;
}
.card h3 { font-size: 1.2rem; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.82rem; }
.card__link .arrow { transition: transform 0.2s var(--ease); }
.card:hover .card__link .arrow { transform: translateX(4px); }

/* Research area card icon block */
.area-card { display: flex; flex-direction: column; height: 100%; }
.area-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-dim); border: 1px solid rgba(139,92,246,0.25); color: var(--accent); margin-bottom: 6px;
}
.area-card svg { width: 24px; height: 24px; }

/* ---- Stats / counters ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 26px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--primary); }
.stat__num .plus { color: var(--accent); }
.stat__label { color: var(--muted); font-size: 0.85rem; margin-top: 6px; letter-spacing: 0.04em; }

/* ---- Feature / mission split -------------------------------------------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: linear-gradient(160deg, var(--surface-3), var(--surface-2));
}
.spec-strip {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
  display: grid; gap: 12px;
}
.spec-strip div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.spec-strip div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-strip b { color: var(--text); font-weight: 500; }

/* ---- Lists / filters (pubs, patents) ------------------------------------ */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.search-input {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.search-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.search-input input { flex: 1; background: transparent; border: 0; color: var(--text); font-size: 0.95rem; font-family: var(--font-body); }
.search-input input:focus { outline: none; }
.search-input svg { color: var(--muted); flex: none; }
select.filter, .filter {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 14px; font-family: var(--font-body); font-size: 0.9rem; cursor: pointer;
}
select.filter:focus { outline: none; border-color: var(--primary); }
.result-count { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); margin-left: auto; }

.record {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.record:hover { border-color: var(--line-strong); transform: translateX(3px); }
.record__meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.record__meta .venue { color: var(--highlight); }
.record h3 { font-size: 1.18rem; margin: 10px 0; }
.record h3 a { color: var(--text); }
.record h3 a:hover { color: var(--primary); }
.record__authors { color: var(--muted); font-size: 0.9rem; }
.record__abstract { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: rgba(255,255,255,0.02);
}
.chip--link { color: var(--primary); border-color: rgba(0,217,255,0.25); cursor: pointer; }
.chip--link:hover { background: var(--primary-dim); }
.record__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.status-pill { font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.status-granted, .status-active { color: var(--highlight); background: rgba(0,255,163,0.1); border: 1px solid rgba(0,255,163,0.3); }
.status-pending, .status-incubating { color: #ffd166; background: rgba(255,209,102,0.1); border: 1px solid rgba(255,209,102,0.3); }
.status-filed, .status-maintained { color: var(--primary); background: var(--primary-dim); border: 1px solid rgba(0,217,255,0.3); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---- Detail pages -------------------------------------------------------- */
.detail-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.detail-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 16px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-body h2 { font-size: 1.4rem; margin: 30px 0 12px; }
.detail-body p { color: var(--muted); margin-bottom: 14px; }
.detail-body ul { color: var(--muted); padding-left: 20px; margin-bottom: 14px; }
.detail-body li { margin-bottom: 6px; }
.aside-card { position: sticky; top: calc(var(--nav-h) + 20px); }
.kv { display: grid; gap: 12px; font-size: 0.9rem; }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; }
.kv b { color: var(--text); font-weight: 500; text-align: right; }

.bibtex { background: #05080e; border: 1px solid var(--line); border-radius: 10px; padding: 16px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); white-space: pre-wrap; overflow-x: auto; }

/* Progress bar */
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 8px; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--highlight)); }

/* Timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); }
.timeline li { list-style: none; position: relative; margin-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--primary); }
.timeline .when { font-family: var(--font-mono); font-size: 0.75rem; color: var(--primary); }
.timeline .what { color: var(--text); font-weight: 500; }
.timeline .note { color: var(--muted); font-size: 0.9rem; }

/* ---- News / bulletin ----------------------------------------------------- */
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .news-item { grid-template-columns: 1fr; gap: 8px; } }
.news-item .date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.news-item .cat { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; }
.news-item h3 { font-size: 1.1rem; margin: 6px 0; }

/* ---- Contact ------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 12px 14px; font-family: var(--font-body); font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.map-placeholder {
  border: 1px solid var(--line); border-radius: var(--radius); height: 260px; display: grid; place-items: center;
  color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 30px 30px, var(--surface-2);
}

/* ---- Global search overlay ---------------------------------------------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(3, 5, 9, 0.72); backdrop-filter: blur(6px);
  padding: 10vh 20px 20px;
}
.search-overlay.open { display: block; }
.search-panel {
  max-width: 680px; margin-inline: auto; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 40px 120px -30px #000;
  overflow: hidden;
}
.search-panel__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-panel__head input { flex: 1; background: transparent; border: 0; color: var(--text); font-size: 1.1rem; }
.search-panel__head input:focus { outline: none; }
.search-panel__head kbd {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 7px;
}
.search-results { max-height: 52vh; overflow-y: auto; padding: 8px; }
.search-results a {
  display: block; padding: 12px 14px; border-radius: 10px; color: var(--text);
}
.search-results a:hover, .search-results a.active { background: rgba(255,255,255,0.05); color: var(--text); }
.search-results .r-type { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.search-results .r-title { font-weight: 500; margin-top: 2px; }
.search-results .r-meta { color: var(--muted); font-size: 0.82rem; }
.search-hint { padding: 14px 18px; color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line); font-family: var(--font-mono); }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 48px;
  background:
    radial-gradient(600px 300px at 100% 0%, var(--accent-dim), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, var(--primary-dim), transparent 60%),
    var(--surface-2);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 14px auto 26px; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 56px 32px; margin-top: 40px; background: var(--surface-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 0.9rem; }
.footer ul a:hover { color: var(--primary); }
.footer__brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.footer__tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; color: var(--highlight); margin-top: 16px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem;
}
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.social a:hover { color: var(--primary); border-color: var(--primary); }

/* ---- Reveal-on-scroll ---------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }

/* ---- Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 40px; }
.pagehead { padding-top: 60px; padding-bottom: 20px; }
.pagehead h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 16px 0; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
