/* Layout: a runbook. Left-aligned sections tagged with mono annotations, an asymmetric hero
   with an engagement readout, blueprint grid only in the hero. No inline styles (strict CSP). */
/* Fonts are self-hosted variable WOFF2 files (Latin subset, SIL Open Font License, see /fonts/LICENSE.txt).
   One file per family covers every weight used. The display and body fonts are preloaded in _Layout. */
@font-face { font-family: "Familjen Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/fonts/familjen-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F3F5F6;
  --surface: #FFFFFF;
  --ink: #111C26;
  --muted: #56646F;
  --line: #D5DCE1;
  --accent: #2346D1;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EBFB;
  --accent-hi: #5C7CF2;
  --glow: rgba(35, 70, 209, 0.16);
  --glow-2: rgba(27, 127, 83, 0.12);
  --header-bg: rgba(243, 245, 246, 0.72);
  --ok: #1B7F53;
  --mark-tile: #111C26;
  --ok-bg: #E2F2EA;
  --danger: #B42318;
  --grid: rgba(35, 70, 209, 0.07);
  --panel: #0F1A24;
  --panel-fg: #DCE4EA;
  --panel-muted: #7F8E99;
  --panel-line: #22313D;
  --panel-ok: #5FD39A;
  --panel-accent: #8FA6FF;

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6rem;
  --r: 6px;
  color-scheme: light;
}
/* Dark theme: follows the device unless the visitor picked a theme with the header toggle
   (theme.js sets data-theme on <html>). The two blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1319; --surface: #121C24; --ink: #E6ECEF; --muted: #93A2AD; --line: #24323D;
    --accent: #8FA6FF; --accent-ink: #0C1319; --accent-soft: #1A2547; --accent-hi: #C9D4FF; --glow: rgba(143, 166, 255, 0.14); --glow-2: rgba(95, 211, 154, 0.09); --header-bg: rgba(12, 19, 25, 0.68);
    --ok: #5FD39A; --ok-bg: #12301F; --mark-tile: #1E2B37; --danger: #FF8A80; --grid: rgba(143, 166, 255, 0.07);
    --panel: #071017; --panel-line: #1B2832;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1319; --surface: #121C24; --ink: #E6ECEF; --muted: #93A2AD; --line: #24323D;
  --accent: #8FA6FF; --accent-ink: #0C1319; --accent-soft: #1A2547; --accent-hi: #C9D4FF; --glow: rgba(143, 166, 255, 0.14); --glow-2: rgba(95, 211, 154, 0.09); --header-bg: rgba(12, 19, 25, 0.68);
  --ok: #5FD39A; --ok-bg: #12301F; --mark-tile: #1E2B37; --danger: #FF8A80; --grid: rgba(143, 166, 255, 0.07);
  --panel: #071017; --panel-line: #1B2832;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--f-mono); font-size: 0.85em; }
.tag { display: block; font-family: var(--f-mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.02em; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.more { display: inline-block; margin-top: var(--s-5); color: var(--accent); font-weight: 500; text-decoration: none; }
.more:hover { text-decoration: underline; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: var(--s-2) var(--s-4); z-index: 100; }
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

/* draft note */
.draft { background: var(--accent-soft); font-size: 0.85rem; }
.draft .wrap { padding-block: var(--s-2); display: flex; gap: var(--s-2); align-items: baseline; flex-wrap: wrap; }
.draft b { font-family: var(--f-mono); font-weight: 500; color: var(--accent); font-size: 0.78rem; }

/* header: stays on screen so "Book a call" is always one tap away */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
section[id], :target { scroll-margin-top: 96px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-4); flex-wrap: wrap; }
.header-actions { display: flex; align-items: center; gap: var(--s-3); }

/* Theme toggle: hidden until theme.js runs, since it does nothing without script. Shows the moon in light, the sun in dark. */
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* phone menu: CSS only (the site ships no JavaScript). #menu opens it; any other link closes it. */
.menu-open, .mobile-menu { display: none; }
.menu-open { align-items: center; min-height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.mobile-menu:target { display: block; position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--bg);
  padding: calc(env(safe-area-inset-top, 0px) + var(--s-4)) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + var(--s-5)) max(16px, env(safe-area-inset-left, 0px)); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .menu-close { display: inline-flex; }
