/* Rasa Voice Demos — booth gallery
 * Re-anchored to the real Rasa brand: bold heavy left-aligned Söhne type,
 * a purple + gold duotone (not monochrome purple), and the prismatic "blade"
 * artwork used as a real masthead element rather than a dimmed page scrim.
 * Dark theme. Industries are color-coded across the brand's blade spectrum so
 * a 21-item catalog scans as a designed set, not an identical card grid. */

/* ── Brand fonts (self-hosted Söhne + Söhne Mono) ───────────────── */
@font-face {
  font-family: "Sohne";
  src: url("/static/fonts/Sohne-Buch.otf") format("opentype"),
       local("Söhne Buch"), local("Sohne Buch");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sohne";
  src: url("/static/fonts/Sohne-Kraftig.otf") format("opentype"),
       local("Söhne Kräftig"), local("Sohne Kraftig");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sohne";
  src: url("/static/fonts/Sohne-Dreiviertelfett.otf") format("opentype"),
       local("Söhne Dreiviertelfett"), local("Sohne Dreiviertelfett");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sohne Mono";
  src: url("/static/fonts/SohneMono-Buch.otf") format("opentype"),
       local("Söhne Mono Buch"), local("Sohne Mono Buch");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sohne Mono";
  src: url("/static/fonts/SohneMono-Kraftig.otf") format("opentype"),
       local("Söhne Mono Kräftig"), local("Sohne Mono Kraftig");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Brand purple scale */
  --purple-300: #bca1f6;
  --purple-400: #9f78f3;
  --purple-500: #814ef1;
  --purple-700: #5a17ee;
  --purple-950: #300b83;

  /* Brand gold — the second brand color, sampled from the Rasa key art. */
  --gold-300: #f2cd7c;
  --gold-400: #e6ad45;
  --gold-500: #cf9022;

  /* Cool blue-grey neutrals */
  --gray-50:   #ffffff;
  --gray-400:  #e2e7f2;
  --gray-500:  #ced5e7;
  --gray-600:  #9da6be;
  --gray-700:  #6b7694;
  --gray-800:  #2c3951;
  --gray-900:  #252d40;
  --gray-950:  #222738;
  --gray-1000: #191d2b;

  /* Industry accents drawn from the blade spectrum (gold → purple → blue).
     `-accent` is the saturated tone (hover border, play-glyph fill);
     `-label` is a lighter tint that clears WCAG AA as small text on the panel. */
  --ind-retail:     var(--gold-400);
  --ind-healthcare: #34c6c0;  /* teal */
  --ind-banking:    var(--purple-400);
  --ind-telco:      #5b8cf0;  /* blue */
  --ind-travel:     #c072ec;  /* violet */

  --ind-retail-label:     var(--gold-300);   /* #f2cd7c */
  --ind-healthcare-label: #5fd6d0;
  --ind-banking-label:    var(--purple-300); /* #bca1f6 */
  --ind-telco-label:      #8fb3f6;
  --ind-travel-label:     #d6a4f2;

  /* Semantic — dark theme */
  --bg-canvas:  var(--gray-1000);
  --bg-panel:   var(--gray-900);
  --bg-muted:   var(--gray-950);
  --bg-overlay: rgba(20, 23, 34, 0.97);

  --bg-image: url("/static/img/bg.jpg");

  --fg-default: var(--gray-50);
  --fg-soft:    var(--gray-500);
  --fg-muted:   var(--gray-600);   /* min contrast-safe body-support tone */
  --fg-subtle:  var(--gray-700);   /* decorative only, never body text */

  --border-default: var(--gray-700);
  --border-subtle:  var(--gray-800);

  --accent-default:  var(--purple-400);
  --accent-strong:   var(--purple-500);

  /* Theme-swappable accent roles. Dark theme = gold (the CCW key-art accent);
     light theme overrides these to purple to match rasa.com (gold-on-white
     fails contrast). Every gold usage routes through one of these. */
  --accent-headline:   var(--gold-400);
  --accent-rule:       var(--gold-400);
  --accent-ring:       var(--gold-400);
  --accent-active-bg:  var(--gold-400);
  --accent-active-ink: #1a1305;

  /* Surfaces that must flip per theme. */
  --chip-bg: rgba(37, 45, 64, 0.5);

  /* Play-button gradient, after rasa.com's "Get a demo" button: a cyan→blue→
     purple sweep with fine vertical "blade" striping (the choppy texture).
     Dark-page variant drops the cyan and deepens so it doesn't glare on the
     dark cards; the light theme overrides this with the brighter web version. */
  --play-gradient:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.09) 0 2px, rgba(255,255,255,0) 2px 5px),
    linear-gradient(90deg, #3b6fe0 0%, #5a17ee 56%, #7b2ff2 100%);
  --play-glow: 0 4px 14px rgba(90, 23, 238, 0.45);

  /* Type */
  --font-body: "Sohne", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Sohne Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  10px;
  --radius-xl:  14px;

  --shadow-md: 0 6px 20px rgba(8, 10, 18, 0.35);
  --shadow-lg: 0 16px 44px rgba(8, 10, 18, 0.5);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* z-index scale */
  --z-float:  50;
  --z-modal:  100;
}

