/* =========================================================
   lomar.ai — Design System v3
   Aesthetic: Monochrome Noir + Crimson Red
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --color-primary: #E11D48;
  --color-secondary: #1C1917;
  --color-background: #F5F3EE;
  --color-background-dark: #0A0A0A;
  --color-text: #1C1917;
  --color-text-light: #78716C;
  --color-text-on-dark: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-border: #E7E5E4;

  --font-family: 'Space Grotesk', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --font-size-headline: 48px;
  --font-size-subline: 24px;
  --font-size-body: 16px;
  --border-radius: 12px;

  /* Legacy mappings */
  --bg: var(--color-background);
  --bg-s: var(--color-surface);
  --bg-c: #eae7e0;
  --bg-e: #dfdbd2;

  --ac: var(--color-primary);
  --ac-rgb: 225, 29, 72;
  --ac-dim: rgba(var(--ac-rgb), 0.1);
  --ac-glow: rgba(var(--ac-rgb), 0.04);
  --ac-mid: rgba(var(--ac-rgb), 0.5);

  --w: var(--w);
  --w2: var(--w);
  --g: var(--color-text-light);
  --g2: var(--color-text-light);
  --bdr: var(--color-border);

  --ff: 'Space Mono', monospace;
  --fd: var(--font-family);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mw: 1160px;
  --r: var(--border-radius);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--g);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.022;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.wrap {
  width: 100%;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 32px;
}


/* ===== NAV ===== */

.nav {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  display: flex;
  justify-content: center;
  transition: all 0.5s var(--ease);
  pointer-events: none;
}

/* Base Pill Style (Always Active) */
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 10px 10px 10px 32px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  min-width: 800px;
  transition: all 0.5s var(--ease);
}

.nav.scrolled .nav-inner {
  background: rgba(245, 243, 238, 0.85);
  border-color: var(--bdr);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-logo {
  font-family: var(--fd);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.5s var(--ease);
}

.nav.scrolled .nav-logo {
  color: var(--color-secondary);
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac);
  box-shadow: 0 0 12px rgba(var(--ac-rgb), 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  position: relative;
}

.nav.scrolled .nav-links a {
  color: var(--color-text-light);
}

.nav-links a:hover {
  color: #fff;
}

.nav.scrolled .nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ac);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta-wrap {
  padding: 12px 28px;
  border-radius: 100px;
  background: var(--ac);
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em !important;
  transition: all 0.4s var(--ease) !important;
}

.nav-cta-wrap::after {
  display: none !important;
}

.nav-cta-wrap:hover {
  background: var(--w) !important;
  color: var(--color-surface) !important;
  box-shadow: 0 0 30px rgba(var(--ac-rgb), 0.3);
  transform: translateY(-1px);
}

.nav-oc-link {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-weight: 600 !important;
  transition: all 0.3s var(--ease) !important;
}

.nav.scrolled .nav-oc-link {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--color-secondary) !important;
}

.nav-oc-link::after {
  display: none !important;
}

.oc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac);
  /* Primary Action Color */
  box-shadow: 0 0 8px rgba(var(--ac-rgb), 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--ac-rgb), 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(var(--ac-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--ac-rgb), 0);
  }
}

.nav-oc-link:hover {
  background: rgba(var(--ac-rgb), 0.1);
  border-color: rgba(var(--ac-rgb), 0.3);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--w);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav.scrolled .nav-toggle span {
  background: var(--color-secondary);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: visible;
  background: var(--color-background-dark);
  border-bottom-right-radius: 15vw;
}

@media screen and (min-width: 1200px) {
  .hero {
    height: 75vh;
    min-height: 600px;
  }
}

.hero:before {
  content: "";
  background-color: var(--color-background-dark);
  position: absolute;
  top: 100%;
  left: 0;
  width: 15vw;
  height: 15vw;
  z-index: 1;
}

.hero:after {
  content: "";
  background-color: var(--color-background);
  /* Matches the background color of the next section */
  position: absolute;
  top: 100%;
  left: 0;
  width: 15vw;
  height: 15vw;
  border-top-left-radius: 15vw;
  z-index: 2;
}

.video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-bottom-right-radius: 15vw;
  pointer-events: none;
  z-index: 10;
  /* Higher than content */
  background: #000;
  mix-blend-mode: difference;
  /* Video layer acts as the blender */
}

#video-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  min-width: 100%;
  background-position: center center;
  background-size: cover;
  object-fit: cover;
  transform: rotate(180deg);
  object-position: 0 0;
  /* Pulled waves higher toward text */
  -webkit-mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
  mask-image: linear-gradient(to top, black 0%, black 50%, transparent 100%);
}

@media screen and (min-width: 1200px) {
  .hero {
    height: 75vh;
  }

  #video-bg {
    object-position: 0 0;
  }
}

@media screen and (max-width: 1199px) {
  #video-bg {
    object-position: 0 -5vw;
  }
}

