/* =========================================================
   Zielinski Ai Solution — FLOATING DISC PLATFORM EDITION
   Premium Cinematic · Glass Platforms · Deep Space
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body.slider-mode {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Design Tokens — COSMIC PREMIUM ---------- */
:root {
  --bg: #020208;
  --bg-elevated: #080816;
  --bg-card: rgba(6, 6, 20, 0.6);
  --bg-warm: rgba(12, 8, 28, 0.65);
  --border: rgba(100, 140, 255, 0.1);
  --border-strong: rgba(100, 160, 255, 0.2);
  --gold: #6ec6ff;
  --gold-light: #a8dcff;
  --gold-dark: #3a7bd5;
  --text: #e0e8f8;
  --text-muted: #7a8baa;
  --text-dim: #4a5670;
  --accent-warm: #7b68ee;
  --glow-blue: rgba(100, 180, 255, 0.4);
  --glow-purple: rgba(140, 100, 255, 0.3);
  --glow-cyan: rgba(0, 220, 220, 0.35);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --max-width: 1600px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  /* Disc transition timing — smooth cinematic */
  --disc-duration: 1.5s;
  --disc-ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --disc-ease-in: cubic-bezier(0.45, 0, 0.55, 1);
  --disc-ease-both: cubic-bezier(0.37, 0, 0.63, 1);
  --footer-h: 48px;
  --nav-h: 70px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); font-weight: 400; }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.6;
}

.italic { font-style: italic; color: var(--gold-light); }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 2.5rem);
}
section { padding: clamp(5rem, 12vw, 9rem) 0; position: relative; }

.section-header { max-width: 1100px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-header h2 { margin-top: 1.2rem; }
.section-header p { margin-top: 1.5rem; max-width: 900px; font-size: 1.05rem; }

/* ---------- Universe Canvas ---------- */
#universe-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Hyperspace Transition Overlays ---------- */
#particle-canvas { display: none; }
#hyperspace-flash {
  position: fixed;
  top: 0; left: 0; right: 0;
  bottom: 0;
  z-index: 45;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center,
    rgba(200, 230, 255, 0.95) 0%,
    rgba(120, 180, 255, 0.6) 30%,
    rgba(40, 80, 200, 0.2) 60%,
    transparent 100%
  );
  transition: none;
}
#hyperspace-flash.flash {
  animation: hyperspaceFlash 0.5s ease-out forwards;
}
@keyframes hyperspaceFlash {
  0%   { opacity: 0.9; }
  30%  { opacity: 0.5; }
  100% { opacity: 0; }
}

/* Content exit during hyperspace */
.slide.hyperspace-exit {
  animation: hyperspaceContentExit 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes hyperspaceContentExit {
  0%   { opacity: 1; transform: scale(1) translateZ(0); filter: blur(0px); }
  60%  { opacity: 0.5; transform: scale(1.02) translateZ(50px); filter: blur(3px); }
  100% { opacity: 0; transform: scale(1.08) translateZ(200px); filter: blur(12px); }
}

/* Content enter after hyperspace */
.slide.hyperspace-enter {
  animation: hyperspaceContentEnter 0.6s cubic-bezier(0, 0, 0.2, 1) forwards;
}
@keyframes hyperspaceContentEnter {
  0%   { opacity: 0; transform: scale(0.92) translateZ(-200px); filter: blur(10px); }
  50%  { opacity: 0.7; transform: scale(0.98) translateZ(-30px); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1) translateZ(0); filter: blur(0px); }
}

/* ---------- Navigation — Premium Glassmorphism ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: all .5s var(--ease-spring);
  /* Always solid background */
  background: rgba(2, 2, 10, 0.55);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-bottom: 1px solid rgba(100, 160, 255, 0.08);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(100, 160, 255, 0.04),
    0 0 60px -20px rgba(60, 100, 200, 0.08);
  transform: translateZ(0);  /* force own compositing layer — always renders above slider content */
}
.nav.scrolled,
.nav.solid {
  background: rgba(2, 2, 10, 0.55);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(100, 160, 255, 0.08);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(100, 160, 255, 0.04),
    0 0 60px -20px rgba(60, 100, 200, 0.08);
}

/* Animated border glow on nav */
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100, 160, 255, 0.3) 20%,
    rgba(140, 120, 255, 0.4) 50%,
    rgba(100, 160, 255, 0.3) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: navBorderGlow 4s ease-in-out infinite;
}
@keyframes navBorderGlow {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: 0% 0; }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.logo-mark {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-shadow: 0 0 25px rgba(100, 180, 255, 0.5), 0 0 50px rgba(100, 180, 255, 0.15);
}
.logo-full {
  font-size: 0.72rem;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--accent-warm));
  transition: width .4s var(--ease-spring);
  box-shadow: 0 0 10px var(--glow-blue);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 0.7rem 1.5rem;
  border: 1px solid var(--border-strong);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all .4s var(--ease-spring);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.nav-cta:hover {
  color: var(--bg);
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--glow-blue), 0 0 80px rgba(100, 180, 255, 0.1);
}
.nav-cta:hover::before { opacity: 1; }
.nav-cta span { position: relative; z-index: 1; }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: var(--text);
  transition: all .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle.open span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

