/* CoSoMotion home page. Hand-authored, shared by / and /de/. */

@font-face {
  font-family: 'Bacasime Antique';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bacasime-antique-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bacasime Antique';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bacasime-antique-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: #131414;
  --surface: #1a1b1c;
  --surface-2: #212224;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f4f2;
  --muted: #c3c5c6;
  --quiet: #a2a5a7;
  --red: #e04347;
  --red-text: #ee6a6d;
  --red-button: #c4353a;
  --red-button-hover: #ad2b30;
  --serif: 'Bacasime Antique', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* spacing scale */
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 7rem;
  --gutter: clamp(1.25rem, 4.4vw, 4.4rem);
  --max: 76rem;
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; -webkit-text-stroke: 0.025em currentColor; paint-order: stroke fill; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.br-wide { display: none; }
@media (min-width: 900px) { .br-wide { display: inline; } }
ul { margin: 0; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: #4a4c4e var(--bg); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: 4px; }
.skip:focus { top: 0.75rem; }

/* ---------- Icons ---------- */
.ico { width: 1.05em; height: 1.05em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 2.875rem; padding: 0 1.5rem;
  border-radius: 3px; border: 1px solid transparent;
  font: 500 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn .ico { transition: transform 0.3s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red-button); color: #fff; }
.btn-primary:hover { background: var(--red-button-hover); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--text); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

.link {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem;
  font: 500 1rem/1 var(--sans); color: var(--text);
  text-decoration: underline; text-decoration-color: rgba(255,255,255,0.6); text-underline-offset: 0.35em; text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: var(--red); }
.link:hover .ico { transform: translateX(3px); }
.link .ico { transition: transform 0.3s var(--ease-out); }
.link:active { opacity: 0.8; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.site-header.is-scrolled { background: rgba(19, 20, 20, 0.94); box-shadow: 0 1px 0 var(--line), 0 10px 30px -12px rgba(0,0,0,0.6); }
.site-header .bar { display: flex; align-items: center; gap: var(--s4); height: var(--header-h); }
.brand { display: block; flex: none; }
.brand img { height: 2.75rem; width: auto; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 0.25rem; }
.nav a {
  white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.85rem;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--text);
  transition: color 0.2s;
}
.nav a:hover { color: var(--red-text); }
.nav a[aria-current="true"] { color: var(--red-text); }
.lang { display: flex; align-items: center; gap: 0.25rem; margin-inline-start: var(--s4); font-size: 0.9375rem; font-weight: 500; }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.25rem; text-decoration: none; }
.lang a:hover { color: var(--red-text); }
.lang [aria-current="page"] { color: var(--red-text); }
.lang .sep { width: 1px; height: 1rem; min-height: 0; min-width: 0; background: var(--line-strong); }
.menu-btn { display: none; }

@media (max-width: 1080px) {
  .nav, .site-header .lang { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto;
    width: 2.75rem; height: 2.75rem; background: none; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--text); cursor: pointer;
  }
  .menu-btn:hover { border-color: #fff; }
  .menu-btn .ico { width: 1.25rem; height: 1.25rem; }
  .site-header.menu-open { background: var(--bg); }
  .site-header.menu-open .nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    padding: var(--s3) var(--gutter); overflow-y: auto; border-top: 1px solid var(--line);
  }
  .site-header.menu-open .nav ul { flex-direction: column; gap: 0; }
  .site-header.menu-open .nav a { font-family: var(--serif); font-size: 1.75rem; padding: 0.4rem 0; min-height: 3.25rem; }
  .site-header.menu-open .lang { display: flex; position: fixed; left: var(--gutter); bottom: var(--s4); margin: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + var(--s5)); }
.hero-photo { position: relative; margin-inline: calc(-1 * var(--gutter)); margin-bottom: var(--s4); }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 55% 20%; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(19,20,20,0) 45%); pointer-events: none; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.625rem); line-height: 0.92; letter-spacing: -0.015em; }
.hero .amp { font-family: Georgia, 'Times New Roman', serif; -webkit-text-stroke: 0; }
.hero h1 .dot { color: var(--red); }
.hero .sub { margin-top: var(--s3); font-size: clamp(1.125rem, 2.4vw, 1.375rem); font-weight: 300; line-height: 1.4; color: var(--text); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--s4); }

.doors { display: grid; gap: var(--s4); margin-top: var(--s5); }
.door { display: grid; grid-template-columns: 2.6rem 1fr; }
.door .num { font: 500 0.95rem/1 var(--sans); color: var(--red-text); padding-top: 0.55rem; }
.door h2 { font-size: clamp(1.6rem, 3.2vw, 1.95rem); line-height: 1.15; }
.door p { margin-top: 0.35rem; font-size: 1.125rem; font-weight: 500; color: var(--muted); line-height: 1.45; }
.door .link { margin-top: 0.35rem; }

.certline {
  margin-top: var(--s4); padding-top: 0.75rem; border-top: 1px solid var(--line);
  text-align: center; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.32em; color: var(--muted);
  border-top-color: var(--line-strong);
}

