/* ═══ SKIP NAV ══════════════════════════════════════ */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: #36ff9c;
  color: #07090d;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-nav:focus { top: 0; }

/* ═══ FOCUS VISIBLE ══════════════════════════════════ */
:focus-visible {
  outline: 2px solid #36ff9c;
  outline-offset: 3px;
  border-radius: 4px;
}
/* Inputs haben eigene Focus-Styles */
.input-field:focus-visible { outline: none; }

/* ═══ FONT ════════════════════════════════════════ */
@font-face {
  font-family: "InterVar";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

/* ═══ CUSTOM PROPERTIES ══════════════════════════ */
:root {
  --bg: #07090d;
  --bg-soft: rgba(16, 21, 31, 0.75);
  --text: #f4f7fb;
  --muted: #9aa8bb;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #36ff9c;
  --accent-2: #00d6ff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-input: 12px;
  --shell: min(1240px, 92vw);
  --border-angle: 0deg;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 4px 20px rgba(54, 255, 156, 0.25);
}

/* ═══ SEMANTIC COLORS ═══════════════════════════ */
.text-success  { color: #34d399; }
.text-danger   { color: #f87171; }
.text-warning  { color: #fbbf24; }
.text-info     { color: #22d3ee; }
.bg-success-soft { background: rgba(52, 211, 153, 0.15); }
.bg-danger-soft  { background: rgba(248, 113, 113, 0.15); }
.bg-warning-soft { background: rgba(251, 191, 36, 0.15); }
.bg-info-soft    { background: rgba(96, 165, 250, 0.15); }

/* ═══ GLASSMORPHISM ═════════════════════════════ */
.glass {
  background: rgba(16, 21, 31, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line);
}
.glass-strong {
  background: rgba(16, 21, 31, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--line);
}
.card-soft {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ═══ INPUTS ════════════════════════════════════ */
.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 255, 156, 0.15);
}

/* ═══ FLASH MESSAGES ═══════════════════════════ */
.flash-success {
  background: rgba(54, 255, 156, 0.1);
  border: 1px solid rgba(54, 255, 156, 0.2);
  color: var(--accent);
}
.flash-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
.flash-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* ═══ RESET & BASE ═══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "InterVar", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
  cursor: none;
}
h1, h2, h3 { font-weight: 800; line-height: 1; }
p { color: var(--muted); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; color: inherit; cursor: none; font: inherit; }
ul, ol, li { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══ UTILITIES ══════════════════════════════════ */
.shell { width: var(--shell); margin: 0 auto; }
.gradient-text {
  background: linear-gradient(90deg, #36ff9c 0%, #00c8ff 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}
.gradient-text span {
  background: linear-gradient(90deg, #36ff9c 0%, #00c8ff 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes wachstum-reveal {
  0% {
    filter: drop-shadow(0 0 0px transparent);
    background-position: -250% center;
  }
  15% {
    filter: drop-shadow(0 0 28px rgba(0,214,255,0.95)) drop-shadow(0 0 56px rgba(54,255,156,0.55));
    background-position: -80% center;
  }
  45% {
    filter: drop-shadow(0 0 12px rgba(0,214,255,0.55));
    background-position: 60% center;
  }
  75% {
    filter: drop-shadow(0 0 4px rgba(0,214,255,0.2));
    background-position: 160% center;
  }
  100% {
    filter: drop-shadow(0 0 0px transparent);
    background-position: 250% center;
  }
}
.word--wachstum {
  background: linear-gradient(
    90deg,
    var(--accent)   0%,
    var(--accent-2) 18%,
    #ffffff         50%,
    var(--accent-2) 82%,
    var(--accent)   100%
  ) !important;
  background-size: 350% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: wachstum-reveal 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gradient-text--shimmer {
  background: linear-gradient(
    90deg,
    #36ff9c 0%,
    #00c8ff 25%,
    #a5b4fc 50%,
    #00c8ff 75%,
    #36ff9c 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2.5s ease-in-out forwards;
}
.split > span { display: inline-block; }
.split > span > span { display: inline-block; }
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.22em;
  margin-bottom: -0.22em;
}

/* ═══ FOUC GUARD — hero content hidden until JS boots ═══════ */
/* Prevents hero elements from flashing at their natural CSS state
   before GSAP applies from-state animation values.
   boot() calls gsap.set(".hero__content", { autoAlpha: 1 }) to reveal. */
.hero__content {
  opacity: 0;
}

/* ═══ CURSOR ═════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999999;
  will-change: transform;
  transition: width 0.35s cubic-bezier(0.19,1,0.22,1),
              height 0.35s cubic-bezier(0.19,1,0.22,1),
              background 0.3s, border-color 0.3s;
}
.cursor-dot {
  position: fixed;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 999999;
  will-change: transform;
}
.cursor__label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bg);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-view { width: 80px; height: 80px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-arrow { width: 60px; height: 60px; border-color: var(--accent); }
.cursor.is-drag { width: 70px; height: 70px; background: rgba(54,255,156,0.15); border-color: var(--accent); mix-blend-mode: normal; }

/* ═══ BACKGROUND LAYERS ══════════════════════════ */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 80%);
}
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    conic-gradient(from 220deg at 70% 20%, rgba(36,255,156,0.08) 0deg, transparent 60deg),
    conic-gradient(from 40deg at 20% 80%, rgba(80,80,255,0.07) 0deg, transparent 70deg),
    conic-gradient(from 140deg at 80% 70%, rgba(180,50,255,0.05) 0deg, transparent 50deg),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(10,20,40,0.5), transparent);
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
.bg-orb--1 {
  top: -15%; right: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(36,255,156,0.22) 0%, rgba(36,255,156,0.05) 40%, transparent 65%);
  filter: blur(100px);
}
.bg-orb--2 {
  bottom: -20%; left: -10%; width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(60,80,255,0.18) 0%, rgba(80,60,255,0.04) 40%, transparent 65%);
  filter: blur(100px);
}
.bg-orb--3 {
  top: 25%; left: 50%; width: 35vw; height: 35vw;
  background: radial-gradient(circle, rgba(200,50,255,0.12) 0%, rgba(180,50,255,0.03) 40%, transparent 65%);
  filter: blur(80px);
}
.bg-hotspot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}
.bg-hotspot--1 {
  top: 10%; right: 25%; width: 15vw; height: 15vw;
  background: radial-gradient(circle, rgba(36,255,200,0.35) 0%, transparent 55%);
  filter: blur(60px);
}
.bg-hotspot--2 {
  bottom: 25%; left: 15%; width: 12vw; height: 12vw;
  background: radial-gradient(circle, rgba(100,100,255,0.25) 0%, transparent 55%);
  filter: blur(50px);
}
.bg-hotspot--3 {
  top: 60%; right: 15%; width: 10vw; height: 10vw;
  background: radial-gradient(circle, rgba(255,50,200,0.15) 0%, transparent 55%);
  filter: blur(40px);
}
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}
@keyframes blob-slow {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(3%, -5%) scale(1.06); }
  40%  { transform: translate(-2%, -2%) scale(1.02); }
  60%  { transform: translate(-4%, 4%) scale(0.96); }
  80%  { transform: translate(2%, 2%) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blob-slow-reverse {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(-4%, 3%) scale(0.97); }
  40%  { transform: translate(3%, 2%) scale(1.04); }
  60%  { transform: translate(1%, -5%) scale(1.01); }
  80%  { transform: translate(-2%, -1%) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  25%  { transform: translate(-4%, 3%) scale(1.08) rotate(2deg); }
  50%  { transform: translate(3%, -4%) scale(0.95) rotate(-1deg); }
  75%  { transform: translate(-1%, 2%) scale(1.03) rotate(1deg); }
  100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-orb, .bg-hotspot { animation: none; }
}

/* ═══ NAVIGATION ═════════════════════════════════ */
.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  width: var(--shell);
  border: 1px solid var(--line);
  background: rgba(8, 11, 18, 0.92);
  border-radius: 18px;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 500;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand__delta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  display: inline-block;
  margin-right: 4px;
  font-size: 1.1em;
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.nav__link:hover { color: var(--text); }

/* ═══ BUTTONS ════════════════════════════════════ */
.btn {
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(54,255,156,0.12), rgba(0,214,255,0.08));
  color: var(--text);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}
.btn--primary {
  background: linear-gradient(90deg, rgba(54,255,156,0.2), rgba(0,214,255,0.15));
  border-color: rgba(54,255,156,0.25);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
}
.btn--large {
  padding: 16px 28px;
  font-size: 1rem;
}
.btn--nav {
  padding: 10px 16px;
  font-size: 0.82rem;
}
.btn__arrow {
  transition: transform 0.3s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ═══ HERO ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__delta {
  position: absolute;
  width: 50vw;
  max-width: 650px;
  height: auto;
  right: -8vw;
  top: 8vh;
  filter: blur(8px);
}
.hero__orbits {
  position: absolute;
  width: 80vw;
  max-width: 700px;
  height: auto;
  right: -10vw;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero__flare {
  position: absolute;
  top: 20%;
  left: -20%;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8) 40%, rgba(54,255,156,0.6) 50%, rgba(0,214,255,0.4) 60%, transparent);
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.hero__accent-line {
  width: clamp(120px, 20vw, 260px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent);
  margin-top: 18px;
  margin-bottom: 20px;
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left center;
}
.hero__eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.35rem, 8vw, 6.6rem);
  line-height: 1.02;
  max-width: 14ch;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  perspective: 1000px;
}
.hero__sub {
  max-width: 52ch;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  transform-origin: top;
}