/* ---------- Buttons — Premium ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all .4s var(--ease-spring);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #020208;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow:
    0 0 35px var(--glow-blue),
    0 20px 50px -20px rgba(100, 180, 255, 0.45),
    0 0 80px -10px rgba(100, 180, 255, 0.1);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 25px rgba(100, 160, 255, 0.15);
}
.btn .arrow { transition: transform .4s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Hero ---------- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(40, 70, 180, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(120, 60, 180, 0.06), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
}
.hero h1 {
  margin-top: 0.8rem;
  margin-bottom: 0.6rem;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line-inner { display: block; }

.hero-subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 300;
  max-width: 780px;
  margin-top: 0.6rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.hero-meta {
  position: relative;
  bottom: auto;
  left: auto; right: auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-meta-item { display: flex; align-items: center; gap: 0.8rem; }
.hero-meta-item .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--glow-blue), 0 0 30px rgba(100, 180, 255, 0.2);
  animation: dotPulseLive 2s ease-in-out infinite;
}

@keyframes dotPulseLive {
  0%, 100% { box-shadow: 0 0 8px var(--glow-blue); transform: scale(1); }
  50% { box-shadow: 0 0 20px var(--glow-blue), 0 0 40px rgba(100, 180, 255, 0.25); transform: scale(1.2); }
}

/* ---------- Page Header (subpages) ---------- */
.page-header {
  padding: 12rem 0 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(60, 90, 200, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(120, 60, 180, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-header .eyebrow { margin-bottom: 1.5rem; }
.page-header h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  max-width: 1200px;
}
.page-header p {
  max-width: 900px;
  margin-top: 1.8rem;
  font-size: 1.1rem;
}

/* ---------- ROI Banner ---------- */
.roi-banner {
  padding: 0 0 1.5rem;
}
.roi-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.8rem 2.5rem;
  background: linear-gradient(135deg, rgba(40, 180, 100, 0.08) 0%, rgba(40, 70, 180, 0.06) 100%);
  border: 1px solid rgba(80, 200, 120, 0.2);
  border-radius: 6px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
.roi-icon {
  font-size: 2rem;
  color: #50c878;
  text-shadow: 0 0 20px rgba(80, 200, 120, 0.4);
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(80, 200, 120, 0.1);
  border: 1px solid rgba(80, 200, 120, 0.2);
}
.roi-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.roi-text strong {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
.roi-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ---------- Services ---------- */
.services { background: transparent; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.services-grid .service-card.feature {
  grid-column: 1 / -1;
  min-height: auto;
}
.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 2.5rem;
  position: relative;
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
  cursor: default;
  min-height: auto;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  background: var(--bg-warm);
  box-shadow: inset 0 0 80px rgba(60, 90, 200, 0.04);
}
.service-card:hover .service-number {
  color: var(--gold);
  text-shadow: 0 0 20px var(--glow-blue);
}

.service-card.feature {
  padding: 4rem clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(40, 70, 180, 0.06) 0%, transparent 60%),
    var(--bg-card);
}
.service-card.feature h3 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 300;
  max-width: 720px;
}
.service-card.feature p {
  font-size: 1.05rem;
  max-width: 700px;
}

.service-number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  transition: color .5s var(--ease), text-shadow .5s var(--ease);
}
.service-card h3 {
  margin-bottom: 1.2rem;
  color: var(--text);
}
.service-card h3 .amp { color: var(--gold); font-style: italic; }
.service-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  flex-grow: 1;
}
.service-card ul {
  margin-top: 1.6rem;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.service-card.feature ul {
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2.5rem;
}
.service-card ul li {
  padding: 0.5rem 0;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: color .3s var(--ease);
}
.service-card:hover ul li { color: var(--text-muted); }
.service-card ul li::before {
  content: '';
  width: 6px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--glow-blue);
}

/* ---------- About ---------- */
.about { background: transparent; position: relative; }
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}
.about-visual {
  aspect-ratio: 3/4;
  background:
    linear-gradient(135deg, rgba(60, 90, 200, 0.08) 0%, transparent 50%),
    linear-gradient(45deg, rgba(8, 6, 22, 0.9) 0%, rgba(4, 4, 14, 0.95) 100%);
  border: 1px solid var(--border-strong);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
  overflow: hidden;
  border-radius: 4px;
  box-shadow:
    0 0 50px rgba(40, 70, 180, 0.06),
    0 40px 80px -30px rgba(0, 0, 0, 0.5);
}
.about-visual::before {
  content: '';
  position: absolute;
  top: 2rem; left: 2rem;
  width: 40px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--glow-blue);
}
.about-visual::after {
  content: 'JZ';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 300;
  color: rgba(80, 130, 255, 0.06);
  letter-spacing: -0.05em;
}
.about-visual-meta {
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.about-visual-meta small {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  margin-top: 0.3rem;
  letter-spacing: 0.18em;
}

.about-content h2 { margin-top: 1.2rem; margin-bottom: 2rem; }
.about-content p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.about-signature {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-light);
}
.about-signature small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.stat {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.2rem;
}
.stat-value {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 25px rgba(100, 180, 255, 0.3);
}
.stat-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* ---------- Cases / References ---------- */
.cases { background: transparent; }
.cases-list { margin-top: 1rem; }

.case-item {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1.2fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 0;
  border-top: 1px solid var(--border);
  transition: all .4s var(--ease-spring);
  position: relative;
  cursor: pointer;
}
.case-item:last-child { border-bottom: 1px solid var(--border); }
.case-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--accent-warm));
  transition: width .6s var(--ease-spring);
  box-shadow: 0 0 12px var(--glow-blue);
}
.case-item:hover { padding-left: 1.5rem; }
.case-item:hover::before { width: 100%; }
.case-item:hover .case-name { color: var(--gold-light); }

.case-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.case-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 400;
  transition: color .4s var(--ease);
}
.case-name em { font-style: italic; color: var(--gold); font-weight: 400; }
.case-type {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.case-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: all .4s var(--ease-spring);
}
.case-item:hover .case-arrow { color: var(--gold); transform: translateX(6px); }

/* Case detail expandable */
.case-detail {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease-spring), padding .4s var(--ease);
  padding: 0;
}
.case-item.open .case-detail {
  max-height: 600px;
  padding: 1.5rem 0 1rem;
}
.case-item.open .case-arrow { transform: rotate(90deg); color: var(--gold); }
.case-detail-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px dashed var(--border);
}
.case-detail-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.case-detail-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.case-detail-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Contact ---------- */
.contact { background: transparent; position: relative; overflow: hidden; }
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(60, 90, 200, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(3rem, 8vw, 6rem);
  align-items: start;
}
.contact-info h2 { margin-top: 1.2rem; margin-bottom: 2rem; }
.contact-info p {
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}
.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.contact-details li {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.2rem;
}
.contact-details .label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}
.contact-details .value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  transition: color .3s var(--ease), text-shadow .3s var(--ease);
}
.contact-details a.value:hover { color: var(--gold-light); text-shadow: 0 0 15px var(--glow-blue); }

