/* Balaji Heart Center — design system v2 */

/* ── Tokens ── */
:root {
  --bg: oklch(99% 0.002 250);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(97.5% 0.004 250);
  --fg: oklch(15% 0.012 250);
  --muted: oklch(48% 0.014 250);
  --subtle: oklch(64% 0.012 250);
  --border: oklch(92% 0.005 250);
  --border-strong: oklch(86% 0.008 250);
  --accent: oklch(58% 0.18 22);
  --accent-fg: oklch(98% 0.01 22);
  --accent-soft: oklch(96% 0.03 22);
  --ok: oklch(58% 0.14 145);
  --shadow-sm: 0 1px 0 oklch(0% 0 0 / 4%), 0 1px 2px oklch(0% 0 0 / 4%);
  --shadow-md: 0 1px 2px oklch(0% 0 0 / 4%), 0 8px 24px oklch(0% 0 0 / 7%);
  --shadow-lg: 0 4px 6px oklch(0% 0 0 / 4%), 0 20px 56px oklch(0% 0 0 / 10%);
  --radius: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "IBM Plex Mono", Menlo, monospace;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 64px;
}
[data-theme="dark"] {
  --bg: oklch(14% 0.015 255);
  --surface: oklch(17.5% 0.015 255);
  --surface-2: oklch(20% 0.015 255);
  --fg: oklch(96% 0.005 250);
  --muted: oklch(64% 0.018 250);
  --subtle: oklch(48% 0.018 250);
  --border: oklch(24% 0.015 255);
  --border-strong: oklch(30% 0.018 255);
  --accent: oklch(68% 0.20 22);
  --accent-fg: oklch(14% 0.04 22);
  --accent-soft: oklch(22% 0.06 22);
  --shadow-sm: 0 1px 0 oklch(0% 0 0 / 30%);
  --shadow-md: 0 1px 2px oklch(0% 0 0 / 30%), 0 8px 30px oklch(0% 0 0 / 40%);
  --shadow-lg: 0 4px 8px oklch(0% 0 0 / 30%), 0 24px 60px oklch(0% 0 0 / 55%);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
  letter-spacing: -0.005em; text-wrap: pretty;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-fg); }

/* ── Layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); width: 100%; }

/* ── Type ── */
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(34px, 5.5vw, 68px); line-height: 1.03; letter-spacing: -0.032em; }
h2 { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.026em; }
h3 { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.22; letter-spacing: -0.018em; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); line-height: 1.62; max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface);
  align-self: flex-start; width: fit-content;
}
.eyebrow::before {
  content: ""; width: 12px; height: 12px; flex-shrink: 0;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%2021.35l-1.45-1.32C5.4%2015.36%202%2012.28%202%208.5%202%205.42%204.42%203%207.5%203c1.74%200%203.41.81%204.5%202.09C13.09%203.81%2014.76%203%2016.5%203%2019.58%203%2022%205.42%2022%208.5c0%203.78-3.4%206.86-8.55%2011.54L12%2021.35z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%2021.35l-1.45-1.32C5.4%2015.36%202%2012.28%202%208.5%202%205.42%204.42%203%207.5%203c1.74%200%203.41.81%204.5%202.09C13.09%203.81%2014.76%203%2016.5%203%2019.58%203%2022%205.42%2022%208.5c0%203.78-3.4%206.86-8.55%2011.54L12%2021.35z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: bhc-heartbeat 1.5s ease-in-out infinite;
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max); margin: 0 auto;
  padding-inline: var(--gutter); gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.02em;
  transition: opacity .15s; flex-shrink: 0;
}
.brand:hover { opacity: 0.74; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), oklch(45% 0.18 18));
  display: grid; place-items: center; color: white;
  box-shadow: inset 0 0 0 1px oklch(0% 0 0 / 12%);
  flex-shrink: 0;
}
.brand-mark svg { width: 15px; height: 15px; }
.brand:hover .brand-mark svg { animation: bhc-heartbeat 0.65s ease-in-out; }
.brand-name { font-size: 15px; }
.brand-city { color: var(--muted); font-weight: 400; }
.nav-links { display: none; gap: 2px; flex: 1; justify-content: center; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-links a {
  padding: 8px 12px; font-size: 14px; color: var(--muted);
  border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links a.active { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Buttons ── */
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--muted); border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.icon-btn svg { width: 16px; height: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .12s, opacity .15s;
  white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { opacity: 0.9; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; }
.hidden-md { display: none; }
@media (min-width: 880px) {
  .hidden-md { display: initial; }
  /* Restore flex display for buttons that use hidden-md — initial resolves to inline which gets blockified */
  .btn.hidden-md { display: inline-flex; }
}

/* ── Hamburger toggle ── */
.menu-toggle {
  display: none; position: relative;
  width: 34px; height: 34px; border-radius: 8px;
  color: var(--muted); border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s; cursor: pointer;
}
@media (max-width: 959px) { .menu-toggle { display: grid; place-items: center; } }
.menu-toggle:hover { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.menu-toggle .bar {
  position: absolute; left: 8px; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .26s cubic-bezier(0.4, 0, 0.2, 1), opacity .2s;
}
.menu-toggle .bar:nth-child(1) { top: 11px; }
.menu-toggle .bar:nth-child(2) { top: 16.5px; }
.menu-toggle .bar:nth-child(3) { top: 22px; }
.menu-toggle.open .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(24px);
  -webkit-backdrop-filter: saturate(140%) blur(24px);
  border-top: 1px solid var(--border);
  padding: 20px var(--gutter) max(20px, env(safe-area-inset-bottom));
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: block; padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px; font-weight: 500; transition: color .15s;
}
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu nav a:active { color: var(--accent); }
.mobile-menu .btn { margin-top: 24px; width: 100%; justify-content: center; height: 48px; font-size: 16px; }

/* ── Page hero (sub-pages) ── */
.page-hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(20px, 2.5vw, 36px);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 100% 0%, color-mix(in oklch, var(--accent) 4%, transparent) 0%, transparent 45%);
}
.page-hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 880px) { .page-hero-grid { grid-template-columns: 1.2fr 1fr; } }
.page-hero h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.1; }
.page-hero .wrap > * + * { margin-top: 20px; }
.page-hero-grid > div > * + * { margin-top: 18px; }
.crumbs {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px;
}
.crumbs a:hover { color: var(--fg); }
.crumbs svg { width: 10px; height: 10px; opacity: 0.4; }

/* ── Sections ── */
section.section { padding: clamp(60px, 8vw, 104px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > * + * { margin-top: 14px; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Card ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.card-hover { transition: border-color .2s, transform .25s cubic-bezier(0.2,1,0.2,1), box-shadow .25s; }
.card-hover:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ── Services ── */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--surface); padding: 26px; transition: background .18s;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px; text-decoration: none;
}
.service-card:hover { background: var(--surface-2); }
.service-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  transition: background .2s, color .2s, transform .28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-icon svg { width: 20px; height: 20px; }
.service-card:hover .service-icon { background: var(--accent); color: var(--accent-fg); transform: scale(1.1) rotate(6deg); }
.service-title { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.service-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; flex: 1; }
.service-link { margin-top: auto; font-size: 13px; font-weight: 500; color: var(--fg); display: inline-flex; align-items: center; gap: 4px; transition: gap .15s; }
.service-card:hover .service-link { gap: 8px; }
.service-link svg { width: 12px; height: 12px; }

/* ── Contact CTA ── */
.contact-cta {
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(70% 100% at 100% 0%, color-mix(in oklch, var(--accent) 6%, transparent), transparent 55%), var(--surface);
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 880px) { .contact-cta { grid-template-columns: 1fr 280px; align-items: center; } }
.contact-cta p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.contact-cta-side { display: flex; flex-direction: column; gap: 10px; }
.contact-card { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.contact-card .label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-card .val { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.contact-card.row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }

/* ── Stat strip ── */
.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 720px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 4px; transition: background .2s ease; cursor: default; }
.stat:hover { background: var(--surface-2); }
.stat:hover .stat-num { color: var(--accent); }
.stat-num { font-family: var(--font-mono); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.025em; transition: color .2s ease; }
.stat-num .unit { font-size: 0.52em; color: var(--muted); margin-left: 2px; }
.stat-label { font-size: 13px; color: var(--muted); }

/* ── Prose ── */
.prose { max-width: 100%; }
.prose > * + * { margin-top: 24px; }
.prose p { font-size: 17px; line-height: 1.72; }
.prose h2 { margin-top: 44px; margin-bottom: 18px; }
.prose h3 { margin-top: 30px; margin-bottom: 14px; }
.prose ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.prose ul li { padding-left: 24px; position: relative; color: var(--muted); font-size: 16px; line-height: 1.65; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 1.5px; background: var(--accent); }
.quote {
  position: relative;
  margin: 48px 0;
  padding: 36px 40px 32px 52px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: linear-gradient(105deg, color-mix(in oklch, var(--accent) 5%, var(--surface-2)), var(--surface-2) 70%);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.48;
  font-style: italic;
}
.quote::before {
  content: '\201C';
  position: absolute;
  top: -4px;
  left: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 100px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}
.quote .by {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quote .by::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Form ── */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 16px; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 16%, transparent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--subtle); }