/* ═══ MARQUEE ════════════════════════════════════ */
.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 6px 0;
}
.marquee-row {
  display: flex;
  width: max-content;
  overflow: hidden;
}
.marquee-row--reverse { margin-top: 4px; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  font-size: clamp(0.88rem, 2.2vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(215, 227, 242, 0.7);
  font-weight: 700;
  padding: 10px 0;
  flex-shrink: 0;
}
.marquee__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 16px;
  opacity: 0.5;
  vertical-align: middle;
}

/* ═══ SERVICES ═══════════════════════════════════ */
.services {
  height: 400vh;
  position: relative;
}
.services__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}
.services__left { position: relative; }
.services__nums {
  position: relative;
  height: 4rem;
  overflow: hidden;
  margin-bottom: 12px;
}
.services__num {
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(100%);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.services__num.is-active {
  opacity: 1;
  transform: translateY(0);
}
.services__titles {
  position: relative;
  min-height: 5rem;
}
.services__title {
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(60px);
}
.services__title.is-active {
  opacity: 1;
  transform: translateY(0);
}
.services__right {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.services__descs {
  position: relative;
  min-height: 5rem;
}
.services__desc {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 44ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  opacity: 0;
  transform: translateY(30px);
}
.services__desc.is-active {
  opacity: 1;
  transform: translateY(0);
}
.services__icons {
  position: relative;
  width: 140px;
  height: 140px;
}
.services__icon {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: rotateY(90deg);
}
.services__icon.is-active {
  opacity: 1;
  transform: rotateY(0deg);
}
.services__icon svg {
  width: 100%;
  height: 100%;
  border-radius: 28px;
}
.services__progress {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  grid-column: 1 / -1;
}
.services__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
}

/* ═══ GALLERY ════════════════════════════════════ */
.gallery__header {
  padding: 100px 0 40px;
}
.gallery__header h2 {
  font-size: clamp(2rem, 6vw, 4.5rem);
}
.gallery__progress-bar {
  height: 2px;
  background: var(--line);
  position: relative;
  margin-bottom: 0;
}
.gallery__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
}
.gallery__pin { height: 300vh; }
.gallery__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.gallery__fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 40%, rgba(54,255,156,0.1), transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(0,214,255,0.1), transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.35;
}
.gallery__track {
  display: flex;
  gap: 24px;
  padding: 0 4vw;
}

