/* ==================================================================
   m0uss1 — shared site shell (Tailwind complements this file)
   Theme vars, keyframes + effects Tailwind can't express inline.
   ================================================================== */

:root {
  --bg: #08080A;
  --bg-elev: #111114;
  --bg-card: #111114;
  --elevated: #33333B;
  --text: #FFFFFF;
  --text-muted: #B0B0B8;
  --glow: #8B8B9E;
  --accent: #D90429;
  --accent-dark: #8D0801;
  --border: rgba(139, 139, 158, 0.22);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  --nav-bg: rgba(8, 8, 10, 0.82);
  --accent-soft: rgba(217, 4, 41, 0.12);
  --accent-line: rgba(217, 4, 41, 0.45);
}

[data-theme="light"] {
  --bg: #f4f4f6;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --elevated: #d9d9df;
  --text: #161616;
  --text-muted: #5a5a62;
  --glow: #8B8B9E;
  --border: rgba(0, 0, 0, 0.14);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(244, 244, 246, 0.85);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
}

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

.mono {
  font-family: "JetBrains Mono", monospace;
}

/* ------------------------------------------------ effects ----- */

/* CRT scanlines */
.crt {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2500;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 4px
  );
  mix-blend-mode: overlay;
}

/* Square surveillance cursor */
.cursor-tracker,
.cursor-ghost {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3000;
  width: 26px;
  height: 26px;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  will-change: left, top;
  transition: width 0.2s ease, height 0.2s ease;
}
.cursor-tracker { animation: cursor-spin 7s linear infinite; }
.cursor-ghost { animation: cursor-spin 7s linear infinite reverse; z-index: 2999; opacity: 0.22; }
@keyframes cursor-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.cursor-tracker::after,
.cursor-ghost::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
}
.cursor-tracker.hover { width: 54px; height: 54px; }
.cursor-tracker .tick {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 2px solid var(--accent);
}
.cursor-tracker .tick.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.cursor-tracker .tick.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.cursor-tracker .tick.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.cursor-tracker .tick.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }
@media (hover: none) {
  .cursor-tracker,
  .cursor-ghost { display: none; }
}

/* Preloader boot sequence */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-box {
  width: min(340px, 80vw);
  font-family: "JetBrains Mono", monospace;
}
.preloader-text {
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: caret-blink 1.1s steps(1) infinite;
}
.preloader-bar {
  height: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.12s linear;
  box-shadow: 0 0 12px rgba(217, 4, 41, 0.55);
}

/* Scroll progress + back to top */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  z-index: 3500;
  transition: width 0.15s ease;
}
.back-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, border-color 0.2s;
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover {
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(217, 4, 41, 0.3);
}

/* ------------- nav bits --------------------- */
.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* Theme toggle + hamburger (non-layout bits) */
.theme-toggle {
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(217, 4, 41, 0.2), 0 0 12px rgba(217, 4, 41, 0.18);
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  z-index: 140;
}
.lang-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 64px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.32rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.lang-trigger:hover,
.lang-dropdown.open .lang-trigger {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px rgba(217, 4, 41, 0.25), 0 0 12px rgba(217, 4, 41, 0.15);
}
.lang-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.lang-dropdown.open .lang-chevron {
  transform: rotate(225deg) translateY(-2px);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  border-radius: 5px;
  text-align: start;
  transition: all 0.15s;
}
.lang-opt:hover {
  background: rgba(217, 4, 41, 0.12);
  color: var(--text);
}
.lang-opt.active {
  color: var(--accent);
}
.lang-opt .lang-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0;
  opacity: 0.6;
  margin-inline-start: auto;
}

/* ------------- hero effects ----------------- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/hero-bg.webp") no-repeat center center / cover;
  z-index: -2;
  transform-origin: center center;
  will-change: transform;
  animation: bg-breathe 14s ease-in-out infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 4px,
    rgba(0, 0, 0, 0.15) 5px,
    transparent 6px
  );
  pointer-events: none;
}
@keyframes bg-breathe {
  0%, 100% { transform: scale(1.05); }
  50% { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to right,
    rgba(8, 8, 10, 0.92) 0%,
    rgba(8, 8, 10, 0.55) 30%,
    rgba(8, 8, 10, 0.35) 50%,
    rgba(8, 8, 10, 0.55) 70%,
    rgba(8, 8, 10, 0.92) 100%
  );
}
.hero-scanbar {
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 0;
  background: linear-gradient(to bottom, transparent, rgba(217, 4, 41, 0.08), transparent);
  pointer-events: none;
  animation: scanbar-sweep 9s ease-in-out infinite;
}
@keyframes scanbar-sweep {
  0%, 100% { top: -15%; opacity: 0; }
  12%, 88% { opacity: 1; }
  50% { top: 108%; }
}
.rec-dot {
  width: 9px;
  height: 9px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}
.typing-caret {
  color: #D90429;
  animation: caret-blink 0.9s steps(1) infinite;
  font-weight: 400;
}
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.scroll-hint {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ------------- pills / chips ----------------- */
.pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.pill-accent {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ------------- skills pies ------------------- */
.pie {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-elev) 0);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(217, 4, 41, 0.28);
  transition: transform 0.3s ease;
}
.pie-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  display: grid;
  place-items: center;
}
.pie-val {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}
.pie:hover { transform: scale(1.08); }
@media (max-width: 460px) {
  .pie { width: 76px; height: 76px; }
  .pie-inner { width: 56px; height: 56px; }
}

