/* ============================================================
   nudesign — Boutique Webdesign Studio
   ============================================================ */

/* ---------- Font ---------- */
@font-face {
  font-family: "Comfortaa";
  src: url("../assets/fonts/Comfortaa.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --purple: #7B01F7;
  --purple-lite: #a855f7;
  --purple-glow: #c77dff;
  --ink: #0b0710;
  --ink-2: #120a1c;
  --paper: #f5f1fb;
  --paper-dim: #b9a9d4;
  --paper-mute: #a294bd;
  --line: rgba(197, 160, 255, 0.14);
  --line-strong: rgba(197, 160, 255, 0.28);

  --display: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --pad: clamp(1.25rem, 5vw, 6rem);
  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

::selection { background: var(--purple); color: #fff; }

/* ============================================================
   BACKDROP — gradient blobs + grain
   ============================================================ */
.backdrop {
  position: fixed;
  inset: -70px;
  z-index: -2;
  overflow: hidden;
  will-change: transform;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(123, 1, 247, 0.16), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(168, 85, 247, 0.10), transparent 55%),
    var(--ink);
}
.backdrop__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 46vw; height: 46vw; top: -10vw; right: -8vw;
  background: radial-gradient(circle, var(--purple), transparent 70%);
  animation: float1 22s ease-in-out infinite; }
.blob-2 { width: 40vw; height: 40vw; bottom: -12vw; left: -6vw;
  background: radial-gradient(circle, #5a00b8, transparent 70%);
  animation: float2 28s ease-in-out infinite; }
.blob-3 { width: 30vw; height: 30vw; top: 40%; left: 50%;
  background: radial-gradient(circle, var(--purple-glow), transparent 70%);
  opacity: 0.22; animation: float3 26s ease-in-out infinite; }

@keyframes float1 { 50% { transform: translate(-6vw, 8vw) scale(1.12); } }
@keyframes float2 { 50% { transform: translate(7vw, -6vw) scale(1.15); } }
@keyframes float3 { 50% { transform: translate(-12vw, -4vw) scale(0.9); } }

.backdrop__grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  animation: grain 6s steps(6) infinite;
  pointer-events: none;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-3%, 4%); }
  80% { transform: translate(5%, -2%); }
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-glow));
  z-index: 200;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor { position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none; }
.cursor__dot, .cursor__ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor__dot {
  width: 7px; height: 7px;
  background: var(--purple-glow);
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--line-strong);
  transition: width .3s var(--ease), height .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  border-color: transparent;
  background: rgba(123, 1, 247, 0.18);
}
.cursor.is-hover .cursor__dot { background: #fff; }

/* project list: morph the cursor into an "Ansehen" pill */
.cursor__label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.4);
  white-space: nowrap;
  font-family: var(--body); font-size: .8rem; font-weight: 500; color: #fff;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cursor.is-view .cursor__ring {
  width: auto; height: auto;
  padding: .5rem .95rem; border-radius: 100px;
  background: var(--purple); border-color: transparent;
}
.cursor.is-view .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-view .cursor__dot { opacity: 0; }

body.no-cursor, body.no-cursor * { cursor: none; }

