/* ============================================================
   DrDoulaPoppins — Design System
   "tender care meets evidence-based guidance"
   Warm earth · linen · ceramic · California light
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --cream:     #F5EDE0;
  --terracotta:#C4694F;
  --terracotta-deep:#A14E3A;
  --gold:      #C9A84C;
  --blush:     #E2C1B5;
  --sage:      #7D9B76;
  --espresso:  #6B4C3B;
  --footer-bg: #3D2B1F;
  --surface:   #FFFDFB;
  --line:      #ECE1D4;
  --espresso-70: rgba(107,76,59,0.82);
  --espresso-55: rgba(107,76,59,0.64);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "DM Sans", "Inter", "Lato", system-ui, sans-serif;

  /* 8px spacing scale */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --maxw: 1100px;
  --radius-card: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 4px 22px rgba(61,43,31,0.06);
  --shadow-lift: 0 14px 40px rgba(61,43,31,0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--terracotta-deep); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; color: var(--espresso); letter-spacing: 0.002em; }
.h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 500; }
.h2 { font-size: clamp(29px, 3.6vw, 36px); }
.h3 { font-size: clamp(21px, 2.4vw, 25px); font-weight: 600; }
.serif-i { font-style: italic; font-weight: 500; color: var(--terracotta); }
p { margin: 0 0 var(--s2); text-wrap: pretty; }
.lead { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; color: var(--espresso-70); }
.small { font-size: 14px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin: 0 0 var(--s3);
  display: block;
}
.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--gold);
  margin-right: 14px;
  font-weight: 500;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(20px, 5vw, 40px); }
section { padding-block: clamp(56px, 9vw, 124px); position: relative; }
.bg-surface { background: var(--surface); }
.bg-cream { background: var(--cream); }
.divider {
  height: 1px; border: 0; max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--blush) 18%, var(--blush) 82%, transparent);
}
.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  min-height: 48px; line-height: 1;
}
.btn-primary { background: var(--terracotta); color: var(--cream); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--terracotta-deep); color: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-secondary { background: transparent; color: var(--terracotta); border-color: var(--terracotta); }
.btn-secondary:hover { background: rgba(164,101,70,0.07); color: var(--terracotta-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--espresso); padding-inline: 0; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ico { width: 15px; height: 15px; flex-shrink: 0; }
/* Substack subscribe: fill on hover for a more visible cue, keeping the outline style at rest */
.btn-substack:hover { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); box-shadow: var(--shadow-lift); transform: translateY(-2px); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--espresso-70);
  font-size: 14px; font-weight: 500; transition: all .25s var(--ease);
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-soft);
  padding: clamp(28px, 4vw, 44px);
}

/* ---------- Soft card hover (services · values · testimonials) ---------- */
.service, .testi { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.service:hover, .testi:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--blush); }
.value { transition: transform .4s var(--ease); border-radius: var(--radius-sm); }
.value:hover { transform: translateY(-3px); }
.value__num, .testi__mark { transition: color .4s var(--ease); }
.value:hover .value__num, .testi:hover .testi__mark { color: var(--terracotta); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 40px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled { background: rgba(245,238,230,0.88); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding-block: 12px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 42px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--espresso); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px; background: var(--terracotta); transition: width .3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__cta .btn { padding: 11px 22px; min-height: 0; font-size: 14px; }
.nav__burger { display: none; background: none; border: 0; padding: 8px; color: var(--espresso); }
.nav__burger svg { width: 26px; height: 26px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: var(--s3);
  padding: clamp(40px, 12vw, 80px); transform: translateX(100%);
  transition: transform .5s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--espresso); }