/* ══════════════ Light theme — matches rasa.com ══════════════
   White surfaces, near-black headlines, purple accent, warm aurora masthead.
   Applied via data-theme="light" on <html> (set from config.json). */
:root[data-theme="light"] {
  --bg-canvas:  #f5f4fa;   /* very light cool, so white cards separate */
  --bg-panel:   #ffffff;
  --bg-muted:   #eeecf6;

  --fg-default: #17141f;   /* near-black headline, like rasa.com */
  --fg-soft:    #3f3b4d;
  --fg-muted:   #625d73;   /* passes AA on white and on the canvas */
  --fg-subtle:  #8a8598;

  --border-default: #d8d4e6;
  --border-subtle:  #e8e5f1;

  --accent-default: var(--purple-700);

  /* Gold → purple for the light theme. */
  --accent-headline:   var(--purple-700);
  --accent-rule:       var(--purple-700);
  --accent-ring:       var(--purple-700);
  --accent-active-bg:  var(--purple-700);
  --accent-active-ink: #ffffff;

  --chip-bg: #ffffff;

  /* Industry label text darkened to clear AA on white panels
     (the light `-label` tints only work on the dark panel). */
  --ind-retail-label:     #8a5a00;
  --ind-healthcare-label: #0b6f6a;
  --ind-banking-label:    var(--purple-700);
  --ind-telco-label:      #1f5fd0;
  --ind-travel-label:     #8b2fb8;

  --shadow-md: 0 6px 20px rgba(60, 50, 110, 0.10);
  --shadow-lg: 0 16px 44px rgba(60, 50, 110, 0.16);

  /* Brighter web version of the button gradient (keeps the cyan). */
  --play-gradient:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.14) 0 2px, rgba(255,255,255,0) 2px 5px),
    linear-gradient(90deg, #22c1d6 0%, #3b82f6 45%, #5a17ee 100%);
  --play-glow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--fg-default);
  background: var(--bg-canvas);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A single high-contrast focus ring. */
.card:focus-visible,
.chip:focus-visible,
.link-card:focus-visible,
.screensaver-btn:focus-visible,
.modal-close:focus-visible,
.btn-clear:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 3px;
}

/* ══════════════ Masthead — the brand moment ══════════════
   The blade key art lives HERE at full vibrancy (not a dimmed page-wide
   scrim). A dark scrim reads strongest on the left, where the headline
   sits, and the art fades down into the solid canvas before the grid. */
.masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-canvas);
}

.masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--bg-image) top right / cover no-repeat;
}

.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Legibility scrim: darkest on the left (headline) but keeps enough weight
     across to the right column (subtitle/CTA), then fades into the canvas. */
  background:
    linear-gradient(90deg, rgba(15, 17, 26, 0.95) 0%, rgba(15, 17, 26, 0.76) 38%, rgba(15, 17, 26, 0.62) 66%, rgba(15, 17, 26, 0.72) 100%),
    linear-gradient(180deg, rgba(15, 17, 26, 0) 45%, rgba(25, 29, 43, 0.72) 84%, var(--bg-canvas) 100%);
}

/* Light theme: soft peach→lilac→purple aurora on white (rasa.com's hero look),
   replacing the dark blade art. A light veil keeps the black headline crisp. */
