/* ================================================================
   MEDICA TOKYO LABORATORIES — Version 2.0
   Futuristic · Premium · Japanese Precision
   Font: Inter + Cormorant Garamond
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Roboto+Mono:wght@300;400&display=swap');

/* ── TOKENS ── */
:root {
  /* Brand blues extracted from logo */
  --b900: #0A1E3D;   /* darkest navy */
  --b800: #0D2440;   /* dark navy bg */
  --b700: #153B66;   /* primary text navy */
  --b600: #174497;   /* deep innovation blue */
  --b500: #176DB6;   /* primary brand blue */
  --b400: #2A8AC9;   /* sky blue */
  --b300: #5AAEE0;   /* light accent */
  --b200: #A8D4F0;   /* soft blue */
  --b100: #D4EAF9;   /* pale blue */
  --b050: #EEF6FC;   /* surface */
  --b010: #F6FAFD;   /* background */

  /* Neutrals */
  --n900: #0A0E14;
  --n800: #1A2332;
  --n200: #E8EEF4;
  --n100: #F2F6FA;
  --white: #FFFFFF;

  /* Accents */
  --accent-line: rgba(42,138,201,0.25);
  --glow: rgba(42,138,201,0.12);

  /* Typography */
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Spacing */
  --nav-h: 88px;  /* total navbar height */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); background: var(--b010); color: var(--b700); overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--b400); }

/* ================================================================
   NAVBAR — Clean two-row architecture
   Row 1: Logo left | Brand name center | CTA right
   Row 2: Navigation links centered with separator dots
   ================================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  display: flex; flex-direction: column;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent on hero */
#navbar.is-top {
  background: transparent;
}

/* Solid on scroll */
#navbar.is-scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--b100), 0 4px 32px rgba(10,30,61,0.07);
  backdrop-filter: blur(24px) saturate(1.5);
}

/* ── Row 1 ── */
.nav-row1 {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.4s;
}
#navbar.is-scrolled .nav-row1 {
  border-color: var(--b100);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; }

.nav-brand {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  pointer-events: none;
}
.nav-brand-name {
  font-family: var(--font-mono);
  font-size: 0.52rem; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.4s;
}
#navbar.is-scrolled .nav-brand-name { color: var(--b400); }
.nav-brand-sub {
  font-family: var(--font-mono);
  font-size: 0.42rem; font-weight: 300;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  transition: color 0.4s;
}
#navbar.is-scrolled .nav-brand-sub { color: var(--b200); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white); border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.22s ease; white-space: nowrap;
}
.nav-cta::after {
  content: '→'; font-size: 0.75rem;
  transition: transform 0.22s;
}
.nav-cta:hover::after { transform: translateX(4px); }
.nav-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }
#navbar.is-scrolled .nav-cta {
  color: var(--b500); border-color: var(--b500);
}
#navbar.is-scrolled .nav-cta:hover {
  background: var(--b500); color: var(--white);
}

/* Hamburger */
.nav-ham {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.nav-ham span {
  display: block; width: 22px; height: 1.5px;
  background: rgba(255,255,255,0.8);
  transition: all 0.3s;
}
#navbar.is-scrolled .nav-ham span { background: var(--b700); }
.nav-ham.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px,4.5px); }
.nav-ham.open span:nth-child(2) { opacity: 0; }
.nav-ham.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px,-4.5px); }

/* ── Row 2 ── */
.nav-row2 {
  display: flex; align-items: center; justify-content: center;
  height: 36px;
  background: rgba(0,0,0,0.12);
  transition: background 0.4s;
}
#navbar.is-scrolled .nav-row2 {
  background: var(--b010);
  border-top: none;
}

.nav-links {
  display: flex; align-items: center;
  list-style: none; gap: 0;
}
.nav-links li { position: relative; }
.nav-links li + li::before {
  content: ''; display: block;
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 10px;
  background: rgba(255,255,255,0.15);
}
#navbar.is-scrolled .nav-links li + li::before {
  background: var(--b100);
}
.nav-links a {
  display: block; padding: 0 16px; height: 36px;
  line-height: 36px;
  font-size: 0.67rem; font-weight: 400; letter-spacing: 0.11em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  position: relative; white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: 0; left: 16px; right: 16px; height: 1.5px;
  background: var(--b400);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: rgba(255,255,255,0.95); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
#navbar.is-scrolled .nav-links a { color: var(--b700); }
#navbar.is-scrolled .nav-links a:hover,
#navbar.is-scrolled .nav-links a.active { color: var(--b500); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 998;
  background: var(--b900);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.nav-drawer.open { opacity: 1; pointer-events: all; }
.nav-drawer a {
  font-size: 1.1rem; font-weight: 300; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--white); }