.mobile-menu .btn { margin-top: var(--s3); align-self: flex-start; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center; position: relative;
  padding-block: 120px 80px; overflow: hidden;
}
.hero .hero__bg { position: absolute; inset: 0; z-index: 0; background-color: var(--cream); }
/* founder photo: full height on the right, natural crop (not over-zoomed) */
.hero__photo {
  position: absolute; top: 0; right: 0; height: 100%; width: clamp(360px, 58%, 1040px);
  object-fit: cover; object-position: 56% 16%; z-index: 1;
  filter: grayscale(0.2) sepia(0.18) saturate(1.05) contrast(1.02);
  /* feather the left (and a touch of the bottom) edge into the cream */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 18%, #000 42%);
  will-change: opacity;
}
/* cream fade over the photo's left edge so the headline stays legible */
.hero__veil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--cream) 0%, rgba(245,238,230,0.96) 32%, rgba(245,238,230,0.55) 56%, transparent 80%),
    linear-gradient(0deg, rgba(245,238,230,0.4), transparent 34%);
}
.hero__inner { position: relative; z-index: 3; max-width: 620px; }
/* pull hero content toward the left edge, leaving the right for the photo */
.hero .wrap { max-width: none; padding-inline: clamp(24px, 7vw, 120px); }
.hero__logo { width: clamp(180px, 24vw, 270px); height: auto; margin: 0 0 var(--s4); display: block; }
.hero h1 { margin-bottom: var(--s5); line-height: 1.16; padding-bottom: 0.18em; }
.hero .lead { margin-bottom: var(--s5); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* ---------- Image placeholders ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--blush);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 14px);
  display: flex; align-items: center; justify-content: center;
}
.ph__label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: 0.08em;
  color: var(--espresso-70); background: rgba(255,253,251,0.7); padding: 6px 12px; border-radius: 6px; text-align: center;
}
.ph--warm { background: linear-gradient(135deg, var(--blush), var(--gold)); background-blend-mode: multiply; }
.duo { filter: grayscale(0.2) sepia(0.18) saturate(1.05) contrast(1.02); }

/* ---------- Trust strip ---------- */
.trust { background: var(--surface); padding-block: 28px; border-block: 1px solid var(--line); }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.trust__item { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--espresso-70); display: inline-flex; align-items: center; }
.trust__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.trust__social { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.trust__social a { color: var(--espresso-55); display: inline-flex; transition: color .3s var(--ease), transform .3s var(--ease); }
.trust__social a:hover { color: var(--terracotta); transform: translateY(-2px); }
.trust__social svg { width: 16px; height: 16px; display: block; }

/* ---------- About ---------- */
.about__copy h2, .data__intro h2, .contact__head h2 { margin-bottom: var(--s3); }
/* About: the founder photo is a full-bleed editorial panel on the left — same
   language as the hero (warm grade + a single feathered interior edge into the
   cream), not an oval vignette. */
.about { position: relative; overflow: hidden; }
.about__photo {
  position: absolute; top: 0; left: 0; height: 100%; width: clamp(340px, 55%, 940px);
  object-fit: cover; object-position: 62% 26%; z-index: 0;
  filter: grayscale(0.2) sepia(0.18) saturate(1.05) contrast(1.02);
  -webkit-mask-image: linear-gradient(to right, #000 48%, rgba(0,0,0,0.55) 76%, transparent 100%);
  mask-image: linear-gradient(to right, #000 48%, rgba(0,0,0,0.55) 76%, transparent 100%);
}
/* cream fade over the photo's inner edge so the copy stays crisp */
.about__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent 24%, rgba(245,238,230,0.5) 42%, var(--cream) 58%);
}
.about__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__spacer { min-height: 1px; }
.about__sig { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--terracotta); margin-top: var(--s2); }
.about__role { font-size: 14px; letter-spacing: 0.04em; color: var(--sage); font-weight: 500; }
.pull { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 27px); font-style: italic; line-height: 1.35; color: var(--espresso); margin: var(--s4) 0; padding-left: var(--s3); border-left: 2px solid var(--gold); }

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.service { display: flex; flex-direction: column; }
.service__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; margin-bottom: var(--s2); }
.service h3 { margin-bottom: var(--s2); }
.service__tone { font-size: 13px; letter-spacing: 0.04em; color: var(--sage); font-weight: 500; margin-bottom: var(--s3); }
.service__list { list-style: none; margin: var(--s2) 0 var(--s4); padding: 0; display: grid; gap: 12px; }
.service__list li { position: relative; padding-left: 26px; font-size: 16px; color: var(--espresso-70); line-height: 1.5; }
.service__list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--terracotta); }
.service__foot { margin-top: auto; text-align: center; }

/* ---------- Why / Values ---------- */
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4) var(--s5); }
.value__num { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--gold); display: block; margin-bottom: var(--s1); }
.value h3 { font-size: 21px; margin-bottom: 10px; }
.value p { color: var(--espresso-70); font-size: 15.5px; margin: 0; line-height: 1.55; }
.why__lead { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; color: var(--terracotta); max-width: 760px; }

