/* ==========================================================
   Moylan Family Law — site stylesheet
   One file for every page. Colors and fonts live in the
   variables right below, so a change there updates the
   whole site. Colors come from the firm's LM monogram
   (gold letters, green ring) set against a deep navy.
   ========================================================== */

:root {
  --navy: #12233a;
  --navy-2: #1b3150;
  --navy-3: #26416a;
  --ink: #1d2531;
  --muted: #5b6474;
  --paper: #fcfbf8;
  --cream: #f4f0e7;
  --cream-2: #ebe5d8;
  --line: #e2dccf;
  --gold: #a5802f;
  --gold-2: #c49b45;
  --green: #3f5c30;
  --white: #ffffff;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 84px;
}

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }

h1, h2, h3, h4 {
  font-variant-numeric: lining-nums;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; color: var(--gold); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.lede { font-size: 1.2rem; line-height: 1.65; color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  letter-spacing: .03em;
  padding: .9em 1.5em;
  border-radius: 2px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--navy); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--gold); color: #fff; }
.btn--line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.link-arrow {
  font-weight: 700; font-size: .92rem; letter-spacing: .03em;
  text-decoration: none; color: var(--navy);
  border-bottom: 2px solid var(--gold); padding-bottom: 2px;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--gold); }

/* ==========================================================
   HEADER — always-visible menu, Contact always in view
   ========================================================== */
.topbar { background: var(--navy); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold-2); }
.topbar__links { display: flex; gap: 1.4rem; align-items: center; }
.topbar__links .phone { font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252,251,248,.97);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(18,35,58,.08); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); transition: min-height .25s; }
.site-header.is-scrolled .header-inner { min-height: 66px; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand__mark { width: 50px; height: 50px; transition: width .25s, height .25s; }
.site-header.is-scrolled .brand__mark { width: 42px; height: 42px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; }
.brand__sub { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: .25rem; align-items: center; }
.main-nav > ul > li { position: relative; margin: 0; }
.main-nav > ul > li > a, .main-nav .nav-toggle-sub {
  display: flex; align-items: center; gap: .35em;
  font-family: var(--sans); font-size: .92rem; font-weight: 600;
  color: var(--navy); text-decoration: none;
  padding: .7em .85em; background: none; border: 0; cursor: pointer;
  position: relative;
}
.main-nav > ul > li > a::after, .main-nav .nav-toggle-sub::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .35em; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.main-nav > ul > li:hover > a::after, .main-nav > ul > li:hover > .nav-toggle-sub::after,
.main-nav a[aria-current="page"]::after, .main-nav .is-current > .nav-toggle-sub::after { transform: scaleX(1); }
.nav-toggle-sub svg { width: 10px; height: 10px; transition: transform .2s; }
.has-sub:hover .nav-toggle-sub svg, .has-sub.is-open .nav-toggle-sub svg { transform: rotate(180deg); }

/* dropdown / mega menu */
.subnav {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(18,35,58,.12);
  padding: 1.4rem 1.6rem; min-width: 250px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav, .has-sub.is-open > .subnav {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li { margin: 0; }
.subnav a { display: block; padding: .38em 0; color: var(--ink); text-decoration: none; font-size: .93rem; }
.subnav a:hover { color: var(--gold); }
.subnav h4 { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.subnav--mega { left: -24px; transform: translate(0, 8px); display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 2rem; width: 720px; }
.has-sub:hover > .subnav--mega, .has-sub:focus-within > .subnav--mega, .has-sub.is-open > .subnav--mega { transform: translate(0, 0); }
.subnav--mega h4 a { color: var(--gold); padding: 0; font-size: inherit; }

.header-cta { display: flex; align-items: center; gap: .6rem; }
.header-call { display: none; }
.header-cta .short { display: none; }
.menu-btn { display: none; }

/* ==========================================================
   HOME — hero
   ========================================================== */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 0 58%; background: var(--cream); z-index: -1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); line-height: 1.02; margin-bottom: .4em; }
.hero h1 span { display: block; }
.hero h1 .l2 { padding-left: .6em; }
.hero .lede { max-width: 34em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__actions .or-call { font-size: .95rem; color: var(--muted); margin-left: .4rem; }
.hero__actions .or-call a { font-weight: 700; color: var(--navy); text-decoration: none; }
.hero__media { position: relative; max-width: 440px; justify-self: center; }
.hero__caption { margin-top: 1.4rem; font-size: .88rem; color: var(--muted); }
.hero__caption strong { display: block; font-family: var(--serif); font-size: 1.35rem; color: var(--navy); font-weight: 600; }

/* offset frame behind a photo or panel */
.framed { position: relative; z-index: 0; }
.framed::before {
  content: ""; position: absolute; z-index: -1;
  inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold);
}
.framed--green::before { border-color: var(--green); }
.framed--navy::before { border-color: var(--navy-3); }
.framed--left::before { inset: 22px 22px -22px -22px; }
.framed img { width: 100%; }

/* practice strip under the hero */
.practice-strip { background: var(--navy); color: #fff; }
.practice-strip ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--max); display: grid; grid-template-columns: repeat(6, 1fr); }
.practice-strip li { margin: 0; border-right: 1px solid rgba(255,255,255,.12); }
.practice-strip li:first-child { border-left: 1px solid rgba(255,255,255,.12); }
.practice-strip li:last-child { border-right: 0; }
.practice-strip a {
  display: flex; flex-direction: column; gap: .25rem; padding: 1.5rem 1.2rem; height: 100%;
  color: #fff; text-decoration: none; transition: background .2s;
}
.practice-strip a:hover { background: var(--navy-2); color: #fff; }
.practice-strip .n { font-size: .72rem; letter-spacing: .14em; color: var(--gold-2); font-weight: 700; }
.practice-strip .t { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.86); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

.intro { max-width: 900px; margin: 0 auto; text-align: center; }
.intro h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.intro h2 span { display: block; }

/* alternating photo/panel + text blocks */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 130px); }
.feature--flip .feature__media { order: 2; }
.feature__body h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.feature__body ul { padding-left: 0; list-style: none; margin: 1.4rem 0 1.8rem; }
.feature__body li { padding-left: 1.6rem; position: relative; }
.feature__body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--gold); }

