/* =================================================================
   DaggyMakesGames — Dark Arcade / Neon stylesheet
   Sections:
     1. Tokens (CSS variables)
     2. Reset & base
     3. Background FX
     4. Layout helpers
     5. Buttons
     6. Nav
     7. Hero
     8. Stats
     9. Section headings
    10. Featured
    11. Filters
    12. Grid & cards
    13. About
    14. Footer
    15. Modal
    16. Animations
    17. Responsive
    18. Reduced motion
   ================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --bg:          #0a0a14;
  --bg-deep:     #05050b;
  --surface:     #12121f;
  --surface-alt: #1a1a2e;
  --primary:     #00f0ff; /* cyan  */
  --secondary:   #ff2d95; /* magenta */
  --accent:      #a855f7; /* purple */
  --highlight:   #fae600; /* arcade yellow */
  --text:        #eaeaf6;
  --text-muted:  #9595b8;
  --border:      rgba(0, 240, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.08);
  --success:     #2dffa3;
  --warning:     #ffb84d;

  --glow-primary:   0 0 18px rgba(0, 240, 255, 0.55);
  --glow-secondary: 0 0 18px rgba(255, 45, 149, 0.55);

  --font-display: "Orbitron", "Trebuchet MS", sans-serif;
  --font-body:    "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "Share Tech Mono", "Courier New", monospace;

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.45s;

  /* per-card accent, overridden inline */
  --card-accent: var(--primary);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 500;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
}

