/* ==========================================================================
   LUMORA — Veterinary Imaging Platform · shared stylesheet
   Static brand site (plain HTML + this CSS, no build step).
   Palette/type follow the "Antigravity" design tokens.
   ========================================================================== */

/* ─── Font (self-hosted Roboto Flex, zero runtime CDN) ─────────────── */
@font-face {
  font-family: 'Roboto Flex';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url('./fonts/RobotoFlex.woff2') format('woff2');
}

/* ─── Design tokens ─────────────────────────────────────────────────── */
:root {
  /* Color · base palette */
  --grey-0:    #ffffff;
  --grey-10:   #f8f9fc;
  --grey-20:   #eff2f7;
  --grey-50:   #e6eaf0;
  --grey-100:  #e1e6ec;
  --grey-200:  #cdd4dc;
  --grey-300:  #b2bbc5;
  --grey-400:  #b7bfd9;
  --grey-800:  #45474d;
  --grey-900:  #2f3034;
  --grey-1000: #212226;
  --grey-1100: #18191d;
  --grey-1200: #121317;
  --navy-800:  #1f2d52;
  --navy-900:  #16213c;
  --blue-600:  #3279f9;

  /* Theme surfaces */
  --surface:                var(--grey-0);
  --surface-container-low:  var(--grey-10);
  --surface-container:      var(--grey-20);
  --surface-container-high: var(--grey-50);
  --surface-inverse:        var(--navy-900);

  --on-surface:         var(--grey-1200);
  --on-surface-variant: var(--grey-800);
  --on-surface-muted:   var(--grey-300);
  --on-inverse:         var(--grey-10);
  --on-inverse-variant: var(--grey-300);

  --primary:    var(--blue-600);
  --on-primary: var(--grey-0);
  --outline:         rgba(33, 34, 38, 0.12);
  --outline-strong:  rgba(33, 34, 38, 0.20);
  --outline-inverse: rgba(255, 255, 255, 0.16);

  /* Elevation (soft, diffused) */
  --shadow-xs:     0 1px 2px rgba(33, 34, 38, 0.04);
  --shadow-card:   0 1px 2px rgba(33, 34, 38, 0.03), 0 18px 40px -24px rgba(22, 33, 60, 0.16);
  --shadow-card-hover: 0 2px 4px rgba(33, 34, 38, 0.04), 0 28px 56px -24px rgba(50, 121, 249, 0.26);
  --shadow-accent: 0 12px 28px -12px rgba(50, 121, 249, 0.5);

  /* Typography */
  --font-sans: 'Roboto Flex', 'Roboto', -apple-system, BlinkMacSystemFont,
               'Segoe UI', system-ui, sans-serif;

  --text-5xl: 54px;
  --text-4xl: 42px;
  --text-3xl: 36px;
  --text-2xl: 30px;
  --text-xl:  24px;
  --text-lg:  22px;
  --text-md:  20px;
  --text-base: 17.5px;
  --text-sm:  14.5px;
  --text-xs:  12.5px;

  --weight-body: 400;
  --weight-title: 550;
  --weight-medium: 500;
  --weight-semibold: 600;

  --leading-body: 1.5;
  --leading-title: 1.1;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  36px;
  --space-2xl: 48px;
  --space-3xl: 60px;
  --space-4xl: 80px;
  --space-5xl: 88px;
  --space-6xl: 120px;

  /* Radius */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  36px;
  --radius-2xl: 48px;
  --radius-full: 9999px;

  /* Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);

  /* Grid */
  --container-max: 1200px;
  --page-margin: 20px;
}

@media (min-width: 768px)  { :root { --page-margin: 32px; } }
@media (min-width: 1024px) { :root { --page-margin: 48px; } }

