/* ========================================================
   Section-specific styles
   ======================================================== */

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 280ms var(--ease-soft);
  padding: 20px 0;
}
/* Permanent legibility scrim — fades to transparent so it doesn't feel like a bar */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.42) 40%,
    rgba(0, 0, 0, 0.18) 70%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: -1;
  transition: opacity 280ms var(--ease-soft);
}
[data-theme="light"] .nav::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.12) 75%,
    rgba(0, 0, 0, 0) 100%
  );
}
.nav-scrolled::before { opacity: 0; }
.nav-scrolled {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.18) 90%,
    rgba(0, 0, 0, 0) 100%
  );
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.4) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.4) 90%, transparent 100%);
  border-bottom: none;
  padding: 12px 0;
}
/* Scrolled nav stays dark with white text regardless of theme */
[data-theme="light"] .nav-scrolled {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.55) 55%,
    rgba(0, 0, 0, 0.18) 90%,
    rgba(0, 0, 0, 0) 100%
  );
}
[data-theme="light"] .nav-scrolled .nav-links a,
[data-theme="light"] .nav-scrolled .logo-name {
  color: #f5f5f5;
}
[data-theme="light"] .nav-scrolled .nav-links a:hover { color: #fff; }
[data-theme="light"] .nav-scrolled .logo-spec { color: rgba(245, 245, 245, 0.6); }
[data-theme="light"] .nav-scrolled .logo-img { filter: brightness(0) invert(1) brightness(0.96); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-7);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg-0);
}
.logo-mark { display: inline-flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.logo-spec { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: 0.1em; margin-top: 4px; text-transform: uppercase; }

.logo--img {
  gap: 0;
}
.logo-img {
  display: block;
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: height 280ms var(--ease-soft);
}
.nav-scrolled .logo-img { height: 56px; }
/* Logo (gray on transparent PNG) handling:
   - Default: invert to white-ish — works over dark hero, footer, CTA, moment.
   - Exception: light theme + nav-scrolled (white-ish bg) → keep original gray.
   - Exception: light theme + footer (light bg-1) → keep original gray. */
.logo-img {
  filter: brightness(0) invert(1) brightness(0.96);
}
/* In light theme, the nav scrim is dark too — so logo + links stay white at the top of the page */
[data-theme="light"] .nav:not(.nav-scrolled) .logo-name { color: #f5f5f5; }
[data-theme="light"] .nav:not(.nav-scrolled) .logo-spec { color: rgba(245, 245, 245, 0.6); }
[data-theme="light"] .nav:not(.nav-scrolled) .logo-img { filter: brightness(0) invert(1) brightness(0.96); }
[data-theme="light"] .nav:not(.nav-scrolled) .nav-links a { color: #e5e5e5; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
[data-theme="light"] .nav:not(.nav-scrolled) .nav-links a:hover { color: #fff; }

.nav-links {
  display: flex;
  justify-content: center;
  gap: var(--s-6);
}
.nav-links a {
  color: var(--fg-1);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 200ms var(--ease);
  font-family: var(--font-display);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.nav-scrolled .nav-links a { text-shadow: none; }
[data-theme="light"] .nav-links a { text-shadow: 0 1px 8px rgba(255, 255, 255, 0.5); }
[data-theme="light"] .nav-scrolled .nav-links a { text-shadow: none; }
.nav-links a:hover { color: var(--fg-0); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-lang {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg-1);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 200ms var(--ease);
}
.nav-lang:hover { border-color: var(--cyan); color: var(--cyan); }
/* Light theme: force white ES button + visible border over the dark hero scrim */
[data-theme="light"] .nav:not(.nav-scrolled) .nav-lang {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
[data-theme="light"] .nav:not(.nav-scrolled) .nav-lang:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-sm { padding: 10px 18px; font-size: 13px; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 22px;
  height: 1.5px;
  background: var(--fg-0);
}
/* Light theme: force white burger lines over the dark hero scrim */
[data-theme="light"] .nav:not(.nav-scrolled) .nav-burger span {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-mobile {
  display: none;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-mobile {
    display: flex;
    flex-direction: column;
    background: rgba(10, 12, 16, 0.97);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    padding: var(--s-5) var(--s-6) var(--s-6);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-mobile a {
    color: #fff;
    text-decoration: none;
    padding: 18px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.005em;
    display: block;
  }
  .nav-mobile a:last-child {
    margin-top: 16px;
    border-bottom: none;
    background: var(--cyan);
    color: var(--bg-0);
    border-radius: 999px;
    text-align: center;
    padding: 14px 20px;
    font-weight: 500;
  }
  .nav-mobile a.btn-primary {
    background: var(--cyan);
    color: var(--bg-0);
    border-radius: 999px;
    text-align: center;
    padding: 14px 20px;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: var(--s-8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #000;

  /* Hero is always cinematic dark, regardless of global theme */
  --fg-0: #ffffff;
  --fg-1: rgba(255, 255, 255, 0.92);
  --fg-2: rgba(255, 255, 255, 0.64);
  --fg-3: rgba(255, 255, 255, 0.44);
  --fg-4: rgba(255, 255, 255, 0.28);
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  color: var(--fg-1);
}
.hero h1, .hero .h1 { color: #ffffff; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-fundus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  opacity: 0.55;
  filter: contrast(1.15) saturate(0.8) brightness(0.85);
  transform: scale(1.05);
  animation: heroBgDrift 30s ease-in-out infinite alternate;
}
@keyframes heroBgDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to { transform: scale(1.12) translate(-2%, -1%); }
}
.hero-video-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  z-index: 2;
  /* Cinematic color grade: more contrast + saturation + slight cool tint via brightness */
  filter: contrast(1.18) saturate(1.25) brightness(1.05);
}
.hero-bg-fundus--fallback {
  z-index: 1;
}

/* CSS-only cinematic fallback when no video is loaded */
.hero-bg-iris {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 60% at 35% 45%,
      rgba(0, 229, 255, 0.18) 0%,
      rgba(46, 91, 224, 0.10) 28%,
      rgba(27, 65, 170, 0.06) 50%,
      transparent 72%),
    radial-gradient(circle at 70% 60%,
      rgba(110, 231, 255, 0.08) 0%,
      transparent 40%),
    radial-gradient(ellipse 120% 80% at 50% 100%,
      rgba(0, 0, 0, 0.6) 0%,
      transparent 60%);
  filter: blur(40px);
  animation: heroIrisDrift 18s ease-in-out infinite alternate;
}
@keyframes heroIrisDrift {
  0%   { transform: scale(1.0)  translate(0, 0); }
  100% { transform: scale(1.08) translate(-3%, -2%); }
}
.hero-bg-scan {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 3px,
      rgba(255, 255, 255, 0.012) 3px,
      rgba(255, 255, 255, 0.012) 4px
    );
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 50%, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 80%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 70%, #000 100%);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 100%);
}

.hero-telemetry {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--s-7);
  padding: 0 var(--s-6);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 80px;
}
.tele-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}
.tele-item--link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  background: rgba(8,10,14,0.55);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
}
.tele-item--link:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
}
.tele-item--link .tele-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--fg-2);
  text-transform: uppercase;
}
.tele-item--link .tele-num {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-0);
  font-weight: 500;
}
.tele-item--link:hover .tele-num { color: var(--cyan); }
.tele-item--urgent .tele-label { color: var(--signal-danger, #FF4D5E); }
.tele-item--urgent { border-color: rgba(255, 77, 94, 0.3); }
.tele-item--urgent:hover {
  border-color: var(--signal-danger, #FF4D5E);
  background: rgba(255, 77, 94, 0.06);
}
.tele-item--urgent:hover .tele-num { color: var(--signal-danger, #FF4D5E); }
.tele-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-ok);
  box-shadow: 0 0 10px var(--signal-ok);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title {
  margin-top: 32px;
  font-size: clamp(56px, 9vw, 144px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.hero-ready .hero-line { opacity: 1; transform: translateY(0); }
.hero-ready .hero-line-2 { opacity: 0.7; transition-delay: 200ms; }
.hero-ready .hero-line-accent { transition-delay: 400ms; }
.hero-line-accent {
  animation-delay: 400ms;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
  font-weight: 300;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroIn2_unused {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 0.7; transform: translateY(0); }
}

.hero-sub {
  margin-top: 36px;
  max-width: 540px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease) 600ms, transform 1s var(--ease) 600ms;
}
.hero-ready .hero-sub { opacity: 1; transform: translateY(0); }
.hl-term {
  color: var(--cyan);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 1px;
  background-image: linear-gradient(90deg, transparent 0%, var(--cyan) 15%, var(--cyan) 85%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
}
[data-theme="light"] .hl-term {
  color: var(--accent);
  background-image: linear-gradient(90deg, transparent 0%, var(--accent) 15%, var(--accent) 85%, transparent 100%);
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease) 800ms, transform 1s var(--ease) 800ms;
}
.hero-ready .hero-actions { opacity: 1; transform: translateY(0); }

.hero-bottom {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-6);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: end;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: var(--s-7);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.hero-stat-label {
  font-size: 10px;
  color: var(--fg-3);
  margin-top: 6px;
  letter-spacing: 0.14em;
}
.hero-stat-logo {
  display: flex;
  align-items: center;
  height: clamp(48px, 5.5vw, 72px);
}
.hero-stat-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
  mix-blend-mode: screen;
}
.hero-stat-logo img.fsfb-img {
  mix-blend-mode: normal;
  opacity: 1;
  border-radius: 4px;
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg-3);
  font-size: 11px;
  animation: bobV 2.4s ease-in-out infinite;
}
@keyframes bobV {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-scroll { display: none; }
  .hero-telemetry { gap: var(--s-4); flex-wrap: wrap; }
}

/* ===== EXPERTISE ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.ex-card {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 320ms var(--ease), background 320ms var(--ease);
}
.ex-card:hover { border-color: rgba(0,229,255,0.45); background: var(--surface); }

.ex-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid var(--border);
}
.ex-media-inner {
  position: absolute; inset: 0;
  transition: transform 800ms cubic-bezier(.2,.7,.2,1);
}
.ex-media-inner img,
.ex-media-inner video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.06);
}
.ex-card:hover .ex-media-inner { transform: scale(1.05); }

.ex-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,8,12,0.35) 0%, rgba(5,8,12,0) 30%, rgba(5,8,12,0) 60%, rgba(5,8,12,0.55) 100%);
  pointer-events: none;
}
.ex-grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: screen;
  opacity: 0.4;
  pointer-events: none;
}

.ex-corners { position: absolute; inset: 14px; pointer-events: none; }
.ex-corners > span {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid rgba(0,229,255,0.7);
  transition: width 320ms var(--ease), height 320ms var(--ease);
}
.ex-corners > span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ex-corners > span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ex-corners > span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ex-corners > span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.ex-card:hover .ex-corners > span { width: 22px; height: 22px; }

.ex-readout {
  position: absolute;
  top: 14px; left: 14px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(255,255,255,.95);
  background: rgba(5,8,12,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border: 1px solid rgba(0,229,255,0.28);
}
.ex-readout-dot {
  width: 6px; height: 6px;
  background: #00e5ff;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,229,255,0.9);
  animation: ex-pulse 1.6s ease-in-out infinite;
}
.ex-readout-sep { color: rgba(255,255,255,.35); }
@keyframes ex-pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.35; transform:scale(.85)} }

.ex-num-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: rgba(255,255,255,.95);
  background: rgba(5,8,12,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.14);
}

.ex-body {
  padding: var(--s-5) var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.ex-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--cyan);
}
.ex-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--fg-0);
  margin: 0;
  line-height: 1.1;
}
.ex-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}
.ex-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.ex-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--fg-2);
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 2px;
  background: var(--bg-0);
  text-transform: uppercase;
}
.ex-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fg-3);
  transition: color 280ms var(--ease);
}
.ex-card:hover .ex-foot { color: var(--cyan); }
.ex-foot svg { transition: transform 280ms var(--ease); }
.ex-card:hover .ex-foot svg { transform: translateX(6px); }

/* spec band above grid */
.ex-specband {
  margin-top: var(--s-6);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--border);
  background: var(--bg-1);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--fg-3);
}
.ex-specband-label { color: var(--cyan); }
.ex-specband-track {
  display: flex; align-items: center; gap: var(--s-4);
  overflow: hidden;
  white-space: nowrap;
}
.ex-specband-track > span {
  display: inline-flex; align-items: center; gap: 8px;
}
.ex-specband-track > span::before {
  content: ""; display: inline-block;
  width: 4px; height: 4px;
  background: var(--cyan-dim, #00e5ff);
  opacity: .5;
}

@media (max-width: 900px) {
  .expertise-grid { grid-template-columns: 1fr; }
  .ex-specband { grid-template-columns: 1fr; gap: var(--s-3); }
  .ex-specband-track { flex-wrap: wrap; white-space: normal; }
}

/* ===== DISEASES ===== */
.diseases-section {
  background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}
.diseases-grid {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.disease-row {
  display: grid;
  grid-template-columns: 80px 80px 1fr 200px 140px;
  gap: var(--s-5);
  padding: var(--s-5) var(--s-3);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg-1);
  align-items: center;
  transition: background 280ms var(--ease);
  position: relative;
}
.disease-row:hover { background: var(--surface); }
.disease-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 200ms var(--ease);
}
.disease-row:hover::before { background: var(--cyan); }
.disease-code {
  font-size: 11px;
  color: var(--fg-3);
}
.disease-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
}
.disease-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--fg-0);
}
.disease-desc {
  margin-top: 6px;
  color: var(--fg-2);
  max-width: 56ch;
}
.disease-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.disease-short { color: var(--fg-3); }
.urg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-strong);
}
.urg-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.urg-pill-urgente { color: var(--signal-danger); border-color: rgba(255, 77, 94, 0.4); }
.urg-pill-urgente .urg-dot { background: var(--signal-danger); box-shadow: 0 0 8px var(--signal-danger); }
.urg-pill-alta { color: var(--signal-warn); border-color: rgba(255, 184, 0, 0.4); }
.urg-pill-alta .urg-dot { background: var(--signal-warn); }
.urg-pill-media { color: var(--fg-2); }
.urg-pill-media .urg-dot { background: var(--fg-3); }