.mobile-menu ul { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; }
.mobile-menu li a { display: block; padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-menu .btn { margin-top: var(--s-6); width: 100%; justify-content: center; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
/* Signal S: an S whose middle bar is a heartbeat. The tile stays dark in both themes so the mark reads the same everywhere. */
.brand-mark-bg { fill: var(--mark-tile); }
.brand-mark-s, .brand-mark-beat { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark-s { stroke: #FFFFFF; }
.brand-mark-beat { stroke: #5FD39A; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--muted); font-weight: 500; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: center; }
/* padding keeps each link at least 24px tall, the WCAG 2.2 minimum touch target */
.site-header nav a { display: inline-block; padding-block: 6px; text-decoration: none; font-size: 0.95rem; color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--f-body); font-weight: 600; font-size: 0.95rem; padding: 0.7rem 1.15rem; border-radius: var(--r); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* hero */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--s-8); align-items: center; padding-block: var(--s-8) var(--s-9); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 700; margin-block: var(--s-4) var(--s-5); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.hero-proof div { display: grid; gap: 2px; align-content: start; min-width: 0; }
.hero-proof strong { font-family: var(--f-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.hero-proof span { font-size: 0.85rem; color: var(--muted); }

/* health-check panel: a polished terminal card, dark in both themes */
.readout { margin: 0; min-width: 0; color: var(--panel-fg); border-radius: 16px; border: 1px solid transparent; overflow: hidden;
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
              linear-gradient(140deg, rgba(143, 166, 255, .65), rgba(143, 166, 255, .08) 38%, rgba(143, 166, 255, .04) 62%, rgba(95, 211, 154, .5)) border-box;
  box-shadow: 0 40px 80px -36px rgba(5, 10, 20, .7), 0 0 60px -20px rgba(143, 166, 255, .25); }
.readout-bar { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--panel-line); }
.dots { display: flex; gap: 7px; flex: none; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.readout-title { flex: 1; min-width: 0; text-align: center; font-family: var(--f-mono); font-size: 0.75rem; color: var(--panel-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readout-badge { flex: none; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .04em; color: var(--panel-accent); padding: 3px 9px; border: 1px solid rgba(143, 166, 255, .4); border-radius: 999px; }
.readout-body { padding: 20px 22px 22px; display: grid; gap: 16px; }
.cmd { font-family: var(--f-mono); font-size: 0.85rem; color: var(--panel-fg); white-space: nowrap; overflow: hidden; }
.cmd .prompt { color: var(--panel-ok); margin-right: 8px; }
.cmd b { font-weight: 400; display: inline-block; overflow: hidden; vertical-align: bottom; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: -4px 0 0; padding: 0; }
.scope li { font-family: var(--f-mono); font-size: 0.7rem; color: var(--panel-muted); padding: 2px 8px; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.progress { height: 4px; border-radius: 999px; background: var(--panel-line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--panel-accent), var(--panel-ok)); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; }
.stage { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-block: 9px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.stage:last-child { border-bottom: 0; }
.stage .st { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; color: var(--panel-ok); background: rgba(95, 211, 154, .14); }
.stage .label { font-size: 0.92rem; color: var(--panel-fg); }
.stage .when { font-family: var(--f-mono); font-size: 0.7rem; color: var(--panel-muted); }
.stage.live .st { color: var(--panel-accent); background: rgba(143, 166, 255, .16); box-shadow: 0 0 0 0 rgba(143, 166, 255, .5); animation: ring 2s ease-out infinite; }
.stage.live .label { font-weight: 600; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(143, 166, 255, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(143, 166, 255, 0); } }
.readout-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.readout-tiles div { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); min-width: 0; }
.readout-tiles dt { font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--panel-muted); }
.readout-tiles dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: var(--panel-fg); }
.readout-note { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--panel-line); font-size: 0.78rem; color: var(--panel-muted); }
.readout-note a { color: var(--panel-accent); text-decoration: none; }
.readout-note a:hover { text-decoration: underline; }

/* section scaffolding */
.block .wrap { padding-block: var(--s-8); }
/* two plain sections in a row share one gap instead of doubling it */
.block + .block:not(.band-top):not(.team-band) .wrap { padding-top: var(--s-4); }
.block-tight .wrap { padding-top: 0; }
.band-top { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); max-width: 720px; }
.sec-head h1, .sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
.page-top .wrap { padding-block: var(--s-8) var(--s-9); }

/* services: four categories, each a short list of linked services; detail lives on each service page */
.service-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.service-group { border-top: 2px solid var(--ink); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
/* Each group shares the parent's rows (icon, title, blurb, cards), so the first card lines up across columns
   even when one blurb is a line shorter. Browsers without subgrid simply keep the stacked layout. */
@supports (grid-template-rows: subgrid) {
  .service-group { grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--s-2); }
  .service-group ul { align-content: start; }   /* shorter columns keep their cards together at the top */
}
.service-group h3 { font-size: 1.3rem; font-weight: 600; }
.group-blurb { color: var(--muted); font-size: 0.92rem; }
.service-group ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.service-link { position: relative; display: grid; gap: 4px; padding: var(--s-4) 2.4rem var(--s-4) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.service-link::after { content: "→"; position: absolute; right: var(--s-4); top: var(--s-4); color: var(--accent); font-family: var(--f-mono); }
.service-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.service-link strong { font-weight: 600; }
.service-link span { color: var(--muted); font-size: 0.9rem; }

.side-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.side-list li { padding-left: 1.2rem; position: relative; }
.side-list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--f-mono); font-size: 0.85rem; top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--f-mono); font-size: 0.72rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }

/* health check offer */
.offer { background: var(--surface); border-block: 1px solid var(--line); }
.offer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); padding-block: var(--s-9); align-items: start; }
.offer h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-block: var(--s-3) var(--s-4); }
.offer-terms { display: flex; gap: var(--s-6); flex-wrap: wrap; margin-block: var(--s-6); }
.offer-terms div { display: grid; }
.offer-terms dt, .contact-info dt { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }
.offer-terms dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.checklist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r); }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .ok { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ok); background: var(--ok-bg); border-radius: 4px; padding: 2px 6px; height: fit-content; margin-top: 2px; }
.checklist strong { display: block; font-weight: 600; }
.checklist span { color: var(--muted); font-size: 0.92rem; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.step { border-top: 2px solid var(--ink); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.step .n { font-family: var(--f-mono); font-size: 0.78rem; color: var(--accent); }
.step h3 { font-size: 1.2rem; font-weight: 600; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step .dur { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); }

/* case studies */

/* tools: one compact strip */
.tools { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.tools h2 { font-size: 1.5rem; font-weight: 700; margin-top: var(--s-2); }
.tool-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tool-strip li { font-size: 0.9rem; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

/* contact: what happens after sending */
.next-steps { list-style: none; counter-reset: next; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.next-steps li { counter-increment: next; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--s-3); align-items: baseline; }
.next-steps li::before { content: counter(next); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--f-mono); font-size: 0.78rem; }
.next-steps strong { font-weight: 600; }
.next-steps span { color: var(--muted); }

/* expertise (about page) */
.team-band { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head-sub { margin-top: var(--s-8); }
.sec-head-sub h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.expertise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.expertise-item { display: flex; flex-direction: column; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.avatar { width: 88px; height: 88px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--accent); }
.expertise-item .avatar { width: 56px; height: 56px; margin-bottom: var(--s-4); }
.expertise-item h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s-3); }
.expertise-item p { color: var(--muted); }
.expertise-item p + p { margin-top: var(--s-3); }
.expertise-item .chips { margin-top: var(--s-4); }
.expertise-services { margin-top: auto; padding-top: var(--s-5); }
.expertise-services .tag { margin-bottom: var(--s-2); }
.expertise-services ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1, 4px); }
.expertise-services a { display: inline-block; padding-block: 3px; color: var(--accent); font-weight: 500; text-decoration: none; }
.expertise-services a::after { content: " →"; }
.expertise-services a:hover { text-decoration: underline; }
/* ways to work with us */
.ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.ways a { display: grid; gap: var(--s-2); height: 100%; padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ways a:hover { border-color: var(--accent); transform: translateY(-1px); }
.ways strong { font-weight: 600; }
.ways span { color: var(--muted); font-size: 0.95rem; }
.staffing { margin-top: var(--s-7); max-width: 760px; }
.staffing h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s-3); }
.staffing p { color: var(--muted); }
.promise { margin-top: var(--s-7); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.promise div { border-left: 2px solid var(--accent); padding-left: var(--s-4); }
.promise strong { display: block; font-weight: 600; margin-bottom: 2px; }
.promise span { color: var(--muted); font-size: 0.95rem; }

/* insights */
.posts { display: grid; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--s-5); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.post-row time { color: var(--muted); padding-top: 4px; }
.post-row h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s-2); }
.post-row h3 a { text-decoration: none; }
.post-row h3 a:hover { color: var(--accent); }
.post-row p { color: var(--muted); max-width: 70ch; }
.post-row .post-author { font-family: var(--f-mono); font-size: 0.78rem; margin-top: var(--s-2); }

/* contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); padding-block: var(--s-9); }
.contact h1, .contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-block: var(--s-3) var(--s-4); }
.contact-info { display: grid; gap: var(--s-4); margin: var(--s-6) 0 0; }
.contact-info div { display: grid; }
.contact-info dd { margin: 0; font-weight: 500; }
.contact-info a { color: var(--accent); }
.contact-form, .sent { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.sent h2 { font-size: 1.8rem; margin: 0; }
.sent p:not(.tag) { color: var(--muted); }
.sent .btn { justify-self: start; }
.contact-form .btn { justify-self: start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.88rem; font-weight: 500; }
input, select, textarea { font: inherit; font-size: 0.95rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.input-validation-error { border-color: var(--danger); }
.field-error, .form-error { color: var(--danger); font-size: 0.85rem; }
.form-error ul { margin: 0; padding-left: 1.2rem; }
.validation-summary-valid { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* detail pages */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; }
.detail-main h1, .article h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-block: var(--s-3) var(--s-4); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s-5); }
.crumbs a { color: var(--muted); }
.detail-side { display: grid; gap: var(--s-5); position: sticky; top: var(--s-5); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); display: grid; gap: var(--s-4); }
.side-card .btn { justify-content: center; }
.side-other ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.side-other a { color: var(--ink); }
.article { max-width: 760px; }

/* long-form Markdown */
.prose { margin-top: var(--s-7); max-width: 68ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: 1.6rem; margin-top: var(--s-7); }
.prose h3 { font-size: 1.2rem; margin-top: var(--s-6); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: var(--s-2); }
.prose a { color: var(--accent); }
.prose code { font-family: var(--f-mono); font-size: 0.86em; background: var(--accent-soft); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--panel); color: var(--panel-fg); padding: var(--s-4) var(--s-5); border-radius: var(--r); overflow-x: auto; font-size: 0.85rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin-inline: 0; padding-left: var(--s-4); border-left: 2px solid var(--accent); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); }
.article-cta { margin-top: var(--s-8); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: flex; gap: var(--s-5); align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: var(--s-4) var(--s-6); padding-block: var(--s-5) var(--s-4); }
/* links flow inline, separated by a decorative "/" (alt text "" so screen readers skip it); lines start with a link, not a slash */
.footer-links { display: grid; gap: var(--s-2); align-content: start; font-size: 0.85rem; }
.footer-cols .footer-links ul { display: flex; flex-wrap: wrap; gap: 0; }
.footer-links li { white-space: nowrap; }
.footer-links li:not(:last-child)::after { content: "/"; content: "/" / ""; margin-inline: .55em; color: var(--muted); opacity: .5; }
.footer-company { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.footer-phone-only { display: none; }
.footer-cols .brand-name { color: var(--ink); }
.footer-cols p { margin-top: var(--s-2); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* at least 24px tall so links are easy to tap (WCAG 2.2 target size) */
.footer-cols a, .contact-info a, .crumbs a { display: inline-block; min-height: 24px; padding-block: 4px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--ink); }
.footer-base { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-block: var(--s-3); border-top: 1px solid var(--line); font-size: 0.85rem; }

/* current page in the menus */
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.mobile-menu li a[aria-current="page"] { color: var(--accent); }

/* home teasers and shared bands */
.offer-teaser h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-block: var(--s-3) var(--s-4); }
.teaser-side { display: grid; gap: var(--s-5); align-content: center; }
.teaser-side .offer-terms { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cta-band { border-top: 1px solid var(--line); background: var(--surface); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-6); flex-wrap: wrap; padding-block: var(--s-8); }
.cta-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: var(--s-2); }
.cta-band p { color: var(--muted); max-width: 52ch; }
.founder-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.founder-mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.founder-mini:hover { border-color: var(--accent); transform: translateY(-1px); }
.founder-mini .avatar { width: 64px; height: 64px; font-size: 1.25rem; }
.founder-mini strong { display: block; font-weight: 600; }
.founder-mini span span { display: block; color: var(--muted); font-size: 0.9rem; }

