/* ==========================================================================
   WebDeveloperStudio — Site A stylesheet
   Mobile-first. Tokens first, then base, layout, components, pages, motion.
   Hidden "before-animate" states live ONLY under `html.js:not(.anim-off)`
   (see section 12) so the site is fully readable without JavaScript.
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* colour */
  --ink: #0E0F0C;          /* ground */
  --bone: #F2F1EA;         /* text */
  --lime: #D4FF3A;         /* accent: CTAs, highlights, numbers, captions */
  --grey: #C9C8C0;         /* body copy */
  --meta: #9A9B92;         /* meta / labels */
  --panel: #191A16;        /* panels */
  --panel-2: #151612;      /* form panel */
  --line: #2A2B26;         /* hairlines */
  --line-2: #4A4B44;       /* strong hairline / ghost borders */
  --placeholder: #8C8D84;

  /* type */
  --f-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --fs-body: 17px;
  --fs-small: 15px;
  --fs-mono: 13px;
  --fs-hero: clamp(52px, 11vw, 160px);
  --fs-xl: clamp(44px, 7vw, 104px);
  --fs-l: clamp(40px, 5.2vw, 76px);
  --fs-cta: clamp(56px, 9vw, 144px);
  --fs-wordmark: clamp(56px, 14vw, 208px);

  /* layout */
  --max: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 10vw, 136px);
  --header-h: 80px;
  --radius-pill: 999px;

  /* motion (CSS-side; JS timings live in CONFIG in main.js) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: .2s;
  --dur: .35s;
  --dur-slow: .6s;
}

/* 2. Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--bone); text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--lime); }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
main:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 12px 18px; background: var(--lime); color: var(--ink); font-weight: 600;
  border-radius: var(--radius-pill);
  transform: translateY(-160%); transition: transform var(--dur) var(--ease);
}
.skip:focus, .skip:focus-visible { transform: none; color: var(--ink); }

/* 3. Layout helpers ------------------------------------------------------ */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: var(--section); }
.section--last { padding-bottom: clamp(80px, 10vw, 128px); }
.grid-2 { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stack { display: flex; flex-direction: column; gap: 28px; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; }

/* 4. Typography ---------------------------------------------------------- */
.display, h1, h2, .h-display {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  line-height: .92; letter-spacing: -.005em;
}
.h-hero { font-size: var(--fs-hero); line-height: .9; }
.h-xl { font-size: var(--fs-xl); }
.h-l { font-size: var(--fs-l); line-height: .95; }
.h-m { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3vw, 34px); line-height: 1; }
.h-s { font-size: 19px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.lime { color: var(--lime); }
.mono {
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--meta); line-height: 1.5;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 560px; }
.copy { color: var(--grey); max-width: 560px; }
.copy-s { color: var(--grey); font-size: 16px; }
.intro-big { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.tnum { font-variant-numeric: tabular-nums; }

/* Highlighter word (item 11). Without JS: lime text, like the mockup. */
.hl { position: relative; display: inline-block; color: var(--lime); isolation: isolate; }
.hl__bar {
  position: absolute; z-index: -1; left: -.06em; right: -.06em; top: .02em; bottom: .02em;
  background: var(--lime); transform: scaleX(0); transform-origin: left center; pointer-events: none;
}

/* German: umlauts (Ä Ö Ü) rise above the cap height of Anton. Give display
   lines a little more air so dots never touch the line above, and let the
   lime bar reach up far enough that ink-coloured dots sit on lime, not on ink. */
:lang(de) .display, :lang(de) h1, :lang(de) h2, :lang(de) .h-display,
:lang(de) .h-hero, :lang(de) .h-l, :lang(de) .next-project__title { line-height: 1.12; }
:lang(de) .hl__bar { top: -.14em; }

/* Underline-draw link (item 28) */
.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease), color var(--dur-fast) ease;
  padding-bottom: 2px;
}
.link-u:hover, .link-u:focus-visible { background-size: 100% 1px; }

/* 5. Buttons (items 12, 27, 28) ------------------------------------------ */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 17px; line-height: 1; white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn svg { flex: 0 0 auto; transition: transform var(--dur) var(--ease); }
.btn:hover .ico-diag, .btn:focus-visible .ico-diag { transform: translate(4px, -4px); }
.btn:hover .ico-right, .btn:focus-visible .ico-right { transform: translateX(4px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; gap: 8px; }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime::before { background: var(--bone); }
.btn--lime:hover, .btn--lime:focus-visible { color: var(--ink); }

.btn--ghost { border: 1px solid var(--line-2); color: var(--bone); }
.btn--ghost::before { background: var(--lime); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--lime); }

