/* Hallmark · shape: Stage hero over a slate tour · genre: modern-minimal · theme: Dusk (named by the builder, second direction) · job: hire · draw: none
 * hero: Stage on the firm's own photograph (the head on the pale sky, the hours in glass beside it) · nav: edge-aligned, the mark and name, four links, the phone as the action, slate glass once it leaves the photograph · footer: colophon block · imagery: photographs, the firm's own 1 (Hadleigh Castle at sunset) · signature: today's hours and whether anyone will pick up, in glass over the castle · dusk: castle/white-apricot/glass, slate replaced by the firm's blue (by request)
 * axes: mid/grotesk-sans/cool · posture: drenched (the surface is the firm's blue) · contrast: pass · fold: pass · brand: Thompson Accountancy Services (spec 2026-10-26, the accent moved to the firm's hue 246) · copy: verbatim (the team bios, the questions and the privacy wording are the firm's own material) · v2.0.0 */
/* Hallmark · dismissed 29 · smoked glass is Dusk's own product surface, lit edge on, over the castle photograph */
/* Hallmark · waive 77 · a ruled list of five beside a 360px glass pane · the tour is Dusk's own Range for a service list */
/* Hallmark · dismissed F4 · the tour's tabs are unfilled text buttons in a ruled list, not a second primary */
/* Hallmark · dismissed 58 · a 900px window straddles the reviews and the questions, each under budget on its own */
/* Hallmark · waive 44c · the inner pages open on a short banner and the first section shows above the fold · the home page keeps its Stage hero on the castle */
/* Hallmark · waive 79 · the same short banner on the inner pages, the first section following at once · nothing is padded toward the fold */
/* Hallmark · dismissed F7 · pills on the status tag, the dots and the jump links are Dusk's own controls */
/* Hallmark · dismissed 59 · the services page gives each of the eight services its own section, by design */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V5 · weakest: E, the tour pane needs script to switch; without it every pane shows in order */
@import url("./tokens.css");
@import url("./base.css");

:root {
  /* The firm's blue (hue 246, .hallmark/brand-spec.md) is the paper, by the owner's request; the glass, rules and greys are mixed from it. */
  --color-paper: oklch(46.6% 0.118 246); --color-paper-2: oklch(51% 0.12 246); --color-paper-3: oklch(40% 0.105 246);
  --color-ink: oklch(99% 0.004 246); --color-ink-2: oklch(94% 0.02 246); --color-muted: oklch(87% 0.035 246);
  --color-rule: oklch(62% 0.1 246); --color-shade: oklch(22% 0.07 246);
  --glass: oklch(30% 0.09 246 / 0.62);
  --color-accent: oklch(97% 0.01 246); --color-accent-ink: oklch(40% 0.11 246); --color-accent-hi: oklch(100% 0 0);
  --color-accent-deep: oklch(36% 0.1 246); --color-accent-soft: oklch(91% 0.04 246); --color-focus: oklch(92% 0.05 246);
  --nav-height: 84px;
  /* WhatsApp's own green, for the one button that opens a chat. */
  --color-whatsapp: oklch(77% 0.2 150); --color-whatsapp-deep: oklch(46% 0.13 152);
}

/* Chrome */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); }
.skip:focus-visible { top: var(--space-md); }