/* health check page */
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.offer-grid h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-block: var(--s-3) var(--s-4); }
.fit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.fit-grid div { border-left: 2px solid var(--accent); padding-left: var(--s-4); }
.fit-grid strong { display: block; font-weight: 600; margin-bottom: 2px; }
.fit-grid span { color: var(--muted); font-size: 0.95rem; }

/* ---- motion ----
   Everything here is decoration: content is fully visible without it, and the
   prefers-reduced-motion rule at the top of this file switches all of it off. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.15); } 100% { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes grid-drift { to { background-position: 28px 28px, 28px 28px; } }
@keyframes float { from { transform: translate(-8%, -6%) scale(1); } to { transform: translate(10%, 8%) scale(1.15); } }
@keyframes shimmer { to { background-position: 200% center; } }

/* hero: an aurora of two slow-moving glows over a blueprint grid that fades out at the edges,
   and content that rises in on load. Glows are plain gradients moved with transform (no blur filters), so they stay cheap. */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-grid { position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; animation: grid-drift 24s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%); }
.blob { position: absolute; border-radius: 50%; }
.blob-a { width: 720px; height: 720px; right: -160px; top: -220px; background: radial-gradient(circle, var(--glow), transparent 62%); animation: float 16s ease-in-out infinite alternate; }
.blob-b { width: 560px; height: 560px; left: -180px; bottom: -260px; background: radial-gradient(circle, var(--glow-2), transparent 62%); animation: float 20s ease-in-out -6s infinite alternate-reverse; }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
.hero h1 em { background: linear-gradient(90deg, var(--accent), var(--accent-hi), var(--accent)); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }

/* the health-check readout plays through its steps */
@keyframes type { from { max-width: 0; } to { max-width: 24ch; } }
@keyframes fill { from { width: 0; } to { width: 100%; } }
/* uses the separate `translate` property so it doesn't fight the panel's 3D tilt (`transform`) */
@keyframes rise-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: none; } }
.readout { animation: rise-in .9s .2s cubic-bezier(.2, .7, .2, 1) both; }
.cmd b { animation: type .9s .5s steps(22) both; }
.cmd::after { content: "▋"; margin-left: 4px; color: var(--panel-accent); animation: blink 1s steps(1) infinite; }
.scope { animation: appear .4s 1.3s both; }
.progress span { animation: fill 2.2s 1.4s cubic-bezier(.4, 0, .2, 1) both; }
.stage { animation: appear .35s both; }
.stage .st { animation: pop .35s both; }
.stage.live .st { animation: pop .35s both, ring 2s 3.6s ease-out infinite; }
.stage:nth-child(1), .stage:nth-child(1) .st { animation-delay: 1.5s; }
.stage:nth-child(2), .stage:nth-child(2) .st { animation-delay: 1.9s; }
.stage:nth-child(3), .stage:nth-child(3) .st { animation-delay: 2.3s; }
.stage:nth-child(4), .stage:nth-child(4) .st { animation-delay: 2.7s; }
.stage:nth-child(5) { animation-delay: 3.1s; }
.stage:nth-child(5) .st { animation-delay: 3.1s, 3.6s; } /* pops in, then keeps pulsing */
.readout-tiles, .readout-note { animation: appear .5s 3.4s both; }

/* small interactions */
.btn-primary:hover { box-shadow: 0 10px 28px -12px var(--accent); }
.service-link::after, .more { transition: transform .2s ease; }
.service-link:hover::after { transform: translateX(4px); }
.more:hover { transform: translateX(3px); }
.tool-strip li { transition: border-color .15s ease, color .15s ease; }
.tool-strip li:hover { border-color: var(--accent); color: var(--accent); }

/* scroll-driven: sections rise in as they enter the screen, and the header gains a shadow once you scroll.
   Browsers without scroll timelines simply show everything as it is. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .site-header { animation: header-lift linear both; animation-timeline: scroll(); animation-range: 0 140px; }
  @keyframes header-lift { to { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .55); } }
}

/* ---- polish layer ---- */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --angle: 360deg; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes sheen { 0%, 60% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(330%) skewX(-18deg); } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 var(--ok); } 100% { box-shadow: 0 0 0 8px transparent; } }

::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: var(--line) transparent; }
.sec-head h1, .sec-head h2 { letter-spacing: -0.02em; }

/* frosted header: content blurs as it scrolls beneath */
.site-header { background: var(--header-bg); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }

/* reading progress along the top edge (only where scroll timelines exist; otherwise it stays hidden) */
.scroll-progress { position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto; height: 2px; z-index: 70; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--ok)); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* smooth cross-fade between pages, with the header staying put (browsers without it just navigate normally) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
}

/* hero type and details */
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 4.1rem); letter-spacing: -0.03em; line-height: 1.04; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.eyebrow-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: beacon 2s ease-out infinite; }
.hero-proof strong { font-size: 2rem; background: linear-gradient(180deg, var(--ink) 30%, var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* primary buttons catch a light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s ease; pointer-events: none; }
.btn-primary:hover::after { transform: translateX(100%); }

/* the health-check panel floats gently (no 3D tilt: it blurs the panel's small text) */
.readout-wrap { min-width: 0; }
@media (min-width: 961px) {
  .readout-wrap { animation: bob 7s ease-in-out 1.2s infinite; }
}

/* hero proportions: a three-line headline, a short intro, and the whole hero within one desktop screen */
.hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding-block: var(--s-7) var(--s-8); }
.hero .lede { max-width: 52ch; }
.hero-proof { margin-top: var(--s-6); }

/* Stripe-style headline: the claim and its supporting line read as one statement,
   with lighter display weight and a larger, softer intro sitting close beneath it */
.hero h1 { font-weight: 600; margin-bottom: var(--s-4); }
.hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.5; color: var(--muted); }

/* one-line news bar above the header */
.announce { background: linear-gradient(90deg, var(--accent-soft), transparent 50%, var(--accent-soft)); border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.announce { position: relative; }
.announce-wrap { display: flex; align-items: center; gap: var(--s-3); }
/* every item sits in the same grid cell, so the bar is as tall as its tallest item and never jumps */
.announce-list { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; }
.announce-item { grid-area: 1 / 1; display: grid; align-items: center; }
.announce.is-rotating .announce-item[hidden] { display: grid; visibility: hidden; }
.announce a { display: flex; align-items: center; justify-content: center; gap: var(--s-3); padding-block: 9px; text-decoration: none; color: var(--ink); }
.announce.is-rotating .announce-item:not([hidden]) a { animation: news-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes news-in { from { opacity: 0; transform: translateY(8px); } }
/* the thin line along the bottom shows time until the next item; when it finishes, motion.js shows the next one */
.announce.is-rotating .announce-item:not([hidden])::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--ok)); opacity: .7; animation: news-timer 7s linear both; }
@keyframes news-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.announce.is-rotating:hover .announce-item:not([hidden])::after, .announce.is-rotating:focus-within .announce-item:not([hidden])::after,
.announce.is-rotating.is-held .announce-item:not([hidden])::after { animation-play-state: paused; }
.announce-controls { flex: none; display: flex; gap: 4px; }
.announce-controls[hidden] { display: none; }
.announce-btn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; }
.announce-btn:hover { color: var(--ink); border-color: var(--ink); }
.announce-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.announce-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.announce-pause .icon-play { display: none; fill: currentColor; }
.announce.is-held .announce-pause .icon-play { display: block; }
.announce.is-held .announce-pause .icon-pause { display: none; }
.announce-tag { flex: none; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.announce-text { min-width: 0; }
.announce-more { flex: none; color: var(--accent); font-weight: 600; transition: transform .2s ease; }
.announce a:hover .announce-more { transform: translateX(3px); }

/* who we work with: one card per kind of visitor, each pointing to the services that fit */
.audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.audience { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-5); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.audience-label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.audience h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.audience p { color: var(--muted); font-size: 0.92rem; }
.audience-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.audience-links a { font-size: 0.8rem; font-weight: 500; text-decoration: none; color: var(--ink); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); transition: border-color .15s ease, color .15s ease; }
.audience-links a:hover { border-color: var(--accent); color: var(--accent); }

/* home page articles as a row of cards */
.post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.post-card { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border-radius: 16px; border: 1px solid transparent; text-decoration: none;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--line), var(--line)) border-box; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -32px var(--accent);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--angle), transparent 0deg 210deg, var(--accent) 280deg, var(--ok) 330deg, transparent 360deg) border-box;
  animation: spin 3s linear infinite; }
.post-card time { color: var(--accent); font-size: 0.75rem; }
.post-card strong { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.post-card span { color: var(--muted); font-size: 0.92rem; }
.post-card em { font-style: normal; font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); margin-top: var(--s-2); }

/* endless ribbon of tools under the hero; pauses on hover, fades out at both edges */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding-block: var(--s-5);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; color: var(--muted); }
.marquee li::after { content: "✦"; margin-inline: var(--s-6); font-size: .7rem; color: var(--accent); }

/* service categories get an icon; cards get a glowing border that circles on hover */
.service-group { border-top: 0; padding-top: 0; }
.group-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s-3); color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); }
.group-icon svg { width: 22px; height: 22px; }
.service-link { border: 1px solid transparent; border-radius: 12px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--line), var(--line)) border-box; }
.service-link:hover { border-color: transparent; box-shadow: 0 20px 40px -28px var(--accent);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--angle), transparent 0deg 210deg, var(--accent) 280deg, var(--ok) 330deg, transparent 360deg) border-box;
  animation: spin 3s linear infinite; }

/* home health-check offer as a lit card */
.offer-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-7); align-items: center;
  padding: var(--s-7); border-radius: 22px; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent), var(--line) 40%, var(--line) 60%, var(--ok)) border-box;
  box-shadow: 0 40px 90px -60px var(--accent); }
