/* ============================================================
   CROSSBOX DIGITAL® — Shopify CRO Agency
   Kinetic brutalism / dark / acid — Syne · Manrope · Space Mono
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #131316;
  --text: #f2f2ee;
  --muted: #b1b1b9;
  --acid: #d6ff3f;
  --acid-soft: rgba(214, 255, 63, 0.08);
  --line: rgba(242, 242, 238, 0.14);
  --line-soft: rgba(242, 242, 238, 0.07);

  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "Space Mono", monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100svh;
}

html.lock, html.lock body { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }

::selection { background: var(--acid); color: #0a0a0b; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2e; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--acid); }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 10020;
  background: var(--acid); color: #0a0a0b;
  font: 700 0.8rem var(--font-mono); text-transform: uppercase;
  padding: 0.8rem 1.2rem; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- custom cursor ---------- */
/* The native cursor is hidden ONLY while html.cb-cursor is set — JS adds it on the
   first pointermove, once the custom cursor is alive and positioned. If JS never
   runs (file://, blocked CDN), you simply keep your normal mouse cursor. */
html.cb-cursor, html.cb-cursor body,
html.cb-cursor a, html.cb-cursor button, html.cb-cursor [data-magnetic] { cursor: none; }
html.cb-cursor .cursor, html.cb-cursor .cursor-ring { display: flex; }

.cursor, .cursor-ring {
  display: none; opacity: 0;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10010;
  align-items: center; justify-content: center;
}
.cursor {
  width: 6px; height: 6px; background: var(--acid);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(214, 255, 63, 0.55);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              background-color 0.25s, border-color 0.25s;
}
.cursor-label {
  font: 700 0.55rem var(--font-mono); letter-spacing: 0.12em;
  color: #0a0a0b; opacity: 0; transition: opacity 0.2s;
  text-transform: uppercase;
}
.cursor-ring.is-hover { width: 56px; height: 56px; background: rgba(214, 255, 63, 0.18); }
.cursor-ring.has-label { width: 72px; height: 72px; background: var(--acid); border-color: var(--acid); }
.cursor-ring.has-label .cursor-label { opacity: 1; }

/* Third-party surfaces (Cookiebot dialog/widget, Calendly chrome) render ABOVE
   the custom cursor's layer — restore the native cursor there or the visitor
   aims blind. The custom ring hides itself over these (see main.js).
   Interactive elements inside them keep the pointer (hand) cursor. */
#CybotCookiebotDialog, #CybotCookiebotDialog *,
#CybotCookiebotDialogBodyUnderlay,
#CookiebotWidget, #CookiebotWidget *,
.calendly-overlay, .calendly-overlay * {
  cursor: auto !important;
}
#CybotCookiebotDialog a, #CybotCookiebotDialog button,
#CybotCookiebotDialog input, #CybotCookiebotDialog label,
#CybotCookiebotDialog select, #CybotCookiebotDialog [role="button"],
#CookiebotWidget a, #CookiebotWidget button, #CookiebotWidget [role="button"],
.calendly-overlay a, .calendly-overlay button,
.calendly-popup-close {
  cursor: pointer !important;
}

/* ---------- film grain ---------- */
.noise {
  position: fixed; inset: 0; z-index: 10000;
  pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ---------- preloader (Full Experience, external arrivals only) ---------- */
.preloader { display: none; }
html.exp-full.cb-returning .preloader { display: none; }
html.exp-full .preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: grid; place-items: center;
  animation: preFail 0.6s ease 9s forwards; /* failsafe if main.js never arrives */
}
@keyframes preFail { to { opacity: 0; visibility: hidden; } }

.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }

.preloader-cube { width: 56px; height: 56px; }
.preloader-cube .pc-edge {
  stroke: var(--acid); stroke-width: 1.5; fill: none;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: drawCube 2.4s var(--ease-expo) infinite;
}
@keyframes drawCube {
  0% { stroke-dashoffset: 240; }
  55% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -240; }
}

.preloader-count {
  font: 800 clamp(3.4rem, 9vw, 5.5rem) / 1 var(--font-display);
  letter-spacing: -0.02em;
}
.preloader-pct { color: var(--acid); font-size: 0.5em; }
.preloader-word {
  font: 400 0.7rem var(--font-mono);
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
}
.preloader-bar { width: 220px; height: 2px; background: var(--line-soft); overflow: hidden; }
.preloader-bar-fill {
  display: block; width: 100%; height: 100%;
  background: var(--acid); transform: scaleX(0); transform-origin: left;
}

