/* Gorman & Bunch Orthodontics concept. "The Heart Line".
   Tokens: their logo purple + navy, their site sky; family grid and type scale from the Orthodontic Partners system. */
:root {
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.8 6 6.5.7-4.9 4.4 1.4 6.4L12 16.8l-5.8 3.3 1.4-6.4-4.9-4.4 6.5-.7z' stroke='%23000' stroke-width='1.2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --paper: #ffffff;
  --lilac: #f4eff9;
  --sky-tint: #e7f5ff;
  --ink: #021d49;
  --muted: #4e5873;
  --purple: #7f38a0;
  --purple-deep: #6a2c87;
  --plate-lilac: #e9ddf3;
  --plate-sky: #cfeafe;
  --sky: #33aeff;
  --line: #e3dbec;

  --f-display: "Gabarito", "Manrope", ui-rounded, sans-serif;
  --f-text: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --step-h1: clamp(2.375rem, 1rem + 6.111vw, 6.5rem);
  --step-5: clamp(2.1875rem, 1.583rem + 2.685vw, 4rem);
  --step-4: clamp(1.875rem, 1.458rem + 1.852vw, 3.125rem);
  --step-3: clamp(1.75rem, 1.4375rem + 1.389vw, 2.6875rem);
  --step-2: clamp(1.4375rem, 1.25rem + 0.833vw, 2rem);
  --step-1: clamp(1.1875rem, 1.083rem + 0.463vw, 1.5rem);
  --step-0: clamp(1rem, 0.958rem + 0.185vw, 1.125rem);
  --step--1: 0.8125rem;

  --shell: 106rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --col-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --header-h: clamp(4.5rem, 3.9rem + 1.6vw, 5.75rem);
  --space-section: clamp(5rem, 3rem + 7vw, 10rem);
  --space-2xl: clamp(3rem, 2rem + 4vw, 6rem);

  --r-lg: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  --r-md: 1.25rem;
  --r-sm: 0.75rem;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: var(--step-0); line-height: 1.62;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--plate-lilac); color: var(--ink); }
input, select, textarea { caret-color: var(--purple); accent-color: var(--purple); }
.link, .foot__base a { text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--purple); color: #fff; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }

.shell { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }

/* ---------- type ---------- */
.h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-5); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink); font-weight: 500; }
.hl { color: var(--purple); }

