/* Self-hosted fonts (SIL Open Font License): Cormorant Garamond, Manrope */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-italic-500-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-italic-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-italic-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-italic-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-500-600-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-500-600-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-500-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500 600; font-display: swap; src: url('/assets/fonts/cormorant-garamond-500-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/manrope-400-700-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/manrope-400-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/manrope-400-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/manrope-400-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================================
   Meridian Business Law — design system
   Palette: forest green, sage and warm stone on paper. Type: Cormorant Garamond + Manrope.
   ========================================================================= */

:root {
  --paper: #f7f5ef;
  --paper-2: #efebe1;
  --surface: #ffffff;
  --stone: #d9d2c3;
  --line: #e2ddd1;
  --line-strong: #cfc8b8;

  --forest-950: #0b201d;
  --forest-900: #0f2a26;
  --forest-800: #143630;
  --forest-700: #1c4a42;
  --forest-600: #275e54;
  --forest-500: #357566;
  --sage-400: #8db0a2;
  --sage-300: #aecbbf;
  --sage-200: #d3e4dc;
  --sage-100: #e9f1ed;

  --ink: #17221f;
  --text: #3a4643;
  --muted: #69756f;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 5vw, 40px);
  --radius: 2px;
  --header-h: 76px;
  --shadow: 0 1px 0 rgba(15, 42, 38, .04), 0 18px 40px -24px rgba(15, 42, 38, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
/* Bulgarian pages: use the standard Cyrillic letterforms rather than the fonts' Bulgarian-locale variants ("locl"). */
/* !important: the `font` shorthand used on some components resets font-feature-settings. */
html:lang(bg), html:lang(bg) * { font-feature-settings: "locl" 0 !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--forest-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-800); }
:focus-visible { outline: 2px solid var(--forest-500); outline-offset: 3px; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1.1em; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
h4 { font-size: 1rem; letter-spacing: .01em; }
address { font-style: normal; }
::selection { background: var(--sage-200); color: var(--forest-900); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--forest-800); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- small type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--forest-500); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--sage-300); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); max-width: 62ch; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--forest-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.6em;
  border: 1px solid var(--b); border-radius: var(--radius);
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--solid { background: var(--forest-700); color: #fff; }
.btn--solid:hover { background: var(--forest-900); border-color: var(--forest-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--forest-700); }
.btn--ghost:hover { background: var(--forest-700); color: #fff; }
.btn--light { --b: var(--sage-200); background: var(--sage-200); color: var(--forest-900); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--forest-900); }
.btn--outline-light { --b: rgba(255,255,255,.45); background: transparent; color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--small { min-height: 42px; padding: .55em 1.1em; font-size: .88rem; }
.text-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; text-decoration: none; color: var(--forest-700); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* The frosted background lives on a pseudo-element: backdrop-filter on the header itself would
   turn it into the containing block for the fixed-position mobile menu and clip the menu. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(247, 245, 239, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
body.nav-open .site-header::before { background: var(--paper); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -26px rgba(15, 42, 38, .5); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest-800); }
.brand:hover { color: var(--forest-800); }
.logo-mark { width: 40px; height: 40px; flex: none; color: var(--forest-700); }
.logo-mark__meridian { stroke: var(--sage-400); }
.brand__words { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 600 1.6rem/1 var(--serif); letter-spacing: .01em; color: var(--forest-900); }
.brand__sub { font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--forest-500); margin-top: 4px; }
.brand--light .logo-mark, .brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--sage-300); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  position: relative; display: block; padding: 6px 0;
  font-size: .93rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.site-nav__list a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--forest-500); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav__list a:hover::after, .site-nav__list a[aria-current]::after { transform: scaleX(1); }