/* ================================================================
   HERO
   ================================================================ */
#home {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 5vw 80px;
  background: var(--b900);
}

/* Background image */
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1530026405186-ed1f139313f3?w=1800&q=80&auto=format') center/cover no-repeat;
  opacity: 0.08;
}

/* Gradient overlay */
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(125deg, #071428 0%, #0b2050 45%, #0d1e3a 100%);
  opacity: 0.94;
}

/* Animated grid */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(42,138,201,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,138,201,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Glow orb */
.hero-orb {
  position: absolute; top: 20%; right: 10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,109,182,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left { position: relative; z-index: 2; padding-right: 4%; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
}
.hero-tag-line { width: 32px; height: 1px; background: var(--b400); }
.hero-tag-text {
  font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--b300);
}

h1.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 4.6rem);
  font-weight: 300; line-height: 1.08;
  color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.01em;
}
h1.hero-h1 em { font-style: italic; color: var(--b300); }

.hero-sub {
  font-size: 0.9rem; font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.5); margin-bottom: 36px;
  max-width: 480px; letter-spacing: 0.01em;
}

.hero-bullets {
  list-style: none; margin-bottom: 44px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-bullets li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.7);
}
.hero-bullets li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--b400); flex-shrink: 0;
  box-shadow: 0 0 6px var(--b400);
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  padding: 13px 30px;
  background: var(--b500); color: var(--white);
  font-size: 0.73rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--b500);
  transition: all 0.22s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--b600); border-color: var(--b600); transform: translateY(-1px); }

.btn-outline-white {
  padding: 13px 30px;
  background: transparent; color: rgba(255,255,255,0.8);
  font-size: 0.73rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.22s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }

.btn-outline-blue {
  padding: 13px 30px;
  background: transparent; color: var(--b500);
  font-size: 0.73rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--b500);
  transition: all 0.22s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-blue:hover { background: var(--b500); color: var(--white); }

.btn-solid-blue {
  padding: 13px 30px;
  background: var(--b500); color: var(--white);
  font-size: 0.73rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--b500);
  transition: all 0.22s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-solid-blue:hover { background: var(--b600); border-color: var(--b600); }

/* Hero right — image mosaic */
.hero-right {
  position: relative; z-index: 2;
  display: grid;
  grid-template-rows: 300px 150px;
  gap: 10px;
}
.hero-img-a {
  overflow: hidden; position: relative;
}
.hero-img-a img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hero-img-a::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.hero-img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-img-b { overflow: hidden; position: relative; }
.hero-img-b img { width: 100%; height: 100%; object-fit: cover; opacity: 0.65; }
.hero-img-b::after {
  content: ''; position: absolute; inset: 0;
  border: 1px solid rgba(255,255,255,0.08); pointer-events: none;
}
.img-label {
  position: absolute; bottom: 10px; left: 12px;
  font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}

/* ================================================================
   STATS BAR
   ================================================================ */
#stats-bar {
  background: var(--b800);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stat-item {
  padding: 36px 24px;
  border-right: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: background 0.3s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(42,138,201,0.08); }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2.2rem; font-weight: 300; color: var(--b300);
  line-height: 1; margin-bottom: 6px;
}
.stat-lbl {
  font-size: 0.68rem; font-weight: 300; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35); text-transform: uppercase;
}

/* ================================================================
   SECTION COMMON
   ================================================================ */
.section { padding: 100px 5vw; }
.section.bg-white  { background: var(--white); }
.section.bg-off    { background: var(--b010); }
.section.bg-surface{ background: var(--b050); }
.section.bg-dark   { background: var(--b800); }
.section.bg-navy   { background: var(--b900); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--b400); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--b400); }
.eyebrow.light { color: rgba(90,174,224,0.7); }
.eyebrow.light::before { background: rgba(90,174,224,0.5); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 300; line-height: 1.12; letter-spacing: -0.01em;
  color: var(--b700);
}
.section-title em { font-style: italic; color: var(--b500); }
.section-title.light { color: var(--white); }
.section-title.light em { color: var(--b300); }