.preview { margin-top: var(--s4); padding-bottom: var(--s6); }
.preview-head { display: flex; align-items: center; gap: var(--s3); }
.preview-head h2 { font-size: clamp(2rem, 4.2vw, 2.45rem); line-height: 1.1; flex: none; }
.preview-head .rule { flex: 1; height: 1px; background: rgba(255,255,255,0.32); }
.cards { display: grid; gap: 1rem; margin-top: 0.4rem; list-style: none; }
.card {
  position: relative; display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 18px 40px -24px rgba(0,0,0,0.8);
  transition: border-color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.card picture { display: block; overflow: hidden; }
.card img { width: 100%; height: auto; aspect-ratio: 368 / 126; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem 0.75rem; min-height: 3.25rem; }
.card h3 { font-size: 1.5rem; line-height: 1.2; }
.card .ico { color: var(--red-text); width: 1.4rem; height: 1.4rem; transition: transform 0.3s var(--ease-out); }
.card:hover { border-color: var(--line-strong); }
.card:hover img { transform: scale(1.04); }
.card:hover .ico { transform: translateX(4px); }
.card:active { transform: translateY(1px); }

/* Desktop: the approved comp, measured. 1u = 1px at 1248 wide. */
@media (min-width: 1081px) {
  :root { --u: calc(min(var(--vw, 100vw), 1600px) / 1248); --gutter: calc(55 * var(--u)); --header-h: calc(84 * var(--u)); }
  .wrap { max-width: none; }
  .hero > .wrap { max-width: calc(1248 * var(--u)); }
  .site-header .wrap { max-width: calc(1248 * var(--u)); padding-inline: calc(52 * var(--u)) calc(48 * var(--u)); }
  .brand img { height: calc(49 * var(--u)); }
  .nav ul { gap: 0; }
  .nav a { letter-spacing: -0.005em; font-size: calc(15 * var(--u)); padding: 0 calc(9.5 * var(--u)); min-height: calc(40 * var(--u)); }
  .nav { margin-inline-start: calc(37 * var(--u)); margin-right: auto; }
  .lang { font-size: calc(15 * var(--u)); margin-inline-start: 0; gap: calc(6 * var(--u)); }
  .lang a, .lang span:not(.sep) { min-width: calc(30 * var(--u)); min-height: calc(40 * var(--u)); }

  .hero { padding-top: 0; min-height: calc(832 * var(--u)); }
  .hero > .wrap { position: relative; padding-top: calc(108 * var(--u)); }
  .hero-photo {
    position: absolute; margin: 0; z-index: 0;
    left: calc(664 * var(--u)); top: calc(62 * var(--u)); width: calc(584 * var(--u)); height: calc(352 * var(--u));
  }
  .hero-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-position: center; }
  .hero-photo::after { background: linear-gradient(to right, var(--bg) 0%, rgba(19,20,20,0) 14%), linear-gradient(to top, rgba(19,20,20,0.35) 0%, rgba(19,20,20,0) 30%); }
  .hero-copy { position: relative; z-index: 1; min-height: calc(298 * var(--u)); display: flex; flex-direction: column; justify-content: flex-end; }
  .hero h1 { letter-spacing: -0.012em; font-size: calc(70 * var(--u)); line-height: calc(64 * var(--u)); width: calc(640 * var(--u)); }
  .hero h1 .l { display: block; }
  .hero .sub { margin-top: calc(9 * var(--u)); font-size: calc(22 * var(--u)); }
  .hero .actions { margin-top: calc(20 * var(--u)); gap: calc(16 * var(--u)); }
  .hero .btn { letter-spacing: -0.01em; min-height: calc(46 * var(--u)); font-size: calc(16 * var(--u)); padding: 0 calc(30 * var(--u)); gap: calc(14 * var(--u)); }
  .hero .btn-primary { min-width: calc(188 * var(--u)); }
  .hero .btn-ghost { min-width: calc(207 * var(--u)); }

  .doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: calc(24 * var(--u)); position: relative; z-index: 1; }
  .doors::before { content: ''; position: absolute; left: calc(568 * var(--u)); top: calc(4 * var(--u)); width: 1px; height: calc(88 * var(--u)); background: var(--line-strong); }
  .door { grid-template-columns: calc(52 * var(--u)) 1fr; }
  .door + .door { padding-left: calc(92 * var(--u)); grid-template-columns: calc(44 * var(--u)) 1fr; }
  .door .num { font-size: calc(15 * var(--u)); padding-top: calc(6 * var(--u)); }
  .door h2 { letter-spacing: -0.02em; font-size: calc(33 * var(--u)); line-height: calc(36 * var(--u)); }
  .door p { letter-spacing: -0.012em; font-size: calc(17.5 * var(--u)); margin-top: 0; line-height: calc(26 * var(--u)); }
  .door .link { letter-spacing: -0.01em; font-size: calc(16 * var(--u)); min-height: calc(28 * var(--u)); margin-top: calc(6 * var(--u)); }

  .certline { margin-top: calc(14 * var(--u)); padding-top: calc(8 * var(--u)); font-size: calc(12.5 * var(--u)); line-height: calc(16 * var(--u)); }
  .preview { margin-top: calc(1 * var(--u)); padding-bottom: calc(40 * var(--u)); }
  .preview-head { gap: calc(18 * var(--u)); }
  .preview-head h2 { font-size: calc(39 * var(--u)); line-height: calc(44 * var(--u)); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: calc(16 * var(--u)); margin-top: calc(4 * var(--u)); }
  .card .card-foot { min-height: calc(52 * var(--u)); padding: calc(6 * var(--u)) calc(14 * var(--u)) calc(8 * var(--u)); }
  .card h3 { font-size: calc(29 * var(--u)); letter-spacing: -0.025em; }
  .card .ico { width: calc(22 * var(--u)); height: calc(22 * var(--u)); stroke-width: 2; }
}
@media (max-width: 639px) { .certline { letter-spacing: 0.08em; word-spacing: 0.2em; } }
@media (min-width: 640px) and (max-width: 1080px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--s7); }
.section.alt { background: var(--surface); }
.section-head { max-width: 46rem; }
.section-head h2, .h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; }
.lede { margin-top: var(--s3); font-size: 1.1875rem; color: var(--muted); max-width: 40rem; }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--muted); max-width: 38rem; }