.disease-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.08em;
  justify-self: end;
}
.disease-row:hover .disease-cta { color: var(--cyan); }

@media (max-width: 980px) {
  .disease-row {
    grid-template-columns: 60px 60px 1fr;
    gap: var(--s-4);
  }
  .disease-meta, .disease-cta { display: none; }
}

/* ===== TECH ===== */
.section-dark {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.tech-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 280ms var(--ease);
}
.tech-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}
.tech-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.tech-image-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
  transition: transform 600ms var(--ease);
}
.tech-card:hover .tech-image-real { transform: scale(1.04); }
.tech-image-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}
.tech-image-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
.tech-image-badge .tele-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal-warn, #ff5544);
  box-shadow: 0 0 8px var(--signal-warn, #ff5544);
  animation: pulseDot 1.6s ease-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.tech-body { padding: var(--s-5); }
@media (max-width: 980px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } }

/* ===== Clinical placeholder label ===== */
.cp-label {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  z-index: 2;
}
.cp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* ===== WELCOME — editorial intro module ===== */
.welcome-section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.welcome-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 50%, rgba(0,229,255,0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(27,65,170,0.06), transparent 70%);
  pointer-events: none;
}
.welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.welcome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fg-2);
  text-transform: uppercase;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.welcome-eyebrow-rule {
  display: inline-block;
  width: 38px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}
