/* =========================================================
   Ramirez Center for Facial & Reconstructive Surgical Arts — Design System
   Midnight navy + brand gold + cream
   Display: Cinzel (free Trajan substitute)  ·  Body: Montserrat
   ========================================================= */

:root {
  /* Palette — Brand: Midnight Navy + Gold (logo packet, LogoTournament #350504, 2026-06) */
  --bg:              #0E1B2E;
  --bg-elevated:     #182840;
  --bg-deep:         #081425;    /* brand deep navy — Pantone Black 6 C */
  --surface:         #FBF6E4;    /* brand cream (#FEFDDF), softened a touch to cut glare */
  --surface-warm:    #F1E7C9;
  --gold:            #D09F48;     /* brand primary gold — Pantone 7407 */
  --gold-bright:     #E7BC5C;     /* brand light gold — Pantone 141 */
  --gold-soft:       #C18A36;     /* brand gold — Pantone 7510 */
  --gold-on-light:   #7A5A1B;    /* a11y: ADA-safe deep gold for text on paper. Brand mid-bronze #93682C
                                    only reaches ~4.1:1 on --surface-warm (fails AA); this clears 4.5:1 on
                                    both --surface and --surface-warm (WCAG 1.4.3). */
  --oxblood:         #7E2B30;
  --oxblood-deep:    #531A1E;

  --on-dark:         #EAEEF6;
  --on-dark-mute:    rgba(234, 238, 246, 0.68);
  --on-dark-dim:     rgba(234, 238, 246, 0.60);    /* a11y: ≥4.5:1 on --bg-deep */
  --on-light:        #0E1B2E;
  --on-light-mute:   rgba(14, 27, 46, 0.66);
  --on-light-dim:    rgba(14, 27, 46, 0.64);    /* a11y: ≥4.5:1 on --surface & --surface-warm */

  --rule-dark:       rgba(208, 159, 72, 0.22);
  --rule-light:      rgba(14, 27, 46, 0.14);
  --rule-gold:       rgba(208, 159, 72, 0.55);

  /* Type — brand pairing: Cinzel (free Trajan substitute) for display, Montserrat for body.
     Display caps face is for SHORT elements only; running prose uses --sans (no body serif in brand). */
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --serif:   Georgia, serif;    /* legacy fallback only — superseded by --display/--sans */
  --sans:    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --gutter-mobile: 20px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Direction A: Warm Charcoal (original default, now optional) ---------- */
html[data-palette="charcoal"] {
  --bg:              #1A1510;
  --bg-elevated:     #221C16;
  --bg-deep:         #14100C;
  --surface:         #F5EFE4;
  --surface-warm:    #EDE4D2;
  --gold:            #C8903A;
  --gold-bright:     #D4A843;
  --gold-soft:       #A47628;
  --oxblood:         #5C1A1F;
  --oxblood-deep:    #3D1115;
  --on-dark:         #EFE7D8;
  --on-dark-mute:    rgba(239, 231, 216, 0.62);
  --on-dark-dim:     rgba(239, 231, 216, 0.38);
  --on-light:        #1A1510;
  --on-light-mute:   rgba(26, 21, 16, 0.62);
  --on-light-dim:    rgba(26, 21, 16, 0.38);
  --rule-dark:       rgba(200, 144, 58, 0.22);
  --rule-light:      rgba(26, 21, 16, 0.14);
  --rule-gold:       rgba(200, 144, 58, 0.55);
}

/* ---------- Direction B: Burgundy-Black ---------- */
html[data-palette="burgundy"] {
  --bg:              #1F0F12;
  --bg-elevated:     #2A1418;
  --bg-deep:         #16080B;
  --oxblood:         #6E1F25;
}

/* ---------- Direction C: Mocha (lifted warm brown) ---------- */
html[data-palette="mocha"] {
  --bg:              #2A2018;
  --bg-elevated:     #352920;
  --bg-deep:         #221810;
  --on-dark:         #F2EADA;
  --on-dark-mute:    rgba(242, 234, 218, 0.68);
  --on-dark-dim:     rgba(242, 234, 218, 0.42);
  --rule-dark:       rgba(212, 168, 67, 0.22);
}

/* ---------- Direction D: Stone (mid-tone warm taupe) ---------- */
html[data-palette="stone"] {
  --bg:              #3F3527;
  --bg-elevated:     #4A4031;
  --bg-deep:         #332A1E;
  --on-dark:         #F8F1DF;
  --on-dark-mute:    rgba(248, 241, 223, 0.74);
  --on-dark-dim:     rgba(248, 241, 223, 0.5);
  --gold:            #E6B660;
  --gold-bright:     #F2C770;
  --gold-soft:       #B7842C;
  --rule-dark:       rgba(230, 182, 96, 0.28);
}

/* ---------- Direction D.5: Clay (lifted dark-mode warm taupe — between stone & sand) ---------- */
html[data-palette="clay"] {
  --bg:              #5C4A36;
  --bg-elevated:     #6B5740;
  --bg-deep:         #4A3B2A;
  --on-dark:         #FBF3DD;
  --on-dark-mute:    rgba(251, 243, 221, 0.78);
  --on-dark-dim:     rgba(251, 243, 221, 0.52);
  --gold:            #EDC074;
  --gold-bright:     #F5CE85;
  --gold-soft:       #C2904A;
  --rule-dark:       rgba(237, 192, 116, 0.30);
  --rule-gold:       rgba(237, 192, 116, 0.55);
}

/* ---------- Direction D.75: Sand (light-mode, deeper tan — between clay & cream) ----------
   Inherits cream's element overrides above (selectors were grouped together) and just
   overrides the underlying tokens to a richer, more saturated paper tone. */
html[data-palette="sand"] {
  --bg:              #D7C7A2;
  --bg-elevated:     #CDBC92;
  --bg-deep:         #B8A57A;
  --surface:         #E5D7B0;
  --surface-warm:    #DCCB9A;
  --on-dark:         #2A2018;
  --on-dark-mute:    rgba(42, 32, 24, 0.72);
  --on-dark-dim:     rgba(42, 32, 24, 0.46);
  --rule-dark:       rgba(78, 52, 24, 0.22);
  --rule-gold:       rgba(140, 92, 28, 0.55);
  --gold:            #8E5F1C;
  --gold-bright:     #A47324;
  --gold-soft:       #6E4A12;
}
/* Sand-specific tints that differ from cream */
html[data-palette="sand"] .nav { background: rgba(229, 215, 176, 0.90); }
html[data-palette="sand"] .nav-services-menu { background: #E5D7B0; }
html[data-palette="sand"] .track-card { background: #E0CF9F; }
html[data-palette="sand"] .track-card:hover { background: #D6C28F; }

/* ---------- Direction E: Cream (light-mode flip) ---------- */
html[data-palette="cream"], html[data-palette="sand"] {
  --bg:              #ECE3D0;
  --bg-elevated:     #E1D6BE;
  --bg-deep:         #D7CAAE;
  --surface:         #F8F2E2;
  --surface-warm:    #F2EAD3;
  --on-dark:         #2A2018;
  --on-dark-mute:    rgba(42, 32, 24, 0.70);
  --on-dark-dim:     rgba(42, 32, 24, 0.45);
  --rule-dark:       rgba(92, 26, 31, 0.18);
  --rule-gold:       rgba(164, 118, 40, 0.55);
  --gold:            #A47628;          /* darker gold for contrast on cream */
  --gold-bright:    #B7842C;
  --gold-soft:       #8B5E1A;
}
/* Cream-mode adjustments to elements that assumed a dark bg */
html[data-palette="cream"] .nav, html[data-palette="sand"] .nav {
  background: rgba(248, 242, 226, 0.88);
  border-bottom-color: rgba(92, 26, 31, 0.20);
}
html[data-palette="cream"] .nav-brand-name, html[data-palette="sand"] .nav-brand-name,
html[data-palette="cream"] .nav-link, html[data-palette="sand"] .nav-link,
html[data-palette="cream"] .nav-services-trigger, html[data-palette="sand"] .nav-services-trigger,
html[data-palette="cream"] .nav-link:hover, html[data-palette="sand"] .nav-link:hover,
html[data-palette="cream"] .nav-link.active, html[data-palette="sand"] .nav-link.active,
html[data-palette="cream"] .nav-services:hover .nav-services-trigger, html[data-palette="sand"] .nav-services:hover .nav-services-trigger {
  color: #2A2018;
}
html[data-palette="cream"] .nav-brand-sub, html[data-palette="sand"] .nav-brand-sub { color: var(--gold-soft); }
html[data-palette="cream"] .hero::after, html[data-palette="sand"] .hero::after,
html[data-palette="cream"] .page-header::before, html[data-palette="sand"] .page-header::before {
  opacity: 0.18;
}
html[data-palette="cream"] .mobile-cta, html[data-palette="sand"] .mobile-cta {
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
html[data-palette="cream"] .footer, html[data-palette="sand"] .footer {
  background: var(--bg-deep);
  color: var(--on-dark);
}
html[data-palette="cream"] .footer h5, html[data-palette="sand"] .footer h5 { color: var(--gold-soft); }
html[data-palette="cream"] .footer ul a, html[data-palette="sand"] .footer ul a { color: rgba(42, 32, 24, 0.70); }
html[data-palette="cream"] .footer ul a:hover, html[data-palette="sand"] .footer ul a:hover { color: #2A2018; }
html[data-palette="cream"] .footer-brand-sub, html[data-palette="sand"] .footer-brand-sub { color: var(--gold-soft); }
html[data-palette="cream"] .footer-address, html[data-palette="sand"] .footer-address,
html[data-palette="cream"] .footer-bottom, html[data-palette="sand"] .footer-bottom { color: rgba(42, 32, 24, 0.70); }
html[data-palette="cream"] .footer-address a, html[data-palette="sand"] .footer-address a { color: #2A2018 !important; }
html[data-palette="cream"] .drawer, html[data-palette="sand"] .drawer { background: var(--bg-deep); }
html[data-palette="cream"] .drawer-link, html[data-palette="sand"] .drawer-link { color: #2A2018; }
html[data-palette="cream"] .drawer-link.sub, html[data-palette="sand"] .drawer-link.sub { color: rgba(42, 32, 24, 0.65); }
html[data-palette="cream"] .nav-services-menu, html[data-palette="sand"] .nav-services-menu {
  background: #F8F2E2;
  border-color: rgba(92, 26, 31, 0.18);
}
html[data-palette="cream"] .nav-services-item, html[data-palette="sand"] .nav-services-item { color: #2A2018; }
html[data-palette="cream"] .nav-services-item:hover, html[data-palette="sand"] .nav-services-item:hover { background: rgba(164, 118, 40, 0.08); }
html[data-palette="cream"] .pullquote, html[data-palette="sand"] .pullquote { color: #2A2018; }
html[data-palette="cream"] .track-card, html[data-palette="sand"] .track-card { background: #F8F2E2; }
html[data-palette="cream"] .track-card:hover, html[data-palette="sand"] .track-card:hover { background: #F2EAD3; }
html[data-palette="cream"] .track-card h3, html[data-palette="sand"] .track-card h3,
html[data-palette="cream"] .track-card ul li, html[data-palette="sand"] .track-card ul li { color: #2A2018; }
html[data-palette="cream"] .track-card p, html[data-palette="sand"] .track-card p { color: rgba(42, 32, 24, 0.70); }
html[data-palette="cream"] .stat-num, html[data-palette="sand"] .stat-num { color: var(--gold-soft); }
html[data-palette="cream"] .stat-label, html[data-palette="sand"] .stat-label { color: rgba(42, 32, 24, 0.70); }
html[data-palette="cream"] .stat, html[data-palette="sand"] .stat { border-color: rgba(92, 26, 31, 0.15); }
html[data-palette="cream"] .stats, html[data-palette="sand"] .stats { border-color: rgba(92, 26, 31, 0.15); }
html[data-palette="cream"] .diff-item h4, html[data-palette="sand"] .diff-item h4 { color: #2A2018; }
html[data-palette="cream"] .diff-item p, html[data-palette="sand"] .diff-item p { color: rgba(42, 32, 24, 0.70); }
html[data-palette="cream"] .nav-cta, html[data-palette="sand"] .nav-cta { color: #F8F2E2; }
html[data-palette="cream"] .mobile-cta a, html[data-palette="sand"] .mobile-cta a { color: #F8F2E2; }
html[data-palette="cream"] .btn-primary, html[data-palette="sand"] .btn-primary { color: #F8F2E2; }

/* ---------- Serif swaps ---------- */
html[data-serif="playfair"] {
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}
html[data-serif="eb-garamond"] {
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   Typography
   ========================================================= */
.display-xl,
.display-l,
.display-m,
.display-s,
.display-xs {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
.display-xl { font-size: clamp(56px, 9vw, 112px); letter-spacing: -0.02em; }
.display-l  { font-size: clamp(44px, 6vw, 76px); }
.display-m  { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
.display-s  { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.display-xs { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }

.italic { font-style: italic; }
.serif  { font-family: var(--display); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.eyebrow.on-light { color: var(--gold-on-light); }

/* "Coming soon" status pill for capabilities not yet live (e.g. on-site CBCT / 3D lab) */
.soon-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 11px;
  margin-left: 12px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  vertical-align: middle;
  white-space: nowrap;
}
.soon-badge.on-light { color: var(--gold-on-light); border-color: var(--gold-soft); }
/* Footer social links */
.footer-social { margin-top: 14px; font-size: 14px; }
.footer-social a { color: var(--on-dark-mute); text-decoration: none; }
.footer-social a:hover { color: var(--gold); }

.body-l { font-size: 19px; line-height: 1.55; }
.body   { font-size: 17px; line-height: 1.65; }
.body-s { font-size: 15px; line-height: 1.6; }
.caption {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
}

p { margin: 0 0 1em; }
p.lede {
  font-family: var(--sans);    /* running prose — brand body font, not the caps display face */
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  font-style: normal;    /* was italic — italic running text was hard to read (Alex, 2026-06-03) */
  color: var(--on-dark);
  font-weight: 400;
}

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--gutter-mobile); }
}

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.on-light  { background: var(--surface); color: var(--on-light); }
.on-dark   { background: var(--bg); color: var(--on-dark); }
.on-deep   { background: var(--bg-deep); color: var(--on-dark); }

.gold-rule {
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 28px;
}
.gold-rule.center { margin: 0 auto 28px; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 31, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-dark);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 720px) {
  .nav-inner { height: 64px; padding: 0 var(--gutter-mobile); }
}
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.nav-brand-name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--on-dark);
}
.nav-brand-sub {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 14px;
  color: var(--on-dark-mute);
  position: relative;
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--on-dark); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
}
.nav-services {
  position: relative;
}
.nav-services-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--on-dark-mute);
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.nav-services:hover .nav-services-trigger { color: var(--on-dark); }
.nav-services-trigger svg { width: 10px; height: 10px; stroke: currentColor; }
.nav-services-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  min-width: 280px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-dark);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
}
.nav-services:hover .nav-services-menu,
.nav-services:focus-within .nav-services-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-services-item {
  display: block;
  padding: 12px 14px;
  color: var(--on-dark);
  font-size: 14px;
  transition: background 160ms;
}
.nav-services-item:hover { background: rgba(212, 166, 86, 0.08); }
.nav-services-item-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--gold);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 200ms var(--ease);
}
.nav-cta:hover { background: var(--gold-bright); }

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--on-dark);
  position: relative;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: var(--on-dark);
  transition: transform 200ms var(--ease);
}
.nav-hamburger span::before { top: -7px; }
.nav-hamburger span::after  { top: 7px; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  padding: 0;
  transform: translateX(100%);
  transition: transform 340ms var(--ease-out);
  visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--gutter-mobile);
  border-bottom: 1px solid var(--rule-dark);
}
.drawer-close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark);
  font-size: 24px;
}
.drawer-body {
  flex: 1;
  padding: 32px var(--gutter-mobile);
  overflow-y: auto;
}
.drawer-link {
  display: block;
  padding: 18px 0;
  font-family: var(--display);
  font-size: 28px;
  color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.drawer-link.sub {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 0 12px 16px;
  color: var(--on-dark-mute);
  border-bottom: none;
}
.drawer-link.sub:before {
  content: "—";
  margin-right: 10px;
  color: var(--gold);
}
.drawer-footer {
  padding: 24px var(--gutter-mobile) 32px;
  border-top: 1px solid var(--rule-dark);
}

/* Sticky mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 60;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  padding: 14px var(--gutter-mobile) calc(14px + env(safe-area-inset-bottom));
  /* Hidden until scrolled past the hero (JS adds .is-visible) — avoids stacking with the hero CTA */
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms var(--ease), opacity 240ms var(--ease);
}
.mobile-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-size: 14px;
}
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 88px; } /* offset for sticky CTA */
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 220ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-ghost:hover { background: rgba(212, 166, 86, 0.08); }
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid var(--gold);
  transition: gap 220ms var(--ease), color 200ms;
}
.btn-text:hover { gap: 14px; color: var(--gold-bright); }
.btn-text.on-light { color: var(--oxblood); border-color: var(--oxblood); }
.btn-text.on-light:hover { color: var(--bg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(120px, 18vw, 220px) 0 clamp(96px, 14vw, 160px);
  overflow: hidden;
  /* Shaded OR photograph behind the brand lockup — navy scrim keeps the gold
     mark + white tagline well above AA contrast (checklist-flagged hero shot). */
  background:
    linear-gradient(180deg, rgba(8, 20, 37, 0.80) 0%, rgba(8, 20, 37, 0.72) 42%, rgba(8, 20, 37, 0.93) 100%),
    url("photos/hero-or.jpg") center 26% / cover no-repeat;
  background-color: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 166, 86, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(26, 40, 80, 0.45), transparent 60%);
  pointer-events: none;
}
.hero::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwLjQgMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJyBmaWx0ZXI9J3VybCgjbiknIG9wYWNpdHk9JzAuNScvPjwvc3ZnPg==");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.wordmark-mark {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.wordmark-name {
  font-family: var(--display);
  font-size: clamp(48px, 8.5vw, 104px);
  letter-spacing: -0.015em;
  line-height: 0.95;
  color: var(--on-dark);
}
.wordmark-name em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}
.wordmark-divider {
  width: 120px;
  height: 1px;
  background: var(--gold);
  margin: 4px 0;
}
/* Hero brand lockup — the real logo artwork (mark + wordmark + descriptor) as the hero centerpiece.
   Wrapped in <h1> for landmark/SEO; full practice name lives in the img alt. */