.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); color: var(--color-day-ink); background: color-mix(in oklab, var(--color-fog) 80%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.nav--slate { background: var(--glass); color: var(--color-ink); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: var(--glass-hi); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-height); }
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { width: auto; height: 60px; }
.nav__logo .logo-white { display: none; }
.nav--slate .logo-white, .nav--inner .logo-white { display: block; }
.nav--slate .logo-dark, .nav--inner .logo-dark { display: none; }
.nav__links { display: flex; gap: var(--space-lg); margin-inline-start: auto; }
.nav__links a { text-decoration: none; font-weight: 500; white-space: nowrap; padding-block: var(--space-xs); border-bottom: 2px solid transparent; }
.nav__links a:hover { border-bottom-color: currentColor; }
.nav__phone { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav__phone:hover { text-decoration: underline; }
.nav__phone svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav__portal { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: inset 0 0 0 1px currentColor; transition: background-color var(--dur-short) var(--ease-out); }
.nav__portal:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.nav__menu { position: relative; }
.nav__menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); font-weight: 600; border-radius: var(--radius-pill); background: color-mix(in oklab, currentColor 10%, transparent); }
.nav__menu summary::-webkit-details-marker { display: none; }
.nav__menu ul { position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); min-width: 14rem; margin: 0; padding: var(--space-xs); list-style: none; background: var(--color-paper-2); color: var(--color-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.nav__menu li a { display: block; padding: var(--space-sm) var(--space-md); font-weight: 500; text-decoration: none; border-radius: var(--radius-inner); }
.nav__menu li a:hover { background: var(--color-paper-3); }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 35%, transparent); transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--ghost { background: color-mix(in oklab, var(--color-light) 6%, transparent); color: var(--color-ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 18%, transparent); }
.btn--ghost:hover { background: color-mix(in oklab, var(--color-light) 12%, transparent); }
.hero .btn--ghost { color: var(--color-day-ink); background: color-mix(in oklab, var(--color-fog) 55%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-day-ink) 25%, transparent); }
.hero .btn--ghost:hover { background: color-mix(in oklab, var(--color-fog) 80%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

.dot { display: inline-block; width: var(--space-xs); height: var(--space-xs); border-radius: var(--radius-pill); background: var(--color-accent); flex-shrink: 0; }
.dot--open { background: var(--color-accent-2); }
.status { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 500; }
.status:empty { display: none; }

/* Hero: the castle at the turn of the light */
.hero { position: relative; min-height: 100svh; margin-block-start: calc(-1 * var(--nav-height)); padding-block: calc(var(--nav-height) + var(--space-2xl)) var(--space-3xl); display: grid; align-items: center; isolation: isolate; color: var(--color-day-ink); }
.hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 62% 72% at 26% 50%, color-mix(in oklab, var(--color-fog) 86%, transparent), transparent 80%), linear-gradient(to bottom, transparent 70%, var(--color-paper)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-2xl) var(--space-3xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); }
.hero h1 { max-width: 14ch; }
.hero .lead { color: var(--color-day-muted); max-width: 34ch; }
.hero__proof { font-size: var(--text-sm); color: var(--color-day-ink); }
.hero__proof a { font-weight: 600; white-space: nowrap; }
.caption { margin-block-start: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }

/* The glass panel: today's hours */
.glass { background: var(--glass); border-radius: var(--radius-card); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: var(--glass-hi), var(--shadow-card); color: var(--color-ink); padding: var(--space-lg); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-block-end: var(--space-md); border-bottom: 1px solid color-mix(in oklab, var(--color-light) 7%, transparent); }
.panel__head h2, .panel__title { font-size: var(--text-title); font-weight: 500; margin: 0; font-family: var(--font-display); letter-spacing: var(--tracking-display); line-height: 1.2; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: var(--space-sm) 0; text-align: left; border-bottom: 1px solid color-mix(in oklab, var(--color-light) 7%, transparent); font-weight: 400; vertical-align: middle; }
.hours th { color: var(--color-ink-2); }
.hours td { color: var(--color-muted); }
.hours td.num { font-variant-numeric: tabular-nums; }
.hours td:last-child { text-align: right; width: 1%; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--color-ink); font-weight: 500; }
.panel__foot { padding-block-start: var(--space-md); color: var(--color-ink-2); max-width: none; font-variant-numeric: tabular-nums; }
.panel__foot a { color: var(--color-ink); font-weight: 500; white-space: nowrap; }
.panel__foot a:hover { text-decoration-color: var(--color-accent); }