.welcome-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--fg-0);
  margin: 0 0 clamp(28px, 3.5vw, 44px);
  text-wrap: pretty;
  max-width: 18ch;
}
.welcome-em {
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.005em;
  font-size: 1.08em;
  padding: 0 0.04em;
}
.welcome-body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 clamp(32px, 4vw, 44px);
}
.welcome-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  background: var(--fg-0);
  color: var(--bg-0);
  text-decoration: none;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), color 0.25s var(--ease);
}
.welcome-cta-primary:hover {
  background: var(--cyan);
  color: var(--bg-0);
  transform: translateY(-1px);
}
.welcome-cta-primary svg { transition: transform 0.25s var(--ease); }
.welcome-cta-primary:hover svg { transform: translateX(3px); }

.welcome-portrait-wrap {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
}
.welcome-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.welcome-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  filter: contrast(1.05) saturate(1.05);
}
.welcome-portrait-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 25%, transparent 35%, rgba(0,0,0,0.25) 100%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.welcome-cta-secondary {
  position: absolute;
  right: -8px;
  bottom: 8%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 2;
}
.welcome-cta-secondary:hover {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  transform: translateY(-2px);
}
.welcome-cta-secondary svg { transition: transform 0.25s var(--ease); }
.welcome-cta-secondary:hover svg { transform: translateX(3px); }