.link { font-weight: 600; color: var(--purple); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease); }
.link:hover { background-size: 0% 2px; background-position: 100% 100%; }
p .link { font-weight: 600; }
button.link { border: 0; cursor: pointer; background-color: transparent; padding: 0 0 2px; }
.link--strong { letter-spacing: .04em; font-size: var(--step--1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-text); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--fill { background: var(--purple); color: #fff; box-shadow: 0 8px 22px -12px rgba(127, 56, 160, .7); }
.btn--fill:hover { background: var(--purple-deep); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--purple); color: var(--purple); }
.btn--white { background: #fff; color: var(--purple); }
.btn--white:hover { background: var(--lilac); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .3s; }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.bar__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 1.5rem; }
.bar__logo { justify-self: start; display: block; border-radius: 8px; }
.bar__logo img { height: clamp(2.5rem, 1.9rem + 1.6vw, 3.4rem); width: auto; }
.bar__cta { justify-self: end; }
.menu-btn { display: none; }

.nav__list { display: flex; gap: clamp(.5rem, .2rem + 1vw, 1.5rem); }
.nav__item { position: relative; }
.nav__top {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .7rem; border: 0; background: none; cursor: pointer;
  font-size: 1.0625rem; font-weight: 600; color: var(--ink); border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav__top:hover, .nav__top[aria-expanded="true"] { color: var(--purple); background: var(--lilac); }
.caret { width: .9rem; height: .9rem; background: currentColor; -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .25s var(--ease); }
.nav__top[aria-expanded="true"] .caret { transform: rotate(180deg); }
.dd {
  position: absolute; top: calc(100% + .6rem); left: 50%; translate: -50% 0; min-width: 22rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: .75rem;
  box-shadow: 0 30px 60px -30px rgba(2, 29, 73, .28);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s, transform .22s var(--ease), visibility 0s .22s;
}
.dd.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .22s var(--ease); }
.dd--offices { min-width: 36rem; }
.dd--offices .dd__cols { display: grid; grid-template-columns: 1fr 1fr; }
.dd a { display: block; padding: .7rem .9rem; border-radius: var(--r-sm); text-decoration: none; transition: background-color .2s; }
.dd a:hover { background: var(--lilac); }
.dd b { display: block; font-weight: 600; font-size: 1rem; }
.dd span { display: block; font-size: .875rem; color: var(--muted); }

.panel { position: absolute; left: 0; right: 0; top: 100%; border-top: 1px solid var(--line); background: #fff; height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
.panel__in { padding-block: 1rem 1.5rem; }
.panel details { border-bottom: 1px solid var(--line); }
.panel summary { list-style: none; cursor: pointer; padding: 1.1rem 0; font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); display: flex; justify-content: space-between; align-items: center; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::after { content: ""; width: 1.1rem; height: 1.1rem; background: var(--purple); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transition: transform .25s; }
.panel details[open] summary::after { transform: rotate(180deg); }
.panel ul { padding-bottom: 1rem; }
.panel li a { display: block; padding: .7rem 0; text-decoration: none; font-weight: 500; }
.panel__cta { width: 100%; margin-top: 1.5rem; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(.5rem, .2rem + 1vw, 1.25rem); }
.hero__panel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); background: var(--lilac);
  min-height: calc(100svh - var(--header-h) - 2rem);
  display: flex; align-items: center;
}
.hero__shader { position: absolute; inset: 0; z-index: -1; }
.hero__shader canvas { width: 100% !important; height: 100% !important; display: block; }
.hero__grid {
  width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  align-items: center; padding: clamp(2rem, 1rem + 3vw, 4rem) clamp(1.25rem, .5rem + 3.5vw, 5rem);
}
.hero__copy { grid-column: 1 / span 6; grid-row: 1; position: relative; z-index: 2; }
.hero__h1 { font-family: var(--f-display); font-weight: 800; font-size: min(var(--step-h1), 10.4svh, 6.8vw); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.hero__h1 .line { padding-bottom: .06em; margin-bottom: -.06em; }
.hero__sub { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); font-size: var(--step-1); line-height: 1.5; max-width: 34rem; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.hero__proof { display: flex; align-items: center; gap: .7rem; margin-top: 1.5rem; font-weight: 600; font-size: 1rem; }
.stars { display: inline-flex; gap: 3px; }
.stars i { width: 1.05rem; height: 1.05rem; background: var(--purple); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; }
.stars--light i { background: #fff; width: 1.4rem; height: 1.4rem; }

.hero__art { grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 1; }
.heart-frame { position: relative; aspect-ratio: 52 / 42; width: 100%; }
.heart-frame__clip { position: absolute; inset: 2.6%; clip-path: url(style.css); }
.heart-frame__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; }
.heart-frame__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.heart-frame__line path { fill: none; stroke: var(--purple); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* ---------- statement ---------- */
.statement { padding-top: var(--space-section); }
.statement__copy { grid-column: 1 / span 6; align-self: start; }
.statement__copy .lead { margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); max-width: 36rem; }
.statement__copy .btn { margin-top: 2rem; }
.statement__photo { grid-column: 8 / span 5; margin-top: var(--space-2xl); }
.statement__clip { overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 5; }
.statement__clip img { width: 100%; height: 116%; object-fit: cover; object-position: 38% 50%; margin-top: -8%; }

/* ---------- treatments ---------- */
.treat { padding-top: var(--space-section); }
.split-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.split-head .h2 { grid-column: 1 / span 6; }
.split-head__aside { grid-column: 8 / span 5; color: var(--muted); }
.split-head__aside .link { display: inline-block; margin-top: 1.25rem; }
.tiles { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: var(--col-gap); }
.tile { position: relative; border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -40px rgba(2, 29, 73, .35); }
.tile__photo { overflow: hidden; }
.tile__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.tile:hover .tile__photo img { scale: 1.03; }
.tile__kicker { font-weight: 700; color: var(--purple); margin-top: .5rem; }
.tile__text p:last-child { margin-top: .9rem; color: var(--ink); }
.tile__link { text-decoration: none; }
.tile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tile p .link { position: relative; z-index: 2; }
.tile--big { grid-column: 1 / span 7; grid-row: 1 / span 2; background: var(--sky-tint); display: grid; grid-template-rows: auto 1fr; }
.tile--big .tile__text { padding: clamp(1.5rem, 1rem + 2vw, 3rem); max-width: 40rem; }
.tile--big .h3 { font-size: var(--step-4); }
.tile--big .tile__photo { min-height: 20rem; }
.tile--big .tile__photo img { object-position: 50% 35%; }
.tile--small { grid-column: 8 / span 5; border: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: 2fr 3fr; }
.tile--small .tile__photo { min-height: 100%; }
.tile--small .tile__text { padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.tile--small .tile__text p:last-child { font-size: .9375rem; line-height: 1.6; }

/* ---------- doctors (signature) ---------- */
.docs { padding-top: max(1rem, calc(var(--space-section) - var(--header-h) - 1rem)); }
.docs__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 1rem) 2rem; }
.docs__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.docs__head .h2 { grid-column: 1 / span 5; }
.docs__aside { grid-column: 7 / span 6; color: var(--muted); font-size: 1rem; }
.docs__ctl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.arrows { display: flex; gap: .5rem; }
.arrow { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--line); background: #fff; cursor: pointer; position: relative; transition: border-color .2s, transform .25s var(--ease), opacity .2s; }
.arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 1.1rem; height: 1.1rem; background: var(--ink); -webkit-mask: var(--chev) center / contain no-repeat; mask: var(--chev) center / contain no-repeat; transform: rotate(-90deg); }
.arrow--prev::before { transform: rotate(90deg); }
.arrow:hover { border-color: var(--purple); transform: translateY(-2px); }
.arrow:disabled { opacity: .35; cursor: default; transform: none; }