.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 4px;
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.4),
    0 40px 80px -30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: visible;
}
/* Holographic border shimmer on form */
.contact-form::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 5px;
  background: linear-gradient(135deg,
    rgba(100, 160, 255, 0.15),
    transparent 40%,
    transparent 60%,
    rgba(140, 100, 255, 0.1)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.contact-form:focus-within::before { opacity: 1; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  margin-bottom: 1.8rem;
  position: relative;
}
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 0.7rem 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  font-weight: 300;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form-group select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  font-weight: 300;
}
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(255, 255, 255, 0.03);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%236ec6ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  padding-left: 0.75rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.form-group select:hover {
  border-color: var(--gold-dark);
  background-color: rgba(255, 255, 255, 0.05);
}
.form-group select:focus {
  border-color: var(--gold);
  background-color: rgba(100, 180, 255, 0.04);
  box-shadow: 0 0 16px rgba(100, 180, 255, 0.15), 0 0 4px rgba(100, 180, 255, 0.08);
}
.form-group select option {
  background: #0a0a1a;
  color: var(--text);
  padding: 0.5rem;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 2px 12px rgba(100, 180, 255, 0.15);
}
.form-group select:focus {
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #020208;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all .4s var(--ease-spring);
  cursor: pointer;
  margin-top: 1rem;
  border-radius: 2px;
}
.form-submit:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-2px);
  box-shadow:
    0 0 35px var(--glow-blue),
    0 15px 40px -15px rgba(100, 180, 255, 0.45);
}
.form-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 1.2rem;
  text-align: center;
}
.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-align: center;
  display: none;
  border-radius: 4px;
}
.form-status.success {
  display: block;
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
  background: rgba(100, 160, 255, 0.08);
}
.form-status.error {
  display: block;
  color: #e9b9b0;
  border: 1px solid rgba(220, 120, 100, 0.35);
  background: rgba(220, 120, 100, 0.06);
  border-radius: 4px;
}
.form-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none !important;
  box-shadow: none;
}

/* ---------- Legal Pages ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 2rem;
}
.legal-content h2 { margin-top: 3rem; margin-bottom: 1rem; font-size: 1.8rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 2rem; margin-bottom: 0.8rem; font-size: 1.3rem; color: var(--gold-light); }
.legal-content p { margin-bottom: 1.2rem; font-size: 1rem; }
.legal-content ul { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-muted); }
.legal-content ul li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--gold-light); border-bottom: 1px solid var(--border-strong); }
.legal-content a:hover { color: var(--gold); }
.legal-content strong { color: var(--text); font-weight: 500; }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease-spring), transform .9s var(--ease-spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.6s; }

/* Hero entrance */
.hero h1 .line-inner {
  transform: translateY(110%);
  animation: lineUp 1.2s var(--ease-spring) forwards;
}
.hero h1 .line:nth-child(1) .line-inner { animation-delay: 0.2s; }
.hero h1 .line:nth-child(2) .line-inner { animation-delay: 0.35s; }
.hero h1 .line:nth-child(3) .line-inner { animation-delay: 0.5s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero .eyebrow {
  opacity: 0;
  animation: fadeUp 1s var(--ease-spring) forwards;
  animation-delay: 0.1s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* =========================================================
   FLOATING DISC PLATFORM SYSTEM
   Glass/crystal discs floating in the universe
   ========================================================= */

.slider-viewport {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 1;
  perspective: 1800px;
  perspective-origin: 50% 50%;
  isolation: isolate;        /* contain 3D stacking so children can't escape above nav */
}

.slider-track {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  transform-style: preserve-3d;
}

.slide {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ========== The Disc Platform (invisible container — content only) ========== */
.disc-platform {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-x: hidden;

  /* Flex container — children use margin:auto for centering */
  display: flex;
  flex-direction: column;

  /* No visible disc — transparent container */
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding-top: var(--nav-h);
  padding-bottom: calc(var(--footer-h) + 16px);
  padding-left: 0;
  padding-right: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Kontakt slide: no special footer handling needed (footer is now global fixed) */
#kontakt .disc-platform {
  justify-content: flex-start;
}
#kontakt .slide-inner {
  min-height: auto;
  margin-top: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}


.disc-platform::-webkit-scrollbar { width: 5px; }
.disc-platform::-webkit-scrollbar-thumb { background: rgba(100, 160, 255, 0.25); border-radius: 3px; }

/* Hidden — disc visual elements removed */
.disc-glow,
.disc-reflection { display: none; }


/* ========== Active Slide State ========== */
.slide.slide-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

.slide.slide-active .disc-platform {
  /* No floating animation — content stays still */
}


/* ========== DISC TRANSITION KEYFRAMES — SMOOTH CINEMATIC ========== */

/* --- Forward: current slides LEFT, new comes from RIGHT --- */

.slide.disc-exit-left {
  z-index: 5;
  pointer-events: none;
  animation: discFlyOutLeft var(--disc-duration) var(--disc-ease-both) forwards;
}

@keyframes discFlyOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
  20% {
    opacity: 0.95;
    transform: translateX(-3vw) translateZ(-60px) rotateY(2deg) scale(0.97);
    filter: blur(0px) brightness(0.95);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-18vw) translateZ(-250px) rotateY(6deg) scale(0.82);
    filter: blur(3px) brightness(0.7);
  }
  80% {
    opacity: 0.15;
    transform: translateX(-40vw) translateZ(-450px) rotateY(9deg) scale(0.6);
    filter: blur(7px) brightness(0.35);
  }
  100% {
    opacity: 0;
    transform: translateX(-55vw) translateZ(-600px) rotateY(11deg) scale(0.45);
    filter: blur(10px) brightness(0.15);
  }
}

.slide.disc-enter-right {
  z-index: 15;
  pointer-events: none;
  animation: discFlyInRight var(--disc-duration) var(--disc-ease-out) forwards;
}

