/* ═══════════════════════════════════════════════════════════
   MUTHONI NDEGWA & CO. ADVOCATES
   Ivory · Ink · Burnished Brass. Clean, professional, light.
   ═══════════════════════════════════════════════════════════ */

:root {
  --ivory: #FBF9F5;
  --ivory-deep: #F4F0E8;
  --ink: #161512;
  --ink-soft: #4A463F;
  --brass: #A37A3E;
  --brass-deep: #8A6430;
  --line: rgba(22, 21, 18, 0.13);
  --line-strong: rgba(22, 21, 18, 0.26);
  --serif-display: "Marcellus", Georgia, serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0, 0.15, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass); color: var(--ivory); }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ── Header ────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem clamp(1.1rem, 4vw, 3rem);
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--brass); }
.brand-name { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name b {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-name span {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.site-nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); }
.site-nav a {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 0;
  position: relative;
  transition: color 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-luxe);
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink); }

/* ── Shared bits ───────────────────────────────── */
.page-main { padding-top: 4.4rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: clamp(1.1rem, 5vw, 3rem); padding-right: clamp(1.1rem, 5vw, 3rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.title-xl {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
}
.title-lg {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: 0.005em;
}
.title-xl em, .title-lg em { color: var(--brass); font-style: normal; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 58ch; }

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 1.8rem;
  border: 1px solid var(--ink);
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--brass); border-color: var(--brass); }

.link-quiet {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.3s, border-color 0.3s;
}
.link-quiet:hover { color: var(--brass); border-color: var(--brass); }

.form-error { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; color: #A33B2E; }

/* ── Hero (home) ───────────────────────────────── */
.hero {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(4.6rem, 10vh, 6.5rem) clamp(1.1rem, 5vw, 3rem) clamp(2.4rem, 6vh, 4rem);
  border-bottom: 1px solid var(--line);
}
.hero .title-xl { max-width: 18ch; }
.hero .lead { margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* ── Practice areas ────────────────────────────── */
.section { padding: clamp(2.3rem, 5.5vh, 4rem) 0; }
.section-tint { background: var(--ivory-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.4rem, 3.2vh, 2.1rem); }
.section-head .lead { margin-top: 1rem; }

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.area-card {
  background: var(--ivory);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.35s;
  position: relative;
}
.area-card:hover { background: var(--ivory-deep); }
.area-num { font-family: var(--sans); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; color: var(--brass); }
.area-name { font-size: 1.14rem; font-weight: 600; line-height: 1.35; }
.area-more {
  margin-top: auto;
  padding-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.area-card:hover .area-more, .area-card:focus-visible .area-more { opacity: 1; transform: translateY(0); }
a.area-card { display: flex; }
a.area-card::after { content: ""; position: absolute; inset: 0; }

/* ── Why ───────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(1.3rem, 3.4vw, 2.4rem); }
.why-item { display: flex; flex-direction: column; gap: 0.6rem; }
.why-item .rule { width: 42px; height: 2px; background: var(--brass); }
.why-item h3 { font-family: var(--sans); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.why-item p { font-size: 1rem; color: var(--ink-soft); }

/* ── CTA band ──────────────────────────────────── */
.cta-band { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.cta-band .lead { max-width: 46ch; }

/* ── Services page ─────────────────────────────── */
.svc-category { border-top: 1px solid var(--line-strong); padding: clamp(1.25rem, 2.8vh, 1.9rem) 0; }
.svc-category:last-child { border-bottom: 1px solid var(--line-strong); }
.svc-cat-head { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.svc-cat-num { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; color: var(--brass); white-space: nowrap; }
.svc-cat-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(1.25rem, 2.5vw, 1.7rem); letter-spacing: 0.01em; }
.svc-cat-link {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.svc-cat-link:hover { color: var(--brass); border-color: var(--brass); }
.svc-list { list-style: none; display: flex; flex-direction: column; }
.svc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.svc-item:last-child { border-bottom: none; }
.svc-name { font-size: 1.04rem; }
.svc-ask {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, color 0.3s;
}
.svc-ask:hover { border-bottom-color: var(--brass); color: var(--brass); }

/* ── Area detail pages ─────────────────────────── */
.area-hero { padding: clamp(1.9rem, 5vh, 3.2rem) 0 clamp(1.4rem, 3.6vh, 2.3rem); border-bottom: 1px solid var(--line); }
.area-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.8rem, 5vw, 3.6rem); padding: clamp(1.7rem, 4.6vh, 3rem) 0; }
.area-body h3 { font-family: var(--serif-display); font-weight: 600; font-size: 1.45rem; margin-bottom: 1rem; }
.area-body p { color: var(--ink-soft); margin-bottom: 1rem; }
.area-side { background: var(--ivory-deep); border-left: 3px solid var(--brass); padding: 1.6rem 1.5rem; align-self: start; }
.area-side b { display: block; font-family: var(--sans); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.area-side ul { list-style: none; }
.area-side li { font-size: 1.02rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.area-side li:last-child { border-bottom: none; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1.4rem; transition: color 0.3s; }
.back-link:hover { color: var(--brass); }

/* ── Team page ─────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.team-photo { position: relative; max-width: 460px; }
.team-photo::before { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 1px solid var(--brass); z-index: -1; }
.team-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.team-role { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin: 0.5rem 0 1.1rem; }
.team-bio p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 52ch; }
.team-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.team-tag { font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 0.95rem; }

/* ── Resources page ────────────────────────────── */
.res-group { border-top: 1px solid var(--line-strong); padding: clamp(1.2rem, 2.6vh, 1.8rem) 0; }
.res-group:last-child { border-bottom: 1px solid var(--line-strong); }
.res-group-title { font-family: var(--serif-display); font-weight: 600; font-size: clamp(1.2rem, 2.3vw, 1.55rem); margin-bottom: 1rem; }
.res-list { list-style: none; columns: 2; column-gap: 3rem; }
.res-list li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.res-list a { display: inline-flex; align-items: baseline; gap: 0.5rem; font-size: 1rem; color: var(--ink); transition: color 0.3s; }
.res-list a svg { flex: none; color: var(--brass); transform: translateY(1px); }
.res-list a:hover { color: var(--brass-deep); }

/* ── Contact page ──────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.2rem, 6vw, 5rem); align-items: start; }
.contact-lines { display: flex; flex-direction: column; margin-top: 1.2rem; }
.contact-line { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line b { font-family: var(--sans); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); }
.contact-line span, .contact-line a { font-size: 1.1rem; }
.contact-line a:hover { color: var(--brass-deep); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field-label { font-family: var(--sans); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--serif-body);
  font-size: 1.12rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 0.45rem 0 0.7rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.35s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--brass); }
.field ::placeholder { color: rgba(22, 21, 18, 0.3); font-style: italic; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }

.btn-spinner { width: 13px; height: 13px; border: 1.6px solid rgba(251, 249, 245, 0.35); border-top-color: var(--ivory); border-radius: 50%; display: none; animation: spin 0.7s linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: flex; flex-direction: column; gap: 0.9rem; padding: 2rem; background: var(--ivory-deep); border-left: 3px solid var(--brass); animation: fadeUp 0.6s var(--ease-out); }
.form-success h3 { font-family: var(--serif-display); font-weight: 600; font-size: 1.45rem; }
.form-success p { color: var(--ink-soft); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ── Legal Assistant (full-screen, ChatGPT-style) ── */
.chat-page { display: flex; flex-direction: column; min-height: 100svh; }
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 4.4rem;
  min-height: 0;
}
.chat-thread { flex: 1; overflow-y: auto; }
.chat-col {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(1.1rem, 3vh, 1.8rem) clamp(1.1rem, 4vw, 1.6rem) 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
}

/* empty / starter state */
.chat-empty {
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.05rem;
  max-width: 560px;
}
.chat-empty-mark { color: var(--brass); }
.chat-empty h1 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.15;
}
.chat-empty h1 em { color: var(--brass); font-style: normal; }
.chat-empty p { color: var(--ink-soft); font-size: 1.05rem; }
.chat-starters { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; }
.chat-chip {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-family: var(--serif-body);
  font-size: 1.02rem;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, transform 0.2s var(--ease-out);
}
.chat-chip:hover { border-color: var(--brass); background: var(--ivory-deep); transform: translateY(-1px); }
.chat-chip span { display: block; font-family: var(--sans); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.25rem; }

/* messages */
.chat-msg { max-width: 85%; padding: 0.9rem 1.1rem; font-size: 1.02rem; line-height: 1.58; }
.chat-msg.user { align-self: flex-end; background: var(--ink); color: var(--ivory); font-family: var(--sans); font-size: 0.92rem; border-radius: 14px 14px 4px 14px; }
.chat-msg.bot { align-self: flex-start; background: var(--ivory-deep); border-left: 3px solid var(--brass); border-radius: 4px 14px 14px 14px; }
.chat-msg.bot .chat-src { display: block; margin-top: 0.55rem; font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-deep); }
.chat-msg.bot .chat-src a { color: var(--brass-deep); border-bottom: 1px solid rgba(138, 100, 48, 0.4); }
.chat-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 0.9rem 1.1rem; background: var(--ivory-deep); border-radius: 4px 14px 14px 14px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--brass); animation: blink 1.2s infinite; }
.chat-typing i:nth-child(2) { animation-delay: 0.2s; }
.chat-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* follow-up suggestions */
.chat-followups { display: flex; flex-wrap: wrap; gap: 0.5rem; align-self: flex-start; }
.chat-followup {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.chat-followup:hover { border-color: var(--brass); color: var(--brass-deep); background: var(--ivory-deep); }

/* docked input bar */
.chat-dock {
  position: sticky;
  bottom: 0;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0.7rem clamp(1.1rem, 4vw, 1.6rem);
}
.chat-dock-inner { max-width: 760px; margin: 0 auto; }
.chat-inputrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  transition: border-color 0.3s;
}
.chat-inputrow:focus-within { border-color: var(--brass); }
.chat-inputrow input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.55rem 0;
  font-family: var(--serif-body);
  font-size: 1.05rem;
  background: transparent;
  color: var(--ink);
}
.chat-inputrow button {
  flex: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s var(--ease-out);
}
.chat-inputrow button:hover { background: var(--brass); transform: scale(1.05); }