.welcome-portrait-stamp {
  position: absolute;
  top: 6%;
  left: -8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #ffffff;
  text-transform: uppercase;
  z-index: 2;
}
.welcome-stamp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}

@media (max-width: 900px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .welcome-portrait-wrap {
    justify-self: stretch;
    max-width: 100%;
    aspect-ratio: 1 / 1;
  }
  .welcome-h { max-width: 100%; }
  .welcome-cta-secondary { right: 8px; bottom: 16px; padding: 12px 18px; font-size: 12px; }
  .welcome-portrait-stamp { left: 8px; top: 16px; }
}

/* Light theme adjustments */
[data-theme="light"] .welcome-section::before {
  background:
    radial-gradient(ellipse 80% 60% at 85% 50%, rgba(27,65,170,0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 110%, rgba(0,180,200,0.04), transparent 70%);
}
[data-theme="light"] .welcome-em {
  color: #0a0c10;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.testimonial-card {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.testimonial-quote-mark {
  position: absolute;
  top: 12px;
  left: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.35;
  font-weight: 500;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  color: var(--fg-1);
  margin: 24px 0 0;
  text-wrap: pretty;
  flex: 1;
}
.testimonial-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.testimonial-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-0);
  letter-spacing: -0.005em;
}
.testimonial-sub { font-size: 10px; color: var(--fg-3); letter-spacing: 0.08em; }
.testimonial-condition { font-size: 10px; color: var(--cyan); letter-spacing: 0.1em; margin-top: 2px; }
.testimonials-foot {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  text-align: center;
  text-transform: uppercase;
}
@media (max-width: 1100px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ===== TOOLS / Interactive — Amsler + Simulator entry module ===== */
.tools-section {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.tools-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(0,229,255,0.05), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(27,65,170,0.05), transparent 60%);
  pointer-events: none;
}
.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
  position: relative;
  z-index: 1;
}
.tool-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 100%, rgba(0,229,255,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.tool-card:hover { border-color: var(--cyan); transform: translateY(-3px); }
.tool-card:hover::after { opacity: 1; }
.tool-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-1);
}
.tool-card-media-amsler { aspect-ratio: 16/10; }
.tool-card-grid {
  width: 100%;
  height: 100%;
  display: block;
}
.tool-card-sim-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: contrast(1.05) saturate(0.95);
}
.tool-card-sim-overlay-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.tool-card-sim-overlay-dmae {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 45%, rgba(10,12,16,0.85) 0%, rgba(10,12,16,0.55) 18%, transparent 38%);
  pointer-events: none;
}
.tool-card-sim-eye {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 4px 14px rgba(0, 229, 255, 0.4));
}
.tool-card-body {
  padding: var(--s-5) var(--s-6) var(--s-6);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  position: relative;
  z-index: 2;
}
.tool-card-num { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.14em; }
.tool-card-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--fg-0);
  margin: 6px 0 0;
}
.tool-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin-top: 6px;
  max-width: 42ch;
}
.tool-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-top: var(--s-4);
}
.tool-card-viz {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 100px;
  height: 100px;
  opacity: 0.95;
  pointer-events: none;
}
@media (max-width: 800px) { .tools-grid { grid-template-columns: 1fr; } .tool-card-sim-eye { width: 64px; height: 64px; } }
.about-section {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s-9);
  align-items: stretch;
}
.about-portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0a0c10;
}
.portrait-frame--live {
  border: 1px solid var(--border-strong);
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: contrast(1.05) saturate(0.85) brightness(0.92);
  z-index: 1;
}
.portrait-grade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 200, 255, 0.06) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.portrait-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.025) 3px,
    rgba(255, 255, 255, 0.025) 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.portrait-corners span {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--cyan);
  z-index: 3;
}
.portrait-corners span:nth-child(1) { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.portrait-corners span:nth-child(2) { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.portrait-corners span:nth-child(3) { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.portrait-corners span:nth-child(4) { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.portrait-crosshair {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
}
.portrait-crosshair .ch-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.portrait-crosshair .ch-v {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent);
}
.portrait-crosshair .ch-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  border: 1px dashed rgba(0, 229, 255, 0.5);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}
.portrait-meta {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.portrait-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
[data-theme="light"] .portrait-frame:not(.portrait-frame--live) .portrait-meta {
  background: rgba(255, 255, 255, 0.85);
}
.about-portrait-tag {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  z-index: 5;
}
.about-text {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.about-creds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: auto;
  padding-top: var(--s-7);
  border-top: 1px solid var(--border);
}
.cred {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--border);
}
.cred-k {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--fg-0);
}
.cred-v {
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
  letter-spacing: 0.06em;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ===== POSTOP ===== */
.section-postop {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.postop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.postop-card {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 280ms var(--ease);
}
.postop-card:hover { background: var(--surface); }
.postop-code { font-size: 11px; color: var(--cyan); }
.postop-arrow { margin-top: auto; color: var(--fg-3); }
.postop-card:hover .postop-arrow { color: var(--cyan); transform: translate(4px, -4px); transition: transform 280ms var(--ease); }
@media (max-width: 900px) { .postop-grid { grid-template-columns: 1fr; } }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.blog-card {
  display: block;
  text-decoration: none;
  color: var(--fg-1);
  transition: all 280ms var(--ease);
}
.blog-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 2;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 16px;
  color: var(--fg-3);
}
.blog-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--fg-0);
  margin-top: 12px;
}
.blog-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}
.blog-card:hover .blog-title { color: var(--cyan); }
.blog-card:hover .blog-arrow { color: var(--cyan); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.section-cta {
  position: relative;
  padding: var(--s-12) 0 var(--s-11);
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border);
  color: #fff;
  background: #0a0c10;
}
.section-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,12,16,0) 0%, rgba(10,12,16,0.55) 55%, rgba(10,12,16,0.85) 100%);
  pointer-events: none;
}
.section-cta .cta-inner { color: #fff; }
.section-cta .cta-title { color: #fff; }
.section-cta .cta-sub { color: rgba(255,255,255,0.78); }
.section-cta .mono { color: rgba(255,255,255,0.7) !important; }
.section-cta .cta-phone-num { color: #fff; }
.section-cta .cta-email { color: var(--cyan); }
.section-cta .cta-addr-link { color: rgba(255,255,255,0.92); }
.section-cta .cta-addr-link:hover { color: var(--cyan); }
.section-cta .cta-social-link { color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.2); }
.section-cta .cta-social-link:hover { color: var(--cyan); border-color: var(--cyan); }
.section-cta .cta-info > div > span:first-child { color: rgba(255,255,255,0.55) !important; }
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.78;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 30%, #000 0%, #000 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 30%, #000 0%, #000 50%, transparent 95%);
}
.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: contrast(1.05) saturate(1.05) brightness(0.95);
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}
.cta-title {
  font-size: clamp(40px, 5.5vw, 84px);
  margin-top: 24px;
  text-wrap: balance;
}
.cta-sub {
  margin: 24px auto 0;
  text-align: center;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.cta-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: left;
}
.cta-info > div { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-display); font-size: 14px; color: var(--fg-1); }
@media (max-width: 700px) { .cta-info { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-1);
  padding: var(--s-9) 0 var(--s-5);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-9);
  padding-bottom: var(--s-7);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.footer-col-title {
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--fg-0); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--s-7); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ===== Floating action buttons (Phone + WhatsApp) ===== */
.float-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.float-action-phone {
  background: #0a0c10;
  border: 1px solid rgba(255,255,255,0.18);
  width: 56px;
  padding: 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.float-action-phone:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,229,255,0.25); border-color: var(--cyan); }