@media screen and (max-width: 575px) {
  #video-bg {
    object-position: 0 -10vw;
  }
}

.gradient-overlay {
  display: none;
}



.hero-content {
  position: relative;
  z-index: 5;
  /* Lower than video/overlay */
  max-width: 680px;
}

.hero-tag {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ac);
  margin-bottom: 32px;
}

.hero-tag-line {
  width: 28px;
  height: 1px;
  background: var(--ac);
}

.hero h1 {
  font-family: var(--font-family);
  /* Using your font 'Space Grotesk' */
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: #fff;
  /* Static white, let video blend on top */
  margin-bottom: 28px;
  position: relative;
}

.blend {
  color: #fff !important;
  position: relative;
}

.blend .w {
  color: #fff !important;
}

.hero h1 .w-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero h1 .w {
  display: inline-block;
  transform: translateY(115%);
}

.hero h1 .em {
  color: var(--ac);
  font-style: normal;
}

.hero-p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--g);
  max-width: 500px;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 100px;
  background: var(--ac);
  color: var(--bg);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.btn-main:hover::before {
  transform: translateX(100%);
}

.btn-main svg {
  width: 15px;
  height: 15px;
  stroke: var(--bg);
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s var(--ease);
}

.btn-main:hover {
  box-shadow: 0 0 40px rgba(var(--ac-rgb), 0.2);
  transform: translateY(-2px);
}

.btn-main:hover svg {
  transform: translateX(4px);
}

.btn-sec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--g);
  transition: color 0.3s;
}

.btn-sec svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.btn-sec:hover {
  color: var(--w);
}

/* CLIENTS GRID SECTION */
.clients-sec {
  padding: 80px 0;
  background: var(--color-background);
  position: relative;
  overflow: hidden;
}

.clients-title {
  text-align: center;
  font-family: var(--fd);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  margin-bottom: 50px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 4 columns, 8 logos */
  gap: 20px;
}

.client-logo-wrapper {
  background: var(--color-surface);
  border: 1px solid var(--bdr);
  border-radius: var(--border-radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Subtle glow behind the logo on hover */
.client-logo-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(var(--ac-rgb), 0.08) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.5s var(--ease);
}

.client-logo-wrapper:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--ac-rgb), 0.3);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08), 0 0 20px rgba(var(--ac-rgb), 0.05);
}

.client-logo-wrapper:hover::before {
  opacity: 1;
  transform: scale(1.2);
}

.client-logo {
  max-width: 140px;
  max-height: 40px;
  width: auto;
  opacity: 0.4;
  filter: invert(1);
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 1;
}

/* On hover, full color slightly scaled */
.client-logo-wrapper:hover .client-logo {
  opacity: 1;
  filter: invert(1);
  transform: scale(1.05);
}

/* Raster / farbige Logos: Originalfarben (ohne invert) */
.client-logo-natural {
  filter: none;
  opacity: 0.92;
}

.client-logo-wrapper:hover .client-logo-natural {
  filter: none;
  opacity: 1;
}

/* Ausgewählte Logos grösser (Mercedes 1. Reihe / Regio IT 2. Reihe) */
.client-logo-wrapper--lg .client-logo {
  max-width: 200px;
  max-height: 56px;
}

.client-logo-wrapper--lg.client-logo-wrapper:hover .client-logo {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .clients-sec {
    padding: 60px 0;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .client-logo-wrapper {
    height: 100px;
    padding: 20px;
  }

  .client-logo-wrapper--lg .client-logo {
    max-width: 170px;
    max-height: 48px;
  }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--g2);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--g2);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  width: 1px;
  height: 100%;
  background: var(--ac);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    top: -100%;
  }

  50% {
    top: 100%;
  }

  100% {
    top: 100%;
  }
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--bdr);
  position: relative;
}

/* ===== STACKING CARDS ===== */
:root {
  --card-height: 42vw;
  --card-margin: 4vw;
  --card-top-offset: 1.2em;
}

#cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(6, var(--card-height));
  gap: var(--card-margin);
  padding-bottom: calc(6 * var(--card-margin));
  margin-bottom: var(--card-margin);
  max-width: 92vw;
  margin: 0 auto;
}

.card {
  position: sticky;
  top: 8vh;
  height: var(--card-height);
  padding-top: calc(var(--index) * var(--card-top-offset));
  perspective: 1200px;
}

.card__content {
  box-sizing: border-box;
  padding: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--color-surface);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  border: 1px solid var(--bdr);
  overflow: hidden;
  position: relative;

  /* Transform config */
  transform-origin: 50% 0%;
  will-change: transform, filter;
  transform-style: preserve-3d;

  /* Animate based on viewport visibility */
  animation: scale-card linear forwards;
  animation-timeline: view();
  animation-range: exit-crossing 0% exit-crossing 100%;

  /* Subtle shadow for depth */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.5s var(--ease);
}