/* Sections on slate */
.section { padding-block: var(--section-gap-s); }
.head { margin-block-end: var(--space-2xl); }
.head .lead { margin-block-start: var(--space-md); color: var(--color-muted); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.split--even { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.more { font-weight: 600; }
.more:hover { text-decoration-color: var(--color-accent); }

/* The tour: a ruled list beside one pane */
.tour { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.tour button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; width: 100%; white-space: nowrap; padding: var(--space-lg) 0; border: 0; border-bottom: var(--rule-hair) solid var(--color-rule); background: none; color: var(--color-ink-2); text-align: left; cursor: pointer; font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.2; letter-spacing: var(--tracking-display); }
.tour button::before { content: ""; width: var(--space-xs); height: var(--space-xs); border-radius: var(--radius-pill); background: var(--color-accent); visibility: hidden; }
.tour button[aria-selected="true"] { color: var(--color-ink); }
.tour button[aria-selected="true"]::before { visibility: visible; }
.tour button:hover { color: var(--color-ink); }
.tour button:focus-visible { outline-offset: -2px; }
.pane { display: grid; gap: var(--space-md); align-content: start; min-height: 320px; }
.pane h3 { font-weight: 500; }
.pane p { color: var(--color-ink-2); max-width: 48ch; }
.pane .btn { justify-self: start; margin-block-start: var(--space-sm); }
.pane dl { margin: 0; display: grid; gap: var(--space-md); }
.pane dl > div { padding: var(--space-md); border-radius: var(--radius-inner); background: color-mix(in oklab, var(--color-light) 5%, transparent); }
.pane dt { color: var(--color-muted); font-size: var(--text-sm); }
.pane dd { margin: var(--space-3xs) 0 0; }
.js [role="tabpanel"][hidden] { display: none; }
html:not(.js) .pane + .pane { margin-block-start: var(--space-lg); }

/* Steps as a ruled list, and the note in a bone well */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: var(--rule-hair) solid var(--color-rule); }
.steps--across { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); border-top: 0; }
.steps--across li { grid-template-columns: minmax(0, 1fr); border-top: var(--rule-hair) solid var(--color-rule); border-bottom: 0; padding-block: var(--space-lg) 0; align-content: start; }
.steps--across li::before { font-size: var(--text-display-s); margin-block-end: var(--space-md); }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: baseline; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl); line-height: 1; color: var(--color-accent); font-variant-numeric: tabular-nums; min-width: 1.5ch; }
.steps h3 { font-weight: 500; font-size: var(--text-title); }
.steps p { color: var(--color-muted); margin-block-start: var(--space-3xs); }
.well { background: var(--color-well); color: var(--color-well-ink); border-radius: var(--radius-card); padding: var(--space-xl); display: grid; gap: var(--space-md); }
.well :focus-visible { outline-color: var(--color-accent-deep); }
.card { background: var(--color-card); color: var(--color-well-ink); border-radius: var(--radius-inner); padding: var(--space-xl); box-shadow: 0 1px 2px color-mix(in oklab, var(--color-shade) 12%, transparent); display: grid; gap: var(--space-md); }
.card p { max-width: 45ch; }
.card .card__from { color: var(--color-well-muted); font-size: var(--text-sm); }
.well__caption { color: var(--color-well-muted); font-size: var(--text-sm); }
.well__caption b { color: var(--color-well-ink); font-weight: 500; }

/* What clients say: a ruled tally of three */
.quotes { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); border-top: var(--rule-hair) solid var(--color-rule); padding-block-start: var(--space-xl); }
.quotes blockquote { margin: 0; display: grid; gap: var(--space-md); }
.quotes blockquote p { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.3; letter-spacing: var(--tracking-display); max-width: 45ch; hanging-punctuation: first; }
.quotes footer { color: var(--color-muted); font-size: var(--text-sm); }