strong { color: #fff; font-weight: 700; }

::selection { background: var(--secondary); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--primary); color: #00121a;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-family: var(--font-mono); font-weight: 700;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

/* visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. BACKGROUND FX ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(168, 85, 247, 0.16), transparent 60%),
    radial-gradient(1000px 700px at 0% 10%, rgba(0, 240, 255, 0.12), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 80%);
  animation: gridScroll 24s linear infinite;
}
.bg-glow {
  position: absolute; width: 50vw; height: 50vw;
  max-width: 720px; max-height: 720px;
  border-radius: 50%; filter: blur(120px); opacity: 0.5;
}
.bg-glow--1 { top: -10%; right: -8%; background: rgba(255, 45, 149, 0.35); animation: floatGlow 18s ease-in-out infinite; }
.bg-glow--2 { bottom: -15%; left: -10%; background: rgba(0, 240, 255, 0.30); animation: floatGlow 22s ease-in-out infinite reverse; }
.bg-scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.18) 3px, rgba(0,0,0,0) 4px);
}

/* ---------- 4. LAYOUT ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

section { position: relative; }
/* offset anchor jumps so targets aren't hidden under the sticky nav */
:where(#games, #about, #contact, #featured, #top) { scroll-margin-top: 84px; }
.featured, .games, .about { padding-block: clamp(3.5rem, 7vw, 6rem); }

/* real cover image fallback */
.cover-img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.85em 1.6em; border-radius: var(--radius-sm);
  border: 1px solid transparent; position: relative;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              background var(--speed) var(--ease), color var(--speed) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(120deg, var(--primary), #29f0c4);
  color: #00131a; box-shadow: var(--glow-primary);
}
.btn--primary:hover { box-shadow: 0 0 28px rgba(0, 240, 255, 0.85); }

.btn--ghost {
  background: rgba(255,255,255,0.02); color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--primary); color: var(--primary);
  box-shadow: var(--glow-primary);
}

/* ---------- 6. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 8, 18, 0.72);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 900; font-size: 1.15rem;
  letter-spacing: 0.04em; color: var(--text);
}
.brand__icon { color: var(--primary); filter: drop-shadow(0 0 6px rgba(0,240,255,0.7)); display: inline-flex; }
.brand__accent { color: var(--secondary); }
.brand:hover .brand__icon { color: var(--secondary); }

.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links > a:not(.btn) {
  font-weight: 600; font-size: 1.02rem; letter-spacing: 0.03em;
  position: relative; padding: 4px 2px; color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--primary); box-shadow: var(--glow-primary);
  transition: width 0.3s var(--ease);
}
.nav__links > a:not(.btn):hover,
.nav__links > a.is-active { color: var(--text); }
.nav__links > a:not(.btn):hover::after,
.nav__links > a.is-active::after { width: 100%; }
.nav__cta { padding: 0.55em 1.1em; font-size: 0.8rem; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 9px; width: 42px; height: 40px;
}
.nav__toggle-bar { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. HERO ---------- */
.hero {
  min-height: clamp(560px, 88vh, 860px);
  display: flex; align-items: center;
  padding-block: 4rem 3rem;
}
.hero__inner { max-width: 880px; }
.hero__eyebrow {
  font-family: var(--font-mono); color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.85rem;
  margin: 0 0 1.2rem;
}
.blink { animation: blink 1.1s steps(1) infinite; }

.hero__title { font-weight: 900; margin-bottom: 1.4rem; }
.hero__title-line {
  display: block;
  font-size: clamp(2rem, 8.5vw, 6.2rem);
  color: #fff;
  text-shadow: 0 0 8px rgba(0,240,255,0.35), 0 0 24px rgba(0,240,255,0.25);
}
.hero__title-line--accent {
  background: linear-gradient(100deg, var(--primary), var(--secondary) 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 16px rgba(255, 45, 149, 0.45));
}
.hero__lede {
  max-width: 56ch; color: var(--text-muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 0 0 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--primary), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* ---------- 8. STATS ---------- */
.stats { border-block: 1px solid var(--border-soft); background: rgba(10,10,22,0.5); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; padding-block: 2.2rem; text-align: center;
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat__num {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--primary);
  text-shadow: var(--glow-primary);
}
.stat:nth-child(2) .stat__num { color: var(--secondary); text-shadow: var(--glow-secondary); }
.stat:nth-child(3) .stat__num { color: var(--accent); text-shadow: 0 0 18px rgba(168,85,247,0.5); }
.stat:nth-child(4) .stat__num { color: var(--highlight); text-shadow: 0 0 18px rgba(250,230,0,0.4); }
.stat__label { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- 9. SECTION HEADINGS ---------- */
.section-heading {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 700;
  margin-bottom: 1.8rem; color: #fff; display: flex; flex-direction: column; gap: 0.35rem;
}
.section-heading__kicker {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--secondary);
}
.featured__count { color: var(--text-muted); font-size: 0.5em; font-weight: 500; margin-left: 0.4em; }

/* ---------- 10. FEATURED ---------- */
.featured__list { display: grid; gap: 1.6rem; }
.feature-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  position: relative; transition: box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 35%, transparent);
}
.feature-card:hover { box-shadow: 0 0 40px color-mix(in srgb, var(--card-accent) 30%, transparent); transform: translateY(-3px); }
.feature-card__art { position: relative; min-height: 260px; }
.feature-card__art svg { width: 100%; height: 100%; object-fit: cover; }
.feature-card__body { padding: clamp(1.4rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 0.9rem; }
.feature-card__badge { align-self: flex-start; }
.feature-card__title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: #fff; }
.feature-card__tagline { color: var(--card-accent); font-size: 1.15rem; font-weight: 600; }
.feature-card__desc { color: var(--text-muted); }
.feature-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.feature-card__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }

/* ---------- 11. FILTERS ---------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.filters__tags { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip-btn {
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border-soft); border-radius: 100px;
  padding: 0.5em 1.05em; transition: all 0.25s var(--ease);
}
.chip-btn:hover { color: var(--text); border-color: var(--primary); }
.chip-btn[aria-pressed="true"] {
  color: #00131a; background: var(--primary); border-color: var(--primary);
  box-shadow: var(--glow-primary); font-weight: 700;
}
.filters__search {
  position: relative; display: flex; align-items: center;
  min-width: 220px; flex: 1 1 220px; max-width: 320px;
}
.filters__search-icon { position: absolute; left: 14px; color: var(--text-muted); font-size: 1.1rem; pointer-events: none; }
.filters__search input {
  width: 100%; padding: 0.7em 1em 0.7em 2.4em;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-soft); border-radius: 100px;
  font-size: 0.98rem; transition: border-color 0.25s, box-shadow 0.25s;
}
.filters__search input::placeholder { color: var(--text-muted); }
.filters__search input:focus { outline: none; border-color: var(--primary); box-shadow: var(--glow-primary); }

.games__status { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin: -0.6rem 0 1.4rem; letter-spacing: 0.05em; }
.games__empty { text-align: center; color: var(--text-muted); font-size: 1.1rem; padding: 3rem 0; }

/* ---------- 12. GRID & CARDS ---------- */
.grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  --d: 0ms;
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden; position: relative;
  padding: 0; width: 100%; color: inherit;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 60%, transparent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 26px color-mix(in srgb, var(--card-accent) 35%, transparent);
}
.card__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card__art svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.card:hover .card__art svg { transform: scale(1.06); }
.card__shine {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--card-accent) 22%, transparent) 50%, transparent 70%);
  transition: opacity 0.4s var(--ease), transform 0.7s var(--ease);
  transform: translateX(-60%);
}
.card:hover .card__shine { opacity: 1; transform: translateX(60%); }