.hero-lockup-h1 { margin: 0; line-height: 0; }
.hero-lockup {
  display: block;
  width: clamp(290px, 44vw, 540px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.5));
}

.hero-tagline {
  font-family: var(--sans);    /* running phrase — brand body font (caps display would fight the personal tone) */
  font-size: clamp(24px, 3.2vw, 36px);
  font-style: italic;
  color: var(--on-dark);
  letter-spacing: 0.005em;
  margin: 0 auto 48px;
  max-width: 640px;
}
.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}

/* Animated entrance */
.fade-in { opacity: 0; transform: translateY(8px); animation: fadeIn 1100ms var(--ease-out) forwards; }
.fade-in.delay-1 { animation-delay: 200ms; }
.fade-in.delay-2 { animation-delay: 400ms; }
.fade-in.delay-3 { animation-delay: 600ms; }
.fade-in.delay-4 { animation-delay: 800ms; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   Page header (for non-home pages)
   ========================================================= */
.page-header {
  padding: clamp(96px, 12vw, 156px) 0 clamp(48px, 6vw, 72px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(212, 166, 86, 0.07), transparent 50%);
  pointer-events: none;
}
.page-header-inner { position: relative; z-index: 1; max-width: 920px; }
.page-header .eyebrow { margin-bottom: 24px; }
.page-header .lede { max-width: 640px; margin-top: 28px; }

/* =========================================================
   Track cards (two-track service split)
   ========================================================= */
.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule-dark);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 880px) { .tracks { grid-template-columns: 1fr; } }
.track-card {
  background: var(--bg);
  padding: clamp(48px, 6vw, 80px) clamp(32px, 4vw, 56px);
  position: relative;
  transition: background 280ms var(--ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.track-card:hover { background: var(--bg-elevated); }
.track-card-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.track-card-num::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
}
.track-card h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 24px;
}
.track-card p {
  color: var(--on-dark-mute);
  max-width: 440px;
  margin-bottom: 32px;
}
.track-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  font-size: 14px;
  color: var(--on-dark);
}
.track-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.track-card ul li:last-child { border-bottom: none; }
.track-card-cta {
  margin-top: auto;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap 240ms;
}
.track-card:hover .track-card-cta { gap: 18px; }