/* Card variant 1: Primary accent tint */
.card__content--1 {
  background: var(--color-surface);
  border-color: rgba(var(--ac-rgb), 0.15);
  --shadow-color: rgba(var(--ac-rgb), 0.2);
}

.card__content--2 {
  background: #050505;
  color: #fff;
  border: none !important;
  box-shadow: none !important;
  --shadow-color: transparent;
}

.ai-creative-sec {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ai-creative-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ai-creative-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.ai-creative-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 40%, transparent 80%);
  z-index: 2;
}

.ai-creative-content {
  position: relative;
  z-index: 3;
  padding: 0 40px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.ai-corner {
  position: absolute;
  z-index: 3;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  pointer-events: none;
}

.ai-corner-tl {
  top: 40px;
  left: 40px;
  animation: float-lite 6s infinite ease-in-out;
}

.ai-corner-tr {
  top: 40px;
  right: 40px;
}

.ai-corner-br {
  bottom: 40px;
  right: 40px;
  animation: float-lite 8s infinite ease-in-out reverse;
}

.ai-spin-icon {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.4);
  animation: rotate-slow 10s linear infinite;
}

@keyframes float-lite {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ai-apps-row {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-apps-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
}

.ai-apps {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.ai-app-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s var(--ease);
}

.ai-app-ico {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  opacity: 0.8;
  transition: transform 0.3s var(--ease);
}

.ai-app-link:hover {
  background: rgba(var(--ac-rgb), 0.08);
  border-color: rgba(var(--ac-rgb), 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ai-app-link:hover .ai-app-ico {
  transform: scale(1.1);
  opacity: 1;
}

.ai-creative-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ai-creative-tags span {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Card variant 3: Warm beige (formerly 2) */
.card__content--3 {
  background: var(--color-surface);
  border-color: var(--bdr);
  --shadow-color: rgba(0, 0, 0, 0.08);
}

/* Card variant 4: Accent tint (formerly 3) */
.card__content--4 {
  background: var(--bg-c);
  border-color: rgba(0, 0, 0, 0.06);
  --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Card variant 5: Dark (formerly 4) */
.card__content--5 {
  background: var(--color-secondary);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--color-text-on-dark);
  --shadow-color: rgba(28, 25, 23, 0.4);
}

.card__content--5 .sec-l {
  color: var(--color-primary);
}

.card__content--5 .sec-t {
  color: #fff;
}

.card__content--5 .sec-d {
  color: rgba(255, 255, 255, 0.6);
}

.card__content--5 .tech-p {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
}

.card__content--5 .tech-p svg {
  stroke: rgba(255, 255, 255, 0.6);
}

.card__content--5 .tech-p:hover {
  border-color: rgba(var(--ac-rgb), 0.4);
  background: rgba(var(--ac-rgb), 0.1);
  color: var(--color-primary);
}

.card__content--5 .tech-p:hover svg {
  stroke: var(--color-primary);
}

/* Card variant 6: Accent gradient (formerly 5) */
.card__content--6 {
  background: linear-gradient(135deg, #fdf2f4 0%, var(--color-surface) 50%, #fef9e7 100%);
  border-color: rgba(var(--ac-rgb), 0.1);
  --shadow-color: rgba(var(--ac-rgb), 0.15);
}

@keyframes scale-card {
  to {
    transform: scale(0.85) translateY(-8vh) rotateX(-15deg);
    filter: brightness(0.65);
    border-radius: 16px;
    box-shadow: 0 40px 60px -10px var(--shadow-color);
  }
}

/* Inner sections reset padding for card context */
#cards .sec {
  padding: 80px 0;
}

/* ===== SCROLL PROGRESS CIRCLE ===== */
.progress-circle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  z-index: 100;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.progress-circle:hover {
  opacity: 1;
}

.progress-circle circle {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 5;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;

  stroke-dasharray: 251;
  stroke-dashoffset: 251;

  animation: progress-spin linear;
  animation-timeline: scroll();
}

@keyframes progress-spin {
  to {
    stroke-dashoffset: 0;
  }
}

/* ===== STACKING CARDS RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --card-height: 55vw;
  }
}

@media (max-width: 768px) {
  :root {
    --card-height: auto;
    --card-margin: 3vw;
    --card-top-offset: 0.8em;
  }

  #cards {
    grid-template-rows: auto;
    max-width: 96vw;
  }

  .card {
    top: 6vh;
    height: auto;
  }

  .card__content {
    border-radius: 20px;
  }

  #cards .sec {
    padding: 60px 0;
  }

  .progress-circle {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  :root {
    --card-top-offset: 0.6em;
  }

  .card__content {
    border-radius: 16px;
  }
}

/* ===== MARQUEE ===== */
.marquee-sec {
  padding: 44px 0;
  overflow: hidden;
}

.marquee-w {
  display: flex;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-t {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-shrink: 0;
  animation: mq 32s linear infinite;
}

.marquee-t+.marquee-t {
  margin-left: 56px;
}

@keyframes mq {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-100%)
  }
}

.mq-i {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g2);
}

.mq-i svg {
  width: 14px;
  height: 14px;
  stroke: var(--g2);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ===== TEXT SCRAMBLE ===== */
[data-scramble].scramble-active {
  font-family: 'Space Mono', monospace !important;
  letter-spacing: 0.02em;
}

[data-scramble].scramble-active .scramble-char {
  display: inline-block;
  transition: color 0.08s;
}

/* ===== SECTION ===== */
.sec {
  padding: 130px 0;
  position: relative;
}

.sec-l {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ac);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-l::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--ac);
}

.sec-t {
  font-family: var(--fd);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--w);
  margin-bottom: 14px;
}

