/* ============================================================
   LEVR Flywheel — Card Grid + Search Bar (Phase 1)
   Self-contained core styles. Signature gradient-fade, blur
   scrim, hover-video, 9-state matrix, width-driven grid.
   All values map to card-design-spec.md tokens.
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  /* Brand blue (SGA #2D6FB7 — HSL 210/60/45, under 80% sat cap) */
  --blue-50:  #EEF4FB;
  --blue-100: #D9E7F5;
  --blue-200: #AECBEA;
  --blue-300: #7FAADD;
  --blue-400: #5189CB;
  --blue-500: #2D6FB7;
  --blue-600: #245C9B;
  --blue-700: #1C4A7E;
  --focus-ring: rgba(45,111,183,0.18);

  /* Neutrals — single cool/slate family */
  --ink-950: #0E1726;
  --ink-900: #152033;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --ink-300: #CBD5E1;
  --ink-200: #E3E8EF;
  --ink-100: #EEF1F5;
  --ink-50:  #F6F8FA;
  --surface: #FFFFFF;
  --page-bg: #EEF1F4;

  /* Semantic */
  --success: #2E9A6B;
  --error:   #C2463C;
  --warn:    #B7791F;

  /* Radii — varied by context */
  --radius-card: 24px;
  --radius-image: 16px;
  --radius-button: 12px;
  --radius-pill: 9999px;
  --radius-badge: 8px;
  --radius-search: 18px;

  /* Shadows — soft, layered, blue-tinted (#102A48) */
  --shadow-card-rest:  0 1px 2px rgba(16,42,72,.04), 0 6px 20px rgba(16,42,72,.06);
  --shadow-card-hover: 0 2px 6px rgba(16,42,72,.06), 0 18px 44px rgba(16,42,72,.14);
  --shadow-pill:       0 1px 2px rgba(16,42,72,.10), 0 2px 8px rgba(16,42,72,.08);
  --shadow-search:     0 1px 2px rgba(16,42,72,.04), 0 4px 18px rgba(16,42,72,.07);
  --shadow-badge:      0 1px 3px rgba(16,42,72,.12);

  /* Motion tokens */
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;
  --dur-video: 450ms;
  --dur-rise: 470ms;                 /* gentle hover rise + slow zoom (change-brief-2 #3) */
  --ease-smooth: cubic-bezier(.4,0,.2,1);
  --ease-out-soft: cubic-bezier(.16,1,.3,1);
  --ease-press: cubic-bezier(.2,0,0,1);

  /* Type */
  --font-ui: "Geist", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: var(--page-bg);
  color: var(--ink-700);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-shell { max-width: 2100px; margin-inline: auto; }
/* Keep the header/search aligned to the (now wider) grid edges */
@media (min-width: 1024px) {
  .site-header { padding-left: 40px; padding-right: 40px; }
  .searchbar-row { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1600px) {
  .site-header { padding-left: 48px; padding-right: 48px; }
  .searchbar-row { padding-left: 48px; padding-right: 48px; }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 24px 8px;
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.wordmark__logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-900);
}
.wordmark__dot { color: var(--blue-500); }
.site-header__context {
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 450;
  white-space: nowrap;
}
.site-header__context b { color: var(--ink-700); font-weight: 550; }

@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; row-gap: 4px; }
}

/* ============================================================
   SEARCH BAR  (spec §9)
   ============================================================ */
