/* ============================================================
   PEFF Med — Site styles
   Built on the PEFFMed design system tokens (tokens.css)
   Editorial luxury-medical: cream canvas, navy authority,
   teal accent, mauve as a rare warm grace note.
   Type: Barlow (structure) + Libre Baskerville (serif display).
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
/* Snappier touch response; prevents double-tap zoom on controls */
a, button, input, select, textarea, label { touch-action: manipulation; }
/* Replace hover-lift with simple press feedback on touch devices */
@media (hover: none) {
  .btn:active { transform: translateY(1px); }
}
::selection { background: var(--teal-100); color: var(--navy); }

/* --- focus visibility --- */
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.container-narrow { width: min(760px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 144px); }
.section-sm { padding-block: clamp(56px, 8vw, 104px); }

.band-cream { background: var(--cream); }
.band-soft  { background: var(--cream-soft); }
.band-white { background: var(--surface); }
.band-navy  { background: var(--navy); color: var(--fg-on-dark); }
.band-navy-deep { background: linear-gradient(160deg, #0e3f6e 0%, #0a2c50 100%); color: var(--fg-on-dark); }

/* ============================================================
   Type helpers
   ============================================================ */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  font-size: var(--t-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-5);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.on-navy { color: var(--teal); }
.eyebrow.on-navy::before { background: var(--teal); }
.eyebrow.centered { justify-content: center; }

.serif { font-family: var(--font-serif); }
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--navy);
  margin: 0;
}
.band-navy .display, .band-navy-deep .display { color: #fff; }

h2.title, .title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 var(--space-5);
}
.band-navy .title, .band-navy-deep .title { color: #fff; }

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--mauve);
  margin: 0 0 var(--space-6);
}
.band-navy .lead, .band-navy-deep .lead { color: var(--teal); }

/* Internal page headers — italic teal accent line + quiet ink lead */
.page-head h1 .accent { font-style: italic; color: var(--teal); }
.page-head .lead {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
}

.body-lg { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--fg); }
.muted { color: var(--fg-muted); }
/* Large section-intro paragraphs read in full ink, not muted grey */
.body-lg.muted { color: var(--ink); }
.measure { max-width: 60ch; }
.measure-sm { max-width: 46ch; }

/* "Why PEFFMed?" — continuation block (lead-in, list, emphasis, membership) */
.why-continued { margin-top: clamp(44px, 5vw, 72px); max-width: 74ch; }
.why-lead {
  font-weight: var(--w-semibold); color: var(--navy);
  font-size: clamp(1.0625rem, 1.3vw, 1.2rem); margin-bottom: var(--space-4);
}
.why-list {
  list-style: none; margin: 0 0 var(--space-7); padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px;
}
.why-list li {
  position: relative; padding-left: 26px;
  color: var(--fg); line-height: 1.5;
}
.why-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.why-emphasis {
  margin-bottom: var(--space-8);
  font-size: clamp(1.18rem, 1.6vw, 1.42rem); line-height: 1.45; color: var(--navy);
}
.why-emphasis .punch {
  display: block; margin-top: 8px; padding-left: 1.6em; color: var(--ink);
}
.why-emphasis .punch strong { color: var(--mauve); font-weight: var(--w-bold); }
.why-strong { color: var(--navy); font-weight: var(--w-semibold); }
.why-membership strong { color: var(--navy); font-weight: var(--w-semibold); }
.why-membership p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .why-list { grid-template-columns: 1fr; gap: 12px; }
}

p { margin: 0 0 var(--space-5); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--navy);
  font-family: var(--font-sans);
  font-weight: var(--w-semibold);
  font-size: var(--t-small);
  letter-spacing: 0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  background: var(--btn-bg);
  color: #fff;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn .arr { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.btn { white-space: nowrap; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-600); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--teal-700); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-100); color: var(--teal-700); border-color: var(--teal-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); padding-inline: 4px; }