.offer-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -260px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 62%); pointer-events: none; }
.offer-card::after { content: ""; position: absolute; inset: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); animation: sheen 8s ease-in-out infinite; pointer-events: none; }
.offer-card > * { position: relative; z-index: 1; }
.offer-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-block: var(--s-3) var(--s-4); }

/* founders' initials on a gradient tile */
.avatar { border-radius: 16px; color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--ok)); box-shadow: 0 12px 30px -16px var(--accent); }

/* soft glows behind the closing sections */
.contact, .cta-band { position: relative; overflow: hidden; isolation: isolate; }
.contact::before, .cta-band::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; left: -260px; bottom: -420px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 62%); animation: float 18s ease-in-out infinite alternate; pointer-events: none; }

/* ---- website assistant ---- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@keyframes chat-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 var(--glow), 0 16px 40px -16px var(--accent); } 100% { box-shadow: 0 0 0 14px transparent, 0 16px 40px -16px var(--accent); } }

.chat-launcher { position: fixed; z-index: 80; right: calc(env(safe-area-inset-right, 0px) + 20px); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 0.95rem var(--f-body); color: var(--accent-ink); background: var(--accent); animation: halo 2.6s ease-out infinite; transition: transform .2s ease; }
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher svg { width: 22px; height: 22px; }
.chat-open .chat-launcher { opacity: 0; pointer-events: none; }

.chat-panel { position: fixed; z-index: 90; right: calc(env(safe-area-inset-right, 0px) + 20px); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  width: min(400px, calc(100vw - 40px)); height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; border: 1px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(140deg, var(--accent), var(--line) 40%, var(--line) 65%, var(--ok)) border-box;
  box-shadow: 0 40px 90px -30px rgba(5, 10, 20, .55); animation: chat-in .35s cubic-bezier(.2, .7, .2, 1) both; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: var(--s-3); padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); background: var(--header-bg); }
.chat-head > div:nth-child(2) { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 1rem; font-weight: 700; }
.chat-head p { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-avatar svg { width: 34px; height: 34px; display: block; }
.chat-online { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: beacon 2s ease-out infinite; }
.chat-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.chat-icon-btn:hover { color: var(--ink); border-color: var(--ink); }
.chat-icon-btn svg { width: 18px; height: 18px; }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 0.92rem; line-height: 1.55; overflow-wrap: anywhere; animation: rise .3s ease both; }
.chat-msg.assistant { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat-msg.error { border-color: var(--danger); color: var(--danger); }
.chat-msg p + p, .chat-msg p + ul, .chat-msg ul + p { margin-top: 8px; }
.chat-msg ul { margin: 0; padding-left: 1.1rem; }
.chat-msg li + li { margin-top: 4px; }
.chat-msg a { color: var(--accent); font-weight: 500; }
.chat-msg.user a { color: inherit; }
.chat-msg.typing::after { content: "• • •"; display: inline-block; letter-spacing: 2px; color: var(--muted); animation: dot 1.2s ease-in-out infinite; }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 12px; }
.chat-suggestions[hidden] { display: none; }
.chat-chip { font: 500 0.8rem var(--f-body); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 6px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.4; }
.chat-send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.chat-send:hover { transform: translateY(-1px); }
.chat-send:disabled { opacity: .5; cursor: wait; transform: none; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { padding: 4px 16px 12px; font-size: 0.7rem; color: var(--muted); }
.chat-note a { color: inherit; }

@media (max-width: 640px) {
  .chat-launcher span { display: none; }
  .chat-launcher { padding: 14px; }
  .chat-panel { inset: env(safe-area-inset-top, 0px) 0 0 0; width: auto; height: auto; border-radius: 0; }
}

@media (max-width: 960px) {
  .offer-card { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  .post-cards, .audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap, .offer .wrap, .contact .wrap, .detail, .offer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder-minis { grid-template-columns: minmax(0, 1fr); }
  .detail-side { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .expertise, .promise { grid-template-columns: minmax(0, 1fr); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
  .tools { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
}
@media (max-width: 640px) {
  .service-groups, .steps, .row2, .footer-cols, .fit-grid, .post-cards, .audiences, .ways { grid-template-columns: minmax(0, 1fr); }
  /* phone footer: brand, one short row of links, copyright. The service list is replaced by a single Services link. */
  .footer-cols { gap: var(--s-3); padding-block: var(--s-5) var(--s-3); }
  .footer-cols p { margin-top: var(--s-1); }
  .footer-cols .footer-links .footer-services { display: none; }
  .footer-phone-only { display: list-item; }
  .footer-company { padding-top: 0; border-top: 0; }
  .announce a { justify-content: flex-start; font-size: 0.8rem; }
  .announce-more { display: none; }
  .announce-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .hero .wrap { padding-block: var(--s-5) var(--s-7); gap: var(--s-6); }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .eyebrow { border-radius: 12px; font-size: 0.72rem; }
  .hero-proof strong { font-size: 1.6rem; }
  .blob-a { width: 420px; height: 420px; right: -200px; top: -120px; }
  .blob-b { width: 360px; height: 360px; left: -200px; bottom: -200px; }
  .offer-card { padding: var(--s-5); border-radius: 18px; }
  .marquee li { font-size: 1rem; }
  .post-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); }
  .site-header nav { display: none; }
  .menu-open { display: inline-flex; }
  .site-header .wrap { flex-wrap: nowrap; gap: var(--s-3); }
  .site-header .btn { padding: 0.55rem 0.9rem; white-space: nowrap; min-height: 44px; }
  .block .wrap, .offer .wrap, .contact .wrap { padding-block: var(--s-8); }
  .page-top .wrap { padding-block: var(--s-6) var(--s-8); }
  .contact-form, .sent { padding: var(--s-5); }
}
@media (max-width: 420px) {
  .site-header .brand-name span { display: none; }
  /* Room for the theme toggle next to "Book a call" and "Menu" on small phones. */
  .header-actions, .site-header .wrap { gap: var(--s-2); }
  .theme-toggle { width: 40px; }
  .site-header .btn { padding-inline: 0.7rem; font-size: 0.9rem; }
  .menu-open { padding-inline: var(--s-2); }
}