.searchbar-row { padding: 12px 24px 20px; }
.searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--radius-search);
  background: var(--surface);
  border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-search);
  transition: border-color var(--dur-base) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
  cursor: text;
}
.searchbar:hover { border-color: var(--ink-300); }
.searchbar:focus-within,
.searchbar.is-armed {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-search), 0 0 0 3px var(--focus-ring);
}
.searchbar__icon { flex: none; color: var(--ink-400); display: grid; place-items: center; }
.searchbar__input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-700);
  caret-color: var(--blue-500);
  min-width: 0;
}
.searchbar__input::placeholder { color: var(--ink-400); }
.kbd {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============================================================
   RESPONSIVE GRID  (spec §8)
   ============================================================ */
/* Column count follows viewport width: ~3 cols on a laptop window, ~4 mid,
   ~5 on a large display (change-brief-2 #4). auto-fill + a wide container cap
   let the grid reflow fluidly instead of pinning near 3. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
  max-width: 2100px;
  margin-inline: auto;
  padding: 24px;
}
@media (min-width: 1024px) { .card-grid { padding: 40px; } }
@media (min-width: 1600px) { .card-grid { padding: 48px; } }
@media (max-width: 360px)  { .card-grid { padding: 16px; } }

/* ============================================================
   CARD — shared base (single component, variant + modifiers)
   ============================================================ */
.card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card-rest);
  overflow: hidden;
  isolation: isolate;
  text-align: left;
  color: inherit;
  border: 0;
  padding: 0;
  transition: transform var(--dur-base) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft);
  will-change: transform;
}
/* hairline border via inset ring so it sits above clipped media */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--ink-200);
  pointer-events: none;
  z-index: 5;
}

/* Hover (all cards): the weighted move lives on the ASSET (panel / full-bleed
   image) — the card itself only deepens its shadow. (change-brief-2 #3) */
@media (hover: hover) {
  .card:hover {
    box-shadow: var(--shadow-card-hover);
  }
}
/* Active / pressed */
.card:active { transform: scale(.985); transition-duration: var(--dur-fast); }
.card:active { transition-timing-function: var(--ease-press); }

/* inner wrapper is layout-transparent so absolute media/footer resolve to .card */
.card__inner { display: contents; }

/* Whole-card click target (Card A) + focus-visible ring */
.card__stretch {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
}
.card__stretch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--blue-500), 0 0 0 5px var(--focus-ring);
}
.card .pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue-500), 0 0 0 7px var(--focus-ring);
  border-radius: var(--radius-pill);
}

/* ---- Media layer ---- */
.card__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.card__media img,
.card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(.98) contrast(.98);
  /* baseline over-scale gives cover-overflow room so the rise never
     reveals a gap at the clipped frame edge on hover */
  transform: scale(1.04);
  transform-origin: center;
  transition: transform var(--dur-rise) var(--ease-out-soft);
}
/* Full-bleed asset rises + slowly zooms within its clipped frame */
@media (hover: hover) {
  .card:hover .card__media img,
  .card:hover .card__media video { transform: translateY(-8px) scale(1.09); }
}

/* Poster + video stacking for has-video */
.card__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth);
}
.card.is-playing .card__video { opacity: 1; transition-duration: var(--dur-video); }

/* ---- Signature gradient fade (spec §3.1) ---- */
.card__fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 8% 108%,
      rgba(255,255,255,.95) 0%,
      rgba(255,255,255,.55) 30%,
      rgba(255,255,255,0) 60%),
    linear-gradient(180deg,
      rgba(255,255,255,0)   45%,
      rgba(255,255,255,.15) 55%,
      rgba(255,255,255,.55) 68%,
      rgba(255,255,255,.88) 80%,
      #FFFFFF               92%);
}

/* ============================================================
   TREATMENT 1 — LITERAL (full-bleed screenshot, text over fade)
   ============================================================ */
.card--literal { aspect-ratio: 4 / 5; }
.card--literal .card__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 24px 24px 28px;
}

/* ============================================================
   TREATMENT 2 — FLOATING PANEL on a per-asset wash
   (change-brief-2: level/straight panel — no tilt — floating on a
   muted, sophisticated "gallery mat" whose color derives from the
   asset's own dominant hue via the --wash custom property, set per
   card in app.js. Falls back to a refined neutral slate.)
   ============================================================ */
.card--floating {
  --wash: #AEB7C4;               /* refined neutral-slate fallback */
  aspect-ratio: 4 / 5;
  background: #FFFFFF;
}
/* Per-asset wash: muted tinted mat at top, dissolving to the light footer.
   Consistent weight across cards so the grid still reads as one system. */
