/* ==========================================
   DESIGN SYSTEM - GREENLEAF INSPIRED
   ========================================== */

:root {
  /* Colors */
  --color-bg-white: #ffffff;
  --color-bg-gray: #f4f6f5;
  --color-bg-dark: #0A1F14;
  --color-text-dark: #12271b;
  --color-text-muted: #5f6b65;
  --color-text-light: #ffffff;
  --color-accent: #12271b; 
  --color-accent-hover: #12271b;
  --color-border: #e5e7eb;
  --color-border-dark: rgba(255, 255, 255, 0.1);

  /* Shared content rail used by every page. */
  --page-content-max: 1280px;
  --page-gutter: 24px;

  /* Typography */
  --font-body: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout and Shapes */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.08);

  /* Transitions & Animations */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   BASE STYLES & RESET
   ========================================== */

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

html {
  font-size: 15px;
}

html.smooth-scroll {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em; 
  color: var(--color-text-dark);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn:focus-visible,
.sidebar-cta:focus-visible,
.switcher-btn:focus-visible,
.switcher-arrow-btn:focus-visible {
  outline: 2.2px solid var(--color-text-dark) !important;
  outline-offset: 4px !important;
}

a:focus-visible {
  outline: 2px solid var(--color-text-dark) !important;
  outline-offset: 4px !important;
  border-radius: 4px !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hero service cards keep their own entrance transform. */
.sticky-card-new,
.service-image-wrapper,
.bento-card-asym,
.timeline-content,
.cta-card,
.cta-collage,
.collage-col,
.collage-img-wrap {
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.service-stat-card,
.service-image-wrapper,
.bento-card-asym,
.timeline-content,
.cta-card,
.cta-collage,
.collage-img-wrap {
  contain: paint;
}

/* Strict Equal Spacing Rules Across Sections */
section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-white) !important; /* Forces global white background */
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-content-max));
  max-width: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  z-index: 2;
}

/* Typography Utilities */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 40px; }
.mt-80 { margin-top: 80px; }

/* Rounded Pill Style for ALL Section Titles */
.section-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted); 
  background-color: var(--color-bg-gray); 
  padding: 8px 20px;
  border-radius: var(--radius-full); 
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: none; 
  letter-spacing: normal;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s ease;
  gap: 8px;
  white-space: normal;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Skewed shine shimmer hover animation — smooth, no jump */
.btn::after,
.sidebar-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  transform: skewX(-22deg);
  /* Always transitioning so entering hover never jumps */
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.btn:hover::after,
.sidebar-cta:hover::after {
  left: 160%;
  opacity: 1;
}

.btn-primary, 
.btn-secondary {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  /* Balanced neutral depth shadow */
  box-shadow:
    0px 0.8px  0.8px  -0.47px rgba(0, 0, 0, 0.08),
    0px 1.9px  1.9px  -0.94px rgba(0, 0, 0, 0.07),
    0px 3.5px  3.5px  -1.41px rgba(0, 0, 0, 0.07),
    0px 5.8px  5.8px  -1.88px rgba(0, 0, 0, 0.06),
    0px 9.3px  9.3px  -2.34px rgba(0, 0, 0, 0.06),
    0px 15.3px 15.3px -2.81px rgba(0, 0, 0, 0.05),
    0px 26.7px 26.7px -3.28px rgba(0, 0, 0, 0.04),
    0px 48px   48px   -3.75px rgba(0, 0, 0, 0.03);
  transition:
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  background-color: #a95713;
  /* Warm amber glow radiates out smoothly */
  box-shadow:
    0px 0.8px  0.8px  -0.47px rgba(169, 87, 19, 0.22),
    0px 2px    2px    -0.94px rgba(169, 87, 19, 0.22),
    0px 4px    4px    -1.41px rgba(169, 87, 19, 0.20),
    0px 7px    7px    -1.88px rgba(169, 87, 19, 0.18),
    0px 12px   12px   -2.34px rgba(169, 87, 19, 0.16),
    0px 20px   20px   -2.81px rgba(169, 87, 19, 0.14),
    0px 36px   36px   -3.28px rgba(169, 87, 19, 0.11),
    0px 60px   60px   -3.75px rgba(169, 87, 19, 0.07),
    0 0 0 0   rgba(169, 87, 19, 0),
    0 0 18px 4px rgba(169, 87, 19, 0.18);
  transform: none;
}

.arrow-container {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  width: 1.5em;
  height: 1.2em;
  align-items: center;
  justify-content: center;
}

.arrow-container i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-first { transform: translate3d(0, 0, 0); }
.icon-second { transform: translate3d(-150%, 0, 0); }

.btn-primary:hover .icon-first,
.btn-secondary:hover .icon-first,
.sidebar-cta:hover .icon-first,
.service-nav-link:hover .icon-first { transform: translate3d(150%, 0, 0); }

.btn-primary:hover .icon-second,
.btn-secondary:hover .icon-second,
.sidebar-cta:hover .icon-second,
.service-nav-link:hover .icon-second { transform: translate3d(0, 0, 0); }

/* Double Arrow Left Transition for Subpage Navigation */
.arrow-container-left {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  width: 1.5em;
  height: 1.2em;
  align-items: center;
  justify-content: center;
}

.arrow-container-left i {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-first-left { transform: translate3d(0, 0, 0); }
.icon-second-left { transform: translate3d(150%, 0, 0); }

.service-nav-link:hover .icon-first-left { transform: translate3d(-150%, 0, 0); }
.service-nav-link:hover .icon-second-left { transform: translate3d(0, 0, 0); }

/* ==========================================
   HEADER NAVIGATION
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: transparent;
  border-bottom: none;
  will-change: transform;
  transition: transform 1.0s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.4s ease,
              box-shadow 0.4s ease;
}

.header.header-hidden {
  transform: translate3d(0, -100%, 0);
  box-shadow: none; 
}

.header.header-scrolled {
  background-color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.header-container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-content-max));
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;

  /* Prevent text selection */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* Crucial for Mobile: Disables the long-press popup menu on iOS/Safari */
  -webkit-touch-callout: none; 
}

.logo span { 
  font-family: var(--font-heading);
  font-size: 1.1rem; 
}

.logo img {
  height: 28px;
  width: auto;
  transition: transform 0.3s ease, filter 0.4s ease;

  /* Prevent image dragging */
  -webkit-user-drag: none;
  user-drag: none;

  /* Crucial for Mobile: Stops the browser from recognizing the image as an independent clickable/saveable object */
  pointer-events: none; 
}

.logo:hover img {
  filter: drop-shadow(0 3px 10px rgba(18, 39, 27, 0.28));
}
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-menu { display: flex; align-items: center; gap: 24px; position: relative; }

/* Header contact / booking button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: #1c3a29;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 39, 27, 0.2);
}

@media (max-width: 480px) {
  .nav-cta { padding: 8px 14px; font-size: 0.85rem; }
}

/* Booking (Calendly) page */
.book-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.book-trust > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-bg-gray);
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

.book-trust i { color: var(--color-accent); }

.book-body { padding: 32px 0 110px; }

.book-shell {
  width: min(calc(100% - (var(--page-gutter) * 2)), 1080px);
  margin: 0 auto;
}

.book-consultant {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(18, 39, 27, 0.05);
}

.book-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.book-consultant-info { flex: 1; min-width: 0; }
.book-consultant-info h2 { font-size: 1.05rem; margin: 0; }
.book-consultant-info p { margin: 3px 0 0; font-size: 0.85rem; color: var(--color-accent); font-weight: 600; }

.book-fallback {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: right;
  max-width: 220px;
  margin: 0;
}

.book-fallback a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calendly-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(18, 39, 27, 0.06);
}

.calendly-inline-widget {
  border-radius: 18px;
  overflow: hidden;
  min-width: 280px;
  height: 920px;
}

@media (max-width: 768px) {
  .book-consultant { flex-direction: column; align-items: flex-start; text-align: left; }
  .book-fallback { text-align: left; max-width: none; }
  .calendly-inline-widget { height: 1150px; }
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.05rem; 
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  overflow: hidden;
  display: inline-flex;
  position: relative;
  height: 1.5em;
  line-height: 1.5em;
}

.nav-link-text {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-text::after {
  content: attr(data-text);
  color: var(--color-accent);
  height: 1.5em;
}

.nav-link:hover .nav-link-text,
.dropdown-trigger-wrapper:hover .nav-link-text,
.dropdown-trigger-wrapper.open .nav-link-text { transform: translate3d(0, -1.5em, 0); }

.lang-toggle-dropdown { position: relative; display: inline-block; }

.globe-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #5f6b65;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.globe-btn:hover { color: var(--color-accent); }

.lang-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  margin-top: 12px;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 80px;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, 10px, 0);
  will-change: transform, opacity;
  transition: var(--transition-fast);
  z-index: 1000;
}



.lang-toggle-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}

.lang-menu .lang-btn {
  font-family: var(--font-heading);
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--color-text-muted);
  transition:
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.lang-menu .lang-btn:hover {
  background-color: var(--color-bg-gray);
  color: var(--color-accent);
}

.lang-menu .lang-btn.active {
  color: var(--color-text-dark);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-dark);
  margin: 6px auto;
  transition: var(--transition-fast);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  padding-top: 160px;
  padding-bottom: 90px;
}

.hero-content { max-width: 800px; margin: 0 auto; }

.hero-title {
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* Keep every translated homepage headline on the same intentional two lines. */
.hero-title-reveal {
  white-space: nowrap;
}

.hero-title-line {
  display: block;
  width: auto;
  margin-inline: auto;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero segment carousel (Studio / Edge AI / DaaS) */
.hero-title,
.hero-subtitle {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide-out {
  opacity: 0 !important;
  transform: translateY(-10px);
}

.hero-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 34px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: width 0.35s ease, background 0.35s ease;
}

.hero-dot.active {
  width: 26px;
  background: var(--color-accent);
}

.hero-dot:hover {
  background: var(--color-text-muted);
}

.hero-grid-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 100px;
  align-items: center; /* keep original center alignment */
  width: min(calc(100% - clamp(48px, 6.5vw, 96px)), 1800px);
  margin-left: auto;
  margin-right: auto;
  padding: 0; 
}

/* Framer-inspired service cards, kept at the exact dimensions of the old photos. */
/* Framer-inspired service cards, kept at the exact dimensions of the old photos. */
.service-stat-card {
  --service-card-inset: 35px;
  --service-card-title-inset: var(--service-card-inset);
  --service-card-icon-inset: 35px;
  border-radius: 24px;
  overflow: hidden;
  background-color: var(--color-bg-dark);
  width: 100%;
  aspect-ratio: 5 / 6;
  position: relative;
  isolation: isolate;
  color: #ffffff;
}

.service-stat-card:hover {
  cursor: pointer; /* Restore standard B2B pointer cursor */
}

.service-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.0) 35%,
    rgba(0, 0, 0, 0.55) 75%,
    rgba(0, 0, 0, 0.82) 100%
  );
  pointer-events: none;
}

.service-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(0.78) contrast(0.96) brightness(0.78);
  transform: scale(1.08);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.service-stat-card.is-visible .service-card-image {
  transform: scale(1);
}

.service-stat-card:hover .service-card-image {
  transform: scale(1.04);
}

.service-card-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--service-card-inset); /* Shifted inward by 20px to keep 5mm gap from corners */
  will-change: auto;
  pointer-events: none; /* Let clicks pass through to toggle shutter */
}

/* Metadata at the top: Number on left, Category badge on right */
.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease 0.1s;
}

.service-stat-card.is-visible .card-top-meta {
  opacity: 1;
}

