/* =====================================================================
   Mann Scanning Centre — Cinematic Design System
   Light : Porcelain & Signal Blue
   Dark  : Obsidian & Liquid Chrome (default)
   ===================================================================== */

/* ---------- Theme Tokens ---------- */
:root,
[data-theme="light"] {
  --bg:          #FBFBFD;
  --bg-2:        #F5F5F7;
  --surface:     #FFFFFF;
  --surface-2:   #F5F5F7;
  --text:        #1D1D1F;
  --text-2:      #6E6E73;
  --text-3:      #86868B;
  --accent:      #0071E3;
  --accent-2:    #0077ED;
  --accent-soft: #E8F1FC;
  --accent-ink:  #1D1D1F;
  --gold:        #A8823A;
  --line:        #E5E5EA;
  --line-2:      #D2D2D7;
  --ring:        rgba(0,113,227,.22);
  --shadow:      0 1px 2px rgba(0,0,0,.04), 0 14px 34px rgba(0,0,0,.06);
  --shadow-lg:   0 30px 80px rgba(0,0,0,.12);
  --hero-glow-1: rgba(0,113,227,.14);
  --hero-glow-2: rgba(140,180,255,.18);
  --on-accent:   #FFFFFF;
  --chrome:      linear-gradient(100deg, #1D1D1F 0%, #6E6E73 30%, #1D1D1F 50%, #4A5A78 70%, #1D1D1F 100%);
  --glass:       rgba(255,255,255,.66);
  --scrim:       linear-gradient(180deg, rgba(251,251,253,0) 40%, rgba(251,251,253,.92) 100%);

  /* legacy aliases (kept so any residual inline styles stay coherent) */
  --bg-primary: var(--bg);
  --bg-secondary: var(--surface-2);
  --bg-glass: var(--surface);
  --text-primary: var(--text);
  --text-secondary: var(--text-2);
  --accent-primary: var(--accent);
  --accent-secondary: var(--gold);
  --border-color: var(--line);
  --shadow-color: rgba(0,0,0,.10);
  --glow-color: var(--ring);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22,1,.36,1);
}

[data-theme="dark"] {
  --bg:          #000000;
  --bg-2:        #0A0A0C;
  --surface:     #111114;
  --surface-2:   #1A1A1D;
  --text:        #F5F5F7;
  --text-2:      #A1A1A6;
  --text-3:      #6E6E73;
  --accent:      #2997FF;
  --accent-2:    #4FB0FF;
  --accent-soft: rgba(41,151,255,.12);
  --accent-ink:  #000000;
  --gold:        #D4B06A;
  --line:        #1F1F23;
  --line-2:      #2C2C31;
  --ring:        rgba(41,151,255,.30);
  --shadow:      0 1px 2px rgba(0,0,0,.5), 0 20px 44px rgba(0,0,0,.55);
  --shadow-lg:   0 40px 90px rgba(0,0,0,.7);
  --hero-glow-1: rgba(41,151,255,.20);
  --hero-glow-2: rgba(212,176,106,.12);
  --on-accent:   #FFFFFF;
  --chrome:      linear-gradient(100deg, #8E8E93 0%, #FFFFFF 25%, #A1A1A6 45%, #E8EEF8 65%, #7F8BA3 85%, #FFFFFF 100%);
  --glass:       rgba(22,22,26,.62);
  --scrim:       linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.94) 100%);

  --bg-secondary: var(--surface-2);
  --bg-glass: var(--surface);
  --accent-secondary: var(--gold);
  --shadow-color: rgba(0,0,0,.5);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .6em;
}