.sec-d {
  font-size: 0.95rem;
  color: var(--g);
  max-width: 460px;
  line-height: 1.75;
}

.sec-h {
  margin-bottom: 64px;
}

/* ===== LEISTUNGEN LAYOUT ===== */
.leistungen-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 960px) {
  .leistungen-layout {
    grid-template-columns: 1fr;
    gap: 80px;
  }
}

.lt-details {
  position: relative;
  min-height: 180px;
  margin-top: 30px;
}

.lt-detail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.5s var(--ease);
}

.lt-detail.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lt-detail h3 {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--w);
  margin-bottom: 14px;
}

.lt-detail p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--g);
}

/* ===== DISPLAY CARDS (LEISTUNGEN) ===== */
.display-cards-w {
  display: grid;
  grid-template-areas: "stack";
  place-items: center;
  position: relative;
  min-height: 400px;
  width: 100%;
}

.dc {
  grid-area: stack;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22rem;
  height: 14rem;
  transform: skewY(-8deg);
  border-radius: var(--r);
  border: 2px solid var(--bdr);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 20px 24px;
  transition: all 0.7s var(--ease);
  user-select: none;
  cursor: pointer;
}

.dc.active {
  border-color: rgba(var(--ac-rgb), 0.5);
}

.dc::after {
  content: '';
  position: absolute;
  top: -5%;
  right: -4px;
  height: 110%;
  width: 20rem;
  background: linear-gradient(to left, var(--bg), transparent);
  pointer-events: none;
  z-index: -1;
}

.dc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--bdr);
  background: var(--bg);
  opacity: 0.5;
  mix-blend-mode: overlay;
  transition: opacity 0.7s var(--ease);
  pointer-events: none;
  z-index: 10;
}

.dc:hover {
  background: var(--color-surface);
  border-color: rgba(var(--ac-rgb), 0.2);
  z-index: 20;
}

.dc-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dc-ico {
  display: inline-flex;
  padding: 8px;
  border-radius: 50%;
  background: rgba(var(--ac-rgb), 0.1);
  color: var(--color-primary);
}

.dc-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.dc-title {
  font-family: var(--ff);
  /* Using the Space Mono font */
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.dc-desc {
  font-size: 1.05rem;
  color: var(--g);
  white-space: nowrap;
}

.dc-date {
  font-size: 0.85rem;
  color: var(--g2);
}

/* Specific Card Positioning (Stacked Effect) */
.dc-1 {
  filter: grayscale(100%);
  z-index: 1;
}

.dc-1:hover {
  filter: grayscale(0%);
  transform: skewY(-8deg) translateY(-40px);
}

.dc-1:hover::before {
  opacity: 0;
}

.dc-2 {
  transform: skewY(-8deg) translate(64px, 40px);
  filter: grayscale(100%);
  z-index: 2;
}

.dc-2:hover {
  filter: grayscale(0%);
  transform: skewY(-8deg) translate(64px, -4px);
}

.dc-2:hover::before {
  opacity: 0;
}

.dc-3 {
  transform: skewY(-8deg) translate(128px, 80px);
  z-index: 3;
}

.dc-3:hover {
  transform: skewY(-8deg) translate(128px, 40px);
}

.dc-4 {
  transform: skewY(-8deg) translate(192px, 120px);
  z-index: 4;
}

.dc-4:hover {
  transform: skewY(-8deg) translate(192px, 80px);
}

/* ===== ORCHESTRATED INTELLIGENCE (Card 2) ===== */
.orch-split {
  width: 100%;
  max-width: 1000px;
  /* Wider for split layout */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  font-family: var(--fd);
}

.orch-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.orch-visual {
  background: var(--color-surface);
  border: 1px solid var(--bdr);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.orch-canvas {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 320px;
}

/* Lines */
.orch-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orch-path-base {
  fill: none;
  stroke: var(--bdr);
  stroke-width: 2;
  opacity: 0.5;
}

.orch-path-anim {
  fill: none;
  stroke: var(--ac);
  stroke-width: 3;
  stroke-dasharray: 600;
  /* Long enough to hide the stroke initially */
  stroke-dashoffset: 600;
  transition: opacity 0.3s;
  opacity: 0;
}

.orch-path-anim.active {
  opacity: 1;
}

/* Nodes Base */
.orch-node {
  background: var(--color-background);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
  transition: all 0.4s var(--ease);
  position: relative;
  /* Micro-animation: continuous subtle floating */
  animation: floatNode 4s ease-in-out infinite alternate;
}

@keyframes floatNode {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-8px);
  }
}