.site-nav__list a[aria-current] { color: var(--forest-600); }
.site-nav__tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang__current, .lang__alt { padding: 4px 10px; border-radius: 999px; }
.lang__current { background: var(--forest-800); color: #fff; }
.lang__alt { color: var(--forest-700); text-decoration: none; }
.lang__alt:hover { background: var(--sage-100); }

.menu-btn { display: none; margin-left: auto; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--forest-800); cursor: pointer; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 22px; height: 1.6px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ''; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 12px var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s, transform .2s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { padding: 16px 0; font: 600 1.7rem/1.1 var(--serif); border-bottom: 1px solid var(--line); }
  .site-nav__list a::after { display: none; }
  /* five languages leave no room for the button beside the switcher, so stack them */
  .site-nav__tools { flex-direction: column; align-items: stretch; gap: 16px; padding-top: 24px; }
  .site-nav__tools .lang { align-self: flex-start; }
  .site-nav__tools .btn { justify-content: center; min-height: 48px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(52px, 9vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section--stone { background: var(--paper-2); }
.section--white { background: var(--surface); }
.section--forest { background: var(--forest-800); color: #c9d8d1; }
.section--forest h2, .section--forest h3, .section--forest h4 { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section--forest .section-head p { color: #b8cbc3; }
@media (max-width: 820px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__coords { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--forest-500); display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero__coords span { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-400); box-shadow: 0 0 0 5px var(--sage-100); }
.hero h1 { margin-bottom: 24px; max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--forest-600); }
.hero .lede { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; gap: 18px 32px; padding-top: 28px; border-top: 1px solid var(--line-strong); margin: 0; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats dt { order: 2; font-size: .85rem; color: var(--muted); }
.hero__stats dd { order: 1; margin: 0; font: 600 2.3rem/1 var(--serif); color: var(--forest-800); }
.hero__visual { position: relative; }
.hero__frame { position: relative; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero__frame picture, .guide-card__img picture { display: block; height: 100%; }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__visual::before { content: ''; position: absolute; left: 50%; top: -60px; bottom: -60px; width: 1px; background: linear-gradient(var(--sage-400), transparent); transform: translateX(-50%); z-index: -1; }
.hero__badge {
  position: absolute; left: -28px; bottom: 36px;
  background: var(--forest-800); color: #dfe9e4; padding: 18px 22px; max-width: 250px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.45;
}
.hero__badge strong { display: block; font: 600 1.3rem/1.15 var(--serif); color: #fff; margin-bottom: 4px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 460px; }
  .hero__badge { left: 16px; }
}


/* ---------- credentials strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip__list { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: space-between; gap: 14px 32px; list-style: none; margin-block: 0; padding-block: 22px; }
@media (max-width: 1180px) { .strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strip__list { grid-template-columns: minmax(0, 1fr); } }
.strip__list li { display: flex; align-items: center; gap: 12px; font-size: .92rem; font-weight: 600; color: var(--forest-800); }
.strip__list svg { width: 22px; height: 22px; color: var(--forest-500); }

/* ---------- service rows (home) ---------- */
.rows { border-top: 1px solid var(--line-strong); list-style: none; margin: 0; padding: 0; counter-reset: row; }
.rows li { border-bottom: 1px solid var(--line-strong); }
.rows a {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr) 40px; gap: 24px; align-items: center;
  padding: 28px 8px; color: inherit; text-decoration: none; transition: background .25s, padding .25s;
}
@media (hover: hover) { .rows a:hover { background: var(--surface); padding-inline: 20px; } }
.rows__num { font: 500 1rem var(--serif); color: var(--forest-500); }
.rows__num::before { counter-increment: row; content: counter(row, decimal-leading-zero); }
.rows h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.95rem); }
.rows p { margin: 0; color: var(--muted); font-size: .98rem; }
.rows__go { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--forest-700); transition: background .25s, color .25s; }
.rows__go svg { width: 18px; height: 18px; }
.rows a:hover .rows__go { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
@media (max-width: 760px) {
  .rows a { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
  .rows p { grid-column: 2; }
  .rows__go { display: none; }
}

/* ---------- media + text split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__media--wide img { aspect-ratio: 5 / 4; }
.split__media--statue img { object-position: 50% 62%; }
.split__caption { position: absolute; right: -1px; bottom: -1px; background: var(--paper); padding: 14px 18px 0 22px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--forest-500); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split__media img { aspect-ratio: 16 / 11; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.6em; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23275e54' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ledger { margin: 0; border-top: 1px solid var(--line-strong); }
.ledger div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.ledger dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 520px) { .ledger div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.person-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 26px; align-items: start; background: var(--surface); padding: 22px; border: 1px solid var(--line); }
.person-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 999px 999px var(--radius) var(--radius); }
.person-card h3 { margin-bottom: .2em; }
.person-card__role { font-size: .85rem; font-weight: 600; color: var(--forest-500); margin-bottom: .8em; }
.person-card p { font-size: .96rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .person-card { grid-template-columns: minmax(0, 1fr); } .person-card img { max-width: 220px; } }

.profile { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.profile:first-of-type { border-top: 0; }
.profile__photo { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.profile__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 999px 999px var(--radius) var(--radius); }
.profile__role { font-weight: 600; color: var(--forest-500); margin-bottom: 1.4em; }
.profile details { margin: 0 0 1.4em; }
.profile summary { cursor: pointer; font-weight: 700; color: var(--forest-700); list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.profile summary::-webkit-details-marker { display: none; }
.profile summary::after { content: '+'; font-size: 1.2em; line-height: 1; }
.profile details[open] summary::after { content: '−'; }
.profile details[open] summary { margin-bottom: 1em; }
.profile__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile__meta h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4em; }
.profile__meta p, .profile__meta ul { font-size: .95rem; margin: 0; }
.profile__meta ul { padding-left: 1.1em; }
@media (max-width: 820px) { .profile { grid-template-columns: minmax(0, 1fr); } .profile__photo { position: static; max-width: 300px; } }

/* ---------- approach / steps ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: rgba(174, 203, 191, .35); }
.timeline li { position: relative; padding-right: 28px; }
.timeline li::before {
  counter-increment: step; content: counter(step);
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 26px;
  border: 1px solid var(--sage-400); border-radius: 50%; background: var(--forest-800);
  font: 600 1.25rem var(--serif); color: var(--sage-200);
}
.timeline h3 { font-size: 1.5rem; }
.timeline p { color: #b8cbc3; font-size: .97rem; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 0; }
  .timeline::before { display: none; }
}
@media (max-width: 560px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--line-strong); }
.pillars > div { padding: 8px 28px 8px; border-right: 1px solid var(--line-strong); }
.pillars svg { width: 30px; height: 30px; color: var(--forest-500); margin-bottom: 20px; }
.pillars h3 { font-size: 1.45rem; }
.pillars p { font-size: .96rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0; gap: 32px; } .pillars > div { border: 0; padding: 0; } }
@media (max-width: 560px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* ---------- expertise index ---------- */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.areas__group h3 { font-size: 1.35rem; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--forest-700); }
.areas__group ul { list-style: none; margin: 0; padding: 0; }
.areas__group a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.areas__group a svg { width: 16px; height: 16px; color: var(--sage-400); flex: none; margin-top: 5px; transition: transform .2s, color .2s; }
.areas__group a:hover { color: var(--forest-600); }
.areas__group a:hover svg { transform: translateX(3px); color: var(--forest-600); }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .areas { grid-template-columns: minmax(0, 1fr); } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags a, .tags span { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .86rem; color: var(--forest-800); text-decoration: none; background: var(--surface); }
.tags a:hover { border-color: var(--forest-600); background: var(--sage-100); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
/* Borders on the cards (not a grid background), so incomplete rows leave no filled gaps. */
.tile { display: flex; flex-direction: column; gap: 12px; background: var(--surface); padding: 30px 28px; text-decoration: none; color: inherit; transition: background .2s; min-height: 100%; border: 1px solid var(--line-strong); margin: 0 -1px -1px 0; }
.tile:hover { background: var(--sage-100); color: inherit; }
.tile svg { width: 30px; height: 30px; color: var(--forest-500); }
.tile h3 { margin: 6px 0 0; font-size: 1.5rem; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; flex: 1; }
.tile .text-link { margin-top: 6px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page header (inner pages) ---------- */
.page-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); max-width: 20ch; margin-bottom: 18px; }
.page-head--guide h1 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); max-width: 24ch; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); margin-top: 24px; }
.page-head__meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-head__meta svg { width: 16px; height: 16px; color: var(--forest-500); }
.page-head--forest { background: var(--forest-800); border: 0; color: #c9d8d1; }
.page-head--forest h1 { color: #fff; }
.page-head--forest .lede { color: #c9d8d1; }
.page-head--forest .crumbs a, .page-head--forest .crumbs li { color: #a8bfb5; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .84rem; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--forest-600); text-decoration: underline; }

/* ---------- article / prose ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.doc--guide { grid-template-columns: 240px minmax(0, 1fr); }
.doc__side { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 980px) {
  .doc, .doc--guide { grid-template-columns: minmax(0, 1fr); }
  .doc__side { position: static; }
  .doc--guide .toc { display: none; }
}
.prose { max-width: 72ch; font-size: 1.07rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.8rem, 2.8vw, 2.25rem); margin: 1.7em 0 .55em; }
.prose h3 { font-size: 1.5rem; margin: 1.5em 0 .5em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--forest-500); }
.prose strong { color: var(--ink); }
.prose .lead-p { font-size: 1.2rem; color: var(--ink); }
.callout, .note { margin: 1.8em 0; padding: 22px 26px; background: var(--sage-100); border-left: 3px solid var(--forest-500); }
.callout p:last-child, .note > :last-child { margin-bottom: 0; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sage-400); }
.note__title { font-weight: 700; color: var(--ink); margin-bottom: .5em; }
.keyfacts { margin: 1.8em 0; padding: 24px 26px; background: var(--forest-800); color: #d5e2dc; }
.keyfacts__title { font: 600 1.35rem var(--serif); color: #fff; margin-bottom: .8em; }
.keyfacts dl { margin: 0; }
.keyfacts dl div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid rgba(174, 203, 191, .25); }
.keyfacts dt { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sage-300); padding-top: 3px; }
.keyfacts dd { margin: 0; }
.keyfacts a { color: #fff; }
@media (max-width: 560px) { .keyfacts dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.steps { list-style: none; padding: 0 !important; margin: 1.6em 0; counter-reset: s; display: grid; gap: 12px; }
.steps li { position: relative; padding: 18px 20px 18px 70px; background: var(--surface); border: 1px solid var(--line); margin: 0; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-700); color: #fff; font: 600 1.05rem var(--serif); }
.steps h4 { margin: 3px 0 .3em; font-size: 1.02rem; }
.steps p { margin: 0; font-size: .98rem; }
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--paper-2); color: var(--ink); font-weight: 700; font-size: .82rem; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.disclaimer { margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

.toc { border-left: 1px solid var(--line-strong); padding-left: 18px; }
.toc p { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 9px; line-height: 1.4; }
.toc a { font-size: .9rem; color: var(--text); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--forest-600); }
.toc a.is-active { font-weight: 600; }

.side-card { background: var(--forest-800); color: #c9d8d1; padding: 28px 26px; }
.side-card h2 { font-size: 1.7rem; color: #fff; }
.side-card p { font-size: .95rem; }
.side-card .btn { width: 100%; }
.side-card__contact { list-style: none; padding: 0; margin: 18px 0 0; font-size: .92rem; }
.side-card__contact li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.side-card__contact svg { width: 16px; height: 16px; color: var(--sage-300); flex: none; }
.side-card__contact a { color: #fff; text-decoration: none; }
.side-list { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; }
.side-list h2 { font: 700 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.side-list ul { list-style: none; padding: 0; margin: 0; }
.side-list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; color: var(--ink); text-decoration: none; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { color: var(--forest-600); }

.figure-wide { margin: 0; }
.figure-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); margin: 1.2em 0; }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 48px 20px 0; font: 600 1.32rem/1.3 var(--serif); color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--forest-600), var(--forest-600)) center / 14px 1.6px no-repeat, linear-gradient(var(--forest-600), var(--forest-600)) center / 1.6px 14px no-repeat;
  transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 0 18px; max-width: 70ch; }
.faq__answer > :last-child { margin-bottom: 0; }

/* ---------- guide cards ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.guide-card__img { overflow: hidden; border-radius: var(--radius); margin-bottom: 18px; background: var(--paper-2); aspect-ratio: 3 / 2; }
.guide-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.guide-card__img--plain { display: grid; place-items: center; background: var(--forest-800); }
.guide-card__img--plain svg { width: 64px; height: 64px; color: var(--sage-300); }
.guide-card:hover .guide-card__img img { transform: scale(1.04); }
.guide-card__meta { display: flex; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-500); margin-bottom: 10px; }
.guide-card__meta time { color: var(--muted); font-weight: 600; }
.guide-card h3 { font-size: 1.5rem; margin-bottom: .4em; transition: color .2s; }
.guide-card:hover h3 { color: var(--forest-600); }
.guide-card p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .guide-grid { grid-template-columns: minmax(0, 1fr); } }

.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.guide-list a { display: grid; grid-template-columns: 140px minmax(0, 1fr) 24px; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.guide-list a:hover { color: var(--forest-600); }
.guide-list time { font-size: .85rem; color: var(--muted); }
.guide-list strong { font: 600 1.25rem/1.3 var(--serif); }
.guide-list svg { width: 18px; height: 18px; color: var(--sage-400); }
@media (max-width: 600px) { .guide-list a { grid-template-columns: minmax(0, 1fr); gap: 4px; } .guide-list svg { display: none; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font: 600 .88rem var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--forest-800); cursor: pointer; }
.filters button:hover { border-color: var(--forest-600); }
.filters button[aria-pressed="true"] { background: var(--forest-800); border-color: var(--forest-800); color: #fff; }
[data-filter-item][hidden] { display: none !important; }

/* ---------- track record ---------- */
.matters { display: grid; gap: 22px; }
.matter { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); scroll-margin-top: calc(var(--header-h) + 20px); }
.matter:target { border-color: var(--forest-500); box-shadow: 0 0 0 3px var(--sage-200); }
.matter__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.matter__tags span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-600); background: var(--sage-100); padding: 4px 10px; border-radius: 999px; }
.matter h2 { font-size: clamp(1.55rem, 2.4vw, 1.95rem); margin-bottom: 22px; }
.matter__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.matter__cols h3 { font: 700 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.matter__cols p { font-size: .97rem; margin: 0; }
.matter__cols ul { margin: 0; padding: 0; list-style: none; font-size: .97rem; }
.matter__cols ul li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.matter__cols ul li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 1.5px; background: var(--forest-500); }
.matter__links { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.matter__links span { color: var(--muted); }
@media (max-width: 860px) { .matter__cols { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.case-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-link { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.case-link:hover { border-color: var(--forest-500); color: var(--ink); }
.case-link span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-500); }
.case-link strong { font: 600 1.2rem/1.3 var(--serif); }
@media (max-width: 860px) { .case-links { grid-template-columns: minmax(0, 1fr); } }

/* ---------- quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.quote { margin: 0; padding: 30px 28px; background: var(--surface); border-top: 3px solid var(--sage-400); }
.quote blockquote { margin: 0 0 18px; font: 500 1.28rem/1.45 var(--serif); color: var(--ink); }
.quote figcaption { font-size: .88rem; color: var(--muted); }
.quote figcaption strong { color: var(--forest-700); }
@media (max-width: 900px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

.pull { margin: 0; padding: clamp(28px, 4vw, 48px) 0; border-block: 1px solid var(--line-strong); }
.pull blockquote { margin: 0; font: 500 clamp(1.6rem, 3vw, 2.3rem)/1.3 var(--serif); color: var(--forest-800); }
.pull blockquote em { color: var(--forest-500); }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: 500 1rem var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest-500); box-shadow: 0 0 0 3px var(--sage-200); }
.field [aria-invalid="true"] { border-color: #a26a14; }
.field__err { display: block; min-height: 1.2em; font-size: .8rem; color: #8a5a0f; margin-top: 4px; }
.consent-row { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.consent-row input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--forest-600); flex: none; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 14px 16px; font-size: .95rem; border-left: 3px solid var(--forest-500); background: var(--sage-100); }
.form__status[hidden] { display: none; }
.form__status.is-error { border-color: #a26a14; background: #f6eedf; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-card { background: var(--forest-800); color: #c9d8d1; padding: clamp(28px, 3vw, 40px); }
.contact-card h2 { color: #fff; font-size: 2rem; }
.contact-card dl { margin: 0; }
.contact-card dl div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid rgba(174, 203, 191, .22); }
.contact-card dt svg { width: 20px; height: 20px; color: var(--sage-300); margin-top: 3px; }
.contact-card dd { margin: 0; }
.contact-card dd strong { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 2px; }
.contact-card a { color: #fff; }
.contact-card__note { margin-top: 20px; font-size: .9rem; color: #a8bfb5; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest-900); color: #c9d8d1; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: 12%; top: -40%; width: 420px; height: 180%; border: 1px solid rgba(141, 176, 162, .22); border-radius: 50%; pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: clamp(56px, 7vw, 88px); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { max-width: 56ch; margin: 0; }
@media (max-width: 820px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-950); color: #9fb5ac; font-size: .94rem; }
.site-footer a { color: #dbe7e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 40px; padding-block: 72px 48px; }
.site-footer__brand p { margin: 20px 0 0; max-width: 36ch; }
.site-footer__coords { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-400); }
.site-footer__h { font: 700 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-300); margin-bottom: 18px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li { margin-bottom: 9px; }
.site-footer__contact p { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }
.site-footer__contact svg { width: 18px; height: 18px; color: var(--sage-400); margin-top: 4px; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(174, 203, 191, .3); border-radius: 50%; }
.social svg { width: 18px; height: 18px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; border-top: 1px solid rgba(174, 203, 191, .16); font-size: .84rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- consent ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); padding: 20px 22px; font-size: .92rem;
}
.consent p { margin-bottom: 14px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 4vw, 48px); }
.stack-s > * + * { margin-top: 10px; }
.notfound { min-height: 50vh; display: grid; align-content: center; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
@media print { .site-header, .site-footer, .cta-band, .doc__side, .consent, .mbar, .toc-m { display: none !important; } body { background: #fff; padding: 0 !important; } }

/* =========================================================================
   Mobile & touch
   ========================================================================= */
a, button, summary, label { -webkit-tap-highlight-color: rgba(39, 94, 84, .14); }
h1, h2, h3 { overflow-wrap: break-word; }
.site-nav__contact, .quick-actions, .toc-m, .mbar { display: none; }

/* contact details inside the mobile menu */
@media (max-width: 1180px) {
  .site-nav__contact { display: grid; gap: 2px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-style: normal; }
  .site-nav__contact a { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--forest-700); text-decoration: none; font-size: .95rem; }
  .site-nav__contact svg { width: 18px; height: 18px; flex: none; color: var(--forest-500); }
  .lang__current, .lang__alt { padding: 9px 16px; }
}

/* collapsible contents list on guides */
@media (max-width: 980px) {
  .toc-m { display: block; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--line); }
  .toc-m summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest-700); }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: '+'; font-size: 1.4rem; font-weight: 500; letter-spacing: 0; }
  .toc-m[open] summary::after { content: '−'; }
  .toc-m ol { margin: 0; padding: 0 18px 14px 38px; }
  .toc-m li { padding: 5px 0; }
  .toc-m a { color: var(--text); text-decoration: none; font-size: .96rem; }
}