/* ── Footer ────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: clamp(1.9rem, 4.6vh, 3rem) clamp(1.1rem, 5vw, 3rem) 1.6rem; }
.footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(1.8rem, 5vw, 4rem); }
.footer-brand { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-brand p { font-size: 0.95rem; color: var(--ink-soft); max-width: 36ch; }
.footer-col b { display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.9rem; }
.footer-col a { display: block; font-size: 0.98rem; color: var(--ink-soft); padding: 0.28rem 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }
.footer-base {
  max-width: 1140px;
  margin: 1.7rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .team-grid, .contact-grid, .area-body { grid-template-columns: 1fr; }
  .team-photo { max-width: 420px; }
  .res-list { columns: 1; }
  .area-side { max-width: 520px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ivory); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem clamp(1.1rem, 5vw, 3rem); border-top: 1px solid var(--line); }
  .site-nav a::after { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .contact-form .btn { width: 100%; }
  .svc-ask { font-size: 0.58rem; }
  .chat-msg { max-width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition-duration: 0.01s !important; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE DESIGN REFRESH
   Refined editorial layout, touch-friendly controls and fluid grids.
   ═══════════════════════════════════════════════════════════ */
:root {
  --surface: #fffdf9;
  --surface-raised: #ffffff;
  --shadow-soft: 0 18px 48px rgba(34, 29, 20, 0.07);
  --shadow-card: 0 10px 28px rgba(34, 29, 20, 0.055);
  --radius-card: 18px;
  --radius-large: 26px;
}

html { scroll-padding-top: 6rem; }
body { min-width: 320px; overflow-x: clip; }
img, svg, iframe { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(163, 122, 62, .48); outline-offset: 3px; }

.site-header {
  min-height: 72px;
  padding-block: .8rem;
  box-shadow: 0 5px 22px rgba(30, 26, 19, .035);
}
.brand { min-width: 0; gap: .75rem; }
.brand > svg { flex: 0 0 auto; width: 34px; height: 34px; }
.brand-name b { font-size: .86rem; letter-spacing: .13em; }
.brand-name span { font-size: .59rem; letter-spacing: .25em; }
.site-nav { align-items: center; gap: clamp(.75rem, 1.8vw, 1.55rem); }
.site-nav a { font-size: .66rem; letter-spacing: .15em; white-space: nowrap; }
.menu-toggle {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: none; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: background .2s, border-color .2s;
}
.menu-toggle:hover { background: var(--ivory-deep); border-color: var(--line-strong); }
.page-main { padding-top: 5.2rem; }
.wrap { width: min(100%, 1200px); }

.hero.wrap {
  position: relative;
  isolation: isolate;
  min-height: clamp(430px, 66svh, 680px);
  margin-top: clamp(1rem, 2.8vw, 2rem);
  margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
  padding: clamp(2rem, 6vw, 5.3rem);
  justify-content: center;
  border: 1px solid rgba(163, 122, 62, .2);
  border-radius: var(--radius-large);
  background:
    radial-gradient(ellipse at 88% 20%, rgba(163, 122, 62, .12), transparent 34%),
    radial-gradient(ellipse at 10% 100%, rgba(163, 122, 62, .07), transparent 35%),
    linear-gradient(135deg, #fffdf9 0%, #f8f4ec 100%);
  box-shadow: var(--shadow-soft);
}
.hero.wrap::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  top: 50%;
  width: clamp(110px, 19vw, 220px);
  aspect-ratio: 1;
  border: 1px solid rgba(163, 122, 62, .22);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 18px rgba(163, 122, 62, .035), 0 0 0 38px rgba(163, 122, 62, .025);
  pointer-events: none;
  z-index: -1;
}
.hero.wrap > * { max-width: min(100%, 760px); }
.hero .title-xl { max-width: 15ch; font-size: clamp(2.7rem, 6.1vw, 5rem); }
.hero .lead { max-width: 62ch; margin-top: 1.35rem; }
.hero-actions { gap: .8rem; margin-top: 2rem; }
.btn {
  min-height: 48px; border-radius: 999px;
  padding: .9rem 1.4rem; letter-spacing: .14em;
  box-shadow: 0 5px 14px rgba(22, 21, 18, .045);
}
.btn:active { transform: translateY(1px); }
.btn-solid { box-shadow: 0 9px 22px rgba(22, 21, 18, .13); }