/* About */
.about { display: grid; gap: var(--s5); }
.about blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.2; }
.about blockquote::before { content: ''; display: block; width: 3rem; height: 2px; background: var(--red); margin-bottom: var(--s3); }
.about h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--text); margin-bottom: var(--s3); }
.facts { display: grid; gap: var(--s3); margin: var(--s4) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 0.15rem; align-content: start; }
.facts dt { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.facts dd { margin: 0; color: var(--muted); }
.facts .figure { font-family: var(--sans); font-weight: 500; font-size: 2.5rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: start; }
  .facts { grid-template-columns: auto 1fr; column-gap: var(--s5); }
}

/* Situations: editorial rows */
.situations { margin-top: var(--s5); list-style: none; border-top: 1px solid var(--line-strong); }
.situations li { display: grid; gap: 0.75rem; padding-block: var(--s4); border-bottom: 1px solid var(--line); }
.situations h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; }
.situations p { color: var(--muted); max-width: 36rem; }
@media (min-width: 900px) { .situations li { grid-template-columns: 5fr 6fr; gap: var(--s5); align-items: baseline; } }
.closer { margin-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.25; }

/* Services: 2x2 with top rules */
.services { display: grid; gap: var(--s5) var(--s6); margin-top: var(--s5); list-style: none; }
.services li { display: flex; flex-direction: column; }
.svc-img { margin: 0 0 var(--s3); position: relative; overflow: hidden; border-radius: 4px; }
.svc-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,27,28,0.55), transparent 55%); }
.services h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); line-height: 1.3; margin-bottom: 0.75rem; }
.services p { color: var(--muted); }
@media (min-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }

/* Why me: one lead claim, four supporting */
.why { display: grid; gap: var(--s5); margin-top: var(--s5); }
.why-lead { padding: var(--s5) var(--s4); background: var(--surface-2); border-radius: 4px; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9); }
.why-lead h3 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.why-lead p { margin-top: var(--s3); font-size: 1.1875rem; color: var(--muted); }
.why-list { list-style: none; display: grid; gap: var(--s4); }
.why-list h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.35rem; }
.why-list p { color: var(--muted); }
@media (min-width: 900px) {
  .why { grid-template-columns: 6fr 6fr; gap: var(--s6); align-items: start; }
}

/* AI teaser */
.ai { position: relative; overflow: hidden; }
.ai-grid { display: grid; gap: var(--s5); align-items: center; }
.ai-photo { position: relative; border-radius: 4px; overflow: hidden; }
.ai-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ai-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 50%); }
.ai .caps { list-style: none; margin-top: var(--s4); display: grid; gap: 0; border-top: 1px solid var(--line); }
.ai .caps li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.ai .btn { margin-top: var(--s4); }
@media (min-width: 900px) { .ai-grid { grid-template-columns: 6fr 5fr; gap: var(--s6); } .ai .caps { grid-template-columns: 1fr 1fr; column-gap: var(--s4); } }

/* References */
.refs { margin-top: var(--s5); list-style: none; border-top: 1px solid var(--line-strong); }
.ref { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 1rem); }
.ref-row { display: grid; gap: 0.6rem; padding-block: var(--s4); }
.ref-row .client { margin-top: 0.35rem; font-size: 0.9375rem; font-weight: 500; color: var(--quiet); }
.ref h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); line-height: 1.3; }
.ref .summary { color: var(--muted); max-width: 40rem; }
.ref ul { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.75rem; max-width: 40rem; }
.ref li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.ref li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 2px; background: var(--quiet); }
@media (min-width: 900px) { .ref-row { grid-template-columns: 4fr 7fr; gap: var(--s5); } .ref-row .meta { padding-top: 0.3rem; } }

/* Approach: a real sequence */
.steps { list-style: none; padding: 0; margin-bottom: 0; display: grid; gap: var(--s4); margin-top: var(--s5); counter-reset: step; }
.steps li { position: relative; padding-top: var(--s4); border-top: 1px solid var(--line-strong); }
.steps .n { position: absolute; top: -0.85rem; left: 0; background: var(--surface); padding-right: 0.75rem; font: 500 1rem/1.7 var(--sans); color: var(--red-text); }
.steps h3 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 0.6rem; }
.steps p { color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s4); } }
.taskforce {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: var(--s6); display: grid; gap: var(--s3); padding: var(--s6) var(--s4);
  background: #0e0f0f; border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 28px 60px -30px rgba(0, 0, 0, 0.9);
}
.tf-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.taskforce::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(14,15,15,0.96) 0%, rgba(14,15,15,0.82) 45%, rgba(14,15,15,0.35) 100%); }
@media (max-width: 899px) { .taskforce::before { background: linear-gradient(to top, rgba(14,15,15,0.97) 30%, rgba(14,15,15,0.6) 100%); } }
.taskforce h3 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1; }
.taskforce p { font-size: 1.1875rem; color: #d6d8d9; max-width: 36rem; }
@media (min-width: 900px) { .taskforce { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s7) var(--s6); min-height: 26rem; align-content: center; } }

