/* =============================================================
   Banack & Deren LLP - boutique law firm
   Shared stylesheet.

   Aesthetic: minimalist / editorial / modern sans - an homage to
   the clean neutral feel of boutique firm sites, with our own warm
   bone-and-bronze palette so it is distinct, not a copy.

   Squarespace porting note: each <section> ≈ one Squarespace Section.
   Match the variables below in Design > Site Styles.
   ============================================================= */

/* Primary typeface - Editor's Note (Medium cut).
   NOT a Google Font: drop the licensed web-font files into assets/fonts/
   with the names below. Until they're added, headings fall back to a serif. */
@font-face {
  font-family: "Editor's Note";
  src: url("../assets/fonts/EditorsNote-Medium.woff2") format("woff2"),
       url("../assets/fonts/EditorsNote-Medium.woff")  format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:      #181F2B;   /* dark navy - headings & body text         */
  --ink-2:    #445F7F;   /* slate blue - secondary text              */
  --bone:     #E8E8E8;   /* page background - light grey             */
  --bone-2:   #dcdcdc;   /* alternating section background           */
  --line:     #cccccc;   /* hairlines / borders                      */
  --accent:   #D1B48C;   /* warm tan - accent on DARK sections / rules */
  --accent-2: #785D2D;   /* deep antique gold - accent on LIGHT (AA ≥4.5:1 on white/bone/bone-2) */
  --dark:     #181F2B;   /* dark sections / footer / hero            */
  --on-dark:  #E8E8E8;   /* light grey text on dark                  */
  --white:    #ffffff;
  --surface:  #ffffff;   /* card / input background                  */

  --display: "Editor's Note", Georgia, "Times New Roman", serif;
  --body:    "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 8px;
  --maxw: 1180px;
  --gap:  clamp(1.25rem, 5vw, 3rem);

  --header-bg: rgba(232,232,232,.92);          /* sticky bar tint - flips in dark mode */
  --logo-header: url("../assets/logo-primary-dark.svg");   /* dark wordmark on light bar */
  --logo-footer: url("../assets/logo-primary-white.svg");  /* footer is dark in BOTH themes */
  --logo-mark:   url("../assets/brandmark-dark.svg");       /* compact icon (mobile / fallback) */
}

/* =============================================================
   THEME - light is the :root default above. Dark is applied two ways:
   (1) @media prefers-color-scheme:dark, scoped to :root:not([data-theme])
       so "Auto" (no manual override) follows the operating system;
   (2) :root[data-theme="dark"] for an explicit manual override.
   KEEP THE TWO DARK BLOCKS BELOW IN SYNC.
   Note: --dark/--on-dark/--accent/--white do NOT change - the footer,
   .section-dark bands and .hero are intentionally dark in both themes.
   ============================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ink:#E8E8E8; --ink-2:#9DB0C8; --bone:#11161F; --bone-2:#1A2230;
    --line:rgba(255,255,255,.16); --accent-2:#D1B48C; --surface:#1E2735;
    --header-bg:rgba(17,22,31,.85);
    --logo-header:url("../assets/logo-primary-white.svg");
    --logo-mark:url("../assets/brandmark-white.svg");
    color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --ink:#E8E8E8; --ink-2:#9DB0C8; --bone:#11161F; --bone-2:#1A2230;
  --line:rgba(255,255,255,.16); --accent-2:#D1B48C; --surface:#1E2735;
  --header-bg:rgba(17,22,31,.85);
  --logo-header:url("../assets/logo-primary-white.svg");
  --logo-mark:url("../assets/brandmark-white.svg");
  color-scheme:dark;
}
:root[data-theme="light"] { color-scheme:light; }

/* ---- a11y utilities ---------------------------------------- */
.sr-only {
  position:absolute !important; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
:focus-visible { outline:2px solid var(--accent-2); outline-offset:2px; border-radius:2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition:none !important; animation:none !important; }
}

/* ---- reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }
[id] { scroll-margin-top: 96px; }  /* anchored sections clear the sticky header */