.section { padding-block: clamp(3.2rem, 6vw, 5.6rem); }
.section-head { max-width: 720px; }
.section-head .lead { margin-top: .9rem; }
.title-xl, .title-lg { text-wrap: balance; }
.lead { line-height: 1.75; }
.area-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 1rem; background: transparent; border: 0;
}
.area-card {
  min-height: 178px; padding: 1.45rem 1.4rem;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.area-card:hover { background: #fff; border-color: rgba(163, 122, 62, .48); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.area-name { font-size: 1.12rem; }
.area-more { opacity: 1; transform: none; }
.section-tint { background: linear-gradient(135deg, #f3efe7, #faf7f1); }
.why-grid { gap: 1rem; }
.why-item {
  min-height: 190px; padding: 1.5rem;
  border: 1px solid rgba(22, 21, 18, .09); border-radius: var(--radius-card);
  background: rgba(255,255,255,.62);
}
.why-item .rule { width: 48px; height: 3px; border-radius: 3px; }
.why-item h3 { letter-spacing: .1em; }
.cta-band {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(163, 122, 62, .22);
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, #f8f4ec, #fffdf9);
  box-shadow: var(--shadow-card);
}

.svc-category {
  margin-block: 1rem; padding: 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.svc-category:first-child { border-top: 1px solid var(--line); }
.svc-category:last-child { border-bottom: 1px solid var(--line); }
.svc-cat-head { align-items: center; }
.svc-item { padding: .75rem .2rem; }
.svc-ask { padding: .55rem .75rem; border: 1px solid rgba(163,122,62,.25); border-radius: 999px; white-space: nowrap; }
.svc-ask:hover { background: var(--ivory-deep); }
.area-hero { padding-top: clamp(2rem, 5vw, 3.6rem); }
.area-body { align-items: start; }
.area-side { border-radius: 0 var(--radius-card) var(--radius-card) 0; box-shadow: var(--shadow-card); }
.team-grid { align-items: center; }
.team-photo { border-radius: 18px; }
.team-photo::before { border-radius: 18px; }
.team-photo img { border-radius: 18px; box-shadow: var(--shadow-soft); }
.team-tags { gap: .6rem; }
.team-tag { background: rgba(255,255,255,.55); }
.res-group { padding-block: 1.55rem; }
.res-list li { padding: .6rem .1rem; }
.res-list a { line-height: 1.5; }

.contact-grid { gap: clamp(2rem, 5vw, 4.5rem); }
.contact-lines { padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.contact-form {
  padding: clamp(1.3rem, 3.5vw, 2.2rem);
  border: 1px solid var(--line); border-radius: var(--radius-card);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-family: var(--sans); font-size: .96rem;
}
.field textarea { min-height: 140px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(163,122,62,.12); }
.field ::placeholder { color: #938d82; font-style: normal; }
.form-success { border-radius: 0 var(--radius-card) var(--radius-card) 0; }

.chat-page { background: #f8f6f1; }
.chat-main { min-height: calc(100svh - 72px); }
.chat-col { width: min(100%, 820px); }
.chat-chip { border-radius: 14px; background: rgba(255,255,255,.78); }
.chat-msg { box-shadow: 0 4px 14px rgba(30,26,19,.035); }
.chat-msg.user { border-radius: 18px 18px 5px 18px; }
.chat-msg.bot { border-radius: 5px 18px 18px 18px; }
.chat-dock { padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
.chat-inputrow { min-height: 56px; box-shadow: 0 8px 24px rgba(30,26,19,.06); }
.chat-inputrow input { min-width: 0; }

.site-footer { background: #f4f0e8; }
.footer-grid { width: min(100%, 1200px); }
.footer-col a { min-height: 34px; display: flex; align-items: center; }
.footer-base { line-height: 1.7; }

@media (max-width: 980px) {
  .site-nav { gap: .8rem; }
  .site-nav a { letter-spacing: .1em; font-size: .62rem; }
  .hero.wrap::after { opacity: .65; right: 3%; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header { min-height: 66px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 1rem; right: 1rem;
    display: none; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: .55rem; border: 1px solid var(--line); border-radius: 16px;
    background: rgba(255,253,249,.98); box-shadow: 0 18px 42px rgba(30,26,19,.14);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 1rem; border-radius: 10px; border: 0; font-size: .72rem; letter-spacing: .12em; }
  .site-nav a:hover, .site-nav a.active { background: var(--ivory-deep); }
  .site-nav a::after { display: none; }
  .page-main { padding-top: 4.9rem; }
  .hero.wrap { min-height: 500px; margin-inline: 1rem; width: calc(100% - 2rem); }
  .hero.wrap::after { width: 130px; top: auto; bottom: 1.2rem; right: 1.5rem; transform: none; opacity: .45; }
  .hero .title-xl { max-width: 14ch; }
  .area-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-grid, .contact-grid, .area-body { grid-template-columns: minmax(0,1fr); }
  .team-photo { width: min(100%, 420px); margin-bottom: .7rem; }
  .contact-lines { margin-bottom: .5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; line-height: 1.65; }
  .site-header { padding-inline: 1rem; }
  .brand > svg { width: 30px; height: 30px; }
  .brand-name b { font-size: .76rem; }
  .brand-name span { font-size: .54rem; letter-spacing: .2em; }
  .page-main { padding-top: 4.5rem; }
  .hero.wrap { min-height: auto; padding: 2.4rem 1.35rem 6.5rem; margin-top: .75rem; border-radius: 20px; }
  .hero .title-xl { font-size: clamp(2.35rem, 12vw, 3.45rem); }
  .hero .lead { font-size: 1rem; margin-top: 1rem; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; margin-top: 1.5rem; }
  .hero-actions .btn, .contact-form .btn { width: 100%; }
  .btn { min-height: 50px; padding-inline: 1rem; font-size: .64rem; letter-spacing: .1em; }
  .section { padding-block: 2.8rem; }
  .section-head { margin-bottom: 1.4rem; }
  .title-lg { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .area-grid, .why-grid { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .area-card { min-height: 140px; padding: 1.2rem; }
  .area-more { padding-top: .4rem; }
  .why-item { min-height: 0; padding: 1.2rem; }
  .cta-band { padding: 2rem 1.2rem; border-radius: 20px; }
  .svc-category { padding: 1.1rem; }
  .svc-cat-head { gap: .55rem; }
  .svc-cat-link { width: 100%; margin-left: 0; }
  .svc-item { align-items: flex-start; }
  .svc-name { font-size: .98rem; }
  .svc-ask { font-size: .56rem; letter-spacing: .08em; }
  .res-list { columns: 1; }
  .contact-form { padding: 1.2rem; }
  .contact-line span, .contact-line a { overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-brand { grid-column: auto; }
  .footer-base { flex-direction: column; align-items: flex-start; font-size: .6rem; }
  .chat-col { padding-inline: .9rem; }
  .chat-msg { max-width: 96%; font-size: .95rem; }
  .chat-inputrow { border-radius: 16px; padding-left: .85rem; }
  .chat-inputrow button { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* MINIMAL VISUAL CLEANUP: flatter surfaces, restrained corners, no decorative gradients. */
:root {
  --shadow-soft: none;
  --shadow-card: none;
  --radius-card: 3px;
  --radius-large: 3px;
}
body { background: var(--ivory); }
.site-header { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(251,249,245,.98); }
.hero.wrap {
  border-radius: 3px;
  border: 1px solid var(--line);
  background: #f4f0e8;
  box-shadow: none;
}
.hero.wrap::after { display: none; }
.area-card, .why-item, .svc-category, .contact-lines, .contact-form, .cta-band,
.team-photo, .team-photo img, .menu-toggle, .site-nav, .chat-chip, .chat-msg,
.chat-inputrow, .field input, .field select, .field textarea, .svc-ask {
  border-radius: 3px;
  box-shadow: none;
}
.area-card, .why-item, .svc-category, .contact-lines, .contact-form { background: transparent; }
.area-card:hover { transform: none; box-shadow: none; }
.section-tint, .cta-band { background: #f4f0e8; }
.cta-band { border-radius: 3px; box-shadow: none; }
.site-nav { box-shadow: none; }
.site-nav a { border-radius: 2px; }
.chat-msg.user, .chat-msg.bot { border-radius: 3px; }
.chat-inputrow { box-shadow: none; }
.btn { border-radius: 3px; box-shadow: none; }
.form-success { box-shadow: none; }
@media (max-width: 760px) {
  .site-nav { background: var(--ivory); border-radius: 3px; box-shadow: none; }
  .site-nav a { border-radius: 2px; }
}

/* Compact, responsive refinements and Client Portal navigation */
.site-header { gap: clamp(.8rem, 2vw, 1.8rem); padding-block: .7rem; }
.site-nav { gap: clamp(.55rem, 1.25vw, 1.25rem); }
.site-nav a { white-space: nowrap; }
.site-nav .nav-portal { color: #fff; background: var(--ink); border: 1px solid var(--ink); padding: .65rem 1rem; margin-left: .25rem; letter-spacing: .09em; }
.site-nav .nav-portal:hover, .site-nav .nav-portal:focus-visible { color: #fff; background: var(--brass); border-color: var(--brass); }
.hero.wrap { max-width: 1160px; width: calc(100% - 2rem); margin: 1rem auto 1.5rem; padding: clamp(1.35rem, 3vw, 2.8rem); min-height: 0; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .85fr); align-items: center; gap: clamp(1.25rem, 4vw, 3.4rem); }
.hero-copy { min-width: 0; }
.hero-copy .title-xl { max-width: 12ch; margin-top: .45rem; }
.hero-copy .lead { max-width: 60ch; }
.hero-visual { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #eee8dc; border: 1px solid var(--line); }
.hero-visual img { display: block; width: 100%; height: clamp(280px, 34vw, 430px); object-fit: cover; }
.hero-visual-caption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; background: rgba(251,249,245,.94); color: var(--ink); font-family: var(--sans); }
.hero-visual-caption span { font-size: .77rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hero-visual-caption small { color: var(--ink-soft); font-size: .72rem; }
.home-notice { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; margin-top: .5rem; margin-bottom: .8rem; border: 1px solid var(--line-strong); background: #f4f0e8; color: var(--ink); font-size: .9rem; }
.home-notice[hidden] { display: none; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex: 0 0 auto; }
.why-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.why-grid { min-width: 0; }
.section-visual { margin: 0; min-width: 0; }
.section-visual img { display: block; width: 100%; height: auto; max-height: 390px; object-fit: cover; }
.section-visual figcaption { margin-top: .55rem; color: var(--ink-soft); font: 600 .68rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cta-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(230px, .75fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.cta-copy { min-width: 0; }
.cta-visual { display: block; width: 100%; max-height: 330px; object-fit: cover; }
.services-intro-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .7fr); align-items: center; gap: clamp(1rem, 4vw, 3rem); }
.services-intro-layout img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.section { padding-block: clamp(2rem, 4vw, 3rem); }
.section-head { margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.wrap { padding-left: clamp(1rem, 3vw, 2.2rem); padding-right: clamp(1rem, 3vw, 2.2rem); }
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(230px, .8fr); gap: 1.2rem; }
  .hero-visual img { height: 320px; }
  .why-layout { grid-template-columns: minmax(0, 1fr) minmax(200px, .7fr); }
}
@media (max-width: 760px) {
  .site-nav { max-height: calc(100vh - 5rem); overflow-y: auto; }
  .site-nav .nav-portal { margin: .35rem .7rem .7rem; text-align: center; }
  .hero.wrap { width: calc(100% - 1rem); margin: .5rem auto 1rem; padding: 1.2rem; }
  .hero-layout, .why-layout, .cta-layout, .services-intro-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; }
  .hero-visual img { height: clamp(210px, 55vw, 320px); }
  .hero-copy .title-xl { max-width: 16ch; }
  .section-visual { max-width: 520px; margin-inline: auto; }
  .section-visual img { max-height: 300px; }
  .cta-visual { max-height: 230px; }
  .services-intro-layout img { max-height: 220px; }
}
@media (max-width: 560px) {
  .site-header { padding-inline: .8rem; }
  .brand-name b { font-size: .7rem; }
  .brand-name span { font-size: .5rem; }
  .hero.wrap { padding: 1rem; border-radius: 3px; }
  .hero-visual img { height: 220px; }
  .hero-visual-caption { left: .55rem; right: .55rem; bottom: .55rem; padding: .55rem .65rem; }
  .hero-visual-caption small { display: none; }
  .section { padding-block: 2.1rem; }
  .home-notice { margin-inline: .5rem; }
}


/* =====================================================================
   Unified site layout — one header, one content width, one spacing scale.
   Kept as the final layer so every public and portal page uses the same grid.
   ===================================================================== */
:root {
  --site-content-width: 1240px;
  --site-gutter: clamp(16px, 2.4vw, 30px);
  --portal-content-width: var(--site-content-width);
  --portal-gutter: var(--site-gutter);
}

html { scroll-padding-top: 5.25rem; }
body { min-width: 320px; overflow-x: clip; }
img, svg, iframe { max-width: 100%; }

.site-header {
  min-height: 70px;
  padding: .7rem max(var(--site-gutter), calc((100vw - var(--site-content-width)) / 2 + var(--site-gutter)));
  gap: 1.25rem;
  background: rgba(251,249,245,.98);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.brand { flex: 0 1 auto; min-width: 0; gap: .65rem; }
.brand > svg { width: 32px; height: 32px; flex: 0 0 32px; }
.brand-name b { font-size: .8rem; letter-spacing: .12em; }
.brand-name span { font-size: .55rem; letter-spacing: .22em; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.65rem, 1.35vw, 1.15rem); min-width: 0; }
.site-nav a { font-size: .63rem; letter-spacing: .11em; white-space: nowrap; }
.site-nav .nav-portal {
  margin-left: .15rem;
  padding: .62rem .82rem;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  letter-spacing: .08em;
}
.site-nav .nav-portal:hover, .site-nav .nav-portal:focus-visible { color: #fff; background: var(--brass-deep); border-color: var(--brass-deep); }
.menu-toggle { display: none; }

.page-main { padding-top: 76px; }
.wrap {
  width: min(100%, var(--site-content-width));
  max-width: var(--site-content-width);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

/* Home hero: compact, balanced copy and the existing local portrait. */
.hero.wrap {
  display: block;
  width: min(calc(100% - 2 * var(--site-gutter)), 1240px);
  max-width: 1240px;
  min-height: 0;
  margin: 16px auto 24px;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ivory-deep);
  box-shadow: none;
}
.hero.wrap::after { display: none; }
.hero-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .82fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.hero-copy { min-width: 0; }
.hero-copy .eyebrow { margin-bottom: .7rem; }
.hero-copy .title-xl { max-width: 13ch; margin-top: .1rem; font-size: clamp(2.45rem, 4.8vw, 4.15rem); line-height: 1.02; }
.hero-copy .lead { max-width: 58ch; margin-top: .9rem; font-size: clamp(.98rem, 1.2vw, 1.08rem); line-height: 1.65; }
.hero-actions { gap: .65rem; margin-top: 1.2rem; }
.hero-visual { min-width: 0; max-width: 100%; height: 100%; max-height: 430px; margin: 0; overflow: hidden; border: 1px solid var(--line); background: #e9e2d6; }
.hero-visual img { display: block; width: 100%; height: clamp(280px, 31vw, 410px); object-fit: cover; object-position: center 18%; }
.hero-visual-caption { left: .75rem; right: .75rem; bottom: .75rem; padding: .65rem .8rem; }
.hero-visual-caption span { font-size: .68rem; }
.hero-visual-caption small { font-size: .65rem; }

/* Predictable vertical rhythm for every content page. */
.section { padding-block: clamp(28px, 3.6vw, 48px); }
.section-head { max-width: 800px; margin-bottom: clamp(16px, 2vw, 24px); }
.section-head .eyebrow { margin-bottom: .65rem; }
.section-head .lead { margin-top: .75rem; }
.title-lg { font-size: clamp(1.9rem, 3.7vw, 2.75rem); }
.area-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; }
.area-card { min-width: 0; min-height: 138px; padding: 1.15rem 1.1rem; }
.why-layout { display: block; }
.why-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px, 2.2vw, 26px); }
.why-item { min-width: 0; padding: .15rem 0; }
.why-item p { font-size: .94rem; line-height: 1.62; }
.cta-layout { display: block; }
.cta-band { padding: clamp(24px, 3.5vw, 42px); gap: .9rem; }
.cta-band .lead { max-width: 62ch; }
.home-notice { width: min(calc(100% - 2 * var(--site-gutter)), 1240px); margin: 0 auto 12px; }
.services-intro-copy { display: block; max-width: 850px; }
.svc-category { padding-block: 1.15rem; }
.area-hero { padding-block: clamp(24px, 3.5vw, 42px); }
.area-hero .wrap { padding-top: 0; padding-bottom: 0; }
.area-body { width: min(100%, var(--site-content-width)); margin-inline: auto; padding: 22px var(--site-gutter) 44px; }

.site-footer { padding: 30px var(--site-gutter) 22px; }
.footer-grid, .footer-base {
  width: min(100%, var(--site-content-width));
  max-width: var(--site-content-width);
  margin-inline: auto;
}
.footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: clamp(18px, 3vw, 42px); }
.footer-base { margin-top: 22px; padding-top: 14px; }

/* Sections that follow the fixed header on non-home pages. */
body > .section:first-of-type { padding-top: calc(70px + clamp(24px, 3vw, 36px)); }
body > .area-hero:first-of-type { padding-top: calc(70px + clamp(24px, 3vw, 36px)); }
body > .chat-main:first-of-type { padding-top: 78px; }

@media (max-width: 1040px) {
  .site-header { gap: .8rem; }
  .site-nav { gap: .55rem; }
  .site-nav a { font-size: .59rem; letter-spacing: .08em; }
  .brand-name b { font-size: .74rem; }
  .brand-name span { font-size: .51rem; letter-spacing: .18em; }
  .area-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .why-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .site-header { min-height: 66px; padding: .55rem var(--site-gutter); }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 3px; background: transparent; }
  .site-nav {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 70px); overflow-y: auto; padding: 8px var(--site-gutter) 12px;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: var(--ivory); box-shadow: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem .25rem; border-top: 1px solid var(--line); font-size: .7rem; letter-spacing: .1em; }
  .site-nav a::after { display: none; }
  .site-nav .nav-portal { margin: .55rem 0 0; padding: .8rem 1rem; text-align: center; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr); gap: 18px; }
  .hero-visual img { height: clamp(260px, 38vw, 340px); }
  .area-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  body > .section:first-of-type { padding-top: calc(66px + 22px); }
  body > .area-hero:first-of-type { padding-top: calc(66px + 22px); }
}
@media (max-width: 640px) {
  :root { --site-gutter: 15px; }
  .page-main { padding-top: 68px; }
  .hero.wrap { width: calc(100% - 2 * var(--site-gutter)); margin: 10px auto 18px; padding: 15px; }
  .hero-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .hero-visual { order: -1; max-height: none; }
  .hero-visual img { height: clamp(220px, 62vw, 310px); object-position: center 18%; }
  .hero-copy .title-xl { max-width: 15ch; font-size: clamp(2.25rem, 10vw, 3.2rem); }
  .hero-copy .lead { font-size: .98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .section { padding-block: 26px; }
  .section-head { margin-bottom: 15px; }
  .area-grid, .why-grid { grid-template-columns: minmax(0,1fr); }
  .area-card { min-height: auto; padding: 1rem; }
  .why-item { padding: .8rem 0; }
  .cta-band { padding: 22px 16px; }
  .area-body { padding-top: 18px; padding-bottom: 30px; }
  .svc-category { padding-inline: 0; }
  .svc-cat-head { gap: .45rem; }
  .svc-cat-link { width: auto; margin-left: auto; }
  .site-footer { padding: 24px var(--site-gutter) 18px; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 14px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; align-items: flex-start; font-size: .58rem; }
}
@media (max-width: 400px) {
  .brand-name b { font-size: .68rem; }
  .brand-name span { font-size: .47rem; letter-spacing: .14em; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}


/* Final layout system: consistent rhythm, calm page widths and a balanced home hero. */
:root {
  --site-content-width: 1280px;
  --site-gutter: clamp(18px, 3.2vw, 38px);
}
.site-header {
  min-height: 72px;
  padding-inline: max(var(--site-gutter), calc((100vw - var(--site-content-width)) / 2 + var(--site-gutter)));
}
.page-main { padding-top: 82px; }
.wrap { width: min(100%, var(--site-content-width)); padding-inline: var(--site-gutter); }
.hero.wrap {
  width: min(calc(100% - 2 * var(--site-gutter)), var(--site-content-width));
  margin: 22px auto 34px;
  padding: clamp(24px, 3.2vw, 46px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ivory-deep);
}
.hero-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  align-items: center;
  gap: clamp(26px, 4vw, 54px);
}
.hero-copy { max-width: 690px; }
.hero-copy .eyebrow {
  margin: 0 0 16px;
  color: var(--brass-deep);
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .16em;
}
.hero-copy .title-xl {
  max-width: 12.5ch;
  margin: 0;
  font-size: clamp(2.65rem, 4.6vw, 4.35rem);
  line-height: .99;
  letter-spacing: -.025em;
}
.hero-copy .lead {
  max-width: 55ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.72;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}
.hero-actions .btn { min-height: 50px; padding: .95rem 1.25rem; letter-spacing: .12em; font-size: .66rem; }
.hero-visual {
  position: relative;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  align-self: stretch;
  min-width: 0;
  height: auto;
  max-height: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(22,21,18,.15);
  background: #e8e0d3;
}
.hero-visual img {
  width: 100%;
  height: clamp(330px, 35vw, 455px);
  object-fit: cover;
  object-position: center 20%;
}
.hero-visual-caption {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.hero-person, .hero-caption-note { display: grid; gap: 2px; min-width: 0; }
.hero-person strong, .hero-caption-note strong {
  color: var(--ink);
  font: 700 .76rem var(--sans);
  letter-spacing: .01em;
}
.hero-person small, .hero-caption-note small { color: var(--ink-soft); font: 500 .67rem/1.45 var(--sans); }
.hero-caption-note { text-align: right; }
.hero-caption-note strong { color: var(--brass-deep); }
.section { padding-block: clamp(38px, 4vw, 56px); }
.section-head { margin-bottom: 24px; }
.site-footer { padding-block: 34px 22px; }
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .85fr); gap: 22px; }
  .hero-visual img { height: clamp(300px, 40vw, 370px); }
  .hero-copy .title-xl { font-size: clamp(2.5rem, 5vw, 3.5rem); }
}
@media (max-width: 760px) {
  .page-main { padding-top: 72px; }
  .hero.wrap { margin: 14px auto 22px; padding: 20px; }
  .hero-layout { grid-template-columns: 1fr; gap: 22px; }
  .hero-visual { order: 0; }
  .hero-visual img { height: clamp(260px, 62vw, 380px); }
  .hero-copy .title-xl { max-width: 15ch; font-size: clamp(2.4rem, 8vw, 3.5rem); }
  .hero-copy .lead { max-width: 64ch; }
  .hero-actions { gap: 10px; }
}
@media (max-width: 560px) {
  :root { --site-gutter: 14px; }
  .site-header { min-height: 64px; padding-inline: 14px; }
  .hero.wrap { width: calc(100% - 2 * var(--site-gutter)); padding: 15px; margin: 10px auto 18px; }
  .hero-layout { gap: 17px; }
  .hero-visual img { height: 250px; }
  .hero-visual-caption { padding: 12px; gap: 8px; }
  .hero-person strong, .hero-caption-note strong { font-size: .68rem; }
  .hero-person small, .hero-caption-note small { font-size: .59rem; }
  .hero-copy .title-xl { font-size: clamp(2.2rem, 10.6vw, 3.1rem); }
  .hero-actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin-top: 20px; }
  .hero-actions .btn { width: 100%; }
  .section { padding-block: 30px; }
}


/* Homepage hero caption: keep the image message concise; the founder's name and role are on the Team page. */
.hero-visual-caption {
  justify-content: flex-start;
}
.hero-caption-note {
  min-width: 0;
  text-align: left;
}


/* User-selected legal-library photograph: preserve the supplied 740 x 404 landscape ratio. */
.hero-layout { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); align-items: center; }
.hero-visual { display: flex; flex-direction: column; justify-content: center; align-self: center; width: 100%; max-width: 740px; height: auto; max-height: none; overflow: hidden; }
.hero-visual img { display: block; width: 100%; height: auto !important; aspect-ratio: 740 / 404; object-fit: cover; object-position: center; }
.hero-visual-caption { width: 100%; flex: 0 0 auto; }
@media (max-width: 760px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; max-width: 740px; }
  .hero-visual img { width: 100%; height: auto !important; aspect-ratio: 740 / 404; }
}


/* =====================================================================
   FINAL EDITORIAL DESIGN SYSTEM
   Draws on the invitation microsite: ivory paper, jurist ink, brass rules,
   Marcellus display type, Source Serif copy and Manrope interface labels.
   Keep layouts list-led, restrained and free of oversized blank spaces.
   ===================================================================== */
:root {
  --ivory: #FBF9F5;
  --ivory-deep: #F4F0E8;
  --ink: #121212;
  --ink-soft: #4A463F;
  --brass: #A37A3E;
  --brass-deep: #8A6430;
  --line: rgba(18,18,18,.14);
  --line-strong: rgba(18,18,18,.28);
  --serif-display: "Marcellus", Georgia, serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
  --site-content-width: 1340px;
  --site-gutter: clamp(16px, 3vw, 38px);
  --radius-card: 2px;
  --radius-large: 2px;
  --shadow-soft: none;
  --shadow-card: none;
}
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif-body);
  line-height: 1.62;
  min-width: 320px;
  overflow-x: hidden;
}
img { max-width: 100%; }
.site-header {
  min-height: 72px;
  padding: .65rem max(var(--site-gutter), calc((100vw - var(--site-content-width))/2 + var(--site-gutter)));
  background: rgba(251,249,245,.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { gap: .7rem; color: var(--brass); }
.brand > svg { flex: 0 0 30px; width: 30px; height: 30px; }
.brand-name b { font-size: .78rem; letter-spacing: .13em; }
.brand-name span { font-size: .55rem; letter-spacing: .23em; }
.site-nav { align-items: center; gap: clamp(.8rem, 1.65vw, 1.5rem); }
.site-nav a {
  color: var(--ink-soft);
  font: 600 .64rem/1.4 var(--sans);
  letter-spacing: .14em;
  white-space: nowrap;
}
.site-nav a::after { background: var(--brass); height: 1px; }
.site-nav .nav-portal {
  padding: .65rem .95rem;
  border: 1px solid var(--ink);
  color: var(--ivory);
  background: var(--ink);
  margin-left: .15rem;
  transition: background .25s ease, border-color .25s ease;
}
.site-nav .nav-portal::after { display: none; }
.site-nav .nav-portal:hover, .site-nav .nav-portal:focus-visible {
  color: #fff; background: var(--brass-deep); border-color: var(--brass-deep);
}
.page-main { padding-top: 76px; }
.wrap {
  width: min(100%, var(--site-content-width));
  max-width: var(--site-content-width);
  padding-inline: var(--site-gutter);
}
.hero.wrap {
  width: min(calc(100% - 2 * var(--site-gutter)), var(--site-content-width));
  max-width: var(--site-content-width);
  min-height: 0;
  margin: 14px auto 26px;
  padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ivory-deep);
  box-shadow: none;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr);
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}
.hero-copy { max-width: 700px; min-width: 0; }
.hero-copy .eyebrow {
  margin: 0 0 .9rem;
  color: var(--brass-deep);
  font: 700 .66rem/1.55 var(--sans);
  letter-spacing: .19em;
}
.hero-copy .title-xl {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(2.7rem, 4.25vw, 4.7rem)/1.04 var(--serif-display);
  letter-spacing: .005em;
}
.hero-copy .lead {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font: 400 clamp(1rem, 1.15vw, 1.1rem)/1.66 var(--serif-body);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-top: 1.45rem; }
.hero-actions .btn, .btn {
  min-height: 46px;
  padding: .82rem 1.15rem;
  border-radius: 0;
  font: 700 .64rem/1.2 var(--sans);
  letter-spacing: .14em;
  box-shadow: none;
}
.btn-solid { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--brass-deep); border-color: var(--brass-deep); }
.hero-visual {
  display: block;
  align-self: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ivory);
  box-shadow: none;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 740 / 404;
  object-fit: cover;
  object-position: center;
}
.hero-visual-caption {
  position: static;
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: flex-start;
  padding: .7rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.hero-caption-note { display: grid; gap: .12rem; text-align: left; }
.hero-caption-note strong { color: var(--ink); font: 700 .7rem var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.hero-caption-note small { color: var(--ink-soft); font: 500 .7rem var(--sans); }
.section { padding-block: clamp(34px, 4.2vw, 56px); }
.section-head { margin-bottom: clamp(16px, 2vw, 24px); }
.section-head .eyebrow { margin-bottom: .6rem; }
.title-lg, .title-md, .title-xl { font-family: var(--serif-display); }
.section-tint { background: var(--ivory-deep); border-block: 1px solid var(--line); }
/* Home practice areas become a clear numbered list, like the invitation details. */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}
.area-card {
  display: grid;
  grid-template-columns: 3.1rem minmax(0,1fr) auto;
  align-items: center;
  min-height: 0;
  gap: 1rem;
  padding: .9rem .35rem;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.area-card:hover, .area-card:focus-visible { background: rgba(255,255,255,.52); padding-left: .7rem; }
.area-num { color: var(--brass-deep); font: 700 .68rem var(--sans); letter-spacing: .16em; }
.area-name { font: 400 clamp(1.05rem, 1.5vw, 1.25rem)/1.35 var(--serif-display); }
.area-more { opacity: 1; transform: none; margin: 0; padding: 0; color: var(--brass-deep); font: 700 .61rem var(--sans); letter-spacing: .15em; }
.why-grid { gap: clamp(18px, 3vw, 34px); }
.why-item { padding: .5rem 0; border-top: 1px solid var(--line-strong); }
.why-item .rule { width: 34px; height: 1px; border-radius: 0; }
.why-item h3 { font: 700 .7rem var(--sans); letter-spacing: .13em; }
.why-item p { color: var(--ink-soft); font-size: .96rem; line-height: 1.65; }
.cta-band { border: 1px solid var(--line-strong); border-radius: 0; box-shadow: none; background: var(--ivory-deep); }
.svc-category { padding-block: 1.35rem; border-color: var(--line-strong); }
.svc-category:first-child { border-top-color: var(--line-strong); }
.svc-cat-title { font-family: var(--serif-display); font-weight: 400; }
.svc-list { border-top: 1px solid var(--line); }
.svc-item { padding: .65rem .3rem; border-bottom: 1px solid var(--line); }
.svc-ask { border-radius: 0; font-family: var(--sans); }
.res-group { padding-block: 1.3rem; border-color: var(--line-strong); }
.res-list li { padding: .48rem .1rem; border-bottom: 1px solid var(--line); }
.res-list a { font-family: var(--serif-body); }
.area-hero { padding-block: 30px 22px; border-bottom: 1px solid var(--line-strong); }
.area-body { padding-block: 22px 42px; }
.area-side { border: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
.team-grid { display: block; max-width: 900px; }
.team-photo { display: none !important; }
.team-bio { max-width: 76ch; }
.team-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.team-tag { border: 1px solid var(--line); border-radius: 0; background: transparent; padding: .4rem .65rem; font: 700 .62rem var(--sans); letter-spacing: .06em; }
.site-footer { padding: 30px var(--site-gutter) 20px; background: var(--ivory-deep); border-top: 1px solid var(--line-strong); }
.footer-grid, .footer-base { width: min(100%, var(--site-content-width)); max-width: var(--site-content-width); margin-inline: auto; }
.footer-grid { gap: clamp(18px, 3vw, 42px); }
.footer-base { margin-top: 20px; padding-top: 13px; }
@media (max-width: 900px) {
  .site-header { min-height: 66px; padding-inline: var(--site-gutter); }
  .menu-toggle { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
  .site-nav { top: 100%; left: 0; right: 0; padding: 8px var(--site-gutter) 14px; background: var(--ivory); border-bottom: 1px solid var(--line-strong); box-shadow: none; }
  .site-nav a { padding: .82rem .25rem; border-top: 1px solid var(--line); font-size: .68rem; }
  .site-nav .nav-portal { text-align: center; margin: .55rem 0 0; padding: .78rem 1rem; }
  .hero-layout { grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: 20px; }
}
@media (max-width: 760px) {
  .page-main { padding-top: 70px; }
  .hero.wrap { margin: 10px auto 18px; padding: 18px; }
  .hero-layout { grid-template-columns: 1fr; gap: 18px; }
  .hero-visual { order: 0; }
  .hero-visual img { width: 100%; height: auto !important; aspect-ratio: 740 / 404; }
  .hero-copy .title-xl { max-width: 14ch; font-size: clamp(2.5rem, 9vw, 3.7rem); }
  .hero-actions { gap: .6rem; }
  .section { padding-block: 28px; }
  .area-grid { grid-template-columns: 1fr; }
  .area-card { grid-template-columns: 2.3rem minmax(0,1fr) auto; gap: .65rem; padding-block: .8rem; }
  .area-more { font-size: .56rem; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  :root { --site-gutter: 14px; }
  .hero.wrap { width: calc(100% - 2 * var(--site-gutter)); padding: 14px; }
  .hero-copy .title-xl { font-size: clamp(2.25rem, 10vw, 3.1rem); line-height: 1.03; }
  .hero-copy .lead { font-size: .98rem; margin-top: .8rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-visual-caption { min-height: 52px; padding: .6rem .75rem; }
  .area-card { grid-template-columns: 2rem minmax(0,1fr); }
  .area-more { grid-column: 2; margin-top: -.3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

/* Final compact editorial layout shared with the invitation microsite. */
:root {
  --site-content-width: 1440px;
  --site-gutter: clamp(14px, 2.1vw, 30px);
  --serif-display: "Marcellus", Georgia, serif;
  --serif-body: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", sans-serif;
}

html { scroll-padding-top: 78px; }
body { font-family: var(--serif-body); }
.site-header {
  min-height: 70px;
  padding-inline: max(var(--site-gutter), calc((100vw - var(--site-content-width))/2 + var(--site-gutter)));
}
.wrap {
  width: min(100%, var(--site-content-width));
  max-width: var(--site-content-width);
  padding-inline: var(--site-gutter);
}
.page-main { padding-top: 70px; }
.hero.wrap {
  width: min(calc(100% - 2 * var(--site-gutter)), var(--site-content-width));
  max-width: var(--site-content-width);
  margin: 10px auto 18px;
  padding: clamp(16px, 1.9vw, 26px);
  border: 1px solid var(--line-strong);
  background: var(--ivory-deep);
}
.hero-layout {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
}
.hero-copy { max-width: none; padding: 8px 0; }
.hero-copy .eyebrow {
  margin-bottom: .8rem;
  font-size: .63rem;
  letter-spacing: .16em;
}
.hero-copy .title-xl {
  max-width: 12ch;
  font-size: clamp(2.55rem, 4.2vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.hero-copy .lead {
  max-width: 52ch;
  margin-top: .85rem;
  font-size: clamp(.98rem, 1.12vw, 1.08rem);
  line-height: 1.62;
}
.hero-actions { margin-top: 1.15rem; gap: .55rem; }
.hero-actions .btn, .btn { min-height: 44px; padding: .78rem 1rem; }
.hero-visual {
  width: 100%;
  max-width: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: var(--ivory);
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 740 / 404;
  object-fit: cover;
  object-position: center;
}
.hero-visual-caption {
  min-height: 52px;
  padding: .55rem .85rem;
  background: var(--ivory);
  border-top: 1px solid var(--line);
}
.hero-caption-note { gap: .08rem; }
.hero-caption-note strong { font-size: .63rem; letter-spacing: .14em; }
.hero-caption-note small { font-size: .67rem; }
.section { padding-block: clamp(28px, 3.2vw, 44px); }
.section-head { margin-bottom: 17px; }
.section-head .lead { max-width: 68ch; }
.section-tint { background: var(--ivory-deep); }
.area-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
}
.area-card {
  display: grid;
  grid-template-columns: 2.8rem minmax(0,1fr) auto;
  align-items: center;
  min-height: 0;
  padding: .76rem .25rem;
  gap: .8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.area-card:hover, .area-card:focus-visible { padding-left: .55rem; background: rgba(255,255,255,.55); }
.area-num { font: 700 .64rem/1.3 var(--sans); letter-spacing: .15em; color: var(--brass-deep); }
.area-name { font: 400 clamp(1rem,1.38vw,1.2rem)/1.35 var(--serif-display); }
.area-more { display: inline-block; font: 700 .57rem/1.3 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--brass-deep); }
.why-grid { gap: 1rem clamp(20px,2.5vw,34px); }
.why-item { padding: .7rem 0; border-top: 1px solid var(--line-strong); }
.why-item h3 { font: 700 .67rem/1.4 var(--sans); letter-spacing: .12em; }
.why-item p { margin-top: .35rem; font-size: .94rem; }
.cta-band { padding: clamp(20px,2.4vw,32px); }
.svc-category, .res-group { padding-block: 1.05rem; }
.area-hero { padding-block: 22px 17px; }
.area-body { padding-block: 16px 34px; }
.site-footer { padding-block: 24px 17px; }
.footer-base { margin-top: 14px; padding-top: 10px; }

@media (min-width: 1500px) {
  .hero-layout { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
}
@media (max-width: 900px) {
  .site-header { min-height: 66px; }
  .hero-layout { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: 17px; }
  .hero-copy .title-xl { font-size: clamp(2.25rem, 4.5vw, 3.4rem); }
}
@media (max-width: 760px) {
  .page-main { padding-top: 66px; }
  .hero.wrap { margin: 8px auto 14px; padding: 14px; }
  .hero-layout { grid-template-columns: 1fr; gap: 14px; }
  .hero-visual { order: -1; }
  .hero-visual img { width: 100%; height: auto !important; aspect-ratio: 740 / 404; }
  .hero-copy { padding: 2px 0 5px; }
  .hero-copy .title-xl { max-width: 15ch; font-size: clamp(2.45rem, 8.4vw, 3.6rem); }
  .hero-copy .lead { max-width: 66ch; }
  .section { padding-block: 25px; }
  .area-card { grid-template-columns: 2.2rem minmax(0,1fr) auto; padding-block: .72rem; }
  .footer-grid { gap: 16px; }
}
@media (max-width: 540px) {
  :root { --site-gutter: 13px; }
  .hero.wrap { width: calc(100% - 2 * var(--site-gutter)); padding: 12px; }
  .hero-copy .eyebrow { font-size: .58rem; letter-spacing: .12em; }
  .hero-copy .title-xl { font-size: clamp(2.2rem, 9.3vw, 3rem); }
  .hero-copy .lead { font-size: .97rem; line-height: 1.58; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
  .hero-actions .btn { width: 100%; min-height: 44px; padding-inline: .55rem; font-size: .56rem; letter-spacing: .09em; }
  .hero-visual-caption { min-height: 46px; padding: .48rem .65rem; }
  .area-card { grid-template-columns: 1.9rem minmax(0,1fr); gap: .6rem; }
  .area-more { grid-column: 2; margin-top: -.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Homepage hero repair: the layout itself must span the full hero width. */
.hero.wrap > .hero-layout {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  width: 100%;
  gap: clamp(18px, 2.3vw, 34px);
}
.hero-copy { min-width: 0; }
.hero-visual {
  width: 100%;
  min-width: 0;
  height: auto;
  max-height: none;
  align-self: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-visual img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 740 / 404;
  object-fit: cover;
  object-position: center;
}
.hero-visual-caption { position: static; width: 100%; flex: 0 0 auto; }

/* Catalogue search controls shared by Services and Resources. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.catalog-search {
  width: min(100%, 780px);
  margin: 1.5rem 0 1.1rem;
}
.catalog-search-field {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 54px;
  padding: 0 .9rem;
  border: 1px solid var(--line-strong);
  background: var(--surface, #fff);
  color: var(--ink-soft);
}
.catalog-search-field:focus-within {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(163,122,62,.1);
}
.catalog-search-field > svg { flex: 0 0 auto; }
.catalog-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: .65rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 500 .92rem var(--sans);
  box-shadow: none;
}
.catalog-search-field input:focus { outline: 0; box-shadow: none; }
.catalog-search-field input::placeholder { color: #8b857a; }
.catalog-search-clear {
  flex: 0 0 auto;
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font: 700 .62rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.catalog-search-status {
  margin: .55rem 0 0;
  color: var(--ink-soft);
  font: 500 .72rem/1.5 var(--sans);
}
.catalog-empty {
  margin: 1.2rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font: 500 .9rem/1.5 var(--sans);
}
.svc-category[hidden], .svc-item[hidden], .res-group[hidden], .catalog-empty[hidden],
.catalog-search-clear[hidden] { display: none !important; }

/* Always-visible Legal Assistant shortcut on non-chat pages. */
.mn-assistant-fab {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 1px solid var(--brass-deep);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20,18,14,.18);
  font: 700 .66rem var(--sans);
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.mn-assistant-fab:hover { background: #2b2924; transform: translateY(-2px); }
.mn-assistant-fab svg { flex: 0 0 auto; }
@media (max-width: 760px) {
  .hero-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { width: 100%; max-width: none; align-self: stretch; }
  .catalog-search { margin-top: 1rem; }
  .mn-assistant-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 44px; padding: .7rem .85rem; }
}


/* Homepage: refined, editorial treatment for the four firm values. */
.why-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(163, 122, 62, .095), transparent 25rem),
    linear-gradient(135deg, #f1ece2 0%, #faf8f3 58%, #f2ede4 100%);
}
.why-section .wrap { position: relative; z-index: 1; }
.why-section-head {
  max-width: 760px;
  margin: 0 auto clamp(1.7rem, 3.2vw, 2.7rem);
  text-align: center;
}
.why-section-head .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-bottom: .75rem;
}
.why-section-head .eyebrow::before,
.why-section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brass);
  opacity: .75;
}
.why-section-head .title-lg {
  margin-inline: auto;
  line-height: 1.12;
}
.why-section .why-layout { display: block; }
.why-section .why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.8vw, 22px);
}
.why-section .why-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 224px;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: clamp(18px, 2vw, 27px);
  overflow: hidden;
  border: 1px solid rgba(22, 21, 18, .12);
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 10px 28px rgba(35, 29, 19, .045);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.why-section .why-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brass), rgba(163, 122, 62, .18));
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .3s ease;
}
.why-section .why-item:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 100, 48, .38);
  box-shadow: 0 16px 34px rgba(35, 29, 19, .085);
}
.why-section .why-item:hover::before { transform: scaleX(1); }
.why-item-meta {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: .7rem;
  margin-bottom: .55rem;
}
.why-number {
  color: var(--brass-deep);
  font: 500 1.1rem/1 var(--serif-display);
  letter-spacing: .06em;
}
.why-section .why-item .rule {
  display: block;
  width: 34px;
  height: 1px;
  border-radius: 0;
  background: var(--brass);
}
.why-section .why-item h3 {
  margin: 0;
  color: var(--ink);
  font: 500 clamp(1.03rem, 1.2vw, 1.2rem)/1.3 var(--serif-display);
  letter-spacing: 0;
  text-transform: none;
}
.why-section .why-item p {
  margin: 0;
  color: var(--ink-soft);
  font: 400 .91rem/1.7 var(--serif-body);
}
@media (max-width: 1000px) {
  .why-section .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-section .why-item { min-height: 196px; }
}
@media (max-width: 560px) {
  .why-section-head { text-align: left; }
  .why-section-head .eyebrow { justify-content: flex-start; }
  .why-section .why-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .why-section .why-item { min-height: 0; padding: 20px; }
  .why-item-meta { margin-bottom: .2rem; }
}