/* =========================================================
   Differentiators (icon + heading)
   ========================================================= */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-light);
}
@media (max-width: 980px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .diff-grid { grid-template-columns: 1fr; } }
.diff-item {
  padding: 40px 28px 40px 0;
  border-right: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  position: relative;
}
.diff-item:last-child { border-right: none; }
@media (max-width: 980px) {
  .diff-item:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) {
  .diff-item { border-right: none; }
}
.diff-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-on-light);
  margin-bottom: 28px;
}
/* a11y: .diff-num defaults to the dark "on-light" gold (for light sections); on dark
   sections that dark-on-dark fails contrast — use the light gold there (WCAG 1.4.3) */
.on-deep .diff-num, .on-dark .diff-num { color: var(--gold); }
.diff-item h4 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--on-light);
}
.diff-item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-light-mute);
  margin: 0;
}

/* =========================================================
   Two-column row
   ========================================================= */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.row.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .row { grid-template-columns: 1fr; gap: 40px; }
  .row.reverse > :first-child { order: 0; }
}

/* =========================================================
   Image slots — styling wrappers
   ========================================================= */
.media {
  position: relative;
  background: var(--bg-elevated);
  overflow: hidden;
}
.media.aspect-portrait { aspect-ratio: 4 / 5; }
.media.aspect-landscape { aspect-ratio: 4 / 3; }
.media.aspect-wide { aspect-ratio: 16 / 9; }
.media.aspect-square { aspect-ratio: 1 / 1; }
.media.aspect-tall { aspect-ratio: 3 / 4; }