@media (hover: none), (pointer: coarse) { .cursor { display: none; } body.no-cursor, body.no-cursor * { cursor: auto; } }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad);
  transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s var(--ease);
}
.header.is-scrolled {
  padding: .85rem var(--pad);
  background: rgba(11, 7, 16, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.brand__mark { width: 30px; height: 30px; color: var(--paper); display: inline-block; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { transition: color .3s var(--ease); }
.brand:hover .brand__mark { color: var(--purple-glow); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative;
  padding: .55rem .9rem;
  font-size: .92rem;
  color: var(--paper-dim);
  border-radius: 100px;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .35rem;
  height: 1px;
  background: var(--purple-glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  margin-left: .5rem;
  padding: .6rem 1.2rem;
  font-size: .92rem;
  font-weight: 500;
  color: #fff;
  border-radius: 100px;
  background: var(--purple);
  box-shadow: 0 8px 30px -8px rgba(123, 1, 247, 0.8);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav__cta:hover { background: var(--purple-lite); box-shadow: 0 12px 40px -8px rgba(168, 85, 247, 0.9); }

/* language switch */
.lang {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: .6rem;
  padding: .3rem .7rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.lang__link { color: var(--paper-mute); transition: color .3s var(--ease); }
.lang__link:hover { color: var(--paper); }
.lang__link.is-active { color: var(--purple-glow); }
.lang__sep { color: var(--line-strong); }

.mobile-menu__lang {
  margin-top: 1rem;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: .06em;
  color: var(--paper-mute);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .5s var(--ease) .36s, opacity .5s var(--ease) .36s;
}
.mobile-menu.is-open .mobile-menu__lang { transform: translateY(0); opacity: 1; }
.mobile-menu__lang a { color: var(--paper-dim); }
.mobile-menu__lang a.is-active { color: var(--purple-glow); }
.mobile-menu__lang i { font-style: normal; opacity: .4; margin: 0 .2rem; }

.nav__burger { display: none; flex-direction: column; gap: 6px; padding: 10px; z-index: 110; }
.nav__burger span { width: 26px; height: 2px; background: var(--paper); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(11, 7, 16, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 8vw, 2.4rem);
  color: var(--paper);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease), color .3s;
}
.mobile-menu.is-open a { transform: translateY(0); opacity: 1; }
.mobile-menu a:nth-child(1) { transition-delay: .06s; }
.mobile-menu a:nth-child(2) { transition-delay: .12s; }
.mobile-menu a:nth-child(3) { transition-delay: .18s; }
.mobile-menu a:nth-child(4) { transition-delay: .24s; }
.mobile-menu a:nth-child(5) { transition-delay: .30s; }
.mobile-menu a:hover { color: var(--purple-glow); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.9rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn--primary {
  color: #fff;
  background: var(--purple);
  box-shadow: 0 12px 40px -10px rgba(123, 1, 247, 0.9);
}
.btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--purple-lite), var(--purple-glow));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px rgba(168, 85, 247, 1); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost {
  color: var(--paper);
  border: 1px solid var(--line-strong);
}
.btn--ghost::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(123, 1, 247, 0.14);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.btn--ghost:hover::before { transform: scaleX(1); }
.btn--ghost:hover { border-color: transparent; transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--pad) 4rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__inner { max-width: 62rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 2rem;
}
.hero__eyebrow i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--purple-glow);
  box-shadow: 0 0 14px 2px var(--purple-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .w {
  display: inline-block;
  transform: translateY(110%);
}
/* auto-play on load (no JS gate) → hero paints immediately, better LCP/Speed Index */
.hero__title .w { animation: word-up .85s var(--ease) both; }
@keyframes word-up { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero__title .line:nth-child(1) .w { animation-delay: .04s; }
.hero__title .line:nth-child(2) .w { animation-delay: .1s; }
.hero__title .line:nth-child(3) .w { animation-delay: .16s; }

/* above-the-fold hero content: reveal immediately via CSS instead of waiting for JS */
.hero .reveal { animation: hero-in .6s var(--ease) both; }
.hero__lead.reveal { animation-delay: .08s; }
.hero__actions.reveal { animation-delay: .16s; }
.hero__meta.reveal { animation-delay: .22s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero__title .accent {
  background: linear-gradient(100deg, var(--purple-lite), var(--purple-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__mark-inline {
  width: clamp(2.6rem, 9vw, 6.6rem);
  height: clamp(2.6rem, 9vw, 6.6rem);
  color: var(--purple-glow);
  vertical-align: -0.18em;
  margin: 0 .1em;
}
.hero__mark-inline svg {
  width: 100%; height: 100%;
  transform-origin: 50% 50%;
  animation: mark-float 5s ease-in-out infinite;
  filter: drop-shadow(0 6px 22px rgba(168, 85, 247, 0.55));
  transition: transform .9s var(--ease);
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes mark-float { 50% { transform: translateY(-8%); } }
/* playful full spin when the headline is hovered */
.hero__title:hover .hero__mark-inline svg { animation: none; transform: rotate(360deg); }

.hero__lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--paper-dim);
  margin-bottom: 2.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem;
  font-size: .85rem; letter-spacing: .06em; color: var(--paper-mute);
  text-transform: uppercase;
}
.hero__meta .dot { color: var(--purple-lite); }

.hero__scroll {
  position: absolute;
  bottom: 2.5rem; right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper-mute);
  writing-mode: vertical-rl;
}
.hero__scroll-line { width: 1px; height: 60px; background: linear-gradient(var(--purple-glow), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100% { transform: scaleY(.4); opacity: .4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--paper);
}
.marquee__track b { color: var(--purple-glow); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
}
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section__kicker {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--purple-glow); margin-bottom: 1.1rem;
}
.section__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* reveal base */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.service {
  position: relative;
  padding: 2.4rem 2rem 2.2rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  border: 1px solid var(--line);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--purple), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(168,85,247,0.22), transparent 65%);
  left: var(--mx, 50%); top: var(--my, 0%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.service:hover { border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(123,1,247,0.6); }
.service:hover::before, .service:hover::after { opacity: 1; }

.service__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--purple-glow);
  margin-bottom: 1.6rem;
  opacity: .8;
}
.service__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  letter-spacing: -0.01em;
  margin-bottom: .35rem;
}
.service__sub { color: var(--purple-glow); font-size: .9rem; margin-bottom: 1.2rem; letter-spacing: .02em; }
.service__text { color: var(--paper-dim); font-size: 1rem; margin-bottom: 1.6rem; }
.service__tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.service__tags li {
  font-size: .78rem;
  padding: .35rem .8rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--paper-dim);
  background: rgba(255,255,255,0.02);
}

/* ============================================================
   WORKS / PORTFOLIO
   ============================================================ */
/* interactive project list — big type, screenshot preview follows the cursor */
.plist { border-top: 1px solid var(--line-strong); }
.prow {
  position: relative;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.1rem, 3vw, 2.1rem) .3rem;
  border-bottom: 1px solid var(--line);
  color: var(--paper); text-decoration: none;
  transition: color .4s var(--ease), opacity .4s var(--ease);
}
.prow__no { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--purple-glow); flex: none; width: 3ch; }
.prow__title {
  margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 2.1vw, 1.9rem); line-height: 1.1; letter-spacing: -.015em;
  flex: 1; transition: transform .5s var(--ease);
}
.prow__tag {
  flex: none;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple-glow);
  padding: .28rem .7rem; border-radius: 100px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.prow__meta { font-size: .9rem; color: var(--paper-mute); white-space: nowrap; flex: none; transition: color .4s var(--ease); }
