/* =========================================================
   tenor.life — "Midnight Arcade"
   A dark, playful neon design system shared across pages.
   ========================================================= */

:root {
  /* Surfaces */
  --bg:          #09090f;
  --bg-2:        #0e0e17;
  --surface:     #14141f;
  --surface-2:   #1b1b29;
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.14);

  /* Type */
  --text:        #f5f3ee;
  --muted:       #9d9ab0;
  --faint:       #6b6980;

  /* Neon accents */
  --lime:        #ceff4d;
  --pink:        #ff4d97;
  --cyan:        #57e6ff;
  --violet:      #9b7bff;

  --lime-soft:   rgba(206, 255, 77, 0.14);
  --pink-soft:   rgba(255, 77, 151, 0.14);
  --cyan-soft:   rgba(87, 230, 255, 0.14);

  /* Fonts */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  /* Geometry */
  --radius:      20px;
  --radius-sm:   12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow:      0 18px 50px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg:   0 40px 90px -30px rgba(0, 0, 0, 0.85);

  --maxw:        1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ----- Atmospheric background: drifting glow blobs + grain ----- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  mix-blend-mode: screen;
}
.blob.b1 { width: 50vw; height: 50vw; background: var(--pink);  top: -12vw; left: -8vw;  animation: drift1 26s ease-in-out infinite; }
.blob.b2 { width: 45vw; height: 45vw; background: var(--cyan);  top: 30vh;  right: -12vw; animation: drift2 32s ease-in-out infinite; }
.blob.b3 { width: 38vw; height: 38vw; background: var(--lime);  bottom: -14vw; left: 28vw; opacity: 0.32; animation: drift3 38s ease-in-out infinite; }

@keyframes drift1 { 50% { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-7vw, -5vh) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(4vw, -7vh) scale(0.9); } }

/* fine grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--lime); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
img { display: block; }

/* =====================  LAYOUT  ===================== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* =====================  NAVBAR  ===================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(9, 9, 15, 0.62);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  white-space: nowrap;
}
.logo .dot { color: var(--lime); }
.logo:hover .dot { animation: pop 0.5s ease; }
@keyframes pop { 50% { transform: scale(1.6) rotate(12deg); } }

.nav-links { display: flex; gap: 4px; margin-left: 6px; }
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--text); background: var(--lime-soft); }

.nav-spacer { flex: 1; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  min-width: 230px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.nav-search svg { flex: none; opacity: 0.6; }
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  width: 100%;
}
.nav-search input::placeholder { color: var(--faint); }

.burger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--text);
}
.burger:hover { background: rgba(255,255,255,0.06); }

/* =====================  BUTTONS  ===================== */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--lime);
  color: #0b0b07;
  box-shadow: 0 10px 30px -10px rgba(206, 255, 77, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(206, 255, 77, 0.8); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* =====================  HERO  ===================== */
.hero { padding: 80px 0 56px; position: relative; }
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero .eyebrow::before {
  content: "";
  width: 32px; height: 1px; background: var(--lime); opacity: 0.6;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 .g-pink { color: var(--pink); }
.hero h1 .g-cyan { color: var(--cyan); }
.hero h1 .g-lime { color: var(--lime); }
.hero p.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 48ch;
  margin: 28px 0 36px;
}
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 22px;
  max-width: 540px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search:focus-within { border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.hero-search input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
}
.hero-search input::placeholder { color: var(--faint); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 26px; }

/* staggered entrance for hero bits */
.rise { opacity: 0; transform: translateY(22px); animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: 0.05s; }
.rise.d2 { animation-delay: 0.15s; }
.rise.d3 { animation-delay: 0.25s; }
.rise.d4 { animation-delay: 0.35s; }
.rise.d5 { animation-delay: 0.45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* =====================  CHIPS  ===================== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.chip.active { color: #0b0b07; background: var(--lime); border-color: var(--lime); font-weight: 500; }

/* =====================  SECTION HEADERS  ===================== */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 64px 0 26px;
  flex-wrap: wrap;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sec-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  display: block;
}
.sec-head a.more {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--lime);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.sec-head a.more:hover { border-color: var(--lime); }

/* =====================  GIF MASONRY GRID  ===================== */
.grid {
  column-count: 4;
  column-gap: 18px;
}
@media (max-width: 1100px) { .grid { column-count: 3; } }
@media (max-width: 720px)  { .grid { column-count: 2; column-gap: 12px; } }
@media (max-width: 420px)  { .grid { column-count: 1; } }

.card {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  animation: rise 0.6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0ms);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(206,255,77,0.25);
}
.card img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface-2);
}
.card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 38px 16px 14px;
  background: linear-gradient(to top, rgba(6,6,12,0.92) 10%, rgba(6,6,12,0) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
}
.card:hover .overlay { opacity: 1; transform: none; }
.card .c-title {
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
}
.card .c-cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lime);
  text-transform: lowercase;
  margin-top: 3px;
}
.card .c-copy {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.card .c-copy:hover { background: var(--lime); color: #0b0b07; transform: scale(1.1); }

/* corner category tag (always visible, subtle) */
.card .tag {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(9,9,15,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
}

/* =====================  EMPTY STATE  ===================== */
.empty {
  text-align: center;
  padding: 90px 20px;
  color: var(--muted);
}
.empty .big { font-family: var(--font-display); font-size: 2rem; color: var(--text); margin-bottom: 10px; }

/* =====================  TRENDING  ===================== */
.trend-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 880px) { .trend-layout { grid-template-columns: 1fr; } }

.trend-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  cursor: pointer;
}
.trend-hero img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.trend-hero .th-info {
  position: absolute; inset: auto 0 0 0; padding: 30px 26px 24px;
  background: linear-gradient(to top, rgba(6,6,12,0.95), transparent);
}
.trend-hero .rank-1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #0b0b07; background: var(--lime); display: inline-block;
  padding: 5px 12px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.trend-hero h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; letter-spacing: -0.02em; }