.project {
  width: min(78vw, 880px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
  min-height: 68vh;
  isolation: isolate;
}
.project__image-wrap {
  position: absolute;
  inset: 0;
}
.project__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(7,9,13,0.1) 40%, rgba(7,9,13,0.97) 100%);
  z-index: 1;
  pointer-events: none;
}
.project__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 28px 24px;
  background: transparent;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.project__title {
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  margin-bottom: 6px;
}
.project__desc {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.project__tags {
  display: flex;
  gap: 8px;
}
.project__tags span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.project {
  transition: transform 0.5s cubic-bezier(0.19,1,0.22,1);
}
.project__image {
  transition: transform 0.6s cubic-bezier(0.19,1,0.22,1);
}
.project:hover .project__image {
  transform: scale(1.06);
}
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.project:hover .project__link {
  opacity: 1;
  transform: translateY(0);
}

/* ═══ PHILOSOPHY ═════════════════════════════════ */
.philosophy__pin {
  height: 300vh;
}
.philosophy__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-content: center;
}
.philosophy__statement {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  max-width: 14ch;
}
.philosophy__statement .word {
  display: inline-block;
  color: #5c6f83;
  opacity: 1;
  margin: 0 0.15em;
}
.philosophy__detail {
  padding: 80px 0 120px;
}
.philosophy__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.philosophy__col h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 12px;
}
.philosophy__grid-mark {
  display: flex;
  justify-content: center;
}
.philosophy__grid-mark svg {
  width: 160px;
  height: 160px;
}
.philosophy__grid-mark .grid-rect {
}