/* ---------- Data ---------- */
.data__intro { max-width: 640px; }
.data__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-top: var(--s6); align-items: start; }
.stat {
  padding: var(--s3); border: 1px solid var(--line); border-radius: 16px;
  background: var(--cream); position: relative; cursor: default;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.stat:hover, .stat:focus-within { border-color: var(--terracotta); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.stat:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
/* expand affordance (+ that rotates to ×) */
.stat__toggle {
  position: absolute; top: 15px; right: 15px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--terracotta); display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 0; padding-bottom: 1px;
  transition: transform .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.stat:hover .stat__toggle, .stat:focus-within .stat__toggle { transform: rotate(135deg); background: var(--blush); border-color: var(--blush); }
.stat__viz { height: 46px; margin-bottom: var(--s2); display: flex; align-items: center; }
.stat__viz svg { width: auto; max-width: 100%; height: 100%; display: block; overflow: visible; }
.stat__fig { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 50px); font-weight: 500; color: var(--terracotta); line-height: 1; letter-spacing: -0.01em; margin-top: 4px; }
.stat__label { font-size: 14.5px; color: var(--espresso-70); margin: 10px 0 0; line-height: 1.5; }
/* smooth height collapse via grid-rows 0fr -> 1fr (robust, always collapses) */
.stat__detail {
  display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: 0;
  transition: grid-template-rows .5s var(--ease), opacity .35s var(--ease), margin .45s var(--ease);
}
.stat__detail-inner { overflow: hidden; min-height: 0; }
.stat:hover .stat__detail, .stat:focus-within .stat__detail { grid-template-rows: 1fr; opacity: 1; margin-top: var(--s2); }
.stat__sep { height: 1px; background: var(--line); margin-bottom: var(--s2); }
.stat__detail p { font-size: 13px; color: var(--espresso-70); line-height: 1.6; margin: 0 0 10px; }
.stat__srclink { font-size: 12px; font-weight: 600; color: var(--terracotta); letter-spacing: 0.03em; display: inline-flex; align-items: center; gap: 6px; }
.stat__srclink .arrow { transition: transform .3s var(--ease); }
.stat__srclink:hover { color: var(--terracotta-deep); }
.stat__srclink:hover .arrow { transform: translateX(3px); }

/* Stat visualization accents — proportions are static & true to each number */
.viz-person { transition: transform .45s var(--ease); }
.stat:hover .viz-person.is-on { transform: translateY(-4px); }
.viz-node { transition: stroke .4s var(--ease); }
.stat:hover .viz-node { stroke: var(--terracotta); }
.data__resolve { margin-top: var(--s6); text-align: center; }
.data__resolve p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.3; color: var(--espresso); max-width: 780px; margin-inline: auto; }

/* ---------- References (collapsible) ---------- */
.data__refs { margin-top: var(--s5); }
.data__refs summary { cursor: pointer; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage); list-style: none; display: flex; align-items: center; gap: 6px; }
.data__refs summary::-webkit-details-marker { display: none; }
.data__refs summary::before { content: "▸"; font-size: 11px; transition: transform 0.2s var(--ease); }
.data__refs[open] summary::before { transform: rotate(90deg); }
.data__refs .ref-list { padding-left: var(--s3); margin: var(--s3) 0 0; }
.ref-list li { font-size: 13px; color: var(--espresso-70); line-height: 1.6; margin-bottom: var(--s2); }
.ref-list li em { font-style: italic; }
.ref-list li a { color: var(--terracotta); text-decoration: none; }
.ref-list li a:hover { text-decoration: underline; }

/* ---------- Testimonials ---------- */
.testi__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.testi { display: flex; flex-direction: column; }
.testi__mark { font-family: var(--serif); font-size: 60px; line-height: 0.6; color: var(--blush); margin-bottom: 8px; height: 30px; }
.testi__quote { font-family: var(--serif); font-size: 20px; font-style: italic; line-height: 1.4; color: var(--espresso); margin-bottom: var(--s3); }
.testi__who { margin-top: auto; }
.testi__name { font-weight: 600; font-size: 15px; color: var(--espresso); }
.testi__ctx { font-size: 13.5px; color: var(--sage); }

