/* ============================================================
   VIBRANTCLUSTER — PIGMENT
   Plain CSS, mobile-first. No build step.
   Palette: Cadmium #E8420B · Ink #160C05 · Bone #FBF3E8 · Deep #B12E03
   Type: Bricolage Grotesque (display) · Space Grotesk (body)
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../fonts/BricolageGrotesque-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --pigment: #E8420B;
  --ink: #160C05;
  --bone: #FBF3E8;
  --deep: #B12E03;
  --ink-35: rgba(22, 12, 5, .35);
  --ink-70: rgba(22, 12, 5, .7);
  --bone-15: rgba(251, 243, 232, .15);
  --bone-60: rgba(251, 243, 232, .6);

  --font-display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --font-body: 'Space Grotesk', 'Helvetica Neue', sans-serif;

  --pad: clamp(20px, 4vw, 64px);
  --head-h: 64px;

  --fs-hero: clamp(2.6rem, 12vw, 9.5rem);
  --fs-h2: clamp(2.1rem, 6.5vw, 5.5rem);
  --fs-h3: clamp(1.35rem, 3.2vw, 2.4rem);
  --fs-body: clamp(1rem, 1.05vw + .6rem, 1.125rem);
  --fs-small: clamp(.85rem, .8vw + .5rem, .95rem);
  --fs-label: clamp(.68rem, .6vw + .45rem, .75rem);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--deep) var(--ink); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--pigment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 450;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--pigment); }

img, svg, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  background: var(--ink); color: var(--bone);
  padding: 10px 16px; font-size: var(--fs-small);
  transform: translateY(-250%);
  transition: transform .2s;
}
.skip-link:focus-visible { transform: none; }

/* ---------- Grain (sitewide material) ---------- */

.grain {
  position: fixed; inset: -4%; z-index: 90;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
}

/* ---------- Utility type ---------- */

.u-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sec-label {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: clamp(28px, 5vw, 64px);
}
.sec-label::after {
  content: ''; flex: 1; height: 1px;
  background: currentColor; opacity: .35;
  align-self: center;
}

/* ---------- Header ---------- */

.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top, 0);
  background: var(--pigment);
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; min-height: 44px;
}
.brand sup { font-size: .55em; font-weight: 600; margin-left: 2px; }

.head-links { display: none; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em;
}
.lang-switch a, .lang-switch span[aria-current] {
  padding: 12px 6px; min-height: 44px; display: inline-flex; align-items: center;
}
.lang-switch [aria-current] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.lang-switch .sep { opacity: .4; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
}
.menu-btn .bars { display: inline-block; width: 22px; }
.menu-btn .bars span {
  display: block; height: 2px; background: currentColor; margin: 5px 0;
  transition: transform .3s, opacity .3s;
}
.menu-open .menu-btn .bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn .bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.head-right { display: flex; align-items: center; gap: clamp(8px, 2vw, 24px); }

/* ---------- Mobile menu overlay ---------- */

.menu-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--head-h) + 24px) var(--pad) max(var(--pad), env(safe-area-inset-bottom));
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu-open .menu-overlay { visibility: visible; }
.menu-open .site-head { background: var(--ink); color: var(--bone); border-bottom-color: var(--bone-15); }

.menu-overlay nav { display: flex; flex-direction: column; }
.menu-overlay nav a {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  padding: 6px 0;
  border-bottom: 1px solid var(--bone-15);
  display: flex; align-items: baseline; justify-content: space-between;
}
.menu-overlay nav a em {
  font-family: var(--font-body); font-style: normal;
  font-size: var(--fs-label); letter-spacing: .16em; font-weight: 500;
  color: var(--pigment);
}
.menu-overlay .menu-meta {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--fs-small); color: var(--bone-60);
}
.menu-overlay .menu-meta a { padding: 12px 0; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Sections ---------- */

.sec { position: relative; padding: clamp(72px, 12vw, 160px) var(--pad); }

.sec--ink {
  background: var(--ink);
  color: var(--bone);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--head-h) + 24px) var(--pad) max(28px, env(safe-area-inset-bottom));
  overflow: clip;
}

.hero-canvas {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
}