/* ═══ STATS ══════════════════════════════════════ */
.stats {
  position: relative;
  padding: 100px 0 120px;
}
.stats__header {
  margin-bottom: 50px;
}
.stats__header h2 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255,255,255,0.02);
}
.stat__num-wrap {
  overflow: hidden;
}
.stat__number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.stat__bar {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin: 14px 0;
}
.stat__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
}
.stat__label {
  font-size: 0.88rem;
}

/* ═══ CTA ════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: 0 0 80px;
}
.cta {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 72px);
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 80% 0%, rgba(54,255,156,0.15), transparent 46%),
              linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
}
.cta__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), transparent 40%, var(--accent));
  z-index: -2;
  opacity: 0.35;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2px;
  animation: cta-glow-pulse 3s ease-in-out infinite;
}
@keyframes cta-glow-pulse {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.55; }
}
.cta__orbits {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}
@media (min-width: 961px) {
  .cta__orbits {
    transform: translate(18%, 22%);
  }
}
/* CTA orbit paths — CSS rotation (compositor thread, zero JS overhead) */
.cta__orbits .orbit-ring--1 {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbit-cw 30s linear infinite;
}
.cta__orbits .orbit-ring--2 {
  transform-box: fill-box;
  transform-origin: center;
  animation: orbit-ccw 40s linear infinite;
}
@keyframes orbit-cw  { to { transform: rotate(360deg);  } }
@keyframes orbit-ccw { to { transform: rotate(-360deg); } }
.cta__title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  margin-bottom: 14px;
  max-width: 22ch;
}
.cta__sub {
  max-width: 48ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 28px;
}
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ═══ FOOTER ═════════════════════════════════════ */
/* ═══ SECTION COLOR OVERLAYS ═════════════════════ */
.section-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
  z-index: 0;
}
.services .section-tint { background: radial-gradient(ellipse 90% 70% at 30% 50%, rgba(54,255,156,0.14), transparent 70%); }
.gallery .section-tint { background: radial-gradient(ellipse 90% 70% at 70% 40%, rgba(0,214,255,0.14), transparent 70%); }
.philosophy .section-tint { background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(180,50,255,0.12), transparent 65%); }
.stats .section-tint { background: radial-gradient(ellipse 90% 70% at 40% 60%, rgba(0,214,255,0.14), transparent 70%); }
.cta-section .section-tint { background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(54,255,156,0.18), transparent 60%); }