.card__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(125% 85% at 76% -10%,
      color-mix(in srgb, var(--wash) 82%, #FFFFFF) 0%,
      color-mix(in srgb, var(--wash) 34%, #FFFFFF) 42%,
      rgba(255,255,255,0) 68%),
    linear-gradient(172deg,
      color-mix(in srgb, var(--wash) 90%, #FFFFFF) 0%,
      color-mix(in srgb, var(--wash) 66%, #FFFFFF) 22%,
      color-mix(in srgb, var(--wash) 34%, #FFFFFF) 46%,
      color-mix(in srgb, var(--wash) 12%, #FFFFFF) 62%,
      #FFFFFF 80%);
  pointer-events: none;
}
/* The screenshot rendered as a level (untilted) inset floating panel */
.card__panel {
  position: absolute;
  top: 8.5%;
  left: 10%;
  right: 10%;
  height: 50%;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transform-origin: center;
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 2px 6px rgba(16,42,72,.10),
    0 18px 40px rgba(16,42,72,.22);
  transition: transform var(--dur-rise) var(--ease-out-soft),
              box-shadow var(--dur-rise) var(--ease-out-soft);
}
/* crisp hairline on the panel edge */
.card__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(16,42,72,.08);
  pointer-events: none;
  z-index: 3;
}
.card__panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Hover: the level panel gently rises and slowly zooms in — one weighted
   move, no rotation (change-brief-2 #3). */
@media (hover: hover) {
  .card:hover .card__panel {
    transform: translateY(-8px) scale(1.04);
    box-shadow:
      0 1px 0 rgba(255,255,255,.7) inset,
      0 4px 12px rgba(16,42,72,.14),
      0 30px 60px rgba(16,42,72,.30);
  }
}
/* Floating footer sits on the light lower wash */
.card--floating .card__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 20px 24px 26px;
}

/* ============================================================
   TREATMENT 3 — METRIC (designed big-number hero, all SVG/CSS)
   A clean metric composition — progress ring + Geist-Mono number +
   play-family chips — on a gentle blue-50→surface tint. No screenshot.
   Same shell, footer and hover language (rise+zoom) as the other two.
   ============================================================ */
.card--metric { aspect-ratio: 4 / 5; }
.card--metric .card__inner {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset: 0;
}
/* Hero region — top ~55%, calm brand-tint field */
.card__metric {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 26px 20px 20px;
  background: linear-gradient(180deg, #EEF4FB 0%, #FFFFFF 62%);
}
/* the composition that gently rises + zooms on hover */
.metric-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform-origin: center;
  transition: transform var(--dur-rise) var(--ease-out-soft);
  will-change: transform;
}
@media (hover: hover) {
  .card:hover .metric-figure { transform: translateY(-8px) scale(1.03); }
}

/* Progress ring — SVG ~104px, 10px stroke, round caps */
.metric-ring { position: relative; width: 104px; height: 104px; }
.metric-ring svg { display: block; width: 104px; height: 104px; overflow: visible; }
.metric-ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
.ring-track { stroke: var(--ink-100); }
.ring-arc   { stroke: var(--blue-500); }
.ring-tip   { stroke: #F36F21; }          /* short orange accent tip (SGA ring style) */

/* Big number centered inside the ring — Geist Mono, tabular */
.metric-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.metric-unit {
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}
/* Play-family chips — one compact row, wraps to at most two lines */
.metric-families {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 96%;
  max-height: 50px;
  overflow: hidden;
  margin-top: 2px;
}
.metric-chip {
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink-600);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-badge);
  padding: 5px 9px;
  white-space: nowrap;
}
/* Footer sits in flow below the field, on the white surface */
.card__footer--metric {
  position: relative;
  z-index: 3;
  padding: 4px 24px 26px;
}

/* ============================================================
   TYPE — the 6 hierarchy levels (spec §2.6)
   ============================================================ */
.eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.card__title--display {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__title--b {
  margin: 0;
  font-size: 20px;
  line-height: 1.20;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
.card__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 450;
  color: var(--ink-500);
  max-width: 40ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card--b .card__subtitle { margin-top: 6px; }

/* Explore link (Card A) */
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  color: var(--ink-700);
  transition: color var(--dur-base) var(--ease-smooth);
}
.card__link .arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
@media (hover: hover) {
  .card:hover .card__link { color: var(--blue-600); }
  .card:hover .card__link .arrow { transform: translateX(4px); }
}

/* Meta row (Card B) */
.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--ink-600);
}
.card__meta .meta-item { display: inline-flex; align-items: center; gap: 6px; }
.card__meta .meta-item svg { color: var(--ink-400); flex: none; }
.card__meta .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Pill button (Card B) */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 16px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--ink-900);
  color: #FFFFFF;
  box-shadow: var(--shadow-pill);
  transition: background var(--dur-base) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-press);
}
.pill:hover { background: var(--blue-600); }
.pill:active { transform: scale(.98); }

