:root {
  --bone: #EAE5DA;
  --bone-deep: #DFD9CB;
  --ink: #131518;
  --ink-soft: #23262b;
  --oxide: #B0361F;
  --line: rgba(19, 21, 24, 0.16);
  --line-light: rgba(234, 229, 218, 0.18);
  --r-sm: 8px;
  --r-md: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bone); }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
}
::selection { background: var(--oxide); color: var(--bone); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

.display {
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.02;
}
.label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--oxide);
}

.photo {
  display: block; width: 100%;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  filter: saturate(0.9) contrast(1.02);
}

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
}
header .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; display: block; }
.brand span {
  font-variation-settings: "wdth" 118;
  font-weight: 800; text-transform: uppercase;
  font-size: 0.95rem; letter-spacing: 0.05em;
}
header nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-left: 26px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
header nav a:hover { color: var(--oxide); border-color: var(--oxide); }

/* ---------- hero ---------- */
.hero {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(48px, 9vh, 90px) 0 clamp(40px, 7vh, 70px);
}
.eyebrow {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oxide);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.hero-sub {
  max-width: 58ch;
  margin: 20px auto 0;
  font-size: 1.02rem; color: var(--ink-soft);
}
.hero-sub strong { font-weight: 700; }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 28px; max-width: 760px;
}
.chips a {
  font-size: 0.76rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 9px 16px;
  color: var(--ink); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.chips a:hover { background: var(--ink); color: var(--bone); }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  background: var(--ink); color: var(--bone);
  text-decoration: none;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 16px 30px;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn:hover { background: var(--oxide); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bone); }

/* ---------- marquee ---------- */
.marquee {
  background: var(--oxide); color: var(--bone);
  overflow: hidden; white-space: nowrap;
  padding: 11px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.marquee-track { display: inline-block; animation: scroll 28s linear infinite; }
.marquee-track span {
  font-variation-settings: "wdth" 118;
  font-weight: 800; text-transform: uppercase;
  font-size: 0.92rem; letter-spacing: 0.08em;
  padding-right: 18px;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* funding strip */
.funding {
  background: var(--bone-deep);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.funding .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 28px;
}
.funding span {
  font-size: 0.74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 9px;
}
.funding span::before { content: "✓"; color: var(--oxide); font-weight: 700; }

/* faq */
.faq-list { max-width: 820px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 0;
  font-weight: 700; font-size: 1.02rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--oxide); font-size: 1.3rem; font-weight: 400; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list .a { padding: 0 0 20px; font-size: 0.96rem; color: var(--ink-soft); max-width: 68ch; }

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vh, 100px) 0; }
.sec-head { margin-bottom: clamp(32px, 5vh, 52px); }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-top: 12px; }

.dark { background: var(--ink); color: var(--bone); }
.dark .sec-head h2 { color: var(--bone); }
.dark p { color: rgba(234, 229, 218, 0.78); }

/* team (centered, divider bars) */
#team .sec-head, #services .sec-head { text-align: center; }
.team-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line-light);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.team-card {
  background: var(--ink);
  padding: clamp(28px, 3.5vw, 48px) clamp(22px, 3vw, 44px);
  text-align: center;
}
.team-card h3 {
  font-variation-settings: "wdth" 118;
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  min-height: 2.15em;
  display: flex; align-items: flex-end; justify-content: center;
}
.team-card .cred {
  font-size: 0.88rem; color: rgba(234, 229, 218, 0.6);
  margin: 8px 0 18px;
}
.team-card p { font-size: 0.96rem; max-width: 46ch; margin: 0 auto 14px; }
.team-focus {
  list-style: none; max-width: 380px; margin: 0 auto;
  border-top: 1px solid var(--line-light);
}
.team-focus li {
  padding: 9px 0; border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem; color: rgba(234, 229, 218, 0.85);
}

