/* =============================================================================
   Elite Medical Aesthetics — shared design system
   Tokens and motifs carried over from weight-loss-landing-v2.html so the ad
   landing pages and the marketing site read as one brand. Page-specific layout
   belongs in a <style> block on the page, not here.
   ========================================================================== */

:root {
  /* palette — warm ivory / espresso / brushed gold, all tinted toward hue 78 */
  --bg:          oklch(0.977 0.009 85);
  --bg-deep:     oklch(0.955 0.015 84);
  --paper:       oklch(0.988 0.006 88);
  --line:        oklch(0.88 0.025 82);
  --line-soft:   oklch(0.92 0.018 84);
  --gold:        oklch(0.73 0.075 78);   /* logo tone — decorative */
  --gold-text:   oklch(0.53 0.088 74);   /* readable on ivory */
  --bronze:      oklch(0.44 0.075 70);   /* CTA fill */
  --bronze-hover:oklch(0.38 0.07 68);
  --ink:         oklch(0.26 0.022 70);
  --ink-soft:    oklch(0.44 0.02 72);
  --ink-faint:   oklch(0.53 0.018 75);
  --sage:        oklch(0.50 0.065 155);
  --cream-text:  oklch(0.965 0.012 85);

  /* espresso surfaces — the dark counterweight sections */
  --espresso:      oklch(0.22 0.02 60);
  --espresso-deep: oklch(0.17 0.018 58);
  --espresso-line: oklch(0.965 0.012 85 / .14);
  --on-dark:       oklch(0.965 0.012 85 / .68);

  /* space — 4pt scale */
  --sp-xs: 8px;  --sp-sm: 12px; --sp-md: 24px;
  --sp-lg: 48px; --sp-xl: 96px;

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --max: 1160px;
  --header-h: 84px;
}

/* ---------- Reset ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-padding-top:var(--header-h); }
/* Smooth only once something has focus (i.e. an anchor was clicked). Smooth on
   html itself makes Chrome cancel the load-time #fragment jump. */
html:focus-within { scroll-behavior:smooth; }
body {
  font-family:'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  background:var(--bg); color:var(--ink);
  line-height:1.65; font-size:1rem;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
::selection { background:oklch(0.85 0.05 80); color:var(--ink); }
a { color:inherit; text-decoration:none; }
img, video { max-width:100%; display:block; }
button { font:inherit; color:inherit; }
:focus-visible { outline:2px solid var(--gold-text); outline-offset:3px; border-radius:2px; }
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
.skip-link {
  position:absolute; left:16px; top:-100px; z-index:300;
  background:var(--ink); color:var(--cream-text);
  padding:12px 20px; border-radius:3px; font-size:.9rem; font-weight:600;
  transition:top .2s var(--ease-out);
}
.skip-link:focus { top:16px; }

/* ---------- Type scale — fluid, Fraunces display over Hanken body ---------- */
h1, h2, h3, h4 {
  font-family:'Fraunces', Georgia, serif;
  font-weight:500; line-height:1.08; letter-spacing:-0.01em;
}
h1 em, h2 em, h3 em { font-style:italic; font-weight:400; color:var(--gold-text); }
h1 { font-size:clamp(2.7rem, 7vw, 5.2rem); }
h2 { font-size:clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size:clamp(1.3rem, 2.2vw, 1.7rem); }
.display {
  font-family:'Fraunces', Georgia, serif;
  font-size:clamp(1.75rem, 3.4vw, 2.6rem); line-height:1.3; font-weight:500; letter-spacing:-0.005em;
}
.lead { font-size:clamp(1.02rem, 1.4vw, 1.16rem); color:var(--ink-soft); max-width:56ch; }
p { max-width:68ch; }

.wrap { max-width:var(--max); margin:0 auto; padding:0 24px; }
.wrap-wide { max-width:1400px; margin:0 auto; padding:0 24px; }

/* small-caps label — the recurring editorial eyebrow */
.label {
  font-size:.72rem; font-weight:600; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold-text); display:inline-flex; align-items:center; gap:14px;
}
.label::before { content:''; width:34px; height:1px; background:var(--gold); flex:none; }
.label.centered { justify-content:center; }
.label.centered::after { content:''; width:34px; height:1px; background:var(--gold); flex:none; }
.on-dark .label, .label.on-dark { color:var(--gold); }
.on-dark .label::before, .on-dark .label.centered::after,
.label.on-dark::before, .label.on-dark.centered::after { background:var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:inherit; font-weight:600; font-size:.98rem; letter-spacing:.02em;
  padding:17px 34px; border-radius:3px; border:0; cursor:pointer;
  min-height:44px;
  transition:background .2s var(--ease-out), color .2s var(--ease-out),
             border-color .2s var(--ease-out), transform .15s var(--ease-out),
             box-shadow .25s var(--ease-out);
  text-align:center; white-space:nowrap;
}
.btn-primary {
  background:var(--bronze); color:var(--cream-text);
  box-shadow:0 14px 30px -12px oklch(0.44 0.075 70 / .55);
  position:relative; overflow:hidden;
}
.btn-primary::after {
  content:''; position:absolute; inset:-2px; pointer-events:none;
  background:linear-gradient(105deg, transparent 42%, oklch(1 0 0 / .26) 50%, transparent 58%);
  transform:translateX(-130%); transition:transform .7s var(--ease-out);
}
.btn-primary:hover { background:var(--bronze-hover); box-shadow:0 20px 36px -14px oklch(0.44 0.075 70 / .6); }
.btn-primary:hover::after { transform:translateX(130%); }
.btn-primary:active { transform:translateY(1px); }
.btn-quiet { background:transparent; color:var(--ink); border:1px solid var(--line); }
.btn-quiet:hover { border-color:var(--gold-text); color:var(--gold-text); }
.btn-ghost {
  background:transparent; color:var(--cream-text);
  border:1px solid oklch(0.965 0.012 85 / .34);
  backdrop-filter:blur(2px);
}
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); background:oklch(1 0 0 / .05); }
.btn-block { width:100%; }
.btn svg { width:17px; height:17px; flex-shrink:0; }
.btn-sm { padding:12px 24px; font-size:.9rem; }

