/* ==========================================================================
   Legacy Medical Services — Direct Primary Care
   "Hometown Editorial" — warm cream palette, Lora serif + Karla sans
   ========================================================================== */

:root{
  --green:        oklch(45% 0.12 38);   /* rust — primary accent, links, buttons */
  --green-dark:   oklch(36% 0.11 38);   /* deeper rust — hover states, headings accent */
  --green-deep:   oklch(20% 0.02 70);   /* warm dark brown — footer, cta band, utility bar */
  --green-bright: oklch(80% 0.09 80);   /* warm gold — bright accent on dark backgrounds */
  --green-tint:   oklch(94% 0.028 55);  /* soft terracotta tint — icon circles, nav hover */
  --good:         oklch(42% 0.1 145);   /* forest green — semantic "good" table values */
  --bad:          oklch(46% 0.16 30);   /* semantic "bad" table values */
  --ink:          oklch(22% 0.012 75);
  --ink-soft:     oklch(40% 0.012 75);
  --paper:        oklch(97% 0.012 75);  /* body / header background, warm cream */
  --gray-bg:      oklch(95% 0.015 72);  /* alt section bg, page-header bg */
  --line:         oklch(87% 0.017 72);
  --line-soft:    oklch(92% 0.013 72);
  --white:        #FFFFFF;
  --shadow-sm:    0 1px 3px rgba(40,26,12,.08), 0 1px 2px rgba(40,26,12,.06);
  --shadow-md:    0 10px 28px rgba(40,26,12,.12);

  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 10px;
}

*,*::before,*::after{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
  width:100%;
}

h1,h2,h3,h4{
  font-family:var(--serif);
  font-weight:600;
  color:var(--ink);
  line-height:1.22;
  margin:0 0 .5em;
  letter-spacing:0;
}
h1:last-child,h2:last-child,h3:last-child,h4:last-child{ margin-bottom:0; }

p{ margin:0 0 1em; color:var(--ink-soft); }
p:last-child{ margin-bottom:0; }

.lede{ font-size:1.15rem; line-height:1.6; color:var(--ink-soft); max-width:58ch; }

.label{
  display:inline-block;
  font-family:var(--serif);
  font-style:italic;
  font-size:15px;
  font-weight:600;
  color:var(--green-dark);
  margin:0 0 10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 26px;
  border-radius:3px;
  font-family:var(--sans);
  font-weight:700;
  font-size:15px;
  border:2px solid transparent;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--green); color:var(--white); border-color:var(--green); }
.btn-primary:hover{ background:var(--green-dark); border-color:var(--green-dark); }
.btn-outline{ background:var(--white); color:var(--green-dark); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--green); background:var(--green-tint); }
.btn-outline-invert{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.5); }
.btn-outline-invert:hover{ background:rgba(255,255,255,.12); border-color:var(--white); }
.btn-block{ width:100%; }

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}