/* ============================================================
   BADGE — has-video "Motion" (spec §6)
   ============================================================ */
.badge--video {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: var(--radius-pill);
  background: rgba(21,32,51,.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-badge);
}
.badge--video svg { flex: none; }

/* ============================================================
   9-STATE MATRIX — loading / empty / error (spec §7)
   ============================================================ */
/* Skeleton */
.skeleton { position: relative; overflow: hidden; }
.skel-block, .skel-bar {
  position: relative;
  background: var(--ink-100);
  overflow: hidden;
}
.skel-media { position: absolute; inset: 0; z-index: 0; background: var(--ink-100); }
.skel-bar { border-radius: 6px; }
.skel-title { height: 16px; width: 60%; margin-bottom: 10px; }
.skel-sub1  { height: 10px; width: 90%; margin-bottom: 8px; }
.skel-sub2  { height: 10px; width: 70%; }
.skeleton .skel-block::after,
.skeleton .skel-bar::after,
.skeleton .skel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.6) 50%, transparent 70%);
  animation: skel-shimmer 1.4s var(--ease-smooth) infinite;
}

@keyframes skel-shimmer { to { transform: translateX(100%); } }

/* Empty / error media field */
.media-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink-50);
  text-align: center;
  padding: 16px;
}
.media-fallback svg { color: var(--ink-300); }
.media-fallback.is-error svg { color: var(--error); }
.media-fallback .fallback-text { font-size: 13px; color: var(--ink-400); }
.media-fallback .fallback-retry { font-size: 13px; font-weight: 500; color: var(--blue-600); margin-top: 2px; }

/* ============================================================
   GRID LOAD-IN — staggered reveal (spec §2.7 / §8)
   ============================================================ */
.card-grid.reveal .card {
  opacity: 0;
  transform: translateY(12px);
}
.card-grid.reveal.is-in .card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms var(--ease-out-soft), transform 420ms var(--ease-out-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ============================================================
   COMMAND MODAL (stub — spec §9)
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 20px 20px;
  background: rgba(16,42,72,.35);
}
.modal {
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--ink-200);
  box-shadow: 0 8px 24px rgba(16,42,72,.12), 0 30px 60px rgba(16,42,72,.24);
  overflow: hidden;
}
.modal__search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ink-100);
}
.modal__search svg { color: var(--ink-400); flex: none; }
.modal__search input {
  flex: 1;
  border: 0; outline: none; background: transparent;
  font-family: inherit; font-size: 16px; color: var(--ink-700);
  caret-color: var(--blue-500);
}
.modal__search input::placeholder { color: var(--ink-400); }
.modal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px 52px;
  text-align: center;
}
.modal__empty-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-image);
  background: var(--blue-50);
  color: var(--blue-500);
}
.modal__empty-title { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.modal__empty-sub { font-size: 13px; color: var(--ink-500); max-width: 34ch; }
.modal__foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--ink-100);
  font-size: 12px; color: var(--ink-500);
}
.modal__foot .kbd { font-size: 11px; }

/* Modal enter transition (Alpine x-transition-driven classes) */
.modal-enter-active, .modal-leave-active { transition: opacity var(--dur-base) var(--ease-out-soft); }
.modal-scale-active { transition: transform var(--dur-base) var(--ease-out-soft), opacity var(--dur-base) var(--ease-out-soft); }

/* ============================================================
   REDUCED MOTION — kill all motion (spec §2.7)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .card:hover .card__media img,
  .card:hover .card__media video { transform: scale(1.04); }
  .card:hover .card__panel { transform: none; }
  .card:hover .metric-figure { transform: none; }
  .card-grid.reveal .card { opacity: 1; transform: none; }
  .card__video { display: none; }
}

/* Cloak for Alpine (prevent flash of unstyled template) */
[x-cloak] { display: none !important; }