.docs__viewport { margin-top: clamp(1.5rem, 1rem + 2vw, 3rem); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x mandatory; cursor: grab; }
.docs__viewport::-webkit-scrollbar { display: none; }
.docs__viewport.is-drag { cursor: grabbing; scroll-snap-type: none; }
.docs__track { position: relative; width: max-content; padding-inline: max(var(--gutter), (100vw - var(--shell)) / 2); padding-top: 4.5rem; }
.docs__line { position: absolute; left: 0; top: 0; height: 4.5rem; overflow: visible; pointer-events: none; }
.docs__line path { fill: none; stroke: var(--purple); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.docs__list { display: flex; gap: var(--col-gap); }
.doc { flex: none; width: clamp(15rem, 10rem + 14vw, 24rem); scroll-snap-align: start; scroll-margin-inline: var(--gutter); }
.doc__plate { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; padding: clamp(.6rem, .4rem + .6vw, 1rem); position: relative; }
.doc--lilac .doc__plate { background: var(--plate-lilac); }
.doc--sky .doc__plate { background: var(--plate-sky); }
.doc__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: calc(var(--r-lg) - .6rem); transition: scale .6s var(--ease); }
.doc:hover .doc__plate img { scale: 1.03; }
.doc__name { margin-top: 1rem; font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; }
.docs.is-pinned .doc { width: clamp(13rem, calc((100svh - 31rem) * .8), 34rem); }
.docs.is-pinned .docs__aside { font-size: .9375rem; }
.docs.is-pinned .doc__name { white-space: nowrap; font-size: clamp(1.0625rem, .6rem + .9vw, 1.5rem); margin-top: .75rem; }
.docs.is-pinned .docs__viewport { overflow: visible; scroll-snap-type: none; cursor: auto; }
.docs.is-pinned .arrows { display: none; }

