/* =============================================================
   EPSO Competition — Modern Design System 2026
   Minimal SaaS (Linear/Vercel) × Institutional EU
   ============================================================= */

:root {
  /* Brand */
  --eu-navy:        #273e57;
  --eu-navy-700:    #1a2940;
  --eu-navy-600:    #1f3550;
  --eu-navy-500:    #3d5a7a;
  --eu-navy-300:    #5a7a9e;
  --eu-navy-100:    #c5d4e3;
  --eu-navy-50:     #e8f0f7;

  --gold:           #c6a354;
  --gold-dark:      #9a7d37;
  --gold-light:     #e6d09a;
  --gold-50:        #faf5e8;

  /* Domain palette — per exam track for visual diversity.
     Use -bg for card/badge backgrounds, base for icon/border/progress. */
  --domain-verbal:        #2563eb;
  --domain-verbal-bg:     #dbeafe;
  --domain-numerical:     #d97706;
  --domain-numerical-bg:  #fef3c7;
  --domain-abstract:      #a855f7;
  --domain-abstract-bg:   #f3e8ff;
  --domain-eu:            #059669;
  --domain-eu-bg:         #d1fae5;
  --domain-digital:       #f97316;
  --domain-digital-bg:    #ffedd5;

  /* Vertical rhythm — use for section-to-section spacing */
  --s-section-top:        clamp(48px, 6vw, 88px);
  --s-section-bottom:     clamp(48px, 6vw, 88px);

  /* Motion */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Neutrals — warm, institutional */
  --bg:             #fafbfc;
  --bg-elev:        #ffffff;
  --bg-soft:        #f4f5f8;
  --bg-strong:      #eceff4;

  --ink:            #0b1424;
  --ink-2:          #26324a;
  --ink-3:          #4b5873;
  --ink-4:          #7a88a2;
  --ink-5:          #a9b4c6;

  --line:           #e5e8ef;
  --line-strong:    #cfd5e0;

  /* Semantic */
  --ok:             #0d7c3f;
  --ok-bg:          #e9f6ef;
  --warn:           #b45309;
  --warn-bg:        #fdf3e6;
  --err:            #b42318;
  --err-bg:         #fdecea;
  --info:           #0a6db0;
  --info-bg:        #e6f1fa;

  /* Typography */
  --font-sans: 'Inter', 'Inter Tight', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Fluid type scale */
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-56: clamp(2.5rem, 5.6vw, 3.75rem);
  --fs-72: clamp(3rem, 7.5vw, 4.75rem);

  /* Spacing — 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  /* Elevation — subtle, institutional */
  --sh-xs: 0 1px 0 rgba(15, 23, 42, 0.04);
  --sh-sm: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --sh-md: 0 4px 16px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --sh-lg: 0 12px 32px rgba(15,23,42,0.08), 0 2px 8px rgba(15,23,42,0.04);
  --sh-xl: 0 24px 64px rgba(15,23,42,0.12), 0 8px 16px rgba(15,23,42,0.04);
  --sh-focus: 0 0 0 3px rgba(29, 52, 97, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 520ms;

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --nav-h: 64px;
}

/* Dark mode (opt-in via data-theme="dark") */
[data-theme="dark"] {
  --bg:             #0b1120;
  --bg-elev:        #121a2b;
  --bg-soft:        #0f1829;
  --bg-strong:      #1a2540;
  --ink:            #eef2f8;
  --ink-2:          #c8d2e4;
  --ink-3:          #94a0ba;
  --ink-4:          #6b778f;
  --ink-5:          #4c5770;
  --line:           #1e2a44;
  --line-strong:    #2a3a5c;
  --eu-navy-50:     #0f1a33;
  --eu-navy-100:    #1a2940;
  --gold-50:        #2a1f0c;
}

/* ─────────────────────────────────────────────────────────────
   Reset + base
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss02';
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.018em;
  line-height: 1.08;
  font-weight: 600;
  color: var(--ink);
}
h1 { font-size: var(--fs-56); letter-spacing: -0.03em; font-weight: 640; }
h2 { font-size: var(--fs-40); letter-spacing: -0.024em; font-weight: 640; }
h3 { font-size: var(--fs-28); letter-spacing: -0.02em; }
h4 { font-size: var(--fs-20); }
p  { margin: 0; line-height: 1.6; color: var(--ink-2); }

::selection { background: var(--eu-navy-100); color: var(--eu-navy-700); }

/* ─────────────────────────────────────────────────────────────
   Layout primitives
───────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
.container-narrow { max-width: var(--container-narrow); }
@media (max-width: 640px) {
  .container { padding: 0 var(--s-4); }
}

.stack > * + * { margin-top: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────
   Nav (sticky, glass)
───────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,0.94);
}
[data-theme="dark"] .nav { background: rgba(11,17,32,0.7); }
[data-theme="dark"] .nav.is-scrolled { background: rgba(11,17,32,0.92); border-bottom-color: var(--line); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 640;
  font-size: var(--fs-15);
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.brand .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: block;
  object-fit: contain;
}
.nav .brand .logo,
.mobile-menu .brand .logo,
.footer .brand .logo {
  width: 28px;
  height: 28px;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  display: block;
}
.brand strong { font-weight: 700; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 7px 13px;
  font-size: var(--fs-14);
  color: var(--ink-3);
  border-radius: var(--r-md);
  font-weight: 500;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link.is-active {
  color: #273e57;
  background: rgba(39,62,87,0.09);
  font-weight: 600;
}

/* Live nav link */
.nav-link-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.nav-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e03131;
  flex-shrink: 0;
  box-shadow:
    0 0 0 3px rgba(224, 49, 49, 0.16),
    0 0 10px rgba(224, 49, 49, 0.55),
    0 0 18px rgba(224, 49, 49, 0.28);
  animation: livepulse 2s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 0 3px rgba(224, 49, 49, 0.16),
      0 0 10px rgba(224, 49, 49, 0.55),
      0 0 18px rgba(224, 49, 49, 0.28);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.18);
    box-shadow:
      0 0 0 5px rgba(224, 49, 49, 0.12),
      0 0 16px rgba(224, 49, 49, 0.72),
      0 0 26px rgba(224, 49, 49, 0.42);
  }
}