.btn-ghost:hover { color: var(--teal-700); }
.btn-on-navy { background: var(--teal); color: #fff; }
.btn-on-navy:hover { background: var(--teal-600); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-lg { padding: 18px 32px; font-size: var(--t-body); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

/* ============================================================
   Fixed chrome: brand, menu toggle, Patient Portal
   ============================================================ */
.top-left {
  position: fixed; top: 0; left: 0; z-index: 80;
  padding: clamp(18px, 2.4vw, 30px) clamp(20px, 4vw, 56px);
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: clamp(30px, 3.4vw, 42px); width: auto; }
.brand .logo-white { display: none; }
/* White (on-dark) logo at the top of the dark hero; navy logo once a white bar appears */
body[data-route="home"]:not(.scrolled):not(.menu-open) .brand .logo-navy { display: none; }
body[data-route="home"]:not(.scrolled):not(.menu-open) .brand .logo-white { display: block; }
body.menu-open .brand .logo-navy { display: none; }
body.menu-open .brand .logo-white { display: block; }

.top-right {
  position: fixed; top: 0; right: 0; z-index: 80;
  padding: clamp(16px, 2.4vw, 26px) clamp(20px, 4vw, 56px);
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px);
}

.portal-btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-weight: var(--w-semibold); font-size: var(--t-small);
  letter-spacing: 0.02em;
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--teal); color: #fff;
  box-shadow: 0 6px 18px rgba(115,179,181,.34);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.portal-btn:hover { background: var(--teal-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(115,179,181,.42); }
.portal-btn svg { width: 16px; height: 16px; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-weight: var(--w-semibold);
  font-size: var(--t-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--navy);
  padding: 10px 4px;
  transition: color var(--dur) var(--ease);
}
.menu-toggle .label { line-height: 1; }
.coming-soon-tag {
  font-family: Georgia, var(--font-serif), serif; font-style: italic;
  font-size: 12px; font-weight: var(--w-medium);
  letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
  opacity: 0.82;
}
body[data-route="home"]:not(.scrolled):not(.menu-open) .coming-soon-tag { color: #fff; }
body.menu-open .coming-soon-tag { color: #fff; }
body[data-route="home"]:not(.scrolled):not(.menu-open) .menu-toggle { color: #fff; }
body.menu-open .menu-toggle { color: #fff; }
.burger { position: relative; width: 26px; height: 12px; flex: 0 0 auto; }
.burger span {
  position: absolute; left: 0; height: 1.6px; width: 100%;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), width var(--dur) var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5px; width: 70%; }
.burger span:nth-child(3) { top: 10px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 100%; }

/* Solid white header bar that slides in on scroll */
.header-scrim {
  position: fixed; top: 0; left: 0; right: 0; height: clamp(74px, 8vw, 92px); z-index: 70;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(16,70,121,.07);
  pointer-events: none; opacity: 0; transform: translateY(-100%);
  transition: opacity 320ms var(--ease), transform 380ms var(--ease);
}
body.scrolled .header-scrim { opacity: 1; transform: translateY(0); }
body.menu-open .header-scrim { opacity: 0; transform: translateY(-100%); }

/* ============================================================
   Full-screen menu overlay
   ============================================================ */
.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: linear-gradient(155deg, #0e3f6e 0%, #0a2c50 100%);
  color: var(--fg-on-dark);
  display: grid; grid-template-columns: 1.4fr 1fr;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 420ms var(--ease), visibility 420ms var(--ease);
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; pointer-events: auto; }

.menu-overlay::before {
  /* faint brand glow */
  content: ""; position: absolute; right: -8%; top: -10%;
  width: 60vh; height: 60vh; border-radius: 50%;
  background: radial-gradient(circle, rgba(115,179,181,.22), transparent 62%);
  pointer-events: none;
}
.menu-nav {
  align-self: center;
  padding: clamp(96px, 12vh, 160px) clamp(24px, 6vw, 96px) 48px;
  position: relative; z-index: 1;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { border-bottom: 1px solid rgba(255,255,255,.10); }
.menu-link, .menu-parent {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: transparent; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.1;
  color: #fff; padding: clamp(14px, 2vh, 22px) 0;
  letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.menu-link:hover, .menu-parent:hover { color: var(--teal); padding-left: 14px; }
.menu-parent .chev {
  width: 22px; height: 22px; flex: 0 0 auto; color: var(--teal);
  transition: transform 360ms var(--ease);
}
.menu-item.open .menu-parent .chev { transform: rotate(180deg); }
.menu-index { display: none; }
.menu-parent .parent-label { display: inline-flex; align-items: baseline; }

.submenu {
  list-style: none; margin: 0; padding: 0;
  overflow: hidden; max-height: 0;
  transition: max-height 420ms var(--ease);
}
.menu-item.open .submenu { max-height: 360px; }
.submenu li a {
  display: block;
  font-family: var(--font-sans); font-weight: var(--w-medium);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--fg-on-dark-muted);
  padding: 11px 0 11px 2px;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.submenu { padding-bottom: 14px; }
.submenu li a:hover { color: #fff; padding-left: 12px; }
.submenu li a.active { color: var(--teal); }

.menu-aside {
  position: relative; z-index: 1;
  border-left: 1px solid rgba(255,255,255,.12);
  padding: clamp(96px, 12vh, 160px) clamp(28px, 4vw, 64px) 48px;
  display: flex; flex-direction: column; justify-content: center; gap: var(--space-6);
}
.menu-aside .aside-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.5; color: #fff;
}
.menu-aside .aside-block .lbl {
  font-size: var(--t-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 8px;
}
.menu-aside .aside-block a, .menu-aside .aside-block p { color: var(--fg-on-dark); font-size: var(--t-body); }
.menu-aside .aside-block a:hover { color: var(--teal); }

/* ============================================================
   Page / route machinery
   ============================================================ */
.page { display: none; }
.page.active { display: block; animation: pageIn 560ms var(--ease) backwards; }
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 760ms var(--ease), transform 760ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 270ms; }
.reveal.d4 { transition-delay: 360ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .page.active { animation: none; }
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: clamp(32px, 5vw, 80px);
  padding: 132px clamp(20px, 4vw, 56px) 64px;
  width: min(1320px, 96vw); margin-inline: auto;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02;
  letter-spacing: -0.015em; color: var(--navy); margin: 0 0 var(--space-6);
}
.hero h1 .accent { color: var(--teal-700); font-style: italic; }
.hero .lead { color: var(--mauve); }
.hero-statement { font-size: clamp(1.0625rem, 1.4vw, 1.22rem); line-height: 1.7; color: var(--fg); max-width: 48ch; margin-bottom: var(--space-7); }

.hero-visual { position: relative; z-index: 1; aspect-ratio: 4 / 5; width: 100%; }
.hero-visual image-slot { width: 100%; height: 100%; box-shadow: var(--shadow-lg); }
.blob {
  position: absolute; border-radius: 50%; filter: blur(2px);
  pointer-events: none; z-index: 0;
}
.blob-1 { width: 46vmax; height: 46vmax; right: -16vmax; top: -10vmax;
  background: radial-gradient(circle at 40% 40%, rgba(115,179,181,.28), rgba(115,179,181,0) 64%); }
.blob-2 { width: 30vmax; height: 30vmax; left: -10vmax; bottom: -8vmax;
  background: radial-gradient(circle at 50% 50%, rgba(112,57,44,.12), rgba(112,57,44,0) 66%); }
.hero-tag {
  position: absolute; left: -28px; bottom: 36px; z-index: 3;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px; max-width: 260px;
}
.hero-tag .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex: 0 0 auto; box-shadow: 0 0 0 4px var(--success-bg); }
.hero-tag .t { font-size: var(--t-small); line-height: 1.4; }
.hero-tag .t b { color: var(--navy); display: block; font-weight: var(--w-semibold); }
.hero-tag .t span { color: var(--fg-muted); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2;
  font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-muted);
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--teal), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; top: -40%; left: 0; width: 100%; height: 40%; background: var(--navy); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { top: -40%; } 60%,100% { top: 100%; } }

/* ---- Full-bleed image hero variant ---- */
.hero-image {
  display: block; width: 100%; max-width: none; margin: 0; padding: 0;
  min-height: 100svh; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; left: 0; right: 0; top: -12%; height: 130%; z-index: 0;
  background: #dfe8f0 url('assets/hero-doctor-2.webp') 72% 34% / cover no-repeat;
  will-change: transform;
}
/* Scale the hero image down at narrower widths so more of the photo reads */
@media (max-width: 1200px) {
  .hero-bg { background-size: cover; background-position: 74% 24%; }
}
@media (max-width: 900px) {
  .hero-bg { background-size: cover; }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(101deg, rgba(8,30,54,.96) 0%, rgba(8,30,54,.82) 32%, rgba(8,30,54,.46) 64%, rgba(8,30,54,.14) 100%),
    linear-gradient(180deg, rgba(8,30,54,.42) 0%, rgba(8,30,54,0) 22%, rgba(8,30,54,0) 72%, rgba(8,30,54,.5) 100%);
}
.hero-inner {
  position: relative; z-index: 2; min-height: 100svh;
  display: flex; align-items: center;
  width: min(1180px, 92vw); margin-inline: auto;
  padding: 140px 0 104px;
}
.hero-image .hero-copy { max-width: 860px; }
.hero-image h1 {
  color: #fff; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02;
  letter-spacing: -0.015em; margin: 0 0 var(--space-6);
  text-shadow: 0 2px 30px rgba(6,22,42,.4);
}
.hero-image h1 .accent { color: var(--teal); font-style: italic; }
.hero-image .hero-statement {
  font-size: clamp(1.18rem, 1.7vw, 1.45rem); line-height: 1.4;
  color: rgba(255,255,255,.9); max-width: 64ch; margin-bottom: var(--space-7);
  text-shadow: 0 1px 18px rgba(6,22,42,.45);
}
.eyebrow.on-dark { color: var(--teal); }
.eyebrow.on-dark::before { background: var(--teal); }
.scroll-cue.light { color: rgba(255,255,255,.78); z-index: 3; }
.scroll-cue.light .line { background: linear-gradient(rgba(255,255,255,.7), transparent); }
.scroll-cue.light .line::after { background: #fff; }
@media (max-width: 680px) {
  .hero-bg { background-position: 76% 22%; }
  .hero-scrim { background:
    linear-gradient(180deg, rgba(8,30,54,.6) 0%, rgba(8,30,54,.5) 40%, rgba(8,30,54,.82) 100%); }
}

/* ============================================================
   PEFF acronym
   ============================================================ */
.acronym { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.acro-item {
  position: relative; padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 30px);
  border-right: 1px solid var(--border);
}
.acro-item:last-child { border-right: 0; }
.acro-letter {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 6.2rem); line-height: 1; color: var(--navy);
  transition: color var(--dur) var(--ease);
}
.acro-item:hover .acro-letter { color: var(--teal-700); }
.acro-word {
  font-weight: var(--w-bold); font-size: var(--t-h4); color: var(--navy);
  margin: var(--space-4) 0 var(--space-2); letter-spacing: -0.01em;
}
.acro-text { font-size: var(--t-small); color: var(--fg-muted); line-height: 1.6; }
.acro-item .rule { width: 30px; height: 2px; background: var(--teal); margin-top: 14px; transition: width var(--dur) var(--ease); }
.acro-item:hover .rule { width: 56px; }

/* Acronym carousel (tablet/mobile): one principle at a time, letters as tabs */
.acronym-viewport { overflow: visible; }
.acro-tabs { display: none; }
.acro-tab {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.9rem; line-height: 1;
  width: 58px; height: 58px; border-radius: 50%; padding: 0;
  background: transparent; border: 1.5px solid var(--border); color: var(--fg-subtle);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.acro-tab:hover { color: var(--teal-700); border-color: var(--teal); }
.acro-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ============================================================
   Differentiators — expanding hover panels
   ============================================================ */
.diff-section { position: relative; overflow: hidden; background: linear-gradient(160deg, #082a4c 0%, #04162c 100%); }
.diff-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(95%, 1600px);
  background: url("assets/bg-circles.webp") no-repeat right bottom / contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.diff-section .container { position: relative; z-index: 1; }

/* Mission statement — circles motif right-justified over the navy, like the home blue section */
.mission-circles { position: relative; overflow: hidden; }
.mission-circles::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(70%, 1100px);
  background: url("assets/bg-circles.webp") no-repeat right center / contain;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.mission-circles .container { position: relative; z-index: 1; }

/* Our story — green circles motif over the white background, like the home CTA */
.story-circles { position: relative; overflow: hidden; }
.story-circles::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(70%, 1100px);
  background: url("assets/bg-circles-green.webp") no-repeat right center / contain;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.story-circles .container { position: relative; z-index: 1; }

/* CTA — circles motif right-justified over the white background */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(70%, 1100px);
  background: url("assets/bg-circles-green.webp") no-repeat right center / contain;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.cta-section .cta-strip { position: relative; z-index: 1; }
/* "A practice for the few" CTA — left-justified, aligned to main content column */
.cta-section .cta-strip { text-align: left; width: min(1180px, 92vw); }
.cta-section .cta-strip .eyebrow.centered { justify-content: flex-start; }
.cta-section .cta-strip .btn-row { justify-content: flex-start !important; }
.diff-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-4); margin-top: clamp(36px, 4vw, 56px); }
.diff-cta .btn { white-space: nowrap; }
.diff-cta .btn .arr { width: 15px; height: 15px; }
.diff-head { margin-bottom: clamp(32px, 4vw, 56px); }
.diff-head-copy { max-width: 60ch; }
.diff-head-copy .title { margin-bottom: var(--space-4); }
.diff-head-sub { margin: 0; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--fg-on-dark-muted); max-width: 78ch; }

.diff-panels {
  display: flex; gap: clamp(10px, 1vw, 16px);
  height: clamp(440px, 58vh, 600px);
}
.diff-panel {
  position: relative; flex: 1 1 0; min-width: 0;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
  isolation: isolate;
  transition: flex-grow 620ms var(--ease);
}
.diff-panel:hover, .diff-panel:focus-visible { flex-grow: 2.9; outline: none; }
.diff-panel:focus-visible { box-shadow: var(--shadow-focus); }

.diff-panel-media { position: absolute; inset: 0; z-index: 0; }
.diff-panel-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform 720ms var(--ease);
}
.diff-panel:hover .diff-panel-media img { transform: scale(1.05); }
.diff-panel-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,30,54,.30) 0%, rgba(8,30,54,.06) 24%, rgba(8,30,54,0) 48%);
  transition: background 500ms var(--ease);
}
.diff-panel:hover .diff-panel-veil {
  background: linear-gradient(180deg, rgba(8,30,54,.34) 0%, rgba(8,30,54,.08) 28%, rgba(8,30,54,0) 52%);
}