.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink::before { background: var(--bone); }
.btn--ink:hover, .btn--ink:focus-visible { color: var(--ink); }

.btn--outline-ink { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--outline-ink::before { background: var(--ink); }
.btn--outline-ink:hover, .btn--outline-ink:focus-visible { color: var(--lime); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px;
  font-weight: 600; border-bottom: 1px solid var(--line-2);
  transition: border-color var(--dur) var(--ease), color var(--dur-fast) ease;
}
.text-link svg { transition: transform var(--dur) var(--ease); }
.text-link:hover { border-color: var(--lime); }
.text-link:hover svg, .text-link:focus-visible svg { transform: translateX(4px); }

/* Character roll (item 12) — JS builds .roll markup from [data-roll] */
.roll { display: inline-block; position: relative; }
.roll__vis { display: inline-block; position: relative; overflow: hidden; vertical-align: top; line-height: 1.25; height: 1.25em; }
.roll__row { display: block; white-space: pre; }
.roll__row + .roll__row { position: absolute; left: 0; top: 100%; }
.roll__c { display: inline-block; transition: transform .45s var(--ease); transition-delay: calc(var(--i, 0) * 15ms); }
a:hover .roll__c, a:focus-visible .roll__c, button:hover .roll__c, button:focus-visible .roll__c { transform: translateY(-100%); }
.roll__row + .roll__row .roll__c { transform: none; }
a:hover .roll__row + .roll__row .roll__c, a:focus-visible .roll__row + .roll__row .roll__c,
button:hover .roll__row + .roll__row .roll__c, button:focus-visible .roll__row + .roll__row .roll__c { transform: translateY(-100%); }

/* 6. Header / nav (items 2, 3, 4) ---------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 120;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: transform .45s var(--ease), background-color .3s ease, border-color .3s ease, color .3s ease;
}
.header.is-solid {
  background: rgba(14, 15, 12, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.header.is-hidden { transform: translateY(-101%); }
.header__bar {
  min-height: var(--header-h);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding-block: 12px;
}
.logo {
  font-family: var(--f-display); font-size: 28px; letter-spacing: .01em; text-transform: uppercase; line-height: 1;
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto;
}
.logo__mark { display: inline-block; width: 14px; height: 14px; background: var(--lime); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(90deg); }

.nav { position: relative; display: none; }
.nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: var(--fs-small); font-weight: 500; }
.nav__link { display: inline-flex; padding: 12px 14px; }
.nav__link[aria-current="page"] { color: var(--lime); }
.nav__indicator {
  position: absolute; left: 0; bottom: 4px; height: 2px; width: var(--w, 0px);
  background: var(--lime); transform: translateX(var(--x, 0px));
  opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .2s ease;
}
.nav__indicator.is-on { opacity: 1; }
.header__cta { display: none; margin-left: 8px; }

.burger {
  display: none; position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2);
}
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor;
  transition: transform .45s var(--ease), opacity .2s ease;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* no JS on small screens: nav simply wraps under the logo */
html:not(.js) .nav { display: block; width: 100%; }
html.js .burger { display: inline-block; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav, html:not(.js) .nav { display: block; width: auto; }
  html.js .burger { display: none; }
}

/* nav theme switch (light sections under the header) */
.header[data-theme="light"] { color: var(--ink); border-color: rgba(14, 15, 12, .2); }
.header[data-theme="light"].is-solid { background: rgba(242, 241, 234, .88); }
.header[data-theme="light"] .logo, .header[data-theme="light"] .nav__link { color: var(--ink); }
.header[data-theme="light"] .nav__link[aria-current="page"] { color: var(--ink); }
.header[data-theme="light"] .nav__indicator, .header[data-theme="light"] .logo__mark { background: var(--ink); }
.header[data-theme="light"] .burger { border-color: rgba(14, 15, 12, .4); color: var(--ink); }
.header[data-theme="light"] .header__cta { background: var(--ink); color: var(--bone); }

/* language switch (EN / DE) — header + mobile menu */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase;
}
.lang__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 8px;
  border-radius: var(--radius-pill); color: var(--meta);
  transition: color var(--dur-fast) ease, background-color var(--dur) var(--ease);
}
a.lang__link:hover, a.lang__link:focus-visible { color: var(--bone); background: rgba(242, 241, 234, .08); }
.lang__link.is-current { color: var(--ink); background: var(--lime); }
.lang__sep { color: var(--line-2); }
.lang--header { display: none; }
@media (min-width: 400px) { .lang--header { display: inline-flex; } }
.lang--menu { font-size: 15px; }
.lang--menu .lang__link { min-width: 48px; min-height: 48px; }
.header[data-theme="light"] .lang__link { color: rgba(14, 15, 12, .7); }
.header[data-theme="light"] .lang__link.is-current { color: var(--lime); background: var(--ink); }
.header[data-theme="light"] a.lang__link:hover { color: var(--ink); background: rgba(14, 15, 12, .08); }

