/* ─────────────────────────────────────────────────────────────────
   Precision Rehab — Design System
   ───────────────────────────────────────────────────────────────── */

/* 1. TOKENS
─────────────────────────────────────────────────────────────────── */
:root {
  --bg:      #E3E0D7;
  --dark:    #31302B;
  --muted:   #847F73;
  --accent:  #00A964;
  --border:  #FCFBF8;
  --line:    2px;                       /* single source of truth for every dividing line */
  --b:       var(--line) solid var(--border);

  --frame:   72px;
  --radius:  0px;

  /* Typography */
  --f-head: 'Syne', sans-serif;
  --f-body: 'Poppins', sans-serif;

  /* Spacing (8-unit grid) */
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-14:  56px;
  --sp-16:  64px;
  --sp-18:  72px;
  --sp-20:  80px;
  --sp-24:  96px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. RESET
─────────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img, video { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* 3. TYPOGRAPHY
─────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Display — hero H1 */
.t-display {
  font-size: clamp(52px, 7.5vw, 100px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
/* Headline — page H1 / major H2 */
.t-h1 {
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
/* Section H2 */
.t-h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
/* Card H3 */
.t-h3 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* Large stat */
.t-stat {
  font-family: var(--f-head);
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--accent);
}
/* Overline */
.ovl {
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
/* Body sizes */
.body-xl { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.65; }
.body-lg { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7; color: var(--muted); }
.body-sm { font-size: 14px; line-height: 1.6; color: var(--muted); }
/* Pull quote */
.pull {
  font-family: var(--f-head);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
/* Muted text */
.muted { color: var(--muted); }
/* Accent text */
.accent { color: var(--accent); }

/* 4. LAYOUT
─────────────────────────────────────────────────────────────────── */
/* The outer page frame — drawn ONLY by the ::after overlay (no real border) so the line is
   never doubled, sits perfectly aligned with the nav frame, and always renders on top. */
.page {
  position: relative;
  margin: 0 var(--frame) var(--frame);
}
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: var(--b);
  border-right: var(--b);
  border-bottom: var(--b);
  pointer-events: none;
  z-index: 60;
}
/* Section separator */
.sep {
  position: relative;
  border-top: var(--b);
  z-index: 2;
}

/* Prose container for text-heavy sections */
.prose {
  max-width: 640px;
}

/* 5. NAVIGATION
─────────────────────────────────────────────────────────────────── */
.nav {
  /* Scrolls with the page — sits at the top of the page frame */
  position: relative;
  z-index: 70;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--bg);
  margin: var(--frame) var(--frame) 0;
}
/* Nav frame drawn as a single overlay ON TOP of everything inside (incl. the dark CTA button),
   so the rules read as continuous lines the button can never interrupt — and never doubled. */
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border: var(--b);
  pointer-events: none;
  z-index: 5;
}
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 var(--sp-8);
  border-right: var(--b);
  flex-shrink: 0;
}
.nav-logo img { height: 13px; width: auto; }
/* Inline link bar — replaced by the hamburger at every width so the bar never overflows */
.nav-links {
  display: none;
  align-items: center;
  height: 64px;
  padding: 0 var(--sp-6);
  gap: 20px;
  flex: 1;
}
.nav-links a {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
  padding: 4px 0;
  position: relative;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a.active { color: var(--dark); }
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 64px;
  border-left: var(--b);
}
/* Hamburger — the universal nav control at every width */
.nav-hamburger {
  display: flex;
  width: 64px;
  height: 64px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* inset line instead of a real border so the bars stay centered in the full 64px cell */
  box-shadow: inset var(--line) 0 0 0 var(--border);
}
.nav-hamburger span {
  width: 22px;
  height: var(--line);
  background: var(--dark);
}
.nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Mobile nav drawer — fixed, covers screen below nav */
.nav-drawer {
  /* Sits INSIDE the page frame — left/right rules continue the frame straight down from the nav */
  position: fixed;
  top: calc(var(--frame) + 64px);
  left: var(--frame);
  right: var(--frame);
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 0;
  border-left: var(--b);
  border-right: var(--b);
  overflow-y: auto;
}
.nav-drawer.open {
  display: flex;
}
.nav-drawer a {
  font-family: var(--f-head);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--dark);
  /* text indented to align under the logo; the border-bottom still spans the full frame width */
  padding: var(--sp-4) var(--sp-8);
  border-bottom: var(--b);
}
.nav-drawer a:hover { color: var(--accent); }

/* Small phones: drop the inline CTA so the logo + burger always fit (CTA lives in the drawer) */
@media (max-width: 480px) {
  .nav-cta { display: none; }
  /* with the CTA gone, push the burger to the right edge instead of leaving a gap */
  .nav-hamburger { margin-left: auto; }
}

/* 6. BUTTONS
─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 var(--sp-8);
  height: 52px;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--dark);
  color: var(--border);
}
.btn-primary:hover { background: var(--accent); color: var(--dark); }

.btn-accent {
  background: var(--accent);
  color: var(--dark);
}
.btn-accent:hover { background: var(--dark); color: var(--border); }

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: var(--b);
}
.btn-ghost:hover { background: var(--dark); color: var(--border); }

.btn-ghost-inv {
  background: transparent;
  color: var(--border);
  border: 2px solid rgba(252, 251, 248, 0.3);
}
.btn-ghost-inv:hover { background: var(--border); color: var(--dark); }

.btn svg { width: 16px; height: 16px; stroke-width: 2; }
.btn-icon { padding: 0; width: 52px; justify-content: center; }

/* Nav CTA button */
.btn-nav {
  height: 64px;
  padding: 0 36px;
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--border);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s var(--ease-out), color 0.25s;
  white-space: nowrap;
}
.btn-nav:hover { background: var(--accent); color: var(--dark); }