/* ---- typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5.1rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 400; }
h3 { font-size: 1.42rem; font-weight: 500; }
p  { font-size: 1.02rem; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 56ch; line-height: 1.6; }

/* ---- layout helpers --------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-alt  { background: var(--bone-2); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
/* on dark navy, keep the brighter tan so accents stay vibrant */
.section-dark .eyebrow { color: var(--accent); }
.section-dark .rule { background: var(--accent); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.rule { width: 48px; height: 1px; background: var(--accent-2); border: 0; margin: 1.5rem 0; }
.center .rule { margin-left: auto; margin-right: auto; }
.measure { max-width: 60ch; }

/* ---- buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.02em; text-transform: none;
  padding: 0.9rem 1.9rem;
  background: var(--ink); color: var(--bone);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer; transition: all .22s ease;
}
.btn:hover { background: transparent; color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--bone-2); color: var(--ink); border-color: var(--accent-2); box-shadow: none; }
.btn-light { background: rgba(255,255,255,.10); color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.link-arrow { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--accent-2); }
.link-arrow::after { content: " →"; }

/* ---- header / nav ----------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* centered wordmark with nav links flanking on both sides */
.nav {
  position: relative; display: flex; align-items: center;
  padding: 1.2rem var(--gap); max-width: var(--maxw); margin: 0 auto;
}
/* brand is now an image logo (text moved to an .sr-only span for a11y/SEO) */
.brand {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
  display: block; line-height: 0;
}
.site-header .brand {
  width: clamp(150px, 22vw, 210px); aspect-ratio: 3385 / 339;
  background: var(--logo-header) center/contain no-repeat;
}
/* theme switcher - sits at the far right of the nav (logo stays centered) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin-left: 1rem; flex: 0 0 auto;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-2); cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-2); }
.theme-toggle svg { display: block; }
/* 2-state toggle shows the CURRENTLY ACTIVE theme's icon (sun=light, moon=dark).
   Default/auto follows the OS via the @media block; explicit overrides via [data-theme]. */
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun  { display: none; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: block; }
}
:root[data-theme="light"] .theme-toggle .i-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
:root[data-theme="dark"]  .theme-toggle .i-sun  { display: none; }
:root[data-theme="dark"]  .theme-toggle .i-moon { display: block; }
/* symmetric outer columns + a fixed center slot keep the reserved gap centered
   under the absolutely-positioned wordmark; each group aligns toward the logo */
/* left margin matches the theme toggle's footprint on the right (40px + 1rem),
   so the reserved center column lines up under the absolutely-centered wordmark */
.nav-menu { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 24rem minmax(0,1fr); align-items: center; margin-left: calc(40px + 1rem); }
.nav-links { display: flex; gap: 1.7rem; list-style: none; align-items: center; margin: 0; }
.nav-links.left { grid-column: 1; justify-self: end; }
.nav-links.right { grid-column: 3; justify-self: start; }
.nav-links a {
  font-size: 0.77rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--accent-2); }
.nav-links a.btn { color: var(--ink); background: transparent; border: 1px solid var(--line); padding: 0.4rem 0.85rem; letter-spacing: .04em; text-transform: none; font-size: .78rem; border-radius: var(--radius); white-space: nowrap; }
.nav-links a.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; line-height: 1; margin-left: auto; }

/* ---- hero -------------------------------------------------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  background: linear-gradient(100deg, rgba(24,31,43,.97) 0%, rgba(24,31,43,.86) 55%, rgba(24,31,43,.74) 100%), var(--dark);
  color: var(--white);
}
.hero-inner { max-width: 760px; padding: 4rem 0; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255,255,255,.82); margin: 1.6rem 0 2.4rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- page banner (interior pages) ------------------------- */
.page-banner { padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3rem, 7vw, 5rem); }
.page-banner h1 { max-width: 16ch; }