/* Desync expert floating */
#nodeData {
  animation-delay: 0.2s;
}

#nodeLogic {
  animation-delay: -1.5s;
}

#nodeAction {
  animation-delay: 1.2s;
}

/* Glow Ring */
.orch-node::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 2px solid var(--ac);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s var(--ease);
}

.orch-node.active::after,
.orch-node:hover::after {
  opacity: 1;
  transform: scale(1);
}

.orch-node.active,
.orch-node:hover {
  background: var(--color-surface);
  box-shadow: 0 10px 30px rgba(var(--ac-rgb), 0.15);
  transform: translateY(-4px) scale(1.02);
  /* Overrides float briefly */
  animation-play-state: paused;
  color: var(--ac);
}

.orch-node.active .node-icon svg,
.orch-node:hover .node-icon svg {
  stroke: var(--ac);
}

.node-icon {
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.node-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--g);
  transition: stroke 0.4s;
}

/* The Rose (Master Node) */
.rose-icon svg {
  stroke: var(--g);
  /* Continuous subtle pulse for the Orchestrator heart */
  animation: rosePulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.orch-node.active .rose-icon svg {
  stroke: var(--ac);
  animation: rosePulseActive 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes rosePulse {

  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(var(--ac-rgb), 0.2));
  }

  50% {
    filter: drop-shadow(0 0 6px rgba(var(--ac-rgb), 0.5));
  }
}

@keyframes rosePulseActive {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(var(--ac-rgb), 0.5));
    transform: scale(1);
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(var(--ac-rgb), 0.9));
    transform: scale(1.1);
  }
}

.orch-node span {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
}

.orch-master {
  width: 140px;
}

.orch-experts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.orch-expert {
  flex-direction: row;
  padding: 12px 20px;
  width: 200px;
  justify-content: flex-start;
}

.orch-expert .node-icon {
  width: 36px;
  height: 36px;
}

.orch-expert .node-icon svg {
  width: 18px;
  height: 18px;
}

/* Status Footer */
.orch-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--bdr);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--g2);
  transition: background 0.3s;
}

.status-indicator.active {
  background: var(--ac);
  box-shadow: 0 0 10px rgba(var(--ac-rgb), 0.6);
  animation: pulse-dot 1.5s infinite;
}

.status-text {
  font-family: var(--ff);
  font-size: 0.85rem;
  color: var(--g);
}

@media (max-width: 990px) {
  .orch-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .orch-visual {
    padding: 16px;
  }

  .orch-canvas {
    height: 300px;
    padding: 0 10px;
  }
}

@media (max-width: 600px) {
  .orch-canvas {
    flex-direction: column;
    height: auto;
    gap: 30px;
    padding: 20px 0;
  }

  .orch-lines {
    display: none;
  }

  .orch-experts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .orch-expert {
    width: auto;
  }

  .orch-expert span {
    display: none;
  }
}

@media (max-width: 768px) {
  .orch-canvas {
    flex-direction: column;
    height: auto;
    gap: 40px;
    padding: 0;
  }

  .orch-lines {
    display: none;
  }

  /* Hide SVG lines on mobile */
  .orch-experts {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .orch-expert {
    width: auto;
  }

  .orch-expert span {
    display: none;
  }

  /* Keep icons only on small mobile */
}

/* ===== PROCESS ROWS ===== */
.proc-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.proc-list {
  display: flex;
  flex-direction: column;
}

.proc-row {
  display: grid;
  grid-template-columns: 100px 220px 1fr 50px;
  align-items: center;
  padding: 48px 32px;
  border-bottom: 1px solid var(--bdr);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 20px;
  cursor: pointer;
  background: transparent;
}

.proc-row:first-child {
  border-top: 1px solid var(--bdr);
}

.proc-row:hover {
  background: var(--color-surface);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  transform: scale(1.02);
  z-index: 10;
  position: relative;
}

/* Fix adjacent borders on hover */
.proc-row:hover+.proc-row {
  border-top-color: transparent;
}

.proc-n {
  font-family: var(--ff);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--g2);
  transition: color 0.4s;
}

.proc-row:hover .proc-n {
  color: var(--ac);
}

.proc-head h3 {
  font-family: var(--fd);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--w);
  letter-spacing: -0.02em;
  transition: color 0.4s;
}

.proc-desc p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--g);
  max-width: 460px;
}