/* ─── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-body);
  line-height: var(--leading-body);
  color: var(--on-surface);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--weight-title);
  line-height: var(--leading-title);
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--page-margin);
}
.container-narrow { max-width: 960px; }

.section { padding: var(--space-4xl) 0; }
@media (min-width: 768px)  { .section { padding: var(--space-5xl) 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-6xl) 0; } }

.section-muted {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(50, 121, 249, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-container-low) 0%, #f5f7fc 100%);
}

/* ─── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--outline);
  box-shadow: 0 6px 24px -18px rgba(22, 33, 60, 0.25);
}
.nav-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-md) var(--page-margin);
  gap: var(--space-md);
}
.brand { display: flex; align-items: center; line-height: 1; }
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 900px) { .brand-logo { height: 38px; } }
.nav-links {
  display: flex; align-items: center; gap: var(--space-xs);
}
.nav-link {
  display: none;
  padding: 8px 14px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--on-surface-variant);
  border-radius: var(--radius-full);
  transition: color 0.18s var(--ease-out-quart), background 0.18s var(--ease-out-quart);
}
.nav-link:hover { color: var(--on-surface); background: var(--surface-container); }
.nav-link.active { color: var(--on-surface); background: var(--surface-container); }
@media (min-width: 900px) { .nav-link { display: inline-flex; } }

/* Mobile menu button */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--outline);
  border-radius: var(--radius-full); cursor: pointer;
  color: var(--on-surface);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 20px; height: 20px; }

/* Mobile dropdown */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--space-sm) var(--page-margin) var(--space-md);
  gap: 4px;
  border-top: 1px solid var(--outline);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 10px 14px;
  font-size: var(--text-md);
  color: var(--on-surface-variant);
  border-radius: var(--radius-sm);
}
.mobile-menu a:hover { color: var(--on-surface); background: var(--surface-container); }
.mobile-menu a.active { color: var(--on-surface); background: var(--surface-container); }

/* ─── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-sm);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease-out-quart),
              border-color 0.22s var(--ease-out-quart),
              color 0.22s var(--ease-out-quart),
              transform 0.22s var(--ease-out-quart);
}
.btn-lg { padding: 15px 28px; font-size: var(--text-base); }

.btn-primary {
  background: linear-gradient(180deg, #2a2b31 0%, var(--on-surface) 100%);
  color: var(--surface);
  box-shadow: 0 10px 24px -14px rgba(18, 19, 23, 0.55);
}
.btn-primary:hover { background: linear-gradient(180deg, #33343a 0%, var(--grey-1000) 100%); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(18, 19, 23, 0.6); }

.btn-accent {
  background: linear-gradient(180deg, #4d8bfa 0%, var(--primary) 100%);
  color: var(--on-primary);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover { background: linear-gradient(180deg, #5c9bff 0%, #1e63e0 100%); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(50, 121, 249, 0.55); }

.btn-outlined { background: transparent; color: var(--on-surface); border-color: var(--outline); }
.btn-outlined:hover { border-color: var(--outline-strong); background: var(--surface-container-low); box-shadow: var(--shadow-xs); }

.btn-on-inverse {
  background: linear-gradient(180deg, #ffffff 0%, var(--grey-10) 100%);
  color: var(--on-surface);
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.45);
}
.btn-on-inverse:hover { background: linear-gradient(180deg, #ffffff 0%, #eef2f8 100%); transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.5); }

.btn-outlined-inverse { background: rgba(255,255,255,0.04); color: var(--on-inverse); border-color: var(--outline-inverse); backdrop-filter: blur(4px); }
.btn-outlined-inverse:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.1); }

.arrow { width: 16px; height: 16px; }

/* ─── Eyebrow / section heading ─────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  color: var(--on-surface-variant);
  background: var(--surface-container);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.eyebrow-accent { color: var(--primary); background: rgba(50, 121, 249, 0.10); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--space-3xl); }
@media (min-width: 1024px) { .section-head { margin-bottom: var(--space-4xl); } }
.section-head h2 { font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl)); }
.section-head p {
  margin-top: var(--space-md);
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  color: var(--on-surface-variant);
  font-size: var(--text-md);
  line-height: 1.6;
}

/* ─── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: var(--space-4xl);
  background:
    radial-gradient(ellipse 62% 55% at 80% 8%, rgba(50,121,249,0.30) 0%, transparent 58%),
    radial-gradient(ellipse 50% 45% at 6% 92%, rgba(50,121,249,0.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--on-inverse);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('./hero-bg.jpg') center / cover no-repeat;
  opacity: 0.9;
}
.hero-bokeh {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bokeh span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffffff 0%, #a9c7ff 38%, rgba(50,121,249,0) 72%);
  box-shadow:
    0 0 var(--s) calc(var(--s) / 3) rgba(96,155,255,0.55),
    0 0 calc(var(--s) * 2.4) rgba(160,205,255,0.32);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  animation: hero-bokeh-float var(--d) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}
@keyframes hero-bokeh-float {
  0%   { transform: translate3d(0, 0, 0) scale(0.7); opacity: 0; }
  12%  { opacity: var(--o); }
  88%  { opacity: var(--o); }
  100% { transform: translate3d(28px, -190px, 0) scale(1.25); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bokeh span { animation: none; opacity: 0; }
}
@media (min-width: 1024px) { .hero { padding-top: 200px; padding-bottom: var(--space-6xl); } }
.hero-inner { position: relative; z-index: 1; max-width: 880px; }

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: var(--weight-title);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--on-inverse);
}
.hero-sub {
  margin-top: var(--space-lg);
  font-size: clamp(var(--text-base), 2vw, var(--text-md));
  line-height: 1.6;
  color: var(--on-inverse-variant);
  max-width: 640px;
}
.hero-cta { margin-top: var(--space-2xl); display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--on-inverse-variant);
}
.hero-note .dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--primary); border-radius: 50%;
  vertical-align: middle; margin-right: 8px;
}
.hero .eyebrow {
  color: var(--on-inverse);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}

/* ─── Page header (sub-pages) ───────────────────────────────────────── */
.page-hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: var(--space-3xl);
  background:
    radial-gradient(ellipse 55% 55% at 12% 0%, rgba(50,121,249,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 95% 20%, rgba(50,121,249,0.05) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-container-low) 100%);
}
@media (min-width: 1024px) { .page-hero { padding-top: 190px; padding-bottom: var(--space-4xl); } }
.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: var(--weight-title);
  letter-spacing: -0.03em;
}
.page-hero p {
  margin-top: var(--space-md);
  max-width: 720px;
  font-size: var(--text-md);
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* ─── Feature / advantage cards ─────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease-out-quart),
              transform 0.25s var(--ease-out-quart),
              box-shadow 0.25s var(--ease-out-quart);
}
@media (min-width: 768px) { .card { padding: var(--space-xl); } }
.card:hover {
  border-color: var(--outline-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card h3 { font-size: var(--text-xl); font-weight: var(--weight-title); }
.card-tagline { margin-top: var(--space-sm); font-size: var(--text-base); line-height: 1.55; color: var(--on-surface-variant); }

.icon-box {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--surface-container);
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box-accent {
  background: linear-gradient(135deg, rgba(50,121,249,0.16) 0%, rgba(50,121,249,0.06) 100%);
  color: var(--primary);
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: var(--space-xl); } }

.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); } }