@keyframes discFlyInRight {
  0% {
    opacity: 0;
    transform: translateX(55vw) translateZ(-600px) rotateY(-11deg) scale(0.45);
    filter: blur(10px) brightness(0.15);
  }
  25% {
    opacity: 0.35;
    transform: translateX(25vw) translateZ(-300px) rotateY(-6deg) scale(0.72);
    filter: blur(4px) brightness(0.55);
  }
  55% {
    opacity: 0.8;
    transform: translateX(7vw) translateZ(-80px) rotateY(-2deg) scale(0.94);
    filter: blur(1px) brightness(0.88);
  }
  80% {
    opacity: 0.96;
    transform: translateX(1.5vw) translateZ(-15px) rotateY(-0.4deg) scale(0.99);
    filter: blur(0px) brightness(0.97);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
}

/* --- Backward: current slides RIGHT, new comes from LEFT --- */

.slide.disc-exit-right {
  z-index: 5;
  pointer-events: none;
  animation: discFlyOutRight var(--disc-duration) var(--disc-ease-both) forwards;
}

@keyframes discFlyOutRight {
  0% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
  20% {
    opacity: 0.95;
    transform: translateX(3vw) translateZ(-60px) rotateY(-2deg) scale(0.97);
    filter: blur(0px) brightness(0.95);
  }
  50% {
    opacity: 0.6;
    transform: translateX(18vw) translateZ(-250px) rotateY(-6deg) scale(0.82);
    filter: blur(3px) brightness(0.7);
  }
  80% {
    opacity: 0.15;
    transform: translateX(40vw) translateZ(-450px) rotateY(-9deg) scale(0.6);
    filter: blur(7px) brightness(0.35);
  }
  100% {
    opacity: 0;
    transform: translateX(55vw) translateZ(-600px) rotateY(-11deg) scale(0.45);
    filter: blur(10px) brightness(0.15);
  }
}

.slide.disc-enter-left {
  z-index: 15;
  pointer-events: none;
  animation: discFlyInLeft var(--disc-duration) var(--disc-ease-out) forwards;
}

@keyframes discFlyInLeft {
  0% {
    opacity: 0;
    transform: translateX(-55vw) translateZ(-600px) rotateY(11deg) scale(0.45);
    filter: blur(10px) brightness(0.15);
  }
  25% {
    opacity: 0.35;
    transform: translateX(-25vw) translateZ(-300px) rotateY(6deg) scale(0.72);
    filter: blur(4px) brightness(0.55);
  }
  55% {
    opacity: 0.8;
    transform: translateX(-7vw) translateZ(-80px) rotateY(2deg) scale(0.94);
    filter: blur(1px) brightness(0.88);
  }
  80% {
    opacity: 0.96;
    transform: translateX(-1.5vw) translateZ(-15px) rotateY(0.4deg) scale(0.99);
    filter: blur(0px) brightness(0.97);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
}

/* --- Far jump (2+ slides): slightly more dramatic, same smooth feel --- */

.slide.disc-exit-far-left {
  z-index: 5;
  pointer-events: none;
  animation: discFlyOutFarLeft 1.6s var(--disc-ease-both) forwards;
}

@keyframes discFlyOutFarLeft {
  0% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) rotateX(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
  20% {
    opacity: 0.9;
    transform: translateX(-5vw) translateZ(-100px) rotateY(3deg) rotateX(1deg) scale(0.94);
    filter: blur(0.5px) brightness(0.9);
  }
  50% {
    opacity: 0.45;
    transform: translateX(-25vw) translateZ(-400px) rotateY(10deg) rotateX(3deg) scale(0.65);
    filter: blur(4px) brightness(0.55);
  }
  80% {
    opacity: 0.08;
    transform: translateX(-55vw) translateZ(-700px) rotateY(16deg) rotateX(5deg) scale(0.35);
    filter: blur(10px) brightness(0.2);
  }
  100% {
    opacity: 0;
    transform: translateX(-70vw) translateZ(-900px) rotateY(20deg) rotateX(6deg) scale(0.2);
    filter: blur(14px) brightness(0.05);
  }
}

.slide.disc-enter-far-right {
  z-index: 15;
  pointer-events: none;
  animation: discFlyInFarRight 1.7s var(--disc-ease-out) forwards;
}

@keyframes discFlyInFarRight {
  0% {
    opacity: 0;
    transform: translateX(70vw) translateZ(-900px) rotateY(-20deg) rotateX(-6deg) scale(0.2);
    filter: blur(14px) brightness(0.05);
  }
  20% {
    opacity: 0.2;
    transform: translateX(40vw) translateZ(-500px) rotateY(-12deg) rotateX(-3deg) scale(0.5);
    filter: blur(6px) brightness(0.4);
  }
  50% {
    opacity: 0.7;
    transform: translateX(12vw) translateZ(-150px) rotateY(-4deg) rotateX(-1deg) scale(0.88);
    filter: blur(2px) brightness(0.78);
  }
  75% {
    opacity: 0.94;
    transform: translateX(3vw) translateZ(-30px) rotateY(-0.8deg) rotateX(-0.2deg) scale(0.98);
    filter: blur(0px) brightness(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) rotateX(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
}

.slide.disc-exit-far-right {
  z-index: 5;
  pointer-events: none;
  animation: discFlyOutFarRight 1.6s var(--disc-ease-both) forwards;
}

@keyframes discFlyOutFarRight {
  0% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) rotateX(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
  20% {
    opacity: 0.9;
    transform: translateX(5vw) translateZ(-100px) rotateY(-3deg) rotateX(1deg) scale(0.94);
    filter: blur(0.5px) brightness(0.9);
  }
  50% {
    opacity: 0.45;
    transform: translateX(25vw) translateZ(-400px) rotateY(-10deg) rotateX(3deg) scale(0.65);
    filter: blur(4px) brightness(0.55);
  }
  80% {
    opacity: 0.08;
    transform: translateX(55vw) translateZ(-700px) rotateY(-16deg) rotateX(5deg) scale(0.35);
    filter: blur(10px) brightness(0.2);
  }
  100% {
    opacity: 0;
    transform: translateX(70vw) translateZ(-900px) rotateY(-20deg) rotateX(6deg) scale(0.2);
    filter: blur(14px) brightness(0.05);
  }
}

.slide.disc-enter-far-left {
  z-index: 15;
  pointer-events: none;
  animation: discFlyInFarLeft 1.7s var(--disc-ease-out) forwards;
}

@keyframes discFlyInFarLeft {
  0% {
    opacity: 0;
    transform: translateX(-70vw) translateZ(-900px) rotateY(20deg) rotateX(-6deg) scale(0.2);
    filter: blur(14px) brightness(0.05);
  }
  20% {
    opacity: 0.2;
    transform: translateX(-40vw) translateZ(-500px) rotateY(12deg) rotateX(-3deg) scale(0.5);
    filter: blur(6px) brightness(0.4);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-12vw) translateZ(-150px) rotateY(4deg) rotateX(-1deg) scale(0.88);
    filter: blur(2px) brightness(0.78);
  }
  75% {
    opacity: 0.94;
    transform: translateX(-3vw) translateZ(-30px) rotateY(0.8deg) rotateX(-0.2deg) scale(0.98);
    filter: blur(0px) brightness(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateZ(0) rotateY(0deg) rotateX(0deg) scale(1);
    filter: blur(0px) brightness(1);
  }
}


/* ========== Slide Inner Layout ========== */

.slide-inner {
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  min-height: calc(100dvh - var(--nav-h) - var(--footer-h));
  padding-top: clamp(1.5rem, 3vh, 3rem);
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.slide-landing .slide-inner {
  padding: 0;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - var(--footer-h));
  min-height: calc(100dvh - var(--nav-h) - var(--footer-h));
}

.slide-landing .hero {
  min-height: auto;
  flex: 1;
}

.slide-landing .counter-section {
  padding: 1.8rem 0;
  flex-shrink: 0;
}

.slide .page-header {
  padding: 0 0 clamp(2rem, 4vw, 3.5rem);
  border-bottom: none;
}
.slide .page-header::before {
  top: -180px;
  right: -120px;
}

.slide .services,
.slide .cases,
.slide .about,
.slide .contact {
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.slide-cta {
  margin-top: clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.slide-cta-left { text-align: left; margin-top: 2.5rem; }

/* ========== Staggered Content Entrance ========== */
/* Content appears naturally after particle reassembly — no extra stagger needed
   since particles already create a beautiful entrance effect */
.slide.slide-active .page-header .eyebrow,
.slide.slide-active .page-header h1,
.slide.slide-active .page-header p {
  animation: contentFadeUp 0.8s var(--disc-ease-out) both;
}
.slide.slide-active .page-header .eyebrow { animation-delay: 0.05s; }
.slide.slide-active .page-header h1 { animation-delay: 0.1s; }
.slide.slide-active .page-header p { animation-delay: 0.15s; }

.slide.slide-active .service-card,
.slide.slide-active .case-item,
.slide.slide-active .about-visual,
.slide.slide-active .about-content,
.slide.slide-active .contact-info,
.slide.slide-active .contact-form {
  animation: contentScaleUp 0.9s var(--disc-ease-out) both;
}
.slide.slide-active .service-card:nth-child(1) { animation-delay: 0.08s; }
.slide.slide-active .service-card:nth-child(2) { animation-delay: 0.16s; }
.slide.slide-active .service-card:nth-child(3) { animation-delay: 0.24s; }
.slide.slide-active .case-item:nth-child(1) { animation-delay: 0.08s; }
.slide.slide-active .case-item:nth-child(2) { animation-delay: 0.16s; }
.slide.slide-active .case-item:nth-child(3) { animation-delay: 0.24s; }
.slide.slide-active .about-visual { animation-delay: 0.08s; }
.slide.slide-active .about-content { animation-delay: 0.16s; }
.slide.slide-active .contact-info { animation-delay: 0.08s; }
.slide.slide-active .contact-form { animation-delay: 0.16s; }

@keyframes contentFadeUp {
  0%   { opacity: 0; transform: translateY(15px) scale(0.99); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes contentScaleUp {
  0%   { opacity: 0; transform: translateY(18px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== Premium Dot Navigation (HIDDEN) ========== */
.slide-dots {
  display: none !important;
}
.slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  transition: all .5s var(--ease-spring);
  cursor: pointer;
  border: 1.5px solid var(--text-dim);
  position: relative;
}
.slide-dots .dot-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all .5s var(--ease-spring);
}
.slide-dots .dot-label {
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  pointer-events: none;
  transition: all .4s var(--ease-spring);
  background: rgba(2, 2, 10, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.slide-dots .dot:hover .dot-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.slide-dots .dot:hover {
  border-color: var(--gold-dark);
  background: rgba(100, 160, 255, 0.15);
}
.slide-dots .dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--glow-blue), 0 0 35px rgba(100, 180, 255, 0.15);
}
.slide-dots .dot.active .dot-ring {
  border-color: rgba(100, 160, 255, 0.3);
  animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* ========== Slide Progress Bar ========== */
.slide-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 110;
  background: rgba(100, 160, 255, 0.04);
  overflow: hidden;
}
.slide-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--accent-warm));
  width: 0%;
  transition: width 0.8s var(--ease-spring);
  box-shadow: 0 0 12px var(--glow-blue);
}

/* ---------- Nav state ---------- */
/* Nav is always solid — no transparent override needed */

/* ---------- Honeypot ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Terminal / Typewriter ---------- */
.terminal {
  position: relative;
  z-index: 2;
  margin-top: 1.8rem;
  max-width: 620px;
  background: linear-gradient(180deg, rgba(6, 6, 20, 0.85) 0%, rgba(3, 3, 14, 0.9) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0;
  font-family: 'Menlo', 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--text);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow:
    0 30px 70px -30px rgba(0,0,0,0.7),
    0 0 40px rgba(40, 70, 180, 0.06),
    inset 0 1px 0 rgba(100, 160, 255, 0.04);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 1s var(--ease-spring) forwards;
  animation-delay: 1.5s;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }
.terminal-title {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.terminal-body {
  padding: 1rem 1.2rem;
  min-height: 150px;
  line-height: 1.7;
}
.terminal-line { display: block; white-space: pre-wrap; word-break: break-word; }
.terminal-line .prompt { color: var(--gold); margin-right: 0.5rem; }
.terminal-line .out    { color: var(--text-muted); }
.terminal-line.ok      { color: var(--gold-light); }
.terminal-caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--gold);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: caretBlink 1s steps(2, end) infinite;
  box-shadow: 0 0 10px var(--glow-blue);
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Terminal expanded (no subtitle/CTAs — more space) */
.terminal.terminal-expanded {
  margin-top: 2rem;
  max-width: 640px;
}
.terminal.terminal-expanded .terminal-body {
  min-height: 170px;
  padding: 1.2rem 1.4rem;
  font-size: 0.8rem;
  line-height: 1.75;
}

/* ---------- Counter strip ---------- */
.counter-section {
  background: rgba(2, 2, 10, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.8rem 0;
  backdrop-filter: blur(12px);
}
.counter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
.counter-item {
  text-align: left;
  border-left: 1px solid var(--border-strong);
  padding-left: 1.5rem;
}
.counter-value {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 30px rgba(100, 180, 255, 0.3);
}
.counter-value .unit {
  font-size: 0.5em;
  color: var(--gold-light);
  margin-left: 0.2em;
}
.counter-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.7rem;
}
.counter-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}
@media (max-width: 720px) {
  .counter-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Extended Reveal (directional) ---------- */
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX( 40px); }
.reveal-left.visible,
.reveal-right.visible { transform: translateX(0); }

/* ---------- 3D Tilt ---------- */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(0);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.tilt-card.is-tilting {
  transition: transform .08s linear, box-shadow .5s var(--ease);
  box-shadow:
    0 30px 70px -40px rgba(0,0,0,0.8),
    0 0 0 1px var(--border-strong),
    0 0 40px rgba(40, 70, 180, 0.06);
}
.tilt-card .tilt-inner {
  transform: translateZ(20px);
  transform-style: preserve-3d;
}
.tilt-card .tilt-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(100, 160, 255, 0.1) 0%,
    transparent 50%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.tilt-card.is-tilting .tilt-glare { opacity: 1; }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .tilt-card, .tilt-card.is-tilting {
    transform: none !important;
    transition: none;
  }
  .tilt-card .tilt-glare { display: none; }
}

/* ---------- Site Footer — fixed at bottom of viewport ---------- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.85rem 0;
  background: rgba(2, 2, 10, 0.55);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-top: 1px solid rgba(100, 160, 255, 0.08);
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(100, 160, 255, 0.04),
    0 0 60px -20px rgba(60, 100, 200, 0.08);
}

/* Animated border glow on footer — mirroring nav */
.footer-border {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(100, 160, 255, 0.3) 20%,
    rgba(140, 120, 255, 0.4) 50%,
    rgba(100, 160, 255, 0.3) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: navBorderGlow 4s ease-in-out infinite;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand .logo {
  font-size: 1.2rem;
}
.footer-brand .logo-full {
  font-size: 0.65rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a {
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color .3s var(--ease);
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--accent-warm));
  transition: width .4s var(--ease-spring);
  box-shadow: 0 0 10px var(--glow-blue);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-links a:hover::after { width: 100%; }

.footer-copy {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
  }
  .footer-links { gap: 1.5rem; font-size: 0.75rem; }
  .footer-brand .logo { font-size: 1rem; }
}

/* ---------- Page load ---------- */
body {
  opacity: 0;
  animation: pageFadeIn .7s var(--ease) .05s forwards;
}
body.page-leaving {
  animation: pageFadeOut .3s var(--ease) forwards;
}
@keyframes pageFadeIn  { to { opacity: 1; } }
@keyframes pageFadeOut { to { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card.feature { min-height: auto; }
  .service-card.feature ul { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { aspect-ratio: 16/9; max-width: 420px; }
  .case-item { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .case-item .case-type { display: none; }
  .case-detail-inner { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open {
    background: rgba(2, 2, 10, 0.95);
    backdrop-filter: blur(30px);
  }
  .nav.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    background: rgba(2, 2, 10, 0.98);
    border-bottom: 1px solid var(--border);
  }
  .nav.menu-open .nav-links li { padding: 0.9rem 2rem; border-top: 1px solid var(--border); }
  .hero { min-height: 90vh; padding-top: 7rem; }
  .hero-meta { position: static; margin-top: 3rem; }
  .page-header { padding: 9rem 0 4rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .logo-full { display: none; }
}

@media (max-width: 480px) {
  section { padding: 5rem 0; }
  .service-card { padding: 2.2rem 1.8rem; min-height: auto; }
  .service-card.feature { padding: 2.5rem 1.8rem; }
  .btn { padding: 1rem 1.6rem; font-size: 0.74rem; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr; }
}

/* =========================================================
   Mobile vertical fallback — simplified disc styling
   ========================================================= */
@media (max-width: 820px) {
  body.slider-mode { overflow: auto; height: auto; }

  .slider-viewport {
    position: static;
    inset: auto;
    overflow: visible;
    perspective: none;
  }
  .slider-track {
    display: block;
    width: 100%;
    height: auto;
    transform: none !important;
    transition: none !important;
    transform-style: flat;
  }
  .slide {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    overflow: visible;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    animation: none !important;
  }

  .disc-platform {
    border-radius: 0;
    margin: 0;
    transform: none !important;
    animation: none !important;
    border: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    overflow: visible;
    padding-top: 0;
    padding-bottom: 0;
  }

  .slide-inner {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: flex-start;
  }
  .slide-landing .slide-inner { padding: 0; }

  .site-footer {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
  }

  .slide .page-header {
    padding: 9rem 0 4rem;
    border-bottom: 1px solid var(--border);
  }
  .slide:first-child .page-header { padding-top: 9rem; }
  .slide .services,
  .slide .cases,
  .slide .about,
  .slide .contact {
    padding: clamp(4rem, 9vw, 6rem) 0;
  }

  .slide-dots,
  .slide-progress { display: none !important; }

  body.slider-mode .nav.solid,
  body.slider-mode .nav.scrolled {
    background: rgba(2, 2, 10, 0.82);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
  }

  .slide .page-header .eyebrow,
  .slide .page-header h1,
  .slide .page-header p,
  .slide .service-card,
  .slide .case-item,
  .slide .about-visual,
  .slide .about-content,
  .slide .contact-info,
  .slide .contact-form {
    animation: none !important;
  }
}

/* =========================================================
   Reduced motion adjustments
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .terminal-caret { display: none; }
  #universe-canvas { opacity: 0.3; }
  body { opacity: 1 !important; animation: none !important; }
  .slide { transition: opacity 0.2s ease !important; animation: none !important; }
  .slide.slide-active { opacity: 1 !important; transform: none !important; filter: none !important; }
  .slide:not(.slide-active) { opacity: 0 !important; }
  .nav.solid::after { animation: none !important; }
  .disc-platform { animation: none !important; transform: none !important; }
}

/* ========== NO-SCROLL: Viewport-Fit Overrides ========== */
/* Ensure disc-platform never scrolls (belt-and-suspenders) */
.disc-platform,
.disc-platform * { overflow-anchor: none; }

/* --- Global slide compaction --- */
.slide-inner {
  min-height: 0 !important;
  height: calc(100vh - var(--nav-h) - var(--footer-h));
  height: calc(100dvh - var(--nav-h) - var(--footer-h));
  padding-top: clamp(4rem, 8vh, 7rem);
  padding-bottom: clamp(0.8rem, 1.5vh, 1.5rem);
  justify-content: flex-start;
  overflow: hidden;
}
.slide-landing .slide-inner {
  height: calc(100vh - var(--nav-h) - var(--footer-h));
  height: calc(100dvh - var(--nav-h) - var(--footer-h));
  padding: 0;
}
.disc-platform {
  padding-bottom: var(--footer-h);
}

/* --- Page headers: balanced --- */
.slide .page-header {
  padding: 0 0 clamp(1rem, 2vh, 2rem);
}
.page-header .eyebrow { margin-bottom: 0.7rem; }
.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.page-header p {
  margin-top: 0.8rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Slide sections: comfortable padding --- */
.slide .services,
.slide .cases,
.slide .about,
.slide .contact {
  padding: clamp(0.6rem, 1.5vh, 1.5rem) 0 clamp(0.6rem, 1.5vh, 1.2rem);
}
.slide-cta { margin-top: clamp(0.8rem, 2vh, 2rem); }

/* --- LANDING: compact hero + counters --- */
.slide-landing .hero {
  padding-top: 0.5rem;
  padding-bottom: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
}
.terminal {
  margin-top: 1.2rem;
  max-width: 560px;
}
.terminal-body {
  padding: 0.7rem 1rem;
  min-height: 120px;
  line-height: 1.6;
  font-size: 0.74rem;
}
.slide-landing .counter-section {
  padding: 1.5rem 0;
  flex-shrink: 0;
}
.counter-value {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}
.counter-label {
  font-size: 0.72rem;
  margin-top: 0.4rem;
}
.counter-sub {
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

/* --- LEISTUNGEN: readable cards with breathing room --- */
.service-card {
  padding: 1.4rem 1.8rem;
}
.service-card.feature {
  padding: 1.8rem clamp(1.8rem, 3vw, 2.8rem);
}
.service-number {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.service-card.feature h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.service-card h3 { margin-bottom: 0.6rem; }
.service-card p {
  font-size: 0.88rem;
  line-height: 1.6;
}
.service-card.feature p {
  font-size: 0.92rem;
}
.service-card ul {
  margin-top: 0.8rem;
  font-size: 0.75rem;
}
.service-card ul li {
  padding: 0.35rem 0;
}

/* --- REFERENZEN: clear case items --- */
.case-item {
  padding: 1.6rem 0;
  gap: 1.5rem;
}
.case-name {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}
.case-meta { font-size: 0.72rem; }
.case-type { font-size: 0.85rem; }

/* --- ÜBER UNS: readable about --- */
.about-grid {
  gap: clamp(2rem, 4vw, 3.5rem);
}
.about-visual {
  aspect-ratio: 3/3.5;
}
.about-content h2 {
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}
.about-content p {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  line-height: 1.65;
}
.about-stats {
  margin-top: 1.2rem;
  gap: 1.2rem;
}
.stat { padding-top: 0.8rem; }
.stat-value { font-size: 1.8rem; }
.about-signature {
  margin-top: 1.2rem;
  padding-top: 1rem;
  font-size: 1.1rem;
}
.slide-cta-left { margin-top: 1rem; }

/* --- KONTAKT: comfortable form --- */
.contact-grid {
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-info h2 {
  margin-top: 0.8rem;
  margin-bottom: 1rem;
}
.contact-info p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.contact-details { gap: 1rem; }
.contact-details li { padding-top: 0.8rem; }
.contact-details .value { font-size: 1.1rem; }
.contact-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
}
.form-group input,
.form-group textarea {
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.form-group textarea {
  min-height: 70px;
  resize: none;
}
.form-row { gap: 1.2rem; }
.form-submit {
  padding: 0.9rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
}
.form-note { font-size: 0.72rem; margin-top: 0.5rem; }

/* ========== VIEWPORT FIT — Leistungen (#leistungen) ========== */
#leistungen .page-header {
  padding: 0;
}
#leistungen .page-header .eyebrow {
  margin-bottom: 0.2rem;
}
#leistungen .page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-top: 0.2rem;
}
#leistungen .page-header p {
  display: none;
}

/* ROI Banner — compact inline strip */
#leistungen .roi-banner {
  padding: 0 0 0.2rem;
}
#leistungen .roi-inner {
  padding: 0.45rem 1.2rem;
  gap: 0.8rem;
}
#leistungen .roi-icon {
  width: 26px;
  height: 26px;
  font-size: 1rem;
}
#leistungen .roi-text {
  gap: 0;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}
#leistungen .roi-text strong {
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
#leistungen .roi-text span {
  font-size: 0.8rem;
  line-height: 1.25;
}

/* Services section — minimal */
#leistungen .services {
  padding: 0.1rem 0 0;
}

/* Grid: 2x2, feature no longer spans full width */
#leistungen .services-grid {
  grid-template-columns: repeat(2, 1fr);
}
#leistungen .services-grid .service-card.feature {
  grid-column: auto;
}

