/* Bontile Bookkeeping — components. Tokens live in tokens.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-thickness: 2px; } }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--navy-900); text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; }
h1 { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 600; }
a, button, summary, label, [role="button"] { touch-action: manipulation; }
.btn, .nav-toggle, .copy-btn, .clients__toggle, .floaters__cta, .floaters__top, .choice {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--orange-400); color: var(--navy-900); }
.num { font-variant-numeric: tabular-nums; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--navy-900); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--space-8); }
.section--alt { background: var(--surface-alt); }
.section--white { background: var(--surface); }
.section--dark { background: var(--navy-950); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .muted, .section--dark .lead { color: var(--text-on-dark-muted); }
.section--dark :focus-visible { outline-color: var(--orange-400); }

.section-head { max-width: 720px; margin-bottom: var(--space-8); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 + p { margin-top: var(--space-4); }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; gap: var(--space-8); align-items: center; }
.split > * { min-width: 0; } /* let columns shrink below their widest form control on narrow phones */
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--top { align-items: start; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--orange-400); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.prose { max-width: 65ch; }
.prose p { margin-bottom: var(--space-5); }
.serif { font-family: var(--font-serif); }
.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover .icon { transform: translateX(3px); } }
.btn--primary { background: var(--primary); color: var(--on-primary); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--primary-hover); } }
.btn--accent { background: var(--orange-500); color: var(--navy-950); }
@media (hover: hover) and (pointer: fine) { .btn--accent:hover { background: var(--orange-hover); } }
.btn--secondary { background: transparent; color: var(--navy-900); border-color: var(--border-strong); }
@media (hover: hover) and (pointer: fine) { .btn--secondary:hover { border-color: var(--navy-900); background: var(--surface); } }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.3); }
@media (hover: hover) and (pointer: fine) { .btn--ghost-dark:hover { border-color: #fff; background: rgb(255 255 255 / 0.06); } }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--link); text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover .icon { transform: translateX(3px); } }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { text-decoration: underline; } }
.section--dark .link-arrow { color: var(--orange-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); min-height: 44px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
/* Wordmark: BONTILE is spread letter by letter to exactly the width of BOOKKEEPING SERVICES,
   matching the logo artwork. The column is as wide as the sub line; the negative margin
   removes the trailing letter-spacing so both lines end on the last glyph. */
.brand__text { display: inline-flex; flex-direction: column; line-height: 1; color: var(--blue-700); }
.brand__name { display: flex; justify-content: space-between; font-family: var(--font-sans); font-weight: 800; font-size: 1.625rem; line-height: 0.82; letter-spacing: 0; text-transform: uppercase; }
.brand__sub { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; margin-right: -0.06em; text-transform: uppercase; margin-top: 6px; white-space: nowrap; }
.site-footer .brand__text { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand__sub { color: var(--text-on-dark-muted); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__list { list-style: none; display: flex; gap: var(--space-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--navy-900); background: var(--surface-alt); } }
.nav__link[aria-current="page"] { color: var(--navy-900); font-weight: 600; box-shadow: inset 0 -2px 0 var(--orange-700); border-radius: 0; }
.nav__cta { padding: 10px 18px; min-height: 44px; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--navy-900); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--space-4);
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  }
  .js .nav { display: none; }
  .js .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__link { font-size: 1.0625rem; padding: 0 var(--space-3); min-height: 48px; }
  .nav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--orange-700); background: var(--surface-alt); }
  .nav__cta { width: 100%; min-height: 48px; }
  .no-js .nav { position: static; box-shadow: none; border: 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: var(--text-on-dark);
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 10%, rgb(0 61 213 / 0.55), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgb(255 59 0 / 0.18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--orange-400); }
.hero .lead { color: var(--text-on-dark-muted); margin-top: var(--space-5); }
.hero .btn-row { margin-top: var(--space-6); }
.hero__assurances { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); font-size: var(--fs-small); color: var(--text-on-dark-muted); }
.hero__assurances li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__assurances .icon { color: var(--orange-400); width: 18px; height: 18px; }

/* Hero dashboard panel */
.panel {
  background: var(--surface); color: var(--text);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-5); border: 1px solid rgb(255 255 255 / 0.6);
}
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); }
.panel__title { font-weight: 600; font-size: 0.9375rem; color: var(--navy-900); }
.panel__meta { font-size: 0.8125rem; color: var(--text-muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; line-height: 1.4; }
.pill--success { background: var(--success-bg); color: var(--success); }
.pill--gold { background: var(--orange-50); color: var(--orange-700); }
.pill--blue { background: var(--blue-50); color: var(--blue-700); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); padding-block: var(--space-4); }
.kpi { padding: var(--space-3); border-radius: var(--radius-sm); background: var(--bg); }
.kpi__label { font-size: 0.75rem; color: var(--text-muted); }
.kpi__value { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 600; color: var(--navy-900); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 2px; }
.kpi__delta { font-size: 0.75rem; font-weight: 600; color: var(--success); }

.chart { padding: var(--space-3) 0 var(--space-4); }
.chart__bars { display: flex; align-items: end; gap: 8px; height: 112px; padding-top: var(--space-2); border-bottom: 1px solid var(--border); }
.chart__bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--blue-50); position: relative; }
.chart__bar--rev { background: var(--blue-700); }
.chart__bar--now { background: var(--orange-500); }
.chart__labels { display: flex; gap: 8px; margin-top: 6px; font-size: 0.6875rem; color: var(--text-muted); }
.chart__labels span { flex: 1; text-align: center; }