.proc-icon {
  display: flex;
  justify-content: flex-end;
  color: var(--ac);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.proc-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.proc-row:hover .proc-icon {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .proc-row {
    grid-template-columns: 60px 1fr 40px;
    padding: 32px 20px;
    gap: 16px;
  }

  .proc-row .proc-head {
    grid-column: 2 / -1;
    margin-bottom: 8px;
  }

  .proc-row .proc-head h3 {
    font-size: 1.5rem;
  }

  .proc-row .proc-desc {
    grid-column: 2 / 3;
  }

  .proc-row .proc-icon {
    display: none;
  }
}

@media (max-width: 600px) {
  .proc-row {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 12px;
  }

  .proc-row .proc-n {
    margin-bottom: 4px;
  }

  .proc-row .proc-head {
    grid-column: 1;
  }

  .proc-row .proc-desc {
    grid-column: 1;
  }
}

/* ===== STATS ===== */
.stats-r {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
}

.stat-i {
  background: var(--bg-s);
  padding: 48px 28px;
  text-align: center;
}

.stat-v {
  font-family: var(--fd);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--ac);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-lb {
  font-size: 0.78rem;
  color: var(--g);
  font-weight: 500;
}

/* ===== AI ECOSYSTEM GRID (Card 4) ===== */
/* ===== TECH STACK (Card 4) ===== */
.tech-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.tech-p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1px solid var(--bdr);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--w2);
  transition: all 0.35s var(--ease);
}

.tech-p:hover {
  border-color: var(--ac-dim);
  background: var(--ac-dim);
  color: var(--ac);
  transform: translateY(-2px);
}

/* ===== CTA ===== */
.cta-box {
  text-align: center;
  padding: 90px 40px;
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  background: var(--bg-s);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ac-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--fd);
  position: relative;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--w);
  margin-bottom: 14px;
}

.cta-box h2 .em {
  color: var(--ac);
}

.cta-box p {
  font-size: 0.95rem;
  color: var(--g);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}

.cta-box .btn-main {
  position: relative;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--bdr);
  position: relative;
}

.cta-c {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--g);
}

.cta-c svg {
  width: 14px;
  height: 14px;
  stroke: var(--ac);
  fill: none;
  stroke-width: 1.5;
}

/* ===== LET'S WORK TOGETHER CTA ===== */
.lwt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
}

/* -- Success State -- */
.lwt-success {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt.clicked .lwt-success {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lwt-success-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--g);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt.clicked .lwt-success-tag {
  opacity: 1;
  transform: translateY(0);
}

.lwt-success-title {
  font-family: var(--fd);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--w);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt.clicked .lwt-success-title {
  opacity: 1;
  transform: translateY(0);
}

/* Book button */
.lwt-book {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt.clicked .lwt-book {
  opacity: 1;
  transform: translateY(0);
}

.lwt-book-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--bdr);
  opacity: 0.5;
  transition: all 0.5s var(--ease);
}

.lwt-book:hover .lwt-book-line {
  transform: scaleX(0);
  opacity: 0;
}

.lwt-book-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 100px;
  border: 1px solid var(--bdr);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--w);
  transition: all 0.5s var(--ease);
  background: transparent;
}

.lwt-book-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  transition: all 0.5s var(--ease);
}

.lwt-book:hover .lwt-book-btn {
  border-color: var(--ac);
  background: var(--ac);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(var(--ac-rgb), 0.2), 0 10px 40px rgba(var(--ac-rgb), 0.08);
}

.lwt-book-arrow {
  transition: transform 0.5s var(--ease) !important;
}

.lwt-book:hover .lwt-book-arrow {
  transform: translate(3px, -3px) scale(1.1);
}

.lwt-success-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--g2);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt.clicked .lwt-success-sub {
  opacity: 0.5;
  transform: translateY(0);
}

/* -- Main State -- */
.lwt-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  transition: all 0.5s var(--ease);
}

.lwt.clicked .lwt-main {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* Availability badge */
.lwt-avail {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lwt-dot-wrap {
  position: relative;
  width: 8px;
  height: 8px;
}

.lwt-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ac);
  opacity: 0.75;
  animation: lwt-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.lwt-dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac);
}

@keyframes lwt-ping {

  75%,
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.lwt-avail-text {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--g);
}

