/* =============================================================
   the audit hub — site styles
   White ground, navy ink, brass accent. Self-hosted Nunito.
   ============================================================= */

@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --white: #FFFFFF;
  --paper: #FFFFFF;
  --mist: #F5F7FA;
  --mist-2: #EEF2F6;
  --line: #E1E6ED;
  --line-strong: #CBD3DE;
  --navy: #0D1E3A;
  --navy-2: #1A2D4F;
  --ink: #0D1E3A;
  --body: #3A475C;
  --muted: #5B677B;
  --brass: #B08D57;
  --brass-light: #E9DDC7;
  --brass-ink: #7F6131;
  --focus: #B08D57;

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.8vw, 1.6rem);
  --step-3: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.3rem, 1.5rem + 3vw, 3.7rem);

  --wrap: 1180px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --section: clamp(64px, 8vw, 112px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(13, 30, 58, 0.05), 0 8px 24px -12px rgba(13, 30, 58, 0.18);
  --shadow-lg: 0 2px 4px rgba(13, 30, 58, 0.04), 0 24px 48px -20px rgba(13, 30, 58, 0.25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brass-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 700; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- labels, buttons ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink);
}
.label::before { content: ""; width: 24px; height: 2px; background: var(--brass); flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--navy); background: var(--navy); color: #fff;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--mist); color: var(--navy); border-color: var(--navy); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.94rem; }
.arrow::after { content: "→"; display: inline-block; transition: transform 0.18s ease; }
a:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }
.textlink { font-weight: 700; text-decoration: none; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }
.textlink:hover { color: var(--brass-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(13, 30, 58, 0.35); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: none; align-items: center; gap: 4px; }
.nav > a, .dd__trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font: 700 0.98rem/1 var(--font); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .dd__trigger:hover, .dd.is-open .dd__trigger { background: var(--mist); color: var(--ink); }
.nav > a[aria-current="page"], .dd__trigger[data-current] { color: var(--brass-ink); }
.nav > a.btn { margin-left: 10px; padding: 10px 20px; color: #fff; background: var(--navy); border: 1.5px solid var(--navy); }
.nav > a.btn:hover { color: #fff; background: var(--navy-2); border-color: var(--navy-2); }
.dd { position: relative; }
.dd__trigger svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.dd.is-open .dd__trigger svg { transform: rotate(180deg); }
.dd__panel {
  position: absolute; top: calc(100% + 10px); z-index: 60; left: 50%; transform: translateX(-38%);
  width: min(720px, 88vw); padding: 18px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: none;
}
.dd:hover .dd__panel, .dd:focus-within .dd__panel, .dd.is-open .dd__panel { display: block; }
.dd.is-closed .dd__panel { display: none; }
/* invisible bridge over the gap between the Services button and the panel, so the pointer never "leaves" the menu */
.dd__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.dd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd__item { display: block; padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.dd__item:hover { background: var(--mist); }
.dd__item b { display: block; color: var(--ink); font-weight: 800; font-size: 0.98rem; }
.dd__item span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.4; margin-top: 2px; }
.dd__item[aria-current="page"] b { color: var(--brass-ink); }
.dd__all { display: flex; justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 10px; padding: 12px 14px 2px; }

/* The panel is positioned against the full-width sticky header (not .mnav). The header's backdrop-filter
   makes it the containing block for position:fixed children, so a fixed panel would collapse to the header's height. */
.mnav { position: static; }
.mnav > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line-strong); color: var(--ink);
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary svg { width: 22px; height: 22px; }
.mnav[open] > summary { background: var(--mist); }
html.menu-open { overflow: hidden; }
.mnav .i-close, .mnav[open] .i-burger { display: none; }
.mnav[open] .i-close { display: block; }
.mnav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100vh - 76px); height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(13, 30, 58, 0.45);
  padding: 18px var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter);
}
.mnav__panel a { display: block; padding: 12px 4px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav__panel a[aria-current="page"] { color: var(--brass-ink); }
.mnav__group > summary { list-style: none; cursor: pointer; padding: 12px 4px; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.mnav__group > summary::-webkit-details-marker { display: none; }
.mnav__group > summary::after { content: "+"; color: var(--brass-ink); font-weight: 800; }
.mnav__group[open] > summary::after { content: "–"; }
.mnav__group a { padding-left: 18px; font-weight: 600; }
.mnav__panel a.btn { display: flex; justify-content: center; margin-top: 20px; width: 100%; padding: 12px 22px; color: #fff; border-bottom: 1.5px solid var(--navy); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .mnav { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); background: var(--paper); overflow: hidden; }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__text { min-width: 0; display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--brass-ink); }
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem); line-height: 1.6; color: var(--body); max-width: 60ch; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 8px; max-width: 520px; }
.hero__stats div { border-top: 2px solid var(--brass); padding-top: 12px; }
.hero__stats b { display: block; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero__stats span { display: block; margin-top: 6px; font-size: 0.88rem; font-weight: 600; color: var(--muted); line-height: 1.35; }
.hero--plain .hero__text { max-width: 820px; }
.hero--plain { padding-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .hero__grid--scene { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- 3D scene frame ---------- */
.scene { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; background: #fff; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.6s ease; }
.scene--live canvas { opacity: 1; }
.scene__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.scene--fallback canvas { display: none; }
.scene__caption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center; }
@media (max-width: 959px) {
  .hero .scene { margin-inline: calc(-1 * min(20px, var(--gutter))); width: calc(100% + 2 * min(20px, var(--gutter))); max-width: none; }
}

/* ---------- sections ---------- */
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--mist { background: var(--mist); }
.section--tight { padding-top: calc(var(--section) * 0.6); padding-bottom: calc(var(--section) * 0.6); }
.section + .section:not(.section--mist) { border-top: 1px solid var(--line); }
.section--mist + .section { border-top: 0; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.head p { font-size: 1.12rem; color: var(--body); }
.head--split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.head--split > div { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; margin-bottom: 0.6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: 0.5em; }
.prose > :first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ol { counter-reset: n; }
.prose ul li, .prose ol li { position: relative; padding-left: 28px; }
.prose ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--brass);
}
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 0; font-weight: 800; color: var(--brass-ink); }
.prose a { font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brass); color: var(--ink); font-size: 1.1rem; }

/* ring bullet list (component bullets) */
.ticks { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--brass); }