.checklist-mini { list-style: none; display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.checklist-mini li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: 0.875rem; }
.checklist-mini .lbl { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text); }
.checklist-mini .tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success); }
.checklist-mini .tick .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.checklist-mini .tick--pending { background: var(--orange-50); color: var(--orange-700); }

.hero__visual { position: relative; }
@media (min-width: 1024px) { .hero__visual { margin-bottom: 72px; } }
.hero__note {
  position: absolute; left: -40px; bottom: -92px; max-width: 290px;
  display: flex; gap: var(--space-3); align-items: start;
  background: var(--navy-800); color: var(--text-on-dark); border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-lg); font-size: 0.8125rem; line-height: 1.45;
}
.hero__note .avatar { width: 32px; height: 32px; font-size: 0.75rem; }
.hero__note strong { color: #fff; display: block; font-size: 0.8125rem; }
@media (max-width: 1023px) { .hero__note { display: none; } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis .kpi:last-child { display: none; } }

/* ---------- Client banner (marquee) ----------
   Static, wrapped row by default (no JS / reduced motion).
   main.js adds .is-animated after cloning the list so it loops seamlessly. */
.clients { padding-block: var(--space-6) var(--space-6); background: var(--surface); border-bottom: 1px solid var(--border); overflow: hidden; }
.clients__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); }
.clients__label { grid-column: 2; font: 500 var(--fs-small)/1.4 var(--font-sans); color: var(--text-muted); text-align: center; letter-spacing: 0; }
.clients__toggle {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px;
  font: 600 0.8125rem/1 var(--font-sans); color: var(--navy-900);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .clients__toggle:hover { border-color: var(--navy-900); background: var(--bg); } }
.clients__toggle[hidden] { display: none; }
.clients__toggle .icon { fill: currentColor; stroke: none; width: 14px; height: 14px; }
.clients__icon-play, .clients.is-paused .clients__icon-pause { display: none; }
.clients.is-paused .clients__icon-play { display: block; }
@media (max-width: 639px) {
  .clients__head { grid-template-columns: 1fr; justify-items: center; }
  .clients__label, .clients__toggle { grid-column: 1; justify-self: center; }
}

.clients__viewport { overflow: hidden; }
.clients__track { display: flex; justify-content: center; }
.clients__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.clients__item { flex: none; display: flex; align-items: center; height: 72px; padding-inline: clamp(28px, 3.5vw, 52px); }
.clients__name { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; color: var(--text-muted); white-space: nowrap; }
/* Logos are pre-rendered as single-color slate silhouettes (assets/img/clients) so the row reads as one calm band. */
.clients__item img { height: var(--logo-h, 36px); width: auto; max-width: none; object-fit: contain; opacity: 0.8; transition: opacity var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .clients__item img:hover { opacity: 1; } }
.clients__tools { margin: var(--space-5) auto 0; text-align: center; font-size: var(--fs-small); color: var(--text-muted); }

.clients.is-animated .clients__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients.is-animated .clients__track { justify-content: flex-start; width: max-content; }
.clients.is-animated .clients__list { flex-wrap: nowrap; }
@keyframes clients-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .clients.is-animated .clients__track { animation: clients-scroll var(--clients-duration, 40s) linear infinite; }
  .clients.is-animated .clients__track:focus-within,
  .clients.is-paused .clients__track,
  .clients.is-offscreen .clients__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  @media (hover: hover) and (pointer: fine) { .clients.is-animated .clients__viewport:hover .clients__track { animation-play-state: paused; } }
}

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.card p { margin: 0; color: var(--text-muted); }
@media (hover: hover) and (pointer: fine) { .card--link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); } }
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .link-arrow { margin-top: auto; padding-top: var(--space-2); }
.card__icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--orange-50); color: var(--orange-700); margin-bottom: var(--space-2);
}
.card__icon--navy { background: var(--navy-900); color: var(--orange-400); }
.card h3 a { color: inherit; text-decoration: none; }

.section--dark .card { background: var(--navy-800); border-color: var(--border-on-dark); }
.section--dark .card p { color: var(--text-on-dark-muted); }

/* ---------- Check lists ---------- */
.checks { list-style: none; display: grid; gap: var(--space-3); }
.checks li { display: flex; gap: var(--space-3); align-items: start; }
.checks .icon { width: 20px; height: 20px; color: var(--success); margin-top: 3px; stroke-width: 2.25; }
.checks--gold .icon { color: var(--orange-700); }
.section--dark .checks .icon { color: var(--orange-400); }
.checks--2col { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: var(--space-6); }

/* ---------- Problem / pains ---------- */
.pain { border-top: 2px solid var(--navy-900); padding-top: var(--space-5); }
.pain__num { font-family: var(--font-serif); font-size: 0.9375rem; color: var(--accent); font-weight: 600; margin-bottom: var(--space-3); }
.pain h3 { margin-bottom: var(--space-3); }
.pain p { color: var(--text-muted); margin: 0; }

/* ---------- Industry tiles ---------- */
.industry {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6); border-radius: var(--radius-md);
  background: var(--navy-800); border: 1px solid var(--border-on-dark); color: var(--text-on-dark);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .industry:hover { border-color: rgb(255 106 61 / 0.55); transform: translateY(-2px); } }