/* ===== motion layer 2: live signal, telemetry, equalizers, count-ups, spotlight ===== */

/* hero: heartbeat traces drawn on a canvas by motion.js. Faded under the copy and at the edges so text stays crisp. */
.hero-signal { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3), #000 55%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .3), #000 55%, #000 92%, transparent); }
.hero-signal.is-on { opacity: 1; }

/* health-check panel: a scrolling monitor chart */
.live { display: grid; gap: 8px; animation: appear .5s 3.6s both; }
.live-head { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 0.65rem; letter-spacing: .06em; text-transform: uppercase; color: var(--panel-muted); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--panel-ok); box-shadow: 0 0 8px var(--panel-ok); animation: blink 1.6s steps(1) infinite; }
.live-val { margin-left: auto; color: var(--panel-ok); }
.live-chart { position: relative; height: 44px; overflow: hidden; border-bottom: 1px solid var(--panel-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.live-chart::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(255, 255, 255, .035) 10px 11px); pointer-events: none; }
.live-track { display: flex; align-items: flex-end; gap: 4px; width: max-content; height: 100%; animation: live-scroll 14s linear infinite; }
.live-track i { flex: none; width: 6px; height: calc(var(--h) * 100%); border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, rgba(143, 166, 255, .18), var(--panel-accent)); }
.live-track .h1 { --h: .14; } .live-track .h2 { --h: .24; } .live-track .h3 { --h: .34; } .live-track .h4 { --h: .44; }
.live-track .h5 { --h: .55; } .live-track .h6 { --h: .66; } .live-track .h7 { --h: .8; }
.live-track .h8 { --h: .96; background: linear-gradient(to top, rgba(95, 211, 154, .2), var(--panel-ok)); box-shadow: 0 0 12px -2px var(--panel-ok); }
/* two identical copies: moving by half the track (plus half a gap) loops without a seam */
@keyframes live-scroll { to { transform: translateX(calc(-50% - 2px)); } }

/* equalizer along the bottom of call-to-action cards and bands */
.signal-bars { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: flex-end; gap: 3px; padding-inline: 2px; z-index: -1; pointer-events: none; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.offer-card > .signal-bars { position: absolute; z-index: 0; }
.signal-bars i { flex: 1; height: 100%; border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(var(--h, .4));
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 4%, transparent), color-mix(in srgb, var(--accent) 34%, transparent));
  animation: eq 1.8s ease-in-out infinite alternate; }
.signal-bars i:nth-child(2n) { --h: .25; animation-duration: 1.3s; animation-delay: -.4s; }
.signal-bars i:nth-child(3n) { --h: .6; animation-duration: 2.2s; animation-delay: -1.1s; }
.signal-bars i:nth-child(5n+1) { --h: .8; animation-duration: 1.5s; animation-delay: -.7s; }
.signal-bars i:nth-child(7n+3) { --h: .5; animation-duration: 2.6s; animation-delay: -1.9s;
  background: linear-gradient(to top, color-mix(in srgb, var(--ok) 4%, transparent), color-mix(in srgb, var(--ok) 34%, transparent)); }
.signal-bars i:nth-child(11n+4) { --h: .95; animation-duration: 1.1s; }
@keyframes eq { from { transform: scaleY(.08); } to { transform: scaleY(var(--h, .4)); } }

/* cards: a soft light follows the cursor (motion.js sets --mx and --my) */
.audience, .post-card, .founder-mini { position: relative; isolation: isolate; }
.audience::after, .post-card::after, .founder-mini::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 65%); }
.audience:hover::after, .post-card:hover::after, .founder-mini:hover::after { opacity: 1; }
.audience { transition: border-color .2s ease, transform .2s ease; }
.audience:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-3px); }

/* count-up numbers keep their width while counting */
[data-count] { font-variant-numeric: tabular-nums; }

/* theme reveal: when the toggle is clicked, the new theme grows in a circle from the button (theme.js) */
.theme-switching .site-header { view-transition-name: none; }
.theme-switching::view-transition-old(root) { animation: none; }
.theme-switching::view-transition-new(root) { animation: theme-reveal .55s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 0)); } to { clip-path: circle(var(--tr, 150vmax) at var(--tx, 100%) var(--ty, 0)); } }

/* paragraphs avoid a lonely last word (no cost, ignored by older browsers) */
p, li { text-wrap: pretty; }

/* enquiry form: button with the confidentiality note beside it, RSS link */
.form-foot { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.form-note { margin: 0; flex: 1 1 220px; font-size: 0.85rem; color: var(--muted); }
.feed-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-3); font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent); text-decoration: none; }
.feed-link::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.feed-link:hover { text-decoration: underline; }
.form-note a { color: var(--accent); }

/* security page and trust strip */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); }
.trust-card { padding: var(--s-5); border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--s-2); align-content: start; }
.trust-card h2 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.trust-card h2::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; margin-bottom: var(--s-3); background: linear-gradient(90deg, var(--accent), var(--ok)); }
.trust-card p { color: var(--muted); font-size: 0.93rem; }
.trust-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
.trust-columns h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-block: var(--s-2) var(--s-4); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.trust-list li { position: relative; padding-left: 28px; color: var(--muted); }
.trust-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 0.7rem; color: var(--ok); background: var(--ok-bg); }
.trust-list a { color: var(--accent); }
.trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; gap: var(--s-5); padding: var(--s-5) var(--s-6); border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.trust-item { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.trust-item svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; background: var(--accent-soft); }
.trust-item span { display: grid; font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.trust-item strong { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.trust-more { font-size: 0.88rem; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.trust-more:hover { text-decoration: underline; }
.contact-security { margin-top: var(--s-5); font-size: 0.92rem; }
.contact-security a { color: var(--accent); font-weight: 500; text-decoration: none; }
.contact-security a:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-more { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-columns { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
}
@media (max-width: 640px) {
  .trust-grid, .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-strip { padding: var(--s-5); }
}

/* team members are shown with a discipline icon instead of a photo */
.avatar-icon svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---- admin: news bar editor (/admin/news) ---- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-5); flex-wrap: wrap; }
.admin-user { display: flex; align-items: center; gap: var(--s-4); font-size: 0.9rem; color: var(--muted); }
.admin-notice { margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); background: var(--surface); }
.admin-notice-ok { border-left-color: var(--ok); }
.admin-notice-warn { border-left-color: var(--danger); }
.admin-form { display: grid; gap: var(--s-5); }
.admin-toolbar { position: sticky; top: 72px; z-index: 5; display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; padding: var(--s-3) 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.admin-count { margin-left: auto; font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }
.admin-empty { color: var(--muted); }
.admin-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.admin-item fieldset { margin: 0; padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); display: grid; gap: var(--s-4); min-width: 0; }
.admin-item legend { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-2); font-weight: 600; }
.admin-status { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.admin-status.is-live { color: var(--ok); border-color: currentColor; }
.admin-grid { display: grid; grid-template-columns: 140px minmax(0, 1fr) minmax(0, 220px); gap: var(--s-4); }
.admin-grid .admin-text { grid-column: 2; }
.admin-grid > .field:nth-child(4) { grid-column: 1 / span 1; }
.admin-item-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.admin-item-actions .btn { padding: 0.45rem 0.8rem; font-size: 0.85rem; }
.admin-item-actions .btn:disabled { opacity: .4; cursor: default; }
.admin-remove { margin-left: auto; color: var(--danger); }
.admin-help { margin-top: var(--s-5); max-width: 760px; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) {
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-grid .admin-text, .admin-grid > .field:nth-child(4) { grid-column: auto; }
  .admin-toolbar { top: 64px; }
}

/* ---- questions and answers (_Faq): native <details>, no JavaScript ---- */
.faq { margin-top: var(--s-7); }
.detail-main .faq .sec-head h2, .related h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.faq-list { display: grid; gap: var(--s-3); }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--f-mono); font-size: 1.2rem; color: var(--accent); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-answer { padding: 0 var(--s-5) var(--s-4); color: var(--muted); }
.faq-answer p + p { margin-top: var(--s-3); }
.faq-answer a { color: var(--accent); }
.faq > .sec-head, .detail-main .faq .sec-head { margin-bottom: var(--s-5); }

/* ---- related services and articles ---- */
.related { margin-top: var(--s-7); }
.related h2 { margin-bottom: var(--s-4); }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.related-list a { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.related-list a:hover { border-color: var(--accent); transform: translateY(-1px); }
.related-list strong { font-weight: 600; }
.related-list span { color: var(--muted); font-size: 0.92rem; }
.side-link { display: block; margin-top: var(--s-3); font-size: 0.88rem; color: var(--accent); text-decoration: none; }
.side-link:hover { text-decoration: underline; }

/* ---- admin: navigation and articles ---- */
.admin-head { margin-bottom: var(--s-6); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); align-items: center; }
.admin-nav { display: flex; gap: var(--s-5); flex-wrap: wrap; align-items: center; }
.admin-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding-block: 6px; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.admin-nav .admin-nav-site { font-size: 0.9rem; }
.admin-articles { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.admin-article { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.admin-article strong { display: block; font-weight: 600; }
.admin-article-meta { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }
.admin-article-badges { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.admin-grid-2 { grid-template-columns: minmax(0, 1fr) 200px; }
.admin-hint { font-size: 0.82rem; color: var(--muted); }
.admin-hint code { font-family: var(--f-mono); font-size: 0.8rem; }
.admin-label { font-size: 0.88rem; font-weight: 500; }
.admin-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s-2) var(--s-4); }
.admin-check { display: flex; align-items: center; gap: var(--s-2); font-size: 0.92rem; cursor: pointer; }
.admin-check input { width: auto; }
.admin-body { font-family: var(--f-mono); font-size: 0.88rem; line-height: 1.6; resize: vertical; min-height: 360px; }
.admin-preview { padding: var(--s-6); border: 1px dashed var(--accent); border-radius: var(--r); }
.admin-danger { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .admin-article { grid-template-columns: minmax(0, 1fr); }
  .admin-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