p { margin: 0 0 1.1em; color: var(--text-2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  opacity: .6;
}
.eyebrow--center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 10px 26px var(--ring);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 16px 34px var(--ring); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--light {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease, border-color .4s ease;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; cursor: pointer; }
.brand img { height: 46px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: 10px;
  position: relative;
  transition: color .2s ease, background-color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: all .25s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.icon-btn svg { width: 19px; height: 19px; }
.sound-btn .sound-wave, .sound-btn.is-on .sound-mute { display: none; }
.sound-btn.is-on .sound-wave { display: inline; }
.sound-btn.is-on { color: var(--accent); border-color: var(--accent); }
.nav-cta { padding: 11px 22px; font-size: 14px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__bg::before, .hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.hero__bg::before {
  width: 540px; height: 540px;
  top: -160px; right: -120px;
  background: var(--hero-glow-1);
}
.hero__bg::after {
  width: 460px; height: 460px;
  bottom: -200px; left: -140px;
  background: var(--hero-glow-2);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  line-height: 1.06;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}
.hero__title .accent { color: var(--accent); font-style: italic; }
.hero__text {
  font-size: 1.18rem;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__stats { display: flex; gap: 38px; flex-wrap: wrap; }
.hero__stat .num { font-family: var(--font-display); font-size: 2rem; color: var(--text); line-height: 1; }
.hero__stat .lbl { font-size: 13px; color: var(--text-3); margin-top: 6px; letter-spacing: .02em; }

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
  display: flex; align-items: center; justify-content: center;
}
.hero__visual img { width: 78%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.25)); animation: floaty 7s ease-in-out infinite; }
.hero__visual-tag {
  position: absolute;
  left: 22px; bottom: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.hero__visual-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.hero__visual-tag b { font-family: var(--font-sans); font-size: 13.5px; color: var(--text); font-weight: 600; }
.hero__visual-tag span { font-size: 12px; color: var(--text-3); display: block; }

@keyframes floaty { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* ---------- Marquee trust strip ---------- */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.trust__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 22px; padding: 26px 0;
}
.trust__item { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.trust__item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-2); }
.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head.left { text-align: left; margin-left: 0; }
.section__title { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: -.02em; }
.section__intro { font-size: 1.12rem; color: var(--text-2); margin: 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.svc-card { display: flex; flex-direction: column; }
.svc-card__icon {
  width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 22px;
}
.svc-card__icon svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.svc-card p { font-size: 1rem; margin-bottom: 18px; }
.svc-card__link {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.svc-card__link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.svc-card:hover .svc-card__link svg { transform: translateX(4px); }

/* feature list with checks */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text-2); font-size: 1.02rem; line-height: 1.6; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 3px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230071E3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232997FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.checklist li strong { color: var(--text); font-weight: 600; }

/* doctor card */
.doctor { text-align: center; }
.doctor__avatar {
  width: 86px; height: 86px; margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 600;
  border: 1px solid var(--line);
}
.doctor h4 { font-size: 1.3rem; margin-bottom: 4px; }
.doctor .role { font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.doctor p { font-size: .98rem; }

/* stat tiles */
.stat-tile { text-align: center; padding: 30px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat-tile .num { font-family: var(--font-display); font-size: 2.7rem; color: var(--accent); line-height: 1; }
.stat-tile .lbl { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* soft panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.panel--soft { background: var(--surface-2); }
.panel h3, .panel h4 { color: var(--text); }
.panel .panel-accent { color: var(--accent); }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--on-accent);
  padding: 64px 56px;
  text-align: center;
}
[data-theme="dark"] .cta { background: linear-gradient(135deg, #15203D, #0E1730); border: 1px solid var(--line-2); }
.cta h2 { color: var(--on-accent); font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
[data-theme="dark"] .cta h2 { color: var(--gold); }
.cta p { color: color-mix(in srgb, var(--on-accent) 86%, transparent); font-size: 1.15rem; max-width: 600px; margin: 0 auto 30px; }
[data-theme="dark"] .cta p { color: var(--text-2); }
.cta .btn--primary { background: var(--surface); color: var(--accent); box-shadow: none; }
.cta .btn--primary:hover { background: var(--surface-2); }
[data-theme="dark"] .cta .btn--primary { background: var(--gold); color: var(--accent-ink); }
.cta .btn--ghost { color: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 45%, transparent); }
[data-theme="dark"] .cta .btn--ghost { color: var(--text); border-color: var(--line-2); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 84px 0 56px; text-align: center; position: relative; overflow: hidden; }
.page-hero .hero__bg { z-index: 0; }
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 18px; }
.page-hero p { font-size: 1.18rem; color: var(--text-2); margin: 0; }

/* ---------- Service detail blocks (services.html) ---------- */
.svc-detail { display: grid; grid-template-columns: 380px 1fr; gap: 40px; align-items: start; }
.svc-detail__media {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 220px;
}
.svc-detail__media img { max-height: 220px; width: auto; }
.svc-detail h3 { font-size: 1.7rem; margin-bottom: 8px; }
.svc-detail .kicker { font-family: var(--font-sans); font-size: 13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color: var(--accent); margin-bottom: 16px; display:block; }
.subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.subcard { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.subcard h5 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; letter-spacing:.02em; color: var(--text); margin-bottom: 12px; text-transform: uppercase; }
.subcard ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: .97rem; line-height: 1.7; }

/* ---------- Tabs (fellowship) ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 44px; background: var(--surface-2); border: 1px solid var(--line); padding: 8px; border-radius: 999px; max-width: max-content; margin-left: auto; margin-right: auto; }
.tab-btn {
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600;
  color: var(--text-2); background: transparent; border: none; cursor: pointer;
  padding: 11px 22px; border-radius: 999px; transition: all .25s ease;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--accent); color: var(--on-accent); }
.tab-content { display: none; animation: fade .4s ease; }
.tab-content.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 28px; }
.timeline::before { content:""; position:absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line-2); }
.timeline-item { position: relative; padding: 0 0 30px 30px; }
.timeline-item::before { content:""; position:absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.timeline-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.timeline-item p { font-size: .98rem; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: 15px;
  color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.form-check { display: flex; align-items: flex-start; gap: 12px; }
.form-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.form-note { color: var(--text-3); font-size: 14px; }

/* ---------- Calculator ---------- */
.calc-card { max-width: 620px; margin: 0 auto; }
.calc-result { margin-top: 26px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: none; }
.calc-result.show { display: block; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.calc-row:last-child { border-bottom: none; }
.calc-row .k { color: var(--text-2); }
.calc-row .v { font-weight: 600; color: var(--accent); font-family: var(--font-sans); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 70px 0 34px; }
[data-theme="dark"] .site-footer { background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 42px; }
.footer-brand span { font-family: var(--font-display); font-size: 20px; color: var(--text); }
.site-footer h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.site-footer p, .site-footer li, .site-footer a { font-size: 14.5px; color: var(--text-2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.footer-bottom p { margin: 0; font-size: 13.5px; color: var(--text-3); }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--accent); }

/* ---------- Floating book button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 850;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--on-accent);
  padding: 14px 22px; border-radius: 999px; font-family: var(--font-sans);
  font-weight: 600; font-size: 14.5px; box-shadow: 0 14px 34px var(--ring);
  transition: transform .25s ease;
}
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 18px; height: 18px; }

/* ---------- LMP modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8,12,24,.55); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.modal__close { float: right; cursor: pointer; color: var(--text-3); font-size: 26px; line-height: 1; background: none; border: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .svc-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 78px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; gap: 4px; box-shadow: var(--shadow);
  }
  .site-header.open .nav-links a { padding: 14px; border-radius: 10px; }
  .site-header.open .nav-links a.active::after { display: none; }
  .section { padding: 64px 0; }
  .grid--2, .grid--3, .grid--4, .form-row, .subgrid { grid-template-columns: 1fr; }
  .cta { padding: 44px 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .form-card, .panel, .card { padding: 26px; }
  .tabs { width: 100%; overflow-x: auto; justify-content: flex-start; border-radius: var(--radius); }
}
@media (max-width: 420px) {
  .brand-name { font-size: 18px; }
  .brand-name small { display: none; }
  .hero { padding: 64px 0 56px; }
  .fab span { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .fab, .icon-btn, .modal { display: none !important; }
  body { background: #fff; color: #000; }
}

/* =====================================================================
   Cinematic layer — liquid morph, film hero, showcase
   ===================================================================== */

/* ---------- Type refinements ---------- */
body { font-size: 17px; line-height: 1.6; letter-spacing: -.011em; }
h1, h2, h3, h4, h5, h6 { font-weight: 650; letter-spacing: -.032em; line-height: 1.07; }
.section__title { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.hero__title .accent { font-style: normal; }
.eyebrow { letter-spacing: .14em; font-size: 12px; color: var(--text-3); }
.eyebrow::before { background: linear-gradient(90deg, transparent, var(--accent)); opacity: 1; }
.brand-name { font-weight: 650; letter-spacing: -.025em; font-size: 19px; }
.footer-brand span { font-weight: 650; letter-spacing: -.02em; }
.footer-tagline { font-style: normal; font-weight: 600; letter-spacing: .02em; }
.stat-tile .num, .hero__stat .num { font-weight: 700; letter-spacing: -.04em; }
.doctor__avatar { font-weight: 700; }

/* chrome text — liquid metal sheen that drifts */
.chrome {
  background: var(--chrome);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--text);
  -webkit-text-fill-color: transparent;
  animation: sheen 9s var(--ease) infinite;
}
@keyframes sheen { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- Header: floating glass bar ---------- */
.site-header {
  background: var(--glass);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background-color .5s ease, border-color .5s ease;
}
.nav { height: 64px; }
.brand img { height: 38px; }
.nav-links a { font-size: 13.5px; color: var(--text-2); padding: 8px 13px; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { left: 50%; right: auto; width: 4px; height: 4px; border-radius: 50%; transform: translateX(-50%); bottom: -2px; }
.icon-btn, .nav-toggle { background: transparent; border-color: var(--line-2); }
.nav-cta { padding: 8px 18px; font-size: 13px; }
.site-header.is-over-film:not(.scrolled):not(.open) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-over-film:not(.scrolled):not(.open) .nav-links a,
.site-header.is-over-film:not(.scrolled):not(.open) .brand-name,
.site-header.is-over-film:not(.scrolled):not(.open) .icon-btn,
.site-header.is-over-film:not(.scrolled):not(.open) .nav-toggle { color: #F5F5F7; border-color: rgba(245,245,247,.3); }
.site-header.is-over-film:not(.scrolled):not(.open) .brand-name small { color: rgba(245,245,247,.6); }

/* ---------- Buttons: liquid fill ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; font-weight: 600; padding: 14px 26px; transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .4s ease, border-color .4s ease, background-color .4s ease; }
.btn::after {
  content: ""; position: absolute; z-index: -1;
  left: var(--bx, 50%); top: var(--by, 50%);
  width: 0; height: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, #fff 22%, transparent);
  transition: width .6s var(--ease), height .6s var(--ease);
}
.btn:hover::after { width: 260%; height: 600%; }
.btn--primary { box-shadow: 0 8px 30px var(--ring); }
.btn--ghost { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost::after { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ---------- Cards: glass + cursor spotlight ---------- */
.card, .panel, .stat-tile, .subcard, .svc-detail__media, .form-card { border-radius: var(--radius); }
.card, .stat-tile { position: relative; overflow: hidden; }
.card::before, .stat-tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  transition: opacity .5s ease;
}
.card:hover::before, .stat-tile:hover::before { opacity: 1; }
.card--hover:hover { transform: translateY(-8px) scale(1.01); }
.svc-card__icon { border-radius: 18px; background: linear-gradient(145deg, var(--accent-soft), transparent); border: 1px solid var(--line); }

/* ---------- CTA: obsidian slab with liquid aura ---------- */
.cta, [data-theme="dark"] .cta {
  background: radial-gradient(120% 140% at 50% 120%, #0B2A55 0%, #05070D 55%, #000 100%);
  border: 1px solid #1F1F23; color: #F5F5F7;
}
.cta h2, [data-theme="dark"] .cta h2 { color: #F5F5F7; }
.cta p, [data-theme="dark"] .cta p { color: #A1A1A6; }
.cta .btn--primary, [data-theme="dark"] .cta .btn--primary { background: #F5F5F7; color: #000; }
.cta .btn--ghost, [data-theme="dark"] .cta .btn--ghost { color: #F5F5F7; border-color: rgba(245,245,247,.3); }
.cta::before {
  content: ""; position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(41,151,255,.25), transparent 30%, rgba(212,176,106,.18), transparent 60%);
  filter: blur(60px); animation: spin 18s linear infinite;
}
.cta > * { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- Liquid blobs (gooey morph) ---------- */
.hero__bg::before { display: none; }
.goo { position: absolute; inset: 0; filter: url(#goo) blur(48px); opacity: .45; }
.goo span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), var(--accent) 55%, transparent 72%);
  animation: drift 16s var(--ease) infinite alternate;
}
.goo span:nth-child(1) { width: 34vmax; height: 34vmax; left: -8vmax; top: -12vmax; }
.goo span:nth-child(2) { width: 22vmax; height: 22vmax; right: -4vmax; top: 2vmax; animation-duration: 19s; animation-delay: -4s; background: radial-gradient(circle at 30% 30%, #FFFFFF, var(--gold) 50%, transparent 72%); opacity: .5; }
.goo span:nth-child(3) { width: 26vmax; height: 26vmax; left: 30%; bottom: -16vmax; animation-duration: 22s; animation-delay: -9s; }
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); border-radius: 50% 50% 50% 50%; }
  33%  { transform: translate(6vmax, 3vmax) scale(1.12); border-radius: 58% 42% 55% 45%; }
  66%  { transform: translate(-3vmax, 6vmax) scale(.92); border-radius: 44% 56% 40% 60%; }
  100% { transform: translate(4vmax, -4vmax) scale(1.05); border-radius: 52% 48% 60% 40%; }
}
.page-hero { padding: 150px 0 90px; margin-top: -64px; }
.page-hero .hero__bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
[data-theme="light"] .page-hero .hero__bg video { opacity: .12; filter: grayscale(.5) contrast(1.1); }
.page-hero .hero__bg::after {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; filter: none;
  top: auto; bottom: 0; left: 0; right: 0; height: 100%; background: var(--scrim);
}

/* ---------- Film hero (home) ---------- */
.film {
  position: relative; height: 100svh; min-height: 620px;
  margin-top: -64px; /* sit under the glass bar */
  overflow: hidden; background: #000; color: #F5F5F7;
}
.film__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.12 - var(--p, 0) * .12)); transform-origin: 50% 40%;
}
.film::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 45%, transparent 0%, rgba(0,0,0,.45) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 25%, transparent 50%, #000 100%);
}
.film__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 24px 11vh;
  opacity: calc(1 - var(--p, 0) * 1.6);
  transform: translateY(calc(var(--p, 0) * -60px));
}
.film .eyebrow { color: rgba(245,245,247,.72); }
.film .eyebrow::before { display: none; }
.film__title {
  font-size: clamp(3rem, 9vw, 8rem); line-height: .95; letter-spacing: -.055em; font-weight: 700;
  color: #F5F5F7; margin: 0 0 22px; max-width: 13ch;
}
.film__title .chrome { --chrome: linear-gradient(100deg, #8E8E93 0%, #FFFFFF 25%, #A1A1A6 45%, #E8EEF8 65%, #7F8BA3 85%, #FFFFFF 100%); }
.film__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(245,245,247,.75); max-width: 600px; margin: 0 auto 32px; }
.film .hero__actions { justify-content: center; margin-bottom: 0; }
.film .btn--ghost { color: #F5F5F7; border-color: rgba(245,245,247,.35); }
.film .btn--primary { background: #F5F5F7; color: #000; box-shadow: none; }
.film__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid rgba(245,245,247,.5); border-radius: 14px;
}
.film__scroll::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: #F5F5F7; animation: wheel 2s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* word rise */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(6deg); filter: blur(8px); transition: transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--i) * 70ms + 200ms); }
.split.in .w > span { transform: none; filter: none; }

/* ---------- Statement band ---------- */
.statement { padding: 140px 0 60px; text-align: center; }
.statement p {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.12; letter-spacing: -.035em; font-weight: 650; color: var(--text);
  max-width: 22ch; margin: 0 auto;
}
.statement p .dim { color: var(--text-3); }

/* ---------- Expanding video frame (scroll-driven) ---------- */
.expand { height: 220vh; position: relative; }
.expand__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.expand__frame {
  position: relative; width: 100%; height: 100%; background: #000;
  clip-path: inset(calc((1 - var(--e, 0)) * 16%) calc((1 - var(--e, 0)) * 22%) round calc((1 - var(--e, 0)) * 48px));
  will-change: clip-path;
}
.expand__frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.25 - var(--e, 0) * .25)); }
.expand__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.8)); pointer-events: none; }
.expand__caption {
  position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 2; text-align: center; color: #F5F5F7;
  opacity: calc((var(--e, 0) - .6) * 2.5); padding: 0 24px;
}
.expand__caption h2 { color: #F5F5F7; font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 10px; }
.expand__caption p { color: rgba(245,245,247,.75); max-width: 560px; margin: 0 auto; }

/* ---------- Modality showcase ---------- */
.reel { padding: 120px 0; }
.reel__grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.reel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.reel__item {
  position: relative; cursor: pointer; padding: 18px 22px; border-radius: 18px;
  transition: background-color .5s var(--ease);
}
.reel__item h3 { font-size: 1.4rem; margin: 0; color: var(--text-3); transition: color .4s ease; }
.reel__item p { margin: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: .98rem; transition: max-height .7s var(--ease), opacity .5s ease, margin .5s ease; }
.reel__item.active { background: var(--surface-2); }
.reel__item.active h3 { color: var(--text); }
.reel__item.active p { max-height: 140px; opacity: 1; margin-top: 8px; }
.reel__item::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 8px; height: 2px; border-radius: 2px;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
}
.reel__item.active::after { animation: progress var(--dur, 7s) linear forwards; }
.reel.paused .reel__item.active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.reel__stage {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden;
  background: #000; box-shadow: var(--shadow-lg); isolation: isolate;
}
.reel__stage video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: circle(0% at var(--cx, 50%) var(--cy, 50%));
  filter: blur(14px) saturate(1.4); transform: scale(1.08);
  transition: clip-path 1.3s var(--ease), filter 1.3s var(--ease), transform 1.6s var(--ease);
}
.reel__stage video.on { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); filter: none; transform: none; z-index: 1; }
.reel__stage video.off { z-index: 0; clip-path: circle(150% at 50% 50%); filter: none; transform: none; transition: none; }
.reel__tag {
  position: absolute; z-index: 3; left: 20px; bottom: 20px;
  background: rgba(0,0,0,.45); color: #F5F5F7; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 9px 16px; font-size: 13px; font-weight: 600;
}

