/* "Meridian" visual system. Dark, bold, data-sharp. Same page modules as every system. */

:root { --wide-padded: calc(var(--wide) + 2 * var(--gutter)); color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-read); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mark); color: var(--ground); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mark); color: var(--ground); padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h2 { font-family: var(--font-display); font-weight: 720; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; }
.h2-sm { font-size: var(--step-2); }
.lede { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }

/* ---------- buttons: the broker's highlight colour carries every action ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.005em;
  text-decoration: none; border-radius: var(--radius-control);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-solid { background: var(--mark); color: var(--ground); }
.btn-solid:hover { background: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- slots ---------- */
.slot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; color: var(--ink-2); font-family: var(--font-mono); font-weight: 500; font-size: 14px;
  background-color: var(--ground-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,0.035) 11px 12px);
  border: 1px dashed rgba(255,255,255,0.22); border-radius: var(--radius-panel);
}
.slot-inline { display: inline-flex; flex-direction: row; padding: 2px 10px; font-size: 13px; vertical-align: middle; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--ground); border-bottom: 1px solid transparent; transition: border-color 200ms; }
.site-head.is-stuck { border-bottom-color: var(--rule); }
.head-inner { max-width: var(--wide-padded); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.slot-logo { width: 40px; height: 40px; font-size: 10px; }
.logo { height: 40px; width: auto; }
.wordmark-text { font-family: var(--font-display); font-weight: 780; font-size: 21px; letter-spacing: -0.03em; }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 15.5px; font-weight: 550; color: var(--ink-2); }
.primary-nav > a, .menu-btn { text-decoration: none; padding: 6px 0; transition: color 180ms; }
.primary-nav > a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"], .primary-nav [aria-current="page"] { color: var(--ink); }
.primary-nav [aria-current="page"] { box-shadow: 0 2px 0 var(--mark); }
.menu { position: relative; }
.menu-btn { all: unset; cursor: pointer; font: inherit; padding: 6px 0; display: inline-flex; align-items: center; gap: 8px; transition: color 180ms; }
.menu-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 240ms var(--ease-out); }
.menu-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.menu-btn:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
.menu-panel { position: absolute; top: calc(100% + 18px); left: -20px; z-index: 50; min-width: 260px; padding: 14px 20px 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-panel); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6); animation: panelIn 240ms var(--ease-out); }
.menu-panel ul { display: grid; }
.menu-cols { grid-template-columns: repeat(2, minmax(200px, 1fr)); column-gap: 26px; }
.menu-panel a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink-2); transition: color 160ms; }
.menu-panel a:hover { color: var(--mark); }
.menu-all { margin-top: 10px; padding-top: 12px !important; border-top: 1px solid var(--rule); color: var(--mark) !important; font-family: var(--font-mono); font-size: 14px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.head-cta { min-height: 44px; }
.mobile-menu-btn { display: none; }
.mobile-menu { display: none; }

/* ---------- hero: full-width headline over a cinematic strip ---------- */
.hero { padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(56px, 7vw, 104px); }
.hero-grid { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-areas: "copy" "photo"; gap: clamp(32px, 4vw, 56px); }
.hero-copy { grid-area: copy; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
.hero-title { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 760; font-size: var(--step-4); line-height: 0.92; letter-spacing: -0.045em; margin-bottom: clamp(24px, 3vw, 40px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { max-width: 52ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; }
.hero-photo { grid-area: photo; margin: 0; }
.slot-photo { aspect-ratio: 21 / 8; width: 100%; font-size: 15px; }

/* ---------- inner page head ---------- */
.page-head { max-width: var(--wide-padded); margin: 0 auto; padding: clamp(36px, 5vw, 80px) var(--gutter) clamp(28px, 3.5vw, 48px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-bottom: 26px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--mark); }
.page-title { font-family: var(--font-display); font-weight: 760; font-size: clamp(2.8rem, 1.6rem + 4.4vw, 6rem); line-height: 0.94; letter-spacing: -0.04em; max-width: 16ch; }
.page-lede { margin-top: 24px; max-width: 50ch; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }

/* ---------- how we help (signature): numbered tab strip ---------- */
.reader { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(56px, 7vw, 104px) var(--gutter); background: var(--ground-2); }
.reader-head, .reader-body { max-width: var(--wide); margin: 0 auto; }
.reader-head { margin-bottom: clamp(28px, 3vw, 44px); }
.reader-body { display: grid; gap: clamp(28px, 3vw, 44px); counter-reset: goal; }
.reader-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.choice {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative; counter-increment: goal;
  display: grid; gap: 8px; padding: 0 16px 20px 0; color: var(--ink-3); transition: color 220ms;
}
.choice::before { content: counter(goal, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; }
.choice::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -1px; height: 2px; background: var(--mark); transform: scaleX(0); transform-origin: left; transition: transform 460ms var(--ease-out); }
.choice-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.4vw, 21px); letter-spacing: -0.015em; }
.choice:hover { color: var(--ink); }
.choice[aria-checked="true"] { color: var(--ink); }
.choice[aria-checked="true"]::after { transform: scaleX(1); }
.choice:focus-visible { outline: 2px solid var(--mark); outline-offset: 4px; }
.reader-sheet { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); }
.docs { counter-reset: doc; }
.docs li { counter-increment: doc; display: grid; grid-template-columns: 52px 1fr; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.4; }
.docs li:first-child { border-top: 1px solid var(--rule); }
.docs li::before { content: counter(doc, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--mark); }
.docs li.enter { animation: rowIn 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); }
.docs-links a { text-decoration: none; }
.docs-links a:hover { color: var(--mark); }
.sheet-more { display: inline-block; margin-top: 20px; font-family: var(--font-mono); font-size: 14px; color: var(--mark); text-underline-offset: 5px; }
.sheet-more:hover { color: #fff; }
.tool-card { padding: clamp(24px, 3vw, 36px); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-panel); display: grid; gap: 14px; justify-items: start; align-self: start; }
.tool-card.enter { animation: rowIn 520ms var(--ease-out) both; animation-delay: 160ms; }
.tool-name { font-family: var(--font-display); font-weight: 740; font-size: var(--step-2); line-height: 1; letter-spacing: -0.03em; }
.reads { font-size: var(--step-0); line-height: 1.55; color: var(--ink-2); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- differentiator ---------- */
.with { padding: clamp(72px, 9vw, 136px) var(--gutter); }
.with-grid { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.with-title { font-family: var(--font-display); font-weight: 720; font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.035em; }
.with-copy { color: var(--ink-2); font-size: var(--step-0); max-width: 42ch; }

/* ---------- tools: four tiles over the live tool ---------- */
.tools { padding: 0 var(--gutter) clamp(72px, 9vw, 136px); }
.tools-grid { max-width: var(--wide); margin: 0 auto; display: grid; gap: 28px; }
.tool-list { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: tool; }
.tool-list li { counter-increment: tool; }
.tool-list a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 22px; background: var(--ground-2); border: 1px solid var(--rule); border-radius: var(--radius-panel); text-decoration: none; transition: border-color 220ms, background-color 220ms; }
.tool-list a::before { content: counter(tool, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--mark); }
.tool-list a:hover { border-color: var(--mark); background: var(--paper); }
.tl-name { font-family: var(--font-display); font-weight: 720; font-size: 20px; letter-spacing: -0.02em; }
.tl-desc { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.slot-embed { min-height: 460px; }

/* ---------- team ---------- */
.team { max-width: var(--wide-padded); margin: 0 auto; padding: clamp(72px, 9vw, 136px) var(--gutter) clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.team-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.team-page { border-top: 0; padding-top: 0; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); max-width: 860px; }
.team .sheet-more { margin-top: 32px; }
.slot-person, .person-photo { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; margin-bottom: 18px; filter: grayscale(0.15); }
.person-name { font-family: var(--font-display); font-weight: 720; font-size: var(--step-1); letter-spacing: -0.02em; }
.person-role { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.person-bio { margin-top: 12px; font-size: 16.5px; color: var(--ink-2); max-width: 40ch; }

/* ---------- reviews ---------- */
.reviews { max-width: var(--wide-padded); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 7vw, 104px); }
.slot-reviews { min-height: 200px; }

/* ---------- where we work: town ticker ---------- */
.areas { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; }
.areas-plain { border: 0; padding-top: 0; }
.areas-grid { display: grid; gap: clamp(28px, 3vw, 44px); }
.areas-grid > div:first-child { max-width: var(--wide); width: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 20px; }
.areas-grid > div:first-child .maple { margin: 0; }
.areas-grid > div:last-child { display: grid; gap: 28px; }
.area-list { --ticker: 1; display: flex; flex-wrap: wrap; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.area-list li { font-family: var(--font-display); font-weight: 760; font-size: clamp(2.4rem, 1.4rem + 4vw, 5.4rem); letter-spacing: -0.04em; line-height: 1.1; white-space: nowrap; }
.area-list li::after { content: "/"; color: var(--mark); font-weight: 400; margin: 0 0.4em; }
.area-list a { text-decoration: none; color: var(--ink); transition: color 200ms; }
.area-list a:hover { color: var(--mark); }
.area-list.is-ticking { flex-wrap: nowrap; width: max-content; max-width: none; margin: 0; padding: 0; animation: ticker 48s linear infinite; }
.areas:hover .area-list.is-ticking, .area-list.is-ticking:focus-within { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.areas-note { max-width: var(--wide); width: 100%; margin: 0 auto; padding: 0 var(--gutter); color: var(--ink-2); }
.areas-plain .area-list { --ticker: 0; }

/* ---------- notes ---------- */
.notes { max-width: var(--wide-padded); margin: 0 auto; padding: clamp(72px, 9vw, 136px) var(--gutter) clamp(48px, 6vw, 88px); }
.notes .h2 { margin-bottom: 32px; }
.notes-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.slot-note { padding: 26px 24px 30px; background: var(--ground-2); border: 1px solid var(--rule); border-radius: var(--radius-panel); font-family: var(--font-display); font-weight: 650; font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.015em; min-height: 200px; }
.note-tag { display: block; margin-bottom: 40px; font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--mark); }

/* ---------- faq ---------- */
.faq { max-width: var(--wide-padded); margin: 0 auto; padding: clamp(56px, 7vw, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 72px); }
.faq > div:first-child { display: grid; gap: 14px; align-content: start; justify-items: start; }
.faq-cat { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(24px, 3vw, 40px); }
.faq-list { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center; padding: 22px 0; font-family: var(--font-display); font-weight: 650; font-size: 18.5px; line-height: 1.35; letter-spacing: -0.01em; transition: color 180ms; }
.faq summary:hover { color: var(--mark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; transition: transform 300ms var(--ease-out); }
.faq details[open] summary { color: var(--mark); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 62ch; }
.faq details[open] p { animation: rowIn 380ms var(--ease-out) both; }
.cat-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: var(--radius-control); font-family: var(--font-mono); font-size: 13.5px; text-decoration: none; color: var(--ink-2); transition: border-color 180ms, color 180ms; }
.cat-jump a:hover { border-color: var(--mark); color: var(--mark); }

/* ---------- service pages ---------- */
.svc-body, .svc-sections, .related, .index-list-wrap, .tool-stage, .contact-grid-wrap, .wizard-wrap { max-width: var(--wide-padded); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.svc-body { padding-bottom: clamp(40px, 5vw, 72px); }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.svc-sections { padding-top: clamp(16px, 2vw, 32px); padding-bottom: clamp(24px, 3vw, 48px); }
.svc-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 72px); padding: clamp(28px, 3vw, 44px) 0; border-top: 1px solid var(--rule); }
.svc-row p { color: var(--ink-2); max-width: 58ch; }
.svc-h { font-family: var(--font-display); font-weight: 720; font-size: var(--step-2); line-height: 1.04; letter-spacing: -0.03em; }
.svc-sections + .faq { padding-top: clamp(24px, 3vw, 40px); }
.related { padding-top: clamp(16px, 2vw, 28px); padding-bottom: clamp(64px, 8vw, 120px); }
.related-h { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--ink-3); margin-bottom: 14px; }
.related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.related-list a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--rule); border-radius: var(--radius-control); text-decoration: none; font-weight: 650; transition: border-color 180ms, color 180ms; }
.related-list a:hover { border-color: var(--mark); color: var(--mark); }