/* Abstract placeholder backgrounds for image-slot empty states.
   Layered on the media wrapper, hidden when an image is dropped. */
.media-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark-dim);
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  pointer-events: none;
}
.media-art-1 {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(212, 166, 86, 0.16), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(30, 45, 90, 0.55), transparent 60%),
    linear-gradient(135deg, #1B2440, #121A2E);
}
.media-art-2 {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 166, 86, 0.12), transparent 65%),
    linear-gradient(180deg, #182038, #0A0F1F);
}
.media-art-3 {
  background:
    linear-gradient(45deg, transparent 48%, rgba(212, 166, 86, 0.18) 49%, rgba(212, 166, 86, 0.18) 51%, transparent 52%),
    radial-gradient(ellipse at center, #1B2440, #0A0F1F);
}
.media-caption {
  position: absolute;
  left: 16px; bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  z-index: 2;
  background: rgba(10, 15, 31, 0.6);
  padding: 6px 10px;
  backdrop-filter: blur(4px);
}

/* When a real image is dropped, hide the decorative filler behind it */
image-slot[data-filled] + .media-art[data-placeholder] { display: none; }

/* Production photos placed directly into a .media wrapper (replaces image-slot pair) */
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* image-slot component customization */
image-slot {
  --is-bg: transparent;
  --is-border: transparent;
  --is-text: var(--on-dark-dim);
  width: 100%;
  height: 100%;
}

/* =========================================================
   Service list (used on service detail pages)
   ========================================================= */
.svc-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--rule-light);
}
@media (max-width: 880px) {
  .svc-section { grid-template-columns: 1fr; gap: 24px; }
}
.svc-section .svc-num {
  font-family: var(--display);
  font-style: italic;
  color: var(--oxblood);
  font-size: 18px;
}
.svc-section h3 {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 28px;
  color: var(--on-light);
}
.svc-section h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 28px 0 10px;
}
.svc-section p { color: var(--on-light); margin: 0 0 1em; }
.svc-section .body-l { color: var(--on-light); }
.svc-section ul.bullets { padding-left: 20px; color: var(--on-light); }
.svc-section ul.bullets li { padding: 4px 0; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--bg-deep);
  padding: 80px 0 32px;
  color: var(--on-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: var(--on-dark-mute); font-size: 14.5px; transition: color 200ms; }