/* Qualifications */
.certs { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--s5); background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.certs li { background: var(--surface); padding: var(--s3); display: grid; gap: 0.25rem; }
.certs strong { font-family: var(--sans); font-weight: 600; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.certs span { color: var(--muted); font-size: 0.9375rem; }
@media (min-width: 900px) { .certs { grid-template-columns: repeat(6, 1fr); } }
.quals { display: grid; gap: var(--s5); margin-top: var(--s6); }
.quals h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--text); padding-bottom: 0.75rem; border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s3); }
.quals ul { list-style: none; display: grid; gap: var(--s3); }
.quals h4 { font-family: var(--serif); font-size: 1.375rem; line-height: 1.2; }
.quals .yr { font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; -webkit-text-stroke: 0; }
.quals li p { color: var(--muted); font-size: 0.9875rem; }
.quals .award { display: inline-block; margin-top: 0.35rem; color: var(--text); font-size: 0.9375rem; font-weight: 600; }
@media (min-width: 900px) { .quals { grid-template-columns: 1fr 1.4fr 1fr; gap: var(--s5); } }

/* Contact */
.contact h2 { font-size: clamp(3rem, 8vw, 5.5rem); line-height: 0.95; }
.contact-grid { display: grid; gap: var(--s5); }
.contact-list { list-style: none; border-top: 1px solid var(--line-strong); }
.contact-list a {
  display: grid; grid-template-columns: 6rem 1fr auto; align-items: center; gap: var(--s3);
  padding: 1.25rem 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 4.5rem;
  transition: background-color 0.25s;
}
.contact-list .k { color: var(--quiet); font-size: 0.9375rem; font-weight: 500; }
.contact-list .v { font-family: var(--sans); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: break-word; }
@media (max-width: 559px) { .contact-list a { grid-template-columns: 1fr auto; row-gap: 0.15rem; } .contact-list .k { grid-column: 1 / -1; } }
.contact-list .ico { color: var(--red-text); width: 1.35rem; height: 1.35rem; transition: transform 0.3s var(--ease-out); }
.contact-list a:hover { background: rgba(255,255,255,0.03); }
.contact-list a:hover .ico { transform: translateX(4px); }
.contact-list a:active { opacity: 0.85; }
.brochure-tile {
  margin-top: var(--s4); display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0.5rem var(--s3); align-items: center;
  padding: var(--s3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 44px -28px rgba(0,0,0,0.9);
  transition: border-color 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}
.brochure-tile img { grid-row: span 2; width: 5rem; height: auto; border-radius: 2px; box-shadow: 0 10px 24px -10px rgba(0,0,0,0.8); transition: transform 0.4s var(--ease-out); }
.bt-text { display: grid; gap: 0.2rem; min-width: 0; }
.bt-title { font-family: var(--serif); font-size: clamp(1.2rem, 4.5vw, 1.5rem); hyphens: auto; overflow-wrap: break-word; line-height: 1.2; -webkit-text-stroke: 0.02em currentColor; }
.bt-sub { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.bt-btn { justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; padding: 0 1.1rem; border-radius: 3px; background: var(--red-button); color: #fff; font-weight: 500; font-size: 0.9375rem; transition: background-color 0.25s var(--ease-out); }
.brochure-tile:hover { border-color: var(--line-strong); }
.brochure-tile:hover img { transform: translateY(-3px) rotate(-1deg); }
.brochure-tile:hover .bt-btn { background: var(--red-button-hover); }
.brochure-tile:active { transform: translateY(1px); }
@media (min-width: 560px) { .brochure-tile { grid-template-columns: 5.5rem minmax(0, 1fr) auto; } .brochure-tile img { width: 5.5rem; } .bt-btn { grid-row: span 2; align-self: center; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: var(--s6); align-items: end; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s5); font-size: 0.9375rem; color: var(--quiet); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.site-footer img { height: 2.25rem; width: auto; opacity: 0.85; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s3); }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- Motion: one orchestrated page-load moment ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1, .js .hero .sub, .js .hero .actions, .js .hero-photo, .js .doors {
    animation: rise 0.7s var(--ease-out) both;
  }
  .js .hero .sub { animation-delay: 0.08s; }
  .js .hero .actions { animation-delay: 0.14s; }
  .js .doors { animation-delay: 0.22s; }
  .js .hero-photo { animation-name: develop; animation-duration: 0.9s; }
  /* The AI subpage opens with the same moment */
  .js .sub-hero h1, .js .sub-hero .lede, .js .sub-hero .actions, .js .sub-hero .statement, .js .sub-hero figure {
    animation: rise 0.7s var(--ease-out) both;
  }
  .js .sub-hero .lede { animation-delay: 0.08s; }
  .js .sub-hero .actions { animation-delay: 0.14s; }
  .js .sub-hero .statement { animation-delay: 0.22s; }
  .js .sub-hero figure { animation-name: develop; animation-duration: 0.9s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
  @keyframes develop { from { filter: blur(6px) brightness(0.7); } to { filter: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- AI subpage ---------- */
.sub-hero { padding-top: calc(var(--header-h) + var(--s6)); padding-bottom: var(--s6); }
.sub-hero .grid { display: grid; gap: var(--s5); align-items: center; }
.sub-hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.012em; }
.sub-hero h1 .dot { color: var(--red); }
.sub-hero .lede { font-size: 1.1875rem; max-width: 36rem; }
.sub-hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: var(--s4); }
.sub-hero figure { margin: 0; position: relative; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 70px -35px rgba(0,0,0,0.9); }
.sub-hero figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.statement { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line-strong); display: grid; gap: var(--s3); }
.statement p { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.3; max-width: 52rem; -webkit-text-stroke: 0.02em currentColor; }
@media (min-width: 900px) {
  .sub-hero { position: relative; overflow: hidden; }
  .sub-hero .grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 30rem; }
  .sub-hero .grid > div { position: relative; z-index: 1; }
  .sub-hero figure {
    position: absolute; z-index: 0; top: 0; right: 0; width: 56vw; height: calc(var(--header-h) + var(--s6) + 30rem);
    border-radius: 0; box-shadow: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%), linear-gradient(to top, transparent 0%, #000 28%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 42%), linear-gradient(to top, transparent 0%, #000 28%); mask-composite: intersect;
  }
  .sub-hero figure img { height: 100%; aspect-ratio: auto; object-position: 40% 50%; opacity: 0.9; }
  .sub-hero .statement { position: relative; z-index: 1; }
}

.split { display: grid; gap: var(--s5); }
.case { padding: var(--s5) var(--s4); background: var(--surface-2); border-radius: 4px; box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 28px 60px -30px rgba(0,0,0,0.9); }
.case h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; margin-bottom: var(--s3); }
.case p { color: var(--muted); }
.case p + p { margin-top: 1em; color: var(--text); }
@media (min-width: 900px) { .split { grid-template-columns: 6fr 5fr; gap: var(--s6); align-items: start; } }

.services.three { gap: var(--s5); }
.services.three li { padding-top: var(--s3); border-top: 2px solid var(--text); }
@media (min-width: 900px) { .services.three { grid-template-columns: repeat(3, 1fr); gap: var(--s5) var(--s5); } }

.pillars { list-style: none; padding: 0; display: grid; gap: var(--s4); margin-top: var(--s5); }
.pillars h3 { font-size: 1.6rem; line-height: 1.25; margin-bottom: 0.6rem; }
.pillars p { color: var(--muted); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }

@media (min-width: 900px) { .steps.five { grid-template-columns: repeat(5, 1fr); gap: var(--s3); } }

/* The customization ladder: four stages as escalating rows on one track */
.ladder { position: relative; list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: 1rem; }
.ladder::before { content: ''; position: absolute; left: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: 2px; transform: translateX(-1px); background: linear-gradient(to bottom, rgba(255,255,255,0.22), var(--red)); }
.rung { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.rung .n { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font: 600 1rem/1 var(--sans); color: var(--text); }
.rung:last-child .n { border-color: var(--red); color: var(--red-text); }
.rung .body { display: grid; gap: 0.6rem; padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.rung:last-child .body { background: var(--surface-2); }
.rung h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; }
.rung p { color: var(--muted); }
.rung .when { color: var(--text); }
.rung .when strong { font-weight: 600; }
@media (min-width: 900px) {
  /* The flexible middle row takes the side note's extra height, so the text follows its heading directly */
  .rung .body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: auto 1fr auto; column-gap: var(--s5); padding: var(--s4); }
  .rung .body h3, .rung .body > p:not(.when) { grid-column: 1; }
  .rung .body .when, .rung .body .tags { grid-column: 2; }
  .rung .body .when { grid-row: 1 / span 2; align-self: start; padding-left: var(--s4); border-left: 1px solid var(--line); }
  .rung .body .tags { grid-row: 3; padding-left: var(--s4); align-self: start; }
  .rung .body h3 { grid-row: 1; } .rung .body > p:not(.when) { grid-row: 2 / span 2; }
}
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.tags li { font-size: 0.875rem; font-weight: 500; color: var(--text); padding: 0.3rem 0.7rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.measured { margin-top: var(--s4); padding: var(--s4); border-radius: 4px; background: var(--surface-2); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 24px 50px -30px rgba(0,0,0,0.9); }
.measured h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.measured p { color: var(--muted); max-width: 52rem; }

.stack { display: grid; gap: var(--s4); margin-top: var(--s5); }
.stack h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s2); }
@media (min-width: 700px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stack { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }

.training { list-style: none; padding: 0; margin-top: var(--s5); display: grid; border-top: 1px solid var(--line-strong); }
.training li { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 500; line-height: 1.45; }
@media (min-width: 900px) { .training { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }

/* ---------- Project explorer (references, enhanced by js/refs.js) ---------- */
.explorer { margin-top: var(--s5); display: grid; gap: var(--s3); }
.ex-tabs { position: relative; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
.ex-tabs::-webkit-scrollbar { display: none; }
.ex-tab {
  position: relative; flex: none; display: grid; gap: 0.15rem; text-align: left; cursor: pointer;
  padding: 0.75rem 1rem; min-height: 2.75rem; background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; font: inherit;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.ex-t { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.25; color: inherit; -webkit-text-stroke: 0.02em currentColor; }
.ex-c { display: none; font-size: 0.8125rem; color: var(--quiet); }
.ex-tab:hover { color: var(--text); border-color: var(--line-strong); }
.ex-tab[aria-selected="true"] { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.ex-tab:active { transform: translateY(1px); }
.ex-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }
.ex-tab.is-running .ex-progress { animation: ex-fill 7s linear forwards; }
@keyframes ex-fill { to { transform: scaleX(1); } }
.ex-marker { display: none; }
.ex-stage { position: relative; padding: var(--s4); background: var(--surface-2); border-radius: 4px; box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 30px 60px -32px rgba(0,0,0,0.9); }
.explorer .ref { border: 0; list-style: none; }
.ex-stage { display: flex; flex-direction: column; }
.ex-foot { margin-top: auto; padding-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); order: 2; }
.ex-count { font-size: 0.9375rem; font-weight: 500; color: var(--quiet); font-variant-numeric: tabular-nums; }
.ex-next { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 0.25rem; background: none; border: 0; color: var(--text); font: 500 1rem/1 var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); text-underline-offset: 0.35em; }
.ex-next:hover { text-decoration-color: var(--red); }
.ex-next:hover .ico { transform: translateX(3px); }
.ex-next .ico { transition: transform 0.3s var(--ease-out); }
.ex-next:active { opacity: 0.8; }
.explorer .ref { order: 1; }
.explorer .ref:focus-visible { outline-offset: 8px; }
.explorer .ref-row { display: grid; gap: 0.9rem; padding: 0; grid-template-columns: 1fr; }
.explorer .ref h3 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; }
.explorer .ref .client { margin-top: 0.3rem; }
.explorer .ref .summary { font-size: 1.125rem; color: var(--text); max-width: 44rem; }
.explorer .ref ul { margin-top: 0.4rem; }
@media (prefers-reduced-motion: no-preference) {
  .explorer .ref.is-in .meta, .explorer .ref.is-in .summary, .explorer .ref.is-in li { animation: ex-in 0.55s var(--ease-out) both; }
  .explorer .ref.is-in .summary { animation-delay: 0.06s; }
  .explorer .ref.is-in li:nth-child(1) { animation-delay: 0.12s; }
  .explorer .ref.is-in li:nth-child(2) { animation-delay: 0.17s; }
  .explorer .ref.is-in li:nth-child(3) { animation-delay: 0.22s; }
  .explorer .ref.is-in li:nth-child(4) { animation-delay: 0.27s; }
  @keyframes ex-in { from { opacity: 0.001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .ex-marker { transition: transform 0.5s var(--ease-out); }
}
@media (min-width: 900px) {
  .explorer { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s5); align-items: start; }
  .ex-tabs { flex-direction: column; gap: 0; overflow: visible; padding: 0; border-left: 1px solid var(--line-strong); }
  .ex-tab { background: none; border: 0; border-radius: 0; padding: 0.7rem 0 0.7rem 1.4rem; }
  .ex-tab[aria-selected="true"] { background: none; }
  .ex-c { display: block; }
  .ex-progress { left: -1px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: rgba(224,67,71,0.45); }
  .ex-tab.is-running .ex-progress { animation-name: ex-fill-y; }
  @keyframes ex-fill-y { to { transform: scaleY(1); } }
  .ex-marker { display: block; position: absolute; left: -1px; top: 0; width: 2px; height: 100px; background: var(--red); transform-origin: top; z-index: 1; }
  .ex-stage { padding: var(--s5); }
}

/* ---------- Industry band in the hero ---------- */
.domains { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--s4); margin-bottom: var(--s6); border-radius: 4px; min-height: 15rem; display: flex; align-items: center; }
.domains-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.domains::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(19,20,20,0.97) 0%, rgba(19,20,20,0.88) 40%, rgba(19,20,20,0.25) 75%, rgba(19,20,20,0.1) 100%); }
.domains-inner { padding: var(--s4); max-width: 46rem; display: grid; gap: 0.9rem; }
.domains h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.domain-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.domain-list li { padding: 0.4rem 0.9rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; font-size: 0.9375rem; font-weight: 500; background: rgba(19,20,20,0.55); backdrop-filter: blur(4px); }
.domains-note { color: var(--muted); font-size: 0.9875rem; max-width: 34rem; }
.domains .link { justify-self: start; }
@media (max-width: 899px) { .domains::before { background: linear-gradient(to top, rgba(19,20,20,0.96) 35%, rgba(19,20,20,0.55) 100%); } }
@media (prefers-reduced-motion: no-preference) {
  .domains-bg { animation: drift 22s ease-in-out infinite alternate; }
  .domains.is-away .domains-bg { animation-play-state: paused; }
  @keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
}
@media (min-width: 1081px) {
  .domains { margin-top: calc(14 * var(--u)); margin-bottom: calc(56 * var(--u)); min-height: calc(240 * var(--u)); }
  .domains-inner { padding: calc(36 * var(--u)) calc(44 * var(--u)); max-width: calc(760 * var(--u)); }
}

