/* ============================================================
   Valley Oak Injury Law — Napa PI prototype
   Type: Zodiak (display) + Satoshi (text), Fontshare
   ============================================================ */

:root {
  --font-display: "Zodiak", ui-serif, Georgia, serif;
  --font-text: "Satoshi", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --shell: 1220px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --radius: 4px;
  --radius-lg: 8px;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: clamp(1.15rem, 1.6vw, 1.3rem);
  --text-xl: clamp(1.5rem, 3vw, 2rem);
  --text-2xl: clamp(1.9rem, 4.4vw, 2.9rem);
  --text-hero: clamp(2.2rem, 4.8vw, 3.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Light (default) ---------- */
:root,
[data-theme="light"] {
  --bg: #f6f4ef;
  --surface: #fffefb;
  --surface-2: #ece7dc;
  --border: #d9d2c4;
  --border-strong: #bdb3a0;
  --ink: #1f231d;
  --ink-2: #4b5046;
  --ink-3: #6e7468;
  --brand: #2c4a3b;
  --brand-ink: #2c4a3b;
  --brand-hover: #21382c;
  --on-brand: #f8f7f2;
  --gold: #8a6410;
  --shadow: 0 1px 2px rgba(31, 35, 29, 0.05), 0 14px 34px -18px rgba(31, 35, 29, 0.28);
}

/* ---------- Dark ---------- */
[data-theme="dark"] {
  --bg: #14170f;
  --surface: #1c2018;
  --surface-2: #23281e;
  --border: #333a2c;
  --border-strong: #4a5340;
  --ink: #e8e6dc;
  --ink-2: #b9bcae;
  --ink-3: #949889;
  --brand: #7fa88c;
  --brand-ink: #9cc0a8;
  --brand-hover: #93bb9f;
  --on-brand: #10160f;
  --gold: #d5ad57;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--text-md);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
  padding-bottom: 4.25rem; /* mobile action bar */
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-hero);
}
h2 {
  font-size: var(--text-2xl);
}
h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell.narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: var(--on-brand);
  padding: 0.7rem 1.1rem;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

:where(a, button, input, select, textarea, summary, details):focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.85rem;
}
.lede {
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 1rem;
}
.fineprint {
  font-size: var(--text-xs);
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 62ch;
}
.stars {
  color: var(--gold);
  letter-spacing: 0.14em;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-text);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.btn-lg {
  font-size: var(--text-base);
  padding: 0.95rem 1.5rem;
}
.btn-block {
  width: 100%;
}
.ico {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.icon-btn:hover {
  border-color: var(--ink-3);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}
.icon-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
[data-theme-toggle]::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: linear-gradient(to right, currentColor 0 50%, transparent 50% 100%);
}
[data-theme="dark"] [data-theme-toggle]::before {
  background: linear-gradient(to right, transparent 0 50%, currentColor 50% 100%);
}

.link-arrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-text);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.link-arrow:hover {
  border-bottom-color: currentColor;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--brand-ink);
  margin-right: auto;
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--ink);
}
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: none;
  gap: 1.6rem;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover,