.float-action-phone svg { color: var(--cyan); }
.float-action-label { display: none; }
.float-action-wa {
  background: #25D366;
  width: 56px;
  padding: 0;
  position: relative;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}
.float-action-wa:hover { transform: scale(1.08); }
.float-action-wa::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.4;
  animation: waPulse 2s ease-out infinite;
}
@media (max-width: 720px) {
  .float-actions { bottom: 16px; right: 16px; gap: 10px; }
}

/* Keep legacy .wa-float styles for backwards compat (unused now) */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 200ms var(--ease);
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.4;
  animation: waPulse 2s ease-out infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}


/* ===== Moment / cinematic interstitial ===== */
.moment-section {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  /* always cinematic dark, regardless of theme */
  --fg-0: #ffffff;
  --fg-1: rgba(255,255,255,0.92);
  --fg-2: rgba(255,255,255,0.66);
  --fg-3: rgba(255,255,255,0.46);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);
}
.moment-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.moment-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 35%;
  filter: contrast(1.08) saturate(0.65) brightness(0.7);
  transform: scale(1.05);
  animation: momentDrift 28s ease-in-out infinite alternate;
}
@keyframes momentDrift {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.12) translate(-3%, -1.5%); }
}
.moment-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 38%, rgba(0,0,0,0.05) 70%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.3) 100%);
}
.moment-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(255,255,255,0.025) 3px,
    rgba(255,255,255,0.025) 4px
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}
.moment-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: var(--s-8) 0;
}
.moment-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  padding: 8px 14px;
  border: 1px solid rgba(0, 200, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 200, 255, 0.06);
  backdrop-filter: blur(10px);
}
.moment-eyebrow .tele-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.moment-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 28px;
  color: #fff;
  text-wrap: balance;
  max-width: 22ch;
}
.moment-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.moment-caption {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  max-width: 50ch;
}
.moment-stamp {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}
.moment-corners {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 3;
}
.moment-corners span {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.4);
}
.moment-corners span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.moment-corners span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.moment-corners span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.moment-corners span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