.diff-dot {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32);
}
.diff-dot::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); }

.diff-panel-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(40px, 5vw, 60px) clamp(20px, 1.7vw, 30px) clamp(22px, 1.8vw, 30px);
  background: linear-gradient(to top, rgba(10,42,78,.94) 0%, rgba(12,50,88,.82) 42%, rgba(15,62,108,.40) 76%, rgba(16,70,121,0) 100%);
}
.diff-panel-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.45rem, 1.7vw, 1.9rem); line-height: 1.16;
  letter-spacing: -0.01em; color: #fff; margin: 0;
  text-shadow: 0 1px 16px rgba(6,22,42,.4);
}
.diff-panel-caption { display: none; }
.diff-panel-reveal {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 560ms var(--ease), opacity 380ms var(--ease), margin-top 560ms var(--ease);
  margin-top: 0;
}
.diff-panel:hover .diff-panel-reveal, .diff-panel:focus-visible .diff-panel-reveal {
  max-height: 240px; opacity: 1; margin-top: 18px;
}
.diff-panel-reveal p {
  margin: 0 0 20px; font-size: var(--t-body); line-height: 1.6;
  color: rgba(255,255,255,.88); max-width: 42ch;
}
.diff-learn {
  display: none;
  align-items: center; gap: 9px;
  font-family: var(--font-sans); font-weight: var(--w-semibold); font-size: var(--t-small);
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--teal); color: #fff;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), gap var(--dur) var(--ease);
  white-space: nowrap;
}
.diff-learn svg { width: 16px; height: 16px; }
.diff-learn:hover { background: var(--teal-600); transform: translateY(-2px); gap: 13px; }