.industry .card__icon { background: rgb(255 106 61 / 0.12); color: var(--orange-400); }
.industry h3 a { color: #fff; text-decoration: none; }
.industry h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.industry p { color: var(--text-on-dark-muted); margin: 0; font-size: 0.9375rem; }
.industry__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--space-3); }
.industry__tags li { font-size: 0.75rem; font-weight: 500; padding: 3px 10px; border-radius: var(--radius-pill); border: 1px solid var(--border-on-dark); color: var(--text-on-dark-muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.step { counter-increment: step; position: relative; padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; line-height: 1;
  color: var(--accent); margin-bottom: var(--space-5);
}
.step h3 { margin-bottom: var(--space-3); }
.step p { margin: 0; color: var(--text-muted); }
.step__time { display: inline-block; margin-top: var(--space-4); font-size: 0.8125rem; font-weight: 600; color: var(--blue-700); }

/* ---------- Commitments (stats row) ---------- */
.commitments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.commitment { padding: var(--space-6) var(--space-5); }
.commitment + .commitment { border-left: 1px solid var(--border); }
@media (max-width: 767px) { .commitment + .commitment { border-left: 0; border-top: 1px solid var(--border); } }
.commitment__value { font-family: var(--font-serif); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 600; color: var(--navy-900); line-height: 1.1; }
.commitment__label { margin-top: var(--space-2); color: var(--text-muted); font-size: 0.9375rem; }
.section--dark .commitments, .section--dark .commitment + .commitment { border-color: var(--border-on-dark); }
.section--dark .commitment__value { color: #fff; }
.section--dark .commitment__label { color: var(--text-on-dark-muted); }

/* ---------- Testimonials ---------- */
.quote-feature { max-width: 920px; margin-inline: auto; text-align: center; }
.quote-feature blockquote { margin: 0; }
.quote-feature blockquote p {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.3; font-weight: 500;
  color: var(--navy-900); letter-spacing: -0.01em; text-wrap: balance;
}
.quote-mark { font-family: var(--font-serif); font-size: 4.5rem; line-height: 0.6; color: var(--orange-700); display: block; margin-bottom: var(--space-5); }
.attribution { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-6); text-align: left; }
.attribution__name { font-weight: 600; color: var(--navy-900); display: block; }
.attribution__role { font-size: var(--fs-small); color: var(--text-muted); }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--navy-900); color: var(--orange-400); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.02em;
}

.testimonial { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); break-inside: avoid; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; font-size: 1.0625rem; color: var(--text); }
.testimonial blockquote p + p { margin-top: var(--space-4); }
.testimonial--lg blockquote p { font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.55; color: var(--navy-900); }
.testimonial-grid { align-items: stretch; }
.testimonial .attribution { margin-top: auto; }
.testimonial__tag { align-self: flex-start; }
.masonry { columns: 3 320px; column-gap: var(--space-5); }
.masonry > * { margin-bottom: var(--space-5); }

.placeholder-note {
  display: flex; gap: var(--space-3); align-items: start;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  background: var(--orange-50); border: 1px dashed var(--orange-700); color: var(--navy-900); font-size: var(--fs-small);
}
.placeholder-note .icon { color: var(--orange-700); width: 20px; height: 20px; margin-top: 1px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  min-height: 64px; padding: var(--space-5) 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.125rem; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur-base) var(--ease-out); color: var(--text-muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--blue-700); } }
.faq details > div { padding-bottom: var(--space-5); color: var(--text-muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--navy-950); color: var(--text-on-dark);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  display: grid; gap: var(--space-6); align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgb(0 61 213 / 0.6), transparent 70%); pointer-events: none; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--text-on-dark-muted); margin: var(--space-4) 0 0; max-width: 56ch; }
@media (min-width: 1024px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) clamp(3rem, 2rem + 3vw, 5rem); background: var(--surface); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(0 61 213 / 0.07), transparent);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); line-height: 1.08; }
.page-hero .lead { margin-top: var(--space-5); }
.page-hero .btn-row { margin-top: var(--space-6); }
.breadcrumb { list-style: none; display: flex; gap: var(--space-2); font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--space-5); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--border-strong); }

.anchor-nav { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.anchor-nav a {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 500; color: var(--navy-900); text-decoration: none; background: var(--surface);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .anchor-nav a:hover { border-color: var(--navy-900); background: var(--bg); } }
.anchor-nav .icon { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Service detail ---------- */
.service { display: grid; gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid var(--border); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .service { grid-template-columns: 5fr 7fr; gap: var(--space-9); } }
.service__intro h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin-bottom: var(--space-4); }
.service__intro p { color: var(--text-muted); }
.service__body { display: grid; gap: var(--space-5); }
.service__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-6); }
.service__box h3 { font-size: 1rem; margin-bottom: var(--space-4); }
.service__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.service__bestfor { font-size: var(--fs-small); color: var(--text-muted); }
.service__bestfor strong { color: var(--navy-900); }

/* ---------- Industry detail ---------- */
.industry-detail { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .industry-detail { grid-template-columns: 5fr 7fr; gap: var(--space-9); } }
.industry-detail__intro .card__icon { margin-bottom: var(--space-5); }
.industry-detail__intro h2 { margin-bottom: var(--space-4); }
.industry-detail__intro p { color: var(--text-muted); }
.section--dark .industry-detail__intro p { color: var(--text-on-dark-muted); }
.industry-detail__cols { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.industry-detail__cols .service__box h3 { display: flex; align-items: center; gap: var(--space-2); }
.section--dark .service__box { background: var(--navy-800); border-color: var(--border-on-dark); }
.section--dark .service__box h3 { color: #fff; }
.stack-list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); list-style: none; }
.stack-list li { font-size: 0.8125rem; font-weight: 500; padding: 4px 12px; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--navy-900); }
.section--dark .stack-list li { background: rgb(255 255 255 / 0.08); color: var(--text-on-dark); }

/* ---------- About ---------- */
.values { counter-reset: v; }
.value { padding: var(--space-6) 0; border-top: 1px solid var(--border); display: grid; gap: var(--space-3); }
@media (min-width: 768px) { .value { grid-template-columns: 220px 1fr; gap: var(--space-6); } }
.value h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.value p { margin: 0; color: var(--text-muted); }