/* ---------- AI teaser image blends into the section ---------- */
@media (min-width: 900px) {
  .ai .ai-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: 32rem; }
  .ai .ai-grid > div:first-child { position: relative; z-index: 1; }
  .ai .ai-photo {
    position: absolute; top: 0; right: 0; bottom: 0; width: 55vw; border-radius: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0%, #000 45%), linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%); mask-composite: intersect;
  }
  .ai .ai-photo::after { display: none; }
  .ai .ai-photo img { height: 100%; aspect-ratio: auto; object-position: 40% 50%; }
}

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */
.site-header .back { margin-inline-start: auto; font-size: 0.9375rem; text-decoration: none; }
.site-header .back:hover { color: var(--red-text); }
.ico.flip { transform: scaleX(-1); }
.link:hover .ico.flip { transform: scaleX(-1) translateX(3px); }
.legal { max-width: calc(46rem + 2 * var(--gutter)); padding-top: calc(var(--header-h) + var(--s6)); padding-bottom: var(--s7); }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.05; margin-bottom: var(--s5); }
.legal-body { display: grid; gap: var(--s5); color: var(--muted); }
.legal-body section { padding-top: var(--s4); border-top: 1px solid var(--line); }
.legal-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.25; color: var(--text); margin-bottom: var(--s2); }
.legal-body p + p, .legal-body .mt-3, .legal-body .mt-4 { margin-top: 0.9em; }
.legal-body ul { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.9em; }
.legal-body li { position: relative; padding-left: 1.4rem; }
.legal-body li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 2px; background: var(--quiet); }
.legal-body .em { color: var(--text); }
.legal-body a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); text-underline-offset: 0.3em; overflow-wrap: anywhere; }
.legal-body a:hover { text-decoration-color: var(--red); }
.legal-body .legal-foot { border-top-color: var(--line-strong); }
.legal-body .stand { font-size: 0.9375rem; color: var(--quiet); }
.site-footer a[aria-current="page"] { color: var(--text); }
.site-header .back { white-space: nowrap; }
@media (max-width: 559px) { .hide-sm { display: none; } }