/* mobile menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto;
}
.menu__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu__item { border-bottom: 1px solid var(--line); }
.menu__link {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 12vw, 72px); line-height: 1;
}
.menu__link .mono { font-size: 12px; }
.menu__link[aria-current="page"] { color: var(--lime); }
.menu__mask { display: block; overflow: hidden; padding-bottom: .04em; }
.menu__txt { display: block; }
.menu__foot { display: flex; flex-direction: column; gap: 16px; }
html.menu-open { overflow: hidden; }

/* 7. Global chrome: preloader, curtain, progress, to-top, cursor --------- */
.preloader {
  position: fixed; inset: 0; z-index: 250; background: var(--ink);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.preloader__inner { width: max-content; max-width: calc(100vw - 2 * var(--gutter)); display: flex; flex-direction: column; gap: 18px; }
.preloader__word { font-family: var(--f-display); font-size: clamp(26px, 6.2vw, 72px); white-space: nowrap; padding-right: .04em; text-transform: uppercase; line-height: 1; }
.preloader__bar { display: block; height: 4px; background: var(--line); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.preloader__hint { font-size: 12px; }

.curtain {
  position: fixed; inset: 0; z-index: 240; background: var(--lime); pointer-events: none;
  clip-path: inset(100% 0 0 0);
  display: flex; align-items: flex-end; padding: var(--gutter);
}
.curtain__mark { font-family: var(--f-display); text-transform: uppercase; color: var(--ink); font-size: clamp(24px, 5.6vw, 64px); white-space: nowrap; line-height: 1; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 130; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }

.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .4s var(--ease), visibility 0s linear .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg { transition: transform var(--dur) var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--lime); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(-50%, -50%) scale(0);
}
.hover-preview {
  position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none;
  width: clamp(220px, 22vw, 320px); aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--lime); opacity: 0;
}
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }

/* 8. Components ---------------------------------------------------------- */
/* section head (item 14) */
.sec-head {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 18px;
}
.sec-head__rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left center; }
.sec-head .num { color: var(--lime); font-variant-numeric: tabular-nums; }
.sec-body { margin-top: 32px; }
.sec-body--l { margin-top: 56px; }