/* Actions */
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Separator */
.nav-sep {
  display: block;
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 4px;
}

/* Globe locale dropdown */
.nav-locale-wrap { position: relative; }
.nav-locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.nav-locale-btn:hover { color: var(--ink); background: var(--bg-soft); }
.nav-locale-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 6px;
  min-width: 140px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-locale-wrap:hover .nav-locale-dropdown,
.nav-locale-wrap:focus-within .nav-locale-dropdown { display: flex; }
.nav-locale-dropdown button {
  text-align: left;
  padding: 8px 12px;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  transition: all var(--dur-1) var(--ease);
}
.nav-locale-dropdown button:hover { color: var(--ink); background: var(--bg-soft); }
.nav-locale-dropdown button.is-active { color: #273e57; font-weight: 600; background: rgba(39,62,87,0.08); }

/* User dropdown */
.nav-user-wrap { position: relative; }
.nav-user-btn {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: transparent;
  cursor: pointer;
  transition: all var(--dur-1) var(--ease);
}
.nav-user-btn:hover { color: var(--ink); background: var(--bg-soft); }
.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 6px;
  min-width: 160px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
.nav-user-wrap:hover .nav-user-dropdown,
.nav-user-wrap:focus-within .nav-user-dropdown { display: flex; }
.nav-user-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: all var(--dur-1) var(--ease);
}
.nav-user-dropdown a:hover { color: var(--ink); background: var(--bg-soft); }