/* Cards — bigger, still viewport-safe */
#leistungen .service-card {
  padding: 0.85rem 1.3rem;
}
#leistungen .service-card.feature {
  padding: 0.85rem 1.3rem;
  background: linear-gradient(135deg, rgba(40, 70, 180, 0.06) 0%, transparent 60%), var(--bg-card);
}
#leistungen .service-number {
  margin-bottom: 0.15rem;
  font-size: 0.78rem;
}
#leistungen .service-card h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}
#leistungen .service-card.feature h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
}
#leistungen .service-card p {
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}
#leistungen .service-card.feature p {
  font-size: 0.86rem;
  -webkit-line-clamp: 2;
}
#leistungen .service-card ul {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  gap: 0.06rem;
}
#leistungen .service-card ul li {
  padding: 0.12rem 0;
}
#leistungen .service-card ul li::before {
  width: 14px;
  margin-right: 0.4rem;
}
#leistungen .slide-cta {
  margin-top: 0.25rem;
}
#leistungen .slide-cta .btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

/* ========== VIEWPORT FIT — Referenzen (#referenzen) ========== */
#referenzen .page-header {
  padding: 0 0 0.8rem;
}
#referenzen .page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
#referenzen .page-header p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
#referenzen .cases {
  padding: 0.5rem 0 0.3rem;
}
#referenzen .case-item {
  padding: 1.3rem 0;
  gap: 1.5rem;
}
#referenzen .case-name {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}
#referenzen .case-meta { font-size: 0.72rem; }
#referenzen .case-type { font-size: 0.82rem; }
#referenzen .slide-cta {
  margin-top: 0.8rem;
}
.cases-more-hint {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--serif);
  text-align: center;
  line-height: 1.6;
  padding: 1rem 2rem;
  border-top: 1px solid var(--border);
}