.prow__thumb { display: none; }
.plist:hover .prow { opacity: .35; }
.plist .prow:hover { opacity: 1; color: var(--purple-glow); }
.prow:hover .prow__title { transform: translateX(clamp(10px, 2vw, 28px)); }
.prow:hover .prow__meta { color: var(--paper-dim); }
/* auto-teaser state (first scroll-in) */
.plist.teasing .prow:not(.is-teaser) { opacity: .35; }
.prow.is-teaser { color: var(--purple-glow); }
.prow.is-teaser .prow__title { transform: translateX(clamp(10px, 2vw, 28px)); }

.ppreview {
  position: fixed; top: 0; left: 0; z-index: 110;
  width: min(32vw, 400px); aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity .35s var(--ease);
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, .75); border: 1px solid var(--line-strong);
  will-change: transform;
}
.ppreview.show { opacity: 1; }
.ppreview img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.12); transition: transform .5s var(--ease); }
.ppreview.show img { transform: scale(1); }

/* ============================================================
   PROCESS
   ============================================================ */
.process__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
.process__step {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}
.process__step::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-glow));
  transition: width 1s var(--ease);
}
.process__step.is-in::before { width: 100%; }
.process__idx { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--purple-glow); }
.process__step h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin: 1rem 0 .6rem; }
.process__step p { color: var(--paper-dim); font-size: .98rem; }