.hero-meta {
  position: absolute;
  top: calc(var(--head-h) + clamp(20px, 4vh, 48px));
  left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -.03em;
  margin-bottom: clamp(20px, 4vh, 44px);
  max-width: 12ch;
}
.hero-title .accent { color: var(--bone); font-style: italic; font-weight: 700; }
.hero-line { display: block; }
.hero-line > span { display: inline-block; }

/* Entrance runs in pure CSS so the headline paints early and full-size
   (it stays the LCP element) and works without JS; GSAP only handles
   the rest of the page. Opacity starts near zero, not at zero, so the
   text registers its full paint size immediately. */
@media (prefers-reduced-motion: no-preference) {
  .hero-line > span { animation: hero-rise .9s cubic-bezier(.19, 1, .22, 1) .15s both; }
  .hero-line:nth-child(2) > span { animation-delay: .27s; }
  .hero-line:nth-child(3) > span { animation-delay: .39s; }
  .hero-line:nth-child(4) > span { animation-delay: .51s; }
  .hero .hero-meta, .hero .hero-foot { animation: hero-fade .8s ease-out .8s both; }
}
@keyframes hero-rise {
  from { transform: translateY(.5em); opacity: .3; }
  to { transform: none; opacity: 1; }
}
@keyframes hero-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-foot {
  display: flex; flex-direction: column; gap: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}
.hero-sub { max-width: 44ch; font-weight: 500; }
.hero-scroll {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  min-height: 44px;
}
.hero-scroll .line { width: 44px; height: 1px; background: var(--ink); position: relative; overflow: hidden; }
.hero-scroll .line::after {
  content: ''; position: absolute; inset: 0; background: var(--bone);
  transform: translateX(-100%);
  animation: scrollhint 2.2s ease-in-out infinite;
}
@keyframes scrollhint { 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- Studio / manifesto ---------- */

.manifesto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -.015em;
  max-width: 26ch;
}
.manifesto .w { display: inline-block; }
.manifesto em { font-style: italic; color: var(--pigment); }

.pillars { margin-top: clamp(48px, 8vw, 110px); }
.pillar {
  display: grid; gap: 10px 32px;
  padding: clamp(20px, 3vw, 36px) 0;
  border-top: 1px solid var(--bone-15);
}
.pillar:last-child { border-bottom: 1px solid var(--bone-15); }
.pillar h3 {
  font-family: var(--font-display); font-weight: 750;
  font-size: var(--fs-h3); letter-spacing: -.02em; line-height: 1.1;
}
.pillar p { color: var(--bone-60); max-width: 52ch; }

/* ---------- Services ---------- */

.services-list { list-style: none; counter-reset: svc; }
.service {
  counter-increment: svc;
  border-top: 1px solid var(--ink);
  position: relative;
}
.service:last-child { border-bottom: 1px solid var(--ink); }
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(18px, 3vw, 34px) 0;
}
.service-num {
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em;
}
.service-num::before { content: counter(svc, decimal-leading-zero); }
.service h3 {
  font-family: var(--font-display); font-weight: 750;
  font-size: clamp(1.6rem, 5.2vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.02em;
  transition: transform .45s cubic-bezier(.22,1,.36,1), color .45s;
}
.service p {
  grid-column: 2;
  max-width: 52ch; font-weight: 500;
  color: var(--ink-70);
}
.service .arrow {
  display: none;
  position: absolute; right: 0; top: clamp(22px, 3vw, 40px);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
@media (min-width: 761px) { .service .arrow { display: block; } }

@media (hover: hover) and (pointer: fine) {
  .service:hover h3 { font-style: italic; color: var(--bone); transform: translateX(14px); }
  .service:hover .arrow { transform: translate(6px, -6px); }
}

/* ---------- Work (reserved slots) ---------- */

.work-intro { max-width: 52ch; color: var(--bone-60); margin-bottom: clamp(32px, 5vw, 56px); font-weight: 500; }

.work-grid { display: grid; gap: clamp(20px, 3vw, 40px); }

.work-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--bone-15);
  background:
    repeating-linear-gradient(-45deg,
      transparent 0 14px,
      rgba(251, 243, 232, .05) 14px 15px);
  display: flex; align-items: flex-end;
  padding: clamp(14px, 2vw, 24px);
  overflow: clip;
}
.work-slot .slot-tag {
  display: flex; justify-content: space-between; align-items: baseline; width: 100%;
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--bone-60);
}
.work-slot .slot-tag b { color: var(--pigment); font-weight: 600; }