/* ---- split (text + media) --------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 5rem); align-items: center; }
.split.flip > div:first-child { order: 2; }
.split-media { width: 100%; height: 100%; min-height: 380px; object-fit: cover; background: var(--bone-2); border-radius: var(--radius); }

/* ---- numbered practice list (editorial rows) -------------- */
.practice-list { border-top: 1px solid var(--line); }
.practice-row {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center;
  gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line);
  transition: padding .25s ease; color: var(--ink);
}
.practice-row:hover { padding-left: .6rem; }
.practice-row:hover h3 { color: var(--accent-2); }
.practice-row .num { font-family: var(--display); font-size: 1.7rem; font-weight: 300; color: var(--accent-2); }
.practice-row h3 { margin: 0 0 .3rem; }
.practice-row .desc { color: var(--ink-2); font-size: .98rem; max-width: 70ch; margin: 0; }
.practice-row .go { color: var(--accent-2); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* compact grid variant (homepage preview) */
.grid { display: grid; gap: clamp(1.4rem, 3.5vw, 2.4rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.tile { padding: 1.8rem 0 0; border-top: 1px solid var(--line); }
.tile .num { font-family: var(--display); font-size: 1.6rem; font-weight: 300; color: var(--accent-2); display:block; margin-bottom: .5rem; }
.tile h3 { margin-bottom: .5rem; }
.tile p { color: var(--ink-2); font-size: .98rem; }

/* ---- stat band -------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.stat .num { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 300; color: var(--accent); line-height: 1; white-space: nowrap; }
.stat .label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-top: .8rem; }

/* ---- team -------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 2.8rem); }
.member {}
.member .photo {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  background: var(--bone-2); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 2.4rem; color: var(--accent-2); letter-spacing: .05em;
  border: 1px solid var(--line); margin-bottom: 1.1rem; border-radius: var(--radius);
}
.member h3 { margin-bottom: .15rem; }
.member .role { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .7rem; }
.member p { color: var(--ink-2); font-size: .95rem; }
.member .meta { font-size: .82rem; color: var(--ink-2); margin-top: .6rem; }
.member.lead-partner { grid-column: span 1; }
/* real photo fills the box and clips to its radius; initials show as fallback if the img is removed onerror */
.photo { position: relative; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member .photo-link { display: block; }
.member .photo-link .photo { transition: opacity .2s ease; }
.member .photo-link:hover .photo { opacity: .92; }
.member h3 a { color: var(--ink); }
.member h3 a:hover { color: var(--accent-2); }
.member .link-arrow { display: inline-block; margin-top: .6rem; }

.team-sub { margin-top: 3.5rem; }
.staff-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2.5rem; list-style: none; border-top: 1px solid var(--line); padding-top: 2rem; }
.staff-list li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.staff-list .nm { font-weight: 600; color: var(--ink); display: block; }
.staff-list .rl { font-size: .82rem; color: var(--ink-2); }

/* ---- forms ------------------------------------------------- */
.form-wrap { max-width: 720px; }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; font-family: var(--body); font-size: 1rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-2); border-color: var(--accent-2); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* ---- choice chips + consent ------------------------------- */
.choice-group { display: flex; flex-wrap: wrap; gap: .55rem .9rem; }
.field .choice { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem .9rem; width: auto; font-size: .9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.field .choice:hover { border-color: var(--accent-2); }
.field .choice input { width: auto; padding: 0; margin: 0; }
.consent { margin: 0 0 1.6rem; }
.consent label { display: flex; align-items: flex-start; gap: .55rem; font-size: .85rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { width: auto; margin: .2rem 0 0; flex-shrink: 0; }

/* ---- contact ---------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,6vw,4.5rem); }
.info-line { margin-bottom: 1.4rem; }
.info-line .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); display:block; margin-bottom: .25rem; }
.info-line .v { font-size: 1.05rem; color: var(--ink); }

/* ---- footer ------------------------------------------------ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.62); padding: 4rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer .brand { position: static; transform: none; display: block; width: clamp(150px, 38vw, 210px); aspect-ratio: 3385 / 339; background: var(--logo-footer) left center/contain no-repeat; margin-bottom: 1.2rem; }
.site-footer h4 { color: var(--white); font-family: var(--body); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.62); }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.42); }
.disclaimer { max-width: 75ch; font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 1rem; line-height: 1.65; }

/* ---- booking embed ---------------------------------------- */
.booking-wrap { max-width: 980px; margin: 0 auto; }
.booking-frame { width: 100%; min-height: 1150px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 32px rgba(24,31,43,.10); }
.booking-fallback { text-align: center; margin-top: 1.3rem; font-size: .9rem; color: var(--ink-2); }

/* ---- practitioner cards (practice pages) ------------------ */
.practitioners { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem,4vw,2.2rem); }
.practitioner { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.practitioner .avatar { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; background: var(--bone-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); color: var(--accent-2); font-size: 1.25rem; }
.practitioner h3 { font-size: 1.18rem; margin-bottom: .1rem; }
.practitioner .role { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .5rem; }
.practitioner p { font-size: .92rem; color: var(--ink-2); margin-bottom: .5rem; }

/* ---- representative work ---------------------------------- */
.rep-note { font-size: .82rem; font-style: italic; color: var(--ink-2); margin-bottom: 1.6rem; }
.rep-list { list-style: none; border-top: 1px solid var(--line); }
.rep-list li { position: relative; padding: 1.2rem 0 1.2rem 30px; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.6; }
.rep-list li::before { content: "-"; color: var(--accent-2); position: absolute; left: 0; top: 1.2rem; }
.rep-list a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.rep-list a:hover { color: var(--accent-2); }
/* credential pairs (education / bar admission) on spotlight pages */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); margin-top: 1.6rem; }
.creds h3 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .5rem; }
.creds p { color: var(--ink-2); }
@media (max-width: 800px) { .creds { grid-template-columns: 1fr; } }

/* ---- team spotlight sections ------------------------------ */
.spotlight { scroll-margin-top: 90px; display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.spotlight .photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bone-2); border: 1px solid var(--line); border-radius: var(--radius); display:flex; align-items:center; justify-content:center; font-family: var(--display); font-size: 3rem; color: var(--accent-2); }
.spotlight .role { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin: .2rem 0 .8rem; }
.spotlight h2 { margin-bottom: 0; }
.spotlight .tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.3rem 0; }
.spotlight .tag { font-size: .78rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); }
.spotlight .tag:hover { border-color: var(--accent-2); color: var(--accent-2); }
.spotlight .meta { font-size: .85rem; color: var(--ink-2); margin-top: 1rem; }
.spotlight-sep { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---- attorney profile: sticky meta rail + content --------- */
/* left rail stays full (photo + bar + education + email) so a profile
   with little Representative Work still reads as complete next to it */
.profile { scroll-margin-top: 90px; display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; margin-top: 1.8rem; }
.profile-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 1.5rem; }
.profile-aside .photo { width: 100%; aspect-ratio: 3/4; background: var(--bone-2); border: 1px solid var(--line); border-radius: var(--radius); display:flex; align-items:center; justify-content:center; font-family: var(--display); font-size: 3rem; color: var(--accent-2); }
.profile-aside .info-line { margin-bottom: 0; }
.profile-aside .info-line .v { font-size: .95rem; line-height: 1.5; }
.profile-main .role { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin: .2rem 0 .6rem; }
.profile-main h2 { margin-bottom: 0; }
.profile-bio { margin-top: 1.3rem; max-width: 60ch; }
.profile-section { margin-top: 2.6rem; }
.profile-section > .eyebrow { margin-bottom: 1rem; }
.profile .tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.profile .tag { font-size: .78rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); }
a.tag:hover { border-color: var(--accent-2); color: var(--accent-2); }
.profile-section .rep-list { margin-top: 0; }
.profile-section h3 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 1.8rem 0 .2rem; }
@media (max-width: 800px) {
  /* stack as: photo -> name/bio/work -> bar/education/email, so the name
     follows the photo instead of sitting below the credentials */
  .profile { display: flex; flex-direction: column; gap: 1.5rem; }
  .profile-aside { display: contents; }
  .profile-aside .photo { order: 0; max-width: 240px; }
  .profile-main { order: 1; }
  .profile-aside .info-line { order: 2; }
}