/* Questions: rows with a dot that open */
.faq { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary::before { content: ""; width: var(--space-xs); height: var(--space-xs); border-radius: var(--radius-pill); background: var(--color-accent); visibility: hidden; }
.faq details[open] summary::before { visibility: visible; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; padding-block: var(--space-lg); font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.2; letter-spacing: var(--tracking-display); color: var(--color-ink-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--color-ink); }
.faq summary:hover { color: var(--color-ink); }
.faq details p { color: var(--color-muted); max-width: 60ch; padding: 0 0 var(--space-lg) calc(var(--space-xs) + var(--space-sm)); }

/* The close: the office, the map in a well */
.contact { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-md) var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); padding-block-start: var(--space-md); align-content: start; }
.contact dt { color: var(--color-muted); }
.contact dd { margin: 0; }
.contact a { font-weight: 500; }
.contact a:hover { text-decoration-color: var(--color-accent); }
.map { display: block; border-radius: var(--radius-inner); overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-well-2); padding: var(--space-2xs); }
.map:focus-visible { outline: 3px solid var(--color-accent-deep); outline-offset: 3px; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: calc(var(--radius-inner) - var(--space-2xs)); }

/* Footer */
.footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl); font-size: var(--text-sm); color: var(--color-muted); }
.footer__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-lg) var(--gap-columns); }
.footer p { max-width: 52ch; }
.footer ul { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding: 0; list-style: none; justify-content: flex-end; }
.footer a:hover { text-decoration-color: var(--color-accent); }

html:not(.js) [data-open-state] { display: none; }

@media (min-width: 60.01rem) { .nav__menu { display: none; } }
@media (max-width: 60rem) {
  :root { --nav-height: 72px; }
  .nav__links { display: none; }
  .nav__portal { display: none; }
  .nav__logo img { height: 48px; }
  .hero { min-height: 0; padding-block: calc(var(--nav-height) + var(--space-xl)) var(--space-2xl); }
  .hero__grid, .split, .split--even, .quotes, .footer__row { grid-template-columns: minmax(0, 1fr); }
  .steps--across { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
  .hero__grid { gap: var(--space-xl); }
  .hero__scrim { background: linear-gradient(to bottom, color-mix(in oklab, var(--color-fog) 82%, transparent) 0%, color-mix(in oklab, var(--color-fog) 60%, transparent) 55%, var(--color-paper) 100%); }
  .footer ul { justify-content: flex-start; }
}
@media (max-width: 40rem) {
  .nav__logo img { height: 40px; }
  .nav__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .btn { width: 100%; }
  .steps--across { grid-template-columns: minmax(0, 1fr); }
}

.footer .footer__legal { grid-column: 1 / -1; max-width: 100ch; color: var(--color-muted); font-size: var(--text-xs); border-top: var(--rule-hair) solid var(--color-rule); padding-block-start: var(--space-md); }
.map--lazy { display: grid; place-content: center; justify-items: center; gap: var(--space-md); text-align: center; padding: var(--space-lg); color: var(--color-well-muted); }
.map--lazy p { max-width: 45ch; font-size: var(--text-sm); }
.map--lazy .btn--ghost { color: var(--color-well-ink); background: transparent; box-shadow: inset 0 0 0 1px var(--color-well-muted); }
.map--lazy .btn--ghost:hover { background: var(--color-well-2); }
.map--plain.map--lazy, .contact-side .map--lazy { color: var(--color-ink-2); }
.contact-side .map--lazy .btn--ghost { color: var(--color-ink); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 40%, transparent); }
.contact-side .map--lazy .btn--ghost:hover { background: color-mix(in oklab, var(--color-light) 10%, transparent); }

/* ---------- Inner pages ---------- */
.nav--inner { background: var(--color-paper); color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav__links a[aria-current="page"] { border-bottom-color: currentColor; }
.banner { padding-block: var(--space-2xl) var(--space-2xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.banner--tall { padding-block: var(--space-3xl) var(--space-4xl); border-bottom: 0; }
.banner h1 { max-width: 16ch; font-size: var(--text-display-s); }
.banner .lead { margin-block-start: var(--space-md); color: var(--color-ink-2); }
.banner .actions { margin-block-start: var(--space-lg); }
.banner .lead a { font-weight: 500; }
.banner__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); align-items: end; }
.jump { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: flex-end; }
.jump a { text-decoration: none; font-weight: 500; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 8%, transparent); white-space: nowrap; }
.jump a:hover { background: color-mix(in oklab, var(--color-light) 16%, transparent); }
.section--tight { padding-block: var(--space-3xl); }