:root[data-theme="light"] .masthead::before {
  background:
    radial-gradient(60% 84% at 10% 2%, rgba(255, 158, 88, 0.82), transparent 58%),
    radial-gradient(54% 78% at 84% 12%, rgba(139, 104, 246, 0.72), transparent 60%),
    radial-gradient(66% 92% at 56% 100%, rgba(180, 150, 250, 0.7), transparent 64%),
    radial-gradient(54% 66% at 102% 58%, rgba(96, 156, 255, 0.55), transparent 62%),
    #ffffff;
}

:root[data-theme="light"] .masthead::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0.12) 74%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(245, 244, 250, 0.7) 86%, var(--bg-canvas) 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  gap: 20px;
}

.logo { height: 38px; width: auto; display: block; }

/* The logo asset is white artwork; render it near-black on the light theme so
   it reads on the aurora (matching rasa.com's dark wordmark). */
:root[data-theme="light"] .logo { filter: brightness(0) saturate(0); opacity: 0.88; }

.topbar-right { display: flex; align-items: center; gap: 18px; }

.event-badge { display: flex; align-items: baseline; gap: 10px; }

.event-name { font-weight: 600; font-size: 0.875rem; color: var(--fg-default); }

.event-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}

/* Two columns: the stacked headline on the left, the supporting copy in the
   right dead-zone of the blade art — this shortens the masthead so the grid
   rises into the first booth viewport. */
.masthead-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(36px, 4.5vw, 64px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}

.intro h1 {
  max-width: 13ch;         /* two words per line: "Voice Agent" / "Demo Videos" */
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.0;
  text-wrap: balance;
  color: var(--fg-default);
}

/* Supporting copy, pushed to the right and bottom-aligned to the headline so
   it fills the blade's open space and reads as one system. */
.intro-aside {
  justify-self: end;
  max-width: 38ch;
  padding-bottom: clamp(4px, 1vw, 14px);
}

@media (max-width: 820px) {
  .masthead-inner { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .intro-aside { justify-self: start; padding-bottom: 0; }
}

/* Accent on one word — the brand's signature duotone headline
   (gold in dark, purple in light). */
.intro h1 .accent { color: var(--accent-headline); }

.subtitle {
  margin-top: 0;
  color: var(--fg-soft);
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.45;
}

/* The walk-up instruction. A gold rule ties it to the brand key art, which
   underlines its headline the same way. */
.cta {
  margin-top: 26px;
  padding-top: 18px;
  position: relative;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--fg-default);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--accent-rule);
  border-radius: 2px;
}

/* ══════════════ Layout ══════════════ */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 72px;
}

/* ══════════════ Filters ══════════════ */
.filters {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: clamp(8px, 2vw, 20px) 0 22px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  margin-right: 6px;
  min-width: 68px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--border-default);
  background: var(--chip-bg);
  color: var(--fg-soft);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.chip:hover { background: var(--bg-panel); color: var(--fg-default); border-color: var(--gray-600); }

/* Active = accent fill (gold in dark, purple in light). It's the "on" signal;
   industry accents stay in the grid, so the two color systems never collide. */
.chip.active {
  background: var(--accent-active-bg);
  color: var(--accent-active-ink);
  border-color: transparent;
  font-weight: 600;
}

.chip.active:hover { background: var(--accent-active-bg); filter: brightness(1.08); }

/* Live count — mono numerals, the design-system readout signature. */
.result-count {
  margin: 0 0 22px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* ══════════════ Grid ══════════════ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  align-items: stretch;
}

@media (min-width: 1280px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .grid { grid-template-columns: 1fr; } }

/* Card — a solid panel keyed to its industry accent. The single industry
   signal is the colored label; hover lifts the border and play glyph to the
   same accent. No top-edge stripe, no glow, no gradient. */
.card {
  --card-accent: var(--purple-400);
  --card-label: var(--purple-300);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: var(--bg-panel);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out), transform 0.18s var(--ease-out);
  /* entrance (see keyframes); enhances an already-final layout */
  animation: card-in 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

.card[data-industry="retail"]     { --card-accent: var(--ind-retail);     --card-label: var(--ind-retail-label); }
.card[data-industry="healthcare"] { --card-accent: var(--ind-healthcare); --card-label: var(--ind-healthcare-label); }
.card[data-industry="banking"]    { --card-accent: var(--ind-banking);    --card-label: var(--ind-banking-label); }
.card[data-industry="telco"]      { --card-accent: var(--ind-telco);      --card-label: var(--ind-telco-label); }
.card[data-industry="travel"]     { --card-accent: var(--ind-travel);     --card-label: var(--ind-travel-label); }