@media (prefers-reduced-motion: reduce) {
  .diff-panel, .diff-panel-media img, .diff-panel-reveal { transition: none; }
}

/* Carousel navigation (shown only when diff-panels collapses to one-up) */
.diff-nav {
  display: none; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 36px); margin-top: clamp(24px, 4vw, 40px);
}
.diff-nav-arrow {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center;
  background: transparent; border: 1.5px solid var(--border-on-dark); color: #fff;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.diff-nav-arrow svg { width: 20px; height: 20px; }
.diff-nav-arrow:hover:not(:disabled) { background: var(--teal); color: var(--navy); border-color: var(--teal); transform: translateY(-2px); }
.diff-nav-arrow:disabled { opacity: 0.3; cursor: default; }
.diff-nav-dots { display: flex; align-items: center; gap: 10px; }
.diff-nav-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  position: relative;
  background: rgba(255,255,255,.32); border: 0; cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.diff-nav-dot:hover { background: var(--teal); transform: scale(1.15); }
.diff-nav-dot.active { width: 28px; border-radius: 999px; background: var(--teal); }
/* invisible expanded hit area — dots stay 9px visually but tap at ~37px */
.diff-nav-dot::after, .staff-dot::after { content: ""; position: absolute; inset: -14px -5px; }

@media (max-width: 900px) {
  .diff-panels {
    flex-direction: row; height: auto; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .diff-panels::-webkit-scrollbar { display: none; }
  .diff-panel {
    flex: 0 0 100%; scroll-snap-align: center;
    height: clamp(380px, 96vw, 480px);
  }
  .diff-panel:hover, .diff-panel:focus-visible { flex-grow: 0; }
  .diff-panel-reveal { max-height: 240px; opacity: 1; margin-top: 16px; }
  .diff-panel-veil { background: linear-gradient(180deg, rgba(8,30,54,.30) 0%, rgba(8,30,54,.06) 26%, rgba(8,30,54,0) 50%); }
  .diff-panel-media img { transform: none !important; }
  .diff-nav { display: flex; }
}

/* ============================================================
   Cards / values / services
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
body[data-route="mission"] .grid-3 .card:hover { transform: none; box-shadow: none; border-color: var(--border); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.grid-aside { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 96px); }

.icon-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; margin-bottom: var(--space-5);
}
.icon-badge svg { width: 26px; height: 26px; }
.value-item .icon-badge { background: transparent; border: 1px solid var(--teal); width: 52px; height: 52px; }

.service-card { display: flex; flex-direction: column; overflow: hidden; }
a.service-card { text-decoration: none; color: inherit; }
a.service-card .link { pointer-events: none; }
.service-card-media {
  margin: calc(-1 * clamp(28px, 3vw, 40px));
  margin-bottom: var(--space-6);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-soft);
}
.service-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--dur) var(--ease);
}
.service-card:hover .service-card-media img { transform: scale(1.04); }

/* Explore cards — clickable navigation boxes (About overview) */
.explore-card { display: flex; flex-direction: column; overflow: hidden; }
.explore-card:hover .service-card-media img { transform: scale(1.04); }
.explore-card .num-tag {
  font-size: var(--t-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--teal-700); margin-bottom: var(--space-4);
}
.explore-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h3); color: var(--navy); margin: 0 0 var(--space-3); letter-spacing: -0.01em; }
.explore-card p { color: var(--fg-muted); margin: 0 0 var(--space-5); }
.explore-card .link { margin-top: auto; }
.explore-card:hover .link { color: var(--teal-700); }
.explore-card:hover .link svg { transform: translateX(4px); }
.explore-card .link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.service-card .num-tag {
  font-size: var(--t-label); letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--space-4);
}
.service-card h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h3); color: var(--navy); margin: 0 0 var(--space-3); letter-spacing: -0.01em; }
.service-card p { color: var(--fg-muted); margin: 0 0 var(--space-5); }
.service-card .link { margin-top: auto; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  padding-block: 10px; margin-block: -10px;
  font-weight: var(--w-semibold); font-size: var(--t-small); color: var(--teal-700);
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link svg { width: 16px; height: 16px; }
.link:hover { gap: 14px; color: var(--navy); }

/* values strip on navy */
.value-item h3 { font-size: var(--t-h4); color: #fff; margin: 0 0 var(--space-3); font-weight: var(--w-semibold); }
.value-item p { color: var(--fg-on-dark-muted); font-size: var(--t-small); margin: 0; }
.value-item .icon-badge { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); color: var(--teal); }

/* "What we believe" — values carousel (one-at-a-time) */
.values-viewport {
  overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.values-viewport::-webkit-scrollbar { display: none; }
.values-track { --val-gap: var(--space-6); display: flex; gap: var(--val-gap); }
.value-slide { flex: 0 0 calc((100% - 2 * var(--val-gap)) / 3); scroll-snap-align: start; }
.values-nav {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 36px); margin-top: clamp(30px, 4vw, 52px);
}
@media (max-width: 900px) {
  .value-slide { flex-basis: calc((100% - var(--val-gap)) / 2); }
}
@media (max-width: 600px) {
  .value-slide { flex-basis: 100%; }
}

/* ============================================================
   Staff cards
   ============================================================ */
.staff-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.staff-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
body[data-route="staff"] .staff-card:hover { transform: none; box-shadow: var(--shadow-sm); }
.staff-portrait { width: 100%; aspect-ratio: 4 / 5; background: var(--cream-soft); }
.staff-portrait image-slot { width: 100%; height: 100%; }
.staff-body { padding: clamp(22px, 2.4vw, 30px); }
.staff-body .role { font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal-700); margin: 0 0 8px; }
.staff-body h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h3); color: var(--navy); margin: 0 0 6px; }
.staff-body .cred { font-size: var(--t-small); color: var(--fg-muted); margin: 0 0 var(--space-4); }
.staff-body p { font-size: var(--t-small); color: var(--fg); margin: 0; line-height: 1.65; }