/* ─── Stats band (Practice Snapshot) ────────────────────────────────── */
.stats-band {
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(50,121,249,0.18) 0%, transparent 62%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--on-inverse);
}
.stats-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: left; }
.stat-value {
  font-size: clamp(var(--text-3xl), 4.5vw, 52px);
  font-weight: var(--weight-title);
  letter-spacing: -0.02em;
  color: var(--on-inverse);
  line-height: 1;
}
.stat-value .unit { font-size: var(--text-lg); font-weight: var(--weight-medium); margin-left: 4px; color: var(--on-inverse-variant); }
.stat-label { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--on-inverse-variant); line-height: 1.45; }

/* ─── Species grid ──────────────────────────────────────────────────── */
.species-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px) { .species-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .species-grid { grid-template-columns: repeat(4, 1fr); } }
.species-card .icon-box { background: rgba(50,121,249,0.10); color: var(--primary); }
.species-card ul { margin-top: var(--space-md); display: flex; flex-direction: column; gap: 6px; }
.species-card li { font-size: var(--text-sm); color: var(--on-surface-variant); line-height: 1.5; padding-left: 14px; position: relative; }
.species-card li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* ─── About · vision / mission / values ─────────────────────────────── */
.pillars { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { border-top: 2px solid var(--primary); padding-top: var(--space-md); }
.pillar-label {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: var(--space-sm);
}
.pillar h3 { font-size: var(--text-lg); font-weight: var(--weight-title); line-height: 1.3; }
.pillar p { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--on-surface-variant); line-height: 1.6; }

/* ─── Advisor profile ───────────────────────────────────────────────── */
.advisor-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid var(--outline);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) { .advisor-card { padding: var(--space-2xl); } }
.advisor {
  display: grid; grid-template-columns: 1fr; gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 900px) { .advisor { grid-template-columns: 320px 1fr; } }
