/* ==========================================================================
   HyperHub — stylesheet
   by HyperStudio Games

   Token system — derived from the HyperStudio Games / HyperHub logo
   (magenta flame + light-green flame, white "H")
   -------------
   Color:
     --void        #150A17  page background (near-black, warm plum undertone)
     --void-2      #1F1220  card / surface background
     --void-3      #2A182B  elevated surface, hover state
     --volt        #C92A96  primary accent — logo magenta ("games")
     --volt-dim    #96206E  primary accent, pressed/dim
     --pulse       #FF5CC8  secondary accent — brighter pink tint of the logo magenta ("experiments" / featured)
     --spark       #9BD037  tertiary accent — logo light green ("apps" / new / success)
     --mist        #E9DDE6  body text on dark
     --mist-dim    #A692A0  muted text on dark
     --paper       #FDF9FB  near-white, used on filled accent surfaces
     --line        rgba(255,255,255,.08) hairline borders

   Type:
     display  "Unbounded"      — headings, wordmark, big numbers
     body     "Inter"          — paragraphs, UI copy
     mono     "JetBrains Mono" — tags, labels, version numbers, eyebrows

   Layout:
     Hero = animated perspective grid tunnel behind the HyperHub wordmark,
     like an arcade cabinet attract screen.
     Sections = horizontal "cartridge shelves" (scrollable rows of cards).
     Cards = cartridge silhouette, a colored top edge encodes project type.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;700;900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --void: #150a17;
  --void-2: #1f1220;
  --void-3: #2a182b;
  --volt: #c92a96;
  --volt-dim: #96206e;
  --pulse: #ff5cc8;
  --spark: #9bd037;
  --spark-dim: #749f26;
  --mist: #e9dde6;
  --mist-dim: #a692a0;
  --paper: #fdf9fb;
  --line: rgba(255, 255, 255, 0.08);

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-card: 18px;
  --radius-sm: 10px;
  --shadow-lift: 0 20px 45px -20px rgba(201, 42, 150, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--mist);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--spark);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 31, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--paper);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--mist-dim);
  text-transform: uppercase;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: 0.9rem;
  color: var(--mist-dim);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); }

.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--mist-dim);
  font-size: 0.85rem;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.search-trigger:hover { border-color: var(--volt); color: var(--paper); }

/* ==========================================================================
   Hero — hyperspace grid tunnel
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-tunnel {
  position: absolute;
  inset: 0;
  perspective: 400px;
  perspective-origin: 50% 42%;
  z-index: 0;
}
.hero-tunnel::before,
.hero-tunnel::after { content: ''; position: absolute; inset: 0; }

/* the moving grid plane */
.hero-grid {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -10%;
  height: 160%;
  background-image:
    linear-gradient(to right, rgba(155, 208, 55, 0.28) 1px, transparent 1px),
    linear-gradient(to top, rgba(155, 208, 55, 0.28) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(78deg);
  transform-origin: bottom center;
  animation: gridDrift 6s linear infinite;
  -webkit-mask-image: linear-gradient(to top, black 0%, black 35%, transparent 85%);
          mask-image: linear-gradient(to top, black 0%, black 35%, transparent 85%);
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 0 64px; }
}

.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 35% 40%, rgba(155, 208, 55, 0.22), transparent 55%),
    radial-gradient(circle at 65% 60%, rgba(201, 42, 150, 0.22), transparent 55%);
  filter: blur(10px);
  z-index: 0;
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  z-index: 1;
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 30%, var(--void) 88%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding-top: 3rem;
}

.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 55%, var(--spark) 150%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.6em 0 0;
  text-shadow: 0 0 50px rgba(155, 208, 55, 0.25);
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--spark);
  margin-top: 1rem;
  text-transform: uppercase;
}

.hero-blurb {
  max-width: 560px;
  margin: 1.5rem auto 0;
  color: var(--mist-dim);
  font-size: 1.02rem;
}

.hero-cta {
  margin-top: 2.25rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--spark-dim, var(--spark)), var(--volt));
  color: var(--paper);
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(155, 208, 55, 0.45); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--mist);
}
.btn-ghost:hover { border-color: var(--spark); color: var(--paper); transform: translateY(-2px); }

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 3.5rem;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--paper);
}
.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-dim);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--paper);
  margin-top: 0.35rem;
}
.section-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  text-align: center;
  color: var(--mist-dim);
  font-size: 0.92rem;
}

/* ==========================================================================
   Featured carousel
   ========================================================================== */
.featured {
  position: relative;
}
.featured-track {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--void-2);
  aspect-ratio: 21 / 9;
  min-height: 320px;
}
#featured-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.featured-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.featured-info {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  background: linear-gradient(100deg, var(--void-2) 45%, transparent 100%);
}
.featured-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spark);
}
.featured-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  color: var(--paper);
}
.featured-desc {
  color: var(--mist-dim);
  max-width: 46ch;
  font-size: 0.95rem;
}
.featured-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--mist-dim);
}
.featured-media {
  position: relative;
  overflow: hidden;
}
.featured-media img,
.featured-media .placeholder-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 8s var(--ease);
}
.featured-slide.is-active .featured-media img,
.featured-slide.is-active .featured-media .placeholder-art { transform: scale(1); }

