/* nicklavelle.co v2 design system
   Derived from the Lavelle Solutions v2 stylesheet so the two sites share one component
   grammar (eyebrow, kicker, cards, buttons, forms). Tokens and display type carry Nick's
   existing dark / gold identity (Titillium Web + Hanken Grotesk). */
:root {
  color-scheme: dark;
  --bg: #0D0F12;
  --bg-2: #101317;
  --card: #1C2128;
  --card-2: #232931;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --ink: #F5F7FA;
  --muted: #AEB4BC;
  --faint: #7B838D;
  --amber: #C9A86A;
  --amber-deep: #B08F4F;
  --amber-ink: #0D0F12;
  --ok: #7fc39a;
  --err: #f0a08a;
  --field: #0A0C0F;
  --field-border: rgba(255, 255, 255, 0.28);
  --focus: #E8CE95;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius: 2px;
  --radius-card: 4px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: "Titillium Web", "Hanken Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.02rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
::selection { background: var(--amber); color: var(--amber-ink); }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 2000;
  background: var(--amber); color: var(--amber-ink); padding: 10px 14px; font-weight: 700; border-radius: var(--radius);
}
.skip:focus { top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; letter-spacing: -0.01em; font-weight: 900; text-transform: uppercase; text-wrap: balance; }
h3, h4 { font-weight: 700; }
.g { color: var(--amber); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { max-width: 68ch; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 60ch; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 12px; font-family: var(--head);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before, .kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(13, 15, 18, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; font-size: 1.12rem; }
.brand .dot { color: var(--amber); }
.brand img { height: 42px; width: auto; }
.brand span { white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { font-family: var(--head); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 0; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber); }
.nav .button { margin-left: 6px; }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius);
  width: 44px; height: 44px; color: var(--ink); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 0.25s, opacity 0.25s; }