.footer ul a:hover { color: var(--on-dark); }
.footer-brand-name {
  font-family: var(--display);
  font-size: 28px;
  margin: 0 0 12px;
}
.footer-brand-sub {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.footer-address {
  color: var(--on-dark-mute);
  font-size: 14.5px;
  line-height: 1.7;
  font-style: normal;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(232, 236, 245, 0.58);    /* a11y: was --on-dark-dim 0.40 (3.38:1) — ≥4.5:1 on --bg-deep */
  letter-spacing: 0.06em;
}
@media (max-width: 540px) {
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* =========================================================
   Appointment CTA section
   ========================================================= */
.appt-cta {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.appt-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 166, 86, 0.10), transparent 65%);
  pointer-events: none;
}
.appt-cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.appt-cta h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 24px;
}
.appt-cta p {
  color: var(--on-dark-mute);
  margin: 0 auto 40px;
  max-width: 520px;
}

/* =========================================================
   Team teaser
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.team-card .media { margin-bottom: 24px; }
.team-card-name {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.1;
}
.team-card-role {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 0 0 12px;
}
.team-card-bio {
  font-size: 15px;
  color: var(--on-light-mute);
  line-height: 1.6;
  max-width: 440px;
}

/* =========================================================
   Pull quote
   ========================================================= */