.section-body {
  font-size: 0.875rem; font-weight: 300; line-height: 1.85;
  color: var(--b700); opacity: 0.75;
}
.section-body.light { color: rgba(255,255,255,0.6); opacity: 1; }

.divider { border: none; border-top: 1px solid var(--b100); margin: 0; }

/* ================================================================
   ABOUT
   ================================================================ */
.about-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 64px;
}
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 500px; object-fit: cover; }
.about-img-badge {
  position: absolute; bottom: -18px; right: -18px;
  padding: 22px 24px; background: var(--b500); color: var(--white);
  font-family: var(--font-serif); font-size: 1.05rem; font-weight: 300; font-style: italic;
  max-width: 190px; line-height: 1.5;
}
.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem); font-weight: 300; font-style: italic;
  color: var(--b700); line-height: 1.35;
  border-left: 2px solid var(--b400); padding-left: 22px;
  margin-bottom: 24px;
}
.about-text { font-size: 0.875rem; font-weight: 300; line-height: 1.85; color: var(--b700); opacity: 0.75; margin-bottom: 12px; }

/* Enables */
.enables-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--b100); margin-top: 64px;
}
.enable-card {
  background: var(--white); padding: 30px 26px;
  transition: background 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.enable-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--b500);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.enable-card:hover { background: var(--b010); transform: translateY(-2px); }
.enable-card:hover::before { transform: scaleX(1); }
.enable-n {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em;
  color: var(--b400); margin-bottom: 12px;
}
.enable-card h4 {
  font-size: 0.82rem; font-weight: 500; color: var(--b700);
  margin-bottom: 8px; line-height: 1.4; letter-spacing: 0.02em;
}
.enable-card p { font-size: 0.76rem; font-weight: 300; color: var(--b700); opacity: 0.6; line-height: 1.65; }

/* Vision block */
.vision-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-top: 80px;
}
.vision-img { position: relative; overflow: hidden; }
.vision-img img { width: 100%; height: 380px; object-fit: cover; }
.vision-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,30,61,0.7) 0%, transparent 50%);
}
.vision-img-text {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  font-family: var(--font-serif); font-size: 0.95rem; font-style: italic;
  color: rgba(255,255,255,0.85); line-height: 1.6;
}

/* ================================================================
   CLINICAL INTELLIGENCE
   ================================================================ */
.clinical-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; margin-top: 64px;
}
.clinical-img { position: relative; overflow: hidden; }
.clinical-img img { width: 100%; height: 480px; object-fit: cover; }
.clinical-img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(9,30,63,0.9));
  padding: 28px 22px;
  font-family: var(--font-serif); font-size: 0.95rem; font-style: italic;
  color: rgba(255,255,255,0.85); line-height: 1.5;
}
.eval-title {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--b700); margin-bottom: 14px; margin-top: 28px;
}
.eval-list { list-style: none; }
.eval-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--b100);
  font-size: 0.84rem; font-weight: 300; color: var(--b700); opacity: 0.8;
}
.eval-list li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--b400); flex-shrink: 0;
}
.tools-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--b100); margin-top: 56px;
}
.tool-card {
  background: var(--b050); padding: 26px 22px;
  transition: background 0.25s, transform 0.22s;
}
.tool-card:hover { background: var(--white); transform: translateY(-2px); }
.tool-marker { width: 8px; height: 8px; border-radius: 50%; background: var(--b500); margin-bottom: 14px; }
.tool-card h4 { font-size: 0.78rem; font-weight: 500; color: var(--b700); margin-bottom: 6px; line-height: 1.4; }
.tool-card p { font-size: 0.72rem; font-weight: 300; color: var(--b700); opacity: 0.55; line-height: 1.6; }

/* ================================================================
   SCIENTIFIC PLATFORM
   ================================================================ */