.header-cta-mobile { display: none; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius); font-family: var(--head); font-weight: 600; font-size: 0.84rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  text-align: center; min-height: 48px;
}
.button.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.button.primary:hover { background: #dcc08a; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { border-color: var(--amber); color: var(--amber); }
.button.dark { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.button.dark:hover { border-color: var(--amber); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.site-header .header-cta-mobile { display: none; }
.nav a { white-space: nowrap; }
.text-link { color: var(--amber); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: #dcc08a; }
.arrow::after { content: "\2192"; margin-left: 6px; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(78vh, 760px); display: flex; align-items: flex-end; padding: clamp(96px, 14vh, 150px) 0 clamp(48px, 7vh, 80px); overflow: hidden; }
.hero.compact { min-height: 0; padding-top: clamp(56px, 9vh, 96px); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 15, 18, 0.45) 0%, rgba(13, 15, 18, 0.7) 45%, rgba(13, 15, 18, 0.98) 100%); }
.hero.no-image { background: radial-gradient(circle at 80% 10%, rgba(201, 168, 106, 0.14), transparent 40rem), var(--bg-2); border-bottom: 1px solid var(--line); }
.hero-content { max-width: 760px; }
.hero h1 { margin: 18px 0 20px; }
.hero-copy { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-support { margin-top: 22px; color: var(--faint); font-size: 0.92rem; letter-spacing: 0.02em; }
.hero-support b { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section.tight { padding: clamp(44px, 6vw, 72px) 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 14px; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split h2 { margin-top: 16px; }
.split p + p { margin-top: 14px; }
.split .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figure.portrait img { aspect-ratio: 4 / 5; object-position: top; }
.figure figcaption { padding: 12px 16px; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 12px; position: relative; transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--amber-deep); }
a.card:hover { transform: translateY(-3px); }
.card.accent { border-top: 3px solid var(--amber); }
.card .label { font-family: var(--head); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.card h3 { margin-top: 2px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .cta { margin-top: auto; padding-top: 10px; color: var(--ink); font-weight: 700; font-size: 0.92rem; }
.card .cta::after { content: "\2192"; margin-left: 8px; color: var(--amber); transition: transform 0.25s; display: inline-block; }
a.card:hover .cta::after { transform: translateX(4px); }
.card ul { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.card ul li { padding-left: 20px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.card .index { font-weight: 800; color: var(--amber); font-size: 1.05rem; letter-spacing: 0.04em; }

/* Service list */
.service-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.service-list li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.service-list strong { font-size: 1.08rem; }
.service-list span { color: var(--muted); font-size: 0.97rem; }
.service-list .tag { display: inline-block; margin-top: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.step { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-weight: 800; color: var(--amber); font-size: 1.1rem; margin-bottom: 12px; }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

/* Panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 48px); }
.panel.amber { background: linear-gradient(135deg, rgba(201, 168, 106, 0.16), rgba(201, 168, 106, 0.04)); border-color: rgba(201, 168, 106, 0.45); }
.panel h2 { margin-top: 14px; }
.panel .lead { margin-top: 12px; }
.panel .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.cta-band { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.cta-band .actions { justify-content: flex-end; margin: 0; }

/* Check list */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { padding-left: 34px; position: relative; color: var(--muted); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(201, 168, 106, 0.18); color: var(--amber); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
.check-list.two { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.check-list b { color: var(--ink); }

/* Notice */
.notice { border-left: 3px solid var(--amber); padding: 14px 18px; background: rgba(201, 168, 106, 0.08); color: var(--muted); font-size: 0.95rem; border-radius: 0 var(--radius) var(--radius) 0; }
.notice b { color: var(--ink); }

/* Forms */
.form-shell { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-side { position: sticky; top: 96px; }
.form-side h2 { margin-top: 16px; }
.form-side .lead { margin-top: 12px; }
.form-side .check-list { margin-top: 22px; }
.form-side .aside-link { margin-top: 26px; font-size: 0.95rem; color: var(--muted); }
form.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.4vw, 38px); display: grid; gap: 18px; }
.lead-form fieldset { border: 0; display: grid; gap: 18px; min-width: 0; }
.lead-form legend { font-weight: 700; margin-bottom: 4px; }
.lead-form label, .lead-form .field { display: grid; gap: 7px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead-form input[type="text"], .lead-form input[type="email"], .lead-form input[type="tel"], .lead-form input[type="url"], .lead-form input[type="number"], .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--field);
  border: 1px solid var(--field-border); border-radius: var(--radius); padding: 13px 14px; min-height: 48px;
}
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.lead-form select option { color: #111; background: #fff; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(245, 241, 232, 0.42); }
.lead-form input[type="file"] { font-size: 0.92rem; color: var(--muted); padding: 10px 0; }
.lead-form input[type="file"]::file-selector-button { font: inherit; font-weight: 600; background: transparent; color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 14px; margin-right: 12px; cursor: pointer; }
.lead-form .hint { font-weight: 400; color: var(--faint); font-size: 0.82rem; }
.lead-form .opt { font-weight: 400; color: var(--faint); }
.lead-form .choices { display: flex; flex-wrap: wrap; gap: 10px; }
.lead-form .choices label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 10px 14px; border: 1px solid var(--field-border); border-radius: 999px; cursor: pointer; background: var(--field); }
.lead-form .choices input { accent-color: var(--amber); width: 18px; height: 18px; }
.lead-form .choices label:has(input:checked) { border-color: var(--amber); color: var(--amber); }
.lead-form .consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.lead-form .consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber); flex: none; }
.lead-form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.lead-form .form-foot { display: grid; gap: 12px; }
.lead-form .form-foot .button { width: 100%; }
.lead-form .fine { font-size: 0.84rem; color: var(--faint); }
.lead-form .fine a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.form-msg { display: none; padding: 14px 16px; border-radius: var(--radius); font-size: 0.95rem; border: 1px solid; }
.form-msg.is-error { display: block; border-color: rgba(240, 160, 138, 0.6); background: rgba(240, 160, 138, 0.1); color: var(--ink); }
.form-msg a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.form-success { display: none; background: var(--card); border: 1px solid rgba(127, 195, 154, 0.6); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.form-success.is-shown { display: block; }
.form-success .mark { width: 44px; height: 44px; border-radius: 50%; background: rgba(127, 195, 154, 0.18); color: var(--ok); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 10px; }
.form-success p { color: var(--muted); }
.form-success .actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.lead-form.is-sent { display: none; }

/* Case studies / credibility */
.case { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; }
.case .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.case .meta span { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.case p { color: var(--muted); font-size: 0.95rem; }

/* Partner list */
.partner { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.partner:first-child { border-top: 1px solid var(--line); }
.partner h3 { font-size: 1.05rem; }
.partner p { color: var(--muted); font-size: 0.94rem; grid-column: 1; }
.partner .text-link { grid-row: 1; grid-column: 2; white-space: nowrap; font-size: 0.9rem; }

/* FAQ / details */
details { border-top: 1px solid var(--line); padding: 16px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--amber); font-weight: 800; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 10px; color: var(--muted); }

/* Prose (privacy, about) */
.prose h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin-top: 10px; display: grid; gap: 6px; }
.prose a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: 0.86rem; color: var(--faint); margin-top: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-family: var(--head); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--muted); font-size: 0.94rem; }
.footer a:hover { color: var(--ink); }
.footer .brand { margin-bottom: 14px; }
.footer .about { color: var(--muted); font-size: 0.92rem; max-width: 36ch; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 0.84rem; }
.footer-bottom p { max-width: none; }
.founder-link { color: var(--amber) !important; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Nick-specific */
.social-row { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.social-row a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); color: var(--muted); transition: 0.25s; border-radius: var(--radius); }
.social-row a:hover { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
.social-row svg { width: 19px; height: 19px; fill: currentColor; }
.social-row .sr-k { font-family: var(--head); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.62rem; color: var(--faint); margin-right: 4px; }
.quote { font-family: var(--head); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.01em; border-left: 3px solid var(--amber); padding-left: 24px; }
.chapter { max-width: 760px; }
.chapter + .chapter { margin-top: 56px; }
.chapter .cap { font-family: var(--head); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.7rem; color: var(--amber); margin-bottom: 12px; }
.chapter h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 16px; }
.chapter p { color: var(--muted); font-size: 1.05rem; line-height: 1.78; }
.chapter p + p { margin-top: 14px; }
.chapter em { color: var(--ink); font-style: normal; font-weight: 600; }
.lesson { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--line); }
.lesson:last-child { border-bottom: 1px solid var(--line); }
.lesson .ln { font-family: var(--head); font-weight: 900; font-size: 1.6rem; color: var(--amber); line-height: 1; }
.lesson h3 { margin-bottom: 10px; }
.lesson p { color: var(--muted); }
.nl-form { display: grid; gap: 12px; }
.nl-form .field { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--field); border: 1px solid var(--field-border); border-radius: var(--radius); padding: 13px 14px; min-height: 48px; }
.nl-msg { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.nl-msg.ok { color: var(--ok); }
.nl-msg.err { color: var(--err); }
.nl-fine { font-size: 0.82rem; color: var(--faint); margin-top: 10px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .lesson { grid-template-columns: 1fr; gap: 8px; } }

/* 404 */
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1000px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; box-shadow: var(--shadow);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .button { margin: 14px 0 0; border-bottom: 0; }
  .site-header.menu-open .nav { display: flex; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header .header-cta-mobile { display: inline-flex; margin-left: auto; padding: 10px 14px; min-height: 42px; font-size: 0.85rem; }
  .menu-toggle { margin-left: 0; }
  .split, .form-shell, .cta-band { grid-template-columns: 1fr; }
  .form-side { position: static; }
  .cta-band .actions { justify-content: flex-start; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .check-list.two { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 72px; }
  .brand span { font-size: 0.86rem; }
}
@media (max-width: 560px) {
  .grid.four, .steps, .steps.three { grid-template-columns: 1fr; }
  .lead-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .brand img { height: 36px; }
  .header-cta-mobile { font-size: 0.78rem; padding: 9px 11px; }
}
/* Phones: denser shade at the top of photo heroes so the eyebrow and headline stay legible over bright areas. */
@media (max-width: 600px) {
  .hero-shade { background: linear-gradient(180deg, rgba(13, 15, 18, 0.66) 0%, rgba(13, 15, 18, 0.8) 40%, rgba(13, 15, 18, 0.98) 100%); }
}

/* ===== v2.1 components (shared by both sites; appended at build) ===== */

/* Track record */
.stats { gap: 14px; }
.stat { border-top: 2px solid var(--amber); padding-top: 16px; display: grid; gap: 6px; }
.stat strong { font-family: var(--head, var(--font)); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.stats-note { color: var(--faint); font-size: 0.82rem; margin-top: 10px; }

/* Recommendation cards: static, text-first */
.recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.recs.one { grid-template-columns: minmax(0, 1fr); }
.recs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rec .rec-theme { font-family: var(--head, var(--font)); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.rec blockquote { margin: 0; }
.rec blockquote p { font-size: 1.04rem; line-height: 1.6; color: var(--ink); max-width: none; }
.rec .rec-by { display: grid; gap: 2px; font-size: 0.92rem; margin-top: auto; padding-top: 4px; }
.rec .rec-by strong { font-weight: 700; }
.rec .rec-by span { color: var(--muted); }
.rec .rec-by .rec-rel { color: var(--faint); font-size: 0.84rem; }
.rec details { border: 0; padding: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.rec details:last-of-type { border-bottom: 0; }
.rec summary { font-size: 0.9rem; color: var(--amber); font-weight: 600; justify-content: flex-start; gap: 8px; min-height: 32px; align-items: center; }
.rec details .rec-full { margin-top: 10px; display: grid; gap: 10px; }
.rec details .rec-full p { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: none; }
.rec-collection .rec { padding: 32px; }
.rec-collection .rec .rec-full p { color: var(--ink); font-size: 1rem; }
.rec-collection .rec h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* Project proof: property type -> challenge -> role -> outcome */
.project { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; min-width: 0; }
.section.alt .project { background: var(--bg); }
.project h3 { font-size: 1.2rem; }
.project .where { color: var(--faint); font-size: 0.85rem; }
.project dl { display: grid; gap: 10px; margin: 0; }
.project dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.project dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); padding-top: 3px; }
.project dd { margin: 0; color: var(--muted); font-size: 0.95rem; }
.project-note { color: var(--faint); font-size: 0.85rem; margin-top: 14px; }

/* Problem -> service list */
.problems { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.problems li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.problems .p { font-weight: 700; font-size: 1.05rem; }
.problems .s { color: var(--muted); font-size: 0.97rem; }
.problems .tag { display: block; margin-top: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }

/* Concern chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; list-style: none; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 0.88rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq summary { padding: 6px 0; min-height: 44px; align-items: center; }

/* Assessment offer */
.offer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); list-style: none; }
.offer li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.offer strong { font-size: 1.04rem; }
.offer span { color: var(--muted); font-size: 0.95rem; }

/* Forms: conditional contact fields, required markers, inline errors */
.lead-form [data-when] { display: none; }
.lead-form [data-when].is-on { display: grid; }
.lead-form .field-error { color: var(--err); font-size: 0.86rem; font-weight: 500; }
.lead-form [aria-invalid="true"] { border-color: var(--err) !important; box-shadow: 0 0 0 1px var(--err); }
.lead-form fieldset[aria-invalid="true"] .choices label { border-color: var(--err); }
.lead-form .choices label { min-height: 44px; }
.lead-form .form-summary { display: none; }
.lead-form .form-summary.is-shown { display: block; padding: 12px 16px; border: 1px solid rgba(240, 160, 138, 0.6); background: rgba(240, 160, 138, 0.1); border-radius: var(--radius); font-size: 0.93rem; }
.lead-form .more-fields { border-top: 1px solid var(--line); padding-top: 14px; }
.lead-form .more-fields > summary { font-weight: 600; color: var(--amber); font-size: 0.95rem; min-height: 40px; }
.lead-form .more-fields[open] > summary { margin-bottom: 14px; }
.lead-form .more-fields .inner { display: grid; gap: 16px; }
.lead-form details.more-fields { border-bottom: 0; }

/* Article (blog shell) */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-meta { color: var(--faint); font-size: 0.88rem; margin: 10px 0 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.article-body h2 { font-size: 1.35rem; margin: 36px 0 12px; }
.article-body h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.article-body p, .article-body li { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; display: grid; gap: 8px; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.post-list { display: grid; gap: 14px; max-width: 860px; }
.post-list .card h2 { font-size: 1.2rem; }
.post-list .date { color: var(--faint); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 860px) {
  .recs, .recs.three, .offer { grid-template-columns: minmax(0, 1fr); }
  .problems li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .project dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rec { padding: 22px 20px 18px; }
}
.partner .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.lead-form .choices input { width: 20px; height: 20px; }
/* Phone header: logo mark + primary action + menu. The brand name returns at wider widths. */
@media (max-width: 480px) {
  .site-header .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* With six destinations the full nav needs ~1,150px; collapse to the menu at 1,180px and below (Lavelle Solutions). */
@media (max-width: 1180px) {
  .site-header.has-wide-nav .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 18px; box-shadow: var(--shadow);
  }
  .site-header.has-wide-nav .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink); }
  .site-header.has-wide-nav .nav a[aria-current="page"]::after { display: none; }
  .site-header.has-wide-nav .nav .button { margin: 14px 0 0; border-bottom: 0; }
  .site-header.has-wide-nav.menu-open .nav { display: flex; }
  .site-header.has-wide-nav .menu-toggle { display: inline-flex; margin-left: 0; }
  .site-header.has-wide-nav.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.has-wide-nav.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.has-wide-nav.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-header.has-wide-nav .header-cta-mobile { display: inline-flex; margin-left: auto; padding: 10px 14px; min-height: 42px; font-size: 0.85rem; }
}
.site-header .brand { flex-shrink: 0; }
.site-header.has-wide-nav .nav { gap: 22px; }
/* ===== v2.2 refinement (shared; appended after components.css) =====
   Primary reference: Linear (layered dark surfaces, hairline borders, inset edge
   highlights instead of drop shadows, tight display tracking, short transitions).
   Secondary reference: Ramp, for financial content only (bone canvas, paper cards,
   uppercase micro-labels, tabular figures, no shadows).
   Brand colors, typefaces, and gold CTAs stay as defined in base-<site>.css. */
:root {
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms;
  --t: 200ms;
  --radius-lg: var(--radius-card, 12px);
  --surface-1: var(--bg-2);
  --surface-2: var(--card);
  --surface-3: var(--card-2);
}

/* Display type: tighter tracking at large sizes */
h1 { letter-spacing: -0.024em; }
h2 { letter-spacing: -0.02em; }

/* Header: hairline only */
.site-header { box-shadow: none; }
.site-header.is-scrolled { border-bottom-color: var(--line); }

/* Surfaces: layered, hairline, inset highlight */
.card, .rec, .project, .case, .panel, .step, form.lead-form, .form-success, .figure {
  border-radius: var(--radius-lg);
  border-color: var(--line);
  box-shadow: var(--edge);
}
.section.alt { background: var(--surface-1); border-color: var(--line); }
.section.alt .card, .section.alt .rec, .section.alt form.lead-form { background: var(--surface-2); }
.step { background: var(--surface-1); }
.section.alt .step { background: var(--bg); }

/* Interaction: color, background, and border only; no lift */
.button { transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.card, .rec, .project, .risk { transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
a.card:hover { transform: none; border-color: var(--line-strong); background: var(--surface-3); }
.card:hover { border-color: var(--line-strong); }
.card .cta::after { transition: transform var(--t) var(--ease); }
.nav a { transition: color var(--t-fast) var(--ease); }
.text-link { transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease); }
a.card:focus-visible { outline-offset: 3px; }
summary { border-radius: 4px; }

/* Reveal: hidden only after site.js has run (html.reveal-ready); short and small */
.reveal { opacity: 1; transform: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-ready .reveal:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Ivory sections (Ramp): CapEx, sample-report, and coverage content ---------- */
.section.ivory {
  --bg: #f4f2f0;
  --card: #ffffff;
  --card-2: #fbfaf9;
  --ink: #0c0a08;
  --muted: #4a4744;
  --faint: #6d6c6b;
  --line: #e5e2de;
  --line-strong: #d2cdc7;
  --amber: #8a5a1f;
  --amber-deep: #8a5a1f;
  --focus: #8a5a1f;
  --edge: none;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
}
.section.ivory .kicker::before, .section.ivory .eyebrow::before { background: #c08a43; }
.section.ivory .button.primary { background: #d9a25a; border-color: #d9a25a; color: #1b1206; }
.section.ivory ::selection { background: #f0d7b0; color: #0c0a08; }
.section.ivory .offer { border-top-color: var(--line); }
.section.ivory .offer li { border-bottom-color: var(--line); }

/* ---------- Overwatch: coverage risk cards ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.risk { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px 22px; display: grid; gap: 12px; min-width: 0; }
.risk:hover { border-color: var(--line-strong); }
.risk-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.risk h3 { font-size: clamp(1.1rem, 1.6vw, 1.28rem); letter-spacing: -0.012em; }
.risk > p:not(.risk-tag):not(.sources) { color: var(--muted); font-size: 0.96rem; }
.sources { font-size: 0.78rem; line-height: 1.55; color: var(--faint); }
.sources .src { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.sources .src:hover { color: var(--ink); text-decoration-color: currentColor; }
.risk .sources { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 2px; }

/* Expandable calculation */
details.calc { border: 1px solid var(--line); border-radius: 10px; padding: 0; background: var(--card-2); }
details.calc:last-of-type { border-bottom: 1px solid var(--line); }
details.calc > summary { padding: 12px 14px; min-height: 44px; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--ink); transition: color var(--t-fast) var(--ease); }
details.calc > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--amber); border-bottom: 1.5px solid var(--amber); transform: rotate(45deg) translateY(-2px); transition: transform var(--t) var(--ease); flex: none; }
details.calc[open] > summary::after { content: ""; transform: rotate(-135deg) translateY(-2px); }
details.calc > summary:hover { color: var(--amber); }
details.calc .calc-label { margin: 0 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.calc-rows { margin: 10px 14px 0; display: grid; font-variant-numeric: tabular-nums; }
.calc-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.calc-rows dt { font-size: 0.86rem; color: var(--muted); }
.calc-rows dd { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; }
.calc-rows .total { border-bottom: 1px solid var(--line-strong); }
.calc-rows .total dt { color: var(--ink); font-weight: 700; }
.calc-rows .total dd { font-weight: 700; }
details.calc .calc-note { margin: 10px 14px 14px; font-size: 0.8rem; color: var(--faint); }
.role-note { margin-top: 26px; max-width: 860px; padding: 14px 18px; border-left: 2px solid var(--amber); background: rgba(138, 90, 31, 0.06); border-radius: 0 8px 8px 0; font-size: 0.92rem; color: var(--muted); }

/* Compact facts strip */
.facts { background: var(--surface-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 4px clamp(18px, 3vw, 36px); border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-family: var(--head, var(--font)); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--amber); font-variant-numeric: tabular-nums; }
.fact-num span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-left: 6px; vertical-align: 0.6em; }
.fact > p:not(.fact-num):not(.sources) { color: var(--muted); font-size: 0.92rem; }
.facts-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--faint); max-width: none; }

/* Statement split */
.statement-lead { margin-top: 18px; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; color: var(--ink); font-weight: 500; }
.statement .muted { margin-top: 14px; }
.figure.tall img { aspect-ratio: 4 / 5; }

/* Six-step plan */
.plan { list-style: none; counter-reset: plan; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.plan li { counter-increment: plan; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.02rem; }
.plan li::before { content: counter(plan, decimal-leading-zero); font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; font-size: 0.95rem; padding-top: 2px; }


/* ---------- Photographic project stories ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); background: var(--surface-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.story.flip .story-media { order: 2; }
.story-media { position: relative; margin: 0; min-height: 520px; overflow: hidden; background: var(--card); }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.78rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.story-body { padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px); display: grid; gap: 22px; align-content: center; max-width: 680px; }
.story-body h2 { margin-top: 12px; }
.story .story-body { max-width: none; padding-right: max(clamp(20px, 5vw, 72px), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.story.flip .story-body { padding-right: clamp(20px, 5vw, 72px); padding-left: max(clamp(20px, 5vw, 72px), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.story-item { padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.story-item h3 { font-size: 1.15rem; }
.story-item p { color: var(--muted); font-size: 0.96rem; }
.story-item .kicker { font-size: 0.68rem; }
.story-item .kicker::before { width: 16px; }

/* ---------- Recommendation portrait / video (approved assets only) ---------- */
.rec .rec-by:has(.rec-photo) { grid-template-columns: 56px minmax(0, 1fr); align-items: center; column-gap: 14px; }
.rec-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.rec-id { display: grid; gap: 2px; }
.rec-video { position: relative; aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-1) center / cover no-repeat; cursor: pointer; color: var(--ink); }
.rec-video::before { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--amber); }
.rec-video::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px; border-left: 16px solid var(--amber-ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.rec-video span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rec-video-player { width: 100%; border-radius: 10px; background: #000; }

@media (max-width: 1000px) {
  .risk-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}
@media (max-width: 860px) {
  .story, .story.flip { grid-template-columns: minmax(0, 1fr); }
  .story.flip .story-media { order: 0; }
  .story-media { min-height: 0; aspect-ratio: 16 / 10; }
  .story .story-body, .story.flip .story-body { padding: 40px var(--gutter) 48px; }
  .facts-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fact, .fact:first-child { border-left: 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; padding-bottom: 0; }
  .plan { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile menu: never taller than the visible screen (Safari toolbars included); scrolls inside itself. */
@media (max-width: 860px) {
  .site-header.menu-open .nav { max-height: calc(100vh - 74px); max-height: calc(100dvh - 74px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 1180px) {
  .site-header.has-wide-nav.menu-open .nav { max-height: calc(100vh - 74px); max-height: calc(100dvh - 74px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/* ---------- Mobile QA: tap targets, focus scrolling, keyboard ---------- */
/* Anchors and focused fields land below the sticky header (also used by Safari when the keyboard opens). */
html { scroll-padding-top: 92px; scroll-padding-bottom: 24px; }
.menu-toggle { flex-shrink: 0; }
.site-header .header-cta-mobile { min-height: 44px; }
.site-header .brand, .footer .brand { min-height: 44px; min-width: 44px; }
summary { min-height: 44px; align-items: center; }
.lead-form input[type="file"] { font-size: 1rem; }
.arrow::after { content: "\2192"; content: "\2192" / ""; }
/* Standalone text links get a 44px hit area without changing the layout. */
p > a.text-link:only-child, .founder-link { display: inline-block; padding: 12px 0; margin: -12px 0; }
.bio-link { margin-top: 14px; }
.sources { line-height: 2.2; }
.sources .src { display: inline-block; padding: 9px 0; margin: -9px 0; }
@media (max-width: 860px) {
  .footer ul { gap: 0; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}
.site-header.has-wide-nav .header-cta-mobile { min-height: 44px; }
.rec summary, .lead-form .more-fields > summary { min-height: 44px; }
@media (max-width: 860px) { .footer ul a { min-width: 44px; } }
/* Small phones (iPhone SE with Safari toolbars): keep the primary hero action on the first screen. */
@media (max-width: 480px) {
  .hero, .hero.compact { padding-top: 36px; padding-bottom: 40px; }
  .hero h1 { margin: 14px 0 14px; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { margin-top: 22px; }
}
/* Open mobile menu: dim the page behind it so menu items are not confused with page buttons. */
@media (max-width: 1180px) {
  .site-header.menu-open .nav { z-index: 1; }
  .site-header.menu-open::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(0, 0, 0, 0.55); z-index: 0; }
}
@media (min-width: 861px) { .site-header:not(.has-wide-nav).menu-open::after { display: none; } }