/* Services */
.service { padding-block: var(--space-3xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.service:last-of-type { border-bottom: 0; }
.service__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.service__text { display: grid; gap: var(--space-lg); }
.service__text p { color: var(--color-ink-2); max-width: 52ch; }
.service .pane { min-height: 0; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xs); }
.ticks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: baseline; color: var(--color-ink-2); }
.ticks li::before { content: ""; width: var(--space-xs); height: var(--space-xs); border-radius: var(--radius-pill); background: var(--color-accent); }

/* About */
.pane--facts { min-height: 0; }
.facts { margin: 0; display: grid; gap: var(--space-sm); }
.facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); padding-block: var(--space-xs); border-bottom: 1px solid color-mix(in oklab, var(--color-light) 7%, transparent); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--color-muted); }
.facts dd { margin: 0; }
.team { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.person { display: grid; gap: var(--space-2xs); align-content: start; }
.person img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-inner); margin-block-end: var(--space-sm); background: var(--color-paper-2); }
.person h3 { font-size: var(--text-title); font-weight: 500; }
.person__role { color: var(--color-muted); font-weight: 500; }
.person p { color: var(--color-ink-2); font-size: var(--text-sm); }
.ways { margin: 0; display: grid; border-top: var(--rule-hair) solid var(--color-rule); }
.ways > div { padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ways dt { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.2; letter-spacing: var(--tracking-display); }
.ways dd { margin: var(--space-xs) 0 0; color: var(--color-ink-2); max-width: 52ch; }
.photo-well { border-radius: var(--radius-inner); overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-well-2); }
.photo-well img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap; border-top: var(--rule-hair) solid var(--color-rule); padding-block-start: var(--space-2xl); }