/* ---------- shared utilities ---------- */
/* Quiet editorial label system (D1): a hairline rule carries a small-caps name
   on the left and a parenthetical index on the right. No chips, no blinking. */
.meta-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.meta-label {
  font: 600 0.68rem var(--font-body);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.meta-idx { font: 400 0.68rem var(--font-mono); color: var(--muted); flex-shrink: 0; }

.eyebrow {
  font: 600 0.72rem var(--font-body);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* count-up numbers: width is reserved by JS; tabular figures where available */
[data-count] { display: inline-block; font-variant-numeric: tabular-nums; }

.label-dot {
  width: 8px; height: 8px; background: var(--acid); display: inline-block;
  animation: blink 1.8s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.acid { color: var(--acid); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 242, 238, 0.9);
}

.section { padding: clamp(4.5rem, 9vh, 7.5rem) var(--gutter); position: relative; }
.section-head { margin-bottom: clamp(2.2rem, 5vh, 3.5rem); }
.section-title {
  font: 800 clamp(2.5rem, 6vw, 5.4rem) / 0.98 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.02em;
  margin-top: 1.4rem;
}

.link-u { position: relative; color: var(--text); }
.link-u::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--acid);
  transform: scaleX(1); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(0); transform-origin: right; }

/* buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1.05rem 1.7rem;
  border: 1px solid var(--line);
  font: 700 0.78rem var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s var(--ease-out), border-color 0.3s;
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--acid);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.34s var(--ease-expo);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { color: #0a0a0b; }
.btn:hover::before { transform: scaleY(1); }
.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-acid { background: var(--acid); border-color: var(--acid); color: #0a0a0b; }
.btn-acid::before { background: var(--text); }
.btn-acid:hover { color: #0a0a0b; }

.btn-ghost { background: transparent; }

.btn-big { padding: 1.45rem 2.7rem; font-size: 0.95rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.75);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-101%); }

.nav-logo { display: inline-flex; align-items: center; }
.nav-logo-img { height: 28px; width: auto; }

.nav-lang {
  font: 700 0.72rem var(--font-mono);
  letter-spacing: 0.14em; color: var(--muted);
  padding: 0.5rem 0.6rem;
  transition: color 0.2s;
}
.nav-lang:hover { color: var(--acid); }

/* language dropdown — offers only the "missing" locale (ADR-0007) */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font: 700 0.72rem var(--font-mono); letter-spacing: 0.14em;
  color: var(--muted); padding: 0.5rem 0.6rem;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--acid); }
.lang-globe { width: 15px; height: 15px; }
.lang-globe * { stroke: currentColor; stroke-width: 1.1; }
.lang-chev { width: 9px; transition: transform 0.25s var(--ease-out); }
.lang.is-open .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 20;
  min-width: 9.5rem;
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 0.35rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s 0.25s;
}
.lang.is-open .lang-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s 0s;
}
.lang-menu a {
  display: block; padding: 0.65rem 0.85rem;
  font: 600 0.82rem var(--font-body); color: var(--text);
  transition: background-color 0.15s, color 0.15s;
}
.lang-menu a:hover { background: var(--acid); color: #0a0a0b; }

.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font: 400 0.75rem var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--acid); }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.nav-cta { padding: 0.78rem 1.3rem; }