.founder {
  display: grid; gap: var(--space-6); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem); margin-bottom: var(--space-5);
}
@media (min-width: 768px) { .founder { grid-template-columns: 300px 1fr; gap: var(--space-8); } }
.founder__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-md); background: var(--surface-alt); }
.founder__name { font-family: var(--font-serif); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.15; }
.founder .prose { margin-top: var(--space-5); }
.credentials { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.team-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.team-card__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-alt); }
.team-card__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.team-card__body h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; }
.team-card__role { font-size: var(--fs-small); font-weight: 600; color: var(--accent); margin: var(--space-1) 0 var(--space-4); }
.team-card__role a { color: inherit; text-decoration-thickness: 1px; display: inline-flex; align-items: center; gap: 4px; }
.team-card__role a .icon { width: 14px; height: 14px; transform: rotate(-45deg); }
.team-card__body p:last-child { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }

/* One portrait size for everyone: 300px wide, or narrower on small phones —
   always the same for Jonathan's photo and the team cards. The calc subtracts the
   page gutters and the founder card's padding so even the founder photo, which
   sits inside a padded card, comes out the same width. */
#team { --portrait-w: min(300px, calc(100vw - 2 * var(--gutter) - 2 * clamp(1.25rem, 0.5rem + 2.5vw, 2.5rem) - 2px)); }
#team .founder { grid-template-columns: var(--portrait-w); justify-content: center; }
@media (min-width: 768px) { #team .founder { grid-template-columns: var(--portrait-w) 1fr; justify-content: stretch; } }
#team .founder__photo { width: var(--portrait-w); }
/* +2px = the card's 1px border on each side, so the photo inside is exactly --portrait-w */
#team .team-grid { grid-template-columns: repeat(auto-fit, calc(var(--portrait-w) + 2px)); justify-content: center; }
#team .team-card { width: calc(var(--portrait-w) + 2px); }

.compare { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.compare th, .compare td { text-align: left; padding: var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.compare tbody th { font-weight: 600; color: var(--navy-900); }
.compare td.us { background: var(--orange-50); color: var(--navy-900); font-weight: 500; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-5); }
.form__row { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.9375rem; color: var(--navy-900); }
.field .req { color: var(--danger); margin-left: 2px; }
.field .opt { color: var(--text-muted); font-weight: 400; font-size: var(--fs-small); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
@media (hover: hover) and (pointer: fine) { .input:hover, .select:hover, .textarea:hover { border-color: #94A3B8; } }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: 0 0 0 3px rgb(0 61 213 / 0.18); }
.input::placeholder, .textarea::placeholder { color: #64748B; }
.help { font-size: var(--fs-small); color: var(--text-muted); }
.error { display: none; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--danger); }
.error .icon { width: 16px; height: 16px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .error { display: flex; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: var(--space-2); }
.choice {
  display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
  font-size: 0.9375rem; transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .choice:hover { border-color: #94A3B8; } }
.choice input { width: 18px; height: 18px; accent-color: var(--navy-900); margin: 0; flex: none; }
.choice:has(input:checked) { border-color: var(--navy-900); background: var(--bg); }
.choice:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.form__privacy { font-size: var(--fs-small); color: var(--text-muted); margin: 0; max-width: 46ch; }
.form-status { display: none; gap: var(--space-3); align-items: start; padding: var(--space-5); border-radius: var(--radius-md); background: var(--success-bg); color: #14532D; border: 1px solid #BBF7D0; }
.form-status.is-visible { display: flex; }
.form-status .icon { color: var(--success); }
.form-status strong { display: block; color: #14532D; }

.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: var(--shadow-md); }
.contact-aside { display: grid; gap: var(--space-6); align-content: start; }
.contact-item { display: flex; gap: var(--space-4); align-items: start; }
.contact-item .card__icon { margin: 0; }
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.next-steps { list-style: none; counter-reset: ns; display: grid; gap: var(--space-4); }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); font-size: 0.9375rem; color: var(--text-muted); }
.next-steps li::before { content: counter(ns); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--orange-400); font-weight: 600; font-size: 0.875rem; }
.next-steps strong { color: var(--navy-900); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--text-on-dark-muted); padding-block: var(--space-9) var(--space-6); font-size: 0.9375rem; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: #fff; text-decoration: underline; } }
.site-footer :focus-visible { outline-color: var(--orange-400); }
.footer__grid { display: grid; gap: var(--space-7); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer__about p { margin-top: var(--space-4); max-width: 36ch; }
.footer__title { font-family: var(--font-sans); color: #fff; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer__list { list-style: none; display: grid; gap: var(--space-2); }
.footer__list a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--border-on-dark); font-size: var(--fs-small); }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__address { font-style: normal; margin-top: var(--space-5); line-height: 1.7; }
.footer__address strong { color: #fff; font-weight: 600; }
.footer__disclaimer { max-width: 90ch; margin: var(--space-4) 0 0; font-size: 0.8125rem; color: var(--text-on-dark-muted); }

/* ---------- Unfilled business details: highlighted so they can't go live unnoticed ---------- */
mark.todo { background: #FEF3C7; color: #78350F; padding: 0 4px; border-radius: 3px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Legal pages ---------- */
.page-hero--legal h1 { max-width: none; }
.legal-meta { margin: var(--space-4) 0 0; font-size: var(--fs-small); color: var(--text-muted); }
.legal { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .legal { grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-9); align-items: start; } }
.legal__toc { font-size: 0.9375rem; }
@media (min-width: 1024px) { .legal__toc { position: sticky; top: calc(var(--header-h) + 24px); } }
.legal__toc-title { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-3); }
.legal__toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.legal__toc a { display: block; padding: 6px 0 6px var(--space-4); margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .legal__toc a:hover { color: var(--navy-900); border-left-color: var(--accent); } }
.legal__body { max-width: 72ch; }
.legal__body section { padding-top: var(--space-6); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal__body h2 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); margin-bottom: var(--space-4); }
.legal__body p, .legal__body li { color: var(--text); }
.legal__body ul { padding-left: 1.25rem; display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.legal__body li::marker { color: var(--accent); }

/* ---------- Reveal (only when JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: var(--delay, 0ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Styleguide ---------- */
.sg-section { padding-block: var(--space-8); border-top: 1px solid var(--border); }
.sg-section > h2 { font-size: 1.75rem; margin-bottom: var(--space-2); }
.sg-section > p { color: var(--text-muted); margin-bottom: var(--space-6); }
.swatches { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.swatch { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.swatch__chip { height: 84px; border-bottom: 1px solid var(--border); }
.swatch__info { padding: var(--space-3); font-size: 0.8125rem; line-height: 1.4; }
.swatch__info strong { display: block; color: var(--navy-900); font-size: 0.875rem; }
.swatch__info code { color: var(--text-muted); }
.type-row { display: grid; gap: var(--space-2); padding-block: var(--space-5); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .type-row { grid-template-columns: 200px 1fr; align-items: baseline; gap: var(--space-6); } }
.type-row__meta { font-size: 0.8125rem; color: var(--text-muted); }
.type-row__meta strong { display: block; color: var(--navy-900); font-size: 0.875rem; }
.space-row { display: flex; align-items: center; gap: var(--space-4); font-size: 0.8125rem; color: var(--text-muted); padding-block: 6px; }
.space-row span:first-child { width: 90px; }
.space-bar { height: 12px; background: var(--orange-400); border-radius: 3px; }
.sg-demo { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.sg-demo--dark { background: var(--navy-950); border-color: var(--navy-950); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.875em; }

/* =====================================================================
   Handcrafted pass: ledger-paper motif, people-first hero, plain sections
   ===================================================================== */
:root {
  --ruled: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(0 61 213 / 0.055) 31px 32px);
  --margin-line: rgb(255 59 0 / 0.38);
}

/* Section labels: sentence-case serif italic instead of tracked all-caps with a rule */
.eyebrow { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.0625rem; letter-spacing: 0; text-transform: none; }
.eyebrow::before { display: none; }

/* Avatars: rounded squares; client logos instead of initials */
.avatar { border-radius: 12px; }
.avatar--logo { background: var(--surface); border: 1px solid var(--border); padding: 7px; }
.avatar--logo img { width: 100%; height: 100%; object-fit: contain; }
.avatar--wide { width: 96px; }

/* Plain text link (replaces most ghost buttons) */
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--navy-900); text-decoration: underline;
  text-decoration-color: var(--orange-500); text-decoration-thickness: 2px; text-underline-offset: 5px;
  transition: color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--blue-700); } }

/* Ledger paper: faint blue rules + an orange margin line, like an accounting pad */
.hero-ledger, .page-hero { position: relative; background-color: var(--bg); background-image: var(--ruled); }
.hero-ledger::before, .page-hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: auto; height: auto; width: 1px;
  left: max(10px, calc((100% - var(--container)) / 2 - 28px));
  background: var(--margin-line); pointer-events: none;
}

/* ---------- Hero (compact: fits one laptop screen with the client logos visible) ---------- */
.hero-ledger { padding-block: clamp(2rem, 1rem + 2.5vw, 3.25rem) clamp(2.25rem, 1.25rem + 2.5vw, 3.5rem); }
.hero-ledger__grid { position: relative; display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .hero-ledger__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-7); } }
@media (min-width: 1200px) { .hero-ledger__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-9); } }
.kicker { font-weight: 700; font-size: 0.9375rem; color: var(--blue-700); margin-bottom: var(--space-4); }
.hero-ledger h1 { font-size: clamp(2.125rem, 1.4rem + 2.2vw, 3.25rem); line-height: 1.06; letter-spacing: -0.022em; max-width: 24ch; text-wrap: balance; }
.hero-ledger h1 em { font-style: italic; color: var(--orange-700); }
.hero-ledger .lead { margin-top: var(--space-4); color: var(--text-muted); max-width: 52ch; }
.hero-ledger__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-6); }
.hero-ledger__fine { margin: var(--space-3) 0 0; font-size: var(--fs-small); color: var(--text-muted); }