@media (max-width: 720px) {
  .moment-foot { flex-direction: column; align-items: flex-start; }
}


/* ===== Retina Showcase — clinical imagery ===== */
.retina-showcase {
  position: relative;
  background: #050608;
  color: #ffffff;
  padding: var(--s-9) 0 var(--s-9);
  overflow: hidden;

  /* Force dark for this section regardless of theme */
  --fg-0: #ffffff;
  --fg-1: rgba(255,255,255,0.85);
  --fg-2: rgba(255,255,255,0.65);
  --fg-3: rgba(255,255,255,0.45);
  --bg-0: #050608;
  --bg-1: #0a0c10;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
}
.retina-showcase::before {
  /* faint grid backdrop */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
.retina-showcase::after {
  /* warm glow behind the image */
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: min(1100px, 90vw);
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(217, 142, 92, 0.18) 0%, rgba(217, 142, 92, 0.05) 30%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.rs-frame {
  position: relative;
  z-index: 1;
}

.rs-header {
  text-align: center;
  margin-bottom: var(--s-8);
}
.rs-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 16px auto 0;
  max-width: 18ch;
  color: #ffffff;
}
.rs-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--accent-glow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0.12em;
  margin-right: -0.06em;
}
.rs-sub {
  margin: 20px auto 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

/* Image stage */
.rs-image-wrap {
  position: relative;
  margin: 0 auto;
  width: min(1280px, 92vw);
  aspect-ratio: 3142 / 2840;
  border: 1px solid rgba(255,255,255,0.10);
  background: #000;
  overflow: hidden;
}
.rs-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: contrast(1.05) saturate(1.05);
  will-change: transform;
}
.rs-image-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 95%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 25%, transparent 75%, rgba(0,0,0,0.35) 100%);
}
.rs-image-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 10% 10%;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* Telemetry on image */
.rs-tele {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 7px 12px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}
.rs-tele .tele-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.rs-tele-tl { top: 16px; left: 16px; }
.rs-tele-tr { top: 16px; right: 16px; }
.rs-tele-bl { bottom: 16px; left: 16px; }
.rs-tele-br { bottom: 16px; right: 16px; }