.platform-banner {
  width: 100%; height: 340px; position: relative; overflow: hidden;
}
.platform-banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.platform-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,18,40,0.92) 0%, rgba(10,18,40,0.5) 100%);
  display: flex; align-items: flex-end; padding: 48px 5vw;
}
.platform-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--b100); margin-top: 56px;
}
.platform-card {
  background: var(--white); padding: 32px 24px;
  transition: background 0.25s, transform 0.22s;
  position: relative; overflow: hidden;
}
.platform-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--b500), var(--b400));
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.platform-card:hover { background: var(--b010); transform: translateY(-3px); }
.platform-card:hover::after { transform: scaleX(1); }
.platform-card-bar { width: 22px; height: 2px; background: var(--b500); margin-bottom: 18px; }
.platform-card h3 { font-size: 0.79rem; font-weight: 500; color: var(--b700); line-height: 1.4; margin-bottom: 10px; }
.platform-card p { font-size: 0.72rem; font-weight: 300; color: var(--b700); opacity: 0.55; line-height: 1.65; }

.systems-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-top: 80px;
}
.systems-img { position: relative; overflow: hidden; }
.systems-img img { width: 100%; height: 380px; object-fit: cover; }
.systems-badge {
  position: absolute; top: 20px; left: -1px;
  padding: 14px 18px; background: var(--b800); color: var(--white);
  font-family: var(--font-serif); font-size: 0.88rem; font-style: italic;
  line-height: 1.5; max-width: 180px;
  border-left: 2px solid var(--b400);
}
.sys-list { list-style: none; margin-top: 24px; }
.sys-list li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--b100);
  font-size: 0.84rem; font-weight: 300; color: var(--b700); opacity: 0.8; line-height: 1.5;
}
.sys-list li:first-child { border-top: 1px solid var(--b100); }
.sys-n {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em;
  color: var(--b400); flex-shrink: 0; padding-top: 2px;
}

/* ================================================================
   EUREKA EFFECT
   ================================================================ */
.eureka-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start; margin-top: 64px;
}
.eureka-img { position: relative; overflow: hidden; }
.eureka-img img { width: 100%; height: 460px; object-fit: cover; }
.eureka-badge {
  position: absolute; top: 0; right: 0;
  padding: 10px 16px; background: var(--b500);
  font-family: var(--font-mono); font-size: 0.52rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--white);
}
.eureka-body { font-size: 0.875rem; font-weight: 300; line-height: 1.85; color: var(--b700); opacity: 0.75; margin-bottom: 14px; }
.discovery-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 28px;
}
.disc-card {
  padding: 18px 16px; background: var(--b050);
  border-left: 3px solid var(--b400);
  transition: border-color 0.25s, transform 0.22s;
}
.disc-card:hover { border-color: var(--b500); transform: translateX(3px); }
.disc-from {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--b400); margin-bottom: 6px;
}
.disc-arrow { font-size: 0.7rem; color: var(--b200); margin-bottom: 5px; }
.disc-to { font-size: 0.78rem; font-weight: 400; color: var(--b700); line-height: 1.45; }

/* Signal to Innovation */
.signal-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: var(--b100); margin-top: 64px;
}
.signal-card {
  background: var(--white); padding: 32px 22px; text-align: center;
  transition: background 0.25s;
}
.signal-card:hover { background: var(--b050); }
.signal-icon-wrap {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--b050); border: 1px solid var(--b100);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 1.1rem;
}
.signal-card h4 { font-size: 0.78rem; font-weight: 500; color: var(--b700); margin-bottom: 8px; }
.signal-card p { font-size: 0.72rem; font-weight: 300; color: var(--b700); opacity: 0.55; line-height: 1.6; }

/* ================================================================
   WHY MEDICA
   ================================================================ */
.why-banner {
  width: 100%; height: 260px; position: relative; overflow: hidden;
}
.why-banner img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.45) saturate(0.7); }
.why-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,18,40,0.92) 0%, rgba(10,18,40,0.4) 100%);
  display: flex; align-items: center; padding: 0 5vw;
}
.why-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--b700);
}
.why-card {
  background: var(--b800); padding: 34px 26px;
  transition: background 0.25s;
  border-bottom: 2px solid transparent;
}
.why-card:hover {
  background: var(--b700);
  border-bottom-color: var(--b400);
}
.why-n {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.16em;
  color: var(--b400); margin-bottom: 12px;
}
.why-card h3 { font-size: 0.82rem; font-weight: 500; color: rgba(255,255,255,0.88); margin-bottom: 8px; line-height: 1.4; }
.why-card p { font-size: 0.75rem; font-weight: 300; color: rgba(255,255,255,0.45); line-height: 1.65; }