.pullquote {
  font-family: var(--sans);    /* running prose — brand body font */
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  font-style: italic;
  color: var(--on-dark);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.pullquote::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}

/* =========================================================
   Tech showcase
   ========================================================= */
.tech-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 7vw, 96px) 0;
  align-items: center;
}
.tech-block.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .tech-block { grid-template-columns: 1fr; gap: 32px; }
  .tech-block.reverse > :first-child { order: 0; }
}
.tech-block h3 {
  font-family: var(--display);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 24px;
}
.tech-block .eyebrow { margin-bottom: 20px; }

/* =========================================================
   Stats / Numbers
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } }
.stat {
  padding: 48px 32px;
  border-right: 1px solid var(--rule-dark);
}
.stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat { border-right: none; border-bottom: 1px solid var(--rule-dark); }
  .stat:last-child { border-bottom: none; }
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 12px;
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--on-dark-mute);
}

/* =========================================================
   Appointment page specific
   ========================================================= */
.appt-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(56px, 7vw, 96px) 0;
}
@media (max-width: 980px) {
  .appt-layout { grid-template-columns: 1fr; }
}
.scheduling-embed {
  background: var(--surface-warm);
  border: 1px solid var(--rule-light);
  min-height: 580px;
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--on-light);
}
.scheduling-embed-inner { max-width: 380px; }
/* Form-embed variant: container just frames the Microsoft Forms iframe */
.scheduling-embed--form {
  display: block;
  padding: 6px;
  min-height: 0;
  overflow: hidden;
}
.appt-form-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 1780px;   /* wide column (2-col desktop / tablet) — form is shorter here */
  border: 0;
}
/* Phones: single narrow column makes the form wrap taller — give it room so the
   whole form + Submit shows without an internal (nested) scroll. */