/* Corner crosshairs */
.rs-corners {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 3;
}

/* AI assist badge */
.rs-ai-badge {
  position: absolute;
  top: 56px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 999px;
  z-index: 4;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.12);
}
.rs-ai-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(0, 229, 255, 0.5);
  animation: rsAiPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.rs-ai-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.rs-ai-badge-title {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-weight: 500;
}
.rs-ai-badge-sub {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}
@keyframes rsAiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}
@media (max-width: 600px) {
  .rs-ai-badge { top: auto; bottom: 56px; right: 12px; padding: 8px 12px; }
  .rs-ai-badge-sub { display: none; }
}
.rs-corners span {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 229, 255, 0.6);
}
.rs-corners span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.rs-corners span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.rs-corners span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.rs-corners span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Annotations */
.rs-annot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  font-size: 11px;
  pointer-events: none;
}
/* Flip variant: label sits to the LEFT of the dot (use when annotation is near right edge) */
.rs-annot-flip {
  flex-direction: row-reverse;
  transform: translateX(-100%);
}
.rs-annot-flip .rs-annot-line {
  background: linear-gradient(270deg, var(--cyan), rgba(0,229,255,0.2));
}
.rs-annot-flip.rs-annot-alert .rs-annot-line {
  background: linear-gradient(270deg, #FF3B30, rgba(255,59,48,0.2));
}
.rs-annot-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}
.rs-annot-line {
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(0,229,255,0.2));
}
.rs-annot-label {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.15);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