/* ============================================================
   STUDIO
   ============================================================ */
.studio__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.studio__headline {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.8rem;
}
.studio__lead { color: var(--paper-dim); font-size: clamp(1rem, 2vw, 1.18rem); margin-bottom: 1.2rem; max-width: 42ch; }
.studio__lead strong { color: var(--paper); font-family: var(--display); font-weight: 700; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.6rem; }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--purple-lite), var(--purple-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { font-size: .85rem; color: var(--paper-mute); letter-spacing: .04em; }

.studio__visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.studio__ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin-slow 40s linear infinite;
  will-change: transform;
}
.studio__ring::before, .studio__ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.studio__ring::before { inset: 14%; border: 1px solid var(--line); }
.studio__ring::after {
  width: 12px; height: 12px; top: -6px; left: calc(50% - 6px);
  background: var(--purple-glow); box-shadow: 0 0 20px 4px var(--purple-glow);
}
.studio__logo { width: 58%; color: var(--paper); filter: drop-shadow(0 20px 50px rgba(123,1,247,0.5)); }
.studio__logo svg { width: 100%; height: 100%; }

/* ============================================================
   REGION
   ============================================================ */
.region__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.region__lead { color: var(--paper-dim); font-size: clamp(1rem, 2vw, 1.18rem); margin-bottom: 1.2rem; max-width: 46ch; }
.region__lead strong { color: var(--paper); font-family: var(--display); font-weight: 700; }