/* ---------- Trust marquee ---------- */
.trust { overflow: hidden; background: var(--bg); }
.trust__inner { flex-wrap: nowrap; justify-content: flex-start; gap: 64px; width: max-content; max-width: none; animation: marquee 34s linear infinite; }
.trust:hover .trust__inner { animation-play-state: paused; }
.trust__item { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Media inside service blocks ---------- */
.svc-detail__media { padding: 0; overflow: hidden; background: var(--surface-2); min-height: 0; aspect-ratio: 4 / 3; position: relative; }
.svc-detail__media img { max-height: none; width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.svc-detail__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Liquid page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.pt svg { width: 100%; height: 100%; display: block; }
.pt path { fill: #000; }
.pt.busy { pointer-events: all; }

/* ---------- Reveal: blur-rise ---------- */
.reveal { transform: translateY(40px) scale(.98); filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.visible { filter: none; }

/* ---------- Responsive (cinematic layer) ---------- */
@media (max-width: 980px) {
  .reel__grid { grid-template-columns: 1fr; gap: 28px; }
  .reel__list { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; }
  .reel__item { scroll-snap-align: start; }
  .reel__item p { display: none; }
  .reel__stage { order: -1; }
  .expand { height: 160vh; }
}
@media (max-width: 760px) {
  .site-header.open .nav-links { top: 64px; background: var(--bg); }
  .film__inner { padding-bottom: 14vh; }
  .statement { padding: 90px 0 30px; }
  .reel { padding: 72px 0; }
  .page-hero { padding: 120px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .film__video, .expand__frame video { transform: none; }
  .film__inner { opacity: 1; transform: none; }
  .expand { height: auto; }
  .expand__sticky { position: relative; height: 70vh; }
  .expand__frame { clip-path: none; }
  .expand__caption { opacity: 1; }
  .split .w > span { transform: none; filter: none; }
  .reveal { filter: none; }
  .trust__inner { flex-wrap: wrap; width: auto; }
  .reel__stage video { clip-path: none; filter: none; transform: none; opacity: 0; }
  .reel__stage video.on { opacity: 1; }
}

/* Nav collapses earlier so links never wrap */
.nav-links a, .brand-name { white-space: nowrap; }
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px; gap: 4px; box-shadow: var(--shadow);
  }
  .site-header.open .nav-links a { padding: 14px; font-size: 16px; color: var(--text); }
  .site-header.open .nav-links a.active::after { display: none; }
}



/* Hero legibility: the film turns bright white as the chrome solidifies */
.film::after {
  background:
    radial-gradient(80% 60% at 50% 40%, transparent 0%, rgba(0,0,0,.4) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 20%, rgba(0,0,0,.3) 42%, rgba(0,0,0,.78) 72%, #000 100%);
}
.reel__grid > * { min-width: 0; }
@media (max-width: 760px) {
  .film::after { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.45) 30%, rgba(0,0,0,.7) 55%, #000 100%); }
}
@media (max-width: 420px) {
  .brand { gap: 9px; min-width: 0; }
  .brand img { height: 32px; }
  .brand-name { font-size: 15.5px; }
  .nav-actions { gap: 6px; }
  .icon-btn, .nav-toggle { width: 38px; height: 38px; }
}