/* World map behind project experience */
#referenzen { position: relative; isolation: isolate; overflow: hidden; }
#referenzen::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url(../images/worldmap-bg.webp) center 62% / contain no-repeat; opacity: 0.45;
  -webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 30%, #000 75%, transparent 92%), linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 12%, #000 30%, #000 75%, transparent 92%), linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
#referenzen .ex-stage { background: rgba(33, 34, 36, 0.5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

.ex-foot { display: grid; grid-template-columns: 1fr auto 1fr; }
.ex-count { text-align: center; }
.ex-nav { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 0.25rem; background: none; border: 0; color: var(--text); font: 500 1rem/1 var(--sans); cursor: pointer; }
.ex-nav span { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.5); text-underline-offset: 0.35em; }
.ex-nav:hover span { text-decoration-color: var(--red); }
.ex-nav .ico { transition: transform 0.3s var(--ease-out); }
.ex-next { justify-self: end; }
.ex-prev { justify-self: start; }
.ex-next:hover .ico { transform: translateX(3px); }
.ex-prev:hover .ico { transform: scaleX(-1) translateX(3px); }
.ex-nav:active { opacity: 0.8; }
@media (max-width: 559px) { .ex-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .ex-nav { min-width: 2.75rem; justify-content: center; border: 1px solid var(--line-strong); border-radius: 3px; } }