/* media placeholders / images (items 15, 16, 29) */
.media { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.media__inner { position: relative; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; }
/* parallax overscan only where the parallax actually runs (desktop, motion OK) */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .media--parallax .media__inner { height: 118%; top: -9%; }
}
.media__shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.ratio-21x9 { aspect-ratio: 21 / 9; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-2x1 { aspect-ratio: 2 / 1; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
@media (max-width: 639px) { .ratio-21x9 { aspect-ratio: 16 / 9; } }

/* available dot (item 32) */
.dot { display: inline-block; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: 10px; vertical-align: middle; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .dot::after { animation: dot-pulse 3.5s var(--ease-out) infinite; }
}
@keyframes dot-pulse {
  0% { transform: scale(1); opacity: .6; }
  45%, 100% { transform: scale(3.2); opacity: 0; }
}

/* marquee (item 21) */
.marquee { margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee__track { display: flex; flex-wrap: nowrap; width: max-content; will-change: transform; }
.marquee__group {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 32px; padding: 22px 32px 22px 0;
  white-space: nowrap; font-family: var(--f-display); text-transform: uppercase;
  font-size: clamp(44px, 6vw, 88px); line-height: 1;
}
.marquee__group li { display: inline-flex; align-items: center; gap: 32px; }
.marquee__bullet { color: var(--lime); }
.mq-outline { position: relative; color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.mq-outline::after {
  content: attr(data-text); content: attr(data-text) / ''; position: absolute; inset: 0; color: var(--lime); -webkit-text-stroke: 0;
  clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease);
}
.mq-outline:hover::after { clip-path: inset(0 0 0 0); }
@supports not (-webkit-text-stroke: 1px black) { .mq-outline { color: var(--bone); } }

/* service cards grid (home) + hover (item 23) */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc-card {
  position: relative; isolation: isolate; overflow: hidden;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 28px 36px; display: flex; flex-direction: column; gap: 20px; min-height: 340px; color: var(--bone);
}
.svc-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--panel);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.svc-card:hover, .svc-card:focus-visible { color: var(--bone); }
.svc-card:hover::before, .svc-card:focus-visible::before, .svc-card:focus-within::before { transform: scaleY(1); }
.svc-card__top { display: flex; justify-content: space-between; align-items: center; }
.svc-card h3 { transition: transform .45s var(--ease); }
.svc-card:hover h3, .svc-card:focus-visible h3 { transform: translateX(8px); }
.svc-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.svc-card__arrow { color: var(--lime); opacity: 0; transform: translateX(-12px); transition: transform .45s var(--ease), opacity .3s ease; }
.svc-card:hover .svc-card__arrow, .svc-card:focus-visible .svc-card__arrow { opacity: 1; transform: none; }

/* service rows (services page index, item 23) */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 24px;
  padding: 26px 8px; border-bottom: 1px solid var(--line); color: var(--bone);
}
.svc-row::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--lime);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease);
}
.svc-row__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(32px, 4.4vw, 64px); line-height: 1; transition: transform .45s var(--ease); }
.svc-row__meta { display: none; }
.svc-row__arrow { transition: transform .45s var(--ease), opacity .3s ease; opacity: 0; transform: translateX(-16px); }
.svc-row:hover, .svc-row:focus-visible, .svc-row:focus-within { color: var(--ink); }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); }
.svc-row:hover .svc-row__title, .svc-row:focus-visible .svc-row__title { transform: translateX(8px); }
.svc-row:hover .svc-row__arrow, .svc-row:focus-visible .svc-row__arrow { opacity: 1; transform: none; }
.svc-row:hover .mono, .svc-row:focus-visible .mono { color: var(--ink); }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: 80px 1fr 260px 40px; padding: 30px 16px; }
  .svc-row__meta { display: block; }
}

/* project cards (items 26, 29) */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 20px; color: var(--bone); }
.card:hover { color: var(--bone); }
.card .media__inner { transition: transform 1.2s var(--ease); }
.card:hover .media__inner, .card:focus-visible .media__inner { transform: scale(1.04); }
.card .media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--lime); opacity: 0; transition: opacity .4s ease;
}
.card:hover .media::after, .card:focus-visible .media::after { opacity: 1; }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.card__title { font-family: var(--f-display); font-size: 30px; text-transform: uppercase; line-height: 1; flex: 0 1 auto; }
.card__meta > .mono { flex: 0 1 auto; }
.card--end {
  justify-content: center; align-items: flex-start; padding: 32px; border: 1px solid var(--line); min-height: 240px;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(40px, 4vw, 64px); line-height: .95;
}
.card--end svg { color: var(--lime); transition: transform .45s var(--ease); }
.card--end:hover svg { transform: translateX(8px); }

/* horizontal pinned work (item 19) — enabled by JS on desktop only */
.hscroll.is-h { overflow: hidden; padding-top: clamp(24px, 5vh, 56px); }
.hscroll.is-h .sec-body--l { margin-top: 32px; }
.hscroll.is-h .work-grid { display: flex; flex-wrap: nowrap; gap: 32px; width: max-content; padding-right: var(--gutter); }
.hscroll.is-h .card { width: clamp(260px, min(32vw, calc((100vh - 430px) * .8)), 480px); flex: 0 0 auto; }
.hscroll.is-h .card--end { width: clamp(260px, 24vw, 360px); align-self: stretch; }
.mono--plain { text-transform: none; letter-spacing: .02em; }