/* 7. PANEL GRID SYSTEM
─────────────────────────────────────────────────────────────────── */
.panel-grid {
  display: grid;
  background: var(--border);
  gap: var(--line);
}
.panel-grid > * {
  background: var(--bg);
}
/* Dark panel variant */
.panel-dark {
  background: var(--dark);
  color: var(--border);
}
.panel-dark .ovl { color: var(--accent); }
.panel-dark .body-lg { color: rgba(252, 251, 248, 0.6); }
.panel-dark .muted { color: rgba(252, 251, 248, 0.45); }
.panel-dark .btn-ghost {
  color: var(--border);
  border-color: rgba(252, 251, 248, 0.3);
}
.panel-dark .btn-ghost:hover { background: var(--border); color: var(--dark); }

/* Common panel padding */
.p-panel  { padding: var(--sp-18); }
.p-panel-sm { padding: var(--sp-12); }
.p-panel-lg { padding: clamp(40px, 6vw, 96px); }

/* 8. HERO SECTION
─────────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100dvh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--border);
  gap: var(--line);
}
.hero-content {
  background: var(--bg);
  padding: clamp(40px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(40px, 5vw, 80px);
}
.hero-image {
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-eyebrow { margin-bottom: var(--sp-6); }
.hero-headline { margin-bottom: var(--sp-6); }
.hero-sub { margin-bottom: var(--sp-10); max-width: 520px; }
.hero-ctas { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
/* Hero stats — spans full hero width as a bottom row */
.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: var(--line);
}
.hero-stat {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 48px);
}
.hero-stat .t-stat { margin-bottom: var(--sp-3); }
.hero-stat-label {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Shared stats grid — used on about, locations, and any full-width stats section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: var(--line);
}

/* Figure accent strip (image · statement · image). On mobile the statement must
   not get crushed into a narrow column — it goes full-width on top, images below. */
.figure-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: var(--line);
  overflow: hidden;
}
.stats-cell {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 48px);
}
.stats-cell .t-stat { margin-bottom: var(--sp-3); }
.stats-label {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Spacer for fixed nav */
.nav-spacer { height: 0; display: none; } /* nav sits inside .page frame — padding-top on .page handles offset */

/* 9. COMMON SECTION PATTERNS
─────────────────────────────────────────────────────────────────── */
/* Two-up: 2 equal columns */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--border);
  gap: var(--line);
}
.two-up > *:not(.panel-dark) { background: var(--bg); }

/* Three-up: 3 equal columns */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: var(--line);
}
.three-up > *:not(.panel-dark) { background: var(--bg); }

/* Four-up: 4 equal columns */
.four-up {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--border);
  gap: var(--line);
}
.four-up > *:not(.panel-dark) { background: var(--bg); }

/* Sidebar layout: 40% label / 60% content */
.sidebar-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--border);
  gap: var(--line);
}
.sidebar-grid > *:not(.panel-dark) { background: var(--bg); }

/* Sidebar reversed: 60% content / 40% label */
.sidebar-grid-rev {
  display: grid;
  grid-template-columns: 7fr 5fr;
  background: var(--border);
  gap: var(--line);
}
.sidebar-grid-rev > *:not(.panel-dark) { background: var(--bg); }