/* Who-you'll-work-with card */
.hero-card {
  width: 100%; max-width: 420px; justify-self: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgb(6 18 56 / 0.35);
  padding: var(--space-5);
}
@media (min-width: 900px) { .hero-card { justify-self: end; } }
.hero-card__person { display: flex; align-items: center; gap: var(--space-4); }
.hero-card__photo { width: 96px; height: 96px; flex: none; object-fit: cover; border-radius: 14px; background: var(--surface-alt); }
.hero-card__name { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.2; color: var(--navy-900); }
.hero-card__creds { margin: 4px 0 0; font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted); }
.hero-card__quote { margin: var(--space-5) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--border); position: relative; }
.hero-card__quote::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 2px; background: var(--orange-500); }
.hero-card__quote p { margin: 0 0 6px; font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; line-height: 1.45; color: var(--navy-900); }
.hero-card__quote footer { font-size: 0.75rem; color: var(--text-muted); }
.hero-card__team {
  display: flex; align-items: center; gap: var(--space-3); min-height: 48px;
  margin: var(--space-5) calc(var(--space-5) * -1) calc(var(--space-5) * -1); padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border); border-radius: 0 0 18px 18px; background: var(--bg);
  font-size: 0.8125rem; font-weight: 600; color: var(--navy-900); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .hero-card__team:hover { background: var(--blue-50); color: var(--blue-700); } }