/* process steps (item 20) */
.steps { margin-top: 56px; position: relative; border-top: 1px solid var(--line); }
.steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps__line { position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; display: none; }
.steps__marker { position: absolute; top: -7px; left: 0; width: 14px; height: 14px; background: var(--lime); display: none; }
.step { padding: 32px 28px 8px 0; display: flex; flex-direction: column; gap: 14px; }
.step__num { font-family: var(--f-display); font-size: clamp(72px, 7vw, 96px); line-height: .9; color: var(--bone); font-variant-numeric: tabular-nums; transition: color .4s ease; }
.step:first-child .step__num { color: var(--lime); }
.steps.is-pinned .steps__line, .steps.is-pinned .steps__marker { display: block; }
.steps.is-pinned .step__num { color: var(--line-2); }
.steps.is-pinned .step.is-active .step__num { color: var(--lime); }
.steps.is-pinned .step { opacity: .55; transition: opacity .4s ease; }
.steps.is-pinned .step.is-active, .steps.is-pinned .step.is-done { opacity: 1; }
.steps.is-pinned .step.is-done .step__num { color: var(--bone); }

/* bullet lists (services, case studies) */
.pkg__list { display: flex; flex-direction: column; gap: 10px; color: var(--grey); font-size: 16px; border-top: 1px solid var(--line); padding-top: 20px; }

/* definition lists */
.dl { border-top: 1px solid var(--line); }
.dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dl--big > div { padding: 20px 0; }
.dl--big dd { font-family: var(--f-display); font-size: 28px; line-height: 1.1; text-transform: uppercase; }

/* values / promise grid */
.values { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
/* 3 or 6 items: always full rows of 3 on desktop (no empty cells) */
@media (min-width: 900px) {
  .values:has(> .value:nth-child(3):last-child),
  .values:has(> .value:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.value { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 32px 40px; display: flex; flex-direction: column; gap: 18px; }
.value__num { font-family: var(--f-display); font-size: 88px; line-height: .9; font-variant-numeric: tabular-nums; }

/* icon list */
.ilist { border-top: 1px solid var(--line); }
.ilist li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ilist svg { flex: 0 0 auto; margin-top: 2px; color: var(--lime); }


/* lime CTA block */
.cta-block { background: var(--lime); color: var(--ink); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; gap: 32px; }
.cta-block .mono { color: var(--line); }
.cta-block h2 { font-size: var(--fs-cta); line-height: .88; }
.cta-block__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(14, 15, 12, .25); padding-top: 28px; }
.cta-block__foot p { flex: 1 1 360px; max-width: 560px; font-size: 18px; }
.cta-block a:not(.btn) { color: var(--ink); }

/* FAQ accordion (item 24) */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; text-align: left; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; line-height: 1.3;
  transition: color var(--dur-fast) ease;
}
.faq__q:hover { color: var(--lime); }
.faq__icon { position: relative; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: var(--lime); transition: transform .45s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__q[aria-expanded="true"] .faq__icon::before { transform: rotate(180deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: 0 0 28px; color: var(--grey); max-width: 760px; }

/* work filter (item 25) */
.filter { position: relative; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); }
.filter__btn {
  position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  font-size: var(--fs-small); font-weight: 600; transition: color .3s ease;
}
.filter__btn[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.filter.has-pill .filter__btn[aria-pressed="true"] { background: transparent; }
.filter__pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: var(--h, 44px); width: var(--w, 0px);
  border-radius: var(--radius-pill); background: var(--lime);
  transform: translate(var(--x, 0px), var(--y, 0px)); display: none;
  transition: transform .45s var(--ease), width .45s var(--ease);
}
.filter.has-pill .filter__pill { display: block; }

/* project index list with hover preview (item 33) */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; gap: 8px 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--bone);
  transition: color .3s ease, padding .45s var(--ease);
}
.index-row__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(30px, 4vw, 56px); line-height: 1; transition: transform .45s var(--ease); }
.index-row__cat { display: none; }
.index-row:hover, .index-row:focus-visible { color: var(--lime); }
.index-row:hover .index-row__title, .index-row:focus-visible .index-row__title { transform: translateX(8px); }
@media (min-width: 900px) {
  .index-row { grid-template-columns: 80px 1fr 260px 120px; }
  .index-row__cat { display: block; }
}