.burger { display: none; flex-direction: column; gap: 7px; padding: 10px 4px; }
.burger span {
  width: 26px; height: 2px; background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile menu — pure CSS transitions so it works in the Reduced Experience */
.menu {
  position: fixed; inset: 0; z-index: 250;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-expo), visibility 0s 0.6s;
}
.menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.6s var(--ease-expo), visibility 0s 0s;
}
.menu-links { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.menu-links a, .menu-links .menu-cta {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.menu.is-open .menu-links a, .menu.is-open .menu-links .menu-cta { opacity: 1; transform: none; }
.menu.is-open .menu-links > *:nth-child(1) { transition-delay: 0.16s; }
.menu.is-open .menu-links > *:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu-links > *:nth-child(3) { transition-delay: 0.28s; }
.menu.is-open .menu-links > *:nth-child(4) { transition-delay: 0.34s; }
.menu.is-open .menu-links > *:nth-child(5) { transition-delay: 0.4s; }
.menu.is-open .menu-links > *:nth-child(6) { transition-delay: 0.46s; }
.menu-links a {
  /* Syne 800 caps ≈ 1.05–1.1em/char: "LEISTUNGEN" + index must fit 335px @375 */
  font: 800 clamp(1.5rem, 7vw, 4.2rem) / 1.12 var(--font-display);
  text-transform: uppercase; display: flex; align-items: baseline; gap: 1.1rem;
  max-width: 100%;
}
.menu-links a em { font: 400 0.75rem var(--font-mono); color: var(--acid); flex-shrink: 0; }
.menu-links .menu-cta {
  font: 800 clamp(1.1rem, 4.8vw, 1.7rem) var(--font-display);
  text-transform: uppercase; color: var(--acid); margin-top: 1.6rem;
  text-align: left; padding: 0;
}
.menu-foot {
  position: absolute; bottom: 2rem; left: var(--gutter); display: flex; gap: 1.8rem;
  opacity: 0; transition: opacity 0.4s ease 0.5s;
}
.menu.is-open .menu-foot { opacity: 1; }
.menu-foot a { font: 400 0.72rem var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 6vh) var(--gutter) 0;
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(58% 52% at 24% 62%, rgba(10, 10, 11, 0.82) 0%, rgba(10, 10, 11, 0.25) 58%, transparent 100%),
    radial-gradient(80% 60% at 78% 110%, rgba(214, 255, 63, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
#webgl { width: 100%; height: 100%; }
html.exp-static #webgl { display: none; }

/* Static hero poster — the Reduced Experience's stand-in for the WebGL cube */
.hero-poster {
  position: absolute; top: 6%; right: -16%;
  width: min(92vw, 520px); height: auto;
  opacity: 0.5;
}
html.exp-full .hero-poster { display: none; }

/* Reduced Experience: only the marquees move (ADR-0003 / CONTEXT [[Marquee]]) */
html.exp-static .cursor, html.exp-static .cursor-ring { display: none; }
html.exp-static .hero-scroll { display: none; }
html.exp-static .cube { animation: none; transform: rotateX(-16deg) rotateY(-32deg); }

.hero-content { position: relative; z-index: 1; margin-top: auto; }

.hero-eyebrow { margin-bottom: clamp(1.4rem, 3vh, 2.4rem); }

/* Syne 800 caps measure ≈1.05em/char — sizes are budgeted per locale so the
   masked lines never wrap on the Full Experience (DE longest: 15.6em, EN: 16.8em) */
.hero-title {
  font: 800 clamp(2rem, 5.7vw, 6.6rem) / 0.94 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.025em;
}
html[lang="en"] .hero-title { font-size: clamp(1.9rem, 5.3vw, 6.2rem); }
.hero-title .line:first-child .line-inner { color: var(--acid); }
.hero-title .line:last-child { font-size: 0.6em; padding-top: 0.14em; }
.line { display: block; overflow: hidden; padding-block: 0.04em; }
.line-inner { display: inline-block; will-change: transform; }

.hero-sub {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2.5rem;
  margin-top: clamp(1.8rem, 4vh, 3rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
}
.hero-sub p {
  max-width: 44ch; color: var(--muted);
  font-size: 1.08rem; line-height: 1.75; letter-spacing: 0.005em;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: 0;
}
.stat { padding: 1.5rem var(--gutter) 1.7rem; }
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-num {
  display: block;
  font: 800 clamp(1.8rem, 3.2vw, 2.7rem) / 1.05 var(--font-display);
  letter-spacing: -0.01em;
}
.stat-label {
  display: block; margin-top: 0.45rem;
  font: 400 0.66rem var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

.hero-scroll {
  position: absolute; z-index: 1;
  right: var(--gutter); bottom: 9.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  font: 400 0.62rem var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-scroll-line { width: 1px; height: 54px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--acid);
  animation: scrollHint 1.8s var(--ease-expo) infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: clip;
  border-block: 1px solid var(--line);
  background: var(--bg);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-seg {
  display: flex; align-items: center; white-space: nowrap;
  font: 700 clamp(1.15rem, 2.1vw, 1.8rem) var(--font-display);
  text-transform: uppercase; letter-spacing: 0.02em;
  padding-block: 1.15rem;
}
.marquee-seg i { font-style: normal; color: var(--acid); padding-inline: 1.4rem; font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto-text {
  font: 700 clamp(1.9rem, 4.6vw, 4.3rem) / 1.14 var(--font-display);
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.manifesto-text .word { display: inline-block; }
.manifesto-note {
  margin-top: 2.2rem;
  font: 400 0.8rem / 1.9 var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-align: right;
}

/* ---------- method (horizontal pin) ---------- */
.method { padding-inline: 0; overflow: clip; }
.method-pin { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding-block: calc(var(--nav-h) + 2vh) 4vh; }
.method-head { padding-inline: var(--gutter); }

.method-track {
  display: flex; gap: clamp(1rem, 1.6vw, 1.6rem);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}
.method-card {
  width: clamp(310px, 36vw, 500px);
  min-height: clamp(330px, 46vh, 430px);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(1.6rem, 2.4vw, 2.6rem);
  display: flex; flex-direction: column;
  transition: background-color 0.18s linear, border-color 0.18s linear;
}
.method-num {
  font: 800 clamp(3.4rem, 6vw, 5.4rem) / 1 var(--font-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(242, 242, 238, 0.55);
  transition: color 0.18s, -webkit-text-stroke-color 0.18s;
}
.method-card h3 {
  font: 700 clamp(1.4rem, 2vw, 1.9rem) var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  margin-top: auto; padding-top: 2.2rem;
}
.method-card p { color: var(--muted); margin-top: 0.9rem; max-width: 38ch; font-size: 0.98rem; line-height: 1.7; transition: color 0.18s; }
.method.is-dragging, .method.is-dragging * { user-select: none; }
.method-tag {
  margin-top: 1.7rem; padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
  align-self: stretch;
  font: 600 0.64rem var(--font-body); letter-spacing: 0.18em;
  color: var(--muted); text-transform: uppercase;
  transition: color 0.18s, border-color 0.18s;
}
.method-card:hover .method-tag { border-color: rgba(10, 10, 11, 0.3); }
.method-card:hover { background: var(--acid); border-color: var(--acid); }
.method-card:hover h3 { color: #0a0a0b; }
.method-card:hover .method-num { color: #0a0a0b; -webkit-text-stroke-color: #0a0a0b; }
.method-card:hover p { color: rgba(10, 10, 11, 0.72); }
.method-card:hover .method-tag { color: #0a0a0b; }

/* ---------- services ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto 3.4rem;
  align-items: center; gap: 1.6rem;
  padding: 1.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background-color 0.16s linear, padding 0.25s var(--ease-out);
}
.service-idx { font: 400 0.72rem var(--font-mono); color: var(--muted); }
.service-main h3 {
  font: 700 clamp(1.3rem, 2.4vw, 2.1rem) var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  transition: color 0.16s;
}
.service-main p { color: var(--muted); font-size: 0.92rem; margin-top: 0.3rem; transition: color 0.16s; }
.service-tags {
  font: 400 0.66rem var(--font-mono); letter-spacing: 0.14em;
  color: var(--muted); text-transform: uppercase;
  transition: color 0.16s;
}
.service-arrow {
  font-size: 1.5rem; justify-self: end;
  transition: transform 0.3s var(--ease-out), color 0.16s;
}
.service-row:hover { background: var(--acid); padding-inline: 1.4rem; }
.service-row:hover .service-idx,
.service-row:hover .service-tags { color: rgba(10, 10, 11, 0.65); }
.service-row:hover .service-main h3,
.service-row:hover .service-arrow { color: #0a0a0b; }
.service-row:hover .service-main p { color: rgba(10, 10, 11, 0.75); }
.service-row:hover .service-arrow { transform: translateX(8px) rotate(-45deg); }

/* ---------- results ---------- */
.case-stack { display: flex; flex-direction: column; gap: 1.8rem; }
.case {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem + var(--i) * 1.4rem);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.8rem);
}
.case-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-soft);
}
.case-client { font: 700 clamp(1.3rem, 2.4vw, 2rem) var(--font-display); text-transform: uppercase; }
.case-client em { font-style: normal; color: var(--acid); font-size: 0.62em; }
.case-kind { font: 400 0.66rem var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: right; }

.case-body {
  display: grid; grid-template-columns: auto 1fr minmax(150px, 230px);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end;
  padding-top: 1.8rem;
}
.case-num {
  font: 800 clamp(3.6rem, 8.4vw, 7.8rem) / 0.95 var(--font-display);
  letter-spacing: -0.03em; color: var(--acid); display: block;
}
.case-metric-label {
  display: block; margin-top: 0.5rem;
  font: 400 0.68rem var(--font-mono); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.case-info p { color: var(--text); max-width: 42ch; font-size: 1.02rem; line-height: 1.7; }
.case-info blockquote { margin-top: 1.1rem; color: var(--muted); font-style: italic; max-width: 42ch; }

/* attributed quotes — small square portrait + small-caps cite */
.quote-by { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.9rem; }
.quote-by img {
  width: 40px; height: 40px; object-fit: cover;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.05);
}
.quote-by cite {
  font: 600 0.64rem var(--font-body); font-style: normal;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.case-spark { width: 100%; height: 80px; }
.spark-path { stroke: var(--acid); stroke-width: 2; }
.spark-dot { fill: var(--acid); }

/* clients — logo marquee */
.clients { margin-top: clamp(3rem, 6vh, 4.5rem); }
.clients-meta { margin-bottom: 1.6rem; }
.marquee-clients { margin-inline: calc(var(--gutter) * -1); }
.marquee-clients .marquee-track { animation-duration: 42s; }
.marquee-logos {
  display: flex; align-items: center;
  gap: clamp(2.8rem, 5vw, 4.8rem);
  padding-inline: clamp(1.4rem, 2.5vw, 2.4rem);
  padding-block: 1.5rem;
}
.marquee-logos img {
  height: clamp(22px, 2.3vw, 32px); width: auto;
  filter: grayscale(1) brightness(1.05);
  opacity: 0.75;
  transition: opacity 0.25s, filter 0.25s;
}
.marquee-logos img.inv { filter: invert(1) grayscale(1) brightness(1.05); }
.marquee-clients:hover .marquee-logos img { opacity: 1; }

/* ---------- guarantee ---------- */
.guarantee-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.2rem, 4.5vw, 4.5rem); align-items: center;
}

.cube-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 420px; perspective: 1100px;
  touch-action: pan-y; /* horizontal swipes rotate the cube; vertical still scrolls */
}
.cube { will-change: transform; }
.cube {
  position: relative; width: 230px; height: 230px;
  transform-style: preserve-3d;
  animation: cubeSpin 22s linear infinite;
}
@keyframes cubeSpin {
  from { transform: rotateX(-16deg) rotateY(0deg); }
  to { transform: rotateX(-16deg) rotateY(360deg); }
}
.cube-face {
  position: absolute; inset: 0;
  border: 1px solid var(--acid);
  background: rgba(214, 255, 63, 0.045);
  display: flex; align-items: center; justify-content: center;
  font: 700 1rem var(--font-mono); letter-spacing: 0.18em;
  color: var(--acid); text-align: center; line-height: 1.7;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.cube-front  { transform: rotateY(0deg)   translateZ(115px); }
.cube-back   { transform: rotateY(180deg) translateZ(115px); }
.cube-right  { transform: rotateY(90deg)  translateZ(115px); }
.cube-left   { transform: rotateY(-90deg) translateZ(115px); }
.cube-top    { transform: rotateX(90deg)  translateZ(115px); background: rgba(214, 255, 63, 0.12); }
.cube-bottom { transform: rotateX(-90deg) translateZ(115px); background: rgba(214, 255, 63, 0.02); }

.cube-shadow {
  width: 240px; height: 34px; margin-top: 48px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 255, 63, 0.16), transparent 70%);
}

.guarantee-list li {
  display: grid; grid-template-columns: 5rem 1fr;
  column-gap: 1.2rem; row-gap: 0.45rem;
  padding: 1.7rem 0; border-top: 1px solid var(--line);
}
.guarantee-list li:last-child { border-bottom: 1px solid var(--line); }
.g-idx { font: 400 0.72rem var(--font-mono); color: var(--muted); padding-top: 0.5rem; grid-row: 1 / span 2; }
.guarantee-list h3, .guarantee-list p { grid-column: 2; }
.guarantee-list h3 {
  font: 700 clamp(1.15rem, 1.9vw, 1.55rem) var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
}
.guarantee-list p { color: var(--muted); margin-top: 0.45rem; font-size: 0.95rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.2rem, 4.5vw, 4.5rem); align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.about-frame {
  position: relative; width: min(100%, 420px); aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--bg-2);
  margin: 0; overflow: hidden;
}
.about-photo {
  width: 100%; height: 100%; object-fit: cover;
}
.about-frame::before {
  /* caption scrim only — photo itself stays untouched, full color */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 10, 11, 0.66) 100%);
}
.about-frame-tag {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2;
  font: 600 0.62rem var(--font-body); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text);
}

.about-content .section-title { margin-top: 1.2rem; }
.about-sub { font: 400 0.8rem var(--font-mono); color: var(--muted); margin: 0.8rem 0 1.8rem; letter-spacing: 0.06em; }
.about-content > p[data-reveal] { max-width: 54ch; color: var(--text); }
.about-quote {
  margin-top: 2rem; padding: 1.4rem 1.6rem;
  border-left: 2px solid var(--acid);
  background: var(--acid-soft);
  font-style: italic; max-width: 46ch;
}
.about-tools { margin-top: 2.4rem; }
.tools-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 2.2rem; margin-top: 1.2rem; }
.tools-strip img {
  height: 30px; width: auto;
  filter: grayscale(1) brightness(1.65);
  opacity: 0.85;
}

/* ---------- faq ---------- */
.faq-list { max-width: 880px; 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: 1.5rem;
  padding: 1.6rem 0.2rem; text-align: left;
  font: 700 clamp(1.05rem, 2vw, 1.45rem) var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--acid); }
