/* ==========================================================================
   Annual Report theme (Linnet Studio). Sample business: Meridian Advisory.
   The firm's homepage set as an annual report: exhibits with action titles,
   numbered findings, a fee table, a Gantt workplan. Mobile-first (393px),
   then 760 (tablet) and 1080 (desktop). No scripts: the exhibit chooser is
   radios + :has().
   ========================================================================== */
:root {
  /* ---- Shared token layer (same names in every Linnet theme; re-skin presets override these) ---- */
  --c-bg: #FFFFFF;          /* page background */
  --c-surface: #EDF2F0;     /* alternate sections and panels (mist) */
  --c-ink: #0F2F2B;         /* deep spruce: text, headings, buttons, dark bands */
  --c-muted: #465853;       /* secondary text, 7.5:1 on paper */
  --c-line: #CDD7D4;        /* hairlines */
  --c-line-strong: #8A9894; /* form and chip borders, 3:1 */
  --c-accent: #0F2F2B;      /* primary buttons and the Call tile */
  --c-on-accent: #FFFFFF;
  --c-accent-2: #B3322A;    /* status only: losses, shortfalls, "in the red" */
  --f-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", Menlo, monospace;  /* not used */
  --r-sm: 4px;
  --r-lg: 4px;
  --r-pill: 4px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;

  /* ---- Theme names, mapped to the shared layer ---- */
  --ink: var(--c-ink);
  --paper: var(--c-bg);
  --mist: var(--c-surface);
  --negative: var(--c-accent-2);
  --font-display: var(--f-display);
  --font-text: var(--f-body);
  --radius: var(--r-sm);
  --ink-soft: var(--c-muted);
  --rule: var(--c-line);
  --rule-strong: var(--c-line-strong);
  --s1: var(--s-1); --s2: var(--s-2); --s3: var(--s-3); --s4: var(--s-4); --s5: var(--s-5); --s6: var(--s-6); --s7: 48px; --s8: 64px; --s9: 96px;

  /* ---- Theme-only ---- */
  --data: #1B7556;          /* the highlighted data series, links, good outcomes */
  --context: #8A9894;       /* comparison series and before-values (3:1 on paper) */
  --on-ink: #FFFFFF;
  --on-ink-soft: #B9CCC6;   /* secondary text on spruce, 8.5:1 */
  --data-tint: #DCEBE5;
  --neg-tint: #F7E7E5;
  --gutter: clamp(18px, 5vw, 64px);
  --max: 1328px;
  --section: 40px;
  --ab-h: 56px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-bottom: calc(var(--ab-h) + 28px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font-text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--data); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--data); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