/* Alert annotation — clinical finding */
.rs-annot-alert .rs-annot-num {
  border-color: #FF3B30;
  color: #FF3B30;
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
  animation: rsAlertPulse 2.4s ease-out infinite;
}
.rs-annot-alert .rs-annot-line {
  background: linear-gradient(90deg, #FF3B30, rgba(255,59,48,0.2));
}
.rs-annot-alert .rs-annot-label {
  color: #FF6258;
  border-color: rgba(255, 59, 48, 0.45);
}
@keyframes rsAlertPulse {
  0%   { box-shadow: 0 0 0 0   rgba(255, 59, 48, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0   rgba(255, 59, 48, 0); }
}

/* Caption strip below image */
.rs-caption {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: start;
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.rs-caption-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.rs-caption-body {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 56ch;
  margin: 0;
}
.rs-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
  margin: 0;
}
.rs-specs > div {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 12px;
}
.rs-specs dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.rs-specs dd {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.95);
  font-family: var(--font-display);
  font-weight: 400;
}

@media (max-width: 900px) {
  .rs-caption { grid-template-columns: 1fr; gap: var(--s-5); }
  .rs-tele { font-size: 9px; padding: 5px 9px; }
  .rs-annot-label { font-size: 10px; padding: 3px 6px; }
  .rs-annot-line { width: 22px; }
  .rs-corners { inset: 14px; }
  .rs-corners span { width: 16px; height: 16px; }
}
@media (max-width: 600px) {
  /* Hide some annotations on tiny screens to avoid clutter */
  .rs-annot-3, .rs-annot-4 { display: none; }
  .rs-tele-tr, .rs-tele-bl { display: none; }
}


/* CTA contact rows — phones + email */
.cta-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.cta-phone-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s var(--ease);
}
.cta-phone-row:hover { color: var(--cyan); }
.cta-phone-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.cta-phone-num {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.cta-email {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s var(--ease);
  font-size: 15px;
  word-break: break-all;
}
.cta-email:hover { color: var(--cyan); }

/* CTA social — sits below email in the right column */
.cta-social {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-social-label {
  font-size: 11px;
  letter-spacing: 0.14em;
}
.cta-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cta-social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--fg-1);
  background: transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cta-social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-2px);
}


/* CTA address — clickable map thumb to Google Maps */
.cta-addr-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s var(--ease);
}
.cta-addr-link:hover { color: var(--cyan); }

.cta-map-thumb {
  position: relative;
  display: block;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0a;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cta-addr-link:hover .cta-map-thumb {
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.cta-map-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.3) contrast(1.05);
  pointer-events: none;
}
.cta-map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.cta-map-pin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.85);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cta-addr-link:hover .cta-map-pin {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #000;
}


/* ===== Diseases — large image cards grid ===== */
.diseases-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  border-top: 0;
}
@media (max-width: 1100px) { .diseases-grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .diseases-grid-cards { grid-template-columns: 1fr; } }

.disease-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.disease-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -16px rgba(0, 200, 220, 0.25);
}

.disease-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #050505;
  overflow: hidden;
}
.disease-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  filter: contrast(1.05) saturate(0.95);
}
.disease-card:hover .disease-card-img { transform: scale(1.04); filter: contrast(1.1) saturate(1); }
.disease-card-media .clinical-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.disease-card-grade {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.disease-card-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 2px;
}
.disease-card-urg {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
}

.disease-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
  flex: 1;
}
.disease-card-short {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.disease-card-name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--fg-0);
  text-wrap: balance;
}
.disease-card-desc {
  color: var(--fg-2);
  margin-top: 2px;
}
.disease-card-cta {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  border-top: 1px solid var(--border);
  transition: color 0.2s var(--ease);
}
.disease-card:hover .disease-card-cta { color: var(--cyan); }

/* Hide old row layout when cards are present */
.diseases-grid-cards .disease-row { display: none; }