/* services */
[id] { scroll-margin-top: 84px; }
.service-row:target { background: rgba(176, 54, 31, 0.07); border-radius: var(--r-sm); }
.service-row {
  display: grid;
  grid-template-columns: 56px 1fr 1.2fr;
  gap: clamp(14px, 2.5vw, 40px);
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { font-size: 0.85rem; font-weight: 600; color: var(--oxide); }
.service-row h3 {
  font-variation-settings: "wdth" 118;
  font-weight: 750; text-transform: uppercase;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.1;
}
.service-row p { font-size: 0.95rem; color: var(--ink-soft); max-width: 52ch; }

/* patients */
.patients { background: var(--bone-deep); }
.pat-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.pat-grid h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); margin-top: 12px; }
.steps { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.steps .num { font-size: 0.85rem; font-weight: 600; color: var(--oxide); }
.steps h4 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.steps p { font-size: 0.93rem; color: var(--ink-soft); }
.who-list { list-style: none; border-top: 1px solid var(--line); margin-top: 10px; }
.who-list li {
  padding: 15px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 1rem;
  display: flex; align-items: baseline; gap: 13px;
}
.who-list li::before { content: "→"; color: var(--oxide); font-weight: 400; }
.fees-note { margin-top: 24px; font-size: 0.82rem; color: rgba(35, 38, 43, 0.75); max-width: 46ch; }

/* reviews */
.rating { font-size: 1rem; font-weight: 700; }
.rating .stars { color: var(--oxide); letter-spacing: 2px; }
.rating a { color: var(--ink-soft); font-weight: 400; font-size: 0.88rem; text-decoration: underline; }
.review-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(340px, 82vw);
  gap: clamp(20px, 3vw, 36px); margin-top: clamp(28px, 4vh, 44px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-color: var(--oxide) var(--bone-deep);
}
.review-track::-webkit-scrollbar { height: 6px; }
.review-track::-webkit-scrollbar-track { background: var(--bone-deep); border-radius: 3px; }
.review-track::-webkit-scrollbar-thumb { background: var(--oxide); border-radius: 3px; }
.review-track blockquote {
  scroll-snap-align: start;
  border-top: 2px solid var(--oxide);
  padding-top: 18px;
  font-size: 0.96rem; color: var(--ink-soft);
  display: flex; flex-direction: column; justify-content: space-between;
}
.review-track cite {
  display: block; margin-top: 14px;
  font-style: normal; font-weight: 700; font-size: 0.85rem; color: var(--ink);
}
.review-track cite small { display: block; font-weight: 400; color: var(--ink-soft); }
.review-more {
  scroll-snap-align: start;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 24px;
}
.review-more a { color: var(--oxide); font-weight: 700; text-decoration: none; }
.review-more a:hover { text-decoration: underline; }
.review-hint { margin-top: 10px; font-size: 0.78rem; color: rgba(35, 38, 43, 0.6); }

/* referrer pointer band (homepage) */
.ref-band { background: var(--bone-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.ref-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.ref-band p { font-size: 0.98rem; color: var(--ink-soft); }
.ref-band p strong { color: var(--ink); }

/* referrals page */
.ref-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.ref-list { list-style: none; border-top: 1px solid var(--line-light); margin: 10px 0 30px; }
.ref-list li {
  padding: 13px 0; border-bottom: 1px solid var(--line-light);
  display: flex; align-items: baseline; gap: 13px;
  font-size: 0.98rem; font-weight: 600;
}
.ref-list li::before { content: "→"; color: #D4634E; font-weight: 400; }
.ref-list li small {
  display: block; font-weight: 400; font-size: 0.87rem;
  color: rgba(234, 229, 218, 0.6);
}
.ref-copy p { margin-bottom: 16px; font-size: 0.98rem; }
.ref-copy .label, .ref-col .label { margin-top: 22px; display: block; }
.ref-box {
  border: 1px solid var(--line-light);
  border-radius: var(--r-md);
  padding: clamp(22px, 3vw, 34px);
  margin-top: 24px;
}
.ref-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; color: var(--bone); }
.ref-box ul, .ref-box ol { list-style: none; }
.ref-box li {
  padding: 7px 0; font-size: 0.93rem;
  color: rgba(234, 229, 218, 0.78);
  display: flex; gap: 10px; align-items: baseline;
}
.ref-box ul li::before { content: "•"; color: #D4634E; }
.ref-box ol { counter-reset: f; }
.ref-box ol li { counter-increment: f; }
.ref-box ol li::before { content: counter(f, decimal-leading-zero); color: #D4634E; font-size: 0.8rem; font-weight: 600; }
.ref-box .mail { margin-top: 14px; font-size: 0.98rem; }
.ref-box .mail a { color: #D4634E; }

/* contact (oxide) */
.contact { background: var(--oxide); color: var(--bone); text-align: center; }
.contact .contact-lines { margin-left: auto; margin-right: auto; }
.contact .contact-note { margin-left: auto; margin-right: auto; }
.contact .label { color: var(--bone); opacity: 0.75; }
.contact h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); margin: 12px 0 32px; color: var(--bone); }
.contact-lines { border-top: 1px solid rgba(234, 229, 218, 0.35); max-width: 720px; }
.contact-lines a {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 19px 0; border-bottom: 1px solid rgba(234, 229, 218, 0.35);
  color: var(--bone); text-decoration: none;
  font-size: clamp(0.98rem, 1.8vw, 1.2rem); font-weight: 600;
  transition: color 0.2s, padding-left 0.25s;
}
.contact-lines a span.k {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: rgba(234, 229, 218, 0.7);
}
.contact-lines a:hover { color: var(--ink); padding-left: 10px; }
.contact-note { margin-top: 22px; font-size: 0.93rem; color: #F3EFE6; max-width: 60ch; }
.appt-only {
  display: inline-block;
  border: 1px solid rgba(234, 229, 218, 0.5);
  border-radius: var(--r-sm);
  padding: 10px 18px;
  margin-top: 26px;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--bone);
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}
.dark a:focus-visible, .contact a:focus-visible { outline-color: var(--bone); }

footer {
  background: var(--ink); color: rgba(234, 229, 218, 0.55);
  padding: 44px 0 30px;
  font-size: 0.85rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-light);
}
.foot-grid .fb { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-grid .fb img { height: 26px; width: auto; }
.foot-grid .fb span {
  color: var(--bone);
  font-variation-settings: "wdth" 118;
  font-weight: 800; text-transform: uppercase;
  font-size: 0.85rem; letter-spacing: 0.05em;
}
.foot-grid h5 {
  color: var(--bone); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.foot-grid a { color: rgba(234, 229, 218, 0.75); text-decoration: none; display: block; padding: 3px 0; }
.foot-grid a:hover { color: #D4634E; }
.foot-grid p { max-width: 34ch; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; font-size: 0.76rem; }

@media (max-width: 760px) {
  .team-grid, .pat-grid, .ref-grid, .foot-grid { grid-template-columns: 1fr; }
  .team-card h3 { min-height: 0; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row p { grid-column: 2; }
  header nav a:not(:last-child) { display: none; }
}