/* forms (item 31) */
.form { display: flex; flex-direction: column; gap: 24px; background: var(--panel-2); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.form__body { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--f-mono); font-size: var(--fs-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--meta); }
.field__wrap { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px; background: var(--ink); border: 1px solid var(--line-2);
  border-radius: 0; color: var(--bone); font: inherit; font-size: 16px;
  transition: border-color .3s ease;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D4FF3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.field textarea { padding: 14px 16px; resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--bone); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); pointer-events: none; }
.field__wrap:focus-within .field__line { transform: scaleX(1); }
.field__error { font-size: 14px; color: var(--lime); min-height: 0; }
.field__error:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--lime); }
.form__note { font-size: 14px; color: var(--meta); }
.form .btn { align-self: stretch; }
@media (min-width: 640px) { .form .btn { align-self: flex-start; } }
.form__success { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 12px 0; }
.form__success h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 4vw, 56px); line-height: .95; }
.check { width: 72px; height: 72px; color: var(--lime); }
.check circle, .check path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 220; stroke-dashoffset: 220; }
.check path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form__success.is-drawn .check circle { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease-out); }
.form__success.is-drawn .check path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease-out) .55s; }
@media (prefers-reduced-motion: reduce) { .check circle, .check path { stroke-dashoffset: 0 !important; } }

/* legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(32px, 4vw, 48px); margin: 56px 0 16px; }
.legal h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--grey); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.legal ul li::before { content: '— '; color: var(--meta); }
.legal a { color: var(--lime); }
.legal code { font-family: var(--f-mono); font-size: .9em; color: var(--bone); }
.legal__lang { margin-top: 24px; font-size: var(--fs-small); }
.legal .notice + p { margin-top: 32px; }
.notice { display: inline-block; border: 1px solid var(--lime); color: var(--lime); padding: 12px 16px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

/* case study */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.facts > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.facts dd { font-family: var(--f-display); text-transform: uppercase; font-size: 26px; line-height: 1.1; }
.cs-block { display: grid; gap: 24px 72px; }
@media (min-width: 900px) { .cs-block { grid-template-columns: 4fr 8fr; } }
.cs-seq { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .cs-seq--pair { grid-template-columns: 1fr 1fr; }
  .cs-seq--offset { grid-template-columns: 1fr 3fr; }
  .cs-seq--offset > .media { grid-column: 2; }
}
.next-project { display: block; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 80px) 0; color: var(--bone); }
.next-project__title { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--f-display); text-transform: uppercase; font-size: var(--fs-xl); line-height: .92; margin-top: 16px; }
.next-project__title svg { flex: 0 0 auto; color: var(--lime); width: clamp(40px, 6vw, 96px); height: auto; transition: transform .5s var(--ease); }
.next-project:hover { color: var(--lime); }
.next-project:hover svg, .next-project:focus-visible svg { transform: translateX(12px); }

/* 404 */
.big-404 { font-family: var(--f-display); font-size: clamp(160px, 34vw, 480px); line-height: .8; color: var(--lime); }

/* 9. Footer (item 22) ---------------------------------------------------- */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer__inner { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-small); }
.footer__nav a { display: inline-block; padding: 12px 14px 12px 0; }
.footer__nav a + a { padding-left: 14px; }
.wordmark { font-family: var(--f-display); text-transform: uppercase; font-size: var(--fs-wordmark); line-height: .85; letter-spacing: -.01em; overflow-wrap: anywhere; white-space: normal; }
.wm-mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .02em; }
.wm-char { display: inline-block; }
.footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; letter-spacing: .04em; text-transform: none; }

/* 10. Page heroes -------------------------------------------------------- */
.hero { padding-top: clamp(56px, 8vw, 112px); }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 48px; }
.hero__foot .lede { flex: 1 1 420px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { margin-top: 48px; aspect-ratio: 21 / 9; }
@media (max-width: 639px) { .hero__media { aspect-ratio: 16 / 9; } }
.hero--sub { padding-bottom: 0; }

/* Home: full-bleed cursor-reveal hero (effect itself: hero-reveal.css/.js).
   The section slides under the sticky header; headline + CTAs sit on top. */
.hero--reveal {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * (var(--header-h) + 1px));
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 clamp(40px, 6vw, 88px);
  background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: -3; transform-origin: 50% 60%; will-change: transform; }