.advisor-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  border: 1px solid var(--outline);
  background: var(--surface-container);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.advisor-photo img { width: 100%; height: 100%; object-fit: contain; }
.advisor-photo .ph { color: var(--on-surface-muted); font-size: var(--text-sm); letter-spacing: 0.08em; text-transform: uppercase; }
.advisor-name { font-size: var(--text-3xl); font-weight: var(--weight-title); letter-spacing: -0.02em; }
.advisor-role {
  display: inline-block; margin-top: var(--space-sm);
  font-size: var(--text-sm); color: var(--primary);
  background: rgba(50,121,249,0.10);
  padding: 4px 12px; border-radius: var(--radius-full);
}
.advisor-tagline { margin-top: var(--space-md); font-size: var(--text-base); color: var(--on-surface-variant); line-height: 1.6; }
.advisor-stats { margin-top: var(--space-lg); display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 640px) { .advisor-stats { grid-template-columns: repeat(3, 1fr); } }
.advisor-stat {
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  background: var(--surface-container-low);
}
.advisor-stat strong {
  display: block;
  font-size: var(--text-xl);
  font-weight: var(--weight-title);
  color: var(--primary);
  letter-spacing: -0.02em;
}
.advisor-stat span {
  display: block;
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--on-surface-variant);
}
.advisor-creds { margin-top: var(--space-xl); display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px) { .advisor-creds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .advisor-creds { grid-template-columns: repeat(3, 1fr); } }
.advisor-creds-group { padding-top: var(--space-md); border-top: 1px solid var(--outline); }
.advisor-creds-group h5 {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-surface-variant); margin: 0 0 var(--space-sm);
}
.advisor-creds-group li { font-size: var(--text-sm); line-height: 1.55; color: var(--on-surface); margin-bottom: 6px; }

/* ─── Case gallery (X-ray / CT / MRI) ───────────────────────────────── */
.gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.case {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease-out-quart), transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
}
.case:hover { border-color: var(--outline-strong); transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }

.case-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-inverse);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.case-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.case-media .dummy {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--on-inverse-variant);
}
.case-body { padding: var(--space-lg); }
.case-body h3 { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.case-body .case-species {
  display: inline-block; margin-top: var(--space-sm);
  font-size: var(--text-xs); font-weight: var(--weight-medium);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--primary); background: rgba(50,121,249,0.08);
  padding: 3px 10px; border-radius: var(--radius-full);
}
.case-body p { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--on-surface-variant); line-height: 1.6; }

/* modality tag on gallery media */
.modality-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px;
  font-size: 11px; font-weight: var(--weight-semibold);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,0.16);
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

/* ─── CTA banner ────────────────────────────────────────────────────── */
.cta {
  position: relative;
  background:
    radial-gradient(ellipse 55% 80% at 50% 0%, rgba(50,121,249,0.24) 0%, transparent 62%),
    radial-gradient(ellipse 40% 45% at 85% 100%, rgba(50,121,249,0.12) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--on-inverse);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  max-width: 1280px; margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(22, 33, 60, 0.55);
}
@media (min-width: 768px) { .cta { padding: var(--space-5xl) var(--space-4xl); } }
.cta h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl)); letter-spacing: -0.03em; color: var(--on-inverse); }
.cta p { margin-top: var(--space-md); font-size: var(--text-md); line-height: 1.55; color: var(--on-inverse-variant); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ─── Contact ───────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); max-width: 900px; margin: 0 auto; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; flex-direction: column; gap: var(--space-sm); }
.contact-card .contact-value { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--on-surface); word-break: break-all; }
.contact-card .contact-label { font-size: var(--text-sm); color: var(--on-surface-variant); }
.contact-card a { color: var(--primary); }

/* ─── Footer ────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--outline);
  background: var(--surface);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: var(--space-4xl);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-3xl); } }
.footer-tagline { margin-top: 10px; font-size: var(--text-sm); color: var(--on-surface-variant); max-width: 340px; }
.footer-col h4 {
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-surface); margin-bottom: 14px;
}
.footer-col a, .footer-col p { display: block; font-size: var(--text-sm); color: var(--on-surface-variant); margin-bottom: 6px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--outline);
  display: flex; flex-direction: column; gap: 8px;
  justify-content: space-between;
  font-size: var(--text-xs); color: var(--on-surface-muted);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; } }