address { font-style: normal; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
.sample-note { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }
/* One icon style for the whole library: Tabler outline, 2px stroke, from the sprite at the top of the page */
.i { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Touch polish */
a, button, summary, label, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary .i { transition: transform 180ms var(--ease-out); }
details[open] > summary .i { transform: rotate(45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid transparent; border-radius: var(--r-pill); font: 600 15px/1.2 var(--font-text); text-align: center; text-decoration: none; cursor: pointer; transition: transform 120ms var(--ease-out), background-color 150ms ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
  .btn-primary:hover { background: var(--data); }
  .site-nav a:hover { background: var(--mist); }
  .chip:hover span { border-color: var(--ink); }
  summary:hover span { text-decoration: underline; }
}

/* ---------- Header ---------- */
.demo-bar { overflow: hidden; margin: 0; padding: 7px 14px; background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.4; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.site-head { border-bottom: 1px solid var(--rule); }
.masthead { max-width: var(--max); margin-inline: auto; padding: 8px var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand call" "nav nav"; align-items: center; column-gap: 12px; }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; justify-self: start; }
.brand-mark { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.brand-mark .meridian { stroke: var(--data); }
.brand-name { font: 600 20px/1.05 var(--font-display); letter-spacing: -0.005em; }
.head-call { grid-area: call; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; }
.head-call span { display: none; }
.head-cta { display: none; }
/* Phones: one scrolling row of links with an edge fade (nav 06) */
.site-nav { grid-area: nav; margin-inline: calc(var(--gutter) * -1); }
.site-nav ul { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; border-radius: var(--radius); }
.site-nav li:first-child a { padding-left: 0; }
.site-nav a:focus-visible { outline-offset: -3px; }
/* Phones from 360px: all five links fit on one row, spread edge to edge, so none hides past the fade */
@media (min-width: 360px) and (max-width: 759.98px) {
  .site-nav ul { justify-content: space-between; gap: 0; overflow-x: visible; -webkit-mask-image: none; mask-image: none; }
  .site-nav a, .site-nav li:first-child a { justify-content: center; min-width: 44px; padding: 0; font-size: 15px; }
}

/* ---------- Section scaffolding ---------- */
.sec-head { max-width: 46rem; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; }
.sec-head p { margin-top: 10px; font-size: 17px; color: var(--ink-soft); max-width: 40em; }
.findings, .services, .cases, .process, .partners, .reviews, .book { padding-block: var(--section); }

/* ---------- Cover (hero) ---------- */
.cover { padding-block: 24px var(--section); }
.cover-grid { display: grid; gap: 32px; }
.cover h1 { font-size: clamp(36px, 4.5vw, 64px); line-height: 1.03; letter-spacing: -0.015em; max-width: 11.5em; }
.lead { margin-top: 16px; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-soft); max-width: 34em; }
.chooser { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.chooser legend { padding: 0; margin-bottom: 10px; font: 600 18px/1.3 var(--font-text); }
.chooser-hint { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); font-size: 15px; font-weight: 500; line-height: 1.2; transition: background-color 150ms ease, color 150ms ease; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--data); outline-offset: 2px; }
.cover-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cover-rating { margin: 0; font-size: 15px; line-height: 1.35; }

/* Exhibit frame: consulting-deck convention (label, action title, units, chart, source) */
.exhibits { min-width: 0; }
.exhibit { border-top: 3px solid var(--ink); padding-top: var(--s4); animation: ex-in 300ms var(--ease-out) both; }
.exhibit + .exhibit { margin-top: var(--s8); }
.ex-label { margin: 0 0 var(--s2); font-size: 14px; font-weight: 600; color: var(--data); }
.ex-title { font-size: clamp(21px, 2.1vw, 29px); line-height: 1.2; max-width: 24em; }
.ex-units { margin: var(--s2) 0 var(--s5); font-size: 14px; color: var(--ink-soft); }
.ex-foot { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); font-size: 15px; }
.ex-source { margin-bottom: var(--s2); font-size: 13px; color: var(--ink-soft); }
.ex-help { max-width: 44em; }

/* Signature interaction: one exhibit at a time, picked by the chooser.
   Browsers without :has() simply show all five exhibits in a row. */
@supports selector(:has(*)) {
  /* Shift-free: all five exhibits share one grid cell, so the frame is as tall as the tallest and nothing moves */
  .exhibits { display: grid; }
  .exhibit { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 200ms ease; }
  .exhibit + .exhibit { margin-top: 0; }
  .cover:has(#need-cash:checked) #ex-cash,
  .cover:has(#need-tax:checked) #ex-tax,
  .cover:has(#need-books:checked) #ex-books,
  .cover:has(#need-profit:checked) #ex-profit,
  .cover:has(#need-sell:checked) #ex-sell { visibility: visible; opacity: 1; }
}
@keyframes ex-in { from { transform: translateY(8px); } to { transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes grow-y { from { transform: scaleY(0); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Line chart (Exhibit 1) ---------- */
.lc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: var(--s3); font-size: 13px; font-weight: 600; }
.lc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lc-legend span::before { content: ""; width: 18px; height: 0; border-top: 3px solid var(--data); }
.lc-legend .k-before { color: var(--ink-soft); }
.lc-legend .k-before::before { border-top-color: var(--context); }
.lc-legend .k-ref { color: var(--negative); }
.lc-legend .k-ref::before { border-top: 2px dashed var(--negative); }
.lc-plot { position: relative; aspect-ratio: 16 / 11; margin: 0 18px 0 46px; }
.lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.exhibit .lc-plot svg { animation: wipe 1s ease-out both .15s; }
.lc-plot polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.l-before { stroke: var(--context); stroke-width: 2.25; }
.l-after { stroke: var(--data); stroke-width: 3.25; }
.lc-short { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: var(--neg-tint); }
.lc-short span { position: absolute; left: 6px; bottom: 4px; font-size: 12px; font-weight: 600; color: var(--negative); }
.lc-grid span { position: absolute; left: 0; right: 0; bottom: calc(var(--y) * 1%); border-top: 1px solid var(--rule); }
.lc-grid span::before { content: attr(data-v); position: absolute; right: calc(100% + 8px); top: -0.75em; font-size: 12px; line-height: 1.5; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lc-plot::after { content: "$20k"; position: absolute; right: calc(100% + 8px); bottom: -0.75em; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.lc-plot { border-bottom: 1px solid var(--ink); }
.lc-ref { position: absolute; left: 0; right: 0; bottom: calc(var(--y) * 1%); border-top: 2px dashed var(--negative); }
.lc-ref span { display: none; }
.lc-dot { position: absolute; left: calc(var(--x) * 1%); bottom: calc(var(--y) * 1%); width: 13px; height: 13px; margin: 0 0 -6.5px -6.5px; border-radius: 50%; background: var(--negative); border: 2px solid var(--paper); }
.lc-note { position: absolute; left: calc(var(--x) * 1% + 10px); bottom: calc(var(--y) * 1% - 24px); font-size: 12px; font-weight: 600; color: var(--negative); white-space: nowrap; }
.lc-end { display: none; }
.lc-x { position: relative; height: 22px; margin: 6px 18px 0 46px; font-size: 12px; color: var(--ink-soft); }
.lc-x span { position: absolute; left: calc(var(--x) * 1%); transform: translateX(-50%); }
.lc-x span:nth-child(even) { display: none; }

@media (min-width: 760px) {
  .lc-legend { display: none; }
  .lc-plot { aspect-ratio: 16 / 9; margin-right: 118px; }
  .lc-x { margin-right: 118px; }
  .lc-x span:nth-child(even) { display: block; }
  .lc-ref span { display: block; position: absolute; left: calc(100% + 10px); top: 0; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--negative); white-space: nowrap; }
  .lc-end { display: block; position: absolute; left: calc(100% + 10px); bottom: calc(var(--y) * 1%); transform: translateY(50%); font-size: 13px; font-weight: 700; white-space: nowrap; }
  .lc-end.k-after { color: var(--data); }
  .lc-end.k-before { color: var(--ink-soft); }
}

/* ---------- Row charts (Exhibits 2, 4, 5) ---------- */
.rc { display: grid; gap: 14px; }
.rc-row { display: grid; grid-template-columns: minmax(0, 1fr) 5.4em; grid-template-areas: "label label" "track value"; column-gap: 12px; row-gap: 4px; align-items: center; }
.rc-label { grid-area: label; font-size: 14px; line-height: 1.3; }
.rc-track { grid-area: track; position: relative; height: 22px; }
.rc-bar { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); min-width: 3px; background: var(--data); }
.exhibit .rc-bar { transform-origin: left; animation: grow-x .6s cubic-bezier(.2, .7, .2, 1) both .1s; }
.rc-value { grid-area: value; text-align: right; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 760px) {
  .rc-row { grid-template-columns: 11em minmax(0, 1fr) 5.4em; grid-template-areas: "label track value"; }
}
/* waterfall */
.rc-waterfall .total .rc-bar { background: var(--ink); }
.rc-waterfall .step .rc-bar { transform-origin: right; }
.rc-waterfall .final .rc-label, .rc-waterfall .final .rc-value { font-weight: 700; }
@media (min-width: 760px) {
  .rc-waterfall .rc-row:not(:first-child) .rc-bar::before { content: ""; position: absolute; right: -1px; bottom: 100%; height: 14px; border-right: 1px dashed var(--ink-soft); }
}
/* diverging */
.rc-diverge .rc-track::before { content: ""; position: absolute; left: calc(var(--zero) * 1%); top: -3px; bottom: -3px; border-left: 1.5px solid var(--ink); }
@media (min-width: 760px) { .rc-diverge .rc-track::before { top: -7px; bottom: -7px; } }
.rc-diverge .neg .rc-bar { background: var(--negative); transform-origin: right; }
.rc-diverge .neg .rc-value { color: var(--negative); }
/* football field */
.rc-field .rc-bar { background: var(--context); }
.rc-field .muted .rc-bar { background: #C3CDCA; }
.rc-field .rc-track::before, .rc-field .rc-track::after { content: ""; position: absolute; top: -7px; bottom: -7px; z-index: 1; }
.rc-field .rc-track::before { left: calc(var(--offer) * 1%); border-left: 2px solid var(--negative); }
.rc-field .rc-track::after { left: calc(var(--sold) * 1%); border-left: 2px solid var(--data); }
.rc-field .rc-head .rc-label, .rc-field .rc-axis .rc-label { display: none; }
.rc-field .rc-head .rc-track { height: 34px; }
.rc-field .rc-head .rc-track::before, .rc-field .rc-head .rc-track::after { top: auto; bottom: -7px; height: 12px; }
.mk-offer, .mk-sold { position: absolute; bottom: 8px; font-size: 12px; font-weight: 700; line-height: 1.2; }
.mk-offer { right: calc(100% - var(--offer) * 1% + 6px); color: var(--negative); text-align: right; }
.mk-sold { left: calc(var(--sold) * 1% + 6px); color: var(--data); }
.rc-field .rc-axis .rc-track { height: 18px; border-top: 1px solid var(--ink); }
.rc-field .rc-axis .rc-track::before, .rc-field .rc-axis .rc-track::after { display: none; }
.rc-axis .rc-track span { position: absolute; top: 4px; left: calc(var(--x) * 1%); transform: translateX(-50%); font-size: 12px; color: var(--ink-soft); }

/* ---------- Column chart (Exhibit 3) ---------- */
.cc-plot { position: relative; height: clamp(200px, 26vw, 260px); margin-top: 26px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(4px, .8vw, 8px); align-items: end; border-bottom: 1px solid var(--ink); }
.cc-col { position: relative; height: calc(var(--v) / 45 * 100%); background: var(--context); }
.exhibit .cc-col { transform-origin: bottom; animation: grow-y .6s cubic-bezier(.2, .7, .2, 1) both .1s; }
.cc-col.ok { background: var(--data); }
.cc-col b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px; font-size: 12px; font-weight: 700; line-height: 1; }
.cc-col.ok b { bottom: auto; top: 6px; color: var(--on-ink); padding: 0; }
.cc-target { position: absolute; left: 0; right: 0; bottom: calc(var(--y) * 1%); z-index: 1; border-top: 2px dashed var(--ink); }
.cc-target span { position: absolute; right: 0; bottom: 4px; padding-left: 4px; background: var(--paper); font-size: 12px; font-weight: 700; white-space: nowrap; }
.cc-x { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(4px, .8vw, 8px); margin-top: 6px; font-size: 12px; color: var(--ink-soft); text-align: center; }


/* ---------- At a glance (dark band) ---------- */
.glance { background: var(--ink); color: var(--on-ink); padding-block: var(--section); }
.glance a { color: var(--on-ink); }
.glance :focus-visible { outline-color: var(--on-ink); }
.glance h2 { font-size: clamp(26px, 3vw, 40px); }
.glance .sample-note { color: var(--on-ink-soft); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
.figure-item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--s2); }
.figure-item dd { font: 300 clamp(48px, 7vw, 104px)/.9 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.figure-item dt { font-size: 14px; line-height: 1.35; color: var(--on-ink-soft); max-width: 18em; }
.assurances { list-style: none; display: grid; gap: 14px; margin-top: 22px; }
.assurances h3 { font-size: 20px; }
.assurances p { margin-top: 2px; color: var(--on-ink-soft); max-width: 26em; font-size: 16px; }
.credentials { margin-top: 24px; }
.credentials h3 { font: 600 16px/1.3 var(--font-text); }
.badges { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 12px; }
.badges li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; color: var(--on-ink-soft); }
.badge-code { flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 6px; border: 1.5px solid var(--on-ink-soft); border-radius: 50%; font: 600 15px/1 var(--font-display); color: var(--on-ink); }

/* ---------- Findings ---------- */
.finding-list { list-style: none; counter-reset: finding; }
.finding-list.more { counter-reset: finding 2; }
.finding { counter-increment: finding; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px 12px; padding-block: 16px; border-top: 1px solid var(--rule); }
.finding::before { content: counter(finding); grid-row: 1 / span 2; font: 300 40px/.9 var(--font-display); color: var(--data); font-variant-numeric: lining-nums; }
.f-text, .f-viz { grid-column: 2; }
.f-text h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; max-width: 24em; }
.f-text p { margin-top: 8px; color: var(--ink-soft); max-width: 36em; }
.f-viz { align-self: center; }
/* Phones: the finding's numeral sits beside its headline only; the note and the chart run the full column */
@media (max-width: 759.98px) {
  .f-text { display: contents; }
  .finding { row-gap: 0; }
  .finding::before { grid-row: auto; font-size: 34px; }
  .f-text p, .f-viz { grid-column: 1 / -1; }
  .f-viz { margin-top: 12px; }
}
.more-findings { border-block: 1px solid var(--rule); }
.more-findings > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font: 600 18px/1.2 var(--font-display); color: var(--ink); }
.more-findings .finding:first-child { border-top-color: var(--rule); }
.mb { display: grid; gap: 12px; }
.mb { gap: 8px; }
.mb-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); column-gap: 10px; align-items: center; font-size: 14px; line-height: 1.3; }
.mb-row > .mb-bar, .mb-row > .mb-v { grid-column: 2; grid-row: 1; }
.mb-row > .mb-v { justify-self: start; margin-left: calc(var(--w) * 0.62% + 8px); }
.mb-l { color: var(--ink-soft); }
.mb-bar { height: 14px; width: calc(var(--w) * 0.62%); min-width: 3px; background: var(--context); }
.mb-row.good .mb-bar { background: var(--data); }
.mb-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.waffle { display: grid; grid-template-columns: repeat(5, 28px); gap: 6px; }
.w { width: 28px; height: 28px; border: 1.5px solid var(--context); }
.w.on { background: var(--ink); border-color: var(--ink); }
.waffle-key { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.bigfig { display: grid; gap: 4px; }
.bigfig-n { font: 300 56px/1 var(--font-display); color: var(--data); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bigfig-l { font-size: 14px; color: var(--ink-soft); }

/* ---------- Services table ---------- */
.services { background: var(--mist); }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table caption { caption-side: bottom; padding-top: var(--s4); text-align: left; font-size: 14px; color: var(--ink-soft); }
.fee-table thead th { padding: 0 var(--s5) var(--s3) 0; border-bottom: 2px solid var(--ink); text-align: left; font: 600 14px/1.3 var(--font-text); color: var(--ink-soft); }
.fee-table thead th:last-child { text-align: right; padding-right: 0; }
.fee-table tbody tr { border-bottom: 1px solid var(--rule-strong); }
.fee-table tbody th { width: 27%; padding: var(--s5) var(--s5) var(--s5) 0; text-align: left; vertical-align: top; font: 600 20px/1.3 var(--font-display); }
.fee-table td { padding: var(--s5) var(--s5) var(--s5) 0; vertical-align: top; }
.fee-table td.fee { padding-right: 0; text-align: right; white-space: nowrap; font-size: 15px; color: var(--ink-soft); }
.fee strong { font: 600 24px/1.2 var(--font-display); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 759.98px) {
  .fee-table { display: flex; flex-direction: column; }
  .fee-table caption { order: 2; }
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .fee-table tbody { display: block; border-top: 2px solid var(--ink); }
  .fee-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding-block: 12px; }
  .fee-table tbody th { width: auto; padding: 0; font-size: 18px; }
  .fee-table td { padding: 0; grid-column: 1 / -1; grid-row: 2; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
  .fee-table td.fee { grid-column: 2; grid-row: 1; white-space: nowrap; text-align: right; line-height: 1.2; font-size: 13px; }
  .fee strong { font-size: 19px; }
}

/* ---------- Case studies (a rail on phones) ---------- */
.case-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
.case { scroll-snap-align: start; }
.case img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.case-body { padding-top: 12px; }
.case h3 { margin-top: 2px; font-size: 21px; }
.case-story { margin-top: 6px; font-size: 15px; line-height: 1.45; }
.case-story dt { font-weight: 700; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.case-story dd { margin-top: 1px; }
.outcome { margin-top: 14px; padding: 12px 14px; background: var(--mist); border-top: 3px solid var(--data); display: grid; gap: 8px; }
.oc-t { margin: 0 0 2px; font-size: 14px; font-weight: 700; }
.oc-row { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); column-gap: 10px; align-items: center; font-size: 14px; }
.oc-row > .oc-bar, .oc-row > .oc-v { grid-column: 2; grid-row: 1; }
.oc-row > .oc-v { justify-self: start; margin-left: calc(var(--w) * 0.66% + 8px); }
.oc-k { color: var(--ink-soft); }
.oc-bar { height: 14px; width: calc(var(--w) * 0.66%); min-width: 3px; background: var(--context); }
.oc-row.good .oc-bar { background: var(--data); }
.oc-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.case-grid:focus-visible, .quotes:focus-visible { outline-offset: -3px; }

/* ---------- Process: Gantt workplan ---------- */
.process { background: var(--mist); }
.g-scale { display: grid; grid-template-columns: minmax(0, 1fr); padding-bottom: var(--s2); }
.g-spacer { display: none; }
.g-weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.g-weeks span { padding-left: 4px; white-space: nowrap; }
.g-rows { list-style: none; counter-reset: step; }
.g-row { counter-increment: step; display: grid; gap: 6px; padding-block: 10px; border-top: 1px solid var(--rule-strong); }
.g-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
.g-text h3 { font-size: 19px; }
.g-text h3::before { content: counter(step); display: inline-block; min-width: 1.3em; color: var(--data); font-weight: 400; }
.g-when { margin: 0; font-size: 14px; font-weight: 700; color: var(--data); white-space: nowrap; }
.g-text p:last-child { grid-column: 1 / -1; margin-top: 2px; color: var(--ink-soft); font-size: 15px; max-width: 34em; }
.g-track { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: center; height: 24px; background-image: linear-gradient(to right, var(--rule-strong) 1px, transparent 1px); background-size: 12.5% 100%; border-right: 1px solid var(--rule-strong); }
.g-bar { grid-column: var(--s) / var(--e); grid-row: 1; height: 12px; background: var(--data); }
.g-ongoing { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.g-ms { grid-column: var(--s); grid-row: 1; justify-self: center; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); }
.g-key { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--rule-strong); font-size: 14px; color: var(--ink-soft); }
.g-key span { display: inline-flex; align-items: center; gap: 8px; }
.k-bar::before { content: ""; width: 26px; height: 12px; background: var(--data); }
.k-ms::before { content: ""; width: 11px; height: 11px; background: var(--ink); transform: rotate(45deg); }

/* ---------- Partners: letter, partners and senior team as one block ---------- */
.partners-grid { display: grid; gap: 24px; }
.letter h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; margin-bottom: 14px; }
.letter p { font: 400 18px/1.6 var(--font-display); max-width: 32em; }
.letter .signoff { margin-top: 12px; font-style: italic; font-size: 19px; }
.partner-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.partner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); }
.partner-body { padding-top: 10px; }
.partner h3 { font-size: 20px; }
.creds { display: flex; gap: 6px; margin: 6px 0 2px; }
.cred { display: inline-block; padding: 2px 8px; border: 1.5px solid var(--ink); border-radius: var(--radius); font: 600 13px/1.4 var(--font-display); }
.role { font-size: 15px; font-weight: 600; color: var(--data); margin-bottom: 4px; }
.partner-body p:last-child { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
/* Phones: one partner per row, portrait beside their details */
@media (max-width: 759.98px) {
  .partner-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .partner { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .partner img { aspect-ratio: 4 / 5; }
  .partner-body { padding-top: 0; }
}
.team h3 { font: 600 16px/1.3 var(--font-text); padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.team ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
.team li { display: grid; padding-block: 8px; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.35; }
.team-name { font-weight: 600; }
.team-role { color: var(--ink-soft); }

/* ---------- Reviews (quotes are a rail on phones) ---------- */
.reviews { border-top: 1px solid var(--rule); }
.reviews-grid { display: grid; gap: 24px; }
.rating-block h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; }
.rating-line { display: flex; align-items: flex-end; gap: 14px; margin: 16px 0; font-size: 16px; line-height: 1.3; }
.rating-num { font: 300 60px/.8 var(--font-display); letter-spacing: -0.02em; }
.rating-line span:last-child { max-width: 9em; padding-bottom: 4px; }
.dist { display: grid; gap: 8px; margin-bottom: var(--s3); max-width: 380px; }
.dist-row { display: grid; grid-template-columns: 4.6em minmax(0, 1fr); column-gap: 10px; align-items: center; font-size: 14px; }
.dist-row > .dist-bar, .dist-row > .dist-v { grid-column: 2; grid-row: 1; }
.dist-row > .dist-v { justify-self: start; margin-left: calc(var(--w) * 0.78% + 8px); }
.dist-k { color: var(--ink-soft); }
.dist-bar { height: 12px; width: calc(var(--w) * 0.78%); min-width: 2px; background: var(--data); }
.dist-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.quotes { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 16px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
.quotes li { scroll-snap-align: start; padding-top: 16px; border-top: 2px solid var(--ink); }
.quotes blockquote p { font: 400 clamp(19px, 1.8vw, 23px)/1.45 var(--font-display); }
.quotes blockquote p::before { content: "“"; }
.quotes blockquote p::after { content: "”"; }
.quotes figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.q-who { font-weight: 700; color: var(--ink); }
.quotes .sample-note { margin-top: 2px; }

/* ---------- Book a consultation ---------- */
.book { background: var(--mist); }
.book-grid { display: grid; gap: 24px; }
.book-main h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; }
.book-lead { margin-top: 10px; font-size: 17px; color: var(--ink-soft); max-width: 34em; }
.reply-card { margin-top: 18px; padding: 18px 16px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); display: grid; gap: 12px 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 15px; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); font: 400 17px/1.4 var(--font-text); }
.field select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus-visible, .field select:focus-visible { border-color: var(--ink); }
.field input:user-invalid { border-color: var(--negative); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s2); }
.form-note { margin: 0; font-size: 14px; color: var(--ink-soft); }
.sent { display: none; margin: 0; padding: 12px 14px; border-left: 3px solid var(--data); background: var(--data-tint); }
.sent:target { display: block; }
.visit { background: var(--paper); border: 1px solid var(--rule); align-self: start; }
.visit img { display: none; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.visit-body { padding: 18px 16px; }
.visit h3 { font-size: 20px; margin-bottom: var(--s2); }
.visit h3:not(:first-child) { margin-top: 18px; }
.visit address a { color: var(--ink); font-weight: 600; text-decoration-color: var(--rule-strong); }
.visit-contact { margin-top: 8px; display: grid; }
.visit-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; overflow-wrap: anywhere; }
.hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding-block: 8px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.hours dt { color: var(--ink-soft); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.visit-note { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink-soft); padding-top: 36px; padding-bottom: calc(var(--ab-h) + 16px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-foot a { color: var(--on-ink); display: flex; align-items: center; min-height: 44px; width: fit-content; }
.site-foot :focus-visible { outline-color: var(--on-ink); }
.foot-grid { display: grid; gap: 16px; padding-bottom: 20px; }
.foot-logo { display: flex; align-items: center; gap: 10px; color: var(--on-ink); font: 600 22px/1.2 var(--font-display); }
.foot-logo .brand-mark .meridian { stroke: #7FC4A8; }
.foot-brand p:last-child { margin-top: var(--s3); max-width: 24em; }
.foot-h { font: 600 15px/1.3 var(--font-text); color: var(--on-ink); margin-bottom: 2px; }
.foot-hours { font-variant-numeric: tabular-nums; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); padding-block: 16px; background: linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, .22)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: 14px; }
.foot-base p { margin: 0; }

/* ---------- C1 Action Bar (phones): Call, Directions, Book ---------- */
.action-bar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--ink); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ab-h); color: var(--ink); font: 600 15px/1 var(--font-text); text-decoration: none; transition: background-color 150ms ease; }
.action-bar a + a { border-left: 1px solid var(--rule); }
.action-bar .ab-call { background: var(--c-accent); color: var(--c-on-accent); }
.action-bar a:active { background: var(--mist); }
.action-bar .ab-call:active { background: var(--data); }
.action-bar :focus-visible { outline-offset: -5px; }

/* ---------- Tablet: 760 ---------- */
@media (min-width: 760px) {
  :root { --section: 80px; --ab-h: 0px; }
  html { scroll-padding-bottom: 0; }
  .action-bar { display: none; }
  .masthead { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand call cta" "nav nav nav"; padding-top: 12px; }
  .head-call { justify-self: end; width: auto; height: auto; min-height: 44px; border: 0; border-radius: 0; display: inline-flex; gap: 8px; color: var(--data); font-weight: 600; font-variant-numeric: tabular-nums; }
  .head-call span { display: inline; }
  .head-cta { grid-area: cta; display: inline-flex; margin-left: 12px; }
  .site-nav ul { -webkit-mask-image: none; mask-image: none; }
  .cover { padding-top: 48px; }
  .sec-head { margin-bottom: 36px; }
  .figures { gap: 32px; margin-top: 32px; padding-bottom: 40px; }
  .figure-item dt { font-size: 16px; }
  .assurances { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
  .assurances h3 { font-size: 22px; }
  .badges { display: flex; flex-wrap: wrap; gap: 12px 24px; }
  .badges li { font-size: 15px; }
  .finding { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 300px); align-items: start; gap: 16px 32px; padding-block: 32px; }
  .finding::before { grid-row: auto; font-size: 52px; }
  .f-text { grid-column: 2; } .f-viz { grid-column: 3; }
  .mb-row { grid-template-columns: 1fr; row-gap: 4px; }
  .mb-row > .mb-bar, .mb-row > .mb-v { grid-row: 2; grid-column: 1; }
  .mb-row > .mb-v { margin-left: calc(var(--w) * 0.82% + 10px); }
  .mb-bar { height: 16px; width: calc(var(--w) * 0.82%); }
  .mb { gap: 14px; }
  .case-grid { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .case img { aspect-ratio: 3 / 2; }
  .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; overflow: visible; }
  .reply-card { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 28px; }
  .form-foot, .sent { grid-column: 1 / -1; }
  .visit img { display: block; }
  .visit-body { padding: 24px; }
  .partner-list { gap: 32px; }
  .partner img { aspect-ratio: 4 / 5; }
  .partner h3 { font-size: 24px; }
  .partner-body p:last-child { font-size: 16px; }
  .team ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .site-foot { padding-top: 64px; padding-bottom: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); column-gap: var(--s6); padding-bottom: var(--s7); }
  /* From tablet up all five findings show (progressive: ::details-content) */
  .more-findings { border: 0; }
}
@supports selector(::details-content) {
  @media (min-width: 760px) {
    .more-findings > summary { display: none; }
    .more-findings::details-content { content-visibility: visible; }
    .finding-list:not(.more) .finding:last-child { border-bottom: 0; }
    .more-findings .finding:last-child { border-bottom: 1px solid var(--rule); }
  }
}

/* ---------- Desktop: 1080 ---------- */
@media (min-width: 1080px) {
  :root { --section: clamp(80px, 8vw, 112px); }
  .masthead { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand nav call cta"; column-gap: 28px; padding-block: 18px; }
  .site-nav { margin: 0; }
  .site-nav ul { padding: 0; overflow: visible; }
  .site-nav li:first-child a { padding-left: 12px; }
  .site-nav a { min-height: 44px; font-size: 16px; }
  .head-cta { margin-left: 0; }
  .brand-name { font-size: 21px; }
  .cover-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s8); align-items: start; }
  .exhibits { padding-top: 6px; }
  .g-scale, .g-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--s6); }
  .g-spacer { display: block; }
  .g-row { align-items: center; padding-block: 18px; }
  .g-track { height: 28px; }
  .g-bar { height: 14px; }
  .partners-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "letter people" "team people"; column-gap: var(--s8); row-gap: var(--s7); align-items: start; }
  .letter { grid-area: letter; }
  .letter p { font-size: 19px; }
  .partner-list { grid-area: people; }
  .team { grid-area: team; }
  .reviews-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--s8); }
  .rating-num { font-size: 88px; }
  .book-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s8); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.lc-grid .lc-grid-ref { border-top-color: transparent; }