.region__badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
  padding: .8rem 1.3rem .8rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(123,1,247,0.16), rgba(168,85,247,0.05));
}
.region__badge-langs {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
}
.region__badge-langs strong {
  background: linear-gradient(120deg, var(--purple-lite), var(--purple-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.region__badge-langs i { font-style: normal; color: var(--paper-mute); font-weight: 400; }
.region__badge-text { font-size: .92rem; color: var(--paper-dim); max-width: 22ch; line-height: 1.35; }

.region__visual { display: grid; place-items: center; }
.lakes { width: min(100%, 380px); height: auto; overflow: visible; }
.lakes .lake {
  fill: rgba(123, 1, 247, 0.10);
  stroke: var(--purple-glow);
  stroke-width: 1.4;
  mix-blend-mode: screen;
  transform-box: fill-box;
  transform-origin: center;
  animation: lake-breathe 7s ease-in-out infinite;
}
.lakes .lake:nth-child(2) { animation-delay: -2.3s; fill: rgba(168, 85, 247, 0.10); }
.lakes .lake:nth-child(3) { animation-delay: -4.6s; }
@keyframes lake-breathe { 50% { transform: scale(1.05); } }
.lakes .lake-label {
  fill: var(--paper);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-anchor: middle;
  opacity: .82;
}

.region__places {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  max-width: 60rem;
}
.region__places li {
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--paper-dim);
  background: rgba(255,255,255,0.02);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.region__places li:hover { border-color: var(--line-strong); color: var(--paper); transform: translateY(-2px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact__inner { max-width: 60rem; margin: 0 auto; }
.contact__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.5rem;
}
.contact__title .word { display: inline-block; }
.contact__title .char { display: inline-block; transform: translateY(1.1em); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.contact__title.is-in .char { transform: none; opacity: 1; }
.contact__lead { color: var(--paper-dim); font-size: clamp(1.05rem, 2.2vw, 1.28rem); max-width: 44rem; margin: 0 auto 3rem; }

.contact__mail {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
  color: var(--paper);
  padding-bottom: .15em;
}
.contact__mail::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-glow));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.contact__mail:hover { color: var(--purple-glow); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__note { margin-top: 2.5rem; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--paper-mute); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
}
.footer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.5rem; }
.footer__mark { width: 46px; color: var(--paper); display: inline-block; transition: color .3s var(--ease); }
.footer__mark svg { width: 100%; height: 100%; }
.footer__brand:hover .footer__mark { color: var(--purple-glow); }
.footer__back { font-size: .9rem; color: var(--paper-dim); transition: color .3s; }
.footer__back:hover { color: var(--paper); }
.footer__nap {
  font-style: normal;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--paper-mute);
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.footer__nap a { color: var(--paper-dim); text-decoration: underline; text-underline-offset: 2px; transition: color .3s var(--ease); }
.footer__nap a:hover { color: var(--purple-glow); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between;
  font-size: .82rem; color: var(--paper-mute);
}
.footer__legal { color: var(--paper-dim); text-decoration: none; transition: color .3s var(--ease); }
.footer__legal:hover { color: var(--purple-glow); }

/* ============================================================
   LEGAL MODAL (Impressum & Datenschutz)
   ============================================================ */
.legal {
  display: none;
  position: fixed; inset: 0; z-index: 400;
  align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(11, 7, 16, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.legal.is-open, .legal:target { display: flex; }
/* im Popup den nativen Cursor zeigen (Custom-Cursor liegt dahinter) */
.legal, .legal * { cursor: auto !important; }
.legal a, .legal button, .legal__close { cursor: pointer !important; }
.legal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(86vh, 920px);
  display: flex; flex-direction: column;
  background: #f6f3fb;
  border-radius: 22px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: legal-in .4s var(--ease);
}
@keyframes legal-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.legal__close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--purple); color: #fff;
  font-size: 1.7rem; line-height: 1; text-decoration: none;
  border: none; cursor: pointer;
  box-shadow: 0 10px 26px -6px rgba(123, 1, 247, 0.7);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.legal__close:hover { background: var(--purple-lite); transform: rotate(90deg); }
.legal__content {
  overflow-y: auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  padding-top: clamp(2.8rem, 5vw, 3.6rem);
  color: #2a2036;
  font-size: .93rem; line-height: 1.7;
  -webkit-overflow-scrolling: touch;
}
.legal__eyebrow { display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--purple); margin-bottom: .3rem; }
.legal__content h2 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: #12091f; margin: 2.2rem 0 .8rem; letter-spacing: -.01em; }
.legal__content h2:first-of-type { margin-top: 0; }
.legal__content h3 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: #12091f; margin: 1.6rem 0 .4rem; }
.legal__content p { margin: 0 0 .8rem; }
.legal__content ul { margin: 0 0 .9rem; padding-left: 1.2rem; }
.legal__content li { margin-bottom: .3rem; }
.legal__content a { color: var(--purple); text-decoration: underline; }
.legal__content strong { color: #12091f; }
.legal__meta { margin-top: 1.6rem; font-size: .8rem; color: #6b5f7d; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .services__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__visual { max-width: 340px; margin: 1rem auto 0; order: -1; }
  .region__grid { grid-template-columns: 1fr; }
  .region__visual { max-width: 320px; margin: 1rem auto 0; }
  .nav { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 560px) {
  .process__list { grid-template-columns: 1fr; }
  /* project list → stacked cards with thumbnails on touch/small screens */
  .ppreview { display: none; }
  .plist:hover .prow { opacity: 1; }
  .prow { flex-wrap: wrap; }
  .prow__title { font-size: clamp(1.25rem, 6vw, 1.8rem); flex: 1 1 auto; }
  .prow__meta { flex: none; }
  .prow__thumb { display: block; order: 3; width: 100%; margin-top: .9rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
  .prow__thumb img { width: 100%; display: block; }
  .hero__scroll { display: none; }
  .footer__bottom { flex-direction: column; gap: .4rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .hero__title .w, .contact__title .char { opacity: 1 !important; transform: none !important; }
  .cursor { display: none; }
}