/* underlined text link with a gold rule that draws in on hover */
.link-rule {
  display:inline-block; font-weight:600; font-size:.92rem;
  letter-spacing:.06em; text-transform:uppercase; color:var(--gold-text);
  padding-bottom:4px; background-image:linear-gradient(var(--gold), var(--gold));
  background-repeat:no-repeat; background-position:0 100%; background-size:100% 1px;
  transition:background-size .35s var(--ease-out), color .2s var(--ease-out);
}
.link-rule:hover { background-size:40% 1px; color:var(--ink); }

/* ---------- Film grain — static paper texture over everything ---------- */
.grain {
  position:fixed; inset:0; z-index:200; pointer-events:none;
  opacity:.045; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* =============================================================================
   Header — transparent over the hero video, ivory once .is-scrolled is set
   ========================================================================== */
.site-header {
  position:fixed; top:0; left:0; right:0; z-index:100;
  transition:background .4s var(--ease-out), border-color .4s var(--ease-out),
             box-shadow .4s var(--ease-out), color .4s var(--ease-out);
  border-bottom:1px solid transparent;
  color:var(--cream-text);
}
.site-header::before {
  /* scrim so cream nav stays legible over a bright frame of the hero video */
  content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg, oklch(0.22 0.02 60 / .55), transparent);
  transition:opacity .4s var(--ease-out);
}
.site-header.is-scrolled {
  background:oklch(0.977 0.009 85 / .93);
  backdrop-filter:blur(14px);
  border-bottom-color:var(--line-soft);
  color:var(--ink);
  box-shadow:0 12px 32px -22px oklch(0.26 0.022 70 / .4);
}
.site-header.is-scrolled::before { opacity:0; }
/* pages without a dark hero start solid — set body class "header-solid" */
.site-header.is-solid, body.header-solid .site-header { background:oklch(0.977 0.009 85 / .93); backdrop-filter:blur(14px); color:var(--ink); border-bottom-color:var(--line-soft); }
.site-header.is-solid::before, body.header-solid .site-header::before { opacity:0; }