/* ---------- intro: prose + at-a-glance ---------- */
.intro { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 960px) { .intro { grid-template-columns: minmax(0, 1fr) 360px; } }
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 32px;
}
.callout::before { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brass); margin-top: 2px; }
.callout p { margin: 0; color: var(--ink); }
.callout strong { color: var(--ink); }
.glance {
  position: sticky; top: 100px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; box-shadow: var(--shadow);
}
.glance h2 { font-size: 1.15rem; letter-spacing: 0; margin-bottom: 14px; }
.glance ul { list-style: none; display: grid; gap: 0; margin-bottom: 20px; }
.glance li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.glance li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brass); margin-top: 4px; }
.glance b { display: block; color: var(--ink); font-weight: 800; }
.glance li span { display: block; font-size: 0.94rem; color: var(--muted); line-height: 1.45; }
.glance .btn { width: 100%; }
@media (max-width: 959px) { .glance { position: static; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.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-fill, minmax(min(100%, 240px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card h3 { margin: 0; }
.card p { color: var(--body); }
.card__num { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.06em; color: var(--brass-ink); font-variant-numeric: tabular-nums; }
.card--link { text-decoration: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card--link .textlink { margin-top: auto; padding-top: 6px; }
.pill {
  align-self: flex-start; display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--brass-light); color: #5E4724; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.section--mist .card { border-color: #E3E8EF; }

/* component (service) cards */
.comp { display: grid; gap: 18px; }
.comp__item {
  display: grid; gap: 22px; padding: clamp(24px, 3vw, 36px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .comp__item { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; } }
.comp__head { display: flex; flex-direction: column; gap: 8px; }
.comp__head .card__num { font-size: 0.95rem; }
.comp__head h3 { font-size: var(--step-2); }
.comp__head p { color: var(--brass-ink); font-weight: 700; font-size: 0.98rem; }
.comp__body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.comp__body h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.comp__cols { display: grid; gap: 22px; }
@media (min-width: 700px) { .comp__cols--2 { grid-template-columns: 1fr 1fr; } }

/* services page blocks with scenes */
.svc { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) {
  .svc--scene { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .svc--scene.svc--flip .svc__media { order: -1; }
  .svc--plain { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
.svc__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.svc__num { font-weight: 800; color: var(--brass-ink); letter-spacing: 0.06em; }
.svc__text h2 { font-size: var(--step-3); }
.svc__sub { font-weight: 700; color: var(--brass-ink); }
.svc__media { min-width: 0; }
.svc__aside { background: var(--mist); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.svc__aside h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* deliverables */
.deliv .card { padding: 22px; gap: 8px; }
.deliv h3 { font-size: 1.05rem; }
.deliv p { font-size: 0.96rem; }

/* related services */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.related { display: grid; gap: 12px; }
.related a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.related a:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.related b { display: block; color: var(--ink); font-size: 1.05rem; margin: 6px 0 4px; }
.related a > span:not(.pill) { display: block; color: var(--body); font-size: 0.96rem; line-height: 1.5; }

/* ---------- home ---------- */
.trust { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px 32px; padding: 26px 0; }
.trust li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; font-weight: 700; color: var(--ink); line-height: 1.45; }
.trust li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brass); margin-top: 4px; }
.trust h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); padding-top: 26px; }
.statement { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 960px) { .statement { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: end; } }
.statement h2 { font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.4rem); line-height: 1.2; }
.statement__body { display: flex; flex-direction: column; gap: 18px; }

.about { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.about__text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 480px; }
.about__stats div { border-top: 2px solid var(--brass); padding-top: 10px; }
.about__stats b { display: block; font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.about__stats span { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.portrait { position: relative; max-width: 420px; justify-self: center; text-align: center; }
.portrait__img { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #fff; }
.portrait__img::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--brass); pointer-events: none; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait b { display: block; margin-top: 18px; color: var(--ink); font-size: 1.15rem; }
.portrait span { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* insights */
.post { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.post__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.post h3 { font-size: 1.18rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff;
  font: 700 0.95rem/1 var(--font); color: var(--ink); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.author { display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center; max-width: 760px; }
.author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.author b { display: block; color: var(--ink); font-size: 1.1rem; }
.author .muted { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 520px) { .author { grid-template-columns: 1fr; } }

/* article */
.article-hero { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.article-hero .wrap { display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin-left: auto; margin-right: auto; }
.article-hero h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.back { font-weight: 700; text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.back:hover { color: var(--ink); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.article { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr) 300px; } }
.article .prose { font-size: 1.1rem; line-height: 1.75; }
.article .prose > p:first-child { font-size: 1.24rem; color: var(--ink); line-height: 1.6; }
.side { display: grid; gap: 16px; position: sticky; top: 100px; }
.side .card { gap: 10px; }
.side h2 { font-size: 1.02rem; letter-spacing: 0; }
.side p { font-size: 0.96rem; }
@media (max-width: 999px) { .side { position: static; } }
.next { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.next:hover { box-shadow: var(--shadow); color: inherit; }
.next span { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; color: var(--brass-ink); }
.next b { display: block; color: var(--ink); font-size: 1.1rem; margin-top: 6px; }

/* legal */
.legal .prose { font-size: 1.02rem; }

/* ---------- CTA band ---------- */
.cta { padding: var(--section) 0; }
.cta__panel {
  position: relative; overflow: hidden; display: grid; gap: 24px;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--mist); border: 1px solid var(--line);
}
@media (min-width: 900px) { .cta__panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.cta__panel::after {
  content: ""; position: absolute; right: -100px; top: -110px; width: 250px; height: 250px; border-radius: 50%;
  border: 2px solid var(--brass); opacity: 0.45; pointer-events: none;
}
.cta__panel::before {
  content: ""; position: absolute; right: -36px; top: -46px; width: 140px; height: 140px; border-radius: 50%;
  border: 1.5px solid var(--brass); opacity: 0.3; pointer-events: none;
}
.cta__text { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.cta__text h2 { font-size: var(--step-3); }
.cta__side { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.cta__note { font-size: 0.95rem; color: var(--muted); }
.cta__note a { font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand img { height: 30px; width: auto; }
.footer__brand p { margin-top: 16px; max-width: 34ch; color: var(--body); }
.footer__brand a.mail { display: inline-block; margin-top: 14px; font-weight: 700; }
.footer__col h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 14px; }
.footer__col ul { list-style: none; display: grid; gap: 8px; }
.footer__col a { color: var(--body); text-decoration: none; font-weight: 600; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: 0.9rem; color: var(--muted); }
.footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom a { color: var(--muted); font-weight: 600; text-decoration: none; }
.footer__bottom a:hover { color: var(--ink); }

/* ---------- reveal on scroll (content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- cookie banner (only shown if analytics is switched on in site.js) ---------- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 80;
  max-width: 560px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 14px; font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .scene, .cta { display: none !important; }
}

/* small additions */
.svc-note { margin-top: 32px; text-align: center; color: var(--muted); }
.svc-note a { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.hero__media { min-width: 0; }