/* Staff carousel — 3 visible of many */
.staff-viewport { overflow: hidden; }
.staff-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--space-6)) / 2);
  gap: var(--space-6);
  transition: transform 560ms var(--ease);
}
.staff-track .staff-card { height: 100%; }
@media (max-width: 900px) {
  .staff-track { grid-auto-columns: calc((100% - var(--space-6)) / 2); }
}
@media (max-width: 600px) {
  .staff-track { grid-auto-columns: 100%; }
}

/* Redesigned navigation: arrows + paged dots */
.staff-controls {
  display: none; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 4vw, 52px);
}
@media (max-width: 600px) { .staff-controls { display: flex; } }
.staff-arrow {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  background: transparent; border: 1.5px solid var(--border-strong);
  color: var(--navy); cursor: pointer; display: grid; place-items: center;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.staff-arrow svg { width: 20px; height: 20px; }
.staff-arrow:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.staff-arrow:disabled { opacity: 0.3; cursor: default; }
.staff-dots { display: flex; align-items: center; gap: 10px; }
.staff-dot {
  width: 9px; height: 9px; border-radius: 50%; padding: 0;
  position: relative;
  background: var(--slate); border: 0; cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.staff-dot:hover { background: var(--teal); transform: scale(1.15); }
.staff-dot.active { width: 28px; border-radius: 999px; background: var(--teal); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: transparent; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 2.6vw, 30px) 4px;
  font-family: var(--font-sans); font-weight: var(--w-semibold);
  font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--navy);
  letter-spacing: -0.005em; transition: color var(--dur) var(--ease);
}
.faq-q:hover { color: var(--teal-700); }
.faq-icon { position: relative; width: 20px; height: 20px; flex: 0 0 auto; margin-top: 6px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--teal); border-radius: 2px; transition: transform 360ms var(--ease), opacity var(--dur) var(--ease); }
.faq-icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq-icon::after { left: 9px; top: 0; width: 2px; height: 20px; }
.faq.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 440ms var(--ease); }
.faq.open .faq-a { max-height: 320px; }
.faq-a-inner { padding: 0 56px var(--space-6) 4px; color: var(--ink); font-size: var(--t-body); line-height: 1.7; max-width: 70ch; }

/* ============================================================
   Pull quote
   ============================================================ */
.pullquote { text-align: center; }
.pullquote blockquote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.35; color: var(--navy);
  margin: 0 auto; max-width: 32ch;
}
.band-navy .pullquote blockquote, .band-navy-deep .pullquote blockquote { color: #fff; }
.pullquote .mark { font-family: var(--font-serif); font-size: 4rem; color: var(--teal); line-height: 0.5; display: block; margin-bottom: 18px; }
.pullquote cite { display: block; margin-top: var(--space-6); font-style: normal; font-family: var(--font-sans); font-size: var(--t-small); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-muted); }
.band-navy-deep .pullquote cite { color: var(--fg-on-dark-muted); }
.pullquote cite a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color var(--dur) var(--ease); }
.pullquote cite a:hover { color: var(--teal-700); }

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-head { padding: clamp(132px, 16vh, 200px) 0 clamp(48px, 6vw, 80px); }
.page-head .display { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.breadcrumb { font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg-subtle); margin-bottom: var(--space-4); }
.breadcrumb a { display: inline-block; padding: 12px 2px; margin: -12px -2px; }
.breadcrumb a:hover { color: var(--teal-700); }