.faq-icon {
  font: 400 1.7rem var(--font-mono); color: var(--acid);
  transition: transform 0.35s var(--ease-out); flex-shrink: 0;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-expo);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { color: var(--muted); max-width: 62ch; padding: 0 0.2rem 1.7rem; }

/* ---------- final cta ---------- */
.cta-final {
  min-height: 92svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(60% 46% at 50% 62%, rgba(214, 255, 63, 0.07) 0%, transparent 70%),
    var(--bg);
}
.cta-label { margin-bottom: 2rem; }
.cta-title {
  font: 800 clamp(3.4rem, 15.2vw, 14.5rem) / 0.9 var(--font-display); /* "ÖFFNE" ≈ 5.5em */
  text-transform: uppercase; letter-spacing: -0.03em;
}
html[lang="en"] .cta-title { font-size: clamp(4rem, 17.5vw, 16.5rem); }
.cta-sub { color: var(--muted); max-width: 50ch; margin-top: 2.2rem; font-size: 1.08rem; line-height: 1.75; letter-spacing: 0.005em; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; margin-top: 2.8rem; }
.cta-or { font: 400 0.78rem var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }

/* Calendly — click-to-load placeholder (Zwei-Klick-Lösung, ADR-0006).
   Reserved height so loading the widget causes no layout shift. */