/* ---------- Process ---------- */

.process-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.step { border-top: 1px solid var(--ink); padding-top: 16px; }
.step-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1; letter-spacing: -.03em;
  color: var(--deep);
}
.step h3 {
  font-family: var(--font-display); font-weight: 750;
  font-size: var(--fs-h3); letter-spacing: -.02em;
  margin: 10px 0 8px;
}
.step p { color: var(--ink-70); font-weight: 500; max-width: 40ch; }

/* ---------- Contact ---------- */

.contact { min-height: 88dvh; display: flex; flex-direction: column; justify-content: center; }
.contact-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.02; letter-spacing: -.025em;
  max-width: 14ch;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.contact-title em { font-style: italic; color: var(--pigment); font-weight: 700; }
.contact-sub { color: var(--bone-60); max-width: 40ch; margin-bottom: clamp(28px, 4vw, 48px); font-weight: 500; }

.btn-mail {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--bone); color: var(--ink);
  font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: -.01em;
  padding: clamp(16px, 2vw, 22px) clamp(24px, 3vw, 40px);
  border-radius: 4px;
  min-height: 44px;
  transition: background .3s, color .3s;
}
.btn-mail .arrow { transition: transform .35s cubic-bezier(.22,1,.36,1); }
.arrow { font-variant-emoji: text; } /* never render ↗ as a color emoji */
@media (hover: hover) and (pointer: fine) {
  .btn-mail:hover { background: var(--pigment); color: var(--ink); }
  .btn-mail:hover .arrow { transform: translate(4px, -4px); }
}
.contact-meta {
  margin-top: clamp(36px, 6vw, 72px);
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--bone-60);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink); color: var(--bone);
  padding: 0 var(--pad) max(20px, env(safe-area-inset-bottom));
}
.footer-logo { border-top: 1px solid var(--bone-15); padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 40px); }
.footer-logo svg { width: 100%; height: auto; fill: var(--bone); }
.footer-row {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--bone-15);
  padding-top: 16px;
  font-size: var(--fs-small);
  color: var(--bone-60);
}
.footer-row nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-row a {
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color .3s;
}
@media (hover: hover) and (pointer: fine) {
  .footer-row a:hover { color: var(--pigment); }
}

/* ---------- Legal pages ---------- */

.legal-main {
  background: var(--ink); color: var(--bone);
  padding: calc(var(--head-h) + clamp(48px, 8vw, 110px)) var(--pad) clamp(72px, 10vw, 140px);
  min-height: 100dvh;
}
.legal-main .back-link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--pigment);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.legal-main h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--fs-h2); letter-spacing: -.025em; line-height: 1.02;
  margin-bottom: clamp(12px, 2vw, 24px);
}
.legal-note { color: var(--bone-60); font-weight: 500; max-width: 60ch; margin-bottom: clamp(36px, 6vw, 64px); }