/* big editorial figure (image-slot) */
.figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.figure image-slot { width: 100%; height: 100%; }
.figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.figure.tall { aspect-ratio: 3 / 4; }
.figure.wide { aspect-ratio: 16 / 10; }
.figure.square { aspect-ratio: 1; }

/* Single-column photo carousel (location "the practice") */
.space-carousel { position: relative; }
.space-carousel-viewport { width: 100%; height: 100%; overflow: hidden; }
.space-carousel-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.space-slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.space-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; color: var(--navy);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 2; transition: background var(--dur) var(--ease);
}
.space-arrow:hover { background: #fff; }
.space-arrow svg { width: 20px; height: 20px; }
.space-arrow.prev { left: 14px; }
.space-arrow.next { right: 14px; }
.space-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; z-index: 2; }
.space-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); border: none; padding: 0; cursor: pointer; transition: background var(--dur) var(--ease); }
.space-dot.active { background: #fff; }

/* Location photo gallery — paged carousel (3-up, responsive) */
.gallery-viewport {
  overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-track {
  --gal-gap: var(--space-6);
  display: flex; gap: var(--gal-gap);
}
.gallery-slide { flex: 0 0 calc((100% - 2 * var(--gal-gap)) / 3); scroll-snap-align: start; }
.gallery-controls { margin-top: clamp(28px, 3.5vw, 44px); }
/* Explore-cards carousel — equal-height cards */
.explore-slide { display: flex; }
.explore-slide .explore-card { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .gallery-slide { flex-basis: calc((100% - var(--gal-gap)) / 2); }
}
@media (max-width: 600px) {
  .gallery-slide { flex-basis: 100%; }
}

/* stat / proof row */
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.proof .n { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--teal-700); line-height: 1; }
.band-navy-deep .proof .n { color: var(--teal); }
.proof .l { margin-top: var(--space-3); font-size: var(--t-small); color: var(--fg-muted); }
.band-navy-deep .proof .l { color: var(--fg-on-dark-muted); }
.proof { border-left: 2px solid var(--teal); padding-left: var(--space-5); }

/* ============================================================
   Contact form
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: var(--w-semibold); color: var(--navy); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: var(--t-body); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 14px 16px; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }

/* Contact form on a dark navy band (Location page) */
.contact-on-navy .field label { color: rgba(255,255,255,.82); }
.contact-on-navy .field input,
.contact-on-navy .field textarea,
.contact-on-navy .field select {
  background-color: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.contact-on-navy .field input::placeholder,
.contact-on-navy .field textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-on-navy .field input:focus,
.contact-on-navy .field textarea:focus,
.contact-on-navy .field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(115,180,181,.25);
  outline: none;
}
.contact-on-navy .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373b4b5' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
}
.contact-on-navy .field select option { color: var(--ink); }
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23104679' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-subtle); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: var(--shadow-focus); }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chip span { display: inline-flex; padding: 11px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--border); font-size: var(--t-small); color: var(--fg-muted); cursor: pointer; transition: all var(--dur) var(--ease); }
.radio-chip input:checked + span { border-color: var(--teal); background: var(--teal-100); color: var(--teal-700); font-weight: var(--w-semibold); }
.form-note { font-size: var(--t-small); color: var(--fg-muted); margin-top: var(--space-4); }

/* Contact form on a white background — give fields a soft warm fill + firmer
   borders so they read against white, and lift chips/inputs accordingly. */
.contact-light .field input,
.contact-light .field textarea,
.contact-light .field select {
  background-color: var(--cream-soft);
  border-color: var(--border-strong);
}
.contact-light .field input:focus,
.contact-light .field textarea:focus,
.contact-light .field select:focus {
  background-color: var(--white);
  border-color: var(--teal);
}
.contact-light .radio-chip span {
  background: var(--cream-soft);
  border-color: var(--border-strong);
}
.contact-light .radio-chip input:checked + span {
  background: var(--teal-100);
  border-color: var(--teal);
  color: var(--teal-700);
}
.form-success { display: none; padding: 28px; border-radius: var(--r-lg); background: var(--success-bg); border: 1px solid #bfe0d2; color: #2c5e51; }
.form-success.show { display: block; }

.contact-info { display: flex; flex-direction: column; gap: var(--space-6); }
.contact-line .lbl { font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal-700); margin-bottom: 8px; }
.contact-line .v { font-size: var(--t-h4); color: var(--navy); font-weight: var(--w-medium); }
.contact-line a.v { display: inline-block; padding: 10px 0; margin: -10px 0; }
.contact-line .v.serif { font-family: var(--font-serif); }
.contact-line a.v:hover { color: var(--teal-700); }

/* ============================================================
   Location — map + directions
   ============================================================ */