.index-list-wrap { padding-bottom: clamp(64px, 8vw, 120px); }
.index-list { border-top: 1px solid var(--rule); }
.index-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: baseline; padding: clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.work-num { font-family: var(--font-mono); font-size: 13px; color: var(--mark); }
.work-name { font-family: var(--font-display); font-weight: 720; font-size: var(--step-2); line-height: 1.04; letter-spacing: -0.03em; transition: color 200ms, transform 320ms var(--ease-out); }
.work-desc { font-size: 16.5px; color: var(--ink-2); max-width: 50ch; }
.index-row:hover .work-name { color: var(--mark); transform: translateX(8px); }

.tool-stage { padding-bottom: clamp(40px, 5vw, 64px); }
.slot-tool { min-height: 580px; }
.slot-facts { min-height: 160px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-weight: 650; font-size: 15px; }
.form input:not([type="radio"]):not([type="checkbox"]), .form textarea, .form select {
  font: 400 18px/1.4 var(--font-read); color: var(--ink);
  background: var(--ground-2); border: 1px solid var(--rule); border-radius: var(--radius-control);
  padding: 15px 16px; min-height: 58px; width: 100%;
  transition: border-color 180ms, box-shadow 180ms;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--mark); box-shadow: 0 0 0 3px rgba(240, 207, 99, 0.18); }