/* Burger */
.nav-burger {
  width: 36px; height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.nav-burger:hover { background: var(--bg-soft); }
.nav-burger svg { width: 18px; height: 18px; }

@media (max-width: 1080px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 7px 10px; font-size: 13px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-actions .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .nav-locale-wrap { display: none; }
  .nav-sep { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg-elev);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-close {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  color: var(--ink-3);
  cursor: pointer;
}
.mobile-menu-close:hover { background: var(--bg-soft); }
.mobile-menu-close svg { width: 18px; height: 18px; }
.mobile-menu-links {
  flex: 1;
  padding: var(--s-4) var(--s-6);
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  padding: var(--s-4) var(--s-2);
  font-size: var(--fs-16);
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color var(--dur-1) var(--ease);
}
.mobile-menu-links a:last-child { border-bottom: 0; }
.mobile-menu-links a.is-active { color: #273e57; font-weight: 600; }
.mobile-menu-links a:hover { color: #273e57; }
.mobile-menu-footer {
  padding: var(--s-6);
  border-top: 1px solid var(--line);
}

/* ─────────────────────────────────────────────────────────────
   Buttons
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 550;
  line-height: 1;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition:
    background var(--dur-1) var(--ease),
    border-color var(--dur-1) var(--ease),
    color var(--dur-1) var(--ease),
    transform var(--dur-2) var(--ease),
    box-shadow var(--dur-2) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }

.btn-primary {
  background: #273e57 !important;
  color: #fff !important;
  border-color: #273e57 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 2px rgba(15,23,42,0.12);
}
.btn-primary:hover { background: #1a2940 !important; border-color: #1a2940 !important; }

.btn-gold {
  background: var(--gold);
  color: #1d1405;
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 8px rgba(198,163,84,0.35);
}
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color:#fff; }

.btn-secondary {
  background: var(--bg-elev);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--ink-4); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }

.btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-13); border-radius: var(--r-sm); }
.btn-lg { height: 48px; padding: 0 22px; font-size: var(--fs-15); border-radius: var(--r-md); }
.btn-xl { height: 56px; padding: 0 28px; font-size: var(--fs-16); border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* ─────────────────────────────────────────────────────────────
   Chips / Badges / Pills
───────────────────────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  height: 26px;
  padding: 0 10px;
  font-size: var(--fs-12);
  font-weight: 550;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  letter-spacing: 0.005em;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.chip-dot.live { background: var(--ok); box-shadow: 0 0 0 3px rgba(13,124,63,0.14); animation: pulse 1.8s infinite; }
.chip-gold { background: var(--gold-50); border-color: var(--gold-light); color: var(--gold-dark); }
.chip-navy { background: var(--eu-navy-50); border-color: var(--eu-navy-100); color: var(--eu-navy-700); }
.chip-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(13,124,63,0.14); }
  50% { box-shadow: 0 0 0 6px rgba(13,124,63,0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.eyebrow.center,
.center .eyebrow,
[style*="justify-content:center"] .eyebrow { justify-content: center; }

/* ─────────────────────────────────────────────────────────────
   Cards
───────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.card-hover:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.card-dark {
  background: linear-gradient(180deg, #1a2940 0%, #273e57 100%) !important;
  color: #fff;
  border-color: transparent;
}
.card-dark h1, .card-dark h2, .card-dark h3, .card-dark h4 { color: #fff; }
.card-dark p { color: rgba(255,255,255,0.7); }

/* ─────────────────────────────────────────────────────────────
   Inputs
───────────────────────────────────────────────────────────── */
.input {
  height: 40px;
  padding: 0 14px;
  font-size: var(--fs-14);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  width: 100%;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.input:focus { outline: none; border-color: var(--eu-navy); box-shadow: var(--sh-focus); }
.input::placeholder { color: var(--ink-4); }

/* ─────────────────────────────────────────────────────────────
   Sections
───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}
.section-tight { padding: clamp(32px, 5vw, 64px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: var(--fs-18); color: var(--ink-3); }

/* ─────────────────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-3);
  font-size: var(--fs-14);
}

.footer-cta {
  padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.footer-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 20px;
}
.footer-cta .eyebrow { justify-content: center; }
.footer-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.footer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-lang .chip {
  font-size: 11px;
  height: 22px;
  padding: 0 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.footer-cols {
  padding: var(--s-12) 0 var(--s-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-10);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-3);
  letter-spacing: 0.02em;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: var(--s-2); }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: var(--s-16);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: var(--fs-13);
  color: var(--ink-4);
}

/* ─────────────────────────────────────────────────────────────
   Utility
───────────────────────────────────────────────────────────── */
.muted { color: var(--ink-3); }
.subtle { color: var(--ink-4); }
.mono { font-family: var(--font-mono); font-feature-settings: 'zero' 1; }
.divider { height: 1px; background: var(--line); border: 0; }
.center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.hidden-mobile { }
@media (max-width: 640px) { .hidden-mobile { display: none !important; } }
@media (min-width: 641px) { .only-mobile { display: none !important; } }

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 120ms; }
[data-reveal-delay="3"] { transition-delay: 180ms; }
[data-reveal-delay="4"] { transition-delay: 240ms; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Tweaks debug panel removed 2026-04-21 — unused, 0 references in HTML/JS */