/* ── Docs layout (About page) ── */
.docs { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 960px) { .docs { grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); } }
.docs-nav {
  position: sticky; top: 88px; align-self: start;
  display: none; flex-direction: column; gap: 4px;
  padding-right: 16px; border-right: 1px solid var(--border);
}
@media (min-width: 960px) { .docs-nav { display: flex; } }
.docs-nav-label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 10px; margin-bottom: 4px; }
.docs-nav a { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--muted); transition: color .15s, background .15s; }
.docs-nav a:hover { color: var(--fg); background: var(--surface-2); }
.docs-nav a.active { color: var(--fg); background: var(--surface-2); }
.docs-nav a .n { font-family: var(--font-mono); font-size: 10px; color: var(--subtle); letter-spacing: 0.04em; }
.docs-nav a.active .n { color: var(--accent); }
.docs-body { min-width: 0; }
.docs-body h2 { scroll-margin-top: 96px; }

/* ── Service detail (Services page) ── */
.service-tabs {
  display: flex; flex-wrap: nowrap; gap: 6px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; width: max-content; max-width: 100%;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.service-tabs::-webkit-scrollbar { display: none; }
.service-tabs button { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; flex-shrink: 0; }
.service-tabs button:hover { color: var(--fg); }
.service-tabs button.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.service-detail { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); padding-block: clamp(28px, 3vw, 48px); align-items: center; }
@media (min-width: 880px) { .service-detail { grid-template-columns: 1fr 1fr; } }
.detail-copy > * + * { margin-top: 20px; }
.detail-copy { min-width: 0; }
.detail-visual { aspect-ratio: 16/10; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-md); width: 100%; min-width: 0; align-self: center; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: 100%; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-list { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .detail-list { grid-template-columns: 1fr 1fr; } }
.detail-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.detail-list li svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }

/* ── Gallery tabs ── */
.gallery-tabs {
  display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 6px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; width: max-content; max-width: 100%;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.gallery-tabs::-webkit-scrollbar { display: none; }
.gallery-tabs button { padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; flex-shrink: 0; }
.gallery-tabs button:hover { color: var(--fg); }
.gallery-tabs button.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }

/* ── Gallery masonry ── */
.gallery-grid {
  columns: 3 260px;
  column-gap: 14px;
}
@media (max-width: 500px) { .gallery-grid { columns: 2; } }
@media (max-width: 380px) { .gallery-grid { columns: 1; } }
.tile {
  break-inside: avoid;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
}
.tile img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .45s cubic-bezier(.2,1,.2,1);
}
.tile:hover img { transform: scale(1.05); }
.tile-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, oklch(0% 0 0 / 58%) 100%); display: flex; align-items: flex-end; padding: 16px; opacity: 0; transition: opacity .3s; }
.tile:hover .tile-overlay { opacity: 1; }
.tile-cap { color: white; font-size: 13px; font-weight: 500; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: oklch(0% 0 0 / 90%); display: none; align-items: center; justify-content: center; padding: clamp(20px, 5vw, 40px); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.lightbox-inner img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius); box-shadow: 0 30px 80px oklch(0% 0 0 / 60%); object-fit: contain; }
.lb-cap { color: white; font-size: 15px; font-weight: 500; text-align: center; }
.lb-close { position: absolute; top: -44px; right: 0; color: white; opacity: 0.7; transition: opacity .2s; cursor: pointer; }
.lb-close:hover { opacity: 1; }