/* ================================================================
   LEADERSHIP
   ================================================================ */
.leadership-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; margin-top: 64px;
}
.leader-card {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 28px; align-items: start;
  padding: 32px; border: 1px solid var(--b100);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.leader-card:hover {
  border-color: var(--b300);
  box-shadow: 0 8px 32px rgba(23,109,182,0.08);
}
.leader-photo { width: 160px; height: 190px; object-fit: cover; overflow: hidden; flex-shrink: 0; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75); }
.leader-name {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 400; color: var(--b700); margin-bottom: 4px;
}
.leader-role {
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--b400); margin-bottom: 16px;
}
.leader-bar { width: 24px; height: 1px; background: var(--b200); margin: 14px 0; }
.leader-bio { font-size: 0.8rem; font-weight: 300; line-height: 1.8; color: var(--b700); opacity: 0.7; }
.leader-email {
  display: inline-block; margin-top: 14px;
  font-size: 0.7rem; letter-spacing: 0.06em; color: var(--b500);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start; margin-top: 64px;
}
.contact-map { border: 1px solid var(--b100); overflow: hidden; }
.contact-map iframe { width: 100%; height: 300px; display: block; border: 0; }
.contact-map-footer {
  padding: 14px 18px; background: var(--b050); border-top: 1px solid var(--b100);
  font-size: 0.74rem; font-weight: 300; color: var(--b700); opacity: 0.65; line-height: 1.7;
}
.contact-row { padding: 18px 0; border-bottom: 1px solid var(--b100); }
.contact-row:first-child { padding-top: 0; }
.c-label {
  font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--b400); margin-bottom: 5px;
}
.c-value { font-size: 0.875rem; font-weight: 300; color: var(--b700); line-height: 1.7; }
.c-value a { color: var(--b500); }
.c-value a:hover { text-decoration: underline; }
.contact-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  background: var(--b900);
  padding: 64px 5vw 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; margin-bottom: 48px;
}
.footer-logo img { height: 26px; filter: brightness(0) invert(1); opacity: 0.7; margin-bottom: 14px; }
.footer-desc { font-size: 0.75rem; font-weight: 300; color: rgba(255,255,255,0.3); line-height: 1.8; max-width: 220px; }
.footer-col-h {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.76rem; font-weight: 300; color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.88); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-copy { font-size: 0.68rem; font-weight: 300; color: rgba(255,255,255,0.2); }
.footer-loc { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.16); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.visible    { opacity: 1 !important; transform: translate(0) !important; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1160px) {
  .platform-grid { grid-template-columns: repeat(2,1fr); }
  .about-layout,.clinical-layout,.eureka-layout,.contact-layout,
  .systems-layout,.vision-layout { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
  .signal-grid { grid-template-columns: repeat(2,1fr); }
  .leadership-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 940px) {
  /* Hide nav row 2 and brand on tablets */
  .nav-row2  { display: none; }
  .nav-brand { display: none; }
  .nav-ham   { display: flex; }
  .nav-drawer{ display: flex; }
  .nav-cta   { display: none; }
  :root { --nav-h: 56px; }
  #home { padding-top: calc(var(--nav-h) + 48px); }
}

@media (max-width: 768px) {
  .section { padding: 70px 5vw; }
  .enables-grid { grid-template-columns: 1fr; }
  .tools-grid   { grid-template-columns: 1fr; }
  .discovery-grid { grid-template-columns: 1fr; }
  .platform-grid  { grid-template-columns: 1fr; }
  .why-grid       { grid-template-columns: 1fr; }
  .signal-grid    { grid-template-columns: 1fr 1fr; }
  .footer-top     { grid-template-columns: 1fr; }
  #stats-bar      { grid-template-columns: 1fr 1fr; }
  .hero-right     { display: none; }
  #home           { grid-template-columns: 1fr; }
  .leader-card    { grid-template-columns: 1fr; }
  .about-img-badge{ right: 0; bottom: -14px; }
}

@media (max-width: 520px) {
  .signal-grid { grid-template-columns: 1fr; }
  h1.hero-h1 { font-size: 2.4rem; }
}