.form [aria-invalid="true"] { border-color: #ff8a80 !important; }
.form-error { color: #ff8a80; font-weight: 650; font-size: 15px; }
.form-done { display: grid; gap: 10px; padding: 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-panel); }
.form-done p:last-child { color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.consent { grid-template-columns: 22px 1fr !important; align-items: start; font-weight: 500 !important; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--mark); }

.contact-grid-wrap { padding-bottom: clamp(64px, 8vw, 120px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.slot-booking { min-height: 620px; }
.contact-side { display: grid; gap: 22px; }
.contact-phone { font-family: var(--font-mono); font-size: 17px; }

.wizard-wrap { max-width: calc(760px + 2 * var(--gutter)); padding-bottom: clamp(64px, 8vw, 120px); }
.wizard-progress { height: 2px; background: var(--rule); margin-bottom: 32px; overflow: hidden; }
.wizard-progress span { display: block; height: 100%; width: 25%; background: var(--mark); transition: width 520ms var(--ease-out); }
.wiz-step legend { font-family: var(--font-display); font-weight: 720; font-size: var(--step-2); letter-spacing: -0.03em; margin-bottom: 20px; }
.wiz-step:not([hidden]) { animation: rowIn 420ms var(--ease-out) both; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; display: block !important; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 60px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--ground-2); font-weight: 650; font-size: 17px; transition: border-color 180ms, background-color 180ms, color 180ms; }
.opt:hover span { border-color: var(--ink-2); }
.opt input:checked + span { background: var(--mark); border-color: var(--mark); color: var(--ground); }
.opt input:focus-visible + span { outline: 2px solid var(--mark); outline-offset: 2px; }
.wiz-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }

/* ---------- footer ---------- */
.site-foot { background: #070b10; color: var(--ink-3); padding: clamp(56px, 7vw, 96px) var(--gutter) 96px; font-size: 15px; border-top: 1px solid var(--rule); }
.foot-inner { max-width: var(--wide); margin: 0 auto; }
.foot-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-bottom: 40px; margin-bottom: 26px; border-bottom: 1px solid var(--rule); }
.foot-h { font-family: var(--font-mono); font-weight: 400; font-size: 13px; color: var(--mark); margin-bottom: 16px; }
.foot-index ul { display: grid; gap: 9px; }
.foot-index a { color: var(--ink-2); text-decoration: none; transition: color 160ms; }
.foot-index a:hover { color: var(--ink); }
.foot-legal { font-size: 14px; }

.mobile-cta { display: none; }

/* ---------- motion ---------- */
.js .hero-title .line > span { transform: translateY(105%); }
.js.ready .hero-title .line > span { transform: none; transition: transform 1000ms var(--ease-out); }
.js.ready .hero-title .line:nth-child(2) > span { transition-delay: 90ms; }
.js .hero-sub, .js .hero-actions { opacity: 0; transform: translateY(10px); }
.js.ready .hero-sub, .js.ready .hero-actions { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out) 350ms, transform 700ms var(--ease-out) 350ms; }
.js .hero-photo { clip-path: inset(0 12% 0 12% round 6px); opacity: 0.4; }
.js.ready .hero-photo { clip-path: inset(0 0 0 0 round 6px); opacity: 1; transition: clip-path 1400ms var(--ease-in-out) 250ms, opacity 900ms ease-out 250ms; }