.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; }
.card__title { font-size: 1.25rem; font-weight: 700; color: #fff; }
.card__tagline { color: var(--text-muted); font-size: 0.98rem; flex: 1; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em;
  color: var(--card-accent); border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  background: color-mix(in srgb, var(--card-accent) 10%, transparent);
  padding: 0.25em 0.7em; border-radius: 100px; text-transform: uppercase;
}
.card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding-top: 0.4rem; }
.card__engine { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.05em; }
.card__cta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--card-accent); font-weight: 700; letter-spacing: 0.05em; }

/* status badge */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 100px;
  border: 1px solid currentColor; white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge--released { color: var(--success); }
.badge--in-development { color: var(--primary); }
.badge--prototype { color: var(--highlight); }
.badge--on-hold { color: var(--warning); }

/* ---------- 13. ABOUT ---------- */
.about__inner { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__art { display: flex; justify-content: center; }
.about__avatar {
  width: 220px; height: 220px; border-radius: 24px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 6rem; color: #00131a;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 50px rgba(255,45,149,0.4), inset 0 0 30px rgba(255,255,255,0.2);
  position: relative; overflow: hidden;
}
.about__photo {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.about__avatar::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(transparent 0 3px, rgba(0,0,0,0.12) 3px 4px);
}
.about__body p { color: var(--text-muted); margin: 0 0 1rem; max-width: 60ch; }
.about__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; padding: 0; margin: 1.4rem 0 0; }
.about__chips li {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-soft);
  padding: 0.5em 0.9em; border-radius: 10px;
}

/* ---------- 14. FOOTER ---------- */
.footer { border-top: 1px solid var(--border-soft); background: rgba(7,7,16,0.7); padding-top: clamp(3rem, 6vw, 5rem); }
.footer__cta { max-width: 640px; }
.footer__cta p { color: var(--text-muted); margin: 0 0 1.6rem; }
.footer__socials { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.social {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.92rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-soft);
  padding: 0.7em 1.15em; border-radius: 10px; transition: all 0.25s var(--ease);
}
.social:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--glow-primary); transform: translateY(-2px); }
.social__icon { font-size: 1.05rem; }
.footer__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding: 1.6rem 0; border-top: 1px solid var(--border-soft);
}
.footer__logo { font-family: var(--font-display); font-weight: 900; letter-spacing: 0.04em; }
.footer__copy { color: var(--text-muted); font-size: 0.9rem; font-family: var(--font-mono); }

/* ---------- 15. MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(3,3,9,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.25s var(--ease); }
.modal__panel {
  position: relative; width: min(720px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--card-accent) 40%, var(--border));
  border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 50px color-mix(in srgb, var(--card-accent) 30%, transparent);
  animation: pop 0.35s var(--ease);
}
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(0,0,0,0.45); border: 1px solid var(--border-soft); color: var(--text);
  font-size: 1.1rem; line-height: 1; transition: all 0.2s var(--ease);
}
.modal__close:hover { color: var(--secondary); border-color: var(--secondary); box-shadow: var(--glow-secondary); }
.modal__art { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.modal__art svg { width: 100%; height: 100%; }
.modal__main { padding: clamp(1.4rem, 4vw, 2.2rem); display: flex; flex-direction: column; gap: 1rem; }
.modal__title { font-size: clamp(1.7rem, 5vw, 2.4rem); color: #fff; }
.modal__tagline { color: var(--card-accent); font-size: 1.15rem; font-weight: 600; }
.modal__desc { color: var(--text-muted); }
.modal__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.8rem; margin-top: 0.4rem; }
.modal__fact { background: var(--surface-alt); border: 1px solid var(--border-soft); border-radius: 10px; padding: 0.7rem 0.9rem; }
.modal__fact dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.2rem; }
.modal__fact dd { margin: 0; font-weight: 700; color: #fff; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.6rem; }

/* lock background scroll when modal open */
body.modal-open { overflow: hidden; }