/* ---------- Insights / Substack ---------- */
.insights__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.post { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.post__img { aspect-ratio: 16/10; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__img--terracotta { background: linear-gradient(135deg, var(--terracotta), #c4836a); }
.post__img--sage { background: linear-gradient(135deg, var(--sage), #8da68d); }
.post__img--gold { background: linear-gradient(135deg, var(--gold), #c9a66b); }
.post__initial { font-family: var(--serif); font-size: clamp(64px, 8vw, 96px); font-weight: 300; font-style: italic; color: rgba(255,255,255,0.35); line-height: 1; user-select: none; }
.post:hover .post__initial { color: rgba(255,255,255,0.5); }
.post__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post__date { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 12px; }
.post h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.18; }
.post__excerpt { font-size: 15px; color: var(--espresso-70); margin-bottom: 18px; line-height: 1.55; }
.post__more { margin-top: auto; align-self: center; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.post__more .arrow { transition: transform .3s var(--ease); }
.post:hover .post__more .arrow { transform: translateX(4px); }

/* ---------- Contact / Inquiry ---------- */
.contact__head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: var(--s6); }
.branch { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-bottom: var(--s5); }
.branch__card {
  text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px 26px; box-shadow: var(--shadow-soft); transition: all .35s var(--ease); position: relative; overflow: hidden;
}
.branch__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--blush); }
.branch__card.active { border-color: var(--terracotta); box-shadow: 0 0 0 1.5px var(--terracotta), var(--shadow-lift); }
.branch__card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--terracotta); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.branch__card.active::before { transform: scaleY(1); }
.branch__step { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }
.branch__card h3 { font-size: 20px; margin: 8px 0 8px; }
.branch__card p { font-size: 14.5px; color: var(--espresso-70); margin: 0; line-height: 1.5; }
.branch__tag { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--terracotta); }
.branch__tag .arrow { transition: transform .3s var(--ease); display: inline-block; }
.branch__card:hover .branch__tag .arrow { transform: translateX(4px); }

/* Form panel */
.form-panel { display: none; }
.form-panel.active { display: block; animation: riseIn .6s var(--ease) both; }
.form-shell { padding: clamp(28px, 4vw, 48px); }
.form-shell__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.form-shell__head h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.form-shell__head p { font-size: 15px; color: var(--espresso-70); margin: 0; max-width: 520px; }
.form-back { font-size: 13px; font-weight: 600; color: var(--terracotta); background: none; border: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.fgroup { display: grid; gap: 6px; margin-bottom: var(--s3); }
.fstep { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); margin: var(--s4) 0 var(--s2); }
.fstep:first-of-type { margin-top: 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
label.flabel { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.field {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--espresso);
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field::placeholder { color: rgba(61,43,31,0.38); }
.field:focus { outline: none; border-color: var(--terracotta); background: var(--surface); box-shadow: 0 0 0 3px rgba(164,101,70,0.10); }
textarea.field { resize: vertical; min-height: 96px; line-height: 1.55; }
select.field { appearance: none; 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 d='M1 1l5 5 5-5' stroke='%23A46546' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px; }
.chip-set { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-toggle { cursor: pointer; user-select: none; }
.chip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip-toggle span {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--espresso-70);
  font-size: 14px; font-weight: 500; transition: all .22s var(--ease);
}
.chip-toggle input:checked + span { background: var(--blush); border-color: var(--terracotta); color: var(--terracotta-deep); }
.chip-toggle input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.form-foot { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.privacy { font-size: 13px; color: var(--sage); max-width: 440px; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start; }
.privacy svg { flex-shrink: 0; margin-top: 2px; }
.form-success { text-align: center; padding: clamp(40px, 6vw, 72px); }
.form-success .mark { width: 64px; height: 64px; border-radius: 50%; background: var(--blush); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--s3); }
.form-success h3 { font-size: 30px; margin-bottom: 12px; }
.form-success p { color: var(--espresso-70); max-width: 460px; margin-inline: auto; }

/* ---------- CTA section ---------- */
.cta-section { padding-block: clamp(72px, 12vw, 140px); }
.cta { text-align: center; max-width: 720px; margin-inline: auto; }
.cta__eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: var(--s3);
}
.cta__eyebrow::before, .cta__eyebrow::after { content: ""; width: 30px; height: 1px; background: currentColor; opacity: 0.5; }
.cta__title { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 5.5vw, 60px); line-height: 1.04; color: var(--espresso); margin: 0 0 var(--s3); }
.cta__sub { font-size: 17px; color: var(--espresso-70); max-width: 540px; margin: 0 auto var(--s5); line-height: 1.6; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta__note { font-size: 13px; letter-spacing: 0.04em; color: var(--sage); margin-top: var(--s4); }
.btn-lg { padding: 17px 34px; font-size: 16.5px; border-radius: 999px; }
.btn-lg svg { margin-right: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); color: var(--cream); padding-block: var(--s7) var(--s5); }
.footer a { color: var(--blush); }
.footer a:hover { color: var(--surface); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.footer__brand { max-width: 360px; }
.footer__logo-img { width: 200px; height: auto; display: block; margin-bottom: var(--s3); padding: 14px 18px; background: var(--cream); border-radius: var(--radius-md, 12px); }
.footer__brand p { color: rgba(245,238,230,0.7); font-size: 15px; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 90px); flex-wrap: wrap; }
.footer__col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s2); font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__col a { font-size: 15px; }
.footer__ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid rgba(245,238,230,0.14); font-size: 13px; color: rgba(245,238,230,0.55); }

/* ---------- Calendly modal ---------- */
.cal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(30,22,16,0.55); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.cal-overlay.active { opacity: 1; pointer-events: auto; }
.cal-modal { position: relative; width: min(94vw, 560px); height: min(90vh, 720px); background: var(--surface); border-radius: var(--radius-lg, 16px); overflow: hidden; box-shadow: var(--shadow-lg, 0 24px 64px rgba(0,0,0,0.25)); transform: translateY(24px) scale(0.97); transition: transform .3s var(--ease); }
.cal-overlay.active .cal-modal { transform: translateY(0) scale(1); }
.cal-close { position: absolute; top: 12px; right: 14px; z-index: 1; background: none; border: none; font-size: 28px; color: var(--espresso); cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.cal-close:hover { background: rgba(0,0,0,0.06); }
.cal-modal iframe { width: 100%; height: 100%; border: none; }

/* ---------- Legal modal (Terms & Privacy) ---------- */
.legal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(30,22,16,0.55); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.legal-overlay.active { opacity: 1; pointer-events: auto; }
.legal-modal { position: relative; width: min(94vw, 720px); max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg, 16px); overflow: hidden; box-shadow: var(--shadow-lg, 0 24px 64px rgba(0,0,0,0.25)); transform: translateY(24px) scale(0.97); transition: transform .3s var(--ease); }
.legal-overlay.active .legal-modal { transform: translateY(0) scale(1); }
.legal-close { position: absolute; top: 10px; right: 14px; z-index: 2; background: none; border: none; font-size: 28px; color: var(--espresso); cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.legal-close:hover { background: rgba(0,0,0,0.06); }
.legal-scroll { overflow-y: auto; padding: clamp(28px, 5vw, 46px); padding-top: 44px; }
.legal-title { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 4vw, 34px); color: var(--espresso); margin: 0 0 var(--s3); }
.legal-body { color: var(--espresso-70); font-size: 15px; line-height: 1.7; }
.legal-body h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--espresso); margin: 22px 0 8px; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--terracotta); }
.legal-body strong { color: var(--espresso); font-weight: 600; }
.legal-body .legal-meta { font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--s3); }
.legal-body .legal-disclaimer { font-size: 13px; font-style: italic; color: var(--sage); border-top: 1px solid var(--line); margin-top: var(--s4); padding-top: var(--s3); }