/* ---------- Scroll motion (js/motion.js): lines draw, content settles onto them ----------
   data-m is set by the script only, so without the script nothing here applies. */
@keyframes m-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes m-draw { from { transform: scaleX(0); } }
@keyframes m-develop { from { opacity: 0; transform: scale(1.045); } }
@keyframes m-fade { from { opacity: 0; } }

[data-m~="rise"]:not(.m-in),
[data-m~="kids"]:not(.m-in) > :not(figure):not(img),
[data-m~="img"]:not(.m-in) img { opacity: 0; }
[data-m~="rise"].m-in { animation: m-rise 0.8s var(--ease-out) var(--d, 0ms) backwards; }
/* Children settle a beat after the rule above them has started */
[data-m~="kids"].m-in > :not(figure):not(img) { animation: m-rise 0.8s var(--ease-out) calc(var(--d, 0ms) + 60ms) backwards; }
[data-m~="kids"].m-in > :nth-child(2) { animation-delay: calc(var(--d, 0ms) + 120ms); }
[data-m~="kids"].m-in > :nth-child(3) { animation-delay: calc(var(--d, 0ms) + 180ms); }
[data-m~="kids"].m-in > :nth-child(n+4) { animation-delay: calc(var(--d, 0ms) + 240ms); }
[data-m~="img"].m-in img { animation: m-develop 1.2s var(--ease-out) var(--d, 0ms) backwards; }
.m-t { display: block; }