/* quick call / email / directions on the contact page */
@media (max-width: 900px) {
  .quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
  .quick-actions .btn { flex: 1 1 auto; }
  .quick-actions .btn svg { width: 18px; height: 18px; }
}

@media (max-width: 760px) {
  /* filters become one swipeable row */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; min-height: 42px; scroll-snap-align: start; }

  /* thumb-reach action bar */
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(247, 245, 239, .97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -12px 30px -26px rgba(15, 42, 38, .55);
    transition: transform .25s ease;
  }
  .mbar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--forest-700); border-radius: var(--radius); background: var(--forest-700); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
  .mbar__btn:hover, .mbar__btn:active { color: #fff; }
  .mbar__btn svg { width: 18px; height: 18px; flex: none; }
  .mbar__btn--ghost { background: var(--surface); color: var(--forest-800); border-color: var(--line-strong); }
  .mbar__btn--ghost:hover, .mbar__btn--ghost:active { color: var(--forest-800); }
  body.has-mbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.nav-open .mbar, body.is-typing .mbar { transform: translateY(115%); }
  body.has-mbar .consent { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .logo-mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.4rem; }
  .brand__sub { font-size: .6rem; letter-spacing: .22em; }
  .crumbs ol { margin-bottom: 18px; }
  .crumbs li[aria-current] { display: none; }
  .page-head { padding-top: 20px; padding-bottom: 36px; }
  .page-head h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .page-head--guide h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .lede { font-size: 1.06rem; }
  .section-head { margin-bottom: 28px; }

  /* tables turn into labelled cards */
  .table-wrap { border: 0; background: none; overflow: visible; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--sage-400); margin-bottom: 12px; padding: 8px 0; }
  table.stack td { border: 0; padding: 7px 16px; }
  table.stack td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  table.stack td[data-label=""]::before { display: none; }
  table.stack td:first-child { font-weight: 700; color: var(--ink); }

  .form [type="submit"], .cta-band .btn { width: 100%; }
  .faq__item summary { font-size: 1.18rem; padding: 18px 40px 18px 0; }
  .steps li { padding: 16px 16px 16px 60px; }
  .steps li::before { left: 16px; top: 16px; }
  .keyfacts, .callout, .note { padding: 18px; }
  .matter { padding: 20px; }
  .site-footer__grid { padding-block: 52px 32px; gap: 32px; }
  .site-footer__list li { margin-bottom: 0; }
  .site-footer__list a { display: inline-block; padding: 7px 0; }
  .site-footer__base { padding-block: 18px 22px; }
}