/* When the sidebar grid carries its own panel padding, move that padding onto
   the cells so the divider reads as a hairline — not a near-white frame. */
.sidebar-grid.p-panel,
.sidebar-grid-rev.p-panel { padding: 0; }
.sidebar-grid.p-panel > *,
.sidebar-grid-rev.p-panel > * { padding: clamp(40px, 5vw, 72px); }

/* Heading sidebar (narrow label, wide content) */
.head-grid {
  display: grid;
  grid-template-columns: 3fr 5fr;
  background: var(--border);
  gap: var(--line);
}
.head-grid > *:not(.panel-dark) { background: var(--bg); }

/* Stats row */
.stats-row {
  display: grid;
  background: var(--border);
  gap: var(--line);
}
.stat-block {
  background: var(--bg);
  padding: var(--sp-12) var(--sp-18);
  border-right: var(--b);
}
.stat-block:last-child { border-right: none; }
.stat-label { font-size: 12px; letter-spacing: 0.05em; color: var(--muted); margin-top: 6px; }

/* Full-width image strip */
.image-strip {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--dark);
}
.image-strip img {
  width: 100%;
  height: clamp(280px, 40vw, 560px);
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
}
.image-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(49,48,43,0.6) 0%, transparent 60%);
  display: flex;
  align-items: center;
  padding: var(--sp-18);
}

/* 10. PROOF / LEDGER COMPONENTS
─────────────────────────────────────────────────────────────────── */
/* Numbered feature block */
.feature-num {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.feature-title {
  font-family: var(--f-head);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
  line-height: 1.2;
}

/* Ledger (industry claims vs proof) */
.ledger { border-top: var(--b); }
.ledger-header {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  background: var(--border);
  gap: var(--line);
}
.ledger-header > div {
  background: var(--bg);
  padding: var(--sp-4) var(--sp-8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ledger-header > div.right { color: var(--accent); }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  background: var(--border);
  gap: var(--line);
  border-top: var(--b);
}
.ledger-claim {
  background: var(--bg);
  padding: var(--sp-8) var(--sp-8);
  font-family: var(--f-head);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.ledger-claim s { text-decoration-color: var(--muted); }
.ledger-arrow {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.ledger-proof {
  background: var(--bg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ledger-proof-num {
  font-family: var(--f-head);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
.ledger-proof-num sup {
  font-size: 0.45em;
  vertical-align: super;
  letter-spacing: 0;
}
.ledger-proof-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* 11. CHIPS / TAGS
─────────────────────────────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 var(--sp-4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: var(--b);
  color: var(--dark);
  transition: background 0.2s, color 0.2s;
  cursor: default;
}
.chip:hover, .chip-link:hover {
  background: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
}
.chip-link { cursor: pointer; }
a.chip:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }

/* 12. FORM
─────────────────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* vertical dividers come from the column gap; horizontal dividers come from each
     field's border-top. Keep row-gap at 0 so horizontal lines aren't doubled (gap + border). */
  column-gap: var(--line);
  row-gap: 0;
  background: var(--border);
  margin-bottom: 2px;
}
.form-field {
  background: var(--bg);
  border-top: var(--b);
  padding: var(--sp-4) var(--sp-6) var(--sp-3);
}
.form-field:first-child, .form-field.full {
  grid-column: 1 / -1;
}
.form-field.full { grid-column: 1 / -1; }
.form-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-size: 15px;
  color: var(--dark);
  background: transparent;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
}
.form-textarea { resize: none; height: 80px; }
.form-select { appearance: none; cursor: pointer; }
.form-submit-row {
  background: var(--border);
  gap: var(--line);
  display: flex;
}
.form-submit-row > * { background: var(--bg); }

/* 13. FOOTER
─────────────────────────────────────────────────────────────────── */
.footer {
  border-top: var(--b);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  background: var(--border);
  gap: var(--line);
}
.footer-grid > * { background: var(--bg); padding: var(--sp-12) var(--sp-8); }
.footer-logo { padding: var(--sp-12) var(--sp-8); }
.footer-logo img { height: 12px; margin-bottom: var(--sp-4); }
.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--sp-6);
}
.footer-links-head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  font-size: 14px;
  color: var(--dark);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--line);
  margin-bottom: var(--sp-4);
}
.footer-contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-contact-val {
  font-size: 14px;
  color: var(--dark);
  transition: color 0.2s;
}
.footer-contact-val:hover { color: var(--accent); }
.footer-bottom {
  border-top: var(--b);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-8);
}
.footer-bottom-text {
  font-size: 12px;
  color: var(--muted);
}
.footer-bottom-end {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 14. COVERAGE / LOCATIONS
─────────────────────────────────────────────────────────────────── */
.county-list { display: flex; flex-direction: column; gap: 0; }
.county-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: var(--b);
  font-size: 15px;
}
.county-item:last-child { border-bottom: none; }
.county-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Region contact */
.region-block { margin-bottom: var(--sp-8); }
.region-head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-3);
}
.region-phone {
  font-family: var(--f-head);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dark);
  transition: color 0.2s;
}
.region-phone:hover { color: var(--accent); }
/* On dark panels the phone numbers must be light, not the near-invisible dark ink */
.panel-dark .region-phone { color: var(--border); }
.panel-dark .region-phone:hover { color: var(--accent); }
.region-email {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
  transition: color 0.2s;
}
.region-email:hover { color: var(--dark); }