/* ---------------------------------- Utility bar ---------------------------------- */
.utility-bar{
  background:var(--green-deep);
  color:rgba(255,255,255,.82);
  font-size:13px;
}
.utility-bar .wrap{
  display:flex; align-items:center; justify-content:space-between; height:38px;
}
.utility-bar a:hover{ color:#fff; }
.utility-bar .u-left{ display:flex; align-items:center; gap:8px; }
.utility-bar .u-right{ display:flex; gap:20px; }
.utility-bar .u-sep{ opacity:.5; }

/* ---------------------------------- Header ---------------------------------- */
header.site{
  position:sticky; top:0; z-index:100;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.nav-row{ display:flex; align-items:center; justify-content:space-between; height:84px; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; flex:none; }
.brand img{ height:38px; width:auto; }

nav.primary{ display:flex; align-items:center; gap:0; flex:1; justify-content:center; }
nav.primary a{
  font-size:13.5px; font-weight:600; padding:10px 10px; border-radius:6px;
  white-space:nowrap; color:var(--ink-soft); transition:color .15s ease, background .15s ease;
}
nav.primary a:hover{ color:var(--green-dark); background:var(--green-tint); }
nav.primary a.active{ color:var(--green-dark); background:var(--green-tint); }

.nav-cta{ display:flex; align-items:center; gap:16px; flex:none; }
.nav-phone{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:14.5px; color:var(--ink); white-space:nowrap; }
.nav-phone svg{ color:var(--green); flex:none; }

.menu-toggle{
  display:none; background:none; border:1px solid var(--line); border-radius:6px;
  width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; flex:none;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after{
  content:""; display:block; width:18px; height:2px; background:var(--ink); position:relative; transition:.2s;
}
.menu-toggle span::before{ position:absolute; top:-6px; }
.menu-toggle span::after{ position:absolute; top:6px; }

/* ---------------------------------- Breadcrumb / page header ---------------------------------- */
.page-header{
  background:var(--gray-bg);
  border-bottom:1px solid var(--line);
  padding:42px 0;
}
.page-header h1{ font-size:clamp(1.8rem,3.4vw,2.5rem); }
.breadcrumb{ font-family:var(--sans); font-size:13.5px; color:var(--ink-soft); margin-bottom:12px; }
.breadcrumb a:hover{ color:var(--green-dark); }
.breadcrumb .sep{ margin:0 6px; opacity:.5; }

/* ---------------------------------- Hero (home) — full-bleed editorial photo ---------------------------------- */
.hero-media{ position:relative; height:620px; overflow:hidden; }
.hero-media img{ width:100%; height:100%; object-fit:cover; filter:saturate(.94); }
.hero-media::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(0deg, oklch(15% 0.02 75 / .82), oklch(15% 0.02 75 / .05) 62%);
}
.hero-content{
  position:absolute; left:0; right:0; bottom:48px; color:#fff; z-index:1;
}
.hero-content .inner{ max-width:760px; }
.hero-content .label{
  font-family:var(--sans); font-style:normal; font-weight:700;
  font-size:13px; letter-spacing:.12em; text-transform:uppercase;
  color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.5);
  margin-bottom:16px;
}
.hero-content h1{ color:#fff; font-size:clamp(2rem,4.6vw,3.6rem); margin-bottom:20px; }
.hero-content .lede{ color:rgba(255,255,255,.92); margin-bottom:28px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ---------------------------------- Section shell ---------------------------------- */
section{ padding:64px 0; }
section.alt{ background:var(--gray-bg); }
.section-head{ max-width:680px; margin:0 auto 40px; text-align:center; }
.section-head.left{ margin:0 40px 40px 0; text-align:left; }
.section-head h2{ font-size:clamp(1.7rem,3vw,2.3rem); }

/* ---------------------------------- Three-up editorial strip (Transparent / Unhurried / Local) ---------------------------------- */
.value-strip{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.value-strip > div{ padding:40px 36px; border-right:1px solid var(--line); }
.value-strip > div:last-child{ border-right:none; }
.value-strip h3{ font-size:16px; color:var(--green-dark); margin-bottom:10px; }
.value-strip p{ font-size:15.5px; margin:0; }

/* ---------------------------------- Icon feature grid ---------------------------------- */
.icon-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.icon-grid.cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.icon-grid.cols-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.icon-card{ padding:28px 24px; text-align:left; }
.icon-circle{
  width:48px; height:48px; border-radius:50%; background:var(--green-tint);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px; flex:none;
}
.icon-circle svg{ width:24px; height:24px; color:var(--green-dark); }
.icon-card h3{ font-size:1.05rem; margin-bottom:8px; }
.icon-card p{ font-size:14.5px; margin:0; }

/* ---------------------------------- Simple list (no icon) ---------------------------------- */
.check-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px; }
.check-list li{ display:flex; gap:12px; align-items:flex-start; font-size:15px; color:var(--ink-soft); }
.check-list svg{ flex:none; width:20px; height:20px; color:var(--green); margin-top:2px; }
.check-list.two-col{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 32px; }

/* ---------------------------------- About preview / split content ---------------------------------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.split img{ border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow-md); }

/* split-narrow-photo: DOM has photo first (so it can float beside the copy on mobile);
   restore the original copy-left/photo-right order on larger screens. */
.split-narrow-photo{ grid-template-columns:1fr minmax(240px,320px); }
.split-narrow-photo .split-media{ order:2; }
.split-narrow-photo .split-copy{ order:1; }

/* split-photo-wrap: same DOM-order trick as split-narrow-photo, but only shrinks/floats
   the photo on mobile/tablet — desktop keeps the normal 1fr/1fr split layout. */
.split-photo-wrap .split-media{ order:2; }
.split-photo-wrap .split-copy{ order:1; }

/* ---------------------------------- Founder's note ---------------------------------- */
.founder-note{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:0; align-items:stretch; }
.founder-note .fn-photo{ overflow:hidden; }
.founder-note .fn-photo img{ width:100%; height:100%; min-height:360px; object-fit:cover; }
.founder-note .fn-copy{ padding:20px 0 20px 56px; display:flex; flex-direction:column; justify-content:center; }
.founder-note .label{ margin-bottom:16px; }
.founder-note h2{ font-size:clamp(1.5rem,2.6vw,2rem); font-weight:600; line-height:1.3; margin-bottom:20px; }
.founder-note cite{ display:block; font-style:normal; font-size:15px; color:var(--ink-soft); margin-bottom:22px; }
.founder-note .fn-link{ font-size:15px; font-weight:700; color:var(--green-dark); text-decoration:underline; text-underline-offset:4px; }

/* ---------------------------------- Testimonial ---------------------------------- */
.quote-card{
  background:var(--green-deep); color:#fff; border-radius:var(--radius);
  padding:40px clamp(24px,4vw,56px); position:relative;
}
.quote-card svg.mark{ width:36px; height:36px; color:var(--green-bright); margin-bottom:16px; }
.quote-card p{ font-family:var(--serif); font-style:italic; font-size:1.25rem; line-height:1.55; color:rgba(255,255,255,.92); margin-bottom:18px; }
.quote-card cite{ font-style:normal; font-weight:700; font-size:14px; color:var(--green-bright); }

/* ---------------------------------- Tables ---------------------------------- */
.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); }
table.data{ width:100%; border-collapse:collapse; min-width:620px; font-size:14px; background:var(--white); }
table.data caption{ text-align:left; padding:16px 20px; font-weight:700; color:var(--ink); border-bottom:1px solid var(--line); background:var(--gray-bg); }
table.data th, table.data td{ padding:13px 20px; text-align:left; border-bottom:1px solid var(--line-soft); }
table.data thead th{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--ink-soft); background:var(--gray-bg); font-weight:700; }
table.data tbody tr:last-child td, table.data tbody tr:last-child th{ border-bottom:none; }
table.data td.good{ color:var(--good); font-weight:700; }
table.data td.bad{ color:var(--bad); }
table.data tr.total th, table.data tr.total td{ font-weight:800; border-top:2px solid var(--green); }