/* ---------- 16. ANIMATIONS ---------- */
@keyframes gridScroll { to { background-position: 0 46px, 46px 0; } }
@keyframes floatGlow { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4%, 6%) scale(1.12); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.97); } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* glitch hover on hero title */
.glitch { position: relative; }
.glitch:hover::before, .glitch:hover::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  background: var(--bg); clip-path: inset(0 0 0 0);
  -webkit-text-fill-color: currentColor; /* override gradient-clip transparency on accent line */
}
.glitch:hover::before { color: var(--secondary); transform: translate(-2px, 1px); animation: glitchTop 0.35s steps(2) infinite; }
.glitch:hover::after { color: var(--primary); transform: translate(2px, -1px); animation: glitchBot 0.35s steps(2) infinite; }
@keyframes glitchTop { 50% { clip-path: inset(0 0 60% 0); } }
@keyframes glitchBot { 50% { clip-path: inset(60% 0 0 0); } }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 860px) {
  .feature-card { grid-template-columns: 1fr; }
  /* Featured cover art is square (1254×1254); use a square box so it isn't
     cropped into a thin 16:9 strip on phones. Cap width so it stays tidy on
     larger handsets/tablets. */
  .feature-card__art { min-height: 0; aspect-ratio: 1 / 1; width: 100%; max-width: 420px; margin-inline: auto; }
  .about__inner { grid-template-columns: 1fr; text-align: center; }
  .about__art { order: -1; }
  .about__chips { justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,8,18,0.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 22px 1.4rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--border-soft); font-size: 1.1rem; color: var(--text); }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters__search { max-width: none; }
}

/* ---------- 18. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bg-grid, .bg-glow { animation: none; }
}

/* ---------- 19. LEGAL PAGES (terms / privacy) ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__inner { max-width: 820px; }
.legal__updated {
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.06em;
  color: var(--text-muted); margin: 0.4rem 0 2.5rem;
}
.legal__toc {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,0.02); padding: 1.2rem 1.5rem; margin-bottom: 2.8rem;
}
.legal__toc-title {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--secondary); margin: 0 0 0.7rem;
}
.legal__toc ol { margin: 0; padding-left: 1.3rem; columns: 2; gap: 1.5rem; }
.legal__toc a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.legal__toc a:hover { color: var(--primary); }

.legal h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem); color: #fff; margin: 2.6rem 0 0.9rem;
  scroll-margin-top: 90px;
}
.legal h2 .legal__num { color: var(--primary); font-size: 0.8em; margin-right: 0.5em; }
.legal h3 { font-size: 1.1rem; color: var(--text); margin: 1.6rem 0 0.6rem; }
.legal p, .legal li { color: var(--text); }
.legal p { margin: 0 0 1rem; }
.legal ul { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a:not(.btn) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal a:not(.btn):hover { color: var(--secondary); }
.legal strong { color: #fff; }

/* placeholders the studio still needs to fill in — visually flagged */
.legal mark {
  background: rgba(250, 230, 0, 0.14); color: var(--highlight);
  border: 1px dashed rgba(250, 230, 0, 0.5); border-radius: 4px;
  padding: 0.05em 0.4em; font-family: var(--font-mono); font-size: 0.92em;
}

.legal__contact {
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--radius); background: rgba(0,240,255,0.04);
  padding: 1.3rem 1.6rem; margin: 2.5rem 0 1rem;
}
.legal__back { margin-top: 3rem; }

.legal__table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.97rem; }
.legal__table th, .legal__table td {
  text-align: left; padding: 0.7rem 0.9rem; border: 1px solid var(--border-soft); vertical-align: top;
}
.legal__table th { color: var(--primary); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }

@media (max-width: 560px) {
  .legal__toc ol { columns: 1; }
}

/* footer legal links */
.footer__copy a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer__copy a:hover { color: var(--primary); }
