/* Thrive At Home Physical Therapy — "House Call"
   Daylight living rooms, one navy anchor. The logo's house outline is the frame motif.
   Scroll motion (Motion, vanilla) only runs when <html> has .motion (set by boot.js). */

:root {
  --navy: #10345a;
  --navy-deep: #0b2742;
  --blue: #4b7eaf;
  --blue-ink: #3a6a98;
  --mist: #f3f7fb;
  --mist-2: #e7eff7;
  --ink: #12263b;
  --ink-2: #2c3f53;
  --muted: #4d5f71;
  --line: rgba(16, 52, 90, .12);
  --paper: #ffffff;
  --ok: #2f7d58;
  --err: #b4452f;

  --display: "Montserrat", system-ui, sans-serif;
  --body: "Lato", system-ui, sans-serif;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);

  --gutter: clamp(16px, 3vw, 40px);
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 12px;
  --swoosh: var(--blue);
  --house: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 104' preserveAspectRatio='none'%3E%3Cpath d='M3 41 60 3l25 16.6V9.5h12.5V28L117 41v56a5 5 0 0 1-5 5H8a5 5 0 0 1-5-5Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(90px, 11vw, 150px) 0 0; }

.h2 {
  font: 700 clamp(1.85rem, 3.2vw, 2.7rem)/1.12 var(--display);
  letter-spacing: -.025em;
  color: var(--navy);
  text-wrap: balance;
}
.lede { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 18px; line-height: 1.6; }
.small { font-size: 15px; color: var(--muted); }
.kicker { font: 600 14px/1.3 var(--display); color: var(--blue-ink); margin-bottom: 14px; }

/* ---------- Icons ---------- */
.btn svg, .svc-go, .contact-mail svg, .area svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
svg.i-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--display); letter-spacing: -.005em;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 14px; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-outline { border-color: rgba(16,52,90,.35); color: var(--navy); background: rgba(255,255,255,.7); }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-navy:hover { background: var(--navy-deep); }
  .btn-outline:hover { border-color: var(--navy); background: #fff; }
  .btn-white:hover { background: var(--mist); }
  .btn-ghost:hover { border-color: #fff; }
  .btn-outline:hover svg, .btn-white:hover svg, .btn-navy:hover svg:not(.i-fill) { transform: translateX(3px); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 0; right: 0;
  padding: 0 calc(8px + var(--gutter) * .5);
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: 66px; padding: 0 9px 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 300ms ease;
  animation: navIn 700ms var(--ease-out) both;
}
@keyframes navIn { from { opacity: 0; transform: translateY(-10px); } }
.nav.is-solid .nav-bar { box-shadow: 0 12px 30px -20px rgba(16,52,90,.45); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo-mark { width: 46px; height: 40px; }
.logo-words { display: grid; line-height: 1; }
.logo-words b { font: 700 17px/1 var(--display); letter-spacing: .015em; text-transform: uppercase; }
.logo-words small { margin-top: 5px; font: 600 9px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: var(--blue-ink); }

.nav-links { display: flex; align-items: center; gap: 26px; margin: 0 auto; font: 600 15px/1 var(--display); color: var(--ink-2); }
.nav-links .nav-join { padding: 9px 14px; border: 1.5px solid rgba(16,52,90,.25); border-radius: 999px; color: var(--navy); }
.nav-links .nav-join::after { display: none; }
@media (hover: hover) and (pointer: fine) { .nav-links .nav-join:hover { border-color: var(--navy); } }
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out);
}
.nav-links a.is-current::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-cta { min-height: 48px; }
.nav-call { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; place-items: center; margin-left: auto; }
.nav-call svg { width: 19px; height: 19px; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform 250ms var(--ease-out); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  pointer-events: auto;
  display: none; flex-direction: column;
  margin: 8px auto 0; max-width: 1240px; padding: 12px;
  background: #fff; color: var(--navy);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 60px -30px rgba(16,52,90,.4);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right;
  transition: opacity 200ms ease, transform 250ms var(--ease-out), visibility 0s linear 250ms;
  visibility: hidden;
}
.mobile-menu a:not(.btn) { padding: 15px 10px; font: 600 21px/1.1 var(--display); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }
.nav.is-open .mobile-menu { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }

/* ---------- Hero ---------- */
.hero { padding: 12px 12px 0; }
.hero-frame {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - 12px), 860px);
  border-radius: var(--r-lg);
  background: var(--mist);
  display: flex; align-items: center;
  padding: 120px clamp(22px, 4vw, 64px) 56px;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 18% 30%;
  animation: heroIn 1.8s var(--ease-out) both;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } }
.hero-wash {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(246,249,252,.97) 0%, rgba(246,249,252,.9) 30%, rgba(246,249,252,.35) 50%, rgba(246,249,252,0) 62%);
}
.ai-badge {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px 8px 11px; border-radius: 999px;
  background: rgba(11,39,66,.8); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 600 12.5px/1.2 var(--display); letter-spacing: .005em;
  animation: fadeUp 800ms var(--ease-out) 1.1s both;
}
.ai-badge svg { width: 13px; height: 13px; fill: #a9c6e3; }
.hero-content { max-width: 590px; }
.hero-title {
  font: 700 clamp(2.7rem, 5.2vw, 4.6rem)/1.02 var(--display);
  letter-spacing: -.035em;
  color: var(--navy);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.03em; }
.hero-title .line > span { display: inline-block; animation: lineUp 1s var(--ease-out) both; }
.hero-title .line:nth-child(1) > span { animation-delay: .2s; }
.hero-title .line:nth-child(2) > span { animation-delay: .3s; }
.hero-title .line:nth-child(3) > span { animation-delay: .4s; }
.hero-title .accent { color: var(--blue); }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero-lede { margin-top: 22px; max-width: 44ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cred {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; color: var(--muted);
}
.hero-cred strong { color: var(--navy); font-weight: 700; }
.hero-cred > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 12px 3px; border-radius: 50%; background: var(--blue); vertical-align: middle; }

.load { animation: fadeUp 800ms var(--ease-out) var(--d, 0s) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Statement ---------- */
.statement { padding: clamp(96px, 12vw, 170px) 0 0; }
.statement-text {
  max-width: 1040px;
  font: 600 clamp(1.55rem, 3.3vw, 2.85rem)/1.28 var(--display);
  letter-spacing: -.022em; color: var(--navy);
  text-wrap: pretty;
}
.statement-text .sw { transition: opacity 120ms linear; }

/* ---------- Motion start states (only with .motion) ---------- */
.motion [data-reveal]:not(.in) { opacity: 0; }
.motion [data-reveal].in { animation: revealUp 800ms var(--ease-out) calc(var(--i, 0) * 70ms) backwards; }
@keyframes revealUp { from { opacity: 0; transform: translateY(20px); } }
.motion [data-split]:not(.is-split) { opacity: 0; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; }
.motion [data-stagger]:not(.in) > li { opacity: 0; }
.motion [data-mask] { clip-path: inset(0% 50% 0% 50% round var(--r-md)); }
.motion [data-mask].in { clip-path: none; }
.motion .chapter-word span { transform: translateY(108%); }
.motion .house-line path, .motion .prov-roof path { stroke-dashoffset: 1; }
.motion .house-photo { clip-path: inset(100% 0% 0% 0%); }
.motion .about-frame { transform: translate(0, 0); opacity: 0; }

/* ---------- Why: the house frame ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.house { position: relative; aspect-ratio: 120 / 104; margin: 18px 18px 0 0; }
.house-line { position: absolute; inset: 0; width: 100%; height: 100%; transform: translate(18px, -18px); overflow: visible; }
.house-line path, .prov-roof path { fill: none; stroke-dasharray: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.house-line path { stroke: var(--blue); stroke-width: 2; }
.house-photo {
  position: absolute; inset: 0; background: var(--mist);
  -webkit-mask: var(--house) center / 100% 100% no-repeat; mask: var(--house) center / 100% 100% no-repeat;
}
.house-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.why-list { margin-top: 34px; border-top: 1px solid var(--line); }
.why-list li { display: grid; grid-template-columns: 210px 1fr; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.why-list h3 { font: 700 18px/1.3 var(--display); color: var(--navy); letter-spacing: -.01em; }
.why-list p { color: var(--muted); font-size: 16.5px; }

/* ---------- Services explorer ---------- */
.svc {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5vw, 72px); align-items: start;
}
.svc-item { display: contents; }
.svc-head {
  grid-column: 1; position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px;
  width: 100%; padding: 22px 6px 22px 24px; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line);
}
.svc-item:last-child .svc-head { border-bottom: 1px solid var(--line); }
.svc-head::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px; border-radius: 3px; background: var(--blue);
  transform: scaleY(0); transition: transform 350ms var(--ease-out);
}
.svc-title { font: 700 clamp(17px, 1.6vw, 20px)/1.25 var(--display); color: var(--ink-2); letter-spacing: -.015em; transition: color 200ms ease; }
.svc-short { grid-row: 2; font-size: 15px; color: var(--muted); }
.svc-go { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--navy); opacity: .25; transition: opacity 250ms ease, transform 300ms var(--ease-out); }
.is-active > .svc-head::before { transform: scaleY(1); }
.is-active > .svc-head .svc-title { color: var(--navy); }
.is-active > .svc-head .svc-go { opacity: 1; transform: translateX(4px); }
@media (hover: hover) and (pointer: fine) {
  .svc-head:hover .svc-title { color: var(--navy); }
  .svc-head:hover .svc-go { opacity: .7; }
}
.svc-panel {
  grid-column: 2; grid-row: 1 / span 7;
  position: sticky; top: 108px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.is-active > .svc-panel { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.svc-inner { background: var(--mist); border-radius: 22px; padding: 12px; overflow: hidden; min-height: 0; }
.svc-photo { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--mist-2); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-copy { padding: 24px 22px 18px; }
.svc-copy h3 { font: 700 clamp(1.35rem, 2vw, 1.6rem)/1.2 var(--display); color: var(--navy); letter-spacing: -.02em; }
.svc-copy > p { margin-top: 12px; color: var(--muted); max-width: 60ch; }
.svc-points { margin: 20px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.svc-points li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.svc-points li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-photo { position: relative; margin: 0 22px 22px 0; }
.about-frame { position: absolute; inset: 0; border: 2px solid var(--blue); border-radius: var(--r-md); transform: translate(22px, 22px); }
.about-img { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-sub { margin-top: 12px; font: 600 18px/1.4 var(--display); color: var(--ink-2); }
.about-body { margin-top: 18px; max-width: 58ch; color: var(--muted); }
.check-list { margin: 26px 0 30px; border-top: 1px solid var(--line); }
.check-list li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 14px; height: 8px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

/* ---------- How it works: chapters ---------- */
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.how-head .lede { margin-top: 0; max-width: 40ch; }
.chapter { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.chapter-word {
  overflow: hidden; padding: .14em 0 .1em;
  font: 700 clamp(3.2rem, 9.5vw, 8rem)/.9 var(--display); letter-spacing: -.05em; color: var(--navy);
}
.chapter-word span { display: block; }
.chapter-word i { font-style: normal; color: var(--blue); }
.chapter-grid { margin-top: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.chapter-copy { background: var(--mist); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.chapter-lead { font: 700 clamp(1.25rem, 1.9vw, 1.5rem)/1.25 var(--display); color: var(--navy); letter-spacing: -.02em; max-width: 22ch; }
.chapter-copy > p:not(.chapter-lead):not(.chapter-fact) { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.chapter-fact { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--blue); font: 600 14.5px/1.4 var(--display); color: var(--ink-2); }
.chapter-photo [data-mask] { aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.chapter-photo img { width: 100%; height: 100%; object-fit: cover; }
.chapter:nth-child(3) .chapter-word { text-align: right; }
.chapter:nth-child(3) .chapter-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.chapter:nth-child(3) .chapter-photo { order: -1; }

/* ---------- Providers ---------- */
.providers, .contact { padding-left: 12px; padding-right: 12px; }
.prov-frame {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 1400px; margin: 0 auto;
  border-radius: var(--r-lg);
  background: var(--navy); color: #fff;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 6vw, 84px);
}
.prov-roof { position: absolute; z-index: -1; left: 30%; bottom: -74%; width: 44%; height: auto; }
.prov-roof path { stroke: rgba(169,198,227,.16); stroke-width: 1.5; }
.prov-frame .h2 { color: #fff; }
.prov-frame .kicker { color: #a9c6e3; }
.prov-frame .lede { color: rgba(255,255,255,.82); }
.prov-list { margin: 28px 0 32px; border-top: 1px solid rgba(255,255,255,.16); }
.prov-list li { position: relative; padding: 13px 0 13px 24px; border-bottom: 1px solid rgba(255,255,255,.16); font-size: 16.5px; }
.prov-list li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: #8fb4da; }
.prov-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.prov-photo [data-mask] { aspect-ratio: 4 / 3.4; border-radius: var(--r-md); overflow: hidden; background: var(--navy-deep); }
.prov-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }

/* ---------- Contact ---------- */
.contact-frame {
  max-width: 1400px; margin: 0 auto;
  border-radius: var(--r-lg);
  background: var(--mist);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 80px);
  padding: clamp(32px, 6vw, 84px);
}
.contact-phone {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 32px;
  font: 700 clamp(1.8rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -.03em; color: var(--navy);
  border-bottom: 2px solid rgba(16,52,90,.2); padding-bottom: 8px; transition: border-color 200ms ease;
}
.contact-phone svg { width: 26px; height: 26px; color: var(--blue); }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; transition: color 200ms ease; }
.contact-mail svg { width: 20px; height: 20px; color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .contact-phone:hover { border-color: var(--navy); }
  .contact-mail:hover { color: var(--navy); }
}
.contact-info > a { display: flex; width: fit-content; }
.area { display: flex; gap: 14px; margin: 34px 0 22px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 380px; }
.area svg { width: 26px; height: 26px; color: var(--navy); margin-top: 2px; }
.area p { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.area strong { display: block; font: 700 15px/1.4 var(--display); color: var(--navy); }

.req-form {
  background: #fff; border-radius: calc(var(--r-lg) - 6px);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 30px 70px -50px rgba(16,52,90,.45);
  display: grid; gap: 16px; align-content: start;
}
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--mist); border-radius: 999px; }
.seg label { position: relative; z-index: 1; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 12px 10px; font: 600 14px/1.2 var(--display); color: var(--muted); transition: color 200ms ease; }
.seg input:checked + span { color: var(--navy); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); border-radius: 999px; }
.seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px -3px rgba(16,52,90,.3); transition: transform 300ms var(--ease-out); }
.seg:has(label:nth-child(2) input:checked) .seg-thumb { transform: translateX(100%); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span, .chips-group legend { font: 600 14px/1.3 var(--display); color: var(--ink-2); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 52px; width: 100%; padding: 0 14px;
  border: 1px solid rgba(16,52,90,.2); border-radius: var(--r-sm); background: #fff;
  font: 400 17px var(--body); color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  appearance: none; -webkit-appearance: none;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder { color: #8796a6; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%2310345a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,126,175,.2); }
.field.err input { border-color: var(--err); box-shadow: 0 0 0 3px rgba(180,69,47,.12); animation: shake 300ms var(--ease-out); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.provider-only { display: none; }
.req-form.is-provider .provider-only { display: grid; animation: fadeUp 400ms var(--ease-out) both; }
.chips-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips-group legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: grid; place-items: center; min-height: 46px; padding: 0 18px;
  border-radius: 999px; border: 1px solid rgba(16,52,90,.2);
  font: 600 14px/1 var(--display); color: var(--ink-2);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active span { transform: scale(.96); }
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip:hover input:not(:checked) + span { border-color: var(--navy); } }
.hint { margin-top: -6px; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.submit { position: relative; margin-top: 4px; min-height: 56px; overflow: hidden; }
.submit-label { transition: opacity 250ms ease, transform 300ms var(--ease-out), filter 250ms ease; }
.submit-check { position: absolute; width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.submit.is-sending .submit-label { opacity: .55; filter: blur(1.5px); }
.submit.is-done { background: var(--ok); }
.submit.is-done .submit-label { opacity: 0; transform: translateY(-12px); }
.submit.is-done .submit-check { stroke-dashoffset: 0; transition: stroke-dashoffset 500ms var(--ease-out) 150ms; }
.form-note { font-size: 15px; color: var(--muted); text-align: center; min-height: 1.5em; }
.form-note.ok { color: var(--ok); font-weight: 700; }
.form-note.bad { color: var(--err); }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- People ---------- */
.about-photo.is-portrait .about-img { aspect-ratio: 4 / 5; }
.avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(16,52,90,.14); }
.page-hero .about-photo { max-width: 440px; margin-left: auto; }
.page-hero figcaption { text-align: right; padding-right: 22px; }
.founders { margin: 26px 0 30px; border-top: 1px solid var(--line); }
.founders li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.founders b { display: block; font: 700 16px/1.3 var(--display); color: var(--navy); }
.founders small { display: block; margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact: speak with either founder ---------- */
.direct { margin-top: 30px; max-width: 460px; }
.direct-h { font: 600 14px/1.3 var(--display); color: var(--ink-2); margin-bottom: 10px; }
.person {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  margin-top: 8px; padding: 10px 16px 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
}
.person:active { transform: scale(.98); }
.person-text b { display: block; font: 700 16px/1.25 var(--display); color: var(--navy); }
.person-text small { display: block; font-size: 14px; color: var(--muted); }
.person-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 13.5px/1 var(--display); color: var(--blue-ink); white-space: nowrap; }
.person-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .person:hover { border-color: var(--navy); }
  .person:hover .person-go svg { transform: translateX(3px); }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 120px; }
.faq-head .lede a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 52px 22px 0;
  font: 700 clamp(16.5px, 1.5vw, 18.5px)/1.35 var(--display); color: var(--navy); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before, .qa summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--blue);
  transition: transform 300ms var(--ease-out);
}
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa-body { padding: 0 52px 24px 0; }
.qa-body p { color: var(--muted); max-width: 64ch; }
.qa-body a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.motion .qa[open] .qa-body { animation: fadeUp 400ms var(--ease-out) both; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--blue-ink); } }

/* ---------- Inner pages ---------- */
.page-hero { padding: 150px 0 0; }
.page-head { max-width: 1000px; }
.page-hero-grid { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.page-hero-grid .hero-lede { margin-top: 0; }
.page-hero-grid figure { max-width: 520px; justify-self: end; width: 100%; }
.page-title { font: 700 clamp(2.4rem, 4.6vw, 4.1rem)/1.05 var(--display); letter-spacing: -.035em; color: var(--navy); }
.page-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.03em; }
.page-title .line > span { display: inline-block; animation: lineUp 1s var(--ease-out) both; }
.page-title .line:nth-child(2) > span { animation-delay: .12s; }
.page-title .accent { color: var(--blue); }
.page-hero figcaption { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-body p { color: var(--muted); max-width: 64ch; }
.story-body p + p { margin-top: 16px; }
.sig { margin-top: 28px !important; display: grid; gap: 2px; font: 700 16px/1.3 var(--display); color: var(--navy) !important; }
.sig span { font: 400 14px var(--body); color: var(--muted); }
.bio-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.bio-side { position: sticky; top: 110px; }
.bio-facts { margin: 24px 0 0; border-top: 1px solid var(--line); }
.bio-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.bio-facts dt { font: 600 13.5px/1.5 var(--display); color: var(--blue-ink); }
.bio-facts dd { margin: 0; color: var(--ink-2); }
.bio-role { margin-top: 10px; font: 600 15.5px/1.4 var(--display); color: var(--ink-2); }
.bio-text p { margin-top: 16px; color: var(--muted); max-width: 66ch; }
.bio-quote { margin: 34px 0 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); }
.bio-quote p { font: 600 clamp(1.15rem, 1.7vw, 1.4rem)/1.45 var(--display); color: var(--navy); letter-spacing: -.01em; }
.bio-quote cite { display: block; margin-top: 10px; font: 400 14px var(--body); color: var(--muted); font-style: normal; }
.bio-sub { margin-top: 44px; font: 700 20px/1.3 var(--display); color: var(--navy); }
.expertise { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; border-top: 1px solid var(--line); }
.expertise li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.expertise b { display: block; font: 700 15.5px/1.35 var(--display); color: var(--navy); }
.expertise span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.bio-cta { margin-top: 30px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin-bottom: clamp(64px, 8vw, 110px); }
.mv { padding: clamp(24px, 3vw, 36px); background: var(--mist); border-radius: 20px; }
.mv-text { font: 600 clamp(1.1rem, 1.6vw, 1.35rem)/1.45 var(--display); color: var(--navy); letter-spacing: -.01em; }
.mv-text a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.values-list { margin-top: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.values-list li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.values-list h3 { font: 700 18px/1.3 var(--display); color: var(--navy); letter-spacing: -.01em; }
.values-list p { margin-top: 6px; color: var(--muted); font-size: 16.5px; }
.promise-frame { grid-template-columns: 1fr; }
.promise-frame .h2 { max-width: 24ch; }
.promise-frame .lede { max-width: 58ch; }
.promise-frame .prov-actions { margin-top: 30px; }
.join-list { margin-top: 48px; max-width: 760px; }
.join-list .bio-sub { margin-top: 0; }

/* ---------- Legal pages ---------- */
.legal-date { margin-top: 18px; }
.legal { padding-top: clamp(40px, 5vw, 64px); }
.legal-body { max-width: 760px; }
.legal-body h2 { margin-top: 38px; font: 700 clamp(1.2rem, 1.8vw, 1.45rem)/1.3 var(--display); color: var(--navy); letter-spacing: -.015em; }
.legal-body p { margin-top: 12px; color: var(--ink-2); }
.legal-body a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--line); padding-top: 56px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-tag { margin-top: 16px; max-width: 30ch; }
.foot-grid .small { line-height: 1.8; }
.foot-grid p.small a { transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .foot-grid p.small a:hover { color: var(--navy); } }
.foot-h { font: 700 14px/1.3 var(--display); color: var(--navy); margin-bottom: 8px; }
.ai-note {
  margin-top: 40px; max-width: 920px;
  padding: 16px 20px; border-radius: 14px; background: var(--mist);
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.ai-note strong { font-family: var(--display); color: var(--navy); }
.foot-word {
  margin-top: 36px; text-align: center; white-space: nowrap;
  font: 700 clamp(3rem, 10.6vw, 10.5rem)/.82 var(--display); letter-spacing: -.05em;
  color: transparent;
  background: linear-gradient(180deg, rgba(75,126,175,.3), rgba(75,126,175,.04) 88%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .contact-frame, .prov-frame { grid-template-columns: 1fr; }
  .prov-photo [data-mask] { aspect-ratio: 16 / 9; }
  .prov-roof { left: -6%; width: 80%; bottom: -34%; }
  .hero-wash { background: linear-gradient(90deg, rgba(246,249,252,.97) 0%, rgba(246,249,252,.92) 42%, rgba(246,249,252,.4) 62%, rgba(246,249,252,0) 76%); }
}
@media (max-width: 960px) {
  .svc { display: block; }
  .svc-item { display: block; }
  .svc-panel {
    position: static; display: grid; grid-template-rows: 0fr;
    opacity: 1; transition: grid-template-rows 450ms var(--ease-out), visibility 0s linear 450ms;
  }
  .is-active > .svc-panel { grid-template-rows: 1fr; }
  .svc-inner { padding: 0; background: none; border-radius: 0; }
  .svc-copy { padding: 18px 0 26px; }
  .svc-copy h3 { display: none; }
  .svc-photo { margin-top: 2px; }
  .svc-item:last-child .svc-head { border-bottom: 0; }
  .svc-item:last-child { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .how-head { flex-direction: column; align-items: flex-start; }
  .why-grid, .about-grid { grid-template-columns: 1fr; }
  .house { max-width: 560px; }
  .why-list li { grid-template-columns: 1fr; }
  .chapter-grid, .chapter:nth-child(3) .chapter-grid { grid-template-columns: 1fr; }
  .chapter:nth-child(3) .chapter-photo { order: 0; }
  .chapter:nth-child(3) .chapter-word { text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid, .story-grid, .bio-grid, .page-hero-grid, .mv-grid { grid-template-columns: 1fr; }
  .faq-head, .bio-side { position: static; }
  .bio-side { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 24px; align-items: end; }
  .bio-facts { margin: 0; }
  .page-hero { padding-top: 120px; }
  .page-hero .house { max-width: 480px; }
  .page-hero-grid figure { justify-self: start; }
  .page-hero .about-photo { margin-left: 0; max-width: 380px; }
  .page-hero figcaption { text-align: left; padding-right: 0; }
}
@media (max-width: 600px) {
  .expertise, .values-list { grid-template-columns: 1fr; }
  .bio-side { grid-template-columns: 1fr; }
  .bio-side .about-photo { max-width: 240px; }
  .person-go { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav { top: 10px; }
  .nav-bar { height: 62px; padding-left: 14px; gap: 8px; }
  .logo-mark { width: 40px; height: 35px; }
  .logo-words b { font-size: 15px; }
  .logo-words small { font-size: 8px; letter-spacing: .26em; }
  .nav-cta { display: none; }
  .nav-call { display: grid; }
  .nav-toggle { display: block; }
  .mobile-menu { display: flex; }
  .hero { padding: 8px 8px 0; }
  .hero-frame { display: block; min-height: 0; padding: 82px 0 0; border-radius: 22px; background: var(--mist); }
  .hero-media { position: relative; inset: auto; margin: 0 8px; border-radius: 16px; aspect-ratio: 4 / 3; }
  .hero-img { object-position: 50% 40%; }
  .hero-wash { display: none; }
  .ai-badge { right: auto; left: 10px; bottom: 10px; font-size: 11.5px; padding: 7px 11px 7px 9px; }
  .hero-content { padding: 26px 18px 30px; }
  .hero-title { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .hero-lede { font-size: 18px; }
  .hero-actions .btn, .about-actions .btn { flex: 1 1 100%; }
  .page-hero { padding-top: 104px; }
  .page-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .qa summary { padding-right: 40px; }
  .qa summary::before, .qa summary::after { right: 4px; }
  .qa-body { padding-right: 0; }
  .hero-cred { display: grid; gap: 2px; font-size: 15px; }
  .hero-cred > * + *::before { display: none; }
  .house { margin: 18px 14px 0 0; }
  .house-line { transform: translate(14px, -14px); }
  .svc-points { grid-template-columns: 1fr; }
  .about-photo { margin: 0 14px 14px 0; }
  .about-frame { transform: translate(14px, 14px); }
  .row2 { grid-template-columns: 1fr; }
  .providers, .contact { padding-left: 8px; padding-right: 8px; }
  .prov-frame, .contact-frame { padding: 30px 18px 18px; border-radius: 22px; }
  .prov-frame { padding-bottom: 22px; }
  .prov-actions .btn { flex: 1 1 100%; }
  .req-form { padding: 18px; }
  .seg span { font-size: 13px; padding: 12px 6px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
}