@media (max-width: 560px) {
  .hero h1 { margin-bottom: 18px; }
  .hero .lede { margin-bottom: 26px; }
  .hero__actions { margin-bottom: 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stats { gap: 12px; }
  .hero__stats dd { font-size: 1.9rem; }
  .hero__stats dt { font-size: .78rem; line-height: 1.35; }
  .hero__frame { aspect-ratio: 1 / 1.05; }
  .hero__badge { left: 12px; right: 12px; bottom: 16px; max-width: none; padding: 14px 16px; }
  .hero__visual::before { display: none; }
}

@media (hover: none) {
  .guide-card:hover .guide-card__img img { transform: none; }
}

/* ---------- multilingual & profile additions ---------- */
.lang__current, .lang__alt { padding: 4px 9px; }
.guide-card__lang { margin-left: auto; padding: 1px 7px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .66rem; letter-spacing: .08em; color: var(--muted); }
.muted-inline { color: #86a094; font-size: .85em; }
.profile--page { border-top: 0; padding-top: 0; }
.profile__meta-h { font: 700 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4em; }
.profile__meta li { margin-bottom: .2em; }
@media (max-width: 1180px) { .lang__current, .lang__alt { padding: 9px 14px; } }
/* just above the menu breakpoint the full header (five nav items, five languages) is tight */
.brand__sub, .site-nav__tools .btn { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1360px) {
  .site-nav { gap: 20px; }
  .site-nav__list { gap: 18px; }
  .site-nav__tools { gap: 12px; }
  .lang__current, .lang__alt { padding: 4px 7px; }
}
/* "EN" badge on in-text links that open the English version of a page */
.link-lang { display: inline-block; margin-left: .35em; padding: 0 .4em; border: 1px solid var(--line-strong); border-radius: 999px; font: 700 .62em/1.6 var(--sans); letter-spacing: .06em; color: var(--muted); vertical-align: .18em; text-decoration: none; }