/* ═══ FOOTER REVEAL ══════════════════════════════ */
.footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  padding: 60px 0;
}
.site-content {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.site-content > section,
.site-content > header {
  position: relative;
}
.footer-spacer {
  position: relative;
  pointer-events: none;
}
.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.footer__wordmark {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  opacity: 0.15;
}
.footer__claim {
  max-width: 64ch;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
  padding-bottom: 2rem;
}
.footer__line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: scaleX(0);
}
.footer__bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__copy {
  font-size: 0.85rem;
}
.footer__top {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-content: center;
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-shrink: 0;
}
.footer__legal-link {
  font-size: 0.8125rem;
  color: var(--text-2);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}
.footer__legal-link:hover {
  opacity: 1;
  color: var(--accent);
  text-decoration-color: rgba(0, 214, 255, 0.4);
}
.footer__copy {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ SECTION UTILITY ════════════════════════════ */
.section {
  position: relative;
}

/* ═══ RESPONSIVE 960px ═══════════════════════════ */
@media (max-width: 960px) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
  .nav__links { display: none; }
  .hero__orbits { opacity: 0.3; right: -30vw; }
  .hero__delta { width: 85vw; right: -30vw; top: 10vh; }

  .services { height: auto; }
  .services__sticky {
    position: relative;
    height: auto;
    grid-template-columns: 1fr;
    padding: 80px 0;
    gap: 0;
  }
  .services__nums { display: none; }
  .services__sticky { display: flex; flex-direction: column; gap: 0; }
  .services__left, .services__right, .services__titles, .services__descs { display: contents; }
  .services__nums { display: none; }
  .services__icons { display: none; }
  .services__progress { display: none; }
  .services__title,
  .services__title.is-active {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    transform: none !important;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 4px;
    color: var(--text);
  }
  .services__desc,
  .services__desc.is-active {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 36px;
    max-width: none;
  }
  .services__title[data-service="0"] { order: 1; }
  .services__desc[data-service="0"] { order: 2; }
  .services__title[data-service="1"] { order: 3; }
  .services__desc[data-service="1"] { order: 4; }
  .services__title[data-service="2"] { order: 5; }
  .services__desc[data-service="2"] { order: 6; }
  .services__title[data-service="3"] { order: 7; }
  .services__desc[data-service="3"] { order: 8; }

  .gallery__pin { height: 250vh; }
  .project { width: 85vw; min-height: 55vh; }

  .philosophy__pin { height: 200vh; }
  .philosophy__statement { font-size: clamp(1.6rem, 5vw, 3rem); }
  .philosophy__cols { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
}

/* ═══ RESPONSIVE 600px ═══════════════════════════ */
@media (max-width: 600px) {
  .hero__title { font-size: clamp(1.8rem, 9vw, 3.1rem); }
  .philosophy__statement { font-size: clamp(2.2rem, 9vw, 3rem); }
  .stats__grid { grid-template-columns: 1fr; }
  .gallery__header h2 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .footer__wordmark { font-size: clamp(2rem, 14vw, 4rem); }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══ CONTACT FORM ═══════════════════════════════ */
.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  width: 100%;
  margin-top: 28px;
}
.form-honeypot {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.form-error {
  font-size: 0.8125rem;
  color: #ff5964;
  min-height: 1.2em;
  margin: -4px 0 0;
}
.form-error:empty { display: none; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  position: relative;
}
.form-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.875rem;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.19,1,0.22,1);
}
textarea ~ .form-label {
  top: 1rem;
  transform: none;
}
.input-field:focus ~ .form-label,
.input-field:not(:placeholder-shown) ~ .form-label {
  top: 6px;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
textarea.input-field:focus ~ .form-label,
textarea.input-field:not(:placeholder-shown) ~ .form-label {
  top: 4px;
  transform: none;
}
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 255, 156, 0.12);
}
.btn--submit {
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}
.btn__text, .btn__loader, .btn__check {
  display: inline-flex;
  align-items: center;
  transition: transform 0.4s, opacity 0.3s;
}
.btn__loader, .btn__check {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
.btn--submit.is-loading .btn__text { transform: translateY(-30px); opacity: 0; }
.btn--submit.is-loading .btn__loader { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.btn--submit.is-success .btn__text { transform: translateY(-30px); opacity: 0; }
.btn--submit.is-success .btn__loader { transform: translate(-50%, -50%) scale(0); opacity: 0; }
.btn--submit.is-success .btn__check { transform: translate(-50%, -50%) scale(1); opacity: 1; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.btn--submit.is-loading .btn__loader svg {
  animation: spin 0.8s linear infinite;
}

/* ═══ PAGE TRANSITION ═══════════════════════════ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  display: flex;
}
.page-transition__panel {
  flex: 1;
  background: var(--bg);
  transform: scaleY(0);
  transform-origin: bottom;
}
.page-transition.is-entering .page-transition__panel { transform-origin: bottom; }
.page-transition.is-leaving .page-transition__panel { transform-origin: top; }

/* ═══ DEV TERMINAL (Easter Egg) ══════════════════ */
.dev-terminal {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: min(520px, calc(100vw - 2rem));
  max-height: 340px;
  background: rgba(5, 8, 14, 0.97);
  border: 1px solid rgba(54, 255, 156, 0.25);
  border-radius: 12px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(54, 255, 156, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 99990;
  display: none;
  flex-direction: column;
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.775rem;
}
.dev-terminal.is-open { display: flex; }

.dev-terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
  flex-shrink: 0;
}
.dev-terminal__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.dev-terminal__dot--red    { background: #ff5f57; cursor: pointer; }
.dev-terminal__dot--yellow { background: #ffbd2e; cursor: pointer; }
.dev-terminal__dot--green  { background: #28ca42; cursor: pointer; }
.dev-terminal__dot--red:hover    { background: #ff3b30; }
.dev-terminal__dot--yellow:hover { background: #ffa500; }
.dev-terminal__dot--green:hover  { background: #00c936; }
.dev-terminal__bar-title {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.dev-terminal__close {
  background: none; border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.15s;
}
.dev-terminal__close:hover { color: #fff; }

.dev-terminal__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  scrollbar-width: thin;
  scrollbar-color: rgba(54, 255, 156, 0.15) transparent;
}
.dev-terminal__welcome {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 4px;
  line-height: 1.55;
}
.dev-terminal__line {
  color: rgba(54, 255, 156, 0.8);
  margin: 0;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}
.dev-terminal__hl  { color: #36ff9c; font-weight: 600; }
.dev-terminal__prompt { color: #36ff9c; flex-shrink: 0; }

.dev-terminal__input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
  flex-shrink: 0;
}
.dev-terminal__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #f4f7fb;
  font-family: inherit;
  font-size: inherit;
  caret-color: #36ff9c;
}

@media (max-width: 600px) {
  .dev-terminal { bottom: 1rem; right: 1rem; left: 1rem; width: auto; }
}

/* ═══ REDUCED MOTION ═════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  .split span { opacity: 1 !important; transform: none !important; }
  .philosophy__statement .word { opacity: 1 !important; color: var(--text) !important; }
  .services__title,
  .services__desc,
  .services__num,
  .services__icon {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__flare { display: none; }
  .gradient-text--shimmer { animation: none !important; }
  .bg-orb, .bg-hotspot { animation: none !important; }
  .section-tint { opacity: 0.6 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__accent-line { width: 120px !important; transform: scaleX(1) !important; }
  .hero__eyebrow { clip-path: none !important; }
  .page-transition { display: none; }
  .dev-terminal { display: none !important; }
}