/* footer legal links */
.footer__legal { display: flex; gap: 18px; }
.footer__legal-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: rgba(245,238,230,0.55); cursor: pointer; transition: color .3s var(--ease); }
.footer__legal-link:hover { color: var(--surface); text-decoration: underline; }
.footer__legal-link:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 3px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__cta .btn-mini-hide { display: none; }
  .nav__burger { display: inline-flex; }
  .about__grid { grid-template-columns: 1fr; gap: var(--s5); }
  /* stack the photo as a full-width banner above the copy, feathered at the bottom */
  .about__photo {
    position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; margin-bottom: var(--s3);
    object-position: 50% 28%;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }
  .about__veil, .about__spacer { display: none; }
  .values__grid { grid-template-columns: 1fr 1fr; }
  .data__grid, .testi__grid, .posts__grid { grid-template-columns: 1fr 1fr; }
  .branch { grid-template-columns: 1fr; }
}
/* On narrow screens the photo spans the full hero behind the text */
@media (max-width: 759px) {
  .hero__photo { width: 100%; object-position: 56% 14%; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .services__grid { grid-template-columns: 1fr; }
  .values__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .data__grid, .testi__grid, .posts__grid { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .form-shell__head { flex-direction: column-reverse; align-items: flex-start; }
  .insights__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- v3 spec additions ---------- */
.service__price { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--terracotta); margin: 0 0 var(--s3); }
.service__ideal { font-size: 13.5px; font-style: italic; color: var(--sage); margin: var(--s1) 0 var(--s3); }
.footer__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; color: var(--cream); margin: 0 0 var(--s2); }
.footer__creds { font-size: 13px; letter-spacing: 0.03em; color: rgba(245,238,230,0.55); margin: var(--s2) 0 0; }
.contact__closing { text-align: center; margin-top: var(--s4); color: var(--espresso-70); font-size: 15px; }
