/* =========================================================================
   Justin Karlin, MD — Oculofacial Surgery
   Academic-atelier system: dark, cool, surgical, editorial.
   Two families only: Newsreader (editorial serif) + IBM Plex Sans (UI/body).
   ========================================================================= */

:root {
  /* --- Cool dark ground (less beige) --- */
  --bg:       oklch(0.172 0.012 250);
  --bg-2:     oklch(0.205 0.014 250);
  --panel:    oklch(0.225 0.013 250);
  --panel-2:  oklch(0.262 0.014 250);
  --ink:      oklch(0.955 0.006 250);
  --muted:    oklch(0.955 0.006 250 / 0.62);
  --faint:    oklch(0.955 0.006 250 / 0.40);
  --line:     oklch(0.955 0.006 250 / 0.12);
  --line-2:   oklch(0.955 0.006 250 / 0.07);

  /* --- Single restrained accent (tweakable). Default: cool steel --- */
  --accent:        oklch(0.76 0.035 238);
  --accent-soft:   oklch(0.76 0.035 238 / 0.16);
  --accent-line:   oklch(0.76 0.035 238 / 0.42);

  /* image grading toward the cool palette */
  --img-grade: grayscale(0.18) saturate(0.78) contrast(1.05) brightness(0.94);

  /* type families */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  /* motion factor 0..1 (set by tweaks; 0.7 default) */
  --motion: 0.9;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: oklch(0.40 0.012 250) transparent;
}

/* discreet scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: oklch(0.36 0.012 250);
  border-radius: 10px;
  border: 3px solid oklch(0.172 0.012 250);
}
::-webkit-scrollbar-thumb:hover { background: oklch(0.46 0.015 250); }

/* anchored headings & sections clear the sticky nav */
[id] { scroll-margin-top: 96px; }