/* 15. TESTIMONIAL
─────────────────────────────────────────────────────────────────── */
.testimonial-quote {
  font-family: var(--f-head);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  position: relative;
  padding-left: var(--sp-8);
}
.testimonial-quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
}
.testimonial-source {
  font-size: 13px;
  color: var(--muted);
  margin-top: var(--sp-4);
  padding-left: var(--sp-8);
}

/* 16. PROGRESS BAR
─────────────────────────────────────────────────────────────────── */
.progress-bar { display: none; }

/* 17. NO ANIMATIONS — all removed per design decision */

/* Ensure any [data-reveal] elements are always fully visible */
[data-reveal], [data-reveal="left"], [data-reveal="right"],
[data-reveal="scale"], [data-reveal="none"] {
  opacity: 1;
  transform: none;
}

/* img-reveal: no scale effect */
.img-reveal { overflow: hidden; }
.img-reveal img { transform: none; }

/* line-draw: always full width */
.line-draw { width: 100%; height: 2px; background: var(--accent); }

/* Accent underline link */
.link-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* 18. SPECIALTY PAGE PATTERNS
─────────────────────────────────────────────────────────────────── */
.spec-hero {
  min-height: 70dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--border);
  gap: var(--line);
}
.spec-hero-content {
  background: var(--bg);
  padding: var(--sp-18) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.spec-hero-content .ovl     { margin-bottom: var(--sp-4); }
.spec-hero-content .t-h1    { margin-bottom: var(--sp-6); }
.spec-hero-content .body-xl { margin-bottom: var(--sp-8); max-width: 34ch; }
.spec-hero-image {
  background: var(--bg);
  overflow: hidden;
}
.spec-hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.spec-list li {
  padding: var(--sp-4) 0;
  border-bottom: var(--b);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 15px;
}
.spec-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* 19. ABOUT PAGE
─────────────────────────────────────────────────────────────────── */
.leader-card {
  padding: var(--sp-12) var(--sp-8);
  border-top: var(--b);
}
.leader-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.leader-name {
  font-family: var(--f-head);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}
/* Leadership portraits. Full-bleed: the photo runs edge to edge (top, bottom, left) inside the card, like the other image panels on the site.
   Margin is zero on every side, so it stays concentric. The 2px bone card line is the only frame. Text keeps 32px padding. */
.leader-card-photo {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;
  padding: 0;
}
.leader-photo {
  position: relative;
  width: 260px;
  min-height: 325px;
  background: var(--dark);
  overflow: hidden;
}
.leader-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.leader-card-photo .leader-body {
  align-self: center;
  padding: var(--sp-8);
}
/* Stack the portrait above the text where the card is narrow: 901-1340px (sidebar layout) and up to 780px.
   Portrait spans the full card width at 4:5, flush to the top, left and right. */
@media (min-width: 901px) and (max-width: 1340px), (max-width: 780px) {
  .leader-card-photo { grid-template-columns: 1fr; }
  .leader-photo { width: 100%; min-height: 0; aspect-ratio: 4 / 5; }
}

/* 20. HOW IT WORKS
─────────────────────────────────────────────────────────────────── */
.step-num {
  font-family: var(--f-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.step-title {
  font-family: var(--f-head);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}

/* 20b. OVERFLOW SAFETY
   Flex/grid text cells default to min-width:auto (= content width) and refuse to
   shrink, which forces horizontal scroll on small screens. Let them shrink and wrap. */
.hero-content, .spec-hero-content,
.sidebar-grid > *, .sidebar-grid-rev > *,
.two-up > *, .three-up > *, .four-up > *,
.ledger-header > *, .ledger-row > * { min-width: 0; }
h1, h2, h3, h4, p, .pull, .ledger-proof-desc { overflow-wrap: break-word; }

/* 21. RESPONSIVE
─────────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --frame: 40px; }
  .four-up { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --frame: 24px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { min-height: 50dvh; }
  .two-up { grid-template-columns: 1fr; }
  .sidebar-grid { grid-template-columns: 1fr; }
  .sidebar-grid-rev { grid-template-columns: 1fr; }
  .head-grid { grid-template-columns: 1fr; }
  .three-up { grid-template-columns: 1fr; }
  .spec-hero { grid-template-columns: 1fr; min-height: auto; }
  .spec-hero-image { min-height: 50dvh; }
  /* Figure strip: statement full-width on top, the two images side-by-side below */
  .figure-strip { grid-template-columns: 1fr 1fr; }
  .figure-strip > .panel-dark { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 600px) {
  :root { --frame: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .four-up { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; }
  .p-panel { padding: var(--sp-8); }
  .p-panel-lg { padding: var(--sp-10); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  /* Stat rows stack on phones instead of squeezing 3 columns into the viewport */
  .hero-stats, .stats-grid { grid-template-columns: 1fr; }
  /* Reclaim a little input width so single-line placeholders aren't clipped */
  .form-field { padding-left: var(--sp-3); padding-right: var(--sp-3); }
  /* Proof ledger on phones: drop the cramped arrow column and give the proof side
     room so the word-phrases ("Same Day", "On Record") read cleanly */
  .ledger-header, .ledger-row { grid-template-columns: 1fr 1.25fr; }
  .ledger-arrow, .ledger-header .mid { display: none; }
  .ledger-claim { padding: var(--sp-4); font-size: 16px; }
  .ledger-proof { padding: var(--sp-4); }
  .ledger-header > div { padding: var(--sp-3) var(--sp-4); font-size: 10px; }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="left"], [data-reveal="right"], [data-reveal="scale"] {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .split-line .split-line-inner { transform: none !important; transition: none !important; }
  .img-reveal img { transform: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ───────────────────────────────────────────────────────────────────
   Floating quick-actions widget (FAB / speed-dial)
─────────────────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 75;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
  pointer-events: none;            /* only the buttons are interactive */
}
.fab-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-3);
}
.fab-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 var(--sp-6);
  background: var(--border);
  color: var(--dark);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: var(--line) solid transparent;
  box-shadow: 0 6px 22px rgba(49, 48, 43, 0.16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out),
              background .15s ease, color .15s ease;
}
.fab-item:hover { background: var(--dark); color: var(--border); }
.fab-ic { display: inline-flex; color: var(--accent); flex: none; }
.fab-ic svg { width: 18px; height: 18px; stroke-width: 2; }
.fab-item:hover .fab-ic { color: var(--accent); }

.fab-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 var(--sp-6);
  background: var(--dark);
  color: var(--border);
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(49, 48, 43, 0.26);
  transition: background .15s ease, color .15s ease;
}
.fab-toggle:hover { background: var(--accent); color: var(--dark); }
.fab-toggle .fab-ic { color: var(--accent); }
.fab-toggle:hover .fab-ic { color: var(--dark); }
.fab-toggle .fab-ic svg { width: 20px; height: 20px; }

/* icon / label swap between closed and open */
.fab-toggle .ic-open,
.fab-toggle .lbl-open { display: none; }
.fab.open .fab-toggle .ic-closed,
.fab.open .fab-toggle .lbl-closed { display: none; }
.fab.open .fab-toggle .ic-open { display: inline-flex; }
.fab.open .fab-toggle .lbl-open { display: inline; }

/* open state */
.fab.open .fab-item {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab.open .fab-item:nth-last-child(1) { transition-delay: .02s; }
.fab.open .fab-item:nth-last-child(2) { transition-delay: .06s; }
.fab.open .fab-item:nth-last-child(3) { transition-delay: .10s; }
.fab.open .fab-item:nth-last-child(4) { transition-delay: .14s; }

/* keyboard focus ring, on-brand */
.fab-toggle:focus-visible,
.fab-item:focus-visible {
  outline: var(--line) solid var(--accent);
  outline-offset: 3px;
}

/* hide the widget while the mobile nav drawer is open */
.nav.open ~ .fab { opacity: 0; visibility: hidden; pointer-events: none; }

@media (max-width: 600px) {
  .fab-item { font-size: 12px; height: 48px; padding: 0 var(--sp-4); }
  .fab-toggle { height: 52px; padding: 0 var(--sp-4); }
}