/* ---------------------------------- Pricing ---------------------------------- */
.pricing-grid{ display:grid; grid-template-columns:1fr 1.3fr; gap:24px; align-items:stretch; }
.pricing-card{ padding:36px; }
.pricing-card h3{ font-size:1.3rem; margin-bottom:10px; }
.price-tag{ margin:20px 0; }
.price-tag b{ font-family:var(--serif); font-size:2.4rem; font-weight:600; color:var(--green-dark); }
.price-tag span{ font-size:13.5px; color:var(--ink-soft); }
.tier-table{ width:100%; border-collapse:collapse; }
.tier-table th, .tier-table td{ padding:14px 4px; border-bottom:1px solid var(--line); font-size:14.5px; }
.tier-table thead th{ text-align:left; font-size:12px; text-transform:uppercase; color:var(--ink-soft); }
.tier-table td:first-child{ font-weight:600; }
.tier-table td:last-child{ text-align:right; font-weight:800; color:var(--green-dark); font-size:1.05rem; }
.tier-table tr:last-child td{ border-bottom:none; }

/* ---------------------------------- Team ---------------------------------- */
.team-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.team-card{ text-align:center; }
.team-photo{
  width:110px; height:110px; border-radius:50%; overflow:hidden; margin:0 auto 14px;
  border:1px solid var(--line); box-shadow:var(--shadow-sm);
}
.team-photo img{ width:100%; height:100%; object-fit:cover; }
.team-photo.mono{ background:var(--green-tint); display:flex; align-items:center; justify-content:center; }
.team-photo.mono span{ font-family:var(--serif); font-weight:600; color:var(--green-dark); font-size:1.4rem; }
.team-card h4{ font-size:15px; margin-bottom:2px; }
.team-card p{ font-size:13px; color:var(--green-dark); font-weight:600; margin:0; }

.values-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.value-card{ padding:24px; }
.value-card h4{ font-size:1rem; margin-bottom:8px; }
.value-card p{ font-size:14px; margin:0; }