.location-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 4vw, 64px); align-items: stretch; }
.location-map {
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  min-height: 440px;
}
.location-map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.location-detail { display: flex; flex-direction: column; }
.location-detail .contact-info { gap: var(--space-5); }
.dir-list { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.dir-item { display: flex; gap: var(--space-4); align-items: flex-start; }
.dir-item .icon-badge { flex: 0 0 auto; width: 48px; height: 48px; margin-bottom: 0; }
.dir-item .icon-badge svg { width: 22px; height: 22px; }
.dir-item h4 { font-size: var(--t-h4); color: var(--navy); margin: 2px 0 6px; font-weight: var(--w-semibold); }
.dir-item p { color: var(--fg-muted); margin: 0; }
@media (max-width: 860px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA strip
   ============================================================ */
.cta-strip { text-align: center; }
.cta-strip .title { margin-bottom: var(--space-4); }
.cta-strip .lead { margin-bottom: var(--space-7); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: linear-gradient(160deg, #0c3a66 0%, #08294b 100%); color: var(--fg-on-dark); padding: clamp(36px, 4vw, 56px) 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 56px); padding-bottom: var(--space-8); border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand img { height: 38px; margin-bottom: var(--space-5); }
.footer-brand p { color: var(--fg-on-dark-muted); font-size: var(--t-small); max-width: 32ch; }
.footer-col h4 { font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal); margin: 0 0 var(--space-5); font-weight: var(--w-semibold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: var(--fg-on-dark-muted); font-size: var(--t-small); cursor: pointer; transition: color var(--dur) var(--ease); }
.footer-col a:hover, .footer-col li:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: var(--space-6); color: var(--fg-on-dark-muted); font-size: var(--t-caption); }
.footer-bottom .legal { display: flex; gap: 24px; flex-wrap: wrap; }
/* Get-in-touch contact links */
.contact-links { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: clamp(16px, 3vw, 40px); margin: clamp(28px, 3.5vw, 40px) 0 clamp(32px, 4vw, 44px); }
.contact-link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-serif); font-size: clamp(20px, 2.4vw, 27px); color: var(--navy); text-decoration: none; transition: color var(--dur) var(--ease); }
.contact-link svg { width: 26px; height: 26px; color: var(--teal); flex: none; }
.contact-link:hover { color: var(--teal); }
/* Meet Shawn — at-a-glance fact list */
.fact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; }
.fact-list li { display: flex; gap: 20px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--border); }
.fact-list li:last-child { border-bottom: 1px solid var(--border); }
.fact-k { flex: 0 0 34%; font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal); font-weight: var(--w-semibold); }
.fact-v { font-family: var(--font-serif); font-size: clamp(17px, 1.6vw, 19px); color: var(--ink); }
.footer-top.footer-logo-only { display: flex; justify-content: flex-start; text-align: left; padding-bottom: var(--space-5); }
.footer-top.footer-logo-only .footer-brand img { margin-bottom: 0; height: 46px; }

/* ============================================================
   Section heading block
   ============================================================ */
.sec-head { max-width: 52ch; margin-bottom: clamp(40px, 5vw, 72px); }
.sec-head.centered { margin-inline: auto; text-align: center; }
.sec-head.centered .eyebrow { justify-content: center; }

/* divider */
.hr-rule { height: 1px; background: var(--border); border: 0; margin: 0; }

/* Insurance cards (white background — consistent with service/explore cards) */
.insurance-cards .card h3 { font-family: var(--font-serif); font-weight: 400; font-size: var(--t-h3); color: var(--navy); margin: 0 0 12px; }
.insurance-cards .card p { color: var(--fg-muted); margin: 0; }

/* Membership benefits grid */
.benefit-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-7);
}
.benefit-item { display: flex; gap: var(--space-4); align-items: center; }
.benefit-item .icon-badge { flex: 0 0 auto; width: 48px; height: 48px; margin-bottom: 0; }
.benefit-item p { margin: 0; font-size: var(--t-body); color: var(--ink); line-height: 1.55; font-weight: var(--w-medium); }
@media (max-width: 760px) {
  .benefit-grid { grid-template-columns: 1fr; }
}