.nav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--brand-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-btn {
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 0.6rem;
  background: transparent;
  color: var(--ink-3);
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover {
  color: var(--ink);
}
.lang-btn.is-active {
  background: var(--brand);
  color: var(--on-brand);
}
.header-call {
  display: none;
}
.menu-btn {
  display: inline-flex;
}

.mobile-nav {
  display: grid;
  border-top: 1px solid var(--border);
  padding: 0.5rem var(--gutter) 1rem;
}
.mobile-nav a {
  padding: 0.85rem 0;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child {
  border-bottom: 0;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: #14170f;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  z-index: -2;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgba(12, 16, 10, 0.7) 0%,
      rgba(12, 16, 10, 0.42) 42%,
      rgba(12, 16, 10, 0.78) 100%
    ),
    linear-gradient(to right, rgba(12, 16, 10, 0.62) 0%, rgba(12, 16, 10, 0.15) 68%);
}
.hero-grid {
  display: grid;
  gap: 2.75rem;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.hero-copy {
  color: #f4f2ea;
  max-width: 33rem;
}
.hero-copy .eyebrow {
  color: #cfd6c4;
}
.hero-copy h1 {
  color: #fffdf7;
}
.hero-sub {
  margin-top: 1.25rem;
  font-size: var(--text-lg);
  color: #ded9cb;
  max-width: 26rem;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}
.hero .btn-primary {
  background: #f4f2ea;
  color: #1c2b21;
}
.hero .btn-primary:hover {
  background: #fff;
}
.hero .btn-ghost {
  color: #f4f2ea;
  border-color: rgba(244, 242, 234, 0.5);
}
.hero .btn-ghost:hover {
  border-color: #f4f2ea;
  background: rgba(244, 242, 234, 0.12);
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
  font-size: var(--text-sm);
  color: #ded9cb;
}
.hero-rating .stars {
  color: #e6bf62;
}

/* ---------------- Cards & forms ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.intake {
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.intake-title {
  font-size: var(--text-xl);
}
.intake-note {
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.35rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-text);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea {
  resize: vertical;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-ink);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ink) 22%, transparent);
}
.err {
  display: none;
  font-size: var(--text-xs);
  color: #a3341f;
}
[data-theme="dark"] .err {
  color: #f0917c;
}
.field.is-invalid input {
  border-color: #a3341f;
}
.field.is-invalid .err {
  display: block;
}

.form-success {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  padding-top: 0.5rem;
}
.form-success .tick {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--brand-ink);
}
.form-success p {
  color: var(--ink-2);
  font-size: var(--text-sm);
}

/* ---------------- Proof bar ---------------- */
.proof {
  background: var(--brand);
  color: var(--on-brand);
}
[data-theme="dark"] .proof {
  background: var(--surface-2);
  color: var(--ink);
  border-block: 1px solid var(--border);
}
.proof-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
  padding-block: 2.25rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  opacity: 0.82;
}
.badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--on-brand) 22%, transparent);
}
[data-theme="dark"] .badges {
  border-top-color: var(--border);
}
.badges li {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--on-brand) 32%, transparent);
  border-radius: 2px;
  opacity: 0.9;
}
[data-theme="dark"] .badges li {
  border-color: var(--border-strong);
}

/* ---------------- Sections ---------------- */
.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-tint {
  background: var(--surface-2);
}
.sec-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 62ch;
}
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

/* Triage */
.triage-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.triage-card {
  display: grid;
  gap: 0.35rem;
  text-align: left;
  font-family: var(--font-text);
  background: var(--surface);
  border: 0;
  padding: 1.5rem 1.35rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.triage-card:hover {
  background: color-mix(in srgb, var(--brand-ink) 8%, var(--surface));
}
.triage-card.is-open {
  background: color-mix(in srgb, var(--brand-ink) 12%, var(--surface));
}
.tname {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tmeta {
  font-size: var(--text-sm);
  color: var(--ink-3);
}
.triage-card.is-feature {
  box-shadow: inset 3px 0 0 var(--gold);
}

.panel {
  margin-top: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  max-width: 68ch;
  animation: rise 0.35s var(--ease);
}
.panel p {
  color: var(--ink-2);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Results rail */
.rail-btns {
  display: flex;
  gap: 0.5rem;
  flex: none;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 1fr);
  gap: 1px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scrollbar-width: thin;
}
.result {
  scroll-snap-align: start;
  background: var(--surface);
  padding: 1.6rem 1.35rem;
  display: grid;
  gap: 0.3rem;
  align-content: start;
}
.result span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  /* reserve two lines so every card's body copy starts on the same baseline */
  min-height: 2.4em;
}
.result p {
  margin-top: 0.5rem;
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.rail + .fineprint {
  margin-top: 1.1rem;
}

/* Reviews */
.review-grid {
  display: grid;
  gap: 1.25rem;
}
.review {
  margin: 0;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.review > p:not(.stars) {
  font-size: var(--text-base);
  color: var(--ink);
}
.review footer {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-2);
}
.review footer span {
  font-weight: 400;
  color: var(--ink-3);
}
.review-src {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-size: var(--text-sm);
  color: var(--ink-3);
}
.review-src .ico {
  color: var(--brand-ink);
  width: 1.15rem;
  height: 1.15rem;
}

/* Split (attorney) */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-media {
  margin: 0;
  max-width: 24rem;
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
}
.split-media figcaption {
  margin-top: 0.7rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.split-copy {
  display: grid;
  justify-items: start;
  gap: 1.35rem;
}
.split-copy p {
  color: var(--ink-2);
  max-width: 46ch;
}
.cred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: var(--text-sm);
}
.cred-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink);
}
.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.6rem;
  height: 1px;
  background: var(--brand-ink);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