.hero-card__team .icon { margin-left: auto; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .hero-card__team:hover .icon { transform: translateX(3px); } }
.hero-card__faces { display: flex; flex: none; }
.hero-card__faces img { width: 28px; height: 28px; object-fit: cover; border-radius: 9px; border: 2px solid var(--surface); margin-left: -8px; background: var(--surface-alt); }
.hero-card__faces img:first-child { margin-left: 0; }
/* Phone adjustments for the hero card (must come after the base card rules) */
@media (max-width: 599px) {
  .hero-ledger .lead { font-size: 1.0625rem; }
  .hero-card { padding: var(--space-4); }
  .hero-card__photo { width: 72px; height: 72px; border-radius: 12px; }
  .hero-card__quote { margin-top: var(--space-4); }
  .hero-card__quote p { font-size: 1rem; }
  .hero-card__team { margin: var(--space-4) calc(var(--space-4) * -1) calc(var(--space-4) * -1); padding-inline: var(--space-4); gap: 8px; }
  .hero-card__faces img { width: 24px; height: 24px; margin-left: -7px; border-radius: 7px; }
}
@media (max-width: 374px) {
  .hero-card__with { display: none; }
}

/* ---------- The month, as a ledger ---------- */
.month { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .month { grid-template-columns: 0.8fr 1.4fr; gap: var(--space-9); align-items: start; } .month__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.month__intro h2 { margin-bottom: var(--space-4); }
.month__intro p { color: var(--text-muted); }
.month__note { font-size: 0.9375rem; padding-left: var(--space-4); border-left: 2px solid var(--margin-line); }
.ledger { border-top: 2px solid var(--navy-900); }
.ledger__row { display: grid; grid-template-columns: 52px 1fr 0.75fr; gap: var(--space-5); padding: var(--space-5) 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.ledger__row--head { padding-block: var(--space-3); font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.ledger__no { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--orange-700); font-variant-numeric: tabular-nums; }
.ledger strong { color: var(--navy-900); }
.ledger__you { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); }
@media (max-width: 767px) {
  .ledger__row { grid-template-columns: 40px 1fr; gap: var(--space-2) var(--space-4); }
  .ledger__row--head span:last-child { display: none; }
  .ledger__you { grid-column: 2; }
}

/* ---------- Paper section ---------- */
.section--paper { background-color: var(--surface-alt); background-image: var(--ruled); }

/* ---------- Two real jobs (zig-zag) ---------- */
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-4); margin-bottom: var(--space-7); }
.job { display: grid; gap: var(--space-6); padding-block: var(--space-7); border-top: 1px solid var(--border-strong); align-items: center; }
@media (min-width: 900px) {
  .job { grid-template-columns: 300px 1fr; gap: var(--space-8); }
  .job--flip { grid-template-columns: 1fr 300px; }
  .job--flip .job__mark { order: 2; }
}
.job__mark { display: grid; place-items: center; min-height: 190px; background: var(--surface); border-radius: 18px; padding: var(--space-6); box-shadow: var(--shadow-sm); }
.job__mark img { max-width: 190px; height: auto; }
.job h3 { font-family: var(--font-serif); font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); line-height: 1.2; margin-bottom: var(--space-4); max-width: 26ch; }
.job__body > p { color: var(--text-muted); max-width: 62ch; }
.job__quote { margin: var(--space-5) 0 0; padding-left: var(--space-5); border-left: 3px solid var(--orange-500); }
.job__quote p { margin: 0 0 6px; font-family: var(--font-serif); font-style: italic; font-size: 1.3125rem; line-height: 1.4; color: var(--navy-900); }
.job__quote footer { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Fit / not a fit ---------- */
.fit-title { max-width: 22ch; margin-bottom: var(--space-7); }
.fit { display: grid; border-top: 2px solid var(--navy-900); }
@media (min-width: 900px) { .fit { grid-template-columns: 1.4fr 1fr; } .fit__col--not { border-left: 1px solid var(--border); padding-left: var(--space-7); } .fit__col:first-child { padding-right: var(--space-7); } }
.fit__col { padding-top: var(--space-5); }
.fit__col h3 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--blue-700); margin-bottom: var(--space-2); }
.fit__col--not h3 { color: var(--orange-700); }
.fit ul { list-style: none; margin-bottom: var(--space-4); }
.fit li { padding: var(--space-4) 0; border-bottom: 1px dashed var(--border-strong); color: var(--text-muted); }
.fit li strong { color: var(--navy-900); }

/* ---------- Straight answers (no accordion) ---------- */
.qa { display: grid; gap: 0 var(--space-8); margin: var(--space-6) 0 0; }
@media (min-width: 900px) { .qa { grid-template-columns: 1fr 1fr; } }
.qa__item { padding: var(--space-5) 0; border-top: 1px solid var(--border-strong); }
.qa dt { font-weight: 700; font-size: 1.0625rem; color: var(--navy-900); margin-bottom: var(--space-2); }
.qa dd { margin: 0; color: var(--text-muted); }

/* ---------- Personal CTA ---------- */
.cta-note { display: grid; gap: var(--space-6); align-items: center; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); border-radius: 22px; background-color: var(--surface-alt); background-image: var(--ruled); border: 1px solid var(--border); }
@media (min-width: 768px) { .cta-note { grid-template-columns: 140px 1fr; gap: var(--space-7); } }
.cta-note__face { width: 140px; height: 175px; object-fit: cover; object-position: top; border-radius: 16px; box-shadow: var(--shadow-md); }
@media (max-width: 767px) { .cta-note__face { width: 96px; height: 120px; } }
.cta-note p { color: var(--text-muted); max-width: 56ch; margin: var(--space-3) 0 var(--space-5); }