.header-inner {
  position:relative; max-width:var(--max); margin:0 auto; padding:0 24px;
  display:flex; align-items:center; gap:24px; height:var(--header-h);
}
.brand { display:flex; align-items:center; gap:13px; flex:none; }
.brand img { width:46px; height:46px; object-fit:contain; }
.brand-txt b {
  display:block; font-family:'Fraunces', Georgia, serif; font-weight:600;
  font-size:.98rem; letter-spacing:.05em; line-height:1.25;
}
.brand-txt span {
  font-size:.62rem; letter-spacing:.2em; text-transform:uppercase;
  opacity:.68; line-height:1.4;
}

.nav { display:none; align-items:center; gap:34px; margin-left:auto; }
.nav > * { position:relative; }
.nav-link {
  font-size:.92rem; font-weight:500; letter-spacing:.04em;
  padding:10px 0; display:inline-flex; align-items:center; gap:7px;
  background:none; border:0; cursor:pointer;
  transition:color .2s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-link::after {
  content:''; position:absolute; left:0; bottom:4px; height:1px; width:100%;
  background:currentColor; transform:scaleX(0); transform-origin:left;
  transition:transform .3s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after,
.nav-link[aria-current]::after { transform:scaleX(1); }
.nav-caret { width:9px; height:9px; transition:transform .3s var(--ease-out); }
.nav-link[aria-expanded="true"] .nav-caret { transform:rotate(180deg); }

.header-actions { display:flex; align-items:center; gap:18px; margin-left:8px; }
.header-phone {
  display:none; align-items:center; gap:8px;
  font-weight:600; font-size:.92rem; letter-spacing:.02em;
}
.header-phone svg { width:15px; height:15px; opacity:.75; }
.header-phone:hover { color:var(--gold); }
.is-scrolled .header-phone:hover, .is-solid .header-phone:hover { color:var(--gold-text); }
.header-book { display:none; }

/* ---------- Mega menu ---------- */
.mega {
  position:absolute; top:calc(100% - 6px); left:50%; transform:translate(-50%, 8px);
  width:min(760px, calc(100vw - 48px));
  background:var(--paper); color:var(--ink);
  border:1px solid var(--line-soft); border-radius:4px;
  box-shadow:0 40px 80px -40px oklch(0.26 0.022 70 / .5);
  padding:30px 32px 26px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .mega.is-open {
  opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%, 0);
}
.mega-grid { display:grid; grid-template-columns:1fr 1fr; gap:4px 34px; }
.mega-item { display:block; padding:11px 12px; border-radius:3px; transition:background .2s var(--ease-out); }
.mega-item:hover { background:var(--bg-deep); }
.mega-item b {
  display:block; font-family:'Fraunces', Georgia, serif; font-weight:600;
  font-size:1.02rem; letter-spacing:.005em; margin-bottom:2px;
}
.mega-item span { display:block; font-size:.83rem; color:var(--ink-soft); line-height:1.45; }
.mega-foot {
  margin-top:20px; padding-top:18px; border-top:1px solid var(--line-soft);
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.mega-foot p { font-size:.85rem; color:var(--ink-soft); margin:0; }

/* the overlay is ivory, so the still-transparent header needs ink text on it */
body.nav-open .site-header { color:var(--ink); }
body.nav-open .site-header::before { opacity:0; }

/* ---------- Hamburger ---------- */
.burger {
  width:44px; height:44px; margin-right:-10px;
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  background:none; border:0; cursor:pointer; margin-left:auto;
}
.burger span {
  display:block; width:22px; height:1.5px; background:currentColor;
  transition:transform .3s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-open .burger span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity:0; }
.nav-open .burger span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }

/* ---------- Mobile overlay ---------- */
.mobile-nav {
  position:fixed; inset:0; z-index:99;
  background:var(--bg); color:var(--ink);
  padding:calc(var(--header-h) + 20px) 24px 40px;
  overflow-y:auto;
  opacity:0; visibility:hidden;
  transition:opacity .35s var(--ease-out), visibility .35s;
}
.mobile-nav.is-open { opacity:1; visibility:visible; }
.mobile-nav ul { list-style:none; }
.mobile-nav .m-primary li + li { border-top:1px solid var(--line-soft); }
.mobile-nav .m-primary a {
  display:block; padding:16px 0;
  font-family:'Fraunces', Georgia, serif; font-weight:600;
  font-size:clamp(1.9rem, 8vw, 2.6rem); line-height:1.15; letter-spacing:-0.01em;
}
.mobile-nav .m-primary a:hover { color:var(--gold-text); }
.mobile-nav .m-sub { margin:14px 0 26px; }
.mobile-nav .m-sub a {
  display:block; padding:9px 0; font-size:1rem; color:var(--ink-soft);
  border-bottom:1px solid var(--line-soft);
}
.mobile-nav .m-sub a:hover { color:var(--gold-text); }
.mobile-nav .m-foot { margin-top:34px; display:grid; gap:14px; }
.mobile-nav .m-foot .phone {
  font-family:'Fraunces', Georgia, serif; font-size:1.5rem; font-weight:600;
}
/* staggered reveal of the overlay rows */
.js .mobile-nav .stagger > * { opacity:0; transform:translateY(18px); }
.js .mobile-nav.is-open .stagger > * {
  opacity:1; transform:none;
  transition:opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay:calc(90ms + var(--i, 0) * 55ms);
}
body.nav-open { overflow:hidden; }

@media (min-width:900px) {
  .nav { display:flex; }
  .burger { display:none; }
  .header-phone { display:inline-flex; }
  .header-book { display:inline-flex; }
  .mobile-nav { display:none; }
}
/* Five nav links plus phone and Book don't all fit until ~1140px: tighten the
   nav and let the phone number go (it stays in the hero, footer and forms) */
@media (min-width:900px) and (max-width:1139px) {
  .nav { gap:24px; }
  .header-phone { display:none; }
}

/* =============================================================================
   Section rhythm
   ========================================================================== */
.section { padding:clamp(72px, 9vw, 116px) 0; position:relative; }
.section--deep { background:var(--bg-deep); }
.section--paper { background:var(--paper); }
.section--dark { background:var(--espresso); color:var(--cream-text); }
.section--dark h1, .section--dark h2, .section--dark h3 { color:var(--cream-text); }
.section--dark h2 em, .section--dark h3 em { color:var(--gold); }
.section--dark p { color:var(--on-dark); }
.section--dark .btn-quiet { color:var(--cream-text); border-color:oklch(0.965 0.012 85 / .3); }
.section--dark .btn-quiet:hover { border-color:var(--gold); color:var(--gold); }
.section--dark .label { color:var(--gold); }
.section--dark .label::before, .section--dark .label.centered::after { background:var(--gold); }
.section--dark .link-rule { color:var(--gold); }
.section--dark .link-rule:hover { color:var(--cream-text); }

.section-head { max-width:620px; margin-bottom:clamp(44px, 6vw, 68px); }
.section-head.centered { margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2 { margin:18px 0 16px; }
.section-head p { color:var(--ink-soft); font-size:1.05rem; }
.section--dark .section-head p { color:var(--on-dark); }
.rule { height:1px; background:var(--line); border:0; }

/* =============================================================================
   Editorial image treatment — warm tint over the photo, hairline gold frame
   that slides into register on hover
   ========================================================================== */
.plate { position:relative; display:block; }
.plate img { width:100%; height:100%; object-fit:cover; border-radius:2px; }
.plate::after {
  content:''; position:absolute; inset:0; border-radius:2px; pointer-events:none;
  background:linear-gradient(200deg, oklch(0.73 0.075 78 / .16), oklch(0.26 0.022 70 / .12));
  mix-blend-mode:multiply;
  transition:opacity .5s var(--ease-out);
}
.plate::before {
  content:''; position:absolute; inset:0; border-radius:2px; pointer-events:none;
  border:1px solid oklch(0.73 0.075 78 / .55);
  transform:translate(14px, 14px);
  transition:transform .5s var(--ease-out), border-color .5s var(--ease-out);
}
.plate:hover::before, a:hover > .plate::before, a:focus-visible > .plate::before { transform:translate(0, 0); }
.plate:hover::after { opacity:.55; }
.plate--frame-left::before { transform:translate(-14px, 14px); }
.plate--flat::before { display:none; }
/* slow zoom on hover. The frame sits outside the box, so .plate can't clip;
   the image clips itself instead: inset 2.83% at scale 1.06 keeps its
   visible edges exactly where they were (0.9434 × 1.06 = 1). */
.plate img {
  clip-path:inset(0 round 2px);
  transition:transform 1.1s var(--ease-out), clip-path 1.1s var(--ease-out);
}
@media (hover:hover) {
  .plate:hover img, a:hover .plate img { transform:scale(1.06); clip-path:inset(2.83% round 2px); }
}

/* =============================================================================
   Forms
   ========================================================================== */
.field { margin-bottom:15px; }
.field label {
  display:block; font-size:.72rem; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--ink-faint); margin-bottom:7px;
}
.field input, .field select, .field textarea {
  width:100%; padding:13px 15px; font-size:1rem; font-family:inherit;
  background:var(--bg); color:var(--ink);
  border:1px solid var(--line); border-radius:3px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize:vertical; min-height:96px; line-height:1.55; }
.field input::placeholder, .field textarea::placeholder { color:oklch(0.56 0.015 78); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color:var(--gold-text);
  box-shadow:0 0 0 3px oklch(0.73 0.075 78 / .22);
}
.field select {
  appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a08a68' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 15px center;
}
.field-row { display:grid; gap:0 15px; }
.form-note { font-size:.76rem; color:var(--ink-faint); margin-top:14px; line-height:1.55; max-width:none; }
/* inline field checks — set by site.js */
.field.is-invalid input { border-color:oklch(0.55 0.15 30); }
.field.is-invalid input:focus { box-shadow:0 0 0 3px oklch(0.55 0.15 30 / .18); }
.field.is-valid input { border-color:oklch(0.50 0.065 155 / .6); }
.field-error { font-size:.8rem; color:oklch(0.50 0.15 30); margin-top:6px; line-height:1.4; }
.field-error:empty { display:none; }
.form-alert {
  margin:4px 0 14px; padding:12px 14px; border-radius:3px; font-size:.9rem; line-height:1.5;
  background:oklch(0.55 0.15 30 / .08); border:1px solid oklch(0.55 0.15 30 / .3); color:oklch(0.42 0.12 30);
}
.form-alert a { font-weight:600; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.btn.is-loading { cursor:progress; opacity:.85; }
.btn.is-loading::before {
  content:''; width:15px; height:15px; border-radius:50%; flex:none;
  border:2px solid currentColor; border-right-color:transparent;
  animation:btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform:rotate(360deg); } }

.form-success { display:none; padding:20px 0; }
.form-success svg { width:46px; height:46px; color:var(--sage); margin-bottom:14px; }
/* success: circle and tick draw in, text rises after */
.form-success.is-shown svg circle { stroke-dasharray:63; stroke-dashoffset:63; animation:tick-draw .6s var(--ease-out) forwards; }
.form-success.is-shown svg polyline { stroke-dasharray:14; stroke-dashoffset:14; animation:tick-draw .4s var(--ease-out) .45s forwards; }
.form-success.is-shown h3, .form-success.is-shown p { opacity:0; animation:success-rise .6s var(--ease-out) .5s forwards; }
.form-success.is-shown p { animation-delay:.62s; }
@keyframes tick-draw { to { stroke-dashoffset:0; } }
@keyframes success-rise { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.form-success h3 { font-size:1.5rem; margin-bottom:10px; }
.form-success p { color:var(--ink-soft); }

.lead-card {
  background:var(--paper);
  border:1px solid var(--line); border-radius:6px;
  box-shadow:0 30px 60px -30px oklch(0.35 0.04 70 / .35);
  padding:clamp(26px, 4vw, 40px); position:relative;
}
.lead-card::before {
  content:''; position:absolute; inset:7px; pointer-events:none;
  border:1px solid oklch(0.73 0.075 78 / .4); border-radius:3px;
}
@media (min-width:640px) { .field-row { grid-template-columns:1fr 1fr; } }

/* =============================================================================
   Footer
   ========================================================================== */
.site-footer { background:var(--espresso); color:var(--cream-text); padding:clamp(56px, 7vw, 84px) 0 30px; }
.site-footer a:hover { color:var(--gold); }
.foot-top { display:grid; gap:40px; }
.foot-brand { max-width:320px; }
.foot-brand img { width:52px; height:52px; object-fit:contain; margin-bottom:16px; }
.foot-brand p { color:var(--on-dark); font-size:.94rem; }
.foot-cols { display:grid; gap:34px; }
.foot-col h4 {
  font-family:'Hanken Grotesk', sans-serif;
  font-size:.7rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--gold); margin-bottom:16px; font-weight:600;
}
.foot-col a, .foot-col p { display:block; color:var(--on-dark); font-size:.92rem; margin-bottom:8px; max-width:none; }
.foot-social { display:flex; gap:10px; margin-top:6px; }
.foot-social a {
  display:grid; place-items:center; width:40px; height:40px; border-radius:50%;
  border:1px solid var(--espresso-line); color:var(--on-dark);
  transition:color .25s, border-color .25s;
}
.foot-social a:hover, .foot-social a:focus-visible { color:var(--gold); border-color:var(--gold); }
.foot-social svg { width:17px; height:17px; }
.foot-bottom {
  margin-top:clamp(40px, 5vw, 60px); padding-top:24px;
  border-top:1px solid var(--espresso-line);
  display:flex; flex-wrap:wrap; gap:10px 26px; justify-content:space-between;
  color:oklch(0.965 0.012 85 / .5); font-size:.8rem;
}
.foot-bottom nav { display:flex; gap:20px; }
.foot-disclaimer {
  margin-top:22px; color:oklch(0.965 0.012 85 / .42);
  font-size:.75rem; line-height:1.7; max-width:92ch;
}
@media (min-width:640px) { .foot-cols { grid-template-columns:repeat(3, 1fr); } }
@media (min-width:900px) { .foot-top { grid-template-columns:1fr 2fr; gap:60px; } }

/* =============================================================================
   Reveal on scroll + line-split headline (initial states gated behind .js)
   Note: .reveal applies a transform, which makes the element a containing block
   for absolutely positioned descendants. Keep it off elements that anchor one.
   ========================================================================== */
.js .reveal {
  opacity:0; transform:translateY(26px);
  transition:opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay:var(--d, 0ms);
}
.js .reveal.in { opacity:1; transform:none; }
/* section headings also come into focus, matching the landing pages */
.js .section-head.reveal { filter:blur(10px); transition-property:opacity, transform, filter; }
.js .section-head.reveal.in { filter:none; }

.split-lines .line { display:block; overflow:hidden; padding-bottom:.14em; margin-bottom:-.14em; }
.split-lines .line-in { display:block; }
.js .split-lines .line-in { transform:translateY(115%); transition:transform 1s var(--ease-out); }
.js .split-lines .line:nth-child(2) .line-in { transition-delay:.13s; }
.js .split-lines .line:nth-child(3) .line-in { transition-delay:.26s; }
.js.loaded .split-lines .line-in { transform:none; }
.js .hero .label::before { transform:scaleX(0); transform-origin:left; transition:transform .9s var(--ease-out) .15s; }
.js.loaded .hero .label::before { transform:scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after {
    animation-duration:.01ms !important; animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
  .js .reveal { opacity:1; transform:none; filter:none; }
  .js .split-lines .line-in { transform:none; }
  .js .hero .label::before { transform:scaleX(1); }
  .js .mobile-nav .stagger > * { opacity:1; transform:none; }
}

/* =============================================================================
   Page loader (first page of a visit) + back-to-top button
   ========================================================================== */
.page-loader { display:none; }
.js .page-loader {
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:28px;
  position:fixed; inset:0; z-index:300; background:var(--espresso-deep);
  transition:opacity .7s var(--ease-out), visibility 0s linear .7s;
}
.js.no-loader .page-loader { display:none; }
.js.loader-done .page-loader { opacity:0; visibility:hidden; }
.loader-mark { position:relative; width:112px; height:112px; display:grid; place-items:center; }
.loader-mark svg { position:absolute; inset:0; transform:rotate(-90deg); }
.loader-mark circle {
  fill:none; stroke:var(--gold); stroke-width:1; stroke-linecap:round;
  stroke-dasharray:302; stroke-dashoffset:302;
  animation:loader-draw 1.1s var(--ease-out) forwards;
}
.loader-mark img { width:84px; height:auto; opacity:0; animation:loader-fade .8s var(--ease-out) .15s forwards; }
.loader-line { width:120px; height:1px; background:var(--espresso-line); position:relative; overflow:hidden; }
.loader-line::after {
  content:''; position:absolute; inset:0; background:var(--gold);
  transform:translateX(-100%); animation:loader-sweep 1.2s var(--ease-out) infinite;
}
.js.loader-done .loader-mark { transform:scale(1.06); transition:transform .7s var(--ease-out); }
@keyframes loader-draw { to { stroke-dashoffset:0; } }
@keyframes loader-fade { from { opacity:0; transform:scale(.94); } to { opacity:1; transform:none; } }
@keyframes loader-sweep { to { transform:translateX(100%); } }

.to-top {
  position:fixed; right:clamp(16px, 3vw, 28px); bottom:clamp(16px, 3vw, 28px); z-index:90;
  width:52px; height:52px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:var(--espresso); color:var(--gold);
  box-shadow:0 10px 30px oklch(0.17 0.018 58 / .28);
  opacity:0; visibility:hidden; transform:translateY(12px) scale(.9);
  transition:opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s, background .25s;
}
.to-top.is-visible { opacity:1; visibility:visible; transform:none; transition-delay:0s; }
.to-top:hover { background:var(--bronze); color:var(--cream-text); }
.to-top svg { width:100%; height:100%; display:block; }
.to-top circle { fill:none; stroke-width:1.5; }
.to-top-track { stroke:var(--espresso-line); }
.to-top-progress {
  stroke:currentColor; stroke-dasharray:1; stroke-dashoffset:calc(1 - var(--p, 0));
  transform:rotate(-90deg); transform-origin:center;
}
.to-top path { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform .25s var(--ease-out); }
.to-top:hover path { transform:translateY(-2px); }
body.nav-open .to-top { opacity:0; visibility:hidden; }

/* ---------- Mobile call bar — phone-first, mirrors the Ads landing pages ---------- */
.mobile-cta { display:none; }
@media (max-width:899px) {
  .mobile-cta {
    display:flex; gap:10px; position:fixed; left:0; right:0; bottom:0; z-index:95;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:oklch(0.17 0.018 58 / .96); backdrop-filter:blur(12px);
    border-top:1px solid var(--espresso-line);
    box-shadow:0 -12px 34px oklch(0.17 0.018 58 / .35);
    transition:transform .35s var(--ease-out);
  }
  .mobile-cta .btn { padding:14px 10px; font-size:.94rem; }
  .mobile-cta .btn-primary { flex:2.2; }
  .mobile-cta .btn-ghost { flex:1; }
  /* out of the way while the menu is open or the form is on screen */
  body.nav-open .mobile-cta, .mobile-cta.is-hidden { transform:translateY(110%); }
  body:has(.mobile-cta) { padding-bottom:calc(72px + env(safe-area-inset-bottom)); }
  .to-top { bottom:calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width:374px) { .mobile-cta .btn { font-size:.84rem; padding:13px 6px; } .mobile-cta .btn svg { display:none; } }

/* ---------- Current page in the menus (aria-current set by site.js) ---------- */
.mega-item[aria-current] b { color:var(--gold-text); }
.mobile-nav a[aria-current] { color:var(--gold-text); }

/* FAQ: the plus turns back as soon as an answer starts closing (site.js keeps
   [open] set until the slide finishes) */
.faq details[open].is-closing summary .plus { transform:none; }

/* ---------- Before / after comparison (index.html #results) ---------- */
.ba figcaption { margin-top:12px; font-size:.82rem; color:var(--ink-faint); }
.ba-frame { position:relative; overflow:hidden; border-radius:4px; aspect-ratio:4/3; }
.ba-frame img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.ba-before { clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
.ba-frame::after {
  content:''; position:absolute; top:0; bottom:0; left:var(--pos); width:2px;
  margin-left:-1px; background:var(--gold); pointer-events:none;
}
.ba-tag {
  position:absolute; top:12px; padding:4px 10px; border-radius:99px;
  background:oklch(0.2 0.02 60 / .6); color:#fff; font-size:.68rem;
  letter-spacing:.16em; text-transform:uppercase; pointer-events:none;
}
.ba-tag--before { left:12px; }
.ba-tag--after { right:12px; }
.ba-range { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:ew-resize; margin:0; }
.ba-frame:focus-within { outline:2px solid var(--gold); outline-offset:3px; }

/* ---------- Content pages (blog/, locations/) — page hero, article body,
   post cards and the shared consult block from partials/consult.html ---------- */
.page-hero {
  background:var(--bg-deep); border-bottom:1px solid var(--line-soft);
  padding:calc(var(--header-h) + clamp(44px, 6vw, 72px)) 0 clamp(52px, 6vw, 84px);
}
.page-hero h1 { font-size:clamp(2.3rem, 5.4vw, 4rem); margin:22px 0 20px; max-width:18ch; }
.page-hero .lead { max-width:60ch; }
.page-hero-cta { display:flex; flex-wrap:wrap; gap:13px; margin-top:30px; }
.crumbs { font-size:.8rem; color:var(--ink-faint); margin-bottom:26px; }
.crumbs a:hover { color:var(--gold-text); }
.crumbs span { margin:0 8px; opacity:.5; }
.post-meta { font-size:.85rem; color:var(--ink-faint); margin-top:18px; }

.prose { max-width:68ch; }
.prose > * + * { margin-top:1.1em; }
.prose h2 { font-size:clamp(1.55rem, 3vw, 2.1rem); margin-top:2.2em; }
.prose h3 { font-size:clamp(1.15rem, 2vw, 1.35rem); margin-top:1.8em; }
.prose p, .prose li { color:var(--ink-soft); font-size:1.06rem; line-height:1.75; }
.prose strong { color:var(--ink); font-weight:600; }
.prose ul, .prose ol { padding-left:1.3em; }
.prose li + li { margin-top:.45em; }
.prose li::marker { color:var(--gold-text); }
.prose a { color:var(--gold-text); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.prose a:hover { color:var(--ink); }
.prose .note-box {
  padding:18px 22px; border-left:2px solid var(--gold);
  background:var(--paper); font-size:.96rem;
}
.prose .note-box p { font-size:.96rem; }
.table-scroll { overflow-x:auto; }
.prose table { width:100%; min-width:520px; border-collapse:collapse; font-size:.95rem; }
.prose th, .prose td { text-align:left; vertical-align:top; padding:12px 14px; border-bottom:1px solid var(--line); }
.prose th { font-weight:600; color:var(--ink); background:var(--paper); }
.prose td { color:var(--ink-soft); }

.post-list { display:grid; gap:30px; }
.post-card { display:block; }
.post-card .plate { aspect-ratio:3/2; margin-bottom:20px; }
.post-card .label { margin-bottom:10px; }
.post-card b { display:block; font-family:'Fraunces', Georgia, serif; font-weight:600; font-size:clamp(1.3rem, 2.4vw, 1.6rem); line-height:1.25; }
.post-card span.excerpt { display:block; color:var(--ink-soft); margin-top:10px; font-size:.98rem; }
.post-card:hover b { color:var(--gold-text); }

.svc-links { display:grid; gap:0 48px; border-top:1px solid var(--line); }
.svc-links a { display:flex; justify-content:space-between; gap:16px; padding:16px 4px; border-bottom:1px solid var(--line); font-weight:600; }
.svc-links a span { color:var(--ink-faint); font-weight:400; font-size:.92rem; text-align:right; }
.svc-links a:hover { color:var(--gold-text); }

.consult { display:grid; gap:44px; align-items:start; }
.consult-copy h2 { margin:18px 0 18px; }
.consult-alt { color:var(--ink-soft); font-size:.95rem; margin-top:22px; }
.consult-alt a { color:var(--gold-text); font-weight:600; }

@media (min-width:700px) {
  .post-list { grid-template-columns:1fr 1fr; gap:44px 52px; }
  .svc-links { grid-template-columns:1fr 1fr; }
}
@media (min-width:900px) {
  .consult { grid-template-columns:1fr 1fr; gap:72px; }
}
