/* Podium Technologies – site styles.
   All colours are set once below, for the light and the dark theme. */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --head: #0e1a3a;
  --text: #27304a;
  --muted: #5b6580;
  --line: #e0e5f0;
  --line-strong: #c7cfdf;
  --brand: #2348d8;
  --brand-hover: #1b3ab8;
  --brand-soft: #e9eeff;
  --on-brand: #ffffff;
  --link: #1f41c4;
  --accent: #f4a321;
  --accent-hover: #ffb640;
  --accent-text: #9a5b00;
  --on-accent: #1a1405;
  --band: #0e1a3a;
  --band-2: #17264f;
  --band-text: #c5cde3;
  --band-line: rgba(255, 255, 255, .14);
  --footer: #0a1430;
  --ok: #17694a; --ok-bg: #e6f3ec;
  --err: #a8261a; --err-bg: #fbeae7;
  --shadow-sm: 0 1px 2px rgba(14, 26, 58, .06), 0 2px 8px rgba(14, 26, 58, .05);
  --shadow: 0 12px 32px -12px rgba(14, 26, 58, .22);
  --shadow-lg: 0 30px 60px -24px rgba(14, 26, 58, .35);
  --header-bg: rgba(255, 255, 255, .92);

  --ff-head: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 84rem;
  --header-h: 4.5rem;
  --r: .75rem;
  --r-sm: .5rem;
  --space: clamp(3.25rem, 6.5vw, 6rem);
}

/* Dark theme: chosen with the header button, or taken from the device setting. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1222; --bg-alt: #0f182c; --surface: #141e36; --surface-2: #1a2644;
  --head: #f1f4fb; --text: #cdd4e4; --muted: #96a1ba; --line: #24304d; --line-strong: #34436a;
  --brand: #4a6df0; --brand-hover: #5f7ff5; --brand-soft: #1b2850; --on-brand: #ffffff; --link: #8eaaff;
  --accent-text: #f6b64b;
  --band: #101a33; --band-2: #1a2748; --band-text: #b9c2d9; --footer: #070c18;
  --ok: #6fd3a8; --ok-bg: #12301f; --err: #ff9d91; --err-bg: #3a1714;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .75);
  --header-bg: rgba(11, 18, 34, .92);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1222; --bg-alt: #0f182c; --surface: #141e36; --surface-2: #1a2644;
    --head: #f1f4fb; --text: #cdd4e4; --muted: #96a1ba; --line: #24304d; --line-strong: #34436a;
    --brand: #4a6df0; --brand-hover: #5f7ff5; --brand-soft: #1b2850; --on-brand: #ffffff; --link: #8eaaff;
    --accent-text: #f6b64b;
    --band: #101a33; --band-2: #1a2748; --band-text: #b9c2d9; --footer: #070c18;
    --ok: #6fd3a8; --ok-bg: #12301f; --err: #ff9d91; --err-bg: #3a1714;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .75);
    --header-bg: rgba(11, 18, 34, .92);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Text and layout scale up gently on large monitors so the page never looks lost. */
html { font-size: clamp(100%, .2rem + .75vw, 125%); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; font-family: var(--ff-body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--ff-head); color: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.25rem + 3.2vw, 3.6rem); letter-spacing: -.028em; line-height: 1.06; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.02em; }
h3, .h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 48rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 200; background: var(--brand); color: var(--on-brand); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--brand); margin: 0 0 .9rem; }
:root[data-theme="dark"] .kicker { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--link); } }
.kicker::before { content: ""; width: .5rem; height: .5rem; border-radius: 2px; background: var(--accent); }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 36em; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--link); text-decoration: none; }
.link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.link .icon, .tile-go .icon, .btn .icon { transition: transform .18s ease; }
.link:hover .icon, .btn:hover .icon:last-child { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 2.75rem; padding: .65rem 1.3rem; border: 1.5px solid transparent; border-radius: var(--r-sm); font-family: var(--ff-body); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 2.5rem; padding: .5rem 1.05rem; font-size: .95rem; }
.btn-lg { min-height: 3.2rem; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -6px rgba(35, 72, 216, .55); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-line { border-color: var(--line-strong); color: var(--head); background: var(--surface); }
.btn-line:hover { border-color: var(--brand); color: var(--link); }
.btn-line-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 56.01rem) { .site-header { -webkit-backdrop-filter: saturate(150%) blur(10px); backdrop-filter: saturate(150%) blur(10px); } }
}
.is-scrolled .site-header { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; min-width: 0; text-decoration: none; color: var(--head); font-family: var(--ff-head); font-size: 1.2rem; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: .5rem; box-shadow: 0 0 0 1px var(--band-line); }
.brand b { font-weight: 800; }
.brand img { flex: none; }
.brand-text { overflow: hidden; text-overflow: ellipsis; }
.brand-light { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: .25rem; }
.site-nav ul a { display: block; padding: .55rem .9rem; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.site-nav ul a:hover { background: var(--surface-2); color: var(--head); }
.site-nav ul a[aria-current="page"] { color: var(--link); font-weight: 600; background: var(--brand-soft); }
.header-tools { display: flex; align-items: center; gap: .25rem; }
.theme-toggle, .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--head); transition: border-color .15s ease, background-color .15s ease; }
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--brand); }
.theme-toggle .icon, .nav-toggle .icon { width: 1.3rem; height: 1.3rem; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle-close, .nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: block; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-alt); padding: clamp(2.5rem, 5vw, 5rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4.5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero .actions { margin: 1.75rem 0 1.15rem; }
.hero-note { margin: 0; font-size: .98rem; }
.hero-note a { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); text-decoration: none; }
.hero-note a:hover { color: var(--link); }