/* =====================================================================
   Country landing pages + "Where we work" section
   ===================================================================== */
.country-switch { margin-bottom: var(--space-5); }
.country-switch ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.country-switch a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface);
  font-size: 0.875rem; font-weight: 600; color: var(--text-muted); text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .country-switch a:hover { border-color: var(--navy-900); color: var(--navy-900); } }
.country-switch a[aria-current="page"] { border-color: var(--blue-700); color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue-700); }
.country-switch__code { font-family: var(--font-serif); font-weight: 600; color: var(--orange-700); }
@media (pointer: coarse) { .country-switch a { min-height: 44px; } }

.page-hero--country .lead { max-width: 60ch; }
.page-hero__fact { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-4) 0 0; font-size: var(--fs-small); color: var(--text-muted); max-width: 70ch; }
.page-hero__fact .icon { color: var(--orange-700); margin-top: 2px; flex: none; }

.notice { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-6); max-width: 78ch;
  padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.notice .icon { color: var(--blue-700); flex: none; margin-top: 2px; }
.notice p { margin: 0; font-size: 0.9375rem; color: var(--text); }
.notice strong { color: var(--navy-900); }

.software { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .software { grid-template-columns: 1fr 1.1fr; gap: var(--space-8); } }
.software__note { color: var(--text-muted); margin: var(--space-3) 0 0; max-width: 56ch; }
.software__list { margin: 0; }
.software__list li { background: var(--surface); border: 1px solid var(--border); font-size: 0.9375rem; padding: 8px 14px; }