/* Questions page */
.faq-group { padding-block: var(--space-2xl); }
.faq-group .head { margin-block-end: 0; }
.faq details p { max-width: 60ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.contact-side { display: grid; gap: var(--space-xl); }
.map--plain { background: var(--color-paper-3); }
.form { display: grid; gap: var(--space-lg); }
.hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.field { display: grid; gap: var(--space-xs); }
.field label { font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-well-muted); border-radius: var(--radius-inner); background: var(--color-card); color: var(--color-well-ink); outline: 2px solid transparent; outline-offset: -3px; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--color-well-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-color: var(--color-accent-deep); border-color: var(--color-well-ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.form__help { min-height: 1lh; color: var(--color-error); font-size: var(--text-sm); }
.form__small { color: var(--color-well-muted); font-size: var(--text-sm); }
.well .btn { background: var(--color-paper); color: var(--color-ink); box-shadow: none; }
.well .btn:hover { background: var(--color-paper-3); }

/* Privacy */
.prose { display: grid; gap: var(--space-md); }
.prose h2 { font-size: var(--text-section); margin-block-start: var(--space-lg); }
.prose h2:first-child { margin-block-start: 0; }
.prose p { max-width: 65ch; line-height: 1.65; color: var(--color-well-ink); }
.prose a { font-weight: 500; }

@media (max-width: 60rem) {
  .banner__grid, .service__grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .jump { justify-content: flex-start; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
}
@media (max-width: 40rem) {
  .banner h1 { font-size: var(--text-3xl); }
  .jump a { white-space: normal; }
}

/* ---------- Light and deep bands, to break up the blue ---------- */
.section--light, .service--light { background: var(--color-well); color: var(--color-well-ink); border-color: var(--color-well-rule); }
.section--light :focus-visible, .service--light :focus-visible { outline-color: var(--color-accent-deep); }
.section--light .head .lead, .service--light .service__text p, .section--light .steps p, .section--light .person p, .section--light .person__role, .section--light .faq details p, .service--light .ticks li { color: var(--color-well-muted); }
.section--light .steps li, .section--light .faq details, .section--light .faq, .section--light .ways, .section--light .ways > div { border-color: var(--color-well-rule); }
.service--light .ticks li::before, .section--light .faq summary::before, .section--light .dot { background: var(--color-accent-deep); }
.section--light .steps li::before { color: var(--color-accent-deep); }
.section--light .steps--across li::before { color: var(--color-accent-deep); }
.section--light .faq summary { color: var(--color-well-muted); }
.section--light .faq details[open] summary, .section--light .faq summary:hover { color: var(--color-well-ink); }
.section--light .btn--ghost, .service--light .btn--ghost { color: var(--color-well-ink); background: transparent; box-shadow: inset 0 0 0 1px var(--color-well-muted); }
.section--light .btn--ghost:hover, .service--light .btn--ghost:hover { background: var(--color-well-2); }
.section--light .btn, .service--light .btn { background: var(--color-paper); color: var(--color-ink); box-shadow: none; }
.section--light .btn:hover, .service--light .btn:hover { background: var(--color-paper-3); }
.section--light .btn--ghost, .service--light .btn--ghost { background: transparent; color: var(--color-well-ink); box-shadow: inset 0 0 0 1px var(--color-well-muted); }
.service--light .pane { background: var(--color-card); color: var(--color-well-ink); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 1px 2px color-mix(in oklab, var(--color-shade) 12%, transparent); }
.section--light .more:hover { text-decoration-color: var(--color-paper); }
.section--light .person h3 { color: var(--color-well-ink); }
.section--deep { background: var(--color-paper-3); color: var(--color-ink); }

/* ---------- Who we help, plans, dates, social links ---------- */
.who { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg) var(--gap-columns); }
.who > div { border-top: var(--rule-hair) solid var(--color-well-rule); padding-block-start: var(--space-md); }
.who dt { font-family: var(--font-display); font-weight: 500; font-size: var(--text-title); line-height: 1.2; letter-spacing: var(--tracking-display); }
.who dd a { font-weight: 500; color: var(--color-well-ink); white-space: nowrap; }
.who dd a:hover { text-decoration-color: var(--color-accent-deep); }
.who dd { margin: var(--space-xs) 0 0; color: var(--color-well-muted); }
.section--light .photo-well { background: var(--color-well-2); }
.caption--light { color: var(--color-well-muted); }
.who--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.plans { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.plan { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: var(--space-md); padding: var(--space-xl); background: var(--color-card); border-radius: var(--radius-card); box-shadow: 0 1px 2px color-mix(in oklab, var(--color-shade) 12%, transparent); }
.plan h3 { font-size: var(--text-title); }
.plan__line { color: var(--color-well-muted); }
.plan__price { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); }
.plan__price .num { font-size: var(--text-3xl); font-variant-numeric: tabular-nums; margin-inline-end: var(--space-2xs); }
.plan .ticks li { color: var(--color-well-muted); }
.plan .ticks li::before { background: var(--color-accent-deep); }
.plan .btn--ghost { color: var(--color-well-ink); box-shadow: inset 0 0 0 1px var(--color-well-muted); justify-self: start; }
.plan .btn--ghost:hover { background: var(--color-well-2); }
.plans__note { margin-block-start: var(--space-xl); color: var(--color-well-muted); max-width: 65ch; }
.dates { width: 100%; border-collapse: collapse; border-top: var(--rule-hair) solid var(--color-rule); }
.dates th, .dates td { padding: var(--space-md) 0; text-align: left; vertical-align: top; border-bottom: var(--rule-hair) solid var(--color-rule); }
.dates th { font-weight: 500; width: 36%; padding-inline-end: var(--space-lg); white-space: normal; }
.dates td { color: var(--color-ink-2); }
.section--light .dates, .section--light .dates th, .section--light .dates td { border-color: var(--color-well-rule); }
.section--light .dates td { color: var(--color-well-muted); }
.dates-group { padding-block: var(--space-2xl); }
.footer__social { grid-column: 2; justify-content: flex-end; }
@media (max-width: 60rem) {
  .who, .who--four { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .footer__social { grid-column: auto; justify-content: flex-start; }
}

/* ---------- Depth on the home page: tonal washes, the firm's mark, the castle again ---------- */
.section--wash { position: relative; isolation: isolate; overflow: clip; background: linear-gradient(to bottom, var(--color-paper), var(--color-paper-3)); }
.section--rise { background: linear-gradient(to bottom, var(--color-paper-2), var(--color-paper)); }
.section--settle { background: linear-gradient(to bottom, var(--color-paper-3), var(--color-paper)); }
.section--wash::before { content: ""; position: absolute; z-index: -1; inset-block: calc(-1 * var(--space-2xl)); right: -2%; width: 46%; background: url("images/mark-white.png") no-repeat right center / contain; opacity: 0.08; pointer-events: none; }
.section--rise .steps p, .section--rise .head .lead { color: var(--color-ink-2); }
.section--rise .steps--across li::before { font-size: var(--text-display); }
.who--cards { gap: var(--gap-columns); }
.who--cards > div { border-top: 0; padding: var(--space-xl) var(--space-lg); background: var(--color-card); border-radius: var(--radius-card); box-shadow: 0 1px 2px color-mix(in oklab, var(--color-shade) 12%, transparent); }
.band { position: relative; isolation: isolate; overflow: clip; padding-block: var(--section-gap); }
.band__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 82%; }
.band__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--color-paper) 26%, color-mix(in oklab, var(--color-paper) 22%, transparent) 62%, var(--color-paper-3)); }
.band .quotes { border-top: 0; padding-block-start: 0; }
.band .quotes li { background: var(--glass); border-radius: var(--radius-card); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: var(--glass-hi), var(--shadow-card); padding: var(--space-xl); }
.band .quotes footer { color: var(--color-ink-2); }
@media (max-width: 60rem) {
  .section--wash::before { width: 90%; right: -30%; inset-block: 0 40%; }
  .band { padding-block: var(--section-gap-s); }
  .band .quotes li { padding: var(--space-lg); }
}