/* ── Doctor timeline ── */
.timeline { position: relative; padding-left: 28px; display: flex; flex-direction: column; gap: 32px; margin-top: 24px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.time-item { position: relative; }
.time-item::before { content: ""; position: absolute; left: -32.5px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.time-item .year { font-family: var(--font-mono); font-size: 11px; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; display: block; letter-spacing: 0.04em; }
.time-item h3 { font-size: 16px; margin-bottom: 4px; }
.time-item p { font-size: 14px; color: var(--muted); line-height: 1.55; }
.specialties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.spec-pill { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; font-weight: 500; }

/* ── WhatsApp FAB ── */
.fab-wa {
  position: fixed; right: 20px; bottom: 80px; z-index: 150;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: white;
  display: grid; place-items: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.35), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .22s cubic-bezier(0.34,1.56,0.64,1), box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.fab-wa::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.4);
  animation: bhc-wa-ring 2.5s ease-out infinite;
}
.fab-wa:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,.45), 0 4px 10px rgba(0,0,0,.15); }
.fab-wa:active { transform: scale(0.96); }
.fab-wa svg { width: 26px; height: 26px; }
@media (min-width: 960px) { .fab-wa { right: 28px; bottom: 28px; } }

/* ── Mobile sticky CTA ── */
.mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  display: flex; gap: 8px;
  padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-sticky.visible { transform: translateY(0); }
@media (min-width: 960px) { .mobile-sticky { display: none; } }

/* ── Scroll-to-top ── */
.scroll-top {
  position: fixed; right: 20px; bottom: 148px; z-index: 140;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--muted);
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px) scale(0.85);
  transition: opacity .25s, transform .25s, color .15s;
  pointer-events: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.scroll-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top:hover { color: var(--fg); border-color: var(--border-strong); }
.scroll-top svg { width: 15px; height: 15px; }
@media (min-width: 960px) { .scroll-top { right: 28px; bottom: 80px; } }

/* ── Footer ── */
footer.footer { border-top: 1px solid var(--border); padding: clamp(48px, 6vw, 80px) 0 32px; background: var(--surface-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-col h4 { font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); transition: color .15s, transform .15s; }
.footer-col a:hover { color: var(--fg); transform: translateX(2px); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--subtle); font-family: var(--font-mono); }
.socials { display: flex; gap: 8px; }
.socials a { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: color .15s, border-color .15s, background .15s, transform .15s; }
.socials a:hover { color: var(--fg); background: var(--surface); border-color: var(--border-strong); transform: translateY(-2px); }
.socials svg { width: 15px; height: 15px; }

/* ── Animations ── */
@keyframes bhc-heartbeat {
  0% { transform: scale(1); } 15% { transform: scale(1.22); }
  30% { transform: scale(1); } 45% { transform: scale(1.12); }
  70% { transform: scale(1); }
}
@keyframes bhc-pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 20%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--accent) 7%, transparent); }
}
@keyframes bhc-pulse-ok {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--ok) 50%, transparent); }
  60% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes bhc-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes bhc-wa-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

@media (max-width: 360px) {
  .eyebrow { white-space: normal; max-width: 100%; }
}
   Base state is ALWAYS visible (opacity 1) so content can never get stuck
   hidden — even if the render pipeline is throttled. The entrance motion is
   played imperatively via the Web Animations API (see script.js) with no
   fill, so the element always settles back to this visible base state. */
.reveal { opacity: 1; transform: none; }

/* ── Print ── */
@media print { .nav, .mobile-menu, .fab-wa, .mobile-sticky, .scroll-top { display: none !important; } }