.calendly-block { width: min(100%, 780px); margin-top: clamp(3rem, 7vh, 5rem); }
.calendly-placeholder {
  min-height: 640px;
  border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.2rem; padding: clamp(1.6rem, 4vw, 3rem);
  text-align: center;
}
.calendly-placeholder h3 {
  font: 700 clamp(1.2rem, 2.2vw, 1.6rem) var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
}
.calendly-notice { color: var(--muted); font-size: 0.92rem; max-width: 56ch; }
.calendly-subnote { font: 400 0.66rem var(--font-mono); letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.calendly-placeholder.is-loaded { display: block; padding: 0; border: 0; background: transparent; }
.calendly-placeholder.is-loaded > * { display: none; }
.calendly-placeholder.is-loaded .calendly-inline-widget { display: block; height: 640px; }

/* ---------- footer ---------- */
.footer {
  position: relative; overflow: clip;
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 8vh, 6rem) var(--gutter) 0;
}
.footer-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-logo-img { height: 28px; width: auto; }
.footer-brand p { color: var(--muted); margin-top: 1.1rem; font-size: 0.92rem; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; }
.footer-col .meta-label { margin-bottom: 0.5rem; border: 0; padding: 0; }
.footer-col a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--acid); }
.footer-cookies {
  color: var(--muted); font-size: 0.93rem; text-align: left; padding: 0;
  transition: color 0.2s;
}
.footer-cookies:hover { color: var(--acid); }