mark.hl { color: inherit; padding: 0 0.03em; background: linear-gradient(var(--mark), var(--mark)) 0 96% / 0% 0.1em no-repeat; transition: background-size 900ms var(--ease-out); }
.js.ready .hero-title mark.hl { background-size: 100% 0.1em; transition-delay: 1100ms; }
.with.in mark.hl { background-size: 100% 0.1em; transition-delay: 250ms; }
html:not(.js) mark.hl { background-size: 100% 0.1em; }

/* Meridian has its own dividers, so the shared draw hook stays off. */
.js .draw::after { content: none; }

.maple { display: flex; align-items: center; margin-bottom: 16px; }
.maple svg { display: block; flex: 0 0 auto; }
.maple span { display: none; }
.maple-line { fill: none; stroke: #e0685b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 230; stroke-dashoffset: 230; transition: stroke-dashoffset 2600ms var(--ease-in-out) 150ms; }
.maple-fill { fill: #e0685b; opacity: 0; transition: opacity 900ms ease-out 2300ms; }
.maple.in .maple-line { stroke-dashoffset: 0; }
.maple.in .maple-fill { opacity: 0.16; }
html:not(.js) .maple-line { stroke-dashoffset: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .primary-nav, .head-cta { display: none; }
  .mobile-menu-btn { display: inline-flex; margin-left: auto; align-items: center; min-height: 44px; padding: 0 16px; font: 700 15px var(--font-display); color: var(--ink); background: transparent; border: 1px solid var(--rule-strong); border-radius: var(--radius-control); cursor: pointer; }
  .mobile-menu:not([hidden]) { display: block; max-height: calc(100vh - 72px); overflow: auto; padding: 8px var(--gutter) 28px; background: var(--ground); border-top: 1px solid var(--rule); animation: panelIn 240ms var(--ease-out); }
  .mobile-menu ul { display: grid; margin-bottom: 14px; }
  .mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 650; font-size: 18px; }
  .mm-h { margin: 20px 0 6px; font-family: var(--font-mono); font-size: 13px; color: var(--mark); }
  .reader-choices { display: flex; overflow-x: auto; gap: 22px; scroll-snap-type: x mandatory; }
  .choice { flex: 0 0 auto; scroll-snap-align: start; padding-right: 0; }
  .choice::after { right: 0; }
  .reader-sheet { grid-template-columns: 1fr; }
  .tool-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .slot-booking { min-height: 460px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero-copy { grid-template-columns: 1fr; row-gap: 24px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.6rem); margin-bottom: 0; }
  .hero-title .line, .js .hero-title .line > span, .js.ready .hero-title .line > span { display: inline; transform: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .slot-photo { aspect-ratio: 4 / 3; }
  .page-title { font-size: clamp(2.4rem, 11.5vw, 3.4rem); }
  .with-grid, .team-head, .faq, .svc-grid, .svc-row { grid-template-columns: 1fr; }
  .tool-list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person-bio { font-size: 15.5px; }
  .notes-list { grid-template-columns: 1fr; }
  .slot-note { min-height: 0; }
  .note-tag { margin-bottom: 18px; }
  .index-row { grid-template-columns: 40px 1fr; }
  .index-row .work-desc { grid-column: 2; }
  .foot-index { grid-template-columns: 1fr 1fr; }
  .slot-embed { min-height: 320px; }
  .slot-tool { min-height: 440px; }
  .opts, .field-row { grid-template-columns: 1fr; }
  .wiz-nav .btn { flex: 1; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ground); border-top: 1px solid var(--rule); transform: translateY(110%); transition: transform 320ms var(--ease-out); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .area-list.is-ticking { animation: none !important; }
  .js .hero-photo { clip-path: none; opacity: 1; }
  .js .hero-sub, .js .hero-actions, .js .hero-title .line > span { opacity: 1; transform: none; }
  mark.hl, .with mark.hl { background-size: 100% 0.1em; }
  .maple-line { stroke-dashoffset: 0; }
  .maple-fill { opacity: 0.16; }
}

/* ---------- rates, partners, video (shared modules) ---------- */
.rates-panel { max-width: calc(1000px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) clamp(24px, 3vw, 40px); }
.rates-down { padding: 32px; border: 1px solid var(--rule); color: var(--ink-2); }
.rates-means-h { margin-bottom: 8px; }
.svc-h-sm { font-size: var(--step-1); }
.rates-disclaimer { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--ink-3); max-width: 72ch; }
.referral { max-width: 860px; display: grid; gap: 24px; }
.ref-part { display: grid; gap: 16px; }
.ref-part + .ref-part { margin-top: 12px; }
.ref-part legend { font-weight: 700; font-size: 15px; color: var(--ink-3); margin-bottom: 12px; }
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.video-wrap { max-width: var(--wide-padded); margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 4vw, 56px); }
.intro-video { display: block; width: 100%; max-width: 860px; border-radius: 8px; background: #000; }
.proto-inline { display: inline-block; margin-top: 6px; padding: 6px 12px; border-radius: 4px; background: #15191a; color: #f0cf63; font: 600 13px system-ui, sans-serif; text-decoration: none; }

.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.partner-body { margin: 14px 0 22px; color: var(--ink-2); max-width: 52ch; }
.partner-signup { display: grid; gap: 18px; align-content: start; }
.form-note { font-size: 14.5px; color: var(--ink-3); }
.partner-link { font-size: var(--step-1); font-weight: 700; overflow-wrap: anywhere; }

/* ---------- scroll reveals + partners band ---------- */
.js .rv { opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.rv-in { opacity: 1; transform: none; }
.hero-photo { will-change: translate; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }
.partners-band { padding: clamp(56px, 7vw, 104px) var(--gutter); }
.partners-band-inner { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 48px); align-items: center; }
.partners-band-inner p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; }
@media (max-width: 900px) { .partners-band-inner { grid-template-columns: 1fr; } .partners-band-inner .btn { justify-self: start; } }
.partners-band { border-top: 1px solid var(--rule); }

/* ---------- real photos (uploads, RGP) take the placeholder's frame ---------- */
.hero-photo img { display: block; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 760px) {
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 18%; }
}

/* Dark header: most broker logos have dark lettering, so a logo sits on a light
   plate. The phone block below narrows it; keep this rule above that block. */
.wordmark.has-logo .logo { background: #f4f2ec; padding: 6px 10px; border-radius: 8px; box-sizing: content-box; height: 32px; }

/* ---------- logo plus name: keep the full name readable on phones ----------
   A wide logo already carries the name (shared/site.js adds .logo-wide), so the
   name is kept for screen readers only. Beside a small mark it can wrap. */
@media (max-width: 560px) {
  .wordmark.has-logo { min-width: 0; }
  .wordmark.has-logo .logo { max-width: 58vw; height: auto; max-height: 30px; }
  .wordmark.has-logo:not(.logo-wide) .wordmark-text { min-width: 0; white-space: normal; overflow: visible; overflow-wrap: anywhere; text-overflow: clip; font-size: clamp(14px, 3.6vw, 18px); line-height: 1.2; }
  .wordmark.logo-wide .wordmark-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