/* ---------------------------------- Locations ---------------------------------- */
.locations-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.loc-card{ padding:26px; }
.loc-card h3{ font-size:1.15rem; margin-bottom:16px; }
.loc-row{ display:flex; gap:10px; font-size:14px; margin-bottom:12px; }
.loc-row svg{ flex:none; width:18px; height:18px; color:var(--green); margin-top:2px; }
.loc-row .val{ color:var(--ink-soft); }
.loc-card a.get-directions{ font-size:13.5px; font-weight:700; color:var(--green-dark); }

/* ---------------------------------- FAQ accordion ---------------------------------- */
.faq-list{ border-top:1px solid var(--line); }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-item summary{
  list-style:none; cursor:pointer; padding:20px 4px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary h4{ font-family:var(--sans); font-size:1rem; font-weight:700; margin:0; }
.faq-item summary .plus{ width:22px; height:22px; border-radius:50%; border:1px solid var(--line); position:relative; flex:none; }
.faq-item summary .plus::before, .faq-item summary .plus::after{ content:""; position:absolute; background:var(--ink); }
.faq-item summary .plus::before{ left:5px; right:5px; top:10px; height:1.5px; }
.faq-item summary .plus::after{ top:5px; bottom:5px; left:10px; width:1.5px; transition:.15s; }
.faq-item[open] summary .plus::after{ opacity:0; }
.faq-body{ padding:0 4px 22px; max-width:68ch; }
.faq-body p{ font-size:14.5px; }

/* ---------------------------------- Services accordion ---------------------------------- */
.services-list{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.svc{ background:var(--white); }
.svc summary{ list-style:none; cursor:pointer; padding:22px 24px; display:flex; align-items:center; gap:16px; }
.svc summary::-webkit-details-marker{ display:none; }
.svc summary .icon-circle{ margin:0; }
.svc summary h3{ font-family:var(--sans); font-weight:700; font-size:1.05rem; flex:1; margin:0; }
.svc summary .plus{ width:24px; height:24px; border-radius:50%; border:1px solid var(--line); position:relative; flex:none; }
.svc summary .plus::before, .svc summary .plus::after{ content:""; position:absolute; background:var(--ink); }
.svc summary .plus::before{ left:6px; right:6px; top:11px; height:1.5px; }
.svc summary .plus::after{ top:6px; bottom:6px; left:11px; width:1.5px; transition:.15s; }
.svc[open] summary .plus::after{ opacity:0; }
.svc-body{ padding:0 24px 26px 88px; }
.svc-body ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:9px; }
.svc-body li{ font-size:14px; color:var(--ink-soft); padding-left:16px; position:relative; }
.svc-body li::before{ content:""; position:absolute; left:0; top:9px; width:5px; height:5px; border-radius:50%; background:var(--green); }

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band{ background:var(--green-deep); color:#fff; padding:56px 0; text-align:center; }
.cta-band h2{ color:#fff; font-size:clamp(1.7rem,3.4vw,2.3rem); margin-bottom:14px; }
.cta-band p{ color:rgba(255,255,255,.75); max-width:52ch; margin:0 auto 28px; }
.cta-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------------------------------- Traditional vs. DPC flow comparison ---------------------------------- */
.flow-compare{ display:flex; flex-direction:column; gap:44px; }
.flow-block .flow-title{ font-family:var(--serif); font-size:1.1rem; font-weight:600; margin-bottom:18px; }
.flow-row{ display:flex; align-items:center; gap:10px; }
.flow-step{
  position:relative; flex:1; color:#fff; font-size:14.5px; line-height:1.4;
  padding:22px 40px 22px 26px; border-radius:8px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}
.flow-step b{ display:block; font-family:var(--serif); font-size:15.5px; font-weight:600; margin-bottom:4px; }
.flow-step span{ font-size:13px; opacity:.88; display:block; }
.flow-traditional .flow-step:nth-of-type(1){ background:oklch(60% 0.02 70); }
.flow-traditional .flow-step:nth-of-type(2){ background:oklch(51% 0.026 60); }
.flow-traditional .flow-step:nth-of-type(3){ background:oklch(42% 0.032 48); }
.flow-traditional .flow-step:nth-of-type(4){ background:oklch(32% 0.03 40); }
.flow-dpc .flow-step:nth-of-type(1){ background:var(--green); }
.flow-dpc .flow-step:nth-of-type(2){ background:var(--green-dark); }
.flow-note{ font-size:13.5px; color:var(--ink-soft); margin-top:16px; }
.flow-note a{ color:var(--green-dark); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.flow-sep{
  flex:0 0 auto; position:relative; z-index:4;
  font-family:var(--serif); font-weight:700; font-size:38px; line-height:1; color:var(--green);
}

.icon-circle .num{ font-family:var(--serif); font-weight:600; font-size:20px; color:var(--green-dark); }

/* ---------------------------------- Footer ---------------------------------- */
footer.site{ background:var(--green-deep); color:rgba(255,255,255,.62); padding:48px 0 24px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap:32px; margin-bottom:36px; }
.footer-brand img{ height:32px; margin-bottom:14px; filter:brightness(0) invert(1); }
.footer-brand p{ font-size:13px; color:rgba(255,255,255,.55); max-width:30ch; }
.footer-col h6{ font-family:var(--serif); font-style:italic; font-size:14px; color:var(--green-bright); margin:0 0 14px; font-weight:600; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:13.5px; color:rgba(255,255,255,.68); }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.12); padding-top:20px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12.5px; color:rgba(255,255,255,.45); }
.footer-social{ display:flex; gap:12px; }
.footer-social a{ width:32px; height:32px; border:1px solid rgba(255,255,255,.2); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ border-color:var(--green-bright); color:var(--green-bright); }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width:980px){
  .split{ grid-template-columns:1fr; }
  .split-media{ order:-1; }
  .split-narrow-photo{ display:block; overflow:hidden; }
  .split-narrow-photo .split-media{ float:left; width:38%; max-width:220px; margin:2px 24px 14px 0; }
  .split-narrow-photo .split-copy p:first-child{ margin-top:0; }
  .split-photo-wrap{ display:block; overflow:hidden; }
  .split-photo-wrap .split-media{ float:left; width:38%; max-width:220px; margin:2px 24px 14px 0; }
  .split-photo-wrap .split-copy p:first-child{ margin-top:0; }
  .founder-note{ grid-template-columns:1fr; }
  .founder-note .fn-photo img{ min-height:320px; }
  .founder-note .fn-copy{ padding:40px 0 0; }
  .value-strip{ grid-template-columns:1fr; }
  .value-strip > div{ border-right:none; border-bottom:1px solid var(--line); }
  .value-strip > div:last-child{ border-bottom:none; }
  .icon-grid, .icon-grid.cols-4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .team-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .values-grid, .locations-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .pricing-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-media{ height:560px; }
}
@media (max-width:760px){
  nav.primary{ display:none; }
  .menu-toggle{ display:flex; }
  .nav-phone{ display:none; }
  .utility-bar .u-sep, .utility-bar .u-locs{ display:none; }
  .icon-grid, .icon-grid.cols-4, .icon-grid.cols-2{ grid-template-columns:1fr; }
  .stat-strip{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .team-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .values-grid, .locations-grid{ grid-template-columns:1fr; }
  .check-list.two-col{ grid-template-columns:1fr; }
  section{ padding:48px 0; }
  .hero-media{ height:520px; }
  .hero-content{ bottom:28px; }
  .split-narrow-photo .split-media{ max-width:170px; margin:2px 18px 14px 0; }
  .split-photo-wrap .split-media{ max-width:170px; margin:2px 18px 14px 0; }
  .flow-row{ flex-direction:column; align-items:stretch; gap:2px; }
  .flow-step{ clip-path:none; border-radius:8px; padding:18px 22px; }
  .flow-sep{ align-self:center; }
}
@media (max-width:520px){
  .footer-grid{ grid-template-columns:1fr; }
  .utility-bar .u-right a:last-child{ display:none; }
}

/* Mobile nav drawer
   Header itself becomes the fixed, scrollable panel when open (rather than a
   fixed-position child of it), since a sticky ancestor acts as the containing
   block for a fixed descendant in Chromium and would otherwise collapse it. */
body.nav-open header.site{ position:fixed; inset:0; height:100vh; overflow-y:auto; }
body.nav-open .nav-row{ flex-wrap:wrap; }
body.nav-open .brand{ order:1; }
body.nav-open .nav-cta{ order:2; }
body.nav-open nav.primary{
  order:3; flex-basis:100%; width:100%; justify-content:flex-start;
  display:flex; flex-direction:column; align-items:flex-start; gap:0;
  padding:12px 0 32px; margin-top:12px; border-top:1px solid var(--line);
}
body.nav-open nav.primary a{ width:100%; padding:14px 4px; border-bottom:1px solid var(--line-soft); border-radius:0; }