.steps li {
  background: var(--bg);
  padding: 1.75rem 0;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.steps p {
  color: var(--ink-2);
  font-size: var(--text-sm);
  max-width: 40ch;
}
.snum {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--on-brand);
  background: var(--brand);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Resources */
.resources {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  color: #f2f0e8;
}
.res-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.res-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(12, 16, 10, 0.86), rgba(12, 16, 10, 0.93));
}
.resources .eyebrow {
  color: #c9d2bd;
}
.resources h2 {
  color: #fffdf7;
}
.resources .lede {
  color: #dcd7c9;
}
.res-grid {
  display: grid;
  gap: 1rem;
}
.res-card {
  background: rgba(244, 242, 234, 0.07);
  border: 1px solid rgba(244, 242, 234, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  backdrop-filter: blur(3px);
}
.res-card h3 {
  color: #fffdf7;
}
.res-card ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: var(--text-sm);
  color: #dcd7c9;
}
.res-card li {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(244, 242, 234, 0.14);
}
.res-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* FAQ */
.acc {
  border-top: 1px solid var(--border);
}
.acc details {
  border-bottom: 1px solid var(--border);
}
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary:hover {
  color: var(--brand-ink);
}
.acc summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 1.5rem;
  width: 0.72rem;
  height: 0.72rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.acc details[open] summary::after {
  transform: rotate(-135deg);
  top: 1.65rem;
}
.acc details p {
  padding: 0 0 1.35rem;
  color: var(--ink-2);
  max-width: 68ch;
  animation: rise 0.3s var(--ease);
}

/* Closer */
.closer {
  background: var(--brand);
  color: var(--on-brand);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
[data-theme="dark"] .closer {
  background: var(--surface-2);
  color: var(--ink);
  border-top: 1px solid var(--border);
}
.closer-inner {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}
.closer h2 {
  color: inherit;
  max-width: 22ch;
}
.closer-copy > p {
  margin-top: 1.1rem;
  max-width: 42ch;
  opacity: 0.88;
}
.office {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 2.25rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--on-brand) 25%, transparent);
}
[data-theme="dark"] .office {
  border-top-color: var(--border);
}
.office dt {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.72;
}
.office dd {
  margin: 0.4rem 0 0;
  font-size: var(--text-sm);
  line-height: 1.5;
}
.office a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.map {
  position: relative;
  display: block;
  margin-top: 2rem;
  aspect-ratio: 640 / 280;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--on-brand) 25%, transparent);
  background-color: color-mix(in srgb, var(--on-brand) 6%, var(--brand));
  color: var(--on-brand);
  text-decoration: none;
  transition: border-color 0.2s ease;
}
@media (max-width: 600px) {
  .map {
    aspect-ratio: auto;
    height: 12rem;
  }
}
.map:hover,
.map:focus-visible {
  border-color: color-mix(in srgb, var(--on-brand) 55%, transparent);
}
.map-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.map-svg path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-park path {
  fill: color-mix(in srgb, currentColor 10%, transparent);
  stroke: none;
}
.m-water path {
  stroke: #7fa7b8;
  stroke-opacity: 0.6;
  stroke-width: 4;
}
[data-theme="dark"] .m-water path {
  stroke: #3f6f86;
}
.m-r4 { stroke: currentColor; stroke-opacity: 0.14; stroke-width: 1; }
.m-r3 { stroke: currentColor; stroke-opacity: 0.34; stroke-width: 2.4; }
.m-r2 { stroke: currentColor; stroke-opacity: 0.5; stroke-width: 4; }
.m-r1 { stroke: currentColor; stroke-opacity: 0.72; stroke-width: 6; }
.m-labels text {
  fill: currentColor;
  fill-opacity: 0.85;
  font: 600 14px/1 "Satoshi", sans-serif;
  letter-spacing: 0.04em;
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
  stroke: color-mix(in srgb, var(--on-brand) 6%, var(--brand));
  stroke-width: 5px;
  stroke-linejoin: round;
}
.m-labels text.m-key {
  font-size: 16px;
  font-weight: 700;
  fill-opacity: 1;
}
.m-halo { fill: #c9a35c; fill-opacity: 0.32; }
.m-dot { fill: #c9a35c; stroke: var(--brand); stroke-width: 2.5; }
.map-label,
.map-credit {
  position: absolute;
  bottom: 0.6rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 85%, transparent);
  font-size: 0.75rem;
  line-height: 1.2;
}
.map-label {
  left: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.map-credit {
  right: 0.6rem;
  font-size: 0.62rem;
  opacity: 0.75;
}
.intake-alt {
  background: var(--surface);
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.footer-inner {
  display: grid;
  gap: 2.25rem;
}
.footer-inner h2 {
  font-family: var(--font-text);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}
.footer-inner nav {
  display: grid;
  gap: 0.55rem;
  font-size: var(--text-sm);
}
.footer-inner nav a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s var(--ease);
}
.footer-inner nav a:hover {
  color: var(--ink);
}
.foot-brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--ink-2);
  line-height: 1.6;
}
.foot-brand .brand-mark {
  color: var(--brand-ink);
  flex: none;
}
.foot-brand strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--ink);
}
.foot-brand a {
  color: var(--ink);
}
.foot-legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
  font-size: var(--text-xs);
  color: var(--ink-3);
  line-height: 1.6;
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}
.foot-meta a {
  text-decoration: none;
}
.foot-meta a:hover {
  color: var(--ink);
}