/* ========== VIEWPORT FIT — Kontakt (#kontakt) ========== */
#kontakt .page-header {
  padding: 0 0 0.6rem;
}
#kontakt .page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
#kontakt .page-header p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ========== VIEWPORT FIT — Über uns (#ueber-uns) ========== */
#ueber-uns .page-header {
  padding: 0 0 0.6rem;
}
#ueber-uns .page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
#ueber-uns .page-header p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
}
#ueber-uns .about {
  padding: 0.6rem 0 0.4rem;
}
#ueber-uns .about-grid {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
#ueber-uns .about-visual {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
}
#ueber-uns .about-content .eyebrow {
  margin-bottom: 0.3rem;
  font-size: 0.68rem;
}
#ueber-uns .about-content h2 {
  margin-top: 0.3rem;
  margin-bottom: 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
#ueber-uns .about-content p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
}
#ueber-uns .about-stats {
  margin-top: 0.8rem;
  gap: 0.8rem;
}
#ueber-uns .stat {
  padding-top: 0.5rem;
}
#ueber-uns .stat-value {
  font-size: 1.5rem;
}
#ueber-uns .stat-label {
  font-size: 0.65rem;
  margin-top: 0.2rem;
}
#ueber-uns .about-signature {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  font-size: 1rem;
}
#ueber-uns .about-signature small {
  margin-top: 0.2rem;
  font-size: 0.65rem;
}
#ueber-uns .slide-cta-left {
  margin-top: 0.6rem;
}
#ueber-uns .slide-cta-left .btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