/* Headline */
.lwt-headline {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.lwt-title {
  font-family: var(--fd);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--w);
  text-align: center;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt-line-wrap {
  display: block;
  overflow: hidden;
}

.lwt-line {
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt-headline:hover .lwt-line {
  transform: translateY(-8%);
}

.lwt-line-wrap:nth-child(2) .lwt-line {
  transition-delay: 0.075s;
}

.lwt-line-dim {
  color: var(--g);
}

/* Arrow */
.lwt-arrow-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

.lwt-arrow-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  transition: all 0.5s var(--ease);
}

.lwt-headline:hover .lwt-arrow-circle {
  border-color: var(--ac);
  background: var(--ac);
  transform: scale(1.1);
}

.lwt.clicked .lwt-arrow-circle {
  transform: scale(3);
  opacity: 0;
  transition-duration: 0.7s;
}

.lwt-arrow-icon {
  width: 24px;
  height: 24px;
  stroke: var(--w);
  fill: none;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lwt-headline:hover .lwt-arrow-icon {
  transform: translate(2px, -2px);
  stroke: var(--bg);
}

.lwt.clicked .lwt-arrow-icon {
  transform: translate(100px, -100px) scale(0.5);
  opacity: 0;
  transition-duration: 0.6s;
}

/* Side lines */
.lwt-side-line {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--bdr);
  opacity: 0.5;
  transition: all 0.5s var(--ease);
  transform: translateY(-50%);
}

.lwt-side-left {
  left: -56px;
}

.lwt-side-right {
  right: -56px;
}

.lwt-headline:hover .lwt-side-line {
  transform: translateY(-50%) scaleX(1.5);
  opacity: 1;
}

.lwt.clicked .lwt-side-line {
  transform: translateY(-50%) scaleX(0);
  opacity: 0;
}

/* Subtitle */
.lwt-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  transition: all 0.5s 0.1s var(--ease);
}

.lwt.clicked .lwt-sub {
  opacity: 0;
  transform: translateY(20px);
}

.lwt-sub p {
  font-size: 0.9rem;
  color: var(--g);
  max-width: 420px;
  line-height: 1.7;
}

.lwt-email {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--g2);
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .lwt-side-line {
    display: none;
  }

  .lwt-arrow-wrap {
    width: 52px;
    height: 52px;
  }

  .lwt-book-line {
    width: 24px;
  }

  .lwt-book-btn {
    padding: 12px 20px;
    font-size: 0.82rem;
  }
}

/* ===== FOOTER ===== */
.ft {
  padding: 44px 0;
  border-top: 1px solid var(--bdr);
}

.ft-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ft-brand {
  font-family: var(--fd);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--w2);
}

.ft-copy {
  font-size: 0.7rem;
  color: var(--g2);
  margin-top: 3px;
}

.ft-links {
  display: flex;
  gap: 28px;
}

.ft-links a {
  font-size: 0.75rem;
  color: var(--g);
  transition: color 0.3s;
}

.ft-links a:hover {
  color: var(--w);
}

/* ===== LEGAL PAGES ===== */
.legal-page h2 {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 40px 0 12px;
}

.legal-page h3 {
  font-family: var(--fd);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 24px 0 8px;
}

.legal-page p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--ac);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  opacity: 0.8;
}

/* ===== TESTIMONIALS ===== */
.testimonial-sec {
  padding: 0;
  position: relative;
  overflow: hidden;
  background: var(--color-background);
}

.tm-container {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.tm-bg-num {
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff);
  /* Using monospace for numbers usually looks good, or grotest */
  font-size: clamp(12rem, 30vw, 28rem);
  font-weight: 700;
  color: var(--color-text);
  opacity: 0.03;
  line-height: 1;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.6s, filter 0.6s, transform 0.1s;
}

.tm-content-w {
  position: relative;
  display: flex;
  width: 100%;
  z-index: 2;
}

.tm-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-right: 4rem;
  border-right: 1px solid var(--bdr);
}

.tm-vert-text {
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  color: var(--g2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.tm-vert-line-w {
  position: relative;
  height: 128px;
  width: 1px;
  background: var(--bdr);
  margin-top: 32px;
}

.tm-vert-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-text);
  transform-origin: top;
  height: 0%;
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tm-center {
  flex: 1;
  padding-left: 4rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.tm-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  color: var(--g2);
  border: 1px solid var(--bdr);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 32px;
}

.tm-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac);
}

.tm-quote-w {
  position: relative;
  min-height: 140px;
  margin-bottom: 48px;
  perspective: 1000px;
}

.tm-quote {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.tm-word {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(20px) rotateX(90deg);
}

.tm-author-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.tm-author-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-author-line {
  width: 32px;
  height: 1px;
  background: var(--color-text);
  transform-origin: left;
}

.tm-author-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.tm-author-role {
  font-size: 0.875rem;
  color: var(--g2);
}

.tm-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tm-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
  z-index: 50;
  background: transparent;
}

.tm-btn:active {
  transform: scale(0.95);
}

.tm-btn-bg {
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tm-btn#tmNext .tm-btn-bg {
  transform: translateX(100%);
}

.tm-btn:hover .tm-btn-bg {
  transform: translateX(0);
}

.tm-btn svg {
  position: relative;
  z-index: 10;
  width: 18px;
  height: 18px;
  color: var(--color-text);
  transition: color 0.3s;
}

.tm-btn:hover svg {
  color: var(--color-background);
}

.tm-ticker-w {
  position: absolute;
  bottom: -5rem;
  left: 0;
  width: 100vw;
  overflow: hidden;
  opacity: 0.08;
  pointer-events: none;
  margin-left: calc(-50vw + 50%);
}

.tm-ticker {
  display: flex;
  white-space: nowrap;
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  will-change: transform;
}