.hero-solo { grid-template-columns: minmax(0, 1fr); }
.hero-solo .hero-copy { max-width: 52rem; }
.hero-art { margin: 0; }
.hero-art figcaption { margin-top: .8rem; font-size: .88rem; color: var(--muted); }
.window { background: #fff; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; box-shadow: var(--shadow-lg); }
.window img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.window-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .75rem; background: #eef1f6; border-bottom: 1px solid #dfe4ee; }
.window-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: #c9d0de; }
.window-bar i:first-child { background: #f4a321; }
.window-bar span { margin-left: .5rem; font-size: .72rem; line-height: 1.2; color: #5b6580; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Numbers ---------- */
.stats { background: var(--band); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.facts div { display: flex; align-items: center; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem) clamp(.5rem, 2vw, 1.5rem); }
.facts div:first-child { padding-left: 0; }
.facts div + div { border-left: 1px solid var(--band-line); padding-left: clamp(1rem, 3vw, 2.5rem); }
.facts dt { font-family: var(--ff-head); font-size: clamp(2.1rem, 1.5rem + 1.8vw, 3rem); font-weight: 700; line-height: 1; color: var(--accent); white-space: nowrap; }
.facts dd { font-size: .98rem; color: var(--band-text); line-height: 1.4; }

/* ---------- Client names (scrolling strip) ---------- */
.clients { padding: 1.15rem 0 1.3rem; border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.clients-title { margin: 0 0 .8rem; text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee ul { display: flex; flex: none; gap: .6rem; padding-right: .6rem; }
.marquee a { display: block; padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--bg-alt); color: var(--head); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: border-color .15s ease, color .15s ease, transform .15s ease; }
.marquee a:hover { border-color: var(--brand); color: var(--link); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 2.5rem) 0 var(--space); }
.section-alt { background: var(--bg-alt); }
.section-ink { background: var(--band); color: var(--band-text); }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .kicker { color: var(--accent); }
.head { max-width: 42rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.head > p:last-child, .head div > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.section-ink .head > p { color: var(--band-text); }
.head-center { margin-inline: auto; text-align: center; }
.head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.head-row h2 { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.75rem, 5vw, 5rem); align-items: start; }
.split > .head { margin-bottom: 0; }
.split > .head .btn { margin-top: 1.5rem; }

/* ---------- Tiles (services, sectors) ---------- */
.tiles { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles > li { display: flex; }
.tile { display: flex; flex-direction: column; width: 100%; padding: clamp(1.25rem, 2.2vw, 1.85rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; }
li.tile { width: auto; }
.tile-soft { background: var(--bg-alt); box-shadow: none; }
.tile h3 { margin-bottom: .4rem; }
.tile p { color: var(--muted); margin-bottom: 0; flex: 1; }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; margin-bottom: 1.1rem; border-radius: .7rem; background: var(--brand-soft); color: var(--brand); flex: none; transition: background-color .18s ease, color .18s ease; }
:root[data-theme="dark"] .tile-icon { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-icon { color: var(--link); } }
.tile-icon .icon { width: 1.5rem; height: 1.5rem; }
.tile-go { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 600; font-size: .95rem; color: var(--link); }
.tile-link { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tile-link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.tile-link:hover .tile-icon { background: var(--brand); color: #fff; }
.tile-link:hover .tile-go .icon { transform: translateX(3px); }

/* ---------- Work cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 1.75rem); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.card[hidden] { display: none; }
.card-media { display: block; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow: hidden; text-decoration: none; }
.card-media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.card-noimg { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 1; padding: 1rem; font-family: var(--ff-head); font-weight: 600; color: var(--muted); text-align: center; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.4rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.card-meta span { padding: .15rem .6rem; border-radius: 2rem; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.card-meta .is-intl { background: var(--brand-soft); color: var(--link); }
.card-body h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.card-body > p:not(.card-meta) { color: var(--muted); flex: 1; font-size: 1rem; }
.card-body .link { align-self: flex-start; font-size: .95rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter { min-height: 2.5rem; padding: .45rem 1.05rem; border: 1.5px solid var(--line); border-radius: 2rem; background: var(--surface); color: var(--text); font-weight: 500; font-size: .95rem; text-decoration: none; display: inline-flex; align-items: center; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.filter:hover { border-color: var(--brand); }
.filter.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.work-more { margin: 2.25rem 0 0; color: var(--muted); text-align: center; }

/* ---------- Points (dark band), values, steps ---------- */
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.points li { display: flex; gap: 1rem; padding: clamp(1.1rem, 2vw, 1.5rem); border: 1px solid var(--band-line); border-radius: var(--r); background: var(--band-2); }
.point-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: .65rem; background: rgba(244, 163, 33, .16); color: var(--accent); flex: none; }
.points h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.points p { margin: 0; font-size: .98rem; }
.values { display: grid; gap: 1rem; }
.values li { display: flex; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.values .tile-icon { width: 2.6rem; height: 2.6rem; margin: 0; }
.values h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.values p { margin: 0; color: var(--muted); font-size: .98rem; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.steps li { position: relative; padding: clamp(1.25rem, 2.2vw, 1.75rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.55rem; right: calc(-1 * clamp(1rem, 2vw, 1.5rem) - 1px); width: clamp(1rem, 2vw, 1.5rem); height: 2px; background: var(--line-strong); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--ff-head); font-weight: 700; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Team ----------
   Add or remove people in site.json and the grid re-flows on its own:
   cards keep the same size and an incomplete last row is centred. */
.team { --cols: 5; --gap: clamp(.9rem, 2vw, 1.5rem); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.team-c3 { --cols: 3; } .team-c4 { --cols: 4; } .team-c5 { --cols: 5; }
.person { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); max-width: 18rem; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.person:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.person-photo { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.person-photo span { display: flex; align-items: center; justify-content: center; width: 46%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--surface); font-family: var(--ff-head); font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 700; color: var(--brand); letter-spacing: .02em; }
:root[data-theme="dark"] .person-photo span { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .person-photo span { color: var(--link); } }
.person-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.2rem; text-align: center; }
.person h3 { margin-bottom: .15rem; font-size: 1.1rem; }
.person-role { margin-bottom: .5rem; font-size: .88rem; font-weight: 600; color: var(--accent-text); }
.person-bio { margin-bottom: .5rem; font-size: .93rem; color: var(--muted); line-height: 1.5; }
.person-links { margin: auto 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; font-size: .9rem; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--space); }
.section-alt + .cta, .section-ink + .cta { padding-top: var(--space); }
.cta-inner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; padding: clamp(1.75rem, 4.5vw, 3.5rem); border-radius: 1.25rem; background: var(--brand); color: #dfe6ff; }
:root[data-theme="dark"] .cta-inner { background: #2040c0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta-inner { background: #2040c0; } }
.cta-inner::after { content: ""; position: absolute; right: -3rem; top: -3rem; width: 12rem; height: 12rem; border-radius: 50%; border: 2.2rem solid rgba(255, 255, 255, .07); pointer-events: none; }
.cta-inner > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: .35rem; }
.cta p { margin: 0; max-width: 32em; }

/* ---------- Page head ---------- */
.page-head { padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(2rem, 4vw, 3.25rem); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head-tight { padding-bottom: 1.5rem; }
.page-head h1 { max-width: 20em; font-size: clamp(1.95rem, 1.2rem + 2.6vw, 3.1rem); }
.page-head .lead { margin-bottom: 0; }
.page-head-404 { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.page-head-404 h1, .page-head-404 .lead { margin-inline: auto; }
.page-head-404 .actions { margin-top: 1.75rem; justify-content: center; }
.crumbs { margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .15rem .5rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.notfound-links { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.5rem; }

/* ---------- Services pages ---------- */
.svc-blocks { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.svc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); scroll-margin-top: calc(var(--header-h) + 1rem); }
.svc-block h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 0 0 .45rem; }
.svc-block h2 a { color: inherit; text-decoration: none; }
.svc-block h2 a:hover { color: var(--link); }
.svc-block p { color: var(--muted); max-width: 30em; }
.svc-block .ticks { padding: 1.25rem 1.4rem; border-radius: var(--r-sm); background: var(--bg-alt); }
.ticks { display: grid; gap: .6rem; align-content: start; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks .icon { color: var(--ok); margin-top: .22rem; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.prose { max-width: 44rem; }
.prose > p { font-size: 1.1rem; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 2.25rem; }
.prose > h2:first-child, .prose .kicker + h2 { margin-top: 0; }
.aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.aside-box { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.aside-box h2 { font-size: 1.2rem; }
.aside-box p { color: var(--muted); font-size: .98rem; }
.aside-box .btn { width: 100%; }
.aside-phone { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .9rem; font-weight: 600; color: var(--head); text-decoration: none; }
.aside-phone:hover { color: var(--link); }
.aside nav { padding: 1.25rem 1.5rem; background: var(--bg-alt); border-radius: var(--r); }
.aside-title { font-family: var(--ff-body); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.aside-links li + li { border-top: 1px solid var(--line); }
.aside-links a { display: block; padding: .6rem 0; color: var(--head); text-decoration: none; font-weight: 500; }
.aside-links a:hover { color: var(--link); }

.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 1.15rem; transition: border-color .15s ease; }
.faq details[open], .faq details:hover { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-family: var(--ff-head); font-weight: 600; font-size: 1.06rem; color: var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand); transition: transform .15s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.5rem 1.1rem 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-info h2 { font-size: 1.5rem; }
.contact-list { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ci { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .65rem; background: var(--brand-soft); color: var(--brand); flex: none; }
:root[data-theme="dark"] .ci { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ci { color: var(--link); } }
.contact-list div { min-width: 0; }
.contact-list div span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list p { font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; color: var(--head); text-decoration: none; margin: 0; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--link); }
.contact-note { padding: 1.25rem 1.4rem; border-left: 4px solid var(--accent); border-radius: var(--r-sm); background: var(--bg-alt); }
.contact-note h3 { margin-bottom: .3rem; font-size: 1.1rem; }
.contact-note p { margin: 0; color: var(--muted); font-size: .98rem; }
.form-card { padding: clamp(1.25rem, 3.5vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 1rem); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; font-size: .92rem; color: var(--head); margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
/* 16px minimum stops iPhones zooming in when a field is tapped */
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 3.1rem; padding: .7rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); font-size: max(1rem, 16px); background: var(--bg); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(74, 109, 240, .22); }
.form-field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .88rem; margin: .3rem 0 0; }
.form-foot { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1.25rem; }
.alert p { margin: .2rem 0 0; }
.alert .icon { margin-top: .2rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-error { background: var(--err-bg); color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #a4aec6; padding: clamp(2.5rem, 5vw, 4rem) 0 0; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, .5fr) minmax(0, 1.3fr); gap: 2.25rem clamp(1.5rem, 4vw, 3.5rem); padding-bottom: 2.5rem; }
.footer-brand p { margin: 1rem 0 0; max-width: 22em; }
.footer-note { font-size: .88rem; color: #7f8aa6; }
.footer-title { font-family: var(--ff-body); font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.footer-links li, .footer-contact li { margin-bottom: .5rem; }
.site-footer a { color: #d3d9e8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--accent); margin-top: .25rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; flex-wrap: wrap; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline-flex; align-items: center; gap: .35rem; }
.action-bar { display: none; }

/* ---------- Guides, area pages ---------- */
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.post-list > li { display: flex; }
.post-card { display: flex; flex-direction: column; width: 100%; padding: clamp(1.25rem, 2.5vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.post-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card time { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.post-card h2 { font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); margin-bottom: .5rem; }
.post-card p { color: var(--muted); flex: 1; margin: 0; }
.post-card:hover .tile-go .icon { transform: translateX(3px); }
.byline, .updated { font-size: .9rem !important; color: var(--muted); }
.updated { margin-top: 2rem; }
.rich h2 { margin-top: 2.25rem; }
.rich h3 { margin-top: 1.5rem; }
.rich p, .rich li { font-size: 1.08rem; }
.rich p:first-child { font-size: 1.2rem; color: var(--head); }
.rich ul, .rich ol { margin: 0 0 1.25em; padding-left: 1.35rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: .45rem; padding-left: .25rem; }
.rich li::marker { color: var(--brand); font-weight: 700; }
.link-list { display: grid; gap: .5rem; }
.link-list a { display: grid; gap: .1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.link-list a:hover { border-color: var(--brand); transform: translateX(3px); }
.link-list strong { font-family: var(--ff-head); color: var(--head); }
.link-list span { color: var(--muted); font-size: .95rem; }
.area-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.area-list > li { display: flex; }
.area { display: flex; align-items: flex-start; gap: .9rem; width: 100%; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.area:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.area > .icon:first-child { color: var(--accent-text); margin-top: .2rem; }
.area > .icon:last-child { margin-left: auto; margin-top: .2rem; color: var(--muted); transition: transform .18s ease, color .18s ease; }
.area:hover > .icon:last-child { transform: translateX(3px); color: var(--link); }
.area span { display: grid; gap: .15rem; font-size: .95rem; color: var(--muted); }
.area strong { font-family: var(--ff-head); font-size: 1.1rem; color: var(--head); }
.area-inline { display: flex; flex-wrap: wrap; gap: .5rem; }
.area-inline a { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--surface); font-size: .95rem !important; font-weight: 500; text-decoration: none; }
.area-inline a:hover { border-color: var(--brand); }
.deflist div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.deflist div:first-child { border-top: 2px solid var(--head); }
.deflist dt { font-family: var(--ff-head); font-weight: 700; color: var(--head); }
.deflist dd { color: var(--text); }

/* ---------- Logo ---------- */
.brand img.logo-custom { width: auto; height: 2.25rem; max-width: 11rem; object-fit: contain; border-radius: 0; box-shadow: none; }
.site-footer .brand img.logo-custom { background: #fff; padding: .25rem .4rem; border-radius: .4rem; height: 2.5rem; }

/* ---------- Admin bar and edit mode (only for signed-in admins) ---------- */
.admin-bar { position: sticky; top: 0; z-index: 150; display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: nowrap; overflow-x: auto; height: 2.75rem; padding: 0 var(--gutter); white-space: nowrap; background: #111827; color: #e5e7eb; font-size: .85rem; }
.admin-bar a, .admin-bar button { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border: 1px solid rgba(255, 255, 255, .2); border-radius: .4rem; background: transparent; color: #fff; text-decoration: none; font-size: .85rem; font-weight: 600; }
.admin-bar a:hover, .admin-bar button:hover { border-color: #fff; }
.admin-bar .icon { width: 1rem; height: 1rem; }
.admin-bar-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a1405; }
.admin-bar-hint { display: none; color: #fcd34d; }
.edit-mode .admin-bar-hint { display: inline; }
.is-admin .site-header { top: 2.75rem; }
.is-admin .scroll-bar { top: 2.75rem; }
.edit-mode [data-edit] { cursor: pointer; outline: 2px dashed transparent; outline-offset: -2px; transition: outline-color .15s ease; }
.edit-mode section[data-edit], .edit-mode article[data-edit], .edit-mode li[data-edit], .edit-mode div[data-edit], .edit-mode h2[data-edit] { position: relative; }
.edit-mode .site-header[data-edit].edit-hover::after { top: auto; bottom: .35rem; }
.edit-mode [data-edit].edit-hover { outline-color: var(--accent); }
.edit-mode [data-edit].edit-hover::after { content: attr(data-edit-label); position: absolute; z-index: 60; top: .35rem; right: .35rem; padding: .25rem .6rem; border-radius: .35rem; background: var(--accent); color: #1a1405; font: 700 .78rem/1.3 var(--ff-body); text-transform: none; letter-spacing: 0; pointer-events: none; box-shadow: var(--shadow); }
.edit-mode [data-edit] [data-edit].edit-hover { outline-style: solid; }

/* ---------- Social links, small extras ---------- */
.social { display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--line); border-radius: 50%; color: var(--head); background: var(--surface); transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.social a:hover { border-color: var(--brand); color: var(--link); }
.social-footer { margin-top: 1.25rem; }
.social-footer a { border-color: rgba(255, 255, 255, .2); background: transparent; color: #d3d9e8; }
.social-footer a:hover { border-color: var(--accent); color: var(--accent); }
.contact-social { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.contact-social > span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-wa { margin-bottom: 1.25rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.alert-warn { background: #fff4dc; color: #7a4a00; }
:root[data-theme="dark"] .alert-warn { background: #3a2a08; color: #f6c56b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert-warn { background: #3a2a08; color: #f6c56b; } }
.field-help { margin: .35rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Statistics page ---------- */
.stats-login { max-width: 24rem; margin-top: 1.5rem; }
.stats-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.stats-top h1 { margin: 0; }
.stats-controls { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; }
.stats-controls .filters { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpis div { padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column-reverse; }
.kpis dt { font-size: .88rem; color: var(--muted); }
.kpis dt small { font-size: .8rem; }
.kpis dd { font-family: var(--ff-head); font-size: 2rem; font-weight: 700; line-height: 1.15; color: var(--head); font-variant-numeric: tabular-nums; }
.stat-box { padding: 1.15rem 1.25rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.stat-box h2 { font-size: 1.05rem; letter-spacing: 0; margin-bottom: .2rem; }
.stat-box figcaption p, .stat-empty { margin: 0 0 .75rem; font-size: .9rem; color: var(--muted); }
.stat-chart { margin-bottom: 1.25rem; }
.stat-chart svg { width: 100%; height: auto; overflow: visible; }
.stat-chart .grid { stroke: var(--line); stroke-width: 1; }
.stat-chart .axis { font: 11px var(--ff-body); fill: var(--muted); }
.stat-chart .bar path { fill: var(--brand); }
.stat-chart .bar .hit { fill: transparent; }
.stat-chart .bar:hover path { fill: var(--accent); }
.stat-chart .bar:hover .hit { fill: var(--surface-2); }
.stat-chart details { margin-top: .75rem; font-size: .92rem; }
.stat-chart summary { cursor: pointer; color: var(--link); }
.stat-chart details table { max-width: 28rem; margin-top: .5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1.25rem; align-items: start; }
.stat-box table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-top: .5rem; }
.stat-box th, .stat-box td { padding: .45rem 0; text-align: left; border-top: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.stat-box thead th { border-top: 0; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-box tbody th { overflow-wrap: anywhere; color: var(--text); }
.stat-box .num { text-align: right; padding-left: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter { width: 100%; height: 3px; margin-top: .3rem; }
.meter rect { fill: var(--brand); }

/* ==========================================================================
   Interaction and motion
   Everything here is an enhancement: the page reads fine without it, and it
   is switched off for visitors who ask their device for reduced motion.
   ========================================================================== */

/* Reading progress line and back-to-top button */
.scroll-bar { position: fixed; inset: 0 0 auto 0; z-index: 120; height: 3px; pointer-events: none; }
.scroll-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(var(--scroll, 0)); transform-origin: left; }
.to-top { position: fixed; right: clamp(.9rem, 2.5vw, 1.75rem); bottom: clamp(.9rem, 2.5vw, 1.75rem); z-index: 80; display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--surface); color: var(--head); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.show-top .to-top { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--link); transform: translateY(-3px); }
.to-top svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 3; }
.to-top-track { stroke: var(--line); }
.to-top-ring { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--scroll, 0) * 100); }

/* Header slides away when reading down, comes back when scrolling up */
.site-header { transition: transform .3s ease, box-shadow .2s ease; }
.header-hidden:not(.nav-open) .site-header { transform: translateY(-100%); }

/* Tabs: service explorer */
.explorer { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.explorer-tabs { display: grid; gap: .4rem; }
.explorer-tab { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .65rem .8rem; border: 1px solid transparent; border-radius: var(--r); background: transparent; color: var(--text); font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; text-align: left; line-height: 1.25; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.explorer-tab .tile-icon { width: 2.5rem; height: 2.5rem; margin: 0; }
.explorer-tab .tile-icon .icon { width: 1.25rem; height: 1.25rem; }
.explorer-tab:hover { background: var(--bg-alt); transform: translateX(3px); }
.explorer-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--head); box-shadow: var(--shadow-sm); }
.explorer-tab[aria-selected="true"] .tile-icon { background: var(--brand); color: #fff; }
.explorer-panel { position: relative; overflow: hidden; padding: clamp(1.35rem, 3vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.explorer-panel + .explorer-panel { margin-top: 1rem; }
.js .explorer-panel { display: none; margin: 0; }
.js .explorer-panel.is-active { display: block; }
.explorer-no { position: absolute; right: 1.25rem; top: .25rem; font-family: var(--ff-head); font-size: clamp(4rem, 9vw, 7rem); font-weight: 800; line-height: 1; color: var(--bg-alt); pointer-events: none; user-select: none; }
.explorer-panel > :not(.explorer-no) { position: relative; }
.explorer-panel h3 { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem); letter-spacing: -.015em; }
.explorer-panel > p { color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.explorer-panel .ticks { margin: 1.25rem 0 1.6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .6rem 1.5rem; }

/* Chips: project planner */
.narrow-wide { max-width: 58rem; }
.planner { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.planner fieldset { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.planner legend { display: flex; align-items: center; gap: .7rem; padding: 0; margin-bottom: .9rem; font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; color: var(--head); }
.planner .step-no { width: 2rem; height: 2rem; margin: 0; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem 1rem; border: 1.5px solid var(--line-strong); border-radius: 2rem; background: var(--surface); color: var(--text); font-weight: 500; transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.chip span .icon { color: var(--muted); transition: color .18s ease; }
.chip:hover span { border-color: var(--brand); }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.04); }
.chip input:checked + span .icon { color: #fff; }
.planner-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.planner-summary { margin: 0; color: var(--muted); font-weight: 500; }
.planner-summary.has-picks { color: var(--head); }

/* Contact form feedback */
.field-count { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.form-field.is-ok input, .form-field.is-ok textarea { border-color: var(--ok); }
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }

/* Typed line in the hero */
.hero-typed { margin: -.35rem 0 1rem; font-family: var(--ff-head); font-size: clamp(1.1rem, 1rem + .6vw, 1.45rem); font-weight: 600; color: var(--head); min-height: 1.5em; }
.typed { color: var(--brand); }
:root[data-theme="dark"] .typed { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .typed { color: var(--link); } }
.js .typed::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: var(--accent); vertical-align: -.12em; }

/* Floating figures beside the hero screenshot */
.hero-art { position: relative; }
.float-chip { position: absolute; z-index: 2; margin: 0; display: flex; align-items: center; gap: .6rem; max-width: 13rem; padding: .65rem .95rem; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; line-height: 1.25; color: var(--muted); }
.float-chip strong { font-family: var(--ff-head); font-size: 1.6rem; line-height: 1; color: var(--brand); }
:root[data-theme="dark"] .float-chip strong { color: var(--link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .float-chip strong { color: var(--link); } }
.float-chip-1 { left: -1.25rem; bottom: 3.25rem; }
.float-chip-2 { right: -1rem; top: 2.5rem; }

/* Hover light that follows the pointer on cards */
.tile-link, .card, .person, .explorer-panel, .steps li { --px: 50%; --py: 50%; }
.tile-link::before, .card::before, .person::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(18rem circle at var(--px) var(--py), var(--brand-soft), transparent 60%); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.tile-link, .card, .person { position: relative; }
.tile-link > *, .card > *, .person > * { position: relative; }
.tile-link:hover::before, .card:hover::before, .person:hover::before { opacity: .9; }
.card-media { position: relative; }
.card-media::after { content: attr(data-visit) " \2197"; position: absolute; right: .75rem; bottom: .75rem; padding: .4rem .8rem; border-radius: 2rem; background: var(--band); color: #fff; font-size: .8rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.card:hover .card-media::after { opacity: 1; transform: none; }
.card-media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.05); }
.person-photo img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.person:hover .person-photo img { transform: scale(1.06); }
.btn-primary, .btn-accent { position: relative; overflow: hidden; }
.btn-primary::before, .btn-accent::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover::before, .btn-accent:hover::before { transform: translateX(120%); transition: transform .65s ease; }
.faq details { overflow: hidden; }
.card.is-hiding { opacity: 0; transform: scale(.96); }

/* How-we-work steps light up as the page is read */
.steps { position: relative; }
.js .steps[data-progress] li { transition: border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.js .steps[data-progress] .step-no { background: var(--surface-2); color: var(--muted); transition: background-color .35s ease, color .35s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.js .steps[data-progress] li.is-done { border-color: var(--brand); box-shadow: var(--shadow); }
.js .steps[data-progress] li.is-done .step-no { background: var(--brand); color: #fff; transform: scale(1.1); }
.js .steps[data-progress] li:not(:last-child)::after { background: linear-gradient(90deg, var(--brand) var(--fill, 0%), var(--line-strong) var(--fill, 0%)); }
.js .steps[data-progress] li.is-done:not(:last-child)::after { --fill: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Smooth cross-fade between pages (browsers that support it) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
  .site-header { view-transition-name: site-header; }

  /* First paint: the hero builds itself */
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes window-in { from { opacity: 0; transform: translateY(26px) scale(.97); } }
  @keyframes pop { from { opacity: 0; transform: scale(.7); } }
  @keyframes bob { 50% { transform: translateY(-8px); } }
  @keyframes blink { 50% { opacity: 0; } }
  .hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .07s; }
  .hero-copy > :nth-child(3) { animation-delay: .14s; }
  .hero-copy > :nth-child(4) { animation-delay: .21s; }
  .hero-copy > :nth-child(5) { animation-delay: .28s; }
  .hero-copy > :nth-child(6) { animation-delay: .35s; }
  .hero-art .window { animation: window-in .9s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .float-chip-1 { animation: pop .5s .75s cubic-bezier(.3, 1.6, .5, 1) both, bob 6s 1.4s ease-in-out infinite; }
  .float-chip-2 { animation: pop .5s .9s cubic-bezier(.3, 1.6, .5, 1) both, bob 7s 2s ease-in-out infinite; }
  .page-head .wrap > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .page-head .wrap > :nth-child(2) { animation-delay: .07s; }
  .page-head .wrap > :nth-child(3) { animation-delay: .14s; }
  .js .typed::after { animation: blink 1s steps(1) infinite; }
  .btn.is-busy::after { animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Screenshot leans towards the pointer */
  .hero-art[data-tilt] { perspective: 1100px; }
  .hero-art[data-tilt] .window { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; will-change: transform; }
  /* Soft light under the pointer in the hero */
  .hero[data-glow] { position: relative; }
  .hero[data-glow]::before { content: ""; position: absolute; inset: 0; background: radial-gradient(34rem circle at var(--mx, 70%) var(--my, 30%), var(--brand-soft), transparent 65%); opacity: .9; pointer-events: none; }
  .hero[data-glow] > * { position: relative; }

  /* Client strip scrolls on its own; pauses under the pointer or keyboard focus */
  @keyframes marquee { to { transform: translateX(-50%); } }
  .js .marquee-track { animation: marquee var(--marquee-time, 40s) linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }

  /* Sections arrive as they are scrolled to. The fallback animation shows
     them anyway after a moment if the script could not run. */
  @keyframes reveal-fallback { to { opacity: 1; transform: none; } }
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); animation: reveal-fallback .01s 4s forwards; }
  [data-reveal="left"] { transform: translateX(-26px); }
  [data-reveal="scale"] { transform: scale(.94); }
  [data-reveal].is-in { opacity: 1; transform: none; animation: none; }

  /* Tab panel change */
  @keyframes panel-in { from { opacity: 0; transform: translateX(16px); } }
  .js .explorer-panel.is-active { animation: panel-in .4s cubic-bezier(.2, .7, .2, 1); }
  .js .explorer-panel.is-active .ticks li { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .js .explorer-panel.is-active .ticks li:nth-child(2) { animation-delay: .05s; }
  .js .explorer-panel.is-active .ticks li:nth-child(3) { animation-delay: .1s; }
  .js .explorer-panel.is-active .ticks li:nth-child(4) { animation-delay: .15s; }
  .js .explorer-panel.is-active .ticks li:nth-child(5) { animation-delay: .2s; }
  .card { transition: box-shadow .2s ease, transform .3s ease, border-color .2s ease, opacity .3s ease; }

  /* Theme switch spreads out from the button (see main.js) */
  .theme-switch::view-transition-old(root), .theme-switch::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
}

/* ---------- Responsive ----------
   Large desktop > laptop (<= 80rem) > tablet (<= 64rem) > small tablet (<= 56rem) > phone (<= 40rem) */
@media (max-width: 80rem) {
  .team { --cols: 4; }
  .team-c3 { --cols: 3; }
  .team-c5 { --cols: 5; }
  .person-bio { font-size: .9rem; }
}
@media (max-width: 80rem) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 64rem) {
  .float-chip-1 { left: -.5rem; }
  .float-chip-2 { right: -.5rem; }
  .tiles-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team, .team-c3, .team-c4, .team-c5 { --cols: 3; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .site-nav { gap: .75rem; }
  .site-nav ul a { padding-inline: .65rem; }
}
@media (max-width: 56rem) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .explorer-tabs { display: flex; overflow-x: auto; gap: .5rem; padding: .25rem .1rem .75rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .explorer-tabs::-webkit-scrollbar { display: none; }
  .explorer-tab { width: auto; flex: none; scroll-snap-align: start; border-color: var(--line); background: var(--surface); padding: .5rem .9rem .5rem .5rem; font-size: .95rem; white-space: nowrap; }
  .explorer-tab .tile-icon { width: 2rem; height: 2rem; }
  .explorer-tab:hover { transform: none; }
  .explorer-tab[aria-selected="true"] { border-color: var(--brand); }
  .hero-art { max-width: 40rem; }
  .hero-grid, .contact-grid, .article, .svc-block { grid-template-columns: minmax(0, 1fr); }
  .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside { position: static; }

  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: .75rem; padding: .75rem var(--gutter) 1.25rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: .15rem; }
  .site-nav ul a { padding: .85rem 1rem; font-size: 1.08rem; }
}
@media (max-width: 40rem) {
  :root { --header-h: 4rem; }
  .post-list { grid-template-columns: minmax(0, 1fr); }
  .deflist div { grid-template-columns: minmax(0, 1fr); }
  .float-chip { padding: .45rem .7rem; font-size: .74rem; max-width: 10rem; }
  .float-chip strong { font-size: 1.25rem; }
  .float-chip-1 { left: .5rem; bottom: 2.75rem; }
  .float-chip-2 { right: .5rem; top: -1rem; }
  .planner-foot .btn { width: 100%; }
  .explorer-no { display: none; }
  .to-top { bottom: calc(4.75rem + env(safe-area-inset-bottom)); width: 2.75rem; height: 2.75rem; }
  .page-contact .to-top { bottom: 1rem; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div, .facts div + div { padding: .9rem 0; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--band-line); }
  .facts dt { min-width: 3.2ch; }
  .tiles-3, .tiles-4, .steps, .cards, .points, .form-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .team, .team-c3, .team-c4, .team-c5 { --cols: 2; }
  .person-bio { display: none; }
  .hero .actions .btn, .cta .actions .btn, .cta .actions, .page-head-404 .actions .btn { flex: 1 1 100%; }
  .head-row { align-items: flex-start; flex-direction: column; }
  .footer-grid { gap: 1.75rem; }
  .form-foot .btn { width: 100%; }
  .brand { font-size: 1.05rem; }
  .brand img { width: 2rem; height: 2rem; }

  /* Call / quote bar fixed to the bottom of the screen on phones */
  .action-bar { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.25fr; gap: .6rem; padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom)); background: var(--band); border-top: 1px solid var(--band-line); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.9rem; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
  .action-call { color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); }
  .action-quote { color: var(--on-accent); background: var(--accent); }
  body:not(.page-contact):not(.page-stats) { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 22rem) {
  .team, .team-c3, .team-c4, .team-c5 { --cols: 1; }
  .person { max-width: 16rem; }
  .brand-text { font-size: .95rem; }
  .theme-toggle, .nav-toggle { width: 2.5rem; height: 2.5rem; }
}
/* Short laptop screens: keep the whole hero above the fold */
@media (min-width: 56.01rem) and (max-height: 50rem) {
  .hero { padding-top: clamp(1.75rem, 3vw, 2.75rem); }
  .hero h1 { font-size: clamp(2.1rem, 1rem + 2.7vw, 3.1rem); }
}

@media (hover: none) {
  .card:hover, .person:hover, .tile-link:hover { transform: none; }
  .card-media::after, .tile-link::before, .card::before, .person::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .action-bar, .hero-art, .filters, .adm-top, .adm-nav, .to-top, .scroll-bar, .planner { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: #fff; padding: 0 !important; }
}