@media (max-width: 640px) {
  .appt-form-frame { height: 2320px; }
}
.scheduling-embed h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 16px;
}
.scheduling-embed p { color: var(--on-light-mute); margin-bottom: 24px; }
.scheduling-embed .phone {
  font-family: var(--display);
  font-size: 32px;
  color: var(--oxblood);
  margin: 16px 0;
  display: block;
}

.contact-block {
  padding: 0;
}
.contact-block h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--on-light);
}
.contact-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule-light);
}
.contact-row:last-child { border-bottom: none; }
.contact-row h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 0 0 8px;
  font-weight: 500;
}
.contact-row p, .contact-row a {
  color: var(--on-light);
  font-size: 17px;
  margin: 0;
  line-height: 1.5;
}
.contact-row a:hover { color: var(--oxblood); }
.urgent-note {
  background: rgba(92, 26, 31, 0.06);
  border-left: 2px solid var(--oxblood);
  padding: 20px 24px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--on-light);
  font-family: var(--display);
  font-style: italic;
}

/* =========================================================
   Bios on team page
   ========================================================= */
.bio {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(56px, 7vw, 96px) 0;
  border-top: 1px solid var(--rule-light);
}
.bio:first-of-type { border-top: none; }
.bio.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .bio { grid-template-columns: 1fr; gap: 40px; }
  .bio.reverse > :first-child { order: 0; }
}
.bio h3 {
  font-family: var(--display);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--on-light);
}
.bio .role {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 0 0 32px;
  font-weight: 500;
}
.bio p { color: var(--on-light); margin: 0 0 1.2em; }
.bio h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 32px 0 12px;
}
.bio ul { padding-left: 20px; color: var(--on-light); }
.bio ul li { padding: 3px 0; }