.carousel-controls {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 10, 31, 0.6);
  border: 1px solid var(--line);
  color: var(--paper);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.carousel-arrow:hover { background: var(--volt); border-color: var(--volt); transform: scale(1.06); }

.carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: clamp(1.75rem, 4vw, 3.5rem);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.carousel-dot {
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.carousel-dot.is-active { background: var(--spark); width: 42px; }

/* ==========================================================================
   Filters + search
   ========================================================================== */
.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--void-2);
}
.search-field {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--mist-dim);
}
.search-field svg { flex-shrink: 0; }
.search-field input {
  flex: 1;
  background: none;
  border: none;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.search-field input::placeholder { color: var(--mist-dim); }
.search-field input:focus { outline: none; }

.filter-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--mist-dim);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--volt); color: var(--paper); }
.filter-chip.is-active {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--paper);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.results-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mist-dim);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Horizontal carousels (rows)
   ========================================================================== */
.row {
  position: relative;
}
.row-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0.35rem 0.1rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--volt-dim) transparent;
}
.row-track::-webkit-scrollbar { height: 8px; }
.row-track::-webkit-scrollbar-thumb { background: var(--volt-dim); border-radius: 8px; }
.row-track::-webkit-scrollbar-track { background: transparent; }
.row-track > * { scroll-snap-align: start; }

.row-nav { display: flex; gap: 0.5rem; }
.row-nav .carousel-arrow {
  position: static;
  width: 38px;
  height: 38px;
  background: var(--void-2);
}

/* ==========================================================================
   Cards — cartridge silhouette
   ========================================================================== */
.card {
  flex: 0 0 240px;
  width: 240px;
  background: var(--void-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.results-grid .card { flex: initial; width: 100%; }

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--volt);
  z-index: 2;
}
.card[data-type="app"]::before { background: var(--volt); }
.card[data-type="experiment"]::before { background: var(--pulse); }
.card[data-type="game"]::before { background: var(--spark); }

.card:hover, .card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--volt);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--void-3);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.card:hover .card-media img { transform: scale(1.08); }

.placeholder-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(155, 208, 55, 0.28), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(201, 42, 150, 0.22), transparent 55%),
    var(--void-3);
}
.placeholder-art span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.35);
}

.card-badges {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.badge-new { background: rgba(155, 208, 55, 0.18); color: var(--spark); border: 1px solid rgba(155, 208, 55, 0.4); }
.badge-featured { background: rgba(255, 92, 200, 0.18); color: var(--pulse); border: 1px solid rgba(255, 92, 200, 0.4); }

.card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--paper);
}
.card-desc {
  font-size: 0.83rem;
  color: var(--mist-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.4rem;
}
.card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.card-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--volt);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover .card-cta { opacity: 1; transform: translateX(0); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--paper);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mist-dim);
  text-align: right;
  line-height: 1.8;
}
.footer-meta .engine { color: var(--mist-dim); opacity: 0.6; }

/* ==========================================================================
   Project page
   ========================================================================== */
.project-hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.project-banner {
  aspect-ratio: 21 / 7;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.project-banner img,
.project-banner .placeholder-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--void) 5%, transparent 60%);
}
.project-header-content {
  position: relative;
  margin-top: -6rem;
  z-index: 2;
  display: flex;
  gap: 1.75rem;
  align-items: flex-end;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
}
.project-thumb {
  width: 132px;
  height: 132px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--void);
  box-shadow: var(--shadow-lift);
  flex-shrink: 0;
  background: var(--void-3);
}
.project-thumb img, .project-thumb .placeholder-art { width: 100%; height: 100%; object-fit: cover; }
.project-heading { flex: 1; min-width: 220px; }
.project-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  color: var(--paper);
}
.project-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--mist-dim);
  margin-top: 0.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.project-play {
  flex-shrink: 0;
}

.project-body {
  padding: 3rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
}
.project-desc { font-size: 1rem; color: var(--mist); max-width: 68ch; }
.project-desc h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 0.75rem;
}
.project-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.5rem; }

.project-meta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  background: var(--void-2);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.meta-row { display: flex; justify-content: space-between; font-size: 0.85rem; }
.meta-row .k { color: var(--mist-dim); }
.meta-row .v { color: var(--paper); font-family: var(--font-mono); font-size: 0.8rem; }

.project-notfound {
  padding: 6rem 0;
  text-align: center;
}
.project-notfound h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--paper);
}
.project-notfound p { color: var(--mist-dim); margin-top: 0.75rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .site-nav a:not(.search-trigger) { display: none; }
  .featured-slide { grid-template-columns: 1fr; }
  .featured-media { display: none; }
  .featured-track { aspect-ratio: auto; min-height: 340px; }
  .project-body { grid-template-columns: 1fr; }
  .project-header-content { margin-top: -3.5rem; }
}

@media (max-width: 560px) {
  .hero { min-height: 640px; }
  .card { flex-basis: 68vw; width: 68vw; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filter-group { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.25rem; }
  .footer-grid { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-meta { text-align: left; }
}

/* ==========================================================================
   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;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-grid { animation: none; }
}