/* ------------- tools marquee ----------------- */
.ticker-track {
  display: inline-flex;
  width: max-content;
  animation: marquee 22s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
.ticker-track span {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding-right: 0.5rem;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------- glow cards -------------------- */
.glow-card {
  position: relative;
  overflow: hidden;
}
.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    130px circle at var(--mx, 25%) var(--my, 25%),
    rgba(217, 4, 41, 0.65),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.glow-card::after {
  content: "";
  position: absolute;
  top: -15%;
  bottom: -15%;
  left: -85%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.glow-card:hover::before { opacity: 1; }
.glow-card:hover::after { animation: glint 0.8s ease forwards; }
@keyframes glint {
  0% { left: -85%; opacity: 0; }
  15% { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* ------------- work cards + HUD -------------- */
.gcard {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.gcard img,
.gcard video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gcard:hover .gcard-overlay { opacity: 1; }
.gcard-overlay h3 { color: #fff; font-size: 1.05rem; }
.gcard-overlay .gcard-type {
  color: #D90429;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
}
.gcard-overlay .gcard-meta {
  margin-top: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--glow);
}
.card-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.hud-tick {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(217, 4, 41, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hud-tick.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.hud-tick.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.hud-tick.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.hud-tick.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.hud-time {
  position: absolute;
  top: 10px;
  right: 30px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-shadow: 0 1px 3px #000;
}
.gcard:hover .hud-tick,
.gcard:hover .hud-time { opacity: 1; }

/* ------------- gallery layout ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.masonry-gallery {
  columns: 3;
  column-gap: 1.5rem;
}
.masonry-gallery .gcard {
  break-inside: avoid;
  margin: 0 0 1.5rem;
}
@media (max-width: 900px) {
  .masonry-gallery { columns: 2; }
}
@media (max-width: 560px) {
  .masonry-gallery { columns: 1; }
}

/* ------------- filter chips ------------------ */
.filter-btn {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--text-muted);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: "JetBrains Mono", monospace;
  box-shadow: inset 0 0 0 1px rgba(217, 4, 41, 0.12), 0 0 10px rgba(217, 4, 41, 0.12);
}
.filter-btn:hover {
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(217, 4, 41, 0.22), 0 0 14px rgba(217, 4, 41, 0.2);
}
.filter-btn.active {
  background: rgba(217, 4, 41, 0.2);
  color: #fff;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(217, 4, 41, 0.28), 0 0 16px rgba(217, 4, 41, 0.28);
}

/* Frosted action button (no solid fills) */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(217, 4, 41, 0.12), 0 0 12px rgba(217, 4, 41, 0.14);
  transition: all 0.2s;
}
.btn-glass:hover {
  background: rgba(217, 4, 41, 0.18);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(217, 4, 41, 0.25), 0 0 18px rgba(217, 4, 41, 0.3);
}
.btn-glass.ghost {
  background: rgba(139, 139, 158, 0.08);
  border-color: var(--border);
  box-shadow: inset 0 0 0 1px rgba(139, 139, 158, 0.1), 0 0 10px rgba(139, 139, 158, 0.12);
}
.btn-glass.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(217, 4, 41, 0.08);
}
.btn-glass.on-hero {
  color: #fff;
  border-color: rgba(217, 4, 41, 0.55);
  background: rgba(217, 4, 41, 0.14);
}
.btn-glass.on-hero.ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.btn-glass.on-hero.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------- lightbox ---------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-media {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(217, 4, 41, 0.25);
}
.lightbox-media img {
  width: auto;
  max-width: 90vw;
  max-height: 85vh;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(217, 4, 41, 0.25);
}
.lightbox-media iframe {
  width: min(90vw, 1100px);
  height: 80vh;
  border: 0;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 6;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8, 8, 10, 0.65);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-nav:hover {
  border-color: var(--accent);
  background: rgba(8, 8, 10, 0.9);
}
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(8, 8, 10, 0.6);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  z-index: 5;
}
.lightbox-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.95rem;
  background: rgba(8, 8, 10, 0.6);
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  z-index: 5;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 520px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ------------- reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------- nav links + mobile drawer ---------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  font-family: "JetBrains Mono", monospace;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.hamburger {
  display: none;
}
@media (max-width: 820px) {
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    width: 38px;
    height: 38px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 240px;
    background: var(--bg-elev);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    gap: 2rem;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.2rem;
  }
}

/* ------------- section eyebrow ---------------- */
.section-eyebrow {
  font-family: "JetBrains Mono", monospace;
}
.section-eyebrow::before {
  content: "// ";
  color: var(--glow);
}

/* ------------- gallery search + empty state ---------- */
.search-input {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(217, 4, 41, 0.3), 0 0 14px rgba(217, 4, 41, 0.15);
}
.gallery-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

/* ------------- misc shared ---------------- */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 1.6s infinite;
}
.hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-scanbar,
  .preloader-text,
  .cursor-tracker,
  .cursor-ghost,
  .status-dot,
  .rec-dot {
    animation: none;
  }
  .scroll-hint { animation: none; }
  .ticker-track,
  .ticker-track span {
    animation: none;
    white-space: normal;
  }
  .ticker { overflow-x: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .card-hud .hud-tick,
  .card-hud .hud-time,
  .glow-card::before {
    opacity: 1;
    transition: none;
  }
  .glow-card:hover::after {
    animation: none;
    opacity: 0;
  }
}