/* Mobile action bar */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.mb-btn {
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 1.05rem 0.4rem;
}
.mb-primary {
  background: var(--brand);
  color: var(--on-brand);
}

/* ---------------- Responsive ---------------- */
@media (min-width: 620px) {
  .proof-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .triage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .res-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps li {
    padding: 1.75rem 1.5rem;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
  .mobile-bar,
  .mobile-nav {
    display: none !important;
  }
  .menu-btn {
    display: none;
  }
  .nav {
    display: flex;
  }
  .header-call {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3.5rem;
  }
  .triage-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .steps li:first-child {
    padding-left: 0;
  }
  .steps li:last-child {
    padding-right: 0;
  }
  .res-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .closer-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .footer-inner {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
  .foot-legal {
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
  }
  .foot-meta {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- mobile refinements --- */
.brand-text strong {
  white-space: nowrap;
}
.office dd {
  overflow-wrap: anywhere;
}
@media (max-width: 619px) {
  .site-header .shell {
    padding-inline: 0.9rem;
  }
  .lang-btn {
    padding: 0.55rem 0.45rem;
  }
  .brand-text strong {
    font-size: 0.94rem;
  }
  .brand-text em {
    display: none;
  }
  .brand {
    gap: 0.5rem;
  }
  .site-header .shell {
    gap: 0.6rem;
  }
}

/* ── Brand mark: MB monogram lockup ── */
:root {
  --gold: #c9a35c;
}
[data-theme="dark"] {
  --gold: #d5b673;
}
.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  color: var(--gold);
  overflow: visible;
}
.brand-mark .mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  fill: currentColor;
  stroke: none;
}
.brand {
  gap: 0.75rem;
}
.brand-text {
  border-left: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding-left: 0.75rem;
}
.foot-brand .brand-text,
.foot-brand p {
  border-left: 0;
}

/* Full lockup on the dark closing section */
.closer-lockup {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-bottom: 1.75rem;
  border-radius: 2px;
}

@media (max-width: 619px) {
  .brand-mark {
    width: 2.05rem;
    height: 2.05rem;
  }
  .brand-text {
    padding-left: 0.6rem;
  }
  .brand {
    gap: 0.6rem;
  }
  .closer-lockup {
    max-width: 17rem;
    margin-bottom: 1.4rem;
  }
}

.nowrap {
  white-space: nowrap;
}
.office .office-wide {
  grid-column: 1 / -1;
}
.office dd a,
.foot-brand a {
  overflow-wrap: break-word;
}