/* keyboard focus — one consistent, quiet ring */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.field :focus-visible { outline: none; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  background:
    radial-gradient(1200px 700px at 78% -8%, oklch(0.30 0.03 240 / 0.55), transparent 60%),
    radial-gradient(900px 600px at 0% 18%, oklch(0.26 0.02 250 / 0.40), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: min(var(--maxw), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.relayer { position: relative; z-index: 1; }

/* selection */
::selection { background: var(--accent-soft); color: var(--ink); }

/* accessibility: skip-to-content (visually hidden until keyboard focus) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  z-index: 100;
  height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background: var(--ink);
  color: oklch(0.172 0.012 250);
  border-radius: 0 0 3px 3px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Typographic primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent-line);
}
.eyebrow.bare::before { display: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; }
.lead { font-weight: 300; color: var(--muted); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  background: oklch(0.172 0.012 250 / 0.72);
  backdrop-filter: blur(18px) saturate(1.05);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
  transition: height .35s cubic-bezier(.22,.61,.36,1);
}
.nav.scrolled .nav-inner { height: 64px; }

/* quiet telephone affordance in the nav (desktop) */
.nav-tel {
  display: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s ease;
  font-variant-numeric: tabular-nums;
}
.nav-tel:hover { color: var(--ink); }
@media (min-width: 1001px) { .nav-tel { display: inline-flex; } }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand .logo-slot {
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}
.brand-name { display: grid; gap: 1px; min-width: 0; }
.brand-name strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.brand-name span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.btn {
  --bh: 48px;
  height: var(--bh);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border-radius: 2px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: transparent;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), background .22s ease, border-color .22s ease, color .22s ease;
}
.btn:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.995); transition-duration: .08s; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn.primary {
  background: var(--ink);
  color: oklch(0.172 0.012 250);
  border-color: transparent;
}
.btn.primary:hover { background: var(--accent); color: oklch(0.16 0.012 250); }
.btn.sm { --bh: 42px; padding: 0 18px; font-size: 13px; }
.btn .arr { font-size: 15px; transition: transform .22s ease; }
.btn:hover .arr { transform: translateX(3px); }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger span, .hamburger span::before, .hamburger span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.hamburger span::before { position: absolute; top: -5px; }
.hamburger span::after { position: absolute; top: 5px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(22px, 3vw, 40px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.hero h1 .accentword { font-style: italic; color: var(--accent); }
.hero h1 .tw { display: block; will-change: transform, opacity; }
.hero .lead {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
}
.hero .hero-intro {
  font-size: clamp(16.5px, 1.55vw, 20px);
  line-height: 1.62;
  max-width: 528px;
  color: var(--ink);
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-actions .btn { --bh: 54px; }

/* hero authority micro-row */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 30px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.hero-meta .item { display: grid; gap: 5px; }
.hero-meta .item b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.hero-meta .item span {
  font-size: 11.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
}

/* hero entrance — a quiet, staggered rise. Transform-only (never opacity),
   so content can never be stranded invisible if the animation doesn't run. */
@keyframes heroRise {
  from { transform: translateY(18px); }
  to   { transform: none; }
}
@keyframes heroSettle {
  from { transform: scale(1.045); }
  to   { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy .eyebrow      { animation: heroRise .9s cubic-bezier(.22,.61,.36,1) both; }
  .hero-copy h1            { animation: heroRise 1.0s cubic-bezier(.22,.61,.36,1) .06s both; }
  .hero-copy .hero-intro   { animation: heroRise 1.0s cubic-bezier(.22,.61,.36,1) .14s both; }
  .hero-copy .hero-actions { animation: heroRise 1.0s cubic-bezier(.22,.61,.36,1) .22s both; }
  .hero-copy .hero-meta    { animation: heroRise 1.0s cubic-bezier(.22,.61,.36,1) .30s both; }
  .hero-figure img.img-fill { animation: heroSettle 2.2s cubic-bezier(.22,.61,.36,1) both; }
}

/* hero image */
.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  will-change: transform;
}
.hero-figure image-slot, .hero-figure .img-fill {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.hero-figure img.img-fill { object-fit: cover; filter: var(--img-grade); }
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, oklch(0.16 0.012 250 / 0.55) 100%),
    linear-gradient(90deg, oklch(0.16 0.012 250 / 0.30), transparent 40%);
  pointer-events: none;
}
.fig-tag {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: oklch(0.955 0.006 250 / 0.78);
  max-width: 60%;
  line-height: 1.45;
}

/* =========================================================================
   Section scaffolding
   ========================================================================= */
.section { padding-block: clamp(30px, 3.5vw, 48px); position: relative; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 820px;
}
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.025em;
}
.section-head .lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 560px; }
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.reveal {
  animation: revIn 0.95s cubic-bezier(.2,.8,.2,1) both;
  will-change: transform;
}
/* Transform-only entrance: content is ALWAYS opacity:1 so it can never be
   stranded invisible (and survives DOM-clone screenshot tools that restart
   animations). The rise is the only animated property. */
@keyframes revIn {
  from { transform: translateY(14px); }
  to   { transform: none; }
}

/* =========================================================================
   AUTHORITY band
   ========================================================================= */
.authority { border-top: 1px solid var(--line); }
.auth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line-2);
}
.auth-cell {
  padding: 30px 26px 34px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.auth-cell .n {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.auth-cell .l {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.placeholder-flag {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

/* =========================================================================
   SURGEON
   ========================================================================= */
.surgeon-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}
.portrait image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.surgeon-body h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -0.025em; }
.surgeon-body .lead { margin-top: 22px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.65; max-width: 540px; }
.surgeon-body .lead + .lead { margin-top: 16px; }
.surgeon-sign {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.surgeon-sign .name { font-family: var(--serif); font-style: italic; font-size: 22px; }
.surgeon-sign .role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* =========================================================================
   METHOD (editorial principles)
   ========================================================================= */
.method {
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 64px);
}
.method-grid-bg {
  position: absolute; inset: -2px;
  opacity: 0.08;
  background:
    linear-gradient(90deg, oklch(0.955 0.006 250 / 0.5) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(0deg, oklch(0.955 0.006 250 / 0.4) 1px, transparent 1px) 0 0 / 84px 84px;
  mask-image: radial-gradient(120% 90% at 70% 30%, #000, transparent 72%);
  pointer-events: none;
  will-change: background-position;
}
.method-head { position: relative; max-width: 760px; }
.method-head h2 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.method-head .lead { margin-top: 18px; max-width: 560px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.principles {
  position: relative;
  display: grid;
  gap: clamp(2px, 0.4vw, 6px);
  margin-top: clamp(22px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: clamp(56px, 7vw, 104px) 1fr;
  gap: clamp(20px, 4vw, 60px);
  padding-block: clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.principle .idx {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--faint);
  padding-top: 0.7em;
}
.principle .word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(44px, 8vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.principle.accent .word { color: var(--accent); }
.principle .sub {
  margin-top: 20px;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
  font-weight: 300;
}

/* =========================================================================
   PROCEDURES (editorial index)
   ========================================================================= */
.procedures { border-top: 1px solid var(--line); }
.proc-list { margin-top: 44px; border-top: 1px solid var(--line); }
.proc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s cubic-bezier(.2,.7,.3,1), background .3s ease;
  position: relative;
}
.proc-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.proc-row:hover { padding-left: 18px; background: oklch(0.955 0.006 250 / 0.025); }
.proc-row:hover::before { transform: scaleY(1); }
.proc-num { font-family: var(--sans); font-size: 12px; letter-spacing: 0.10em; color: var(--faint); }
.proc-name {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.proc-desc { display: block; font-size: 13.5px; color: var(--muted); margin-top: 8px; max-width: 540px; line-height: 1.5; }
.proc-go {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: color .2s ease;
}
.proc-row:hover .proc-go { color: var(--ink); }
.proc-go .arr { transition: transform .22s ease; }
.proc-row:hover .proc-go .arr { transform: translateX(4px); }

/* =========================================================================
   RESULTS + privacy framing
   ========================================================================= */
.results { border-top: 1px solid var(--line); }
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.result-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  overflow: hidden;
}
.ba {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 11;
}
.ba .half {
  position: relative;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, oklch(0.26 0.012 250) 0 11px, oklch(0.23 0.012 250) 11px 22px);
}
.ba .half + .half { border-left: 1px solid var(--line); }
.ba .half .tag {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  position: absolute;
  top: 12px; left: 12px;
}
.ba .lock {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}
.result-meta { padding: 18px 18px 20px; }
.result-meta .proc { font-family: var(--serif); font-size: 18px; }
.result-meta .note { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.privacy-note {
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 640px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}
.privacy-note .dot { color: var(--accent); font-size: 16px; line-height: 1.3; }

/* before/after halves can hold dropped images */
.ba .half image-slot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.ba .half .tag { z-index: 2; }
.ba .half .lock { z-index: 1; }

/* inline text link */
.tlink { color: var(--ink); border-bottom: 1px solid var(--accent-line); transition: border-color .2s ease, color .2s ease; }
.tlink:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================================
   REVIEWS (Google + Yelp)
   ========================================================================= */
.reviews { border-top: 1px solid var(--line); }
.rating-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.rating-pill {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 4px;
  padding: 16px 22px; background: var(--panel);
  transition: border-color .2s ease, transform .2s ease;
}
a.rating-pill:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.rating-pill .mark { font-family: var(--serif); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rating-pill .score { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.rating-pill .meta { display: grid; gap: 5px; }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 13px; line-height: 1; }
.rating-pill .count { font-size: 11px; letter-spacing: .04em; color: var(--faint); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 42px;
}
.review-card {
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--panel); padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.review-card .stars { font-size: 14px; }
.review-card .quote { font-family: var(--serif); font-weight: 300; font-size: 18px; line-height: 1.5; letter-spacing: -.005em; }
.review-card .who { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-card .who .name { font-size: 13.5px; }
.review-card .who .badge { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.reviews-foot { margin-top: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reviews-note { font-size: 12px; color: var(--faint); max-width: 520px; line-height: 1.5; }

/* =========================================================================
   CONSULT
   ========================================================================= */
.consult { border-top: 1px solid var(--line); }
.consult-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.consult h2 { font-size: clamp(36px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.03em; }
.consult h2 em { font-style: italic; color: var(--accent); }
.consult .lead { margin-top: 24px; max-width: 460px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.consult-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.consult-actions .btn { --bh: 56px; }

.contact-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 30px;
}
.contact-card .row { padding-block: 20px; border-bottom: 1px solid var(--line); }
.contact-card .row:first-child { padding-top: 0; }
.contact-card .row:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-card .v { margin-top: 8px; font-family: var(--serif); font-size: 20px; font-weight: 300; line-height: 1.3; }
.contact-card .v a { transition: color .2s ease; }
.contact-card .v a:hover { color: var(--accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 44px 56px;
}
.foot-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.foot-contact .tel {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color .2s ease;
  font-variant-numeric: tabular-nums;
}
.foot-contact .tel:hover { color: var(--accent); }
.foot-contact .sep { color: var(--faint); }
.foot-contact .tlink { color: var(--muted); }
.foot-contact .tlink:hover { color: var(--accent); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
}
.foot .brand-name strong { font-size: 16px; }
.foot small { color: var(--faint); font-size: 12px; letter-spacing: 0.02em; }
.foot-links { display: flex; gap: 24px; font-size: 12.5px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* =========================================================================
   Mobile sticky CTA
   ========================================================================= */
.mobile-cta {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  height: 54px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: oklch(0.16 0.012 250);
  border-radius: 3px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 40px oklch(0 0 0 / 0.5);
  transform: translateY(140%);
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.mobile-cta.show { transform: translateY(0); }

/* =========================================================================
   Mobile drawer
   ========================================================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: oklch(0.172 0.012 250 / 0.97);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: 76px 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.drawer-close { width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 22px; border-radius: 2px; cursor: pointer; }
.drawer-nav { display: grid; align-content: start; gap: 4px; padding-top: 18px; }
.drawer-nav a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 34px;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.drawer-nav .btn { margin-top: 26px; --bh: 56px; }
.drawer-nav .btn + .btn { margin-top: 12px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure { order: -1; aspect-ratio: 16 / 11; }
  .surgeon-grid { grid-template-columns: 1fr; gap: 36px; }
  .portrait { aspect-ratio: 16 / 11; max-height: 460px; }
  .consult-grid { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid { grid-template-columns: 1fr; max-width: 460px; }
  .reviews-grid { grid-template-columns: 1fr; max-width: 540px; }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .nav-inner { height: 64px; }
  .brand-name span { display: none; }
  .nav-right .btn:not(.hamburger) { display: none; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); letter-spacing: -0.035em; }
  .hero .lead { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { --bh: 50px; flex: 1 1 auto; }
  .hero-meta { gap: 20px 28px; margin-top: 32px; }
  .hero-meta .item b { font-size: 19px; }
  .fig-tag { display: none; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-cell { padding: 24px 20px 26px; }
  .proc-row { grid-template-columns: 40px 1fr; gap: 16px; }
  .proc-go { display: none; }
  .principle { grid-template-columns: 40px 1fr; gap: 16px; }
  .principle .word { font-size: clamp(40px, 13vw, 64px); }
  .principle .sub { font-size: 15px; }
  .contact-card { padding: 24px; }
  .mobile-cta { display: flex; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 22px; }
}

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

.foot-social { display: flex; gap: 16px; align-items: center; }
.foot-social a { color: var(--muted); display: inline-flex; transition: color .25s ease, transform .25s ease; }
.foot-social a:hover { color: var(--accent); transform: translateY(-1px); }