/* =========================================================
   Tweaks panel
   ========================================================= */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  width: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-dark);
  padding: 20px;
  display: none;
  font-family: var(--sans);
  color: var(--on-dark);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.tweaks.open { display: block; }
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-dark);
}
.tweaks-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.tweaks-close {
  width: 24px;
  height: 24px;
  color: var(--on-dark-mute);
  font-size: 20px;
  line-height: 1;
}
.tweaks-section { margin-bottom: 16px; }
.tweaks-section:last-child { margin-bottom: 0; }
.tweaks-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-mute);
  margin-bottom: 8px;
  display: block;
}
.tweaks-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tweaks-options.three { grid-template-columns: 1fr 1fr 1fr; }
.tweaks-opt {
  padding: 8px;
  border: 1px solid var(--rule-dark);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--on-dark-mute);
  cursor: pointer;
  text-align: center;
  transition: all 180ms;
  background: transparent;
  font-family: var(--sans);
}
.tweaks-opt:hover { border-color: var(--gold-soft); color: var(--on-dark); }
.tweaks-opt.active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* Palette swatches */
.tweaks-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.tweaks-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  color: var(--on-dark-mute);
  transition: color 160ms;
}
.tweaks-swatch:hover { color: var(--on-dark); }
.tweaks-swatch-chip {
  width: 36px;
  height: 36px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: outline 160ms, transform 160ms;
}
.tweaks-swatch-chip::after {
  /* gold accent dot */
  content: "";
  position: absolute;
  right: 4px; bottom: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.tweaks-swatch.active .tweaks-swatch-chip {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.tweaks-swatch.active { color: var(--on-dark); }
.tweaks-swatch-name {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}
/* per-palette colors */
.swatch-midnight { background: #121A2E; }
.swatch-midnight::after { background: #D4A656; }
.swatch-charcoal { background: #1A1510; }
.swatch-charcoal::after { background: #C8903A; }
.swatch-burgundy { background: #1F0F12; }
.swatch-burgundy::after { background: #C8903A; }
.swatch-mocha    { background: #2A2018; }
.swatch-mocha::after { background: #D4A843; }
.swatch-stone    { background: #3F3527; }
.swatch-stone::after { background: #E6B660; }
.swatch-clay     { background: #5C4A36; }
.swatch-clay::after  { background: #EDC074; }
.swatch-sand     { background: #D7C7A2; }
.swatch-sand::after  { background: #8E5F1C; }
.swatch-cream    { background: #ECE3D0; }
.swatch-cream::after { background: #A47628; }

/* =========================================================
   Utilities
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mt-8 { margin-top: 64px; }
.gold { color: var(--gold); }
.italic { font-style: italic; }
.max-560 { max-width: 560px; }
.max-680 { max-width: 680px; }
.max-820 { max-width: 820px; }

/* =========================================================
   Brand mark (logo)
   ========================================================= */
.brandmark { display: block; width: auto; }
.nav-brand {
  flex-direction: row;
  align-items: center;
  gap: 13px;
}
.brandmark-nav { height: 42px; }
.nav-brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
@media (max-width: 720px) {
  .brandmark-nav { height: 34px; }
  .nav-brand .nav-brand-sub { display: none; }
}
.brandmark-hero {
  height: clamp(96px, 13vw, 148px);
  margin: 0 auto 4px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}
.brandmark-footer { height: 60px; margin-bottom: 22px; }
.brandmark-drawer { height: 40px; }

/* =========================================================
   Procedure renderings — patient-facing schematic plates
   ========================================================= */
.render-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 76px); }
.render-head.center { text-align: center; }
.render-head.center .gold-rule { margin-left: auto; margin-right: auto; }
.render-head .eyebrow { margin-bottom: 22px; }
.render-head h2 { line-height: 1.14; margin: 0 0 4px; }
.render-head p {
  color: var(--on-dark-mute);
  font-size: 17px;
  line-height: 1.65;
  margin: 32px 0 0;
}

.render-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 38px);
}
@media (max-width: 900px) {
  .render-strip { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

.render-plate { display: flex; flex-direction: column; }
.render-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(212, 166, 86, 0.12), transparent 62%),
    linear-gradient(158deg, #1D2748, #0D1325);
  border: 1px solid var(--rule-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.render-figure .diagram { width: 58%; height: auto; }
.render-figure-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-dim);
}
.diagram {
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.diagram .soft { stroke: var(--gold-soft); }
.diagram .dash { stroke-dasharray: 3 4.5; opacity: 0.72; }
.diagram .thin { stroke-width: 1; opacity: 0.6; }
.diagram .node { fill: var(--gold); stroke: none; }
.diagram .ghost { stroke: var(--on-dark); opacity: 0.28; }

.render-plate-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.render-plate-num::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.render-plate-title {
  font-family: var(--display);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 11px;
  color: var(--on-dark);
}
.render-plate-text {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--on-dark-mute);
  margin: 0;
}

/* Single wide feature rendering (service-page hero band) */
.render-feature {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .render-feature { grid-template-columns: 1fr; gap: 40px; } }
.render-feature .render-figure { aspect-ratio: 16 / 11; }
.render-feature .render-figure .diagram { width: 50%; }

/* =========================================================
   Selected Work (portfolio)
   ========================================================= */
.work-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.work-pill {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--rule-dark);
  color: var(--on-dark-mute);
  background: transparent;
  transition: all 180ms var(--ease);
}
.work-pill:hover { border-color: var(--gold); color: var(--on-dark); }
.work-pill.active { border-color: var(--gold); color: var(--on-dark); background: rgba(212, 166, 86, 0.08); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3.4vw, 52px);
}
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }

.work-card { display: flex; flex-direction: column; }
.work-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--rule-dark);
}
.work-ba {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-elevated);
  overflow: hidden;
}
.work-ba-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 15, 31, 0.62);
  padding: 5px 9px;
  backdrop-filter: blur(4px);
}
.work-card-meta { padding: 24px 0 0; }
.work-card-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}
.work-card-title {
  font-family: var(--display);
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.14;
  margin: 0 0 12px;
}
.work-card-desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--on-dark-mute);
  margin: 0;
}
.work-note {
  border: 1px solid var(--rule-dark);
  border-left: 2px solid var(--gold);
  padding: 28px 34px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.work-note p {
  font-family: var(--sans);    /* running prose — brand body font */
  font-style: italic;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--on-dark-mute);
  margin: 0;
}
.work-note .work-note-mark {
  font-family: var(--display);
  font-size: 34px;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

/* =========================================================
   Accessibility (WCAG 2.1 AA)
   ========================================================= */

/* Skip-to-content link — visible only on keyboard focus (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 2000;
  background: var(--gold);
  color: #121A2E;
  padding: 12px 20px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transition: top 160ms var(--ease);
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #121A2E;
  outline-offset: 2px;
}

/* Visible keyboard focus indicator (WCAG 2.4.7). Gold ring on dark; darker gold on paper. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-light a:focus-visible,
.on-light button:focus-visible,
.on-light input:focus-visible,
.on-light textarea:focus-visible,
.on-light select:focus-visible,
.on-light [tabindex]:focus-visible {
  outline-color: var(--gold-on-light);
}

/* Respect reduced-motion preference (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