.card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 60%, transparent);
  background: var(--bg-muted);
  transform: translateY(-4px);
}

/* Light theme: cards need a soft shadow to lift off the near-white canvas. */
:root[data-theme="light"] .card,
:root[data-theme="light"] .link-card { box-shadow: 0 1px 2px rgba(60, 50, 110, 0.05); }
:root[data-theme="light"] .card:hover,
:root[data-theme="light"] .link-card:hover { box-shadow: var(--shadow-md); }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}

/* Industry marker — the single industry signal: a colored uppercase label
   (contrast-safe label tint), not a boxed badge and no redundant dot/stripe. */
.card-industry {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-label);
  margin-bottom: 14px;
}

.card-title {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--fg-default);
  text-wrap: balance;
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--fg-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Feature tags as a quiet inline metadata line, dot-separated — no boxed
   chip repetition adding to grid monotony. */
.card-meta {
  margin-top: 16px;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--fg-muted);
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

/* Branded play affordance — the rasa.com "Get a demo" gradient, scaled down.
   Consistent across all cards; the card border still carries industry color. */
.card-play {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--play-gradient);
  background-size: 100% 100%;
  border: none;
  color: #fff;
  box-shadow: var(--play-glow);
  transition: transform 0.18s var(--ease-out), filter 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.card:hover .card-play,
.card:focus-visible .card-play {
  transform: scale(1.09);
  filter: brightness(1.08) saturate(1.05);
  box-shadow: var(--shadow-lg);
}

.card-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════ Empty state ══════════════ */
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 72px 20px;
  color: var(--fg-soft);
}

.empty-icon { width: 42px; height: 42px; fill: var(--fg-muted); }

.btn-clear {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-active-bg);
  color: var(--accent-active-ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.12s ease, filter 0.12s ease, transform 0.12s ease;
}

.btn-clear:hover { filter: brightness(1.08); }
.btn-clear:active { transform: scale(0.98); }

/* ══════════════ Links ══════════════ */
.links { margin-top: clamp(48px, 7vw, 80px); }

.links-heading {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  text-decoration: none;
  color: var(--fg-default);
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}

.link-card:hover {
  border-color: color-mix(in srgb, var(--purple-400) 55%, transparent);
  background: var(--bg-muted);
  transform: translateY(-3px);
}

.link-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--purple-700) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--purple-500) 32%, transparent);
  color: var(--accent-default);
}

.link-icon svg { width: 20px; height: 20px; fill: currentColor; }
.link-title { font-weight: 600; font-size: 0.9375rem; display: block; }
.link-desc { font-size: 0.8125rem; color: var(--fg-muted); margin-top: 3px; display: block; }

/* ══════════════ Footer ══════════════ */
.footer {
  text-align: center;
  padding: 36px 32px 44px;
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

/* ══════════════ Screensaver control ══════════════ */
/* A booth-operator control docked in the top bar — never overlaps the grid. */
.screensaver-btn[hidden] { display: none; }

.screensaver-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-panel);
  color: var(--fg-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.screensaver-btn:hover { background: var(--bg-panel); border-color: var(--accent-ring); color: var(--fg-default); }
.screensaver-btn svg { width: 16px; height: 16px; fill: currentColor; }
.screensaver-btn.running { border-color: var(--accent-ring); color: var(--accent-ring); }
.screensaver-btn.running svg { fill: var(--accent-ring); }
.screensaver-btn[disabled] { opacity: 0.55; cursor: progress; }

/* ══════════════ Modal ══════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  padding: 40px;
}

.modal.open { display: flex; }
.modal-inner { width: min(1100px, 100%); }

.modal video {
  width: 100%;
  border-radius: var(--radius-xl);
  background: #000;
  border: 1px solid var(--border-default);
  max-height: 78vh;
}

/* The modal is a video viewer — always dark, independent of page theme. */
.modal-meta { margin-top: 18px; text-align: center; }
.modal-meta h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.modal-meta p { color: rgba(255, 255, 255, 0.72); margin-top: 6px; }

.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(37, 45, 64, 0.92);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.modal-close:hover { background: rgba(52, 62, 88, 0.95); border-color: var(--accent-ring); }

@media (max-width: 640px) {
  .grid { gap: 14px; }
}

/* Respect reduced motion — instant, no entrance transform. */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0ms !important; }
  .card { opacity: 1; transform: none; }
}