.roster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2.5rem; list-style: none; border-top: 1px solid var(--line); padding-top: 2rem; }
.roster li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.roster a { display: block; }
.roster .nm { font-weight: 600; color: var(--ink); display: block; }
.roster .rl { font-size: .82rem; color: var(--ink-2); }

/* ---- responsive ------------------------------------------- */
@media (max-width: 920px) {
  .team-grid, .staff-list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 2.5rem; text-align: left; }
}
/* header collapses to logo + menu button before the flanking nav gets tight */
@media (max-width: 980px) {
  .brand { position: static; transform: none; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; margin-left: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bone); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gap);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .85rem 0; width: 100%; }
  .nav-links a.btn { display: inline-block; width: auto; margin: .6rem 0; text-align: center; }
}

@media (max-width: 800px) {
  .split, .split.flip > div:first-child, .contact-grid, .footer-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; order: 0; }
  .practitioners, .roster { grid-template-columns: 1fr; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight .photo { max-width: 260px; }
  .practice-row { grid-template-columns: 48px 1fr; }
  .practice-row .num { font-size: 1.3rem; }
  .practice-row .go { display: none; }
}
/* the ~10:1 wordmark is illegible on phones - swap to the compact brandmark icon */
@media (max-width: 600px) {
  .site-header .brand { width: 38px; aspect-ratio: 1890 / 1643; background-image: var(--logo-mark); }
}
@media (max-width: 540px) {
  .team-grid, .staff-list, .field-row { grid-template-columns: 1fr; }
}