.service-stat-card.shutter-open .card-top-meta {
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.service-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.service-card-category {
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-transform: none;
  transition: all 0.3s ease;
}

.service-stat-card:hover .service-card-category {
  color: #ffffff;
}

/* Words stacked at the bottom */
.card-poster-words {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  transition: transform 0.3s ease;
}

.service-stat-card:hover .card-poster-words {
  transform: translateY(-2px);
}

/* Clip wrapper — hides word until it wipes up */
.card-word-clip {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 1.25;
  padding: 2px 0;
}

/* Each word starts hidden below the clip boundary, skewed for premium unfolding feel */
.card-poster-word {
  display: block;
  color: rgba(206, 218, 212, 0.9);
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.8vw, 3.2rem);
  font-weight: 600;
  text-transform: none;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
  transform: translateY(115%);
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Staggered overlapping reveal when shutter is open */
.service-stat-card.shutter-open .card-poster-word.w1 {
  transform: translateY(0);
  transition-delay: 0.15s;
}
.service-stat-card.shutter-open .card-poster-word.w2 {
  transform: translateY(0);
  transition-delay: 0.32s;
}
.service-stat-card.shutter-open .card-poster-word.w3 {
  transform: translateY(0);
  transition-delay: 0.49s;
}

/* Shutter Drawer Panel element */
.card-shutter {
  position: absolute;
  inset: 0;
  height: 100%;
  background: transparent;
  border-top: 1px solid transparent;
  border-radius: 24px;
  /* Closed drawer state: only display header at the bottom */
  transform: translateY(calc(100% - 92px));
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  will-change: transform, background-color; /* Force GPU layer rendering */
}

.service-stat-card.shutter-open .card-shutter {
  inset: -1px;
  height: calc(100% + 2px);
  transform: translateY(0);
  background:
    radial-gradient(circle at 18% 12%, rgba(122, 158, 137, 0.36) 0%, rgba(122, 158, 137, 0) 32%),
    radial-gradient(circle at 88% 82%, rgba(57, 117, 82, 0.52) 0%, rgba(57, 117, 82, 0) 42%),
    linear-gradient(145deg, #020604 0%, #07140d 34%, #0a1f14 62%, #123622 100%);
  border-top: 1px solid transparent;
  border-radius: 25px;
}

.shutter-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Shutter Header - visible initially at the bottom of the card */
.shutter-header {
  position: relative; /* relative anchor to position the icon */
  display: flex;
  justify-content: flex-start; /* Align title left */
  align-items: center;
  width: 100%;
  height: 92px;
  min-height: 92px;
  padding: 0 var(--service-card-title-inset);
  box-sizing: border-box;
}

/* Title text styling */
.card-title-text {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  max-width: calc(100% - var(--service-card-title-inset) - var(--service-card-icon-inset) - 48px);
  text-align: left; /* Left-aligned title text */
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-8px);
  will-change: transform;
}

.service-stat-card.shutter-open .card-title-text {
  color: #ffffff;
  transform: translateY(80px); /* Push the title down towards the middle when open */
}

.card-title-icon {
  position: absolute;
  right: var(--service-card-icon-inset);
  top: 44%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              top 1.05s cubic-bezier(0.16, 1, 0.3, 1),
              right 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, top;
}

.service-stat-card.shutter-open .card-title-icon {
  top: var(--service-card-inset);
  transform: translateY(0) rotate(45deg); /* rotate plus 45deg to close cross X */
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.service-stat-card:hover .card-title-icon {
  background: rgba(255, 255, 255, 0.2);
}

.service-stat-card.shutter-open:hover .card-title-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* Shutter Body - revealed below header when open */
.shutter-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the left! */
  justify-content: flex-start; /* Align items to the top! */
  text-align: left; /* Left-align text content */
  height: calc(100% - 92px); /* Remaining space */
  padding: 86px var(--service-card-inset) var(--service-card-inset);
  box-sizing: border-box;
}

.shutter-desc {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.25vw, 1.1rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  margin: 0;
  text-align: left; /* Left-aligned description */
  max-width: 95%;
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(24px);
  /* Fast reset when closing drawer */
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  will-change: transform, opacity;
}

.service-stat-card.shutter-open .shutter-desc {
  opacity: 1;
  transform: translateY(0);
  /* Smooth delayed slide up to match Framer reveals */
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.38s,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.38s;
}

.shutter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  background-color: #020604;
  color: #ffffff;
  gap: 8px;
  white-space: normal;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(16px);
  /* Fast close reset */
  transition: opacity 0.2s ease-out,
              transform 0.2s ease-out,
              background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.4s ease;
  pointer-events: auto;
  will-change: transform, opacity, background-color, box-shadow;
  align-self: flex-start; /* Left align button */
  /* Balanced depth shadow */
  box-shadow:
    0px 0.8px  0.8px  -0.47px rgba(0, 0, 0, 0.08),
    0px 1.9px  1.9px  -0.94px rgba(0, 0, 0, 0.07),
    0px 3.5px  3.5px  -1.41px rgba(0, 0, 0, 0.07),
    0px 5.8px  5.8px  -1.88px rgba(0, 0, 0, 0.06),
    0px 9.3px  9.3px  -2.34px rgba(0, 0, 0, 0.06),
    0px 15.3px 15.3px -2.81px rgba(0, 0, 0, 0.05),
    0px 26.7px 26.7px -3.28px rgba(0, 0, 0, 0.04),
    0px 48px   48px   -3.75px rgba(0, 0, 0, 0.03);
}

.shutter-link > * {
  position: relative;
  z-index: 3;
}

.shutter-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  transform: skewX(-22deg);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.shutter-link:hover::after {
  left: 160%;
  opacity: 1;
}

.service-stat-card.shutter-open .shutter-link {
  opacity: 1;
  transform: translateY(0);
  background-color: #000000;
  color: #ffffff;
  border-color: transparent;
  box-shadow:
    0 5px 14px rgba(255, 255, 255, 0.16),
    0 12px 30px rgba(255, 255, 255, 0.18);
  /* Staggered spring slide up reveals after description */
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.48s,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.48s,
              background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.4s ease;
}

.service-stat-card.shutter-open .shutter-link:hover {
  background-color: #b55b0d;
  color: #ffffff;
  box-shadow:
    0 12px 18px rgba(105, 50, 8, 0.22),
    0 22px 34px rgba(169, 87, 19, 0.24),
    0 36px 70px rgba(181, 91, 13, 0.18),
    0 0 58px rgba(181, 91, 13, 0.12);
}

.shutter-link:focus-visible {
  outline: 2.2px solid var(--color-text-dark) !important;
  outline-offset: 4px !important;
}

.shutter-link:hover .icon-first { transform: translate3d(150%, 0, 0); }
.shutter-link:hover .icon-second { transform: translate3d(0, 0, 0); }

.service-card-corner {
  position: absolute;
  z-index: 2;
  width: 36px; /* Bigger corner lines */
  height: 36px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.service-stat-card.shutter-open .service-card-corner {
  opacity: 0; /* Fade out corner brackets when card expands for clean B2B readability */
}

.service-card-corner-tl {
  top: 24px;
  left: 24px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.2);
  border-left: 1.5px solid rgba(255, 255, 255, 0.2);
  border-top-left-radius: 8px; /* Rounded outer corner */
}

.service-card-corner-tr {
  display: none;
}

.service-card-corner-bl {
  display: none;
}

.service-card-corner-br {
  bottom: 24px;
  right: 24px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.2);
  border-right: 1.5px solid rgba(255, 255, 255, 0.2);
  border-bottom-right-radius: 8px; /* Rounded outer corner */
}

/* One synchronized hero entrance: copy starts together. */
.hero-copy-reveal {
  opacity: 1;
  will-change: opacity, transform;
  animation-fill-mode: backwards;
}