.policy { max-width: 72ch; }
.policy h2, .policy h3, .policy h4, .policy h5 {
  font-family: var(--font-display); letter-spacing: -.015em; line-height: 1.15;
  margin: 2.2em 0 .5em;
}
.policy h2 { font-weight: 750; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.policy h3 { font-weight: 750; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.policy h4 { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.policy h5 { font-weight: 650; font-size: clamp(1rem, 1.8vw, 1.15rem); color: var(--bone-60); }
.policy p, .policy ul { margin-bottom: 1em; color: var(--bone-60); }
.policy ul { padding-left: 1.2em; }
.policy strong { color: var(--bone); font-weight: 600; }
.policy a { color: var(--pigment); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.policy table {
  width: 100%; border-collapse: collapse; margin: 0 0 1em;
  font-size: clamp(.9rem, 1.6vw, 1rem);
}
.policy th, .policy td {
  text-align: left; padding: .6em .9em;
  border-bottom: 1px solid var(--bone-15, rgba(255, 255, 255, .15));
  vertical-align: top;
}
.policy th { color: var(--bone); font-weight: 650; }
.policy td { color: var(--bone-60); }
.policy td:last-child { font-family: var(--font-mono, ui-monospace, monospace); }

/* ---------- Barba transition flood ---------- */

.flood {
  position: fixed; inset: 0; z-index: 250;
  pointer-events: none;
  visibility: hidden;
}
.flood span {
  position: absolute; inset: -1px;
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.flood .f-deep { background: var(--deep); }
.flood .f-pig { background: var(--pigment); }

/* ---------- Cursor (fine pointers only) ---------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed; top: 0; left: 0; z-index: 260;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--bone);
    mix-blend-mode: difference;
    pointer-events: none;
    transform: translate(-100px, -100px);
  }
}

/* ---------- Desktop layout ---------- */

@media (min-width: 761px) {
  .pillar { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .service-row { grid-template-columns: 3.5rem minmax(0, 7fr) minmax(0, 4fr); }
  .service p { grid-column: 3; justify-self: end; align-self: center; padding-right: clamp(32px, 4vw, 64px); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid .work-slot:nth-child(2) { transform: translateY(clamp(24px, 3vw, 56px)); }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid .step:nth-child(2) { margin-top: clamp(20px, 2.5vw, 44px); }
  .process-grid .step:nth-child(4) { margin-top: clamp(20px, 2.5vw, 44px); }
  .hero-foot { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

@media (min-width: 1000px) {
  .head-links { display: flex; gap: clamp(16px, 2vw, 36px); }
  .head-links a {
    font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    min-height: 44px; display: inline-flex; align-items: center;
    position: relative;
  }
  .head-links a::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: 10px;
    height: 1px; background: currentColor;
    transition: right .35s cubic-bezier(.22,1,.36,1);
  }
  .head-links a:hover::after, .head-links a:focus-visible::after { right: 0; }
  .menu-btn { display: none; }
}

/* ---------- Cookie consent (orestbida/cookieconsent v3) ---------- */

#cc-main {
  --cc-font-family: var(--font-body);
  --cc-bg: var(--ink);
  --cc-primary-color: var(--bone);
  --cc-secondary-color: rgba(251, 243, 232, .65);
  --cc-btn-primary-bg: var(--pigment);
  --cc-btn-primary-color: var(--ink);
  --cc-btn-primary-hover-bg: var(--bone);
  --cc-btn-primary-hover-color: var(--ink);
  --cc-btn-secondary-bg: transparent;
  --cc-btn-secondary-color: var(--bone);
  --cc-btn-secondary-border-color: rgba(251, 243, 232, .35);
  --cc-btn-secondary-hover-bg: rgba(251, 243, 232, .1);
  --cc-btn-secondary-hover-color: var(--bone);
  --cc-btn-secondary-hover-border-color: var(--bone);
  --cc-separator-border-color: rgba(251, 243, 232, .15);
  --cc-toggle-on-bg: var(--pigment);
  --cc-toggle-off-bg: #4a423c;
  --cc-toggle-on-knob-bg: var(--ink);
  --cc-toggle-off-knob-bg: var(--ink);
  --cc-toggle-readonly-bg: #2E2926;
  --cc-cookie-category-block-bg: rgba(251, 243, 232, .06);
  --cc-cookie-category-block-border: rgba(251, 243, 232, .12);
  --cc-cookie-category-block-hover-bg: rgba(251, 243, 232, .1);
  --cc-cookie-category-expanded-block-bg: transparent;
  --cc-overlay-bg: rgba(22, 12, 5, .65);
  --cc-footer-bg: #0F0C0A;
  --cc-footer-color: rgba(251, 243, 232, .65);
  --cc-footer-border-color: rgba(251, 243, 232, .12);
  --cc-btn-border-radius: 4px;
  --cc-modal-border-radius: 6px;
  --cc-link-color: var(--pigment);
  font-weight: 450;
}
#cc-main .cm__title, #cc-main .pm__title { font-family: var(--font-display); letter-spacing: -.01em; }
#cc-main a { text-underline-offset: 3px; }

.cc-footer-btn { /* footer "Cookie-Einstellungen" trigger */
  min-height: 44px; display: inline-flex; align-items: center;
  color: inherit; transition: color .3s;
}
@media (hover: hover) and (pointer: fine) {
  .cc-footer-btn:hover { color: var(--pigment); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-scroll .line::after { animation: none; }
}