/* Rules: the static border steps aside for a line that draws from the left */
.situations[data-m], .contact-list[data-m], .training[data-m], .ai .caps[data-m], .facts[data-m], .steps > li[data-m], .services.three > li[data-m] { position: relative; border-top-color: transparent; --m-line: var(--line-strong); }
.ai .caps[data-m], .facts[data-m] { --m-line: var(--line); }
.services.three > li[data-m] { --m-line: var(--text); --m-line-h: 2px; }
.situations > li[data-m], .ai .caps > li[data-m], .training > li[data-m], .contact-list > li[data-m] { position: relative; --m-line: var(--line); }
.situations > li[data-m], .ai .caps > li[data-m], .training > li[data-m], .contact-list > li[data-m] > a { border-bottom-color: transparent; }
[data-m~="line-t"]::before, [data-m~="line-b"]::after {
  content: ''; position: absolute; left: 0; right: 0; height: var(--m-line-h, 1px);
  background: var(--m-line); transform-origin: left; pointer-events: none;
}
[data-m~="line-t"]::before { top: calc(-1 * var(--m-line-h, 1px)); }
[data-m~="line-b"]::after { bottom: -1px; }
.contact-list > li[data-m]::after { bottom: 0; }
[data-m~="accent"]::before { transform-origin: left; }
[data-m~="line-t"]:not(.m-in)::before, [data-m~="line-b"]:not(.m-in)::after, [data-m~="accent"]:not(.m-in)::before { transform: scaleX(0); }
[data-m~="line-t"].m-in::before, [data-m~="line-b"].m-in::after, [data-m~="accent"].m-in::before { animation: m-draw 0.7s var(--ease-out) var(--d, 0ms) backwards; }
/* A row's closing rule follows its text; the rule above it leads */
[data-m~="line-b"].m-in::after { animation-delay: calc(var(--d, 0ms) + 140ms); }

/* A step number sits on its line, so it arrives in place, and its rule starts where the number ends */
.steps > li[data-m].m-in > .n { animation-name: m-fade; animation-delay: var(--d, 0ms); }
.steps > li[data-m]::before { left: var(--n-w, 0px); }

/* Customization ladder: the track grows with the scroll position, each stage switches on when reached.
   The script sets --p (0 to 1) and .is-on; without it the track is simply complete. */
.ladder[data-live]::after {
  content: ''; position: absolute; left: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: 6px; margin-left: -3px;
  background: rgba(19, 20, 20, 0.8); transform: scaleY(calc(1 - var(--p, 1))); transform-origin: bottom; pointer-events: none;
}
.ladder[data-live] .rung .n { transform: scale(0.88); transition: transform 0.5s var(--ease-out); }
.ladder[data-live] .rung .n::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; background: rgba(19, 20, 20, 0.5); transition: opacity 0.5s var(--ease-out); }
.ladder[data-live] .rung.is-on .n { transform: none; }
.ladder[data-live] .rung.is-on .n::after { opacity: 0; }

/* Header gauge: on the four main pages the logo image keeps its lettering, and the gauge in its "O" is cut
   out of the image and drawn as vector on top, so the needle can climb with the scroll position (js/motion.js
   sets the angle) and reach the mark's own position at the end of the page. The mark cuts its dial ring open
   where the needle crosses it; here that cut-out is a mask carrying a second .needle, so it travels with the
   needle and the ring is whole everywhere else. Without motion both rest where the logo draws them.
   The overlay has exactly the image's box and the image's own coordinates as its viewBox (measured against the
   image), because a smaller box of its own is rounded to whole pixels separately and the ring then sits up to
   a pixel off. The ring carries a hairline outline so its thin lower tip reads as long as it does in the
   image, where fine parts come out slightly bolder. The cut removes the gauge box (51.733% to 64.866% across, down to 72.611%) from the image; its
   outer rectangle lies beyond the image so no edge row of the lettering is shaved. */
.brand { position: relative; }
.brand .gauge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.brand .gauge + img { clip-path: polygon(evenodd, -5% -5%, 105% -5%, 105% 105%, -5% 105%, -5% -5%, 51.733% -5%, 64.866% -5%, 64.866% 72.611%, 51.733% 72.611%, 51.733% -5%); }
.gauge .needle { transform-box: view-box; transform-origin: 177.9px 96.4px; }
@media (prefers-reduced-motion: no-preference) {
  .js .gauge .needle { transform: rotate(-80deg); transition: transform 0.3s var(--ease-out); }
}

/* Depth: on desktop two large photographs travel a little slower than the page (js/motion.js sets
   translate, at most 16px either way). The slight enlargement keeps their edges covered. */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .ai .ai-photo img, .js .taskforce .tf-bg { scale: 1.08; }
}

/* Companion columns stay in view while the longer neighbour scrolls by (set only where they fit) */
@media (min-width: 900px) { [data-stick] { position: sticky; top: calc(var(--header-h) + var(--s4)); } }

/* Reduced motion: no travel and no drawing, content still arrives with a short fade */
@media (prefers-reduced-motion: reduce) {
  [data-m~="rise"].m-in, [data-m~="kids"].m-in > :not(figure):not(img), [data-m~="img"].m-in img { animation: m-fade 0.5s linear backwards !important; }
  [data-m~="line-t"]:not(.m-in)::before, [data-m~="line-b"]:not(.m-in)::after, [data-m~="accent"]:not(.m-in)::before { transform: none; }
}
@media print {
  [data-m], [data-m] * { opacity: 1 !important; animation: none !important; }
  [data-m]::before, [data-m]::after { transform: none !important; }
}