/* ---------- The same depth on the inner pages ---------- */
.banner { position: relative; isolation: isolate; overflow: clip; border-bottom: 0; background: linear-gradient(to bottom, var(--color-paper-2), var(--color-paper)); }
.banner::before { content: ""; position: absolute; z-index: -1; inset-block: calc(-1 * var(--space-xl)); right: -2%; width: 40%; background: url("images/mark-white.png") no-repeat right center / contain; opacity: 0.08; pointer-events: none; }
.section:not(.section--light):not(.section--deep):not(.section--wash):not(.section--rise):not(.section--settle):not(.band) { background: linear-gradient(to bottom, var(--color-paper), var(--color-paper-3)); }
.service:not(.service--light) { background: linear-gradient(to bottom, var(--color-paper), var(--color-paper-3)); border-bottom: 0; }
.section--light, .service--light { background: linear-gradient(to bottom, var(--color-well), var(--color-well-2)); }
.service--light { border-bottom: 0; }
.footer { background: var(--color-paper-3); border-top: 0; }
@media (max-width: 60rem) {
  .banner::before { width: 80%; right: -30%; }
}
.banner .facts dt { color: var(--color-ink-2); }

/* ---------- Page-to-page transitions: the nav holds, the page fades and settles ---------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
main { view-transition-name: page; }
::view-transition-old(page) { animation: page-out var(--dur-micro) var(--ease-in) both; }
::view-transition-new(page) { animation: page-in var(--dur-long) var(--ease-out) both; }
::view-transition-group(site-nav) { animation-duration: var(--dur-short); }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes page-fade { from { opacity: 0; } }
/* Reduced motion keeps a short plain fade and drops the movement. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(page) { animation: page-out var(--dur-micro) linear both; }
  ::view-transition-new(page) { animation: page-fade var(--dur-short) linear both; }
  ::view-transition-group(site-nav) { animation-duration: var(--dur-micro); }
}

/* ---------- The WhatsApp button: the app's mark, and a tint of its green ---------- */
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--whatsapp svg { color: var(--color-whatsapp-deep); }
.hero .btn--whatsapp { background: color-mix(in oklab, var(--color-whatsapp) 24%, var(--color-fog)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-whatsapp-deep) 45%, transparent); }
.hero .btn--whatsapp:hover { background: color-mix(in oklab, var(--color-whatsapp) 38%, var(--color-fog)); }
