/* wrenfield — portfolio demo site (built by _tools/build_portfolio.py) */
:root {
  --cyan: #d9a98b;
  --blue: #8f4a35;
  --navy: #4a2a20;
  --ink: #2b1d17;
  --muted: #6d5a50;
  --sky: #f7f1e8;
  --mist: #eddfd0;
  --line: #e6d9c8;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
p, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: end; justify-content: space-between; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { max-width: 16ch; }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sky); color: var(--blue); display: grid; place-items: center; flex: none; }
.icon .ic { width: 26px; height: 26px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(74, 42, 32, .55); }
.btn:active { transform: translateY(0); }
.btn .ic { transition: transform .2s; }
.btn:hover .ic { transform: translateX(2px); }
.btn-primary:hover { background: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--navy); }
.go { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; flex: none; transition: background-color .15s, color .15s, transform .15s; }
.go .ic { width: 20px; height: 20px; stroke-width: 2.2; }
a:hover .go { background: var(--cyan); color: #fff; transform: translateX(3px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; padding-top: 10px; transition: transform .38s cubic-bezier(.3,.7,.2,1); }
.site-header.is-hidden { transform: translateY(-120%); }
.nav { display: flex; align-items: center; gap: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 18px; box-shadow: 0 8px 24px -18px rgba(74, 42, 32, .4); transition: box-shadow .3s; }
.site-header.is-stuck .nav { box-shadow: 0 14px 34px -16px rgba(74, 42, 32, .5); }
.nav-logo img { height: 36px; width: auto; transition: transform .25s; }
.nav-logo:hover img { transform: scale(1.04); }
.nav-links { display: flex; gap: 2px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a { transition: background-color .2s, color .2s; }
.nav-links a:hover { background: var(--sky); color: var(--blue); }
.nav-links a[aria-current="page"] { background: var(--sky); color: var(--blue); }
.nav-phone { color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; }
.nav .btn { padding: 11px 20px; font-size: .95rem; }

/* hero */
.hero { padding-top: 18px; }
.hero-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: min(660px, 82vh); display: grid; align-items: end; background: var(--navy); color: #fff; isolation: isolate; }
.hero-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 22% 30%; z-index: -2; }
.hero-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(74, 42, 32, .94) 0%, rgba(74, 42, 32, .78) 38%, rgba(74, 42, 32, .12) 68%, rgba(74, 42, 32, 0) 100%); }
.hero-copy { padding: clamp(28px, 5vw, 72px); max-width: 700px; display: grid; gap: 22px; }
.hero-copy p { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.glass { background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 24px 50px -24px rgba(74, 42, 32, .6); }
.hero-card { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); width: min(330px, 100% - 32px); padding: 20px; display: grid; gap: 14px; }
.hero-badge { position: absolute; right: clamp(16px, 3vw, 40px); top: clamp(16px, 3vw, 40px); padding: 12px 18px; border-radius: 999px; }
.person-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.initials { background: var(--blue); color: #fff; display: grid; place-items: center; font: 600 1rem/1 var(--display); }
.person-row strong { display: block; font: 600 1.02rem/1.2 var(--display); }
.person-row span { font-size: .88rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: #0b6b3f; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #17a363; box-shadow: 0 0 0 4px rgba(23, 163, 99, .18); }
.slot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--sky); font-weight: 600; font-size: .95rem; color: var(--navy); }
.slot .ic { width: 18px; height: 18px; color: var(--blue); }
.hero-card .btn { width: 100%; }

/* page-load sequence */
@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes settle { from { scale: 1.08; } }
@keyframes slide-in { from { opacity: 0; translate: 40px 0; } }
@keyframes drop { from { opacity: 0; translate: 0 -24px; } }
.hero-panel > img, .page-hero-panel > img { animation: settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *, .page-hero-panel > h1, .page-hero-panel > p { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(1), .page-hero-panel > h1 { animation-delay: .15s; }
.hero-copy > :nth-child(2), .page-hero-panel > p { animation-delay: .3s; }
.hero-copy > :nth-child(3) { animation-delay: .45s; }
.hero-card { animation: slide-in .9s cubic-bezier(.2,.7,.2,1) .7s both; }
.hero-badge { animation: rise .8s cubic-bezier(.2,.7,.2,1) .95s both; }
.site-header { animation: drop .7s cubic-bezier(.2,.7,.2,1) both; }

/* reveal on first appearance (classes added by site.js) */
.reveal { opacity: 0; translate: 0 30px; transition: opacity .8s ease, translate .8s cubic-bezier(.2,.7,.2,1), transform .3s cubic-bezier(.3,.7,.2,1), border-color .2s, box-shadow .3s; transition-delay: var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s; }
.reveal.in { opacity: 1; translate: 0 0; }

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; align-items: center; gap: 14px; }
.fact strong { display: block; font: 600 1.12rem/1.2 var(--display); letter-spacing: -0.01em; color: var(--navy); }
.fact div span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: 2px; }