.footer-bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: clamp(3rem, 7vh, 5rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-soft);
  font: 400 0.66rem var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.footer-clock { display: inline-flex; align-items: center; gap: 0.6rem; }

.footer-watermark {
  font: 800 23vw / 0.72 var(--font-display);
  text-align: center; text-transform: uppercase; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 242, 238, 0.07);
  transform: translateY(24%);
  user-select: none; pointer-events: none;
}

/* ---------- blog ---------- */
.blog-page main {
  max-width: 1100px; margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2rem, 5vh, 3.5rem)) var(--gutter) 4rem;
}
.nav-links a.is-active { color: var(--text); }

/* index */
.blog-index .section-title { margin-top: 1.4rem; }
.blog-list { border-top: 1px solid var(--line); margin-top: clamp(2rem, 5vh, 3rem); }
.blog-row {
  display: grid;
  grid-template-columns: 4rem 1fr 3.4rem;
  align-items: center; gap: 1.6rem;
  padding: 1.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.16s linear, padding 0.25s var(--ease-out);
}
.blog-row-main h2 {
  font: 700 clamp(1.15rem, 2vw, 1.6rem) var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  transition: color 0.16s;
}
.blog-row-main p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-top: 0.4rem; max-width: 72ch; transition: color 0.16s; }
.blog-row-meta {
  display: block; margin-top: 0.7rem;
  font: 400 0.66rem var(--font-mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.16s;
}
.blog-row:hover { background: var(--acid); padding-inline: 1.4rem; }
.blog-row:hover .blog-row-main h2, .blog-row:hover .service-arrow { color: #0a0a0b; }
.blog-row:hover .blog-row-main p { color: rgba(10, 10, 11, 0.75); }
.blog-row:hover .blog-row-meta, .blog-row:hover .service-idx { color: rgba(10, 10, 11, 0.65); }
.blog-row:hover .service-arrow { transform: translateX(8px) rotate(-45deg); }

/* post */
.post { max-width: 820px; margin: 0 auto; }
.post-head .meta-row a { color: inherit; }
.post-head .meta-row a:hover { color: var(--acid); }
.post-title {
  font: 800 clamp(1.7rem, 4.4vw, 3.3rem) / 1.06 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.02em;
  margin-top: 1.4rem;
  hyphens: auto; overflow-wrap: anywhere;
}
.post-byline {
  margin: 1rem 0 0;
  font: 600 0.68rem var(--font-body); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.post-body { margin-top: clamp(2.2rem, 5vh, 3.2rem); max-width: 68ch; }
.post-body p { color: var(--muted); font-size: 1.04rem; line-height: 1.78; margin-bottom: 1.15rem; }
.post-body .post-lead { color: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.7; margin-bottom: 1.6rem; }
.post-body strong { color: var(--text); font-weight: 700; }
.post-body a { color: var(--text); border-bottom: 1px solid var(--acid); transition: color 0.2s, background-color 0.2s; }
.post-body a:hover { background: var(--acid); color: #0a0a0b; }
.post-body h2 {
  font: 700 clamp(1.3rem, 2.4vw, 1.8rem) / 1.18 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
  margin: 2.6rem 0 1rem;
  hyphens: auto; overflow-wrap: anywhere;
}
.post-body h3 {
  font: 700 clamp(1.05rem, 1.7vw, 1.25rem) var(--font-display);
  text-transform: uppercase;
  margin: 2rem 0 0.8rem;
}
.post-body ul { margin: 0 0 1.3rem; }
.post-body li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.post-body li::before { content: "—"; position: absolute; left: 0; color: var(--acid); }
.post-quote {
  font: 700 clamp(1.25rem, 2.4vw, 1.7rem) / 1.35 var(--font-display);
  color: var(--text);
  border-left: 2px solid var(--acid);
  padding-left: 1.4rem;
  margin: 2.4rem 0;
}
.post-callout {
  border: 1px solid var(--line); border-left: 2px solid var(--acid);
  background: var(--acid-soft);
  padding: 1.2rem 1.4rem; margin: 2rem 0;
  color: var(--text); font-size: 1rem; line-height: 1.7;
}
.post-cta {
  margin-top: clamp(3rem, 7vh, 4.5rem);
  border: 1px solid var(--line); background: var(--bg-2);
  padding: clamp(1.8rem, 4vw, 3rem);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.post-cta h2 {
  font: 800 clamp(1.5rem, 3vw, 2.2rem) var(--font-display);
  text-transform: uppercase; letter-spacing: -0.01em;
}
.post-cta p { color: var(--muted); max-width: 48ch; font-size: 1rem; line-height: 1.7; }
.post-cta .btn { margin-top: 0.6rem; }
.post-back { margin-top: 2.5rem; font-size: 0.95rem; }

@media (max-width: 640px) {
  .blog-row { grid-template-columns: 2.6rem 1fr 2.2rem; }
  .blog-row:hover { padding-inline: 0.6rem; }
}

/* ---------- legal pages ---------- */
.legal-page main {
  max-width: 860px; margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(2rem, 5vh, 3.5rem)) var(--gutter) 5rem;
}
.legal-page h1 {
  font: 800 clamp(1.7rem, 5vw, 3.4rem) / 1.04 var(--font-display);
  text-transform: uppercase; letter-spacing: -0.02em;
  margin: 1.4rem 0 2.8rem;
  hyphens: auto; overflow-wrap: anywhere;
}
.legal-doc h2 {
  font: 700 1rem var(--font-display);
  text-transform: uppercase; letter-spacing: 0.02em;
  margin: 2.4rem 0 0.7rem;
  hyphens: auto; overflow-wrap: anywhere;
}
.legal-doc p { color: var(--muted); margin-bottom: 1rem; max-width: 78ch; overflow-wrap: anywhere; }
.legal-doc .legal-note {
  border-left: 2px solid var(--acid); background: var(--acid-soft);
  padding: 1rem 1.3rem; color: var(--text);
}
.legal-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font: 400 0.7rem var(--font-mono); letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
}
.legal-foot a { color: var(--muted); }
.legal-foot a:hover, .legal-foot .footer-cookies:hover { color: var(--acid); }
.legal-foot .footer-cookies { font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* ---------- breakpoints ---------- */
@media (min-width: 901px) {
  /* pinned horizontal section must be exactly viewport-sized */
  .method { padding-block: 0; }
}

@media (max-width: 1100px) {
  .method-card { width: clamp(310px, 44vw, 480px); }
  .about-grid, .guarantee-grid { grid-template-columns: 1fr; }
  .cube-stage { min-height: 360px; }
  .about-visual { order: 2; }
}

@media (max-width: 900px) {
  :root { --nav-h: 4rem; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }

  .hero-stats { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .stat { padding: 1.2rem var(--gutter) 1.3rem; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .hero-scroll { display: none; }

  /* method falls back to vertical stack (pin disabled in JS) */
  .method { padding-inline: var(--gutter); }
  .method-pin { min-height: 0; padding-block: 0; }
  .method-head { padding-inline: 0; }
  .method-track { width: 100%; flex-direction: column; padding-inline: 0; }
  .method-card { width: 100%; min-height: 0; }
  .method-card h3 { padding-top: 3rem; }

  .case-body { grid-template-columns: 1fr; align-items: start; gap: 1.6rem; }
  .case-spark { max-width: 260px; }
  .case { position: relative; top: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-watermark { font-size: 26vw; }
}

@media (max-width: 480px) {
  /* longest words ("GUARANTEE.") must fit a 375px viewport */
  .section-title { font-size: clamp(1.85rem, 8.6vw, 2.6rem); }
}

@media (max-width: 640px) {
  .service-row { grid-template-columns: 2.6rem 1fr 2.2rem; }
  .service-tags { display: none; }
  .service-row:hover { padding-inline: 0.6rem; }

  /* static experience has no masked reveals — a controlled wrap is fine here */
  .hero-title, html[lang="en"] .hero-title { font-size: clamp(1.2rem, 6.5vw, 4rem); }
  .hero-sub { gap: 1.6rem; }

  .cube { width: 190px; height: 190px; }
  .cube-front, .cube-back, .cube-right, .cube-left, .cube-top, .cube-bottom { transform: none; }
  .cube { animation: none; transform-style: flat; }
  .cube-face { position: absolute; inset: 0; }
  .cube-face:not(.cube-front) { display: none; }
  .cube-stage { min-height: 260px; }
  .cube-shadow { display: none; }

  .guarantee-list li { grid-template-columns: 3.4rem 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html, body, a, button, [data-magnetic] { cursor: auto; }
  .cursor, .cursor-ring { display: none !important; }
  .marquee-track { animation: none; }
  .cube { animation: none; transform: rotateX(-16deg) rotateY(-32deg); }
  .label-dot, .about-frame::after { animation: none; }
  .hero-scroll-line::after { animation: none; transform: none; }
  .preloader { animation-delay: 1.2s; }
  .preloader-cube .pc-edge { animation: none; stroke-dashoffset: 0; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