.hero-copy-reveal {
  animation-name: hero-copy-enter;
  animation-duration: 1.1s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-title-reveal {
  animation-delay: 0.2s;
  animation-duration: 1.1s;
}

.hero-subtitle-reveal {
  animation-delay: 0.3s;
  animation-duration: 1.1s;
}

.hero-cta-reveal {
  animation-delay: 0.4s;
  animation-duration: 1.1s;
}

/* Responsive Framer-style card entrance for hero photo cards */
.hero-photo-reveal {
  opacity: 0;
  will-change: opacity, transform;
}

/* Desktop/Tablet: middle card first, left/right slide out from behind */
@media (min-width: 769px) {
  .hero-photo-reveal.p2 {
    z-index: 2;
    animation: hero-card-middle-enter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
  }

  .hero-photo-reveal.p1 {
    z-index: 1;
    animation: hero-card-left-enter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.5s;
  }

  .hero-photo-reveal.p3 {
    z-index: 1;
    animation: hero-card-right-enter 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.5s;
  }
}

/* Mobile: staggered slide up from below */
@media (max-width: 768px) {
  .hero-photo-reveal.p1 {
    animation: hero-photo-enter-mobile 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
  }
  .hero-photo-reveal.p2 {
    animation: hero-photo-enter-mobile 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.45s;
  }
  .hero-photo-reveal.p3 {
    animation: hero-photo-enter-mobile 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.6s;
  }
}

@keyframes hero-copy-enter {
  from { opacity: 0; transform: translate3d(0, -52px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-photo-enter-mobile {
  from { opacity: 0; transform: translate3d(0, 80px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-card-middle-enter {
  from {
    opacity: 0;
    transform: scale3d(0.86, 0.86, 1) translate3d(0, 80px, 0);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1) translate3d(0, 0, 0);
  }
}

@keyframes hero-card-left-enter {
  0% {
    opacity: 0;
    transform: translate3d(calc(100% + 16px), 0, 0) scale3d(0.6, 0.6, 1);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

@keyframes hero-card-right-enter {
  0% {
    opacity: 0;
    transform: translate3d(calc(-100% - 16px), 0, 0) scale3d(0.6, 0.6, 1);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}



/* ==========================================
   ABOUT CENTER
   ========================================== */

.about-center {
  background-color: var(--color-bg-white); 
}

.about-center .about-heading {
  font-size: 2.5rem; 
  line-height: 1.4;
  font-weight: 400;
  max-width: 100%;
  margin: 0 auto 50px auto;
}

.about-center .about-heading > span {
  display: block;
}

.text-gray { color: var(--color-text-muted); }
.text-black { color: var(--color-accent); }

/* ==========================================
   NEW ECOSYSTEM (STICKY LEFT / SCROLL RIGHT)
   ========================================== */

/* Fix the sticky behavior */
.ecosystem-section {
  overflow: visible !important; 
}   

.ecosystem-section .sticky-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.ecosystem-section .sticky-sidebar {
  position: sticky;
  top: 140px;
  height: auto;
  margin-top: 10px;
}

.sticky-cards {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

/* Clean, Frameless Image Panels */
.sticky-card-new {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  display: block;
  color: inherit;
  cursor: pointer;
}


/* 1. The wrapper holds the shape and clips the zoomed image */
.service-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-gray);
}

/* 2. The photo starts bigger (zoomed in) */
.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale3d(1.08, 1.08, 1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.service-hover-arrow {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform-origin: 44px -26px;
  transform: rotate3d(0, 0, 1, 90deg);
  will-change: transform;
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.service-hover-arrow svg {
  width: 30px;
  height: 30px;
  stroke: var(--color-text-dark);
  stroke-width: 1.4px;
  transform-origin: 15px 15px;
  transform: rotate3d(0, 0, 1, -90deg);
  will-change: transform;
  transition: transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. When the card appears, the photo slowly shrinks to normal size */
.reveal-zoom.active .service-image {
  transform: scale3d(1, 1, 1);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-card-new:hover .service-image,
.sticky-card-new:focus-visible .service-image {
  transform: scale3d(1.08, 1.08, 1);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0s !important;
}

/* Hover: The entire white circle button sweeps down from above in a curved, circular motion */
.sticky-card-new:hover .service-hover-arrow,
.sticky-card-new:focus-visible .service-hover-arrow {
  transform: rotate3d(0, 0, 1, 0deg);
}

.sticky-card-new:hover .service-hover-arrow svg,
.sticky-card-new:focus-visible .service-hover-arrow svg {
  transform: rotate3d(0, 0, 1, -45deg);
}

.sticky-card-new:focus-visible {
  outline: 2px solid var(--color-text-dark);
  outline-offset: 8px;
  border-radius: var(--radius-lg);
}

/* Text Styling below the image */
.service-text-block {
  margin-top: 24px;
  text-align: left;
}

.service-text-block h3 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.service-text-block p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 95%;
}

/* ==========================================
   WHY CHOOSE US (BENTO GRID CARDS PRESERVED)
   ========================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-card {
  background-color: var(--color-bg-gray); /* Cards retain their native identity */
  border: none;
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition-smooth);
}

/* ==========================================
   6-CARD ASYMMETRICAL BENTO GRID & ANIMATIONS
   ========================================== */

.bento-grid-asym {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 24px;
}

.bento-card-asym {
  background-color: var(--color-bg-gray);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Sizing the cards */
.bento-card-asym.wide {
  grid-column: span 2;
}

.bento-card-asym.tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-card-asym.square {
  grid-column: span 1;
}

.bento-card-asym h4 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 12px;
  font-weight: 400;
  color: var(--color-text-dark);
}

.bento-boost-title {
  font-size: 2.2rem;
}

.bento-card-asym p {
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.value-card {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.value-icon-badge {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-text-dark);
  color: var(--color-bg-white);
  box-shadow: none;
}

.value-icon-badge > i {
  font-size: 1.35rem;
}

.value-card-copy {
  margin-top: 24px;
}

.value-card-copy h4 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
}

.value-card-copy p {
  max-width: 270px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ==========================================
   KEYFRAME ANIMATIONS (THE MAGIC)
   ========================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes continuous-ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes star-spin {
  0% { transform: scale3d(0, 0, 1) rotate3d(0, 0, 1, -180deg); opacity: 0; }
  100% { transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg); opacity: 1; }
}

/* ---------------------------------
   Animation 1: Sliding Control Lines (Slower & Smoother)
------------------------------------ */
.animated-lines {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 20px;
}

.line {
  height: 3px;
  background-color: transparent;
  width: 85%;
  position: relative;
}

.line::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-text-dark);
  transform: scaleX(0.3529);
  transform-origin: left center;
  will-change: transform;
  transition: transform 3.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card-asym.active .line-1::before { transform: scaleX(0.7647); }
.bento-card-asym.active .line-2::before { transform: scaleX(1); }

.line i {
  position: absolute;
  left: calc(35.29% - 20px);
  top: -18px;
  width: 40px;
  height: 40px;
  background-color: var(--color-bg-white);
  border: 2px solid var(--color-text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 1rem;
  opacity: 1;
  transform: scale3d(1, 1, 1);
  will-change: left;
  transition: left 3.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card-asym.active .line-1 i { left: calc(76.47% - 20px); }
.bento-card-asym.active .line-2 i { left: calc(100% - 20px); }

.bento-card-asym.active .line-1 i { 
  opacity: 1; 
  transform: scale3d(1, 1, 1); 
  animation: pulse-glow 2s infinite;
}
.bento-card-asym.active .line-2 i { 
  opacity: 1; 
  transform: scale3d(1, 1, 1); 
  animation: pulse-glow 2s infinite 0.15s; 
}

/* ---------------------------------
   Animation 2: Central Lock & Layered Stack
------------------------------------ */
.central-lock {
  margin: auto; /* Pushes the icon perfectly into the center space */
  font-size: 5rem;
  color: var(--color-accent); /* Matches the small icons */
  opacity: 0;
  transform: scale3d(0.5, 0.5, 1);
  will-change: opacity, transform;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s,
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

/* The lock fades in and then gently floats up and down */
.bento-card-asym.active .central-lock {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}
.bento-card-asym.active .central-lock i {
  animation: float 4s ease-in-out infinite 2s;
}

.stable-stack {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.stack-card {
  position: absolute;
  width: 220px;
  max-width: calc(100% - 20px);
  height: 50px;
  background: var(--color-bg-white);
  border-radius: var(--radius-sm);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  color: var(--color-text-dark);
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stack-card i {
  color: var(--color-accent);
}

.bento-card-asym.active .sc-3 {
  opacity: 0.5;
  transform: translate3d(0, -80px, 0) scale3d(0.85, 0.85, 1);
  z-index: 1;
  transition-delay: 0.3s;
}
.bento-card-asym.active .sc-2 {
  opacity: 0.8;
  transform: translate3d(0, -40px, 0) scale3d(0.92, 0.92, 1);
  z-index: 2;
  transition-delay: 0.5s;
}
.bento-card-asym.active .sc-1 {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  z-index: 3;
  transition-delay: 0.7s;
}

/* ---------------------------------
   Animation 3: Bouncing Avatars
------------------------------------ */
.avatar-group {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 10px;
}

.avatar-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid var(--color-bg-gray);
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-left: -15px;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  will-change: opacity, transform;
  transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar-circle:first-child { margin-left: 0; }

.bento-card-asym.active .avatar-circle { opacity: 1; transform: translate3d(0, 0, 0); }
.bento-card-asym.active .avatar-circle:nth-child(1) { transition-delay: 0.4s; animation: float 3s infinite ease-in-out 1s; }
.bento-card-asym.active .avatar-circle:nth-child(2) { transition-delay: 0.6s; animation: float 3.5s infinite ease-in-out 1.2s; }
.bento-card-asym.active .avatar-circle:nth-child(3) { transition-delay: 0.8s; animation: float 3.2s infinite ease-in-out 1.4s; }

/* ---------------------------------
   Animation 4: Fast Execution Lightning
------------------------------------ */
.bento-icon-large {
  font-size: 4rem;
  color: var(--color-border);
  transform: scale3d(0, 0, 1) rotate3d(0, 0, 1, -45deg);
  will-change: color, transform;
  transition: color 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s,
              transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.4s;
}

.bento-card-asym.active .bento-icon-large {
  transform: scale3d(1, 1, 1) rotate3d(0, 0, 1, 0deg);
  color: var(--color-accent);
}

/* ---------------------------------
   Animation 5: Connected Systems
------------------------------------ */
@keyframes link-wobble {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.15); }
}

.bento-card-asym.active .value-icon-badge i {
  animation: link-wobble 3s ease-in-out infinite;
  display: inline-block;
}

.bento-card-asym:hover .value-icon-badge i {
  animation: link-wobble 1.2s ease-in-out infinite;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #d97706; 
  font-size: 1.5rem;
}

.stars-container i { opacity: 0; }

.bento-card-asym.active .stars-container i:nth-child(1) { animation: star-spin 0.6s forwards 0.3s; }
.bento-card-asym.active .stars-container i:nth-child(2) { animation: star-spin 0.6s forwards 0.4s; }
.bento-card-asym.active .stars-container i:nth-child(3) { animation: star-spin 0.6s forwards 0.5s; }
.bento-card-asym.active .stars-container i:nth-child(4) { animation: star-spin 0.6s forwards 0.6s; }
.bento-card-asym.active .stars-container i:nth-child(5) { animation: star-spin 0.6s forwards 0.7s; }

.big-number {
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-top: 10px;
  opacity: 0;
  transform: scale3d(0.5, 0.5, 1);
  will-change: opacity, transform;
  transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s,
              transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s;
}

.bento-card-asym.active .big-number { opacity: 1; transform: scale3d(1, 1, 1); }

/* ---------------------------------
   Animation 6: Infinite Ripples
------------------------------------ */
.circle-impact {
  position: absolute;
  bottom: -60px;
  left: 50%;
  margin-left: -65px;
  width: 130px;
  height: 130px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: scale3d(0, 0, 1);
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-impact::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
}

.bento-card-asym.active .circle-impact { transform: scale3d(1, 1, 1); }
/* Starts the continuous ripple effect after the circle appears */
.bento-card-asym.active .circle-impact::before { animation: continuous-ripple 2s infinite 1.5s; }

/* ---------------------------------
   Mobile Adjustments
------------------------------------ */
@media (max-width: 900px) {
  .bento-grid-asym { grid-template-columns: 1fr; }
  .bento-card-asym.wide, .bento-card-asym.tall, .bento-card-asym.square { grid-column: span 1; grid-row: auto; }
}
/* ==========================================
   TESTIMONIALS
   ========================================== */

.testimonials-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
  margin-top: 40px;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: max-content;
}

.testimonial-card {
  background-color: var(--color-bg-gray); /* Panel colors untouched */
  border: none;
  border-radius: var(--radius-lg);
  padding: 48px;
  width: 500px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.testimonial-quote {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.testimonial-meta h5 { font-size: 1rem; margin-bottom: 2px; }
.testimonial-meta p { font-size: 0.85rem; color: var(--color-text-muted); }

.carousel-controls { display: flex; justify-content: center; gap: 16px; margin-top: 40px; }

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-btn:hover { background-color: var(--color-bg-gray); }

/* ==========================================
   BLOGS & RESOURCES
   ========================================== */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.blog-card {
  background-color: var(--color-bg-white);
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  will-change: transform, box-shadow;
  transition: var(--transition-smooth);
}

.blog-card:hover { box-shadow: none; }
.blog-image { height: 240px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transition: var(--transition-smooth); }
.blog-card:hover .blog-image img { transform: scale3d(1.05, 1.05, 1); }
.blog-content { padding: 32px; }
.blog-date { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 12px; display: block; }
.blog-content h4 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 400; }
.blog-content p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
  position: relative;
  z-index: 1;
  padding-top: clamp(90px, 9vw, 140px) !important;
  padding-bottom: clamp(56px, 5vw, 82px) !important;
  background-color: var(--color-bg-white) !important;
}

.faq-list { max-width: 800px; margin: 0 auto; text-align: left; }

/* ==========================================
   FAQ SECTION
   ========================================== */

.faq-list { 
  max-width: 800px; 
  margin: 28px auto 0; 
  text-align: left; 
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  overflow: hidden; /* Important for the smooth slide effect */
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question { 
  font-weight: 500; 
  font-size: 1.15rem; 
  color: var(--color-text-dark); 
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

/* Hidden Answer State */
.faq-answer {
  height: 0;
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  transition: height 0.48s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease, transform 0.48s cubic-bezier(0.16, 1, 0.3, 1);
  padding-right: 48px;
  will-change: height, opacity, transform;
}

.faq-answer p {
  margin: 0;
  padding-top: 16px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Active (Open) State */
.faq-item.active .faq-answer {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg); /* Turns the plus into an X */
  background-color: var(--color-text-dark);
  color: var(--color-bg-white);
}

/* ==========================================
   CTA SECTION (MINIMAL CENTERED)
   ========================================== */

.bottom-theme-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  background: linear-gradient(120deg, #f3f5f4 0%, #e3e8e5 35%, #ebf0ee 70%, #f3f5f4 100%);
  background-size: 300% 300%;
  animation: cta-gradient-shimmer 18s ease infinite;
  will-change: background-position, transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 0 0 12px;
  isolation: isolate;
}

.bottom-theme-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 78% 18%, rgba(18, 39, 27, 0.12) 0%, rgba(18, 39, 27, 0) 34%),
    radial-gradient(circle at 48% 82%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 38%);
  filter: blur(14px);
  opacity: 0.75;
  transform: translateZ(0);
}

.cta-section {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent !important;
  background-color: transparent !important;
  padding-top: 64px !important;
  padding-bottom: 54px !important;
}

.cta-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  min-height: 430px;
  position: static;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-card.reveal,
.cta-card.reveal.active {
  opacity: 1;
  transform: none;
}

#cta-liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: clamp(48px, 6vw, 86px) clamp(28px, 6vw, 80px);
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.cta-card .section-title {
  font-size: clamp(2.35rem, 4.25vw, 3.7rem);
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;

  /* Hero-title-style slow reveal — fires when .cta-card.reveal becomes .active */
  opacity: 0;
  animation: none;
}

.cta-card .btn {
  opacity: 0;
  font-size: 1.08rem;
  background: var(--color-accent);
  color: var(--color-bg-white);
  border: 1.5px solid var(--color-accent);
  box-shadow: 0 4px 15px rgba(18, 39, 27, 0.15);
  transition:
    background 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s ease,
    color 0.4s ease;
}

/*.cta-card .btn:hover */
.cta-card .btn:hover {
  background: #a95713;
  border-color: #a95713;
  color: var(--color-bg-white);
  box-shadow:
    0px 0.8px  0.8px  -0.47px rgba(169, 87, 19, 0.22),
    0px 2px    2px    -0.94px rgba(169, 87, 19, 0.22),
    0px 4px    4px    -1.41px rgba(169, 87, 19, 0.20),
    0px 7px    7px    -1.88px rgba(169, 87, 19, 0.18),
    0px 12px   12px   -2.34px rgba(169, 87, 19, 0.16),
    0px 20px   20px   -2.81px rgba(169, 87, 19, 0.14),
    0px 36px   36px   -3.28px rgba(169, 87, 19, 0.11),
    0px 60px   60px   -3.75px rgba(169, 87, 19, 0.07),
    0 0 0 0   rgba(169, 87, 19, 0),
    0 0 18px 4px rgba(169, 87, 19, 0.18);
  transform: translateY(-2px);
}

.cta-card.active .section-title {
  animation: cta-content-enter 2s cubic-bezier(0.23, 1, 0.32, 1) 0.1s both;
}

.cta-card.active .btn {
  animation: cta-content-enter 2s cubic-bezier(0.23, 1, 0.32, 1) 0.25s both;
}

@keyframes cta-content-enter {
  from { opacity: 0; transform: translate3d(0, 60px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Ethereal Shadows CTA Background */
.cta-shadow-overlay {
  position: absolute;
  inset: -160px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta-shadow-mask {
  position: absolute;
  inset: 96px;
  background:
    radial-gradient(75% 92% at 50% 7%, rgba(255, 255, 255, 0.40) 0%, rgba(255, 255, 255, 0) 44%),
    linear-gradient(135deg, rgba(12, 33, 21, 0.34) 0%, rgba(38, 91, 62, 0.24) 44%, rgba(12, 33, 21, 0.30) 100%);
  background-size: 200% 200%;
  animation: cta-shadow-gradient-move 18s ease-in-out infinite;
  mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  opacity: 0.76;
  mix-blend-mode: multiply;
  filter: blur(48px) !important;
  will-change: transform, opacity;
}

.cta-shadow-noise {
  position: absolute;
  inset: 96px;
  background-image: url("https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png");
  background-size: 240px;
  background-repeat: repeat;
  opacity: 0.045;
  mix-blend-mode: multiply;
}

@keyframes cta-gradient-shimmer {
  0% { background-position: 0% 50%, 0% 0%; }
  50% { background-position: 100% 50%, 0% 0%; }
  100% { background-position: 0% 50%, 0% 0%; }
}

@keyframes cta-shadow-gradient-move {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1.03) rotate(0deg); }
  50% { transform: translate3d(1.5%, 1%, 0) scale(1.06) rotate(3deg); }
  100% { transform: translate3d(-1.5%, -1%, 0) scale(1.03) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-shadow-mask,
  .bottom-theme-container {
    animation: none !important;
  }
}

@media (max-width: 768px) {
  .cta-card {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 32px 64px;
    min-height: auto;
    gap: 48px;
  }
  .cta-content {
    padding: 0;
    max-width: 100%;
  }

  .cta-shadow-overlay svg {
    display: none !important;
  }
  .footer-hover-link {
    height: auto;
    line-height: normal;
    overflow: visible;
  }
  .footer-link-text {
    display: inline;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
  .footer-link-text::after {
    display: none;
    content: none;
  }
}

@media (max-width: 600px) {
  .cta-card {
    border-radius: 20px;
  }
  .cta-content {
    gap: 28px;
  }
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  position: relative;
  z-index: 1;
  width: calc(100% - 24px) !important;
  margin: 0 auto 12px !important;
  padding: 96px clamp(48px, 5vw, 80px) 67px !important;
  border-radius: 28px !important;
  background-color: var(--color-bg-dark) !important;
  color: var(--color-text-light) !important;
  overflow: hidden !important;
}

.footer .container {
  width: min(100%, 1760px) !important;
  max-width: 1760px !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  column-gap: 80px;
  row-gap: 54px;
  margin-bottom: 54px;
}

.footer-grid .footer-col:first-of-type {
  margin-left: clamp(24px, 3.5vw, 64px);
}

.footer-brand { text-align: left; }
.footer-logo { color: #fff; margin-bottom: 28px; gap: 8px; }
.footer-logo img { filter: brightness(0) invert(1); }
.footer-logo img { height: 32px; width: auto; }
.footer-logo span { font-size: 1.2rem; font-weight: 500; color: #fff; }
.footer-desc { font-size: 1.12rem; color: rgba(255, 255, 255, 0.72); margin-bottom: 32px; max-width: 500px; }
.social-links { display: flex; gap: 12px; }

.social-link {
  width: 30px;
  height: 30px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-white);
  font-size: 1.3rem;
  overflow: hidden;
  cursor: pointer;
}

.social-link i {
  height: 1.4em;
  line-height: 1.4em;
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link i::after {
  content: '\f0e1';
  height: 1.4em;
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
}

.social-link:hover i { transform: translate3d(0, -1.4em, 0); }
.footer-col { text-align: left; }
.footer-col h5 { font-size: 1.55rem; color: var(--color-bg-white); margin-bottom: 32px; font-weight: 400; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.footer-links a { font-size: 1.12rem; color: rgba(255, 255, 255, 0.8); }
.footer-links .footer-policy-start { margin-top: 0; }

.footer-hover-link {
  display: inline-flex;
  height: 1.55em;
  line-height: 1.55em;
  overflow: hidden;
  vertical-align: top;
}

.footer-link-text {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-link-text::after {
  content: attr(data-text);
  height: 1.55em;
  color: var(--color-bg-white);
}

.footer-hover-link:hover .footer-link-text {
  transform: translate3d(0, -1.55em, 0);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy { font-size: 1rem; color: rgba(255, 255, 255, 0.8); }

/* ==========================================
   LEGAL PAGES
   ========================================== */

.legal-hero {
  padding-top: 170px;
  padding-bottom: 72px;
}

.legal-title {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: 4.5rem;
  text-wrap: balance;
}

.legal-intro {
  max-width: 650px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  text-wrap: pretty;
}

.legal-content-section {
  padding-top: 24px;
  padding-bottom: 120px;
}

.legal-document {
  width: min(calc(100% - 48px), 900px);
  margin: 0 auto;
}

.legal-section {
  padding: 38px 0 42px;
  position: relative;
  border-top: 1px solid var(--color-border);
}

.legal-section:last-child {
  border-bottom: 1px solid var(--color-border);
}

.legal-number {
  display: block;
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.legal-section h2 {
  margin-bottom: 16px;
  font-size: 1.75rem;
}

.legal-section p,
.legal-section address {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-style: normal;
  line-height: 1.8;
  text-wrap: pretty;
}

.legal-section p + p {
  margin-top: 12px;
}

.legal-section strong {
  color: var(--color-text-dark);
  font-weight: 500;
}

.legal-section a {
  color: var(--color-text-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.legal-detail-grid div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-detail-grid span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.legal-placeholder {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 4px;
  background: #fff2d8;
  color: #7c5418;
}

@media (max-width: 768px) {
  .legal-hero { padding-top: 140px; padding-bottom: 54px; }
  .legal-title { font-size: 2.8rem; }
  .legal-intro { font-size: 1.05rem; }
  .legal-content-section { padding-top: 12px; padding-bottom: 82px; }
  .legal-document { width: calc(100% - 40px); }
  .legal-section { padding: 30px 0 34px; }
  .legal-section h2 { font-size: 1.5rem; }
  .legal-section p, .legal-section address { font-size: 1rem; }
  .legal-detail-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-hero {
  padding: 142px 0 78px;
}

.contact-hero-layout {
  width: min(calc(100% - clamp(40px, 6vw, 88px)), 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.contact-hero-copy {
  text-align: left;
}

.contact-hero-title {
  max-width: 760px;
  margin: 22px 0 28px;
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 5.8vw, 5.2rem);
  font-weight: 500;
  line-height: 1.06;
  text-wrap: balance;
}

.contact-hero-intro {
  max-width: 650px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.contact-hero-note {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.contact-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #397552;
  box-shadow: 0 0 0 5px rgba(57, 117, 82, 0.1);
}

.contact-system-visual {
  min-height: 430px;
  padding: 20px;
  border: 1px solid #e0e6e2;
  border-radius: 32px;
  background: var(--color-bg-gray);
  box-shadow: 0 24px 64px rgba(18, 39, 27, 0.09);
}

.contact-system-stage {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-bg-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.contact-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
}

.contact-orbit-one { width: 250px; height: 250px; }
.contact-orbit-two { width: 360px; height: 360px; border-color: rgba(255, 255, 255, 0.08); }

.contact-system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 158px;
  height: 158px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #112b1c;
  color: #ffffff;
  text-align: center;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.contact-system-core span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.contact-system-core strong {
  max-width: 112px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
}

.contact-system-node {
  position: absolute;
  min-height: 46px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(18, 39, 27, 0.1);
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--color-text-dark);
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
}

.contact-system-node i { color: #397552; }
.contact-node-hardware { top: 52px; left: 42px; transform: translate3d(-18px, 16px, 0); }
.contact-node-software { top: 88px; right: 28px; transform: translate3d(18px, 16px, 0); transition-delay: 100ms; }
.contact-node-ai { right: 54px; bottom: 52px; transform: translate3d(18px, -16px, 0); transition-delay: 200ms; }

.contact-system-visual.active .contact-system-node {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.contact-main-section {
  padding: 54px 0 120px;
}

.contact-shell {
  width: min(calc(100% - clamp(40px, 6vw, 88px)), 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

.contact-info-card,
.contact-form-card {
  min-width: 0;
  height: 100%;
  border: 1px solid #e2e7e4;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-gray) !important;
  box-shadow: 0 20px 54px rgba(18, 39, 27, 0.07);
}

.contact-info-card {
  padding: clamp(28px, 3.2vw, 48px);
  position: sticky;
  top: 112px;
  border-color: rgba(255, 255, 255, 0.1);
  background-color: var(--color-bg-dark) !important;
  box-shadow: 0 26px 66px rgba(10, 31, 20, 0.18);
}

.contact-form-card {
  padding: clamp(28px, 3.4vw, 52px);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
}

.contact-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 40px;
}

.contact-card-number {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cad4ce;
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.contact-card-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-card-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.7vw, 2.6rem);
  font-weight: 500;
  text-wrap: balance;
}

.contact-info-card .contact-card-number {
  border-color: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.82);
}

.contact-info-card .contact-card-kicker { color: rgba(255, 0, 0, 0.54); }
.contact-info-card .contact-card-heading h2 { color: #ffffff; }

.contact-details {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.contact-detail-row {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: none !important;
  outline: none;
  box-shadow: none !important;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.contact-info-card .contact-detail-row {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.065);
}

.contact-info-card a.contact-detail-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background-color: rgba(255, 255, 255, 0.1);
}

.contact-info-card .contact-detail-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #a9c7b4;
}

.contact-info-card .contact-detail-row div > span { color: rgba(255, 255, 255, 0.52); }
.contact-info-card .contact-detail-row strong { color: #ffffff; }

a.contact-detail-row {
  transition: border-color 180ms ease-out, background-color 180ms ease-out;
}

a.contact-detail-row:hover {
  border-color: #b9c8c0;
  background-color: #ffffff;
}

.contact-detail-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7eeea;
  color: var(--color-accent);
}

.contact-detail-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.contact-detail-row div > span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.contact-detail-row strong {
  color: var(--color-text-dark);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-map-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: var(--radius-md);
  background: #e7ece9;
}

.contact-info-card .contact-map-wrap {
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-response-note {
  margin: 2px 0 26px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.contact-response-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-bg-dark);
}

.contact-response-note div { display: grid; gap: 3px; }
.contact-response-note strong { color: #ffffff; font-size: 0.86rem; font-weight: 500; }
.contact-response-note div span { color: rgba(255, 255, 255, 0.55); font-size: 0.76rem; }

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.72) contrast(0.94);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.contact-map-wrap.is-loaded iframe,
.contact-map-wrap.is-loaded:focus-within iframe,
.contact-map-wrap.is-loaded:active iframe {
  pointer-events: auto;
  opacity: 1;
}

.contact-map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 22px;
  text-align: center;
  background: #ffffff;
  color: #436553;
}

.contact-map-placeholder span {
  max-width: 240px;
  color: #56715f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.contact-map-load span {
  color: #ffffff;
}

.contact-map-load {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #0d1510;
  color: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(13, 21, 16, 0.2);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.contact-map-load:hover,
.contact-map-load:focus-visible {
  transform: translateY(-2px);
  background: #b65b09;
  box-shadow: 0 18px 35px rgba(182, 91, 9, 0.28);
  outline: none;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.contact-field {
  display: grid;
  grid-template-rows: auto auto 17px;
  gap: 8px;
  min-width: 0;
}

.contact-field label {
  min-height: 21px;
  color: var(--color-text-dark);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 21px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  height: 56px;
  padding: 15px 17px;
  border: 1px solid #d7dfda;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: var(--color-text-dark);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 180ms ease-out, box-shadow 180ms ease-out;
}

.contact-field textarea {
  height: auto;
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #98a39d;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.contact-field [aria-invalid="true"] {
  border-color: #a33b3b;
}

.contact-field-error {
  min-height: 17px;
  color: #8b3030;
  font-size: 0.75rem;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
}

.contact-consent-error {
  margin: 0;
}

.contact-submit {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.contact-form-status {
  min-height: 20px;
  margin: -5px 0 0;
  color: var(--color-accent);
  font-size: 0.82rem;
  text-align: center;
}

.contact-form-status.is-success { color: #2f6f4c; }
.contact-form-status.is-error { color: #8b3030; }

.contact-reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.contact-reveal-down {
  transform: translate3d(0, -42px, 0);
}

.contact-reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.contact-delay-1 { transition-delay: 120ms; }
.contact-delay-2 { transition-delay: 220ms; }

@media (max-width: 980px) {
  .contact-hero-layout { grid-template-columns: 1fr; gap: 46px; }
  .contact-hero-copy { text-align: center; }
  .contact-hero-title, .contact-hero-intro { margin-left: auto; margin-right: auto; }
  .contact-shell { grid-template-columns: 1fr; max-width: 760px; }
  .contact-info-card { position: static; }
  .contact-map-wrap { height: 340px; }
  .contact-system-visual { width: min(100%, 620px); margin: 0 auto; }
}

@media (max-width: 768px) {
  .contact-hero { padding: 126px 0 52px; }
  .contact-hero-layout { width: min(calc(100% - 32px), 760px); gap: 38px; }
  .contact-hero-title { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .contact-system-visual { min-height: 356px; padding: 12px; border-radius: 24px; }
  .contact-system-stage { height: 332px; border-radius: 18px; }
  .contact-orbit-one { width: 210px; height: 210px; }
  .contact-orbit-two { width: 300px; height: 300px; }
  .contact-system-core { width: 138px; height: 138px; }
  .contact-node-hardware { top: 34px; left: 20px; }
  .contact-node-software { top: 72px; right: 14px; }
  .contact-node-ai { right: 26px; bottom: 34px; }
  .contact-main-section { padding: 26px 0 80px; }
  .contact-shell { width: min(calc(100% - 32px), 760px); gap: 16px; }
  .contact-info-card, .contact-form-card { padding: 24px; border-radius: 20px; }
  .contact-card-heading { margin-bottom: 30px; }
  .contact-map-wrap { height: 260px; }
}

@media (max-width: 600px) {
  .contact-field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-reveal { opacity: 1; transform: none; transition: none; }
}

/* Contact page cohesion: reuse the visual language of Home and About. */
.contact-hero {
  padding: 150px 0 54px;
}

.contact-hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero-title {
  max-width: 920px;
  margin: 22px auto 26px;
  font-size: 4.5rem;
  line-height: 1.1;
}

.contact-hero-intro {
  max-width: 700px;
  margin: 0 auto;
}

.contact-photo-strip {
  width: min(calc(100% - clamp(48px, 6.5vw, 96px)), 1800px);
  margin: 78px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-photo {
  aspect-ratio: 5 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-bg-gray);
  box-shadow: var(--shadow-sm);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-main-section {
  padding: 58px 0 120px;
}

.contact-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-info-card,
.contact-form-card {
  border-color: transparent;
  background-color: var(--color-bg-gray) !important;
  box-shadow: none;
}

.contact-info-card {
  position: static;
  top: auto;
  border-color: transparent;
  background-color: var(--color-bg-gray) !important;
  box-shadow: none;
}

.contact-info-card .contact-card-number {
  border-color: #cad4ce;
  color: var(--color-accent);
}

.contact-info-card .contact-card-kicker { color: var(--color-text-muted); }
.contact-info-card .contact-card-heading h2 { color: var(--color-text-dark); }

.contact-info-card .contact-detail-row {
  border-color: #dce3df;
  background: rgba(255, 255, 255, 0.7);
}

.contact-info-card a.contact-detail-row:hover {
  border-color: #b9c8c0;
  background-color: #ffffff;
}

.contact-info-card .contact-detail-icon {
  background: #e7eeea;
  color: var(--color-accent);
}

.contact-info-card .contact-detail-row div > span { color: var(--color-text-muted); }
.contact-info-card .contact-detail-row strong { color: var(--color-text-dark); }
.contact-info-card .contact-map-wrap { border-color: #dce3df; }

@media (max-width: 1024px) {
  .contact-hero-title { font-size: 3.5rem; }
}

@media (max-width: 1100px) {
  .contact-shell { grid-template-columns: 1fr; max-width: 760px; }
}

@media (max-width: 768px) {
  .contact-hero { padding: 128px 0 42px; }
  .contact-hero-title { font-size: 2.8rem; }
  .contact-photo-strip {
    width: calc(100% - 32px);
    margin-top: 54px;
    gap: 8px;
  }
  .contact-photo { aspect-ratio: 3 / 4; border-radius: 14px; }
  .contact-main-section { padding-top: 36px; }
}

@media (max-width: 768px) {
  .footer { width: calc(100% - 16px) !important; margin: 0 auto 8px !important; padding: 68px 32px 52px !important; border-radius: 22px !important; }
  .footer .container { width: 100% !important; max-width: none !important; padding-left: 0; padding-right: 0; }
  .footer-grid { gap: 44px; margin-bottom: 58px; }
  .footer-logo img { height: 30px; }
  .footer-logo span { font-size: 1.12rem; }
  .footer-desc { font-size: 1.05rem; }
  .footer-col h5 { font-size: 1.4rem; margin-bottom: 22px; }
  .footer-links a { font-size: 1.05rem; }
}

/* Modern split contact card, adapted to the Zylyx visual system. */
.contact-main-section { padding-top: 42px; }

.contact-shell {
  grid-template-columns: minmax(390px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.contact-side-stack {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.contact-info-card,
.contact-form-card {
  border: 0;
  border-radius: 24px;
  box-shadow: none;
}

.contact-info-card {
  padding: clamp(28px, 2.8vw, 40px);
  display: flex;
  flex-direction: column;
  border: none !important;
  outline: none;
  background: var(--color-bg-gray) !important;
  box-shadow: none !important;
}

.contact-form-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px;
  background: #071d13 !important;
  box-shadow: none;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -2;
  background: #4f8260;
  -webkit-mask: url("ethereal-shadow-mask.webp") center / cover no-repeat;
  mask: url("ethereal-shadow-mask.webp") center / cover no-repeat;
  opacity: 0.9;
}

.contact-form-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("ethereal-shadow-noise.webp") center / 240px repeat;
  opacity: 0.055;
  pointer-events: none;
}

.contact-form-inner {
  min-height: 100%;
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: 17px;
  border: 0;
  box-shadow: none;
  background: rgba(7, 27, 18, 0.46);
}

.contact-card-heading { margin-bottom: 10px; }
.contact-card-heading > div { width: 100%; }

.contact-card-kicker,
.contact-info-card .contact-card-kicker {
  margin-bottom: 10px;
  color: #397552;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-form-card .contact-card-kicker { color: #a9c7b4; }

.contact-info-card .contact-card-heading h2,
.contact-form-card .contact-card-heading h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.45rem);
  line-height: 1.1;
}

.contact-info-card .contact-card-heading h2 { color: var(--color-text-dark); }
.contact-form-card .contact-card-heading h2 { color: #ffffff; }

.contact-card-description {
  max-width: 420px;
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.contact-details {
  gap: 0;
  margin-bottom: 20px;
  border-top: 1px solid #d5ddd8;
}

.contact-detail-row,
.contact-info-card .contact-detail-row {
  min-height: 62px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #d5ddd8;
  border-radius: 0;
  background: transparent;
}

.contact-info-card a.contact-detail-row:hover {
  border-color: #b9c8c0;
  background: transparent;
}

.contact-info-card .contact-detail-icon {
  border: 1px solid #d5ddd8;
  background: #ffffff;
  color: #397552;
}

.contact-info-card .contact-detail-row div > span { color: var(--color-text-muted); }
.contact-info-card .contact-detail-row strong { color: var(--color-text-dark); }

.contact-map-wrap {
  height: 155px;
  margin-top: auto;
  border: 1px solid #d5ddd8;
  border-radius: 16px;
  background: #e4eae6;
}

.contact-form { gap: 6px; }

.contact-form-card .contact-field {
  grid-template-rows: auto auto 14px;
  gap: 4px;
}

.contact-form-card .contact-field-error {
  min-height: 14px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(4, 20, 13, 0.52);
}

.contact-form-card .contact-field label {
  color: #ffffff;
}

.contact-form-card .contact-field input,
.contact-form-card .contact-field select,
.contact-form-card .contact-field textarea {
  color: #ffffff;
}

.contact-form-card .contact-field input,
.contact-form-card .contact-field select {
  height: 48px;
  min-height: 48px;
}

.contact-form-card .contact-field textarea {
  min-height: 90px;
  resize: none;
}

.contact-form-card .contact-field select {
  appearance: none;
  -webkit-appearance: none;
  height: 48px;
  min-height: 48px;
  padding: 0 66px 0 17px;
  line-height: 1.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='13' fill='%2309211a' fill-opacity='.82' stroke='%23efc56b' stroke-opacity='.75'/%3E%3Cpath d='m9.75 11.75 4.25 4.5 4.25-4.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 28px 28px;
}

.contact-form-card .contact-field input::placeholder,
.contact-form-card .contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact-form-card .contact-field select option {
  background: #10291c;
  color: #ffffff;
}

.contact-form-card .contact-field input:focus,
.contact-form-card .contact-field select:focus,
.contact-form-card .contact-field textarea:focus {
  border-color: #a9c7b4;
  background-color: rgba(4, 20, 13, 0.68);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.contact-form-card input:-webkit-autofill,
.contact-form-card input:-webkit-autofill:hover,
.contact-form-card input:-webkit-autofill:focus,
.contact-form-card textarea:-webkit-autofill,
.contact-form-card select:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  -webkit-box-shadow: 0 0 0 1000px #10291c inset !important;
  box-shadow: 0 0 0 1000px #10291c inset !important;
}

.contact-form-card input:autofill,
.contact-form-card textarea:autofill,
.contact-form-card select:autofill {
  color: #ffffff;
  box-shadow: 0 0 0 1000px #10291c inset !important;
}

.contact-form-card .contact-consent {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form-card .contact-consent input {
  accent-color: #a9c7b4;
}

.contact-form-card .contact-consent-error:not(:empty) {
  display: block;
  min-height: 0;
  margin: -2px 0 2px;
  line-height: 1.35;
}

.contact-form-card .contact-submit {
  min-height: 50px;
  margin-top: 6px;
  background-color: #000000 !important;
  color: #ffffff !important;
}

.contact-form-card .contact-submit:hover {
  background-color: #a95713 !important;
}

.contact-form-card .contact-submit:not(:hover):not(:disabled) {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.13),
    0 5px 14px rgba(255, 255, 255, 0.16),
    0 12px 30px rgba(255, 255, 255, 0.18);
}

.contact-form-card .contact-submit:disabled {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-form-card .contact-submit:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 3px;
}

.contact-form-card .contact-field-error,
.contact-form-card .contact-form-status.is-error {
  color: #ffd1d1;
}

.contact-form-card .contact-form-status,
.contact-form-card .contact-form-status.is-success {
  color: #d4eadb;
}

.contact-form-card .contact-form-status:not(:empty) {
  min-height: 0;
  margin: 2px 0 8px;
  padding: 10px 12px;
  border: 1px solid rgba(212, 234, 219, 0.2);
  border-radius: 10px;
  background: rgba(4, 20, 13, 0.5);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: left;
}

.contact-form-card .contact-form-status.is-error:not(:empty) {
  border-color: rgba(255, 209, 209, 0.25);
  background: rgba(68, 20, 20, 0.36);
}

.contact-form-card .contact-form-status:empty,
.contact-form-card .contact-consent-error:empty {
  display: none;
}

.contact-privacy-card {
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border: 0;
  border-radius: 20px;
  background: var(--color-bg-gray);
  box-shadow: none;
}

.contact-privacy-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e7eeea;
  color: #397552;
}

.contact-privacy-card h3 {
  margin: 1px 0 7px;
  color: var(--color-text-dark);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-privacy-card p {
  margin: 0 0 8px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.contact-privacy-card a {
  color: #397552;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .contact-shell {
    grid-template-columns: 1fr;
    max-width: 800px;
    gap: 16px;
  }

  .contact-side-stack { gap: 14px; }
}

@media (max-width: 600px) {
  .contact-info-card,
  .contact-form-inner {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .contact-form-card { padding: 10px; }

  .contact-map-wrap { height: 170px; }
  .contact-privacy-card { padding: 20px; border-radius: 18px; }
}

/* ==========================================
   CAREER PAGE
   ========================================== */

.career-hero {
  padding-bottom: 44px;
}

.career-hero .hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.career-hero .hero-title > span {
  display: block;
  width: 100%;
  text-align: center;
}

@media (min-width: 480px) {
  .career-hero .hero-title > span {
    white-space: nowrap;
  }
}

.career-hero-copy {
  max-width: 800px;
  margin: 0 auto;
}

.career-hero-copy .section-label {
  margin-bottom: 28px;
}

.career-visual {
  width: min(calc(100% - 48px), 1280px);
  height: 560px;
  margin: 64px auto 0;
  padding: 16px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  gap: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-gray);
}

.career-visual-main,
.career-visual-side,
.career-visual-side img {
  min-width: 0;
  min-height: 0;
}

.career-visual-main,
.career-visual-side img {
  overflow: hidden;
  border-radius: 14px;
}

.career-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.career-visual.hero-photo-reveal img {
  transform: scale3d(1, 1, 1);
}

.career-visual.active img {
  transform: scale(1);
}

.career-visual-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.career-visual-note {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: #12281b;
  color: #fff;
  font-size: 0.95rem;
}

.career-culture {
  padding-top: 90px;
  padding-bottom: 90px;
}

.career-section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
}

.career-section-heading .section-desc {
  max-width: 720px;
}

.career-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.career-bento-card {
  min-height: 320px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-bg-gray);
  border: none;
  box-shadow: none;
  contain: paint;
}

.career-bento-wide {
  grid-column: span 2;
}

.career-bento-square {
  grid-column: span 1;
}

.career-card-copy {
  max-width: 470px;
  position: relative;
  z-index: 2;
}

.career-card-meta {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.career-card-meta span:last-child {
  padding-left: 12px;
  border-left: 1px solid #cfd7d3;
}

.career-bento-card h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
}

.career-bento-card p {
  max-width: 440px;
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  text-wrap: pretty;
}

.ownership-visual {
  width: 200px;
  height: 200px;
  position: absolute;
  right: 34px;
  bottom: -42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(44px) scale(0.86);
  transition: opacity 1s ease, transform 1.2s ease;
}

.career-bento-card.active .ownership-visual {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ownership-orbit {
  position: absolute;
  border: 1px solid rgba(18, 39, 27, 0.18);
  border-radius: 50%;
}

.orbit-one { inset: 0; }
.orbit-two { inset: 34px; }

.ownership-core {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.6rem;
  transform: scale(0.5);
  transition: transform 1s ease 0.25s;
}

.career-bento-card.active .ownership-core {
  transform: scale(1);
}

.message-visual {
  position: absolute;
  right: 30px;
  bottom: 26px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-visual span {
  height: 13px;
  border-radius: var(--radius-full);
  background: #d8dedb;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s ease;
}

.message-visual span:nth-child(1) { width: 88%; }
.message-visual span:nth-child(2) { width: 66%; transition-delay: 0.15s; }
.message-visual span:nth-child(3) { width: 42%; transition-delay: 0.3s; }
.career-bento-card.active .message-visual span { transform: scaleX(1); }

.craft-visual {
  width: 112px;
  height: 112px;
  position: absolute;
  right: 30px;
  bottom: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #d8dedb;
  border-radius: 50%;
  color: var(--color-accent);
  font-size: 2rem;
  opacity: 0;
  transform: rotate(-18deg) scale(0.72);
  transition: opacity 1s ease, transform 1.2s ease;
}

.craft-visual span {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(18, 39, 27, 0.25);
  border-radius: 50%;
}

.career-bento-card.active .craft-visual {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.career-bento-dark {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 36px;
  align-items: center;
  background: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
}

.career-bento-dark h3,
.career-bento-dark .career-card-meta {
  color: #fff;
}

.career-bento-dark .career-card-meta span:last-child {
  border-left-color: rgba(255, 255, 255, 0.22);
}

.career-bento-dark p {
  color: rgba(255, 255, 255, 0.65);
}

.career-check-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.career-check-list > span {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.career-check-list i {
  margin-top: 5px;
  color: #8fbd9d;
  font-size: 0.75rem;
}

.career-bento-card.active .career-check-list > span {
  opacity: 1;
  transform: translateX(0);
}

.career-bento-card.active .career-check-list > span:nth-child(2) { transition-delay: 0.12s; }
.career-bento-card.active .career-check-list > span:nth-child(3) { transition-delay: 0.24s; }

.ownership-orbit::after {
  content: '';
  width: 9px;
  height: 9px;
  position: absolute;
  top: 50%;
  left: -5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.career-bento-card.is-animating .orbit-one { animation: career-orbit 8s linear infinite; }
.career-bento-card.is-animating .orbit-two { animation: career-orbit 6s linear infinite reverse; }
.career-bento-card.is-animating .ownership-core { animation: career-float 2.8s ease-in-out infinite; }
.career-bento-card.is-animating .message-visual span { animation: career-message 2.7s ease-in-out infinite; }
.career-bento-card.is-animating .message-visual span:nth-child(2) { animation-delay: 0.18s; }
.career-bento-card.is-animating .message-visual span:nth-child(3) { animation-delay: 0.36s; }
.career-bento-card.is-animating .craft-visual { animation: career-craft 4.5s ease-in-out infinite; }
.career-bento-card.is-animating .career-check-list i { animation: career-check 2.4s ease-in-out infinite; }

@keyframes career-orbit {
  to { transform: rotate(360deg); }
}

@keyframes career-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes career-message {
  0%, 100% { transform: scaleX(0.5); opacity: 0.45; }
  45%, 70% { transform: scaleX(1); opacity: 1; }
}

@keyframes career-craft {
  0%, 100% { transform: rotate(-4deg) scale(0.96); }
  50% { transform: rotate(5deg) scale(1); }
}

@keyframes career-check {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.career-openings {
  padding-top: 90px;
  padding-bottom: 90px;
}

.career-jobs-heading {
  max-width: 700px;
  margin: 0 auto 40px;
}

.career-jobs-heading .section-desc {
  max-width: 520px;
}

.job-filter-bar {
  min-height: 76px;
  padding: 14px 18px 14px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid #dfe5e2;
  border-radius: var(--radius-md);
  background: var(--color-bg-gray);
}

.job-filter-label,
.job-count {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.job-filter-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-filter {
  min-width: 52px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  cursor: pointer;
  transition:
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.job-filter:hover {
  border-color: #cfd7d3;
  color: var(--color-text-dark);
}

.job-filter.active {
  background: var(--color-accent);
  color: #fff;
}

.job-count strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

.career-empty-state {
  min-height: 370px;
  margin-top: 18px;
  padding: 58px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #e2e7e4;
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-bg-gray);
  color: var(--color-accent);
}

.career-empty-state h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.career-empty-state p {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .career-bento-grid { grid-template-columns: 1fr 1fr; }
  .career-bento-wide { grid-column: span 2; }
  .career-bento-square { grid-column: span 1; }
}

@media (max-width: 768px) {
  .career-hero { padding-top: 130px; padding-bottom: 56px; }
  .career-visual {
    width: calc(100% - 32px);
    height: 520px;
    margin-top: 48px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.55fr) minmax(120px, 0.55fr);
  }
  .career-visual-side { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
  .career-visual-note { display: none; }
  .career-culture { padding-top: 72px; padding-bottom: 72px; }
  .career-section-heading { margin-bottom: 40px; }
  .career-bento-grid { grid-template-columns: 1fr; }
  .career-bento-wide,
  .career-bento-square { grid-column: span 1; }
  .career-bento-card { min-height: 310px; padding: 28px; }
  .career-bento-dark { display: flex; flex-direction: column; align-items: stretch; }
  .ownership-visual { width: 170px; height: 170px; right: 18px; }
  .craft-visual { width: 104px; height: 104px; }
  .career-openings { padding-top: 72px; padding-bottom: 72px; }
  .career-jobs-heading { margin-bottom: 40px; }
  .job-filter-bar { padding: 18px; grid-template-columns: 1fr auto; gap: 14px; }
  .job-filter-label { grid-column: 1; }
  .job-count { grid-column: 2; grid-row: 1; }
  .job-filter-options { grid-column: 1 / -1; overflow-x: auto; padding-bottom: 2px; }
  .job-filter { flex: 0 0 auto; }
  .career-empty-state { min-height: 390px; padding: 46px 22px; }
  .career-empty-state h3 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-down,
  .hero-copy-reveal,
  .hero-photo-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .hero-photo-reveal img {
    animation: none;
  }

  .service-card-content {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .career-bento-card * {
    animation: none !important;
  }

  .cta-card .section-title,
  .cta-card .btn {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ==========================================
   SCROLL REVEAL EFFECTS
   ========================================== */

.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1), transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.active { opacity: 1; transform: translate3d(0, 0, 0); }

/* Buttons that also carry .reveal must keep their own hover transitions */
.btn.reveal,
.btn.reveal.active {
  transition:
    opacity 2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s ease;
}

.reveal-down {
  opacity: 0;
  transform: translate3d(0, -16px, 0);
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1), transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-down.active { opacity: 1; transform: translate3d(0, 0, 0); }

/* Stagger delays — Tighten for snappy cascading sequences */
.delay-1 { transition-delay: 0.05s !important; }
.delay-2 { transition-delay: 0.10s !important; }
.delay-3 { transition-delay: 0.15s !important; }
.delay-4 { transition-delay: 0.20s !important; }
.delay-5 { transition-delay: 0.25s !important; }
.delay-6 { transition-delay: 0.30s !important; }
.delay-7 { transition-delay: 0.35s !important; }
.delay-8 { transition-delay: 0.40s !important; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  .about-center .about-heading { font-size: 2.0rem; }
  .hero-grid-photos { grid-template-columns: repeat(3, 1fr); }
  
  .ecosystem-section .sticky-layout { grid-template-columns: 1fr; gap: 40px; }
  .ecosystem-section .sticky-sidebar { position: static; }
  .sticky-cards { gap: 60px; }
  
  .bento-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }
  .hero-title { font-size: 2.8rem; }
  html[lang="de"] .hero-title-reveal,
  html[lang="nl"] .hero-title-reveal { font-size: clamp(2rem, 8.4vw, 2.8rem); }
  .hero-title-reveal { white-space: normal; }
  .hero-title-line { display: block; width: auto; }
  .section-title { font-size: clamp(1.8rem, 6.2vw, 2.2rem) !important; }
  .section-desc { font-size: 1.05rem !important; }
  .about-center .about-heading { font-size: 1.55rem; }
  .hero-grid-photos {
    grid-template-columns: 1fr;
    width: min(calc(100% - 40px), 520px);
    gap: 18px;
    margin-top: 72px;
  }
  
  .logo {
    position: relative;
    z-index: 1001;
  }
  
  .lang-toggle-dropdown {
    position: relative;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--color-bg-white);
    flex-direction: column;
    padding: 120px 24px 24px 24px;
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transition: var(--transition-smooth);
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
  }
  
  .nav-menu.open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-menu .nav-link {
    font-size: 24px;
    font-weight: 400;
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    width: 100%;
    height: auto;
    line-height: normal;
    overflow: visible;
    display: block;
    padding: 8px 0;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
  }
  
  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    color: var(--color-accent);
  }

  .nav-menu .nav-link-text {
    display: block;
    transform: none !important;
  }

  .nav-menu .nav-link-text::after {
    display: none !important;
    content: none !important;
  }

  .nav-menu .nav-link:hover .nav-link-text {
    transform: none !important;
  }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f4f6f5;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    transition: background-color 0.3s ease;
  }
  
  .menu-toggle:hover {
    background-color: rgb(228, 235, 233);
  }
  
  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: rgb(19, 38, 27);
    border-radius: 2px;
    margin: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .menu-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-card { width: min(100%, 320px); padding: 32px; }
  .bento-card-asym { padding: 24px; }
  .bento-boost-title { font-size: 1.6rem !important; }
}

.bottom-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 9998;
  background: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.72) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.72) 45%, transparent 100%);
  transform: translateZ(0);
  contain: paint;
  will-change: backdrop-filter;
}

@media (max-width: 1199.98px) {
  .bottom-blur {
    height: 60px;
  }
}

@media (max-width: 809.98px) {
  .bottom-blur {
    height: 40px;
  }
}

/* ==========================================
   BLUR WORD REVEAL ANIMATION
   ========================================== */
.blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 10px, 0);
  will-change: opacity, filter, transform;
  /* The transition delay will be added by JavaScript */
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: pre-wrap; 
}

/* When the section comes into view, make the words clear */
.about-heading.active .blur-word {
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 0, 0);
}

/* ==========================================
   HOW WE WORK (ALTERNATING TIMELINE)
   ========================================== */

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 0; 
}

/* The Central Vertical Line */
.timeline-line {
  position: absolute;
  top: 140px;     /* Makes the line go slightly ABOVE number 1 */
  bottom: 140px;  /* Makes the line go slightly BELOW number 5 */
  left: 50%;
  width: 2px;
  background-color: var(--color-border);
  transform: translateX(-50%); /* Keeps the line perfectly in the center */
  z-index: 1;
}

/* Individual Step Row */
.timeline-step {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  z-index: 2;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

/* The Number Node in the Center */
.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Keeps the circle perfectly on the line */
  width: 50px;
  height: 50px;
  background-color: var(--color-bg-white);
  color: var(--color-text-muted);
  border: 3px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 600;
  z-index: 3;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* The Card Holding the Text */
.timeline-content {
  width: 45%; 
  background-color: var(--color-bg-gray);
  border-radius: var(--radius-lg);
  padding: 32px;
  /* Card starts slightly smaller */
  transform: scale3d(0.95, 0.95, 1);
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Positioning Cards Left or Right */
.left-card {
  margin-right: auto;
  text-align: left; 
}

.right-card {
  margin-left: auto;
  text-align: left;
}

/* Card Typography */
.timeline-content h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--color-text-dark);
  font-weight: 400;
}

.timeline-content p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.6;
}

/* ==========================================
   SCROLL ANIMATIONS (ONLY GLOW, NO MOVEMENT)
   ========================================== */

/* When you scroll and the card becomes active, the card grows to normal size */
.timeline-content.active {
  transform: scale3d(1, 1, 1); 
  background-color: var(--color-bg-gray);
  box-shadow: none;
}

/* This is the new glow class controlled by JavaScript (One at a time) */
.timeline-step.is-focused .timeline-node,
.timeline-node.glow-active {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  box-shadow: none; 
  /* No scale, no movement. It stays perfectly still. */
}

.timeline-step.is-focused .timeline-content {
  transform: scale3d(1.045, 1.045, 1);
  background-color: var(--color-bg-gray);
  box-shadow: 0 18px 42px rgba(18, 39, 27, 0.11);
}

/* ---------------------------------
   Mobile Layout Adjustments
------------------------------------ */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: translateX(0);
    top: 160px; /* Reduced by 20px (approx 5mm) from top */
  }
  
  .timeline-node {
    left: 20px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-width: 2px;
    transform: translate(-50%, -50%);
  }

  /* Make sure mobile does not move the node either */
  .timeline-node.glow-active {
    transform: translate(-50%, -50%); 
  }

  .timeline-content {
    width: calc(100% - 60px); 
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding: 24px !important;
  }
}

/* ==========================================
   PRODUCT PAGES & CAROUSELS (CLASSIC RESTORED)
   ========================================== */

.service-hero {
  position: relative;
  width: 100%;
  height: clamp(260px, 40vw, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 72px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-dark);
  isolation: isolate;
}

@media (max-width: 600px) {
  .service-hero {
    height: 56vw;
    min-height: 220px;
    max-height: 320px;
    border-radius: 16px;
    margin-top: 60px;
    margin-bottom: 16px;
  }
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35); /* Subtle dark overlay to make white text highly readable */
  z-index: 1;
  display: block;
}

.service-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 0;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-bg-white);
  padding: 0 var(--page-gutter);
}

@keyframes heroTitleFade {
  from {
    opacity: 0;
    transform: translate3d(0, -52px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.service-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: var(--color-bg-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  animation: heroTitleFade 2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes heroSubtitleFade {
  from {
    opacity: 0;
    transform: translate3d(0, -52px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.service-hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
  margin: 12px 0 0 0;
  animation: heroSubtitleFade 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.service-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  padding: 20px 0;
  margin-bottom: 36px;
}

.service-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 1.15rem;
  transition: color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-nav-link:hover {
  color: var(--color-text-dark);
}

@media (max-width: 600px) {
  .service-nav-bar {
    padding: 12px 0;
    margin-bottom: 20px;
  }
  .service-nav-link {
    font-size: 0.88rem;
    gap: 5px;
  }
  .service-nav-link .arrow-container,
  .service-nav-link .arrow-container-left {
    width: 20px;
    height: 16px;
  }
  .service-nav-link i {
    font-size: 0.8rem;
  }
}

.service-page-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
  margin-bottom: 90px;
}

.service-main-col {
  display: flex;
  flex-direction: column;
}

.service-main-col h2 {
  font-size: clamp(1.75rem, 5vw, 2.8rem);
  font-weight: 400;
  margin-top: clamp(36px, 6vw, 64px);
  margin-bottom: 20px;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
  text-transform: none;
}

.service-main-col h2:first-of-type {
  margin-top: 0;
}

.service-main-col p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Premium Card Lists for Content */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-list-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-gray);
  border: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



.service-list-item-bullet {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-bg-white);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Step number inside bullet — inherits circle shape from parent */
.step-badge {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-list-item-content {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-list-item-content strong {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* Scroll-Sticky Badges Sidebar */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 120px;
    justify-content: flex-start; /* Keeps items closely stacked */
    align-items: stretch;        /* Ensures items fit well horizontally */
    height: max-content;         /* Stops the container from stretching */
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-gray);
  color: var(--color-text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}



.sidebar-badge i {
  color: var(--color-accent);
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
}

/* Horizontal Scroll Carousel */
.carousel-section {
  padding: 90px 0;
  background-color: var(--color-bg-gray);
  overflow: hidden;
}

.carousel-section .section-title {
  font-size: 2.8rem;
  text-transform: none;
  letter-spacing: normal;
}

.carousel-container {
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.carousel-track-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0 30px 0;
}

.carousel-track-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 10px;
}

.feature-card {
  scroll-snap-align: start;
  background-color: var(--color-bg-gray);
  border: none;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  width: 300px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  box-shadow: none;
}

.feature-card-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-orange,
.icon-blue,
.icon-red,
.icon-purple,
.icon-green,
.icon-cyan,
.icon-magenta,
.icon-lime { background-color: rgba(18, 39, 27, 0.07); color: var(--color-accent); }

.feature-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.carousel-dots-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-radius 0.3s ease;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background-color: var(--color-text-dark);
}

@media (max-width: 900px) {
  .service-page-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }
  .sidebar-badge {
    flex: 1 1 calc(50% - 12px);
    min-width: 150px;
  }
}

@media (max-width: 600px) {
  .sidebar-badge {
    flex: 1 1 100%;
  }
  .feature-card {
    width: 270px;
  }
}

/* ==========================================
   ZYLYXSTUDIO SERVICE SWITCHER & LAYOUTS
   ========================================== */

.service-switcher-wrapper {
  display: flex;
  justify-content: center;
  margin: 54px auto 72px;
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
}

.service-switcher {
  display: flex;
  background-color: var(--color-bg-gray);
  border-radius: 100px;
  padding: 6px;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.switcher-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 28px;
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-dark);
  position: relative;
  gap: 2px;
}

.switcher-btn .switcher-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

.switcher-btn .switcher-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.switcher-btn.active {
  background-color: var(--color-bg-dark);
}

.switcher-btn.active .switcher-title {
  color: var(--color-bg-white);
}

.switcher-btn.active .switcher-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* Tab Panels */
.service-tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.service-tab-panel .service-page-container {
  margin-bottom: 90px;
}

.text-blue { color: #1e90ff; }
.text-purple { color: #8a2be2; }
.text-orange { color: #a95713; }
.text-green { color: #397552; }

/* Showcase layout inside service pages */
.panel-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin: 48px 0;
  align-items: center;
}

.panel-image-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(18, 39, 27, 0.05);
}

.panel-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.panel-image-wrap:hover img {
  transform: scale(1.03);
}

.panel-text-wrap {
  display: flex;
  flex-direction: column;
}

.panel-text-wrap h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.panel-text-wrap p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Switcher Responsive Styles */
@media (max-width: 900px) {
  .service-switcher {
    border-radius: 20px;
    flex-direction: column;
    padding: 10px;
  }

  .switcher-btn {
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
  }

  .panel-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* On mobile, full-width pill — no scrolling needed, 3 labels fit fine */
@media (max-width: 600px) {
  .service-switcher-wrapper {
    padding: 0 16px;
    overflow-x: visible;
    justify-content: center;
    margin: 24px auto 48px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    gap: 0;
  }
  .service-switcher-wrapper::-webkit-scrollbar { display: none; }
  .service-switcher {
    flex-direction: row !important;
    border-radius: 100px !important;
    padding: 5px !important;
    width: 100%;
    min-width: unset;
  }
  .switcher-btn {
    flex: 1 1 0;
    width: auto !important;
    border-radius: 100px !important;
    padding: 10px 8px !important;
    white-space: nowrap;
    min-width: 0;
  }
  .switcher-btn .switcher-title {
    font-size: 0.85rem;
  }
  .switcher-btn .switcher-subtitle {
    display: none;
  }
}


/* ==========================================
   BENEFITS GRID & BUSINESS MODEL CANVAS CARDS
   ========================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.benefit-grid-card {
  background-color: var(--color-bg-gray);
  border: none;
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, border-color 0.4s ease, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.benefit-grid-card.reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0) !important;
  transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1), transform 2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.benefit-grid-card.reveal.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) !important;
}

.benefit-grid-card:hover {
  background-color: var(--color-bg-gray) !important;
  box-shadow: none !important;
}

.benefit-grid-card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-accent);
  box-shadow: none;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  font-size: 1.35rem;
  color: var(--color-bg-white);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}



/* Sidebar CTA Button styling */
.sidebar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-accent);
  color: var(--color-bg-white) !important;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(18, 39, 27, 0.12);
  transition:
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
}

.sidebar-cta:hover {
  background-color: #a95713;
  transform: translateY(-2px);
  box-shadow:
    0px 0.8px  0.8px  -0.47px rgba(169, 87, 19, 0.22),
    0px 2px    2px    -0.94px rgba(169, 87, 19, 0.22),
    0px 4px    4px    -1.41px rgba(169, 87, 19, 0.20),
    0px 7px    7px    -1.88px rgba(169, 87, 19, 0.18),
    0px 12px   12px   -2.34px rgba(169, 87, 19, 0.16),
    0px 20px   20px   -2.81px rgba(169, 87, 19, 0.14),
    0px 36px   36px   -3.28px rgba(169, 87, 19, 0.11),
    0px 60px   60px   -3.75px rgba(169, 87, 19, 0.07),
    0 0 18px 4px rgba(169, 87, 19, 0.18);
}

.sidebar-cta i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.sidebar-cta:hover i {
  transform: translateX(4px);
}

/* Spacing to prevent congestion in tab panels */
.service-tab-panel {
  margin-top: 110px;
}

.service-tab-panel .sidebar-cta {
  margin-top: 160px;
}

.benefit-grid-card h4 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text-dark);
  letter-spacing: -0.01em;
}

.benefit-grid-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================
   FLOATING CTA BUTTON OVERLAY
   ========================================== */
.floating-cta {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.floating-cta:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.02);
  background-color: var(--color-accent-hover);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22), 0 0 18px 4px rgba(0, 0, 0, 0.06);
  color: var(--color-bg-white);
}

.floating-cta i {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.floating-cta:hover i {
  transform: translateX(4px);
}

/* ==========================================
   SWITCHER ARROW NAVIGATION
   ========================================== */
.switcher-arrow-btn {
  background-color: var(--color-bg-gray);
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--color-text-dark);
  font-size: 1.1rem;
  transition:
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
  box-shadow: none;
}

.switcher-arrow-btn:hover {
  background-color: var(--color-text-dark);
  color: var(--color-bg-white);
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .switcher-arrow-btn {
    display: none;
  }
}

/* Ensure switcher aligns with arrow buttons on desktop */
.service-switcher-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 54px auto 72px;
  width: 100%;
  max-width: 960px;
  padding: 0 20px;
}

/* Navigation Dropdown Layout */
.nav-dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-trigger-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

/* ── Arrow Clip: overflow-hidden viewport for the two-state chevron ── */
.arrow-clip {
  display: inline-flex;
  overflow: hidden;
  width: 10px;
  height: 10px;
  align-items: flex-start;
  pointer-events: none;
  flex-shrink: 0;
  /* smooth the open-state rotation */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Arrow Slider: stacks two chevrons, slides on hover ── */
.arrow-slider-inner {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── CSS-only thin border chevron ── */
.dropdown-arrow {
  display: block;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  position: relative;
  pointer-events: none;
}

/* Draw the "V" shape via a tiny rotated square — razor-thin, no FA needed */
.dropdown-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid var(--color-text-muted);
  border-bottom: 1.5px solid var(--color-text-muted);
  transform: translate(-60%, -70%) rotate(45deg);
  transition: border-color 0.3s ease;
}

/* Accent variant (slides in on hover) */
.dropdown-arrow-alt::after {
  border-color: var(--color-accent);
}

/* On hover: slide inner up by one slot — accent chevron appears */
.dropdown-trigger-wrapper:hover .arrow-slider-inner,
.dropdown-trigger-wrapper.open  .arrow-slider-inner {
  transform: translate3d(0, -50%, 0);
}

/* When open: rotate clip 180° — accent chevron now points UP */
.dropdown-trigger-wrapper.open .arrow-clip {
  transform: rotate(180deg);
}

/* Dropdown Menu Overlay */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  right: auto;
  width: min(520px, calc(100vw - 48px));
  transform: translate3d(-50%, 15px, 0);
  margin-top: 0;
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04), 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.dropdown-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}



.dropdown-menu-container {
  display: flex;
  gap: 24px;
  width: 100%;
}

.dropdown-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.dropdown-column-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 4px;
  margin-bottom: 0;
  display: block;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  border-radius: 8px;
  padding: 4px 8px;
  margin: 0 -8px;
  transition: background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-item:hover {
  background-color: var(--color-bg-gray);
}

.dropdown-item-title {
  font-family: var(--font-heading);
  font-size: 1.0rem;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: color 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown-item-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--color-accent);
}

/* Mobile Responsive Dropdown Styles */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }

  .dropdown-trigger-wrapper {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 0;
  }

  /* On mobile make the chevron arrow bigger and easier to tap */
  .dropdown-arrow {
    pointer-events: auto;
    width: 16px;
    height: 16px;
  }

  .dropdown-arrow::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
  }

  .arrow-clip {
    pointer-events: auto;
    width: 16px;
    height: 16px;
  }

  .arrow-slider-inner {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .dropdown-menu {
    position: static;
    transform: none !important;
    box-shadow: none;
    border: none;
    background-color: transparent;
    padding: 0 0 0 12px;
    margin: 0;
    min-width: 0;
    width: 100%;
    display: none;
    opacity: 1;
    pointer-events: auto;
  }

  .dropdown-menu.open {
    display: block;
  }

  .dropdown-menu-container {
    flex-direction: column;
    gap: 16px;
  }

  .dropdown-column {
    gap: 12px;
  }

  .dropdown-column-title {
    margin-top: 8px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 0.7rem;
  }

  .dropdown-item {
    padding: 4px 0;
    margin: 0;
  }

  .dropdown-item:hover {
    background-color: transparent;
  }

  .dropdown-item-title {
    font-size: 1.15rem;
  }

  .dropdown-item-desc {
    font-size: 0.85rem;
  }

  .dropdown-trigger-wrapper .nav-link {
    padding: 0 !important;
    width: auto;
  }
}

.upcoming-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: #a95713;
  color: var(--color-bg-white);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-left: 8px;
  vertical-align: middle;
  line-height: 1;
  border: none;
  box-shadow: none;
}

/* ==========================================
   UNIFIED HERO PADDING (AESTHETIC COHESION)
   ========================================== */
.hero-section,
.career-hero,
.contact-hero {
  padding-top: 160px !important;
}

@media (max-width: 768px) {
  .hero-section,
  .career-hero,
  .contact-hero {
    padding-top: 130px !important;
  }
}

/* Final fix for the sidebar gap */
.service-sidebar {
    height: max-content !important;
    align-content: flex-start !important;
}

.sidebar-cta {
    margin-top: 8px !important; /* Forces a small, clean gap below the cards */
}

@media (max-width: 900px) {
    .service-sidebar {
        gap: 12px !important;
    }
    .sidebar-badge {
        /* Prevents badges from expanding vertically */
        height: max-content !important; 
    }
}

/* =====================================================
   HERO PIPELINE SHOWCASE (PILLAR OPTION 3)
   ===================================================== */
.hero-pipeline-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1.85fr;
  gap: 40px;
  margin-top: 100px;
  width: min(calc(100% - clamp(48px, 6.5vw, 96px)), 1280px);
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  background: rgba(18, 39, 27, 0.02);
  border: 1px solid rgba(18, 39, 27, 0.08);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.pipeline-navigation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 20px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}

.pipeline-step:hover {
  background: rgba(18, 39, 27, 0.04);
}

.pipeline-step.active {
  background: #ffffff;
  border-color: rgba(18, 39, 27, 0.08);
  box-shadow: 0 4px 12px rgba(18, 39, 27, 0.04);
}

.pipeline-step-number {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
  opacity: 0.4;
  line-height: 1.3;
  transition: opacity 0.3s ease;
}

.pipeline-step.active .pipeline-step-number {
  opacity: 1;
}

.pipeline-step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pipeline-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.pipeline-step.active .pipeline-step-label {
  opacity: 1;
}

.pipeline-step-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text-dark);
}

.pipeline-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pipeline-device-mockup {
  width: 100%;
  max-width: 640px;
  background: #06110a;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 10;
}

.mockup-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.mockup-address-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.3);
  padding: 3px 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-family: monospace;
}

.mockup-screen-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.mockup-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.mockup-screen.active {
  opacity: 1;
  visibility: visible;
}

.provision-dashboard, .integrate-dashboard, .empower-dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.provision-header, .integrate-header, .empower-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.provision-header span, .integrate-header span, .empower-header span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
}

.status-badge.green {
  background: rgba(0, 255, 102, 0.1);
  color: #00ff66;
  border: 1px solid rgba(0, 255, 102, 0.15);
}

.status-badge.pulse {
  background: rgba(0, 255, 102, 0.1);
  color: #00ff66;
  border: 1px solid rgba(0, 255, 102, 0.15);
  animation: pipeline-pulse 2s infinite ease-in-out;
}

.status-badge.gold {
  background: rgba(239, 197, 107, 0.1);
  color: #efc56b;
  border: 1px solid rgba(239, 197, 107, 0.15);
}

@keyframes pipeline-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.device-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.device-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: 10px;
}

.device-item i {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
}

.device-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
}

.device-info span:first-child {
  font-size: 0.8rem;
  font-weight: 500;
  color: #ffffff;
}

.device-info span:last-child {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
}

.status-text.green {
  font-size: 0.68rem;
  font-weight: 600;
  color: #00ff66;
}

.flow-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  padding-bottom: 6px;
}

.flow-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  justify-content: center;
}

.flow-node.active {
  background: rgba(0, 255, 102, 0.06);
  border-color: rgba(0, 255, 102, 0.25);
  color: #00ff66;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.08);
}

.flow-connector {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  animation: float-down 2s infinite ease-in-out;
}

.ai-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  flex: 1;
  padding-bottom: 10px;
}

.ai-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.ai-stat-row span {
  color: rgba(255, 255, 255, 0.5);
}

.ai-stat-row strong {
  color: #ffffff;
  font-weight: 500;
}

.ai-stat-row strong.green {
  color: #00ff66;
}

.hero-pipeline-showcase.hero-photo-reveal {
  animation: hero-showcase-enter 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.6s;
}

@keyframes hero-showcase-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .hero-pipeline-showcase {
    gap: 32px;
    padding: 32px;
    width: min(calc(100% - 48px), 920px);
  }
}

@media (max-width: 768px) {
  .hero-pipeline-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px;
    margin-top: 60px;
    border-radius: 24px;
    width: min(calc(100% - 40px), 520px);
  }
  
  .pipeline-step {
    padding: 14px;
    gap: 14px;
    border-radius: 12px;
  }
  
  .pipeline-device-mockup {
    aspect-ratio: 16 / 11;
  }
}

/* Pillars Section specific overrides */
.pillars-section .career-bento-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillars-section .career-bento-card {
  grid-column: span 1 !important; /* Force all to span 1 column */
}

@media (max-width: 768px) {
  .pillars-section .career-bento-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   SCROLL PERFORMANCE OPTIMIZATIONS
   ========================================== */

/* Skip layout and painting for offscreen sections using modern browser content-visibility */
.features-section,
.ecosystem-section,
.why-zylyx-section,
.faq-section,
.pipeline-showcase-section,
.bottom-theme-container,
.positions-section,
.team-section,
.pricing-section,
.specs-section,
.portfolio-section,
.blog-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* Shift the second line of the homepage hero title slightly left only in German */
html[lang="de"] .hero-title-line:nth-child(2) {
  transform: translateX(-24px);
}

@media (max-width: 768px) {
  html[lang="de"] .hero-title-line:nth-child(2) {
    transform: translateX(-12px);
  }
}