/* photo tiles */
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 24px; color: #fff; text-decoration: none; background: var(--navy); min-height: 240px; scroll-margin-top: 110px; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.tile:hover > img { transform: scale(1.06); }
.tile { transition: transform .3s cubic-bezier(.3,.7,.2,1), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(74, 42, 32, .6); }
.tags li { transition: background-color .2s, transform .2s; }
.tags li:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .28); }
.tags.on-light li:hover { background: var(--sky); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(74, 42, 32, 0) 25%, rgba(74, 42, 32, .9) 88%); }
.tile p { color: rgba(255, 255, 255, .86); font-size: .98rem; max-width: 34ch; }
.tile .go { position: absolute; top: 18px; right: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.tags li { padding: 7px 13px; border-radius: 999px; font-size: .88rem; font-weight: 500; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .28); }
.tags.on-light li { background: #fff; border-color: var(--line); color: var(--navy); backdrop-filter: none; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.people .tile { min-height: 500px; }
.people.four { grid-template-columns: repeat(4, 1fr); }
.people.four .tile { min-height: 440px; }
.tile > img.contain, .step-card > img.contain { object-fit: contain; background: linear-gradient(160deg, #f6f9fd, #d3e3f3); padding: 8% 6% 24%; }
.people .tile h3 { font-size: 1.6rem; }

/* steps as photo cards */
.band { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4.5vw, 64px); }
.step-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step-card { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 360px; display: flex; align-items: flex-end; padding: 12px; isolation: isolate; background: var(--mist); counter-increment: step; }
.step-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.step-card::before { content: "Step " counter(step); position: absolute; top: 14px; left: 14px; padding: 7px 13px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: .86rem; }
.step-card > div { background: rgba(255, 255, 255, .93); backdrop-filter: blur(12px); border-radius: var(--r-md); padding: 16px; display: grid; gap: 6px; width: 100%; }
.step-card p { color: var(--muted); font-size: .93rem; line-height: 1.4; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 232px; gap: 16px; }
.bento .big { grid-column: span 2; grid-row: span 2; }
.bento .wide { grid-column: span 2; }
.bento .big h3 { font-size: 1.9rem; }
.cell { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; color: inherit; text-decoration: none; position: relative; scroll-margin-top: 110px; transition: border-color .15s, box-shadow .15s; }
.cell, .fact, .badges li, .bubble { transition: transform .3s cubic-bezier(.3,.7,.2,1), border-color .2s, box-shadow .3s; }
.cell:hover, .fact:hover, .badges li:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(74, 42, 32, .45); border-color: var(--cyan); }
.bubble:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -22px rgba(74, 42, 32, .45); }
.icon { transition: transform .35s cubic-bezier(.3,.7,.2,1), background-color .2s, color .2s; }
.cell:hover .icon, .fact:hover .icon, .badges li:hover .icon { background: var(--blue); color: #fff; }
.cell.dark:hover .icon { background: var(--cyan); color: var(--navy); }
.step-card > img, .doctor-photo > img, .duo-photo > img { transition: transform .6s cubic-bezier(.3,.7,.2,1); }
.step-card { transition: transform .3s cubic-bezier(.3,.7,.2,1); }
.step-card:hover { transform: translateY(-4px); }
.step-card:hover > img { transform: scale(1.06); }
.float { animation: bob 5s ease-in-out infinite; }
.float.b { animation-delay: -2.4s; }
@keyframes bob { 50% { translate: 0 -6px; } }
.footer-grid a { transition: color .15s, padding .2s; }
.footer-grid li a:hover { padding-left: 4px; }
.cell p { color: var(--muted); font-size: .95rem; line-height: 1.4; margin-top: 6px; }
.cell .tags { margin-top: 10px; }
.cell .tags.on-light li { background: var(--sky); border-color: transparent; }
.cell .go { position: absolute; top: 18px; right: 18px; background: var(--sky); width: 36px; height: 36px; }
.cell.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.cell.dark p { color: rgba(255, 255, 255, .8); }
.cell.dark .icon { background: rgba(255, 255, 255, .12); color: var(--cyan); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-3 .cell { min-height: 190px; }
.grid-3.two { grid-template-columns: repeat(2, 1fr); }

/* doctor */
.doctor { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.doctor-photo { position: relative; padding: 0 28px 28px 0; }
.doctor-photo > img { border-radius: var(--r-xl); aspect-ratio: 1 / 1.05; object-fit: cover; object-position: 55% 40%; width: 100%; }
.float { position: absolute; padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.3; border-radius: var(--r-md); }
.float strong { display: block; font: 600 1rem/1.2 var(--display); }
.float .icon { width: 42px; height: 42px; border-radius: 12px; }
.float.a { left: -18px; top: 28px; }
.float.b { right: 0; bottom: 0; }
.doctor-copy { display: grid; gap: 22px; justify-items: start; }
.doctor-copy blockquote { margin: 0; font: 500 1.3rem/1.4 var(--display); letter-spacing: -0.01em; color: var(--navy); }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; width: 100%; }
.badges li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; font-size: .9rem; line-height: 1.3; color: var(--muted); }
.badges li b { display: block; color: var(--navy); font: 600 .98rem/1.2 var(--display); }
.badges .icon { width: 42px; height: 42px; border-radius: 12px; }

/* stories */
.voices { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
.voices .tile { min-height: 520px; padding: 16px; }
.voices .tile::before { background: linear-gradient(180deg, rgba(74, 42, 32, 0) 40%, rgba(74, 42, 32, .55) 100%); }
.voices .tile .glass { padding: 22px; display: grid; gap: 14px; justify-items: start; }
.tile .glass p { color: var(--muted); }
.voices .tile .glass h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.bubbles { display: grid; gap: 14px; align-content: center; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; padding: 20px 22px; display: grid; gap: 14px; width: 88%; }
.bubble:nth-child(even) { justify-self: end; background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 22px 22px 6px 22px; }
.bubble:nth-child(even) .avatar.initials { background: #fff; color: var(--blue); }
.bubble:nth-child(even) .person-row span { color: rgba(255, 255, 255, .8); }
.bubble blockquote { margin: 0; font-size: 1.1rem; line-height: 1.45; }
.bubble .avatar { width: 40px; height: 40px; font-size: .9rem; }
.masonry { columns: 3; column-gap: 16px; }
.masonry > * { break-inside: avoid; margin-bottom: 16px; }
.masonry .bubble { width: 100%; }
.masonry .tile { min-height: 300px; }

/* request block */
.request { background: var(--navy); color: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4.5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; overflow: hidden; isolation: isolate; scroll-margin-top: 100px; }
.request > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .22; }
.request .lede { color: rgba(255, 255, 255, .82); }
.request-copy { display: grid; gap: 20px; }
.know { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.know li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .94rem; line-height: 1.3; }
.know .ic { color: var(--cyan); }
.form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; }
.form h3 { font-size: 1.45rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .93rem; }
.field input, .field select { font: inherit; color: inherit; width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74, 42, 32, .14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; padding-block: 16px; }
.form-done { display: none; gap: 12px; justify-items: start; }
.form-done .icon { background: #e3f6ec; color: #0b6b3f; }
.form.is-done > :not(.form-done) { display: none; }
.form.is-done .form-done { display: grid; }
.request.cta-bar { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }

/* inner pages */
.page-hero { padding: 18px 0 0; }
.page-hero-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--navy); color: #fff; isolation: isolate; padding: clamp(40px, 8vw, 110px) clamp(24px, 5vw, 72px); display: grid; gap: 18px; min-height: 380px; align-content: end; }
.page-hero-panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(74, 42, 32, .92) 0%, rgba(74, 42, 32, .62) 48%, rgba(74, 42, 32, .1) 100%); }
.page-hero-panel p { font-size: 1.18rem; color: rgba(255, 255, 255, .88); max-width: 44ch; }
.page-hero-panel h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 100px; }
.duo.flip > :first-child { order: 2; }
.duo-photo { position: relative; padding: 0 0 26px 0; }
.duo-photo > img { border-radius: var(--r-xl); aspect-ratio: 5 / 4.2; object-fit: cover; width: 100%; }
.duo-photo .float { left: 22px; bottom: 0; }
.duo-copy { display: grid; gap: 20px; justify-items: start; }
.stack { display: grid; gap: clamp(56px, 8vw, 104px); }