/* Become-a-member step list */
.step-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
}
.step {
  display: flex; gap: clamp(24px, 4vw, 56px); align-items: flex-start;
  padding: clamp(28px, 3.5vw, 40px) 0;
  border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-num {
  flex: 0 0 auto;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1;
  color: var(--teal);
  min-width: 72px;
}
.step-body h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: var(--t-h3); color: var(--navy);
  margin: 0 0 10px;
}
.step-body p { margin: 0; color: var(--fg-muted); line-height: 1.7; max-width: 62ch; }
@media (max-width: 640px) {
  .step { flex-direction: column; gap: 12px; }
  .step-num { min-width: 0; }
}
/* Step list on navy bands */
.band-navy .step, .band-navy-deep .step { border-color: var(--border-on-dark); }
.band-navy .step-body h3, .band-navy-deep .step-body h3 { color: #fff; }
.band-navy .step-body p, .band-navy-deep .step-body p { color: var(--fg-on-dark-muted); }

/* ============================================================
   Full-width parallax photo band
   ============================================================ */
.parallax-band {
  position: relative; width: 100%; overflow: hidden;
  height: clamp(360px, 52vh, 620px);
  background: var(--navy) url('assets/photos/peffmed-5630-web-mrb4f4rw.webp') center 55% / cover no-repeat fixed;
}
.parallax-band-img { display: none; }
.parallax-band-staff {
  background: var(--navy);
  height: clamp(240px, 34vw, 560px);
}
.parallax-band-staff .parallax-band-img {
  display: block;
  position: absolute;
  top: -24%; left: 0; right: 0;
  height: 148%;
  background: url('assets/parallax-fitness.webp') center 38% / cover no-repeat;
  will-change: transform;
}
body[data-route="location"] .parallax-band-staff .parallax-band-img {
  background-image: url('assets/photos/peffmed-6699-web-mraxgoj1.webp');
  background-position: center 62%;
}
body[data-route="meet-shawn"] .parallax-band-staff .parallax-band-img {
  background-image: url('assets/photos/peffmed-5965-webb-mrb0b04x.webp');
  background-position: center 2%;
}
@media (prefers-reduced-motion: reduce) {
  .parallax-band-staff .parallax-band-img { top: 0; height: 100%; transform: none !important; }
}
.band-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: clamp(48px, 8vh, 96px) clamp(24px, 6vw, 80px) clamp(20px, 3vh, 32px);
  background: linear-gradient(to top, rgba(8, 30, 54, 0.78) 0%, rgba(8, 30, 54, 0) 100%);
  color: var(--white);
  z-index: 1;
}
.band-caption-name { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -0.005em; }
.band-caption-role { font-size: var(--t-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  .parallax-band { background-attachment: scroll; }
}
@media (max-width: 900px) {
  /* iOS/Android ignore fixed backgrounds — fall back to a clean scroll */
  .parallax-band { background-attachment: scroll; }
  body[data-route="meet-shawn"] .parallax-band-staff { display: none; }
}

/* ============================================================
   Photo lightbox (location gallery)
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 26, 41, .92);
  opacity: 0;
  transition: opacity 240ms var(--ease);
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox-stage {
  margin: 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox-stage img {
  max-width: min(1100px, 100%);
  max-height: min(82vh, 82dvh);
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}
.lightbox-stage figcaption {
  font-size: var(--t-small); color: rgba(255,255,255,.75);
  font-family: var(--font-serif); font-style: italic;
  text-align: center;
}
.lightbox-stage figcaption:empty { display: none; }
.lightbox-close {
  position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px);
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.lightbox-arrow:hover:not(:disabled) { background: rgba(255,255,255,.22); }
.lightbox-arrow:disabled { opacity: .25; cursor: default; }
.lightbox-arrow svg { width: 20px; height: 20px; }
/* filled gallery photos read as clickable */
.gallery-slide image-slot[data-filled] { cursor: zoom-in; }
@media (max-width: 680px) {
  /* arrows overlay the photo so the image gets the full width */
  .lightbox { padding: 16px; }
  .lightbox-arrow { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 2; }
  .lightbox-arrow.prev { left: 20px; }
  .lightbox-arrow.next { right: 20px; }
  .lightbox-stage img { max-height: 74dvh; }
}

/* ============================================================
   Testimonials page
   ============================================================ */
.testi-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.testi-section { overflow-x: clip; }
.testi-row { align-items: center; position: relative; padding-block: clamp(48px, 7vw, 96px); }
.testi-row::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; z-index: 0; }
.testi-row:nth-child(odd)::before { background: #fff; }
.testi-row:nth-child(even)::before { background: #f6f3ef; }
.testi-row > * { position: relative; z-index: 1; }
.testi-row.reverse .testi-logo { order: 2; }
.testi-logo {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 4vw, 56px);
}
.testi-logo image-slot { width: 100%; height: 100%; }
.testi-mark { font-family: var(--font-serif); font-size: 3.25rem; color: var(--teal); line-height: 0.4; display: block; margin-bottom: 12px; }
.testi-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.42; color: var(--navy);
  margin: 0 0 var(--space-5); max-width: 34ch;
}
.testi-cite {
  font-family: var(--font-sans); font-size: var(--t-small);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--mauve); margin: 0 0 var(--space-6);
}
/* rating block atop a testimonial */
.testi-rating { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.testi-rating .score {
  font-family: var(--font-sans); font-weight: var(--w-bold);
  font-size: clamp(2.4rem, 5vw, 3.25rem); line-height: 1; color: var(--ink);
}
.rating-meta { display: flex; flex-direction: column; gap: 5px; }
.testi-stars { display: inline-flex; gap: 2px; }
.testi-stars svg { width: 22px; height: 22px; display: block; }
.rating-count { font-family: var(--font-sans); font-size: var(--t-small); color: var(--fg-muted); }
@media (max-width: 760px) {
  .testi-row.reverse .testi-logo { order: 0; }
  .testi-quote { max-width: none; }
  .testi-logo { padding-top: clamp(14px, 3vw, 22px); padding-bottom: clamp(14px, 3vw, 22px); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 120px; gap: 40px; }
  .hero-visual { aspect-ratio: 16 / 11; max-width: 560px; }
  .menu-overlay { grid-template-columns: 1fr; }
  .menu-aside { display: none; }
  /* menu must scroll on short phone screens */
  .menu-nav { align-self: stretch; overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: 100dvh; }
  .grid-split, .grid-aside { grid-template-columns: 1fr; }
  /* PEFF acronym becomes a one-at-a-time carousel */
  .acronym-viewport { overflow: hidden; }
  .acronym { display: flex; flex-wrap: nowrap; transition: transform 480ms var(--ease); }
  .acro-item { flex: 0 0 100%; border-right: 0; padding-inline: 4px; }
  .acro-tabs { display: flex; justify-content: flex-start; gap: 14px; margin: 0 0 clamp(28px, 4vw, 40px); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .menu-toggle .label { display: none; }
  .coming-soon-tag { display: none; }
  .grid-2, .grid-3, .diff-grid, .form-grid, .proof-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-tag { display: none; }
  .portal-btn span.plabel { display: inline; }
  .faq-a-inner { padding-right: 8px; }

  /* tighter section rhythm on phones */
  .section { padding-block: clamp(56px, 14vw, 88px); }
  .section-sm { padding-block: clamp(44px, 11vw, 72px); }
  .page-head { padding: 116px 0 clamp(36px, 9vw, 56px); }

  /* hero */
  .hero-inner { padding: 120px 0 72px; }
  .hero-image .hero-statement { max-width: 100%; }

  /* comfortable headings + measures */
  .sec-head { margin-bottom: clamp(28px, 7vw, 44px); }
  .lead { font-size: clamp(1.15rem, 4.6vw, 1.4rem); }

  /* FAQ answers reveal taller (longer copy wraps on narrow screens) */
  .faq.open .faq-a { max-height: 520px; }
  .faq-a-inner { padding-left: 2px; padding-right: 2px; }
  .faq-q { gap: 16px; }

  /* pull quote */
  .pullquote blockquote { max-width: 100%; }

  /* contact info + form breathing room */
  .contact-line .v { font-size: var(--t-h4); }
}

@media (max-width: 460px) {
  /* keep the fixed chrome compact so it never crowds */
  .top-left { padding: 16px 18px; padding-left: calc(18px + env(safe-area-inset-left)); }
  .top-right { padding: 14px 16px; padding-right: calc(16px + env(safe-area-inset-right)); gap: 10px; }
  .portal-btn { padding: 11px 16px; }
  .brand img { height: 28px; }

  /* large serif display lines scale down gracefully */
  .hero-image h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .page-head .display { font-size: clamp(2.2rem, 10vw, 3rem); }
  .title { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }

  /* acronym carousel: letters + card fit small screens */
  .acro-tab { width: 50px; height: 50px; font-size: 1.6rem; }
  .acro-letter { font-size: clamp(3rem, 22vw, 4.4rem); }

  /* staff arrows stay tappable, dots centered */
  .staff-controls { gap: 16px; }

  /* footer legal wraps cleanly */
  .footer-bottom { flex-direction: column; gap: 10px; }
}