/* panels standing in for photography */
.panel {
  position: relative; background: var(--navy); color: rgba(255,255,255,.9);
  padding: clamp(32px, 5vw, 56px); min-height: 380px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
}
.panel::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 1px solid rgba(196,155,69,.35); border-radius: 50%;
}
.panel--cream { background: var(--cream-2); color: var(--ink); }
.panel--cream::after { border-color: rgba(63,92,48,.3); }
.panel--green { background: var(--green); }
.panel blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.3; font-style: italic; }
.panel cite { display: block; margin-top: 1.2rem; font-style: normal; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 700; }
.panel--cream cite { color: var(--gold); }
.panel .big { display: block; font-variant-numeric: lining-nums; font-family: var(--serif); font-size: clamp(5rem, 11vw, 8.5rem); line-height: .9; color: var(--gold-2); font-weight: 600; }
.panel .big-label { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; margin-top: .8rem; }
.panel .facts { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.panel .facts li { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.18); margin: 0; font-size: .95rem; }
.panel--cream .facts { border-color: var(--line); }
.panel--cream .facts li { border-color: var(--line); }

/* numbered 01/02/03 steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.step { padding: 2.2rem 2rem 0 0; }
.step + .step { padding-left: 2rem; border-left: 1px solid rgba(255,255,255,.18); }
.step .num { font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 3.4rem; color: var(--gold-2); line-height: 1; font-weight: 600; }
.step h3 { margin-top: 1rem; }
.section--cream .steps, .section--cream .step + .step { border-color: var(--line); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review { background: #fff; border: 1px solid var(--line); padding: 2rem; display: flex; flex-direction: column; margin: 0; }
.review::before { content: "\201C"; font-family: var(--serif); font-size: 4.5rem; line-height: .6; color: var(--gold); height: 2rem; }
.review p { font-size: 1rem; flex: 1; }
.review cite { font-style: normal; font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.reviews--wide { grid-template-columns: repeat(2, 1fr); }

/* two-up closing section */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.two-up > div { padding-top: 1.8rem; border-top: 3px solid var(--gold); }
.contact-lines { list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.contact-lines li { margin: 0 0 .4rem; }
.contact-lines strong { display: inline-block; min-width: 4.5em; color: var(--navy); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }

/* ==========================================================
   INNER PAGES
   ========================================================== */
.page-hero { background: var(--navy); color: rgba(255,255,255,.85); padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; bottom: -180px; width: 460px; height: 460px; border: 1px solid rgba(196,155,69,.3); border-radius: 50%; }
.page-hero h1 { color: #fff; max-width: 17em; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.page-hero h1 em { color: var(--gold-2); }
.page-hero .lede { color: rgba(255,255,255,.78); max-width: 40em; margin: 0; }
.crumbs { font-size: .8rem; letter-spacing: .06em; margin-bottom: 1.6rem; }
.crumbs a { color: rgba(255,255,255,.7); text-decoration: none; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs span { margin: 0 .5em; color: rgba(255,255,255,.4); }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 6vw, 88px); padding-block: clamp(56px, 7vw, 96px); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose > p:first-child { font-size: 1.18rem; color: var(--muted); }
.prose ul li::marker { color: var(--gold); }
.callout { background: var(--cream); border-left: 3px solid var(--gold); padding: 1.4rem 1.6rem; margin: 2rem 0; }
.callout p:last-child { margin: 0; }

.faq { margin-top: 1rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.4rem 1.2rem 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: 1rem; font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.2rem; }

.sidebar { position: relative; }
.side-card { position: sticky; top: 120px; }
.side-card .box { background: var(--navy); color: rgba(255,255,255,.85); padding: 2rem; }
.side-card .box h3 { color: #fff; font-size: 1.6rem; }
.side-card .box .phone { display: block; font-variant-numeric: lining-nums; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); text-decoration: none; font-weight: 600; margin: .2rem 0 1.2rem; }
.side-card .box .btn { width: 100%; justify-content: center; }
.side-links { margin-top: 1.6rem; padding: 1.6rem 0 0; border-top: 3px solid var(--gold); }
.side-links h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.side-links ul { list-style: none; padding: 0; margin: 0; }
.side-links li { margin: 0; border-bottom: 1px solid var(--line); }
.side-links a { display: block; padding: .6rem 0; text-decoration: none; color: var(--navy); font-size: .95rem; }
.side-links a:hover, .side-links a[aria-current="page"] { color: var(--gold); }

.cta-band { background: var(--cream); padding: clamp(56px, 7vw, 88px) 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 18em; }

/* attorney page */
.bio-grid { display: grid; grid-template-columns: 380px 1fr; gap: clamp(40px, 6vw, 88px); padding-block: clamp(56px, 7vw, 96px); align-items: start; }
.bio-grid .framed { max-width: 380px; }
.cred { margin-top: 2.4rem; }
.cred h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; }
.cred ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.cred li { padding: .45rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .95rem; }

/* practice index cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: #fff; border: 1px solid var(--line); padding: 2rem; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ink); }
.card h3 { font-size: 1.55rem; }
.card p { font-size: .97rem; color: var(--muted); flex: 1; }
.card .more { font-weight: 700; font-size: .85rem; color: var(--navy); }
.card .more::after { content: " \2192"; color: var(--gold); }

/* contact form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1px solid #cfc7b6; background: #fff; border-radius: 2px; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(165,128,47,.18); }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; }
.form .check input { width: auto; margin-top: .3rem; }
.form .check label { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; color: var(--ink); }
.form .radios { display: flex; gap: 1.4rem; }
.form .radios label { display: flex; gap: .4rem; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .95rem; color: var(--ink); }
.form .radios input { width: auto; }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; padding: 1rem 1.2rem; display: none; }
.form-status.ok { display: block; background: #edf3e8; border-left: 3px solid var(--green); }
.form-status.err { display: block; background: #fbeee9; border-left: 3px solid #a0442a; }

.map-frame { border: 0; width: 100%; height: 360px; filter: grayscale(.35); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); font-size: .93rem; }
.site-footer a { color: rgba(255,255,255,.88); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: clamp(56px, 7vw, 88px) 0 3rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand__sub { color: rgba(255,255,255,.55); }
.footer-brand p { margin-top: 1.4rem; max-width: 22em; }
.site-footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.6rem 0 2rem; font-size: .8rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; max-width: 60em; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .main-nav > ul > li > a, .main-nav .nav-toggle-sub { padding: .7em .6em; font-size: .88rem; }
  .brand__name { font-size: 1.4rem; }
  .practice-strip ul { grid-template-columns: repeat(3, 1fr); }
  .practice-strip li:nth-child(3) { border-right: 0; }
  .practice-strip li:nth-child(-n+3) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 1020px) {
  :root { --header-h: 70px; }
  .topbar { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; cursor: pointer; border-radius: 2px;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: transform .2s, background .2s; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
  .nav-open .menu-btn span { background: transparent; }
  .nav-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

  .site-header { backdrop-filter: none; background: var(--paper); }
  .header-inner { gap: .7rem; }
  .header-cta { margin-left: auto; order: 2; }
  .menu-btn { order: 3; }
  .header-call { display: inline-flex; }
  .header-cta .btn { padding: .7em 1em; font-size: .85rem; }

  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    overflow-y: auto; padding: 1rem var(--gutter) 3rem;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .2s, transform .2s, visibility .2s; margin: 0;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a, .main-nav .nav-toggle-sub { width: 100%; justify-content: space-between; padding: 1rem 0; font-size: 1.05rem; }
  .main-nav > ul > li > a::after, .main-nav .nav-toggle-sub::after { display: none; }
  .subnav, .has-sub:hover > .subnav { background: transparent; position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 1rem; display: none; width: auto; min-width: 0; }
  .has-sub.is-open > .subnav { display: block; transform: none; }
  .subnav--mega { grid-template-columns: 1fr; gap: 1rem; }

  .hero::before { inset: 55% 0 0 0; }
  .hero__grid, .feature, .two-up, .page-body, .bio-grid { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .hero__media { max-width: 360px; }
  .reviews, .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 1.8rem 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .side-card { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bio-grid .framed { max-width: 340px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 1.2rem; }
  .brand__sub { display: none; }
  .header-cta .long { display: none; }
  .header-cta .short { display: inline; }
  .header-inner { gap: .5rem; }
  .header-cta { gap: .4rem; }
  .header-cta .btn { padding: .65em .8em; font-size: .82rem; }
  .brand { gap: .5rem; }
  .brand__name { font-size: 1.12rem; }
  .menu-btn { width: 42px; height: 42px; }
  .practice-strip ul { grid-template-columns: 1fr 1fr; }
  .practice-strip li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .practice-strip li:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .practice-strip li:nth-child(even) { border-right: 0; }
  .practice-strip a { padding: 1.1rem 1rem; }
  .reviews, .cards, .reviews--wide, .form, .footer-top { grid-template-columns: 1fr; }
  .framed::before { inset: 14px -14px -14px 14px; }
  .framed--left::before { inset: 14px 14px -14px -14px; }
  .hero__media { margin-right: 14px; }
  .panel { min-height: 300px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