/* ========== Portrait Image in About ========== */
.about-portrait {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  z-index: 1;
}
#ueber-uns .about-visual {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  width: clamp(200px, 22vw, 300px);
  height: auto;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 40px rgba(40, 70, 180, 0.1),
    0 20px 60px -20px rgba(0, 0, 0, 0.5);
}
#ueber-uns .about-visual::after {
  display: none;
}
#ueber-uns .about-visual::before {
  display: none;
}
#ueber-uns .about-visual .about-visual-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  z-index: 3;
  display: none;
}
#ueber-uns .about-grid {
  grid-template-columns: auto 1fr;
  align-items: start;
}

/* ========== Custom Select Dropdown ========== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-wrapper select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.custom-select-trigger {
  width: 100%;
  padding: 0.5rem 2.2rem 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
  position: relative;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-trigger::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%236ec6ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform .3s var(--ease);
}
.custom-select-wrapper.open .custom-select-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}
.custom-select-trigger:hover {
  border-color: var(--gold-dark);
  background-color: rgba(255, 255, 255, 0.05);
}
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--gold);
  background-color: rgba(100, 180, 255, 0.04);
  box-shadow: 0 0 16px rgba(100, 180, 255, 0.15), 0 0 4px rgba(100, 180, 255, 0.08);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(8, 8, 24, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.25rem 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(100, 180, 255, 0.06),
    inset 0 1px 0 rgba(100, 160, 255, 0.06);
  max-height: 220px;
  overflow-y: auto;
}
.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-select-option {
  padding: 0.5rem 0.75rem 0.5rem 1.6rem;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 300;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select-option:hover {
  background: rgba(100, 180, 255, 0.08);
  color: var(--gold-light);
}
.custom-select-option.selected {
  color: var(--gold);
  background: rgba(100, 180, 255, 0.05);
}
.custom-select-option.selected::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 6px var(--glow-blue);
}
.custom-select-options::-webkit-scrollbar {
  width: 4px;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(100, 160, 255, 0.25);
  border-radius: 2px;
}
.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- Utility ---------- */
::selection { background: var(--gold); color: var(--bg); }