/* ---------- reviews ---------- */
.reviews { padding-top: var(--space-section); }
.reviews__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--col-gap); align-items: stretch; }
.reviews__badge { grid-column: 1 / span 4; background: var(--purple); color: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 2.5vw, 3.5rem); display: flex; flex-direction: column; gap: 1.5rem; }
.reviews__badge .btn { margin-top: auto; }
.reviews__badge .h2 { font-size: var(--step-4); }
.reviews__badge .btn { align-self: flex-start; }
.quotes { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.reviews__badge .h2 { text-wrap: balance; }
.quote { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; background: #fff; }
.quote blockquote p { font-size: 1rem; line-height: 1.6; }
.quote--wide { grid-column: span 2; }
.quote--wide blockquote p { font-family: var(--f-display); font-weight: 500; font-size: var(--step-1); line-height: 1.4; letter-spacing: -.005em; }
.quote__by { font-weight: 700; color: var(--purple); font-size: .9375rem; }

/* ---------- office finder ---------- */
.finder { padding-top: var(--space-section); }
.finder__panel { background: var(--lilac); border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 3vw, 5rem); }
.finder__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.finder__head .h2 { grid-column: 1 / span 6; }
.finder__head p { grid-column: 8 / span 5; color: var(--muted); }
.finder__body { margin-top: var(--space-2xl); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
.cities { grid-column: 1 / span 5; position: relative; display: flex; flex-direction: column; }
.city {
  position: relative; z-index: 1; display: flex; align-items: center; gap: .9rem; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: var(--step-4); line-height: 1.12; letter-spacing: -.02em; color: rgba(2, 29, 73, .38);
  padding: .14em 0 .14em 2.4rem; transition: color .3s, transform .35s var(--ease);
}
.city:hover { color: var(--ink); }
.city[aria-checked="true"] { color: var(--purple); }
.city:focus-visible { outline-offset: 0; }
.cities__mark { position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.3rem; background: url("../media/heart.svg") center / contain no-repeat; pointer-events: none; }
.office { grid-column: 7 / span 6; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.office__card { background: #fff; border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 3rem); box-shadow: 0 40px 80px -60px rgba(2, 29, 73, .45); }
.office__label { font-weight: 700; color: var(--purple); font-size: .9375rem; letter-spacing: .02em; }
.office__city { margin-top: .4rem; font-size: var(--step-4); }
.office__addr { margin-top: .8rem; font-size: var(--step-1); line-height: 1.45; }
.office__book { margin-top: 1.75rem; width: 100%; }
.office__acts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9375rem; transition: border-color .2s, color .2s, transform .25s var(--ease); }
.chip:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.office__mapbtn { margin-top: 1.5rem; font-size: .9375rem; }
.office__map { margin-top: 1rem; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; background: var(--lilac); }
.office__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- blog ---------- */
.blog { padding-top: var(--space-section); }
.blog__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
.blog__head p { margin-top: 1.25rem; color: var(--muted); }
.blog__head .link { display: inline-block; margin-top: 1.25rem; }
.posts { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.post--lead { grid-column: 1 / -1; }
.post__link { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.post__photo { display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 3 / 2; }
.post--lead .post__photo { aspect-ratio: 16 / 8; }
.post__photo img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease); }
.post__link:hover .post__photo img { scale: 1.03; }
.post__date { margin-top: 1rem; font-size: .875rem; color: var(--muted); font-weight: 600; }
.post__title { margin-top: .35rem; font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.2; background: linear-gradient(var(--purple), var(--purple)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; width: fit-content; }
.post--lead .post__title { font-size: var(--step-3); }
.post__link:hover .post__title { color: var(--purple); background-size: 100% 2px; }

/* ---------- close ---------- */
.close { padding-block: var(--space-section); }
.close__panel { background: var(--sky-tint); border-radius: var(--r-lg); padding: clamp(1.75rem, 1rem + 3vw, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 2.5rem; }
.close__copy { grid-column: 1 / span 5; }
.close__copy .lead { margin-top: 1.25rem; }
.close__copy .link { display: inline-block; margin-top: 2rem; }
.form { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #c9d6e6; border-radius: var(--r-sm);
  padding: .85rem 1rem; min-height: 3.25rem; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(127, 56, 160, .18); }
.field.is-invalid input, .field.is-invalid select { border-color: #b42318; }
.field__err { color: #b42318; font-size: .875rem; font-weight: 600; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form__msg { font-weight: 600; color: var(--ink); background: #fff; border-radius: var(--r-sm); padding: .9rem 1.1rem; flex: 1 1 18rem; }

/* ---------- footer ---------- */
.foot { background: var(--lilac); padding-block: clamp(3rem, 2rem + 4vw, 6rem) 2rem; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.foot__logo img { height: 3.25rem; width: auto; }
.foot__aff { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.5rem; font-weight: 600; }
.foot__aff ul { display: flex; gap: 1rem; }
.foot__aff img { width: 4rem; height: 4rem; object-fit: contain; }
.foot__offices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem var(--col-gap); padding-block: 2.5rem; }
.foot__offices li { display: flex; flex-direction: column; gap: .3rem; font-size: .9375rem; }
.foot__offices a:first-child { font-weight: 700; text-decoration: none; color: var(--ink); width: fit-content; }
.foot__offices a:first-child:hover { color: var(--purple); }
.foot__offices span { color: var(--muted); }
.foot__offices .tel { color: var(--purple); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; width: fit-content; }
.foot__offices .tel:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.foot__base ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot__base a { color: var(--ink); }

/* ---------- motion helpers ---------- */
.js .heart-frame__line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.no-motion .heart-frame__line path, .reduce .heart-frame__line path { stroke-dashoffset: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1300px) and (min-width: 1024px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__art { grid-column: 8 / span 5; }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  .tile--small { grid-template-columns: 1fr; }
  .tile--small .tile__photo { aspect-ratio: 16 / 8; min-height: 0; }
}
@media (max-width: 1180px) {
  .nav__top { font-size: 1rem; padding: .55rem .5rem; }
  .bar__in { gap: 1rem; }
}
@media (max-width: 1023px) {
  .nav { display: none; }
  .bar__in { grid-template-columns: 1fr auto auto; gap: .6rem; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; }
  .menu-btn[aria-expanded="true"] { border-color: var(--purple); color: var(--purple); }
  .hero__copy { grid-column: 1 / -1; }
  .hero__art { grid-column: 2 / span 10; grid-row: 2; margin-top: 2.5rem; }
  .hero__panel { min-height: 0; }
  .statement__copy, .statement__photo { grid-column: 1 / -1; }
  .statement__photo { margin-top: 3rem; }
  .statement__clip { aspect-ratio: 4 / 3; }
  .split-head .h2, .split-head__aside { grid-column: 1 / -1; }
  .split-head__aside { margin-top: 1.25rem; }
  .tile--big, .tile--small { grid-column: 1 / -1; grid-row: auto; }
  .docs__head .h2, .docs__aside { grid-column: 1 / -1; }
  .docs__aside { margin-top: 1.25rem; }
  .reviews__badge { grid-column: 1 / -1; min-height: 0; }
  .quotes { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .quote--wide { grid-column: span 2; }
  .finder__head .h2, .finder__head p { grid-column: 1 / -1; }
  .finder__head p { margin-top: 1rem; }
  .cities, .office { grid-column: 1 / -1; }
  .office { position: static; margin-top: 2rem; }
  .cities { display: grid; grid-template-columns: 1fr 1fr; }
  .blog__head { grid-column: 1 / -1; position: static; }
  .posts { grid-column: 1 / -1; margin-top: 2.5rem; }
  .close__copy, .form { grid-column: 1 / -1; }
  .foot__offices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bar__cta { padding: .6rem 1rem; min-height: 2.75rem; font-size: .9375rem; }
  .hero__panel { border-radius: var(--r-md); }
  .hero__grid { padding: 2rem 1.25rem 1.5rem; }
  .hero__actions .btn { width: 100%; }
  .hero__art { grid-column: 1 / -1; grid-row: 1; justify-self: end; width: min(78%, 20rem); margin: 0 0 1.25rem; }
  .hero__copy { grid-row: 2; }
  .hero__h1 { font-size: clamp(2.25rem, 1.2rem + 5.4vw, 2.75rem); }
  .hero__sub { font-size: 1.0625rem; margin-top: 1rem; }
  .hero__actions { margin-top: 1.25rem; }
  .hero__proof { margin-top: 1rem; }
  .tile--small { grid-template-columns: 1fr; }
  .tile--small .tile__photo { aspect-ratio: 16 / 10; }
  .tile--big .tile__photo { min-height: 0; aspect-ratio: 4 / 3; }
  .docs__ctl { flex-wrap: wrap; }
  .doc { width: 72vw; }
  .quotes { grid-template-columns: 1fr; }
  .quote--wide { grid-column: auto; }
  .finder__panel, .close__panel { border-radius: var(--r-md); padding: 1.75rem 1.25rem; }
  .city { font-size: clamp(1.5rem, 1rem + 2.4vw, 1.875rem); padding-left: 2rem; }
  .cities__mark { width: 1.3rem; height: 1.05rem; }
  .posts { grid-template-columns: 1fr; }
  .post--lead .post__photo { aspect-ratio: 3 / 2; }
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .foot__offices { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bar__cta { display: none; }
  .bar__logo img { height: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .heart-frame__line path { stroke-dashoffset: 0; }
}