.hero__bg .reveal-hero { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.hero__bg .reveal-hero__fallback { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 15, 12, .72) 0%, rgba(14, 15, 12, .12) 28%, rgba(14, 15, 12, .2) 55%, rgba(14, 15, 12, .94) 100%),
    linear-gradient(90deg, rgba(14, 15, 12, .7) 0%, rgba(14, 15, 12, .15) 70%);
}
.hero__dim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ink); opacity: 0; }
/* let the pointer reach the reveal canvas through the text; controls stay clickable */
.hero--reveal .hero__content { position: relative; width: 100%; pointer-events: none; }
.hero--reveal .hero__content a, .hero--reveal .hero__content button { pointer-events: auto; }
.hero--reveal .hero__meta { color: var(--bone); }
.hero--reveal .lede { color: var(--bone); text-shadow: 0 1px 24px rgba(14, 15, 12, .6); }
.hero--reveal .btn--ghost { background: rgba(14, 15, 12, .35); border-color: rgba(242, 241, 234, .45); }
.hero--reveal + .marquee { margin-top: 0; border-top: 0; }
/* header readable over the photo until it turns solid */
.page-home .header:not(.is-solid) {
  background: linear-gradient(180deg, rgba(14, 15, 12, .78) 0%, rgba(14, 15, 12, 0) 100%);
  border-bottom-color: transparent;
}

/* 11. Small-screen tweaks ------------------------------------------------ */
@media (max-width: 479px) {
  .btn { padding: 0 22px; }
  .btn-row .btn { flex: 1 1 auto; }
}

/* 12. Motion: hide-before-animate (JS present & animations enabled) ------
   `anim-off` is added by main.js when GSAP is missing, when reduced motion
   is requested, or by the inline fail-safe in <head> after 4 s. */
html.js:not(.anim-off) [data-split] { opacity: 0; }
html.js:not(.anim-off) [data-fade],
html.js:not(.anim-off) [data-hero-item] { opacity: 0; }
html.js:not(.anim-off) .media[data-reveal] { clip-path: inset(100% 0 0 0); }
html.js:not(.anim-off) .sec-head__rule { transform: scaleX(0); }
html.js:not(.anim-off) .sec-head > span:not(.sec-head__rule) { opacity: 0; }
html.js:not(.anim-off) .hl { color: var(--bone); transition: color .35s ease; }
html.js:not(.anim-off) .hl.is-lit { color: var(--ink); }
html.js:not(.anim-off).is-preloading .preloader { display: flex; }
html.js:not(.anim-off).pt-in .curtain { clip-path: inset(0 0 0 0); }

/* SplitText line masks */
/* room above the cap height so umlauts / accents (Ä Ö Ü É) are not clipped */
.split-line-mask, [class*="-line-mask"] { padding-top: .16em; margin-top: -.16em; padding-bottom: .02em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .cursor, .hover-preview, .preloader, .curtain { display: none !important; }
}

/* ---- Brand: WebDeveloperStudio (second half accented) ---- */
.brand-b { opacity: .5; }
.logo .brand-b { color: var(--lime); opacity: 1; }
.header[data-theme="light"] .logo .brand-b { color: var(--ink); opacity: .5; }
.logo { font-size: clamp(18px, 1.2vw + 12px, 26px); white-space: nowrap; }
@media (max-width: 380px) { .logo { font-size: 16px; gap: 8px; } }
.wordmark { overflow-wrap: normal; white-space: nowrap; font-size: clamp(40px, 13.2vw, 196px); }

/* ---- German: longer words, so the big type is a step smaller ---- */
:lang(de) {
  --fs-hero: clamp(46px, 9vw, 132px);
  --fs-xl: clamp(38px, 5.8vw, 86px);
  --fs-l: clamp(34px, 4.4vw, 64px);
  --fs-cta: clamp(46px, 7.4vw, 118px);
}
:lang(de) .h-m { font-size: clamp(24px, 2.4vw, 30px); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
:lang(de) h1, :lang(de) h2 { overflow-wrap: break-word; }

/* ---- Header: room for 5 nav items on small desktops ---- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .header__cta { display: none; }
  .nav__link { padding-left: 10px; padding-right: 10px; }
  .nav__list { gap: 4px 2px; }
}

/* ---- Magnetic buttons: static hit area, a little bigger than the button ---- */
.magnet-zone { display: inline-flex; padding: 10px; margin: -10px; }
@media (max-width: 479px) { .btn-row .magnet-zone { flex: 1 1 auto; } .magnet-zone > .btn { flex: 1 1 auto; } }