.tm-ticker span {
  margin: 0 2rem;
}

@media (max-width: 768px) {
  .tm-left {
    display: none;
  }

  .tm-center {
    padding-left: 0;
  }
}

/* ===== REVEAL ===== */
.rv {
  opacity: 0;
  transform: translateY(40px);
}

.rv-s {
  opacity: 0;
  transform: scale(0.96);
}

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .srv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proc-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-r {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:768px) {
  .wrap {
    padding: 0 20px;
  }

  .sec {
    padding: 90px 0;
  }


  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: rgba(245, 243, 238, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 100;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero {
    min-height: auto;
    padding: 130px 0 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll {
    display: none;
  }

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

  .stats-r {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box {
    padding: 56px 24px;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .ft-inner {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}

@media (max-width:480px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .sec-t {
    font-size: 1.5rem;
  }

  .stats-r {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ANTIGRAVITY REWORK
   ========================================================= */

html {
  container-type: scroll-state;
}

.header-wrapper:not(.header-wrapper:has(.menu-checkbox:checked)) {
  transition: translate 0.25s;
  translate: 0 0;
}

@container scroll-state(scrolled: bottom) {
  .header-wrapper:not(.header-wrapper:has(.menu-checkbox:checked)) {
    translate: 0 -100%;
  }
}

.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(245, 243, 238, 0.82);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--bdr);
  z-index: 100;
}

.ag-header {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 13px 32px;
}

.ag-header .ag-btn {
  margin-left: auto;
}

.menu-checkbox {
  display: none;
}

.menu-button {
  display: none;
}

.ag-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 0.2rem;
  align-self: flex-start;
}

.ag-nav a {
  padding: 0.6em 1.2em;
  border-radius: 100px;
  color: var(--g);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  transition: .15s color ease-out, .15s background ease-out;
}

.ag-nav a:hover,
.ag-nav a:focus-visible {
  color: var(--color-surface);
  background: var(--ac);
}

/* Antigravity Buttons */
.ag-btn {
  background: var(--ac);
  color: var(--bg);
  border: 0px;
  border-radius: 99px;
  padding: 12px 28px;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
}

.ag-btn:hover {
  box-shadow: 0 0 30px rgba(var(--ac-rgb), 0.3);
  transform: translateY(-2px);
  background: var(--w);
  color: var(--color-surface);
}

.ag-btn.secondary {
  color: var(--g);
  background: transparent;
  border: 1px solid var(--bdr);
  font-weight: 500;
}

.ag-btn.secondary:hover {
  background: var(--w);
  color: var(--color-surface);
  border-color: var(--w);
  box-shadow: none;
}

/* Mobile Nav */
@media (max-width: 930px) {
  .menu-button {
    display: flex;
    cursor: pointer;
    width: 3.5em;
    height: 3.5em;
    border-radius: 99px;
    text-align: center;
    place-content: center;
    align-items: center;
    transition: .15s background ease-out;
    margin-left: auto;
  }

  .ag-nav {
    display: none;
  }

  .ag-nav ul {
    flex-direction: column;
  }

  .ag-nav li {
    font-size: 1.5em;
    font-weight: 500;
    border-bottom: 1px solid var(--bdr);
  }

  .ag-nav li:first-child {
    border-top: 1px solid var(--bdr);
  }

  .ag-nav a {
    display: block;
    padding-inline: 2rem;
    padding-block: 1.5rem;
    border-radius: 0;
  }

  .menu-checkbox:checked~.ag-nav {
    display: block;
    position: fixed;
    inset: 0;
    top: 70px;
    background: var(--bg);
    z-index: 99;
  }

  .menu-checkbox:checked~.menu-button [data-show-when="closed"] {
    display: none !important;
  }

  .menu-checkbox:not(:checked)~.menu-button [data-show-when="open"] {
    display: none !important;
  }

  .ag-header>.ag-btn {
    display: none;
  }

  body:has(.menu-checkbox:checked) {
    overflow: hidden;
  }
}

/* Antigravity Hero */
#welcome {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 140px 32px 100px;
  overflow: hidden;

  --ring-radius: 100;
  --ring-thickness: 600;
  --particle-count: 80;
  --particle-rows: 25;
  --particle-size: 2;
  --particle-color: #E11D48;
  --particle-min-alpha: 0.1;
  --particle-max-alpha: 1.0;
  --seed: 200;
}

/* Trust Badges in CTA */
.cta-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(var(--ac-rgb), 0.1);
  width: 100%;
}

.cta-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  transition: all 0.3s var(--ease);
}

.cta-trust-badge svg {
  width: 24px;
  height: 24px;
  stroke: rgba(var(--ac-rgb), 0.6);
  transition: stroke 0.3s var(--ease);
}

.cta-trust-badge span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cta-trust-badge:hover {
  color: var(--color-text);
  transform: translateY(-2px);
}

.cta-trust-badge:hover svg {
  stroke: var(--ac);
}