/* =====================================================================
   b well – unified stylesheet. No external dependencies.
   1 Tokens · 2 Base · 3 Layout · 4 Header · 5 Shared primitives
   6 Components · 7 Diagrams & charts · 8 Motion & fallbacks
   ===================================================================== */

/* ---------- 1 Tokens ---------- */
:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --surface-2: #eaf2ff;
  --ink: #222e3e;
  --text: #3b4452;
  --muted: #5f6876;
  --line: #e1e6ec;
  --accent: #1f63d6;
  --accent-bright: #349bff;
  --accent-ink: #ffffff;
  --on-ink: #d6dce5;            /* body text on ink surfaces */
  --band-bg: #222e3e;           /* dark bands & card backs (stay dark in both themes) */
  --band-line: #222e3e;
  --band-fg: #ffffff;           /* headings & links on bands */
  --band-text: #d6dce5;         /* body text on bands */

  --radius: 18px;
  --radius-sm: 10px;
  --pill: 999px;
  --pad: clamp(24px, 3vw, 36px);
  --pad-sm: 20px;
  --gap: clamp(16px, 2.2vw, 24px);
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(76px, 10.5vw, 140px);

  --shadow-lift: 0 22px 44px -26px rgb(15 23 42 / .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-flip: cubic-bezier(.45, .05, .2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151c;
    --surface: #171e28;
    --surface-2: #15263c;
    --ink: #eef2f7;
    --text: #c8d0db;
    --muted: #98a2b0;
    --line: #273241;
    --accent: #6cb4ff;
    --accent-bright: #349bff;
    --accent-ink: #0b1220;
    --on-ink: #2c3644;
    --band-bg: #1a2638;
    --band-line: #2c3d57;
    --band-fg: #eef2f7;
    --band-text: #b9c3d0;
  }
}

/* ---------- 2 Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 650; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
h3, .h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
figure { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3 Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section.alt { background: var(--surface); padding-top: var(--section); }
.section.alt + .section { padding-top: var(--section); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > p:not(.eyebrow) { font-size: 1.08rem; }
.section-head p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }
.insights { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.mt-l.mt-l { margin-top: clamp(40px, 6vw, 72px); }  /* doubled class: wins over component margins */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }

/* ---------- 4 Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 92px; }
.logo { display: inline-flex; align-items: center; padding: 6px 0; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--accent); }
.logo-mark { height: 40px; width: auto; display: block; }
.nav-toggle { display: none; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav li { position: relative; }
.nav a, .nav .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font: inherit; font-size: 1.06rem; font-weight: 600;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .sub-toggle:hover { background: var(--surface); }
.nav a[aria-current="page"], .nav .is-active > .sub-toggle { color: var(--accent); }
.sub-toggle svg { width: 13px; height: 13px; transition: transform .2s; }
.sub-label { display: none; }
.lang-switch a { padding: 10px 12px; margin-left: 4px; color: var(--muted); font-size: .92rem; letter-spacing: .04em; }
.lang-switch a:hover { color: var(--ink); }
.submenu {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 4px); left: 0; min-width: 290px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav .submenu a { display: block; width: 100%; padding: 12px 14px; font-size: 1.02rem; font-weight: 550; }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { opacity: 1; visibility: visible; transform: none; }
.has-sub.open > .sub-toggle svg { transform: rotate(180deg); }
.nav .nav-cta { background: var(--ink); color: var(--bg); padding: 13px 24px; border-radius: var(--pill); margin-left: 12px; }
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
.nav .nav-cta[aria-current="page"] { color: var(--bg); }
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; min-height: 76px; }
  .logo-mark { height: 34px; }
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--line);
    border-radius: var(--pill); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav { width: 100%; padding-bottom: 16px; }
  .js .nav { display: none; }
  .js .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav .sub-toggle { width: 100%; padding: 14px 4px; font-size: 1.12rem; }
  /* on small screens the groups are plain labels, not buttons */
  .nav .sub-toggle { display: none; }
  .nav .sub-label { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 20px 4px 4px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; background: none; }
  .nav .nav-cta { margin: 16px 0 0; justify-content: center; padding: 14px; }
  .lang-switch a { margin: 8px 0 0; justify-content: center; }
}

/* ---------- 5 Shared primitives ---------- */
/* Labels: one style, two colours */
.eyebrow, .tag, .step-tag, .stat > span, .facts dt, .case-body h4, .flip-back h4, .site-footer h2,
.cta-link small, .spectrum-ends, .proof-card .donut-box strong small {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35;
}
.eyebrow, .tag { color: var(--accent); }
.step-tag, .stat > span, .facts dt, .case-body h4, .site-footer h2, .spectrum-ends, .proof-card .donut-box strong small { color: var(--muted); }
.eyebrow { display: inline-block; margin: 0 0 14px; }
.tag { margin: 0 0 6px; }
.lead { font-size: clamp(1.12rem, 1.9vw, 1.3rem); line-height: 1.55; color: var(--text); max-width: 50ch; }
.q { color: var(--muted); margin: 0; }

/* Surfaces: every card-like element */
.card, .flip-face, .tile, .proof-card, .case, .lane, .outputs li, .relation .party, .company {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
}
.card, .flip-face, .proof-card, .case { padding: var(--pad); }
.tile, .lane, .outputs li, .relation .party, .company { padding: var(--pad-sm); }
.card, .proof-card, .tile { display: flex; flex-direction: column; gap: 8px; }
a.card, a.proof-card { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
a.card:hover, a.proof-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.card .more::after, a.proof-card .more::after { transition: transform .2s var(--ease); }
a.card:hover .more::after, a.proof-card:hover .more::after { transform: translateX(4px); }
.card h3, .flip-face h3, .case h3 { margin: 0 0 4px; }
.card p { margin: 0; }
.card .problem { margin: 0 0 6px; }
.card ul { margin: 10px 0 6px; padding-left: 1.1em; font-size: .96rem; }
.card li { padding: 2px 0; }
.card ul.cols { columns: 2; column-gap: 22px; }
.card ul.cols li { break-inside: avoid; }
.card .more { padding-top: 12px; }

/* Icon box */
.icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); margin-bottom: 12px; }
.icon svg { width: 22px; height: 22px; }

/* Figures */
.stat strong { display: block; font-size: clamp(2.6rem, 5.5vw, 3.8rem); line-height: 1; color: var(--ink); font-weight: 700; letter-spacing: -0.03em; }
.flip-big, .case .highlight b, .proof-card b, .glance .big { font-size: 2rem; font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.flip-big { margin: 12px 0 4px; }
.flip-statement { font-size: clamp(1.25rem, 2.1vw, 1.5rem); line-height: 1.35; color: var(--ink); font-weight: 600; margin: 4px 0 12px; }
.pull { font-size: clamp(1.45rem, 3vw, 2.2rem); line-height: 1.3; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; margin: 0 0 20px; }
.pull::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--accent-bright); margin-bottom: 14px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: var(--pill);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.arrow::after { content: " →"; display: inline-block; transition: transform .15s; }
a:hover .arrow::after, a.arrow:hover::after { transform: translateX(3px); }
/* text link with arrow */
.more { display: inline-flex; align-items: center; margin-top: auto; padding-top: 8px; font-weight: 650; font-size: .98rem; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }
/* toggle pill: flip "More", "Read the whole …" */
.flip-btn, .more-text summary, .case summary {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; cursor: pointer; list-style: none;
  padding: 7px 16px 7px 7px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: inherit; font-size: .88rem; font-weight: 650; transition: border-color .15s, background .15s;
}
.flip-btn:hover, .more-text summary:hover, .case summary:hover { border-color: var(--accent); }
.more-text summary::-webkit-details-marker, .case summary::-webkit-details-marker { display: none; }
.flip-btn span, .more-text summary::before, .case summary::before {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent); font-weight: 700; line-height: 1;
}
.more-text summary::before, .case summary::before { content: "+"; }
.more-text[open] summary::before, .case details[open] summary::before { content: "–"; }
.more-text[open] summary { margin-bottom: 14px; }
.more-text .when-open, .more-text[open] .when-closed { display: none; }
.more-text[open] .when-open { display: inline; }

/* Pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips a, .hub > li, .merge .chip, .lane li {
  border-radius: var(--pill); font-size: .88rem; font-weight: 600; line-height: 1.3;
}
.chips a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 6 Components ---------- */
/* Hero */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-bright) 20%, transparent), transparent); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 22%, #000 62%); mask-image: linear-gradient(to bottom, transparent 22%, #000 62%);
}
.hero h1 { max-width: 18ch; }
.hero-grid, .page-hero.with-visual .container { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero.with-visual figure, .hero-grid figure { width: 100%; max-width: 560px; justify-self: center; }
@media (max-width: 860px) {
  .hero-grid, .page-hero.with-visual .container { grid-template-columns: 1fr; }
  .page-hero.with-visual figure, .hero-grid figure { max-width: 420px; }
}

/* Flip cards (turn on the "More" button only) */
.flip { position: relative; perspective: 1600px; height: 100%; }
.flip-inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease-flip); will-change: transform; }
.flip-face {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: visibility 0s .35s, box-shadow .4s;
}
.flip-front { transform: rotateY(0deg); }
.flip-front .flip-btn { margin-top: auto; }
.flip-front .q { margin-bottom: 16px; }
.flip-back { transform: rotateY(180deg); visibility: hidden; background: var(--band-bg); border-color: var(--band-line); color: var(--band-text); font-size: .96rem; line-height: 1.55; }
.flip-back h3, .flip-back strong, .flip-back .year { color: var(--band-fg); }
.flip-back h3 { font-size: 1.15rem; }
.flip-back p { margin: 0 0 .8em; }
.flip-back ul { margin: 0 0 14px; padding-left: 1.1em; }
.flip-back li { padding: 2px 0; }
.flip-back ul.cols { columns: 2; column-gap: 22px; }
.flip-back ul.cols li { break-inside: avoid; }
.flip-back .more { color: var(--band-fg); padding-top: 0; margin: 0 0 14px; }
.flip-back .flip-btn { margin-top: auto; border-color: color-mix(in srgb, var(--band-fg) 30%, transparent); background: transparent; color: var(--band-fg); }
.flip-back .flip-btn span { background: color-mix(in srgb, var(--band-fg) 18%, transparent); color: var(--band-fg); }
.flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip.is-flipped .flip-front { visibility: hidden; }
.flip.is-flipped .flip-back { visibility: visible; box-shadow: var(--shadow-lift); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat > span { display: block; margin-top: 10px; }
.stat p { margin: 10px 0 0; }

/* Rail: timeline & process */
.rail { list-style: none; padding: 0; margin: 0; display: grid; gap: 40px var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rail > li { position: relative; padding-top: 34px; }
.rail > li::before { content: ""; position: absolute; top: 9px; left: 0; right: calc(-1 * var(--gap)); height: 2px; background: var(--line); }
.rail > li:nth-child(4n)::before, .rail > li:last-child::before { right: 0; }
.rail > li::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.rail .flip-face, .rail .card { padding: var(--pad-sm); }
.rail .card { height: 100%; }
.rail .card .q { margin: 0; }
.card .out { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.card .out small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.card .out strong { color: var(--ink); line-height: 1.3; }
.card .out span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.rail .year { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.rail .flip-front p { margin: 0 0 16px; color: var(--text); }
.process { counter-reset: step; }
.process > li { counter-increment: step; }
.process > li::after { content: counter(step); top: -5px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent); border: 0; color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.step-tag { margin: 0 0 6px; }
@media (max-width: 900px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rail > li::before { right: 0; } }
@media (max-width: 520px) { .rail { grid-template-columns: 1fr; } }

/* Timeline: one line with milestones (About us) */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { position: relative; }
.timeline > li::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-sizing: border-box; }
.timeline > li.now::after { background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-bright) 25%, transparent); }
.timeline .year { display: block; font-size: 1.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.timeline .now .year { color: var(--accent); }
.timeline strong { display: block; color: var(--ink); margin: 6px 0 6px; line-height: 1.3; }
.timeline ul { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (min-width: 900px) {
  /* two rows of four, read left to right: 2017–2021, then 2022–Today */
  .timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 52px; }
  .timeline > li { padding: 38px 28px 0 0; }
  .timeline > li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: color-mix(in srgb, var(--accent-bright) 45%, var(--line)); }
  .timeline > li:last-child::before { background: linear-gradient(90deg, var(--accent), transparent); }
  .timeline > li::after { left: 0; top: 0; }
}
@media (max-width: 899px) {
  .timeline { border-left: 2px solid var(--line); margin-left: 7px; }
  .timeline > li { padding: 0 0 28px 26px; }
  .timeline > li:last-child { padding-bottom: 0; }
  .timeline > li::after { left: -9px; top: 6px; }
}

/* Quote */
.quote blockquote { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--text); }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote figcaption { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.quote figcaption strong { display: block; color: var(--ink); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.tile strong, .tiles .flip-front strong { color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.tile p { margin: 0; color: var(--muted); font-size: .95rem; }
.tiles .flip-face { padding: var(--pad-sm); min-height: 170px; }
.tiles .flip-front strong { margin-bottom: 16px; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }

/* Use cases */
.case-section { scroll-margin-top: 96px; }
.case-section + .case-section { margin-top: clamp(56px, 8vw, 96px); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--gap); }
/* One case card everywhere: area + duration / title / result / industry · size / action.
   Cards in a row share row tracks (subgrid), so every slot lines up whatever the text length. */
.cases .case { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 16px; scroll-margin-top: 100px; color: inherit; text-decoration: none; }
@supports not (grid-template-rows: subgrid) {
  .cases .case { display: flex; flex-direction: column; gap: 16px; }
  .case-meta, .case-more, .case details { margin-top: auto; }
}
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-area { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; color: var(--accent); background: var(--surface-2); padding: 6px 11px; border-radius: var(--pill); }
.case-dur { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.case-dur svg { width: 15px; height: 15px; color: var(--accent); }
.case-title { font-size: 1.2rem; line-height: 1.3; margin: 0; align-self: start; }
.case-kpi { margin: 0; align-self: start; }
.case-kpi b { display: block; font-size: clamp(1.75rem, 2.6vw, 2.15rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--accent); }
.case-kpi span { display: block; margin-top: 8px; color: var(--ink); font-weight: 550; font-size: .95rem; line-height: 1.4; }
.case-meta { margin: 0; align-self: end; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.45; }
.case-more { align-self: end; padding-top: 0; }
.case details { align-self: end; }
a.case { transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
a.case:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.case .more::after { transition: transform .2s var(--ease); }
a.case:hover .more::after { transform: translateX(4px); }
/* an opened case takes the full row and reads as a document */
.cases .case:has(details[open]) { grid-column: 1 / -1; grid-row: auto; display: flex; flex-direction: column; gap: 16px; }
.cases .case:has(details[open]) > * { align-self: stretch; }
.cases .case:has(details[open]) .case-meta { max-width: 480px; }
.case details[open] summary { margin-bottom: 8px; }
.problem { color: var(--accent); font-weight: 600; margin-bottom: 4px; }
/* Use cases page: one case per row; the whole row is the toggle */
.cases-list { display: grid; gap: 14px; }
.case-row { padding: 0; scroll-margin-top: 12px; transition: border-color .2s, box-shadow .2s; }
.case-row:hover, .case-row:has(details[open]) { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.case-row:has(details[open]) { box-shadow: var(--shadow-lift); }
.case .case-sum { display: grid; grid-template-columns: minmax(170px, 3fr) minmax(0, 7fr) auto; gap: clamp(18px, 3vw, 44px); align-items: center;
  margin: 0; padding: var(--pad); border: 0; border-radius: var(--radius); background: none; color: inherit; font-size: 1rem; font-weight: inherit; cursor: pointer; list-style: none; }
.case .case-sum::before { display: none; }
.case-sum::-webkit-details-marker { display: none; }
.case-sum:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: -3px; }
.case-sum .case-kpi, .case-info, .case-info > .case-meta { display: block; }
.case-info > .case-top { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px 16px; }
.case-sum .case-title { margin: 12px 0 6px; font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
.case-sum .case-meta { padding-top: 0; border-top: 0; }
.case-toggle, .case-close { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--pill); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 650; white-space: nowrap; cursor: pointer; transition: border-color .15s; }
.case-toggle::before, .case-close::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 700; line-height: 1; }
.case-close::before { content: "–"; }
.case-sum:hover .case-toggle, .case-close:hover { border-color: var(--accent); }
.case-row .when-open, .case-row details[open] .when-closed { display: none; }
.case-row details[open] .when-open { display: inline; }
.case-row details[open] .case-toggle::before { content: "–"; background: var(--accent); color: var(--accent-ink); }
.case-row details[open] .case-sum { margin-bottom: 0; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.case-row .case-body { padding: 28px var(--pad) var(--pad); grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 64px); }
@media (max-width: 760px) { .case-row .case-body { grid-template-columns: 1fr; } }
.case-close-wrap { margin: 12px 0 0; }
html:not(.js) .case-close-wrap { display: none; }
@media (max-width: 760px) {
  .case .case-sum { grid-template-columns: 1fr; gap: 14px; }
  .case-toggle { justify-self: start; }
}
.case-question { color: var(--accent); font-weight: 600; font-size: 1.08rem; margin: 4px 0 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px 20px; margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 10px; }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 550; }
.facts .wide { grid-column: 1 / -1; }
.case-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 8px 40px; padding-top: 12px; }
.case-body h4 { margin: 14px 0 8px; }
.case-body .full { grid-column: 1 / -1; }
.case-body ul { padding-left: 1.1em; }
.case-body li { padding: 2px 0; }
.case-summary-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; max-width: 520px; }
.case-summary-strip .stat strong { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 280px)); gap: var(--gap); }
.person { display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); background: var(--surface); }
.person h3, .person .h3 { margin: 18px 0 2px; }
.person .role { color: var(--muted); margin: 0 0 10px; }
.person .contact-lines { margin: 0; }
.person .contact-lines a { display: block; padding: 4px 0; overflow-wrap: anywhere; }

/* Founders photo, contacts and bios */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: calc(var(--radius) + 6px); background: var(--surface); }
.photo figcaption { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.founder-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.founder-contacts strong { display: block; color: var(--ink); }
.founder-contacts .role { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.founder-contacts a { display: block; padding: 3px 0; overflow-wrap: anywhere; }
.bios { display: grid; gap: clamp(48px, 7vw, 96px); }
.bio { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.bio-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--radius) + 6px); background: var(--surface); position: sticky; top: 132px; }
.bio h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 2px; }
.bio .role { color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.bio p:not(.role):not(.bio-meta) { margin: 0 0 20px; max-width: 62ch; }
.bio .ticks { margin-bottom: 18px; }
.bio-meta { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; line-height: 1.55; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } .bio-photo { position: static; max-width: 360px; } }
@media (max-width: 420px) { .founder-contacts { grid-template-columns: 1fr; } }

/* Plain figure on proof cards (instead of the old month rings) */
.proof-card .proof-figure { margin: 0; font-size: clamp(3.4rem, 6vw, 4.6rem); font-weight: 700; line-height: .9; letter-spacing: -0.05em; color: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.proof-card .proof-figure small { display: block; margin-top: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--band-bg); color: var(--band-text); padding: var(--section) 0; border-top: 1px solid var(--band-line); }
.cta-band h2 { color: var(--band-fg); max-width: 22ch; }
.cta-band .grid { margin-top: clamp(28px, 4vw, 44px); }
.cta-link { display: flex; flex-direction: column; gap: 6px; padding: 24px 0 0; border-top: 1px solid color-mix(in srgb, var(--band-fg) 25%, transparent); color: var(--band-fg); text-decoration: none; }
.cta-link small { opacity: .75; }
.cta-link span { font-size: 1.4rem; font-weight: 600; }
.cta-link:hover span { text-decoration: underline; text-underline-offset: 5px; }

/* Landing: promise line, hero stats, FAQ */
.promise { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink); font-weight: 600; font-size: .98rem; }
.promise li::before { content: "✓"; color: var(--accent); margin-right: 8px; font-weight: 700; }
.promise.stacked { flex-direction: column; margin: 24px 0; }
.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; }
.hero-stats .stat > span { font-size: .9rem; }
@media (max-width: 420px) { .hero-stats { gap: 14px; } .hero-stats .stat strong { font-size: 1.55rem; } .hero-stats .stat > span { font-size: .72rem; letter-spacing: .04em; hyphens: auto; } }
.faq { display: grid; gap: 0; max-width: 880px; border-top: 1px solid var(--line); }
.faq details { padding: 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 24px 48px 24px 0; font-weight: 600; font-size: 1.1rem; color: var(--ink); transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; transition: background .2s, color .2s; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; background: var(--accent); color: var(--accent-ink); }
.faq details p { margin: 0 0 26px; max-width: 64ch; }
.two-col .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-col .quote { margin: 28px 0 0; }
.two-col .quote .pull { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* Contact & form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .team { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.contact-grid .person img { max-width: 240px; }
.company { margin-top: 32px; background: var(--surface); border-color: transparent; font-style: normal; }
.company strong { color: var(--ink); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { min-height: 160px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 20px center, right 14px center; background-size: 6px 6px; background-repeat: no-repeat; }
.form-note { margin: 0; font-size: .92rem; color: var(--muted); }
.field .hint { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.f-project { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.f-project[hidden] { display: none; }
.phone-group { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.phone-group select { width: auto; min-width: 104px; }
.pills { border: 0; padding: 0; margin: 0; min-width: 0; }
.pills legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .95rem; padding: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg);
  color: var(--ink); font-weight: 600; font-size: .95rem; transition: border-color .2s, background .2s, color .2s; }
.pill:hover span { border-color: var(--accent); }
.pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pill input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.field input[type="date"] { min-height: 50px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-bright) 25%, transparent); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.notice { display: none; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 550; color: var(--ink); }
.notice.ok { background: color-mix(in srgb, #23a455 14%, var(--bg)); border: 1px solid color-mix(in srgb, #23a455 45%, transparent); }
.notice.err { background: color-mix(in srgb, #e71919 10%, var(--bg)); border: 1px solid color-mix(in srgb, #e71919 40%, transparent); }
.notice:target, .notice.show { display: block; }

/* Layer check: anti-bot puzzle opened by "Send message" */
.layer-check { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(18px, 3vw, 28px); }
.layer-check[hidden] { display: none; }
.lc-title { margin: 0 0 6px; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.lc-title:focus { outline: none; }
.lc-hint { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.lc-body { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: clamp(18px, 3vw, 32px); align-items: center; }
@media (max-width: 560px) { .lc-body { grid-template-columns: 1fr; justify-items: center; } .lc-side { width: 100%; } }
.lc-figure { width: 100%; max-width: 240px; height: auto; display: block; border-radius: 50%; transition: box-shadow .2s; }
.lc-figure.is-over { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bright) 35%, transparent); }
.lc-ring circle { fill: transparent; stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 7; transition: fill .45s var(--ease), stroke .3s; }
.lc-ring text { opacity: 0; transition: opacity .35s; }
.lc-figure text { font-size: 24px; }
.lc-ring[data-k="project"] text { font-size: 28px; }
.lc-ring[data-k="market"] text { font-size: 21px; }
.lc-ring.is-next circle { stroke: var(--accent); stroke-width: 3; }
.lc-ring.is-hint text { opacity: .35; }
.lc-ring.is-placed circle { stroke: transparent; stroke-dasharray: none; }
.lc-ring.is-placed text { opacity: 1; }
.lc-ring[data-k="market"].is-placed circle { fill: color-mix(in srgb, var(--accent-bright) 8%, var(--bg)); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 7; }
.lc-ring[data-k="market"].is-placed text { fill: var(--muted); }
.lc-ring[data-k="company"].is-placed circle { fill: var(--surface-2); }
.lc-ring[data-k="people"].is-placed circle { fill: color-mix(in srgb, var(--accent-bright) 16%, var(--surface-2)); }
.lc-ring[data-k="processes"].is-placed circle { fill: color-mix(in srgb, var(--accent-bright) 30%, var(--surface-2)); }
.lc-ring[data-k="project"].is-placed circle { fill: var(--ink); }
.lc-ring[data-k="project"] text { fill: var(--bg); }
.lc-ring[data-k="project"].is-hint text { fill: var(--ink); }
.lc-count { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); min-height: 1.2em; }
.lc-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.lc-tile { font: inherit; font-weight: 650; font-size: .98rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 11px 18px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: border-color .2s, background .2s, opacity .3s, transform .2s; position: relative; }
.lc-tile:hover { border-color: var(--accent); }
.lc-tile.is-dragging { cursor: grabbing; transition: none; z-index: 5; box-shadow: var(--shadow-lift); border-color: var(--accent); }
.lc-tile.is-used { opacity: .35; cursor: default; text-decoration: line-through; border-style: dashed; }
.lc-tile.is-wrong { border-color: #e71919; }
.lc-status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; color: var(--ink); }
.layer-check.is-solved .lc-figure { box-shadow: 0 0 0 4px color-mix(in srgb, #23a455 40%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .layer-check:not([hidden]) { animation: lc-in .45s var(--ease); }
  .lc-ring.is-next circle { animation: lc-pulse 1.6s ease-in-out infinite; }
  .lc-ring.is-placed { animation: lc-pop .45s var(--ease); transform-box: fill-box; transform-origin: center; }
  .lc-tile.is-wrong { animation: lc-shake .4s; }
}
@media (prefers-reduced-motion: reduce) { .lc-ring circle, .lc-ring text, .lc-tile { transition: none; } }
@keyframes lc-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes lc-pulse { 50% { stroke-opacity: .35; } }
@keyframes lc-pop { from { transform: scale(.92); } }
@keyframes lc-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* Legal */
.legal h2 { font-size: 1.25rem; margin-top: 2em; }
.legal h2:first-of-type { margin-top: 0; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { padding: 2px 0; }
.legal .lang-block + .lang-block { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 1em; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo-mark { height: 36px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 32ch; }
.site-footer h2 { margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 2px 0; }
.site-footer a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-bottom a { padding: 0; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .875rem; }
.footer-bottom address { font-style: normal; }

/* 404 */
.notfound { min-height: 50vh; display: grid; align-content: center; }
.notfound .diagram { max-width: 320px; margin: 0 0 28px; }

/* Story: sticky process with the current step highlighted (Cooperation) */
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.story-aside { position: sticky; top: 132px; }
.story-aside h2 { max-width: 14ch; }
.story-aside > p.muted { max-width: 36ch; }
.story-nav { list-style: none; margin: 40px 0 0; padding: 0; position: relative; display: grid; gap: 6px; --progress: 0; }
.story-nav::before, .story-nav::after { content: ""; position: absolute; left: 15px; top: 20px; width: 2px; border-radius: 2px; }
.story-nav::before { bottom: 20px; background: var(--line); }
.story-nav::after { height: calc((100% - 40px) * var(--progress)); background: var(--accent); transition: height .6s var(--ease); }
.story-nav a { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 4px 0; color: var(--muted); text-decoration: none; font-weight: 600; transition: color .3s; }
.story-nav a:hover { color: var(--ink); }
.story-nav a span { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); font-size: .8rem; font-weight: 700; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.story-nav a.done span { border-color: var(--accent); color: var(--accent); }
.story-nav a[aria-current] { color: var(--ink); }
.story-nav a[aria-current] span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.1); }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; transition: opacity .5s ease; }
.story-step:first-child { padding-top: 0; border-top: 0; }
.story-step:last-child { padding-bottom: 0; }
.story-num { display: block; margin-bottom: 22px; font-size: clamp(3.4rem, 7vw, 5.5rem); font-weight: 700; line-height: .9; letter-spacing: -0.05em;
  color: color-mix(in srgb, var(--accent) 20%, var(--bg)); transition: color .5s ease; }
.story-step.is-current .story-num { color: var(--accent); }
.story-step h3 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); letter-spacing: -0.02em; margin: 4px 0 10px; }
.story-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.5; margin: 0 0 26px; max-width: 40ch; }
.ticks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.ticks li { position: relative; padding-left: 30px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 8px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.story-out { margin: 0; display: grid; gap: 2px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border-left: 3px solid var(--accent); }
.story-out small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.story-out strong { color: var(--ink); font-size: 1.08rem; }
.story-out span { color: var(--muted); }
@media (min-width: 901px) {
  /* only the step in view is fully lit; JS adds .is-current */
  .js .story-step:not(.is-current) { opacity: .38; }
}
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 8px; }
  .story-aside { position: static; }
  .story-nav { display: none; }
  .story-step:first-child { padding-top: 40px; }
}
@media (max-width: 560px) { .ticks { grid-template-columns: 1fr; } }

/* Callout: "you leave with" style box */
.callout { margin: 0; display: grid; gap: 2px; padding: 20px 24px; border-radius: var(--radius); background: var(--surface); border-left: 3px solid var(--accent); }
.section.alt .callout { background: var(--bg); }
.callout small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.callout strong { color: var(--ink); font-size: 1.08rem; }
.callout span, .callout p { color: var(--muted); margin: 0; }

/* Features: wide service rows instead of narrow card grids */
.features { display: grid; }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 5vw, 80px); padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.feature:last-child { padding-bottom: 0; }
.features > .feature:first-child { border-top: 0; padding-top: 0; }
.feature-head .icon { margin-bottom: 18px; }
.feature-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.02em; margin: 2px 0 10px; }
.feature-lead { font-size: 1.1rem; line-height: 1.5; margin: 0; max-width: 34ch; }
.feature-body { align-self: center; }
.feature-body > p { margin: 0 0 20px; }
.feature-body .ticks { margin-bottom: 24px; }
.feature-body .ticks:last-child, .feature-body .callout:last-child { margin-bottom: 0; }
.feature-body .more { padding-top: 0; }
.feature-big { display: block; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 700; line-height: .9; letter-spacing: -0.05em; color: var(--accent); margin: 6px 0 12px; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } }

/* Q&A statements (replace the old flip cards) */
.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 96px); }
.qa-item { position: relative; padding-top: 28px; }
.qa-item::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 3px; border-radius: 3px; background: var(--accent); }
.qa-item .tag { margin-bottom: 14px; }
.qa-statement { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 650; color: var(--ink); margin: 0 0 18px; max-width: 22ch; }
.qa-item > p:not(.tag):not(.qa-statement) { color: var(--muted); max-width: 52ch; }
.qa-item .ticks { margin-top: 6px; }

/* Mini steps: 01–04 on one line (home "How it works" etc.) */
.steps-mini { list-style: none; margin: 0; padding: 34px 0 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps-mini::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 15%, var(--line))); transform-origin: 0 50%; transition: transform 1.4s var(--ease); }
.steps-mini li { position: relative; }
.steps-mini li::before { content: ""; position: absolute; top: -41px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.steps-mini li:first-child::before { background: var(--accent); }
.steps-mini .num { display: block; font-size: clamp(2.6rem, 4.5vw, 3.4rem); font-weight: 700; line-height: .9; letter-spacing: -0.05em; color: color-mix(in srgb, var(--accent) 20%, var(--bg)); margin-bottom: 18px; }
.steps-mini li:first-child .num { color: var(--accent); }
.steps-mini strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 6px; }
.steps-mini small { display: block; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.steps-mini.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .steps-mini, .steps-mini.three { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
.ticks.one { grid-template-columns: 1fr; }
.ticks strong { display: block; color: var(--ink); line-height: 1.35; }
.ticks li > span { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }
.ticks.spaced { gap: 22px 40px; }
@media (max-width: 480px) { .steps-mini, .steps-mini.three { grid-template-columns: 1fr; padding: 0 0 0 30px; } .steps-mini::before { top: 0; bottom: 0; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 15%, var(--line))); transform-origin: 50% 0; } .js .reveal:not(.in) .steps-mini::before, .js .steps-mini.reveal:not(.in)::before { transform: scaleY(0); } .steps-mini li::before { top: 4px; left: -36px; } }

/* Back to top: fixed bottom right, appears after scrolling down */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 45;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); text-decoration: none;
  box-shadow: 0 12px 28px -12px rgb(15 23 42 / .55); transition: opacity .25s, transform .25s var(--ease), visibility .25s, background .15s; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--accent); color: var(--accent-ink); }
.to-top:focus-visible { outline-offset: 4px; }
.js .to-top:not(.show) { opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; }
@media (min-width: 1400px) { .to-top { right: 32px; bottom: 32px; } }
@media print { .to-top { display: none; } }

/* Industries strip (home): a slow, endless line of client industries */
.strip { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.strip-inner { display: flex; align-items: center; gap: 28px; }
.strip-label { flex: none; margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 16ch; line-height: 1.35; }
.strip-track { flex: 1; min-width: 0; display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.strip-list { flex: none; display: flex; align-items: center; list-style: none; margin: 0; padding: 0; animation: strip 48s linear infinite; }
.strip-list li { white-space: nowrap; font-size: 1.05rem; font-weight: 600; color: var(--ink); padding: 0 22px; }
.strip-list li::after { content: "·"; margin-left: 44px; color: var(--accent); font-weight: 700; }
.strip-track:hover .strip-list { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-100%); } }
@media (max-width: 640px) { .strip-inner { flex-direction: column; align-items: stretch; gap: 12px; } .strip-label { max-width: none; } }

/* Use cases header: four area tiles */
.area-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.area-tile { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: inherit; text-decoration: none;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.area-tile .icon { margin-bottom: 8px; }
.area-name { font-weight: 650; color: var(--ink); font-size: 1.1rem; line-height: 1.25; }
.area-desc { color: var(--muted); font-size: .92rem; line-height: 1.4; }
.area-count { margin-top: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.area-count::after { content: " →"; display: inline-block; transition: transform .2s var(--ease); }
.area-tile:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.area-tile:hover .area-count::after { transform: translateX(4px); }
@media (max-width: 420px) { .area-tiles { grid-template-columns: 1fr; } }

/* Scroll-driven sequences (JS sets --p and .on): numbered steps fill as you scroll, the timeline lights up year by year */
.js .steps-mini.is-live::before { transform: scaleX(var(--p, 0)); transition: transform .35s linear; }
.js .steps-mini.is-live li .num, .js .steps-mini.is-live li:first-child .num { color: color-mix(in srgb, var(--accent) 20%, var(--bg)); transition: color .5s ease; }
.js .steps-mini.is-live li.on .num { color: var(--accent); }
.js .steps-mini.is-live li::before, .js .steps-mini.is-live li:first-child::before { background: var(--bg); transition: background .4s ease; }
.js .steps-mini.is-live li.on::before { background: var(--accent); }
@media (max-width: 480px) { .js .steps-mini.is-live::before { transform: scaleY(var(--p, 0)); } }
.js .timeline.is-live > li { transition: opacity .5s ease; }
.js .timeline.is-live > li:not(.on) { opacity: .4; }
.js .timeline.is-live > li.on::after { background: var(--accent); transition: background .4s ease; }

/* Page transitions between pages (supporting browsers; others just load the page) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
  .site-header { view-transition-name: site-header; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Hero diagrams: the dashed ring turns slowly */
@media (prefers-reduced-motion: no-preference) {
  .page-hero .diagram .ring-dash { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
}

/* ---------- 7 Diagrams & charts ---------- */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram text { font-family: var(--font); fill: var(--ink); font-weight: 650; }
.diagram .t-muted { fill: var(--muted); font-weight: 550; }
.diagram .t-light { fill: var(--accent-ink); }
.diagram .t-inv { fill: var(--bg); }
.diagram .t-logo { font-weight: 300; }
.diagram .t-small { font-weight: 550; }
.diagram .ring-dash { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 7; }
.diagram .fill-soft { fill: var(--surface-2); }
.diagram .fill-mid { fill: color-mix(in srgb, var(--accent-bright) 28%, var(--surface-2)); }
.diagram .fill-surface { fill: var(--surface); }
.diagram .fill-bg { fill: var(--bg); }
.diagram .fill-accent { fill: var(--accent); }
.diagram .fill-bright, .diagram .fill-green { fill: var(--accent-bright); }
.diagram .fill-ink { fill: var(--ink); }
.diagram .stroke-accent { stroke: var(--accent); fill: none; stroke-width: 2; }
.diagram .stroke-line { stroke: var(--line); fill: none; stroke-width: 2; }
.diagram .stroke-thick { stroke-width: 6; stroke-linecap: round; }
.diagram .dash { stroke-dasharray: 7 8; }
.diagram .spin { transform-origin: 240px 240px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.diagram .grow rect { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1s var(--ease); }
.diagram .grow rect:nth-child(2) { transition-delay: .12s; }
.diagram .grow rect:nth-child(3) { transition-delay: .24s; }
.diagram .grow rect:nth-child(4) { transition-delay: .36s; }
.diagram .grow-x rect { transform-box: fill-box; transform-origin: 0 50%; transition: transform 1.1s var(--ease); }
.diagram .rock { transform-box: view-box; transform-origin: 240px 230px; transition: transform 1.8s cubic-bezier(.3, 1.5, .5, 1) .2s; }
.diagram .draw { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.diagram .fade { transition: opacity .8s ease; }
.diagram .d2 { transition-delay: .35s; } .diagram .d3 { transition-delay: .7s; } .diagram .d4 { transition-delay: 1.05s; }
.diagram-caption { text-align: center; color: var(--muted); font-size: .95rem; margin: 12px auto 0; max-width: 62ch; }

/* Hub (orbit of pills) */
.hub-wrap { container-type: inline-size; width: 100%; max-width: 620px; margin: 0 auto; }
.hub { position: relative; aspect-ratio: 1; list-style: none; margin: 0; padding: 0; --r: 39cqi; }
.hub::before { content: ""; position: absolute; inset: 11cqi; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); }
.hub > li {
  position: absolute; left: 50%; top: 50%; padding: 8px 14px; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: clamp(.76rem, 2.4cqi, .9rem);
}
.hub > li.hl { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hub > li.hub-center {
  transform: translate(-50%, -50%); width: 34cqi; aspect-ratio: 1; border-radius: 50%; border: 0; padding: 3cqi;
  background: var(--ink); color: var(--bg); display: grid; place-content: center; text-align: center; white-space: normal; line-height: 1.25;
}
.hub-center strong { display: block; font-size: clamp(1rem, 4.2cqi, 1.45rem); color: var(--bg); }
.hub-center span { font-size: clamp(.75rem, 2.5cqi, .92rem); opacity: .8; font-weight: 400; }
.hub-6 > li:nth-child(2) { --a: 0deg; }   .hub-6 > li:nth-child(3) { --a: 60deg; }  .hub-6 > li:nth-child(4) { --a: 120deg; }
.hub-6 > li:nth-child(5) { --a: 180deg; } .hub-6 > li:nth-child(6) { --a: 240deg; } .hub-6 > li:nth-child(7) { --a: 300deg; }
.hub-11 { --r: 40cqi; }
.hub-11 > li { padding: 6px 11px; font-size: clamp(.72rem, 2.2cqi, .86rem); }
.hub-11 > li:nth-child(2)  { --a: 0deg; }      .hub-11 > li:nth-child(3)  { --a: 32.73deg; }  .hub-11 > li:nth-child(4)  { --a: 65.45deg; }
.hub-11 > li:nth-child(5)  { --a: 98.18deg; }  .hub-11 > li:nth-child(6)  { --a: 130.91deg; } .hub-11 > li:nth-child(7)  { --a: 163.64deg; }
.hub-11 > li:nth-child(8)  { --a: 196.36deg; } .hub-11 > li:nth-child(9)  { --a: 229.09deg; } .hub-11 > li:nth-child(10) { --a: 261.82deg; }
.hub-11 > li:nth-child(11) { --a: 294.55deg; } .hub-11 > li:nth-child(12) { --a: 327.27deg; }
@container (max-width: 420px) {
  .hub { aspect-ratio: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hub::before { display: none; }
  .hub > li, .hub > li.hub-center { position: static; transform: none; white-space: normal; }
  .hub > li.hub-center { width: 100%; aspect-ratio: auto; border-radius: var(--radius); padding: 18px; margin-bottom: 6px; }
}

/* Chain (flow of steps) */
.chain { list-style: none; padding: 0; margin: 0; display: flex; align-items: stretch; }
.chain > li { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 0 10px; }
.chain > li > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chain > li:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 2px;
  background: linear-gradient(90deg, var(--accent) 60%, transparent 0) 0 0 / 10px 2px repeat-x;
}
.chain .node { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; position: relative; z-index: 1; }
.chain .node svg { width: 28px; height: 28px; }
.chain > li.hl .node { background: var(--accent); color: var(--accent-ink); }
.chain strong { color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.chain small { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.chain.steps-up > li:nth-child(1) .node { transform: scale(.82); }
.chain.steps-up > li:nth-child(2) .node { transform: scale(.91); }
.chain.steps-up > li:nth-child(4) .node { transform: scale(1.09); }
@media (max-width: 700px) {
  .chain { flex-direction: column; gap: 22px; }
  .chain > li { flex-direction: row; text-align: left; padding: 0; align-items: center; gap: 16px; }
  .chain > li > div { align-items: flex-start; }
  .chain > li:not(:last-child)::after { top: 64px; bottom: -22px; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent) 60%, transparent 0) 0 0 / 2px 10px repeat-y; }
  .chain.steps-up > li .node { transform: none; }
}
.span-bar { position: relative; max-width: 1000px; margin: 26px auto 0; padding: 14px 24px; border-radius: var(--pill); background: var(--ink); color: var(--bg); text-align: center; font-weight: 600; }
.span-bar::before, .span-bar::after { content: ""; position: absolute; top: -14px; width: 2px; height: 14px; background: var(--ink); }
.span-bar::before { left: 12%; }
.span-bar::after { right: 12%; }
@media (max-width: 700px) { .span-bar { border-radius: var(--radius); } .span-bar::before, .span-bar::after { display: none; } }

/* Relation (client — b well — project) */
.relation { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; align-items: center; gap: 10px; }
.relation .party { text-align: center; }
.relation .party .icon { margin: 0 auto 12px; }
.relation .party.hl { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.relation .party.hl strong { color: var(--bg); }
.relation .party.hl .icon { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }
.relation strong { display: block; color: var(--ink); font-size: 1.1rem; }
.relation small { display: block; margin-top: 4px; font-size: .92rem; }
.relation .link { color: var(--accent); font-size: 1.6rem; font-weight: 700; }
@media (max-width: 760px) { .relation { grid-template-columns: 1fr; } .relation .link { text-align: center; transform: rotate(90deg); } }

/* Spectrum */
.spectrum-ends { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.spectrum { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 44px; }
.spectrum::before { content: ""; position: absolute; top: 14px; left: 0; right: 0; height: 8px; border-radius: var(--pill); background: linear-gradient(90deg, var(--ink), var(--accent) 55%, color-mix(in srgb, var(--accent-bright) 45%, var(--surface))); }
.spectrum > div { position: relative; text-align: center; padding: 0 6px; }
.spectrum > div::before { content: ""; position: absolute; top: -40px; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--bg); border: 4px solid var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.spectrum strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 4px; }
.spectrum span { color: var(--muted); font-size: .95rem; }
@media (max-width: 620px) {
  .spectrum { grid-template-columns: 1fr; padding: 0 0 0 44px; gap: 24px; }
  .spectrum::before { top: 0; bottom: 0; left: 10px; right: auto; width: 8px; height: auto; background: linear-gradient(180deg, var(--ink), var(--accent) 55%, color-mix(in srgb, var(--accent-bright) 45%, var(--surface))); }
  .spectrum > div { text-align: left; padding: 0; }
  .spectrum > div::before { top: 2px; left: -46px; margin-left: 0; }
  .spectrum-ends { display: none; }
}

/* Venn */
.venn-wrap { container-type: inline-size; width: 100%; max-width: 720px; margin: 0 auto; }
.venn { position: relative; aspect-ratio: 16 / 10; }
.venn .circle { position: absolute; top: 0; width: 62.5%; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 6cqi; }
.venn .a { left: 0; background: color-mix(in srgb, var(--accent-bright) 14%, transparent); border: 2px solid color-mix(in srgb, var(--accent-bright) 50%, transparent); align-items: flex-start; }
.venn .b { right: 0; background: color-mix(in srgb, var(--ink) 7%, transparent); border: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); align-items: flex-end; text-align: right; }
.venn .circle > * { max-width: 24cqi; }
.venn .circle strong { font-size: clamp(.95rem, 3.6cqi, 1.4rem); color: var(--ink); line-height: 1.15; }
.venn .circle span { font-size: clamp(.75rem, 2.5cqi, 1rem); color: var(--text); line-height: 1.3; }
.venn .both { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 22cqi; text-align: center; font-size: clamp(.78rem, 2.6cqi, 1.05rem); font-weight: 700; color: var(--ink); line-height: 1.25; }
.venn .both em { display: block; font-style: normal; font-weight: 550; color: var(--muted); font-size: .85em; margin-top: 4px; }
/* small screens: two boxes with the overlap between them */
@container (max-width: 480px) {
  .venn { aspect-ratio: auto; display: flex; flex-direction: column; gap: 10px; }
  .venn .circle, .venn .both { position: static; transform: none; width: auto; aspect-ratio: auto; border-radius: var(--radius); padding: 16px 18px; text-align: left; align-items: flex-start; }
  .venn .circle > * { max-width: none; }
  .venn .circle strong { font-size: 1.1rem; }
  .venn .circle span { font-size: .95rem; }
  .venn .a { order: 1; } .venn .both { order: 2; } .venn .b { order: 3; }
  .venn .both { background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
  .venn .both em { color: var(--accent-ink); opacity: .85; }
}

/* Donuts */
.donut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--gap); }
.donut-stat { text-align: center; }
.donut-stat p { margin: 0; color: var(--text); font-size: .95rem; }
.donut-box { position: relative; width: min(150px, 60%); margin: 0 auto 14px; }
.donut { width: 100%; height: auto; display: block; transform: rotate(-90deg); }
.donut .track { fill: none; stroke: var(--line); stroke-width: 3.2; }
.donut .val { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
.donut .val.ink { stroke: var(--ink); }
.donut-box strong { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.proof-card .donut-box { width: 110px; margin: 0; }
.proof-card .donut-box strong { font-size: 1.1rem; }
.proof-card .donut-box strong small { font-size: .66rem; }

/* Bars */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 14px; align-items: center; }
.bar-row > span { font-size: .95rem; color: var(--text); }
.bar { height: 34px; border-radius: var(--radius-sm); background: var(--surface); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: var(--radius-sm); background: var(--accent); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: var(--accent-ink); font-style: normal; font-weight: 700; font-size: .9rem; white-space: nowrap; transition: width 1.4s var(--ease); }
.bar i.muted-bar { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); color: var(--ink); }
.bar i.w-17 { width: 17%; } .bar i.w-33 { width: 33%; } .bar i.w-50 { width: 50%; } .bar i.w-89 { width: 89%; } .bar i.w-100 { width: 100%; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr; gap: 6px; } }

/* Proof cards */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--gap); }
.proof-card { gap: 12px; }
.proof-card .visual { min-height: 120px; display: grid; align-content: center; margin-bottom: 4px; }
.proof-card strong { color: var(--ink); font-size: 1.1rem; }
.proof-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.proof-card .bars { gap: 10px; }
.proof-card .bar-row { grid-template-columns: 64px 1fr; gap: 10px; }
.proof-card .bar { height: 26px; }
.merge { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.merge .from { display: grid; gap: 6px; justify-items: start; }
.merge .chip { display: inline-block; max-width: 100%; white-space: normal; padding: 5px 12px; background: var(--surface); color: var(--muted); font-size: .8rem; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
@media (max-width: 380px) { .merge { gap: 8px; } .merge .chip { white-space: normal; } .merge .to { padding: 12px 8px; } }
.merge .to { padding: 14px 12px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .92rem; text-align: center; }
.merge .arrow-big { color: var(--accent); font-size: 1.5rem; font-weight: 700; }
.milestones { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 26px; }
.milestones::before { content: ""; position: absolute; top: 8px; left: 6px; right: 6px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--surface-2), var(--accent)); }
.milestones span { position: relative; font-size: .82rem; color: var(--ink); font-weight: 600; line-height: 1.3; padding-right: 6px; }
.milestones span::before { content: ""; position: absolute; top: -24px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.milestones span:last-child { text-align: right; padding-right: 0; }
.milestones span:last-child::before { left: auto; right: 0; background: var(--accent); }

/* Lanes */
.lanes { display: grid; gap: 16px; }
.lane { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: center; }
.lane > strong { color: var(--ink); font-size: 1.1rem; display: flex; align-items: center; gap: 14px; }
.lane > strong .icon { margin: 0; }
.lane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 34px; }
.lane li { position: relative; padding: 10px 16px; background: var(--surface); color: var(--ink); font-size: .95rem; }
.lane li.you { background: var(--surface-2); }
.lane li.we { background: var(--ink); color: var(--bg); }
.lane li.result { background: var(--accent); color: var(--accent-ink); }
.lane li + li::before { content: "→"; position: absolute; left: -25px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.lanes-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; font-size: .9rem; color: var(--muted); }
.lanes-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lanes-legend .you { background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.lanes-legend .we { background: var(--ink); }
.lanes-legend .result { background: var(--accent); }
@media (max-width: 720px) { .lane { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .lane ol { flex-direction: column; align-items: flex-start; gap: 26px; }
  .lane li + li::before { content: "↓"; left: 22px; top: -23px; transform: none; }
}

/* Outputs */
.outputs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; counter-reset: out; }
.outputs li { counter-increment: out; position: relative; padding-left: 66px; }
.outputs li::before { content: counter(out); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.outputs li:last-child::before { background: var(--ink); color: var(--bg); }
.outputs strong { display: block; color: var(--ink); line-height: 1.3; }
.outputs span { display: block; color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- 8 Motion & fallbacks ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js :is(.grid, .proof, .features, .tiles, .glance, .qa, .cases, .cases-list, .team, .stats, .steps-mini) > .reveal:nth-child(2) { transition-delay: .08s; }
  .js :is(.grid, .proof, .features, .tiles, .glance, .qa, .cases, .cases-list, .team, .stats, .steps-mini) > .reveal:nth-child(3) { transition-delay: .16s; }
  .js :is(.grid, .proof, .features, .tiles, .glance, .qa, .cases, .cases-list, .team, .stats, .steps-mini) > .reveal:nth-child(4) { transition-delay: .24s; }
  .js :is(.grid, .proof, .features, .tiles, .glance, .qa, .cases, .cases-list, .team, .stats, .steps-mini) > .reveal:nth-child(n+5) { transition-delay: .3s; }
  .js .reveal:not(.in) .steps-mini::before, .js .steps-mini.reveal:not(.in)::before { transform: scaleX(0); }
  .js .reveal:not(.in) .diagram .grow rect { transform: scaleY(0); }
  .js .reveal:not(.in) .diagram .grow-x rect { transform: scaleX(0); }
  .js .reveal:not(.in) .diagram .rock { transform: rotate(-7deg); }
  .js .reveal:not(.in) .donut .val { stroke-dashoffset: 100; }
  .js .reveal:not(.in) .bar i { width: 0; }
  .js .reveal:not(.in) .diagram .draw { stroke-dashoffset: 1; }
  .js .reveal:not(.in) .diagram .fade { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diagram .spin { animation: none; }
  .diagram .grow rect, .diagram .grow-x rect, .diagram .rock, .bar i, .donut .val, .diagram .draw, .diagram .fade { transition: none; }
  .story-step, .story-num, .story-nav::after, .story-nav a span, .steps-mini::before { transition: none; }
  .strip-list { animation: none; }
  .strip-track { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .strip-list[aria-hidden] { display: none; }
  .strip-list { flex: 1 1 100%; flex-wrap: wrap; row-gap: 8px; }
  .strip-list li { padding: 0 14px 0 0; }
  .strip-list li::after { margin-left: 14px; }
  .flip-inner { transition: none; transform: none !important; will-change: auto; }
  .flip-back { transform: none; opacity: 0; }
  .flip-face { transition: opacity .25s ease; }
  .flip.is-flipped .flip-back { opacity: 1; }
  .flip.is-flipped .flip-front { opacity: 0; }
}

/* Without JavaScript: both faces visible, no flipping */
html:not(.js) .flip-inner { display: flex; flex-direction: column; gap: 10px; transform: none !important; }
html:not(.js) .flip-face { visibility: visible !important; transform: none; opacity: 1 !important; }
html:not(.js) .flip-btn { display: none; }

/* Cookie preferences dialog */
.cookie-dialog { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 34px);
  background: var(--bg); color: var(--text, var(--ink)); box-shadow: var(--shadow-lift); }
.cookie-dialog::backdrop { background: rgb(10 15 25 / .55); }
.cookie-dialog h2 { margin: 0 0 12px; font-size: 1.35rem; }
.cookie-dialog p { margin: 0 0 16px; }
.cp-list { list-style: none; padding: 0; margin: 0 0 16px; border-top: 1px solid var(--line); }
.cp-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cp-list span { color: var(--muted); }
.cp-x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; border-radius: 50%; }
.cp-x:hover { background: var(--surface); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .cookie-dialog[open] { animation: lc-in .3s var(--ease); } }

/* Pricing (home) */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 560px; } }
.price-card { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 3vw, 36px); border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.price-card.is-start { border: 2px solid var(--accent); }
.price-flag { position: absolute; top: -13px; left: clamp(24px, 3vw, 34px); margin: 0; padding: 4px 12px; border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price-card h3 { margin: 0 0 18px; }
.price { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; }
.price strong { font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.price span { color: var(--muted); font-size: .92rem; }
.price-who { margin: 0 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--ink); }
.price-card .ticks { margin-bottom: 28px; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
@media (prefers-reduced-motion: reduce) { .price-card, .price-card:hover { transition: none; transform: none; } }

/* Personal data protection: wiki-style page */
.wiki-hero { padding-bottom: clamp(28px, 4vw, 44px); }
.wiki-meta { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 8px 14px; border-radius: var(--pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.wiki-meta time { color: var(--ink); font-weight: 600; }
.wiki-meta span + span::before { content: "·"; margin-right: 6px; }
@media (max-width: 560px) { .wiki-meta { display: grid; border-radius: var(--radius-sm); } .wiki-meta span + span::before { content: none; } }
.wiki-page { padding-top: clamp(24px, 3vw, 40px); }
.wiki { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.wiki-toc { position: sticky; top: 104px; max-height: calc(100vh - 124px); overflow: auto; }
.wiki-toc summary { list-style: none; cursor: default; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 0 0 12px; }
.wiki-toc summary::-webkit-details-marker { display: none; }
.wiki-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.wiki-toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted);
  text-decoration: none; font-size: .94rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.wiki-toc a:hover { color: var(--ink); }
.wiki-toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-n { flex: none; min-width: 1.2em; font-variant-numeric: tabular-nums; opacity: .7; }
.wiki-body { max-width: 760px; counter-reset: sec; }
.wiki-body h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; }
.sec-n { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2);
  color: var(--accent); font-size: .95rem; font-weight: 700; transform: translateY(-2px); }
.sec-link { margin-left: 4px; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; transition: opacity .2s; }
.wiki-body h2:hover .sec-link, .sec-link:focus-visible { opacity: 1; }
.wiki-sec { padding-top: clamp(32px, 4vw, 44px); margin-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--line); }
.wiki-sec:not(.wiki-history) { counter-increment: sec; counter-reset: clause; }
.wiki-sec > ol { list-style: none; padding: 0; margin: 0; }
.wiki-sec > ol > li { position: relative; padding: 4px 0 10px 52px; counter-increment: clause; }
.wiki-sec > ol > li::before { content: counter(sec) "." counter(clause); position: absolute; left: 0; top: 4px; color: var(--muted);
  font-size: .88rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wiki-sec li ul { padding-left: 1.2em; margin: 8px 0 0; }
.wiki-sec dl { margin: 12px 0 4px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); }
.wiki-box { padding: clamp(22px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.wiki-box h2 { margin-bottom: 6px; }
.wiki-box .muted { margin: 0 0 16px; font-size: .92rem; }
.wiki-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.wiki-table th, .wiki-table td { text-align: left; vertical-align: top; padding: 11px 0; border-top: 1px solid var(--line); }
.wiki-table th { width: 34%; padding-right: 18px; color: var(--muted); font-weight: 600; }
.wiki-table td { color: var(--ink); }
.history { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.history li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 6px; }
.history li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
.history li.is-current::before { background: var(--accent); border-color: var(--accent); }
.history time { font-weight: 700; color: var(--ink); }
.history span { color: var(--muted); }
.wiki-top { margin: 8px 0 0; font-size: .92rem; }
@media (max-width: 900px) {
  .wiki { grid-template-columns: 1fr; }
  .wiki-toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
  .wiki-toc summary { cursor: pointer; padding: 0; display: flex; justify-content: space-between; }
  .wiki-toc summary::after { content: "+"; font-size: 1.1rem; letter-spacing: 0; }
  .wiki-toc details[open] summary::after { content: "−"; }
  .wiki-toc details[open] summary { padding-bottom: 12px; }
  .wiki-table th { width: 40%; }
}
@media (max-width: 480px) { .wiki-table th, .wiki-table td { display: block; width: auto; padding: 0; border: 0; } .wiki-table th { padding-top: 12px; border-top: 1px solid var(--line); } .wiki-table td { padding-bottom: 12px; } }

/* Home: conversion block leading to the contact form */
.contact-cta .container { text-align: center; max-width: 760px; }
.contact-cta h2 { margin-left: auto; margin-right: auto; }
.contact-cta .lead { margin: 0 auto 28px; }
.contact-cta .actions { justify-content: center; margin-bottom: 20px; }