.trend-hero .meta { font-family: var(--font-mono); color: var(--muted); margin-top: 8px; font-size: 0.9rem; }

.trend-list { display: flex; flex-direction: column; gap: 12px; }
.trend-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.trend-row:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateX(4px); }
.trend-row .rank {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.4rem; width: 42px; text-align: center; color: var(--faint);
  flex: none;
}
.trend-row .thumb {
  width: 74px; height: 74px; border-radius: 10px; object-fit: cover; flex: none;
  background: var(--surface-2);
}
.trend-row .tr-main { flex: 1; min-width: 0; }
.trend-row .tr-title { font-weight: 700; font-size: 1rem; }
.trend-row .tr-cat { font-family: var(--font-mono); font-size: 0.74rem; color: var(--lime); margin-top: 2px; }
.trend-row .tr-stat {
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted);
  display: flex; align-items: center; gap: 6px; flex: none;
}
.trend-row .tr-stat .up { color: var(--lime); }

/* =====================  STATS BAND  ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
  margin: 56px 0;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 30px; text-align: center; } }
.stat .num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em;
}
.stat .num .u { color: var(--lime); }
.stat .lbl { color: var(--muted); margin-top: 10px; font-size: 0.98rem; }

/* =====================  ABOUT / PROSE  ===================== */
.prose-hero { padding: 70px 0 30px; }
.prose-hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: 0.98; letter-spacing: -0.03em;
  max-width: 18ch;
}
.prose-hero h1 em { font-style: normal; color: var(--pink); }
.prose-hero p { color: var(--muted); font-size: clamp(1.05rem,2vw,1.3rem); max-width: 56ch; margin-top: 26px; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 20px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.step:hover { border-color: var(--border-2); transform: translateY(-4px); }
.step .n {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--lime);
  border: 1px solid var(--lime); border-radius: var(--radius-pill);
  width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 18px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.faq summary {
  font-family: var(--font-display); font-weight: 500; font-size: 1.12rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
  flex: none; width: 26px; height: 26px; position: relative; transition: transform 0.3s;
}
.faq summary .ico::before, .faq summary .ico::after {
  content: ""; position: absolute; background: var(--lime); border-radius: 2px;
}
.faq summary .ico::before { top: 12px; left: 4px; width: 18px; height: 2px; }
.faq summary .ico::after  { top: 4px; left: 12px; width: 2px; height: 18px; transition: transform 0.3s; }
.faq details[open] summary .ico::after { transform: rotate(90deg); }
.faq p { color: var(--muted); margin-top: 14px; max-width: 64ch; }
.faq code, .footer code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  color: var(--lime);
}

/* =====================  CTA BANNER  ===================== */
.cta {
  margin: 80px 0 30px;
  border-radius: 28px;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,77,151,0.22), transparent 45%),
    radial-gradient(120% 140% at 100% 100%, rgba(87,230,255,0.2), transparent 45%),
    var(--surface);
  padding: 60px 40px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cta h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3rem); letter-spacing: -0.02em; line-height: 1;
}
.cta p { color: var(--muted); margin: 16px auto 30px; max-width: 46ch; }

/* =====================  FOOTER  ===================== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 70px;
  padding: 44px 0 60px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer .logo { font-size: 1.5rem; margin-bottom: 14px; }
.footer .tag { color: var(--faint); font-size: 0.92rem; max-width: 30ch; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.94rem; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--lime); }
.footer-base {
  border-top: 1px solid var(--border); margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--faint);
}

/* =====================  MODAL / LIGHTBOX  ===================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,4,9,0.8);
  backdrop-filter: blur(10px);
}
.modal-card {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: pops 0.32s cubic-bezier(.2,.8,.2,1);
}
@keyframes pops { from { opacity: 0; transform: translateY(20px) scale(0.96); } }
.modal-card img { width: 100%; max-height: 60vh; object-fit: contain; background: #000; }
.modal-body { padding: 22px 24px 26px; }
.modal-body .m-cat { font-family: var(--font-mono); font-size: 0.78rem; color: var(--lime); text-transform: lowercase; }
.modal-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 6px 0 18px; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn { padding: 11px 20px; font-size: 0.9rem; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(9,9,15,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2); color: var(--text);
  cursor: pointer; display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover { background: var(--pink); color: #fff; transform: rotate(90deg); }

/* =====================  TOAST  ===================== */
.toast {
  position: fixed;
  bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  z-index: 300;
  background: var(--lime); color: #0b0b07;
  font-weight: 700; font-size: 0.92rem;
  padding: 12px 22px; border-radius: var(--radius-pill);
  box-shadow: 0 14px 40px -10px rgba(206,255,77,0.6);
  opacity: 0; transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.35s;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* =====================  MOBILE NAV MENU  ===================== */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,15,0.95);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem;
  color: var(--muted); padding: 12px 4px;
}
.mobile-menu a.active { color: var(--lime); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .burger { display: grid; place-items: center; margin-left: auto; }
}

/* =====================  REDUCED MOTION  ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.05ms !important; }
  .rise, .card { opacity: 1 !important; transform: none !important; }
  .blob { animation: none !important; }
  html { scroll-behavior: auto; }
}