/* footer */
.site-footer { margin-top: clamp(64px, 9vw, 120px); background: #fff; border-top: 1px solid var(--line); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid img { height: 54px; width: auto; }
.footer-grid h3 { font: 600 .95rem/1.2 var(--body); letter-spacing: 0; margin-bottom: 14px; color: var(--navy); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); text-decoration: underline; }
.footer-grid address { font-style: normal; color: var(--muted); margin-top: 16px; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* chat */
.chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 60px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 600 1rem/1 var(--body); cursor: pointer; box-shadow: 0 18px 40px -14px rgba(74, 42, 32, .7); }
.chat-launch:hover { background: var(--navy); }
.chat-launch .ic { width: 26px; height: 26px; stroke-width: 2; }
.chat-launch.is-open { width: 60px; padding: 0; justify-content: center; }
.chat-launch.is-open span { display: none; }
.chat { position: fixed; right: 22px; bottom: 96px; z-index: 60; width: min(380px, 100vw - 24px); height: min(580px, 100vh - 120px); display: none; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 70px -20px rgba(74, 42, 32, .55); }
.chat.is-open { display: flex; animation: chat-in .22s ease-out; }
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.chat-head { background: var(--navy); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .mark { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.chat-head .mark img { width: 38px; height: 38px; object-fit: contain; }
.chat-head strong { display: block; font: 600 1.02rem/1.2 var(--display); }
.chat-head small { display: flex; align-items: center; gap: 6px; font-size: .84rem; opacity: .85; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc8c; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--sky); }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 18px; font-size: .97rem; line-height: 1.45; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg a { color: inherit; font-weight: 600; }
.msg.typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.chip { font: 600 .9rem/1 var(--body); padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer; }
.chip:hover { background: var(--blue); color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 999px; }
.chat-form input:focus { outline: none; border-color: var(--blue); }
.chat-form button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-form button .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.chat-note { font-size: .76rem; color: var(--muted); text-align: center; padding: 0 12px 10px; background: #fff; }

/* chat nudge */
.launch-badge { position: absolute; top: -5px; right: -3px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font: 700 .78rem/18px var(--body); text-align: center; border: 2px solid var(--sky); }
.launch-badge[hidden] { display: none; }
.chat-launch.is-pinging::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--blue); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(1.5); opacity: 0; } }
.nudge { position: fixed; right: 22px; bottom: 94px; z-index: 59; width: min(320px, 100vw - 44px); display: flex; align-items: flex-start; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 20px 20px 6px 20px; box-shadow: 0 24px 50px -20px rgba(74, 42, 32, .55); opacity: 0; translate: 0 14px; scale: .96; transform-origin: bottom right; pointer-events: none; transition: opacity .35s ease, translate .45s cubic-bezier(.2,.9,.3,1.2), scale .45s cubic-bezier(.2,.9,.3,1.2); }
.nudge.is-shown { opacity: 1; translate: 0 0; scale: 1; pointer-events: auto; }
.nudge-body { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 12px; align-items: flex-start; padding: 14px 4px 14px 14px; flex: 1; font-size: .95rem; line-height: 1.4; color: var(--ink); }
.nudge-body:focus-visible { outline: 3px solid var(--cyan); border-radius: 16px; }
.nudge-body strong { display: block; font: 600 .98rem/1.2 var(--display); margin-bottom: 3px; color: var(--navy); }
.nudge .mark { width: 40px; height: 40px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; flex: none; }
.nudge .mark img { width: 34px; height: 34px; object-fit: contain; }
.nudge-x { all: unset; box-sizing: border-box; cursor: pointer; width: 32px; height: 32px; margin: 8px 8px 0 0; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.nudge-x:hover { background: var(--sky); color: var(--ink); }
.nudge-x .ic { width: 16px; height: 16px; stroke-width: 2.4; }

/* responsive */
@media (max-width: 1020px) {
  .nav-links, .nav-phone { display: none; }
  .nav { justify-content: space-between; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; order: 3; color: var(--navy); }
  .nav .btn { margin-left: auto; }
  .nav.is-open { flex-wrap: wrap; border-radius: 28px; }
  .nav.is-open .nav-links { display: grid; width: 100%; order: 4; margin: 6px 0 4px; }
  .nav.is-open .nav-phone { display: block; order: 5; padding: 6px 14px 12px; }
  .hero-badge { display: none; }
  .facts, .step-cards, .bento, .grid-3 { grid-template-columns: 1fr 1fr; }
  .doctor, .request, .duo, .voices { grid-template-columns: 1fr; }
  .people.four { grid-template-columns: 1fr 1fr; }
  .duo.flip > :first-child { order: 0; }
  .masonry { columns: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .float.a { left: 12px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-logo img { height: 32px; }
  .nav .btn { display: none; }
  .hero-panel { min-height: 0; display: block; }
  .hero-panel > img { object-position: 12% 20%; }
  .hero-panel::before { background: linear-gradient(180deg, rgba(74, 42, 32, .8) 0%, rgba(74, 42, 32, .9) 100%); }
  .hero-copy { padding-bottom: 20px; }
  .hero-card { position: static; margin: 0 16px 16px; width: auto; }
  .people, .people.four, .facts, .step-cards, .grid-3, .grid-3.two, .field-row, .footer-grid, .know, .badges { grid-template-columns: 1fr; }
  .people .tile { min-height: 380px; }
  .step-card { min-height: 300px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento .big, .bento .wide { grid-column: auto; grid-row: auto; }
  .bento .tile { min-height: 260px; }
  .cell { min-height: 170px; }
  .voices .tile { min-height: 420px; }
  .bubble { width: 94%; }
  .masonry { columns: 1; }
  .doctor-photo { padding: 0 0 70px; }
  .float.b { right: 12px; }
  .page-hero-panel { min-height: 300px; }
  .chat { right: 12px; bottom: 86px; }
  .nudge { right: 14px; bottom: 84px; }
  .chat-launch { right: 14px; bottom: 14px; width: 58px; height: 58px; padding: 0; justify-content: center; }
  .chat-launch span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---- portfolio sites, all three: text logo, outline button, photo crops ---- */
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.nav-logo img { height: 34px; width: 34px; }
.logo-word { display: grid; gap: 4px; font: 600 1.18rem/1 var(--display); letter-spacing: -0.01em; }
.logo-word small { font: 500 .6rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-grid .nav-logo img { height: 40px; width: 40px; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.people .tile > img, .duo-photo > img, .doctor-photo > img { object-position: 50% 22%; }
.avatar { object-position: 50% 14%; }
.footer-legal a { color: inherit; }
.demo-strip { margin: 0; padding: 7px 16px; text-align: center; font-size: .78rem; line-height: 1.4; background: var(--navy); color: rgba(255, 255, 255, .86); }
.demo-strip a { color: #fff; }

/* ---- Wrenfield Integrative: serif, flat ruled menu, split hero with an arched photo, arched tiles ---- */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.35rem; }
.logo-word { font-weight: 500; font-size: 1.32rem; }
.doctor-copy blockquote { font-size: 1.45rem; line-height: 1.35; font-style: italic; }
.person-row strong, .fact strong, .float strong, .badges li b, .chat-head strong, .nudge-body strong { font-family: var(--body); font-weight: 600; letter-spacing: 0; }
.site-header { padding-top: 0; background: rgba(247, 241, 232, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; padding: 12px 0; }
.site-header.is-stuck .nav { box-shadow: none; }
.nav.is-open { border-radius: 0; }
.nav-links { margin: 0 0 0 auto; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: none; text-decoration: underline; text-underline-offset: 7px; }
.nav .btn-primary { background: none; border-color: var(--blue); color: var(--blue); }
.nav .btn-primary:hover { background: var(--blue); color: #fff; }
.hero-split .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(28px, 4vw, 56px); }
.hero-split .hero-copy { padding: 0; max-width: none; color: var(--ink); }
.hero-split .hero-copy p { color: var(--muted); }
.hero-split .person-row { margin-top: 10px; }
.hero-split .avatar { object-position: 30% 22%; }
.hero-arch { position: relative; padding-bottom: 26px; }
.hero-arch > img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; border-radius: 999px 999px var(--r-xl) var(--r-xl); animation: rise 1s cubic-bezier(.2,.7,.2,1) .2s both; }
.hero-arch .float { left: -22px; bottom: 0; }
.facts { margin-top: clamp(32px, 4vw, 56px); gap: 24px; }
.fact { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 0; }
.fact:hover { transform: none; box-shadow: none; }
.icon { border-radius: 50%; background: var(--mist); }
.band { background: var(--mist); }
.band .icon { background: #fff; }
.people .tile { border-radius: 999px 999px var(--r-lg) var(--r-lg); padding: 30px 26px; align-items: center; text-align: center; }
.people .tile .go { display: none; }
.people .tile .tags { justify-content: center; }
@media (max-width: 1020px) {
  .hero-split .split { grid-template-columns: 1fr; }
  .hero-arch { max-width: 520px; margin-inline: auto; width: 100%; }
  .hero-arch .float { left: 12px; }
}