.honest-note { max-width: 70ch; color: var(--text-muted); margin: var(--space-3) 0 0; }
.quote-pair { display: grid; gap: var(--space-5); margin: var(--space-6) 0; }
@media (min-width: 900px) { .quote-pair { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.quote-pair .job__quote { margin: 0; }

/* Home: where we work */
.countries { display: grid; gap: 0; border-top: 2px solid var(--navy-900); margin-top: var(--space-6); }
@media (min-width: 768px) { .countries { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .countries { grid-template-columns: repeat(4, 1fr); } }
.country {
  display: flex; flex-direction: column; gap: var(--space-2); min-height: 44px;
  padding: var(--space-5) var(--space-5) var(--space-5) 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text-muted);
}
@media (min-width: 1100px) { .country + .country { padding-left: var(--space-5); border-left: 1px solid var(--border); } }
@media (min-width: 768px) and (max-width: 1099px) { .country:nth-child(even) { padding-left: var(--space-5); border-left: 1px solid var(--border); } }
.country__code { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 600; color: var(--orange-700); line-height: 1; }
.country__name { font-weight: 700; font-size: 1.0625rem; color: var(--navy-900); }
.country__line { font-size: 0.9375rem; }
.country__go { margin-top: auto; padding-top: var(--space-2); font-weight: 600; font-size: 0.875rem; color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--orange-500); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .country:hover .country__name, .country:hover .country__go { color: var(--blue-700); } }


/* Intuit ProAdvisor tier badge: shown exactly as supplied by Intuit (scaled only, never cropped,
   recolored or rotated), always smaller than and separate from the Bontile logo. */
.proadvisor-badge { display: block; height: auto; aspect-ratio: 1 / 1; flex: none; }
.proadvisor-badge--footer { width: 72px; margin-top: var(--space-4); }
.proadvisor-badge--about { width: 88px; margin-top: var(--space-4); }
.proadvisor-badge--inline { width: 56px; }
div.clients__tools { display: flex; align-items: center; justify-content: center; gap: var(--space-3); }
div.clients__tools p { margin: 0; text-align: left; }

/* LinkedIn link next to a team member's name: LinkedIn blue, 44px tap target */
.founder__head { display: flex; align-items: center; flex-wrap: nowrap; gap: var(--space-3); }
.founder__head .founder__name { min-width: 0; }
.social-link {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 10px; color: #0A66C2; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.social-link svg { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) { .social-link:hover { background: var(--blue-50); transform: translateY(-1px); } }
.social-link:active { transform: translateY(0); }

/* Credential pill that links to a verification page (e.g. Credly) */
.pill--link { gap: 6px; min-height: 32px; padding: 4px 12px; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.pill--link .icon { width: 13px; height: 13px; transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .pill--link:hover { background: #DCE5FB; box-shadow: inset 0 0 0 1px var(--blue-700); } }
.credentials li { display: flex; }
@media (hover: hover) and (pointer: fine) { .pill--gold.pill--link:hover { background: #FFE3D6; box-shadow: inset 0 0 0 1px var(--orange-700); } }

/* Intuit Bookkeeping Certification badge on each team photo: bottom-right corner (shoulder area),
   shown exactly as supplied (scaled only). */
.photo-badged { position: relative; }
.photo-badged .cert-badge { position: absolute; right: 12px; bottom: 12px; width: 64px; height: 64px; }
#team .founder .photo-badged { width: var(--portrait-w); }
@media (max-width: 359px) { .photo-badged .cert-badge { width: 52px; height: 52px; right: 8px; bottom: 8px; } }
/* Photos get the exact portrait width directly (not "card width minus borders"), so they match
   Jonathan's photo on every screen, including Windows display scaling where borders render
   at fractional widths. */
#team .team-card { width: auto; justify-self: center; }
#team .team-card .photo-badged, #team .team-card__photo { width: var(--portrait-w); }

/* Footer address: labelled blocks (US mailing address / Registered office) */
.footer__label { display: block; margin-top: var(--space-3); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.footer__contact { display: block; margin-top: var(--space-3); }
.footer__contact a { display: inline-flex; align-items: center; min-height: 32px; }
.contact-item__note { margin-top: 6px !important; font-size: 0.875rem; }

/* ---------- Photos ---------- */
.section-photo {
  display: block; width: 100%; height: auto; margin-top: var(--space-6);
  border-radius: 16px; object-fit: cover; background: var(--surface-alt);
  box-shadow: 0 14px 30px -18px rgb(6 18 56 / 0.35);
}
.section-photo--service, .section-photo--industry { aspect-ratio: 3 / 2; }
.month__intro .section-photo, .section-photo:not(.section-photo--service):not(.section-photo--industry) { aspect-ratio: 4 / 3; }
.section--dark .section-photo { box-shadow: none; }

.photo-band { padding-block: var(--space-7) 0; background: var(--surface); }
.photo-band__grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(3, 1fr); }
.photo-band__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--surface-alt); }
@media (max-width: 767px) {
  .photo-band__grid { grid-template-columns: 1fr 1fr; }
  .photo-band__img:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

/* Footer badges: Intuit ProAdvisor tier + BIR registered-business badge (shown as issued, on a white tile) */
.footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-4); }
.footer__badges .proadvisor-badge--footer { margin-top: 0; }
.bir-badge { display: inline-block; background: #fff; border-radius: 8px; padding: 6px; line-height: 0; }
.bir-badge img { display: block; width: min(264px, calc(100vw - 2 * var(--gutter) - 12px)); height: auto; aspect-ratio: 565 / 192; }

/* ---------- Floating actions: back to top (all screens) + "Book a free call" (phones/tablets) ---------- */
.floaters {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; gap: var(--space-2);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.floaters.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floaters__cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius-pill);
  background: var(--orange-500); color: var(--navy-950); font-weight: 700; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgb(6 18 56 / 0.55);
}
@media (hover: hover) and (pointer: fine) { .floaters__cta:hover { background: var(--orange-hover); } }
.floaters__top {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: var(--surface); color: var(--navy-900); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px -12px rgb(6 18 56 / 0.45);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.floaters__cta, .floaters__top { transition: transform 100ms var(--ease-out), background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.floaters__cta:active, .floaters__top:active, .copy-btn:active, .clients__toggle:active { transform: scale(0.96); }
.floaters__top .icon { transform: rotate(-90deg); width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .floaters__top:hover { border-color: var(--navy-900); transform: translateY(-2px); } }
@media (min-width: 1024px) { .floaters__cta { display: none; } }
/* keep the last lines of the footer clear of the floating buttons on small screens */
@media (max-width: 1023px) { .site-footer { padding-bottom: calc(var(--space-6) + 72px); } }

/* ---------- Copy buttons (Contact page) ---------- */
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  font: 600 0.8125rem/1 var(--font-sans); color: var(--navy-900);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.copy-btn .icon { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .copy-btn:hover { border-color: var(--navy-900); } }
@media (pointer: coarse) { .copy-btn { min-height: 44px; } }
.copy-btn.is-copied { border-color: var(--success); color: var(--success); background: var(--success-bg); }

/* ---------- Print ---------- */
@media print {
  @page { margin: 18mm 16mm; }
  *, *::before, *::after { background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
  body { color: #000; font-size: 11pt; line-height: 1.5; }
  .site-header, .skip-link, .floaters, .clients, .photo-band, .cta-band, .cta-note, .nav-toggle, .hero-ledger__actions,
  .country-switch, .anchor-nav, .legal__toc, .placeholder-note, .copy-btn, .footer__badges, .footer__legal, .btn, .section-photo { display: none !important; }
  .hero-ledger::before, .page-hero::after { display: none !important; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
  .section, .page-hero, .hero-ledger { padding-block: 8mm !important; }
  h1, h2, h3, .hero-ledger h1 em { color: #000 !important; }
  h2, h3 { break-after: avoid; }
  .ledger__row, .qa__item, .service, .industry-detail, .team-card, .founder, .testimonial, blockquote, table, tr { break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
  .legal__body a[href^="http"]::after, .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .site-footer { color: #000 !important; padding: 6mm 0 0 !important; border-top: 1px solid #999; }
  .site-footer a, .footer__label, .footer__address strong, .site-footer .brand__text { color: #000 !important; }
  .footer__grid > :not(.footer__about) { display: none !important; }
  mark.todo { border: 1px dashed #000; }
}

/* Contact page: book directly on Google Calendar */
.book-direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5); margin-bottom: var(--space-4); border-radius: 14px; background: var(--orange-50); border: 1px solid rgb(255 59 0 / 0.25); }
.book-direct__title { font-family: var(--font-sans); font-size: 1.125rem; font-weight: 700; margin-bottom: 4px; }
.book-direct p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; max-width: 42ch; }
.book-direct__or { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: 0.9375rem; text-align: center; }

/* Team card name + LinkedIn icon on one line */
.member-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.member-head h3 { min-width: 0; }
.member-head .social-link { margin-right: -10px; }

/* ---------- About: team photo with caption ---------- */
.story-photo { margin: 0; display: grid; gap: var(--space-2); }
.story-photo figcaption { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Contact form: send failure ---------- */
.form-error { display: flex; gap: var(--space-2); align-items: flex-start; margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--danger); border-radius: var(--radius-sm); color: var(--danger); background: var(--surface); font-size: 0.9375rem; }
.form-error[hidden] { display: none; }
.form-error .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form-error a { color: inherit; font-weight: 600; }
