/* ── Section Utilities ───────────────────────────────── */
.section-eyebrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-3);
}
.section-number {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-family-sans);
}
.section-eyebrow {
  font-size: var(--font-size-caption); 
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase; 
  letter-spacing: +0.02em;
  position: relative;
  padding-bottom: 4px;
  display: inline-block;
}
.section-eyebrow::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #2997ff, #00c5ff);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Trigger underline on reveal */
.section-eyebrow.reveal-in::after {
  width: 100%;
}
.section-subtitle {
  font-size: var(--font-size-h3); 
  color: var(--color-text-secondary);
  max-width: var(--body-max-width); 
  margin: 0 auto var(--space-5);
  line-height: 1.25; 
  text-align: center;
}
.hero__eyebrow {
  font-size: var(--font-size-caption); 
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase; 
  letter-spacing: +0.012em;
  margin-bottom: var(--space-4);
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  padding: 140px 0 0;
  text-align: center;
  /* Background handled by global visual-bg system — hero::before adds local light */
  background: transparent;
  position: relative;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}
/* Interactive cursor glow — layered on top of section light */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(41, 151, 255, 0.06),
    transparent 40%
  );
  z-index: 1;
  transition: opacity 0.5s ease;
}
.hero .container {
  position: relative; z-index: 2;
}
.hero__title {
  /* Inherits h1 styles globally, but apply local overrides just in case */
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: var(--space-4);
  max-width: 900px;
  margin-inline: auto;
}
.hero__subtitle {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  color: #fff;
  max-width: var(--body-max-width);
  margin: 0 auto var(--space-6);
  line-height: 1.25;
}

/* Animated background grid lines (Vertora-inspired) */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-evenly;
  pointer-events: none;
  z-index: 0;
}
.hero-grid-line {
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(41,151,255,0.10) 40%, rgba(41,151,255,0.18) 60%, transparent 100%);
  animation: gridLineFade 3s ease-out forwards;
  opacity: 0;
}
.hero-grid-line:nth-child(1) { animation-delay: 0.2s; }
.hero-grid-line:nth-child(2) { animation-delay: 0.4s; }
.hero-grid-line:nth-child(3) { animation-delay: 0.6s; }
.hero-grid-line:nth-child(4) { animation-delay: 0.8s; }
@keyframes gridLineFade {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  100% { opacity: 1; transform: scaleY(1); }
}

/* Hero decorative circles removed — replaced by global visual-bg system */



/* Hero Stats Counter Strip */
.hero-stats {
  width: 100%;
  display: flex;
  align-items: stretch;
  border-top: 1px solid rgba(41,151,255,0.2);
  background: rgba(0, 9, 29, 0.7);
  backdrop-filter: blur(20px);
  margin-top: 64px;
  position: relative;
  z-index: 2;
}
.hero-stat {
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  transition: background 0.3s ease;
}
.hero-stat:hover {
  background: rgba(41, 151, 255, 0.06);
}
.hero-stat__number {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: var(--font-weight-semibold);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, #2997ff, #00c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}
.hero-stat-divider {
  width: 1px;
  background: rgba(41,151,255,0.2);
  align-self: stretch;
}

@media (max-width: 768px) {
  .hero { padding: 100px 20px 0; }
  /* Typography scales inherently via clamp in tokens.css */
}

/* ── Marquee (Clients) ───────────────────────────────── */
.marquee-section {
  padding: 8px 0 12px; /* Reduced padding to make background smaller */
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(135deg, rgba(10, 31, 74, 0.8) 0%, rgba(5, 16, 36, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.marquee-tagline {
  text-align: center;
  font-size: var(--font-size-caption);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: +0.02em;
  margin-bottom: 12px; /* Reduced margin */
}
.marquee-container {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite reverse;
}
.marquee-container:hover {
  animation-play-state: paused;
}
.marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px; /* Space between logos */
}
.logo-box {
  height: 134px; /* Restored back to increased size */
  width: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px; /* Reduced distance between logos */
  transition: transform 0.4s ease; /* Removed filter transition */
  position: relative;
}
.logo-box::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(41,151,255,0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.logo-box:hover {
  transform: scale(1.05);
}
.logo-box:hover::before {
  opacity: 1; /* Blue glow appears on hover */
}
.logo-box img {
  height: 100%;
  width: auto;
  max-width: 400px; /* Doubled max-width */
  object-fit: contain;
  filter: drop-shadow(0 0 0 rgba(41,151,255,0));
  transition: filter 0.4s ease;
}
.logo-box:hover img {
  filter: drop-shadow(0 0 15px rgba(41,151,255,0.6)); /* Glow effect on the image itself */
}
@keyframes marquee {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

/* ── Services Grid ───────────────────────────────────── */
.section { padding: var(--space-7) 0; }
.section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-5);
  text-align: center;
}
/* ── Services Grid (Vertora-inspired) ────────────────── */
.w-layout-hflex { display: flex; }
.w-layout-vflex { display: flex; flex-direction: column; }

.rt-cards-main-wrapper {
  gap: 32px;
  flex-direction: column;
}
@media (min-width: 768px) {
  .rt-cards-main-wrapper {
    flex-direction: row;
  }
}

.rt-cards-left-wrapper,
.rt-cards-right-wrapper {
  gap: 32px;
  flex: 1;
}
@media (min-width: 768px) {
  .rt-cards-right-wrapper {
    margin-top: 64px; /* Staggered masonry effect */
  }
}

.rt-card-wrapper {
  position: relative;
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s, border-color 0.4s, box-shadow 0.4s;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* Hover State - Glow Effect */
.rt-card-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(41, 151, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
  pointer-events: none;
}
.rt-card-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255,255,255,0.05);
  border-color: rgba(41, 151, 255, 0.4);
  box-shadow: 0 16px 48px rgba(41, 151, 255, 0.15);
}
.rt-card-wrapper:hover::before {
  opacity: 1;
}

.rt-card-animation,
.rt-card-inner-content {
  position: relative;
  z-index: 1;
}

.rt-card-animation {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.rt-number-wrapper {
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.rt-card-wrapper:hover .rt-number-wrapper {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(41, 151, 255, 0.4);
}

.rt-card-image-wrap {
  width: 0;
  height: 48px;
  overflow: hidden;
  border-radius: 48px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin-left 0.4s ease;
  opacity: 0;
  margin-left: 0;
}
.rt-card-wrapper:hover .rt-card-image-wrap {
  width: 80px;
  opacity: 1;
  margin-left: 12px;
}
.rt-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rt-card-inner-content {
  margin-top: auto;
}

.rt-card-title {
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.2;
}

.rt-card-description {
  color: rgba(255, 255, 255, 0.65); /* M-2: was var(--color-text-secondary) — too low contrast on dark cards */
  font-size: 15px;
  line-height: 1.6;
}

/* ── Carousels (Work Highlights & Testimonials) ──────── */
/* Remove carousel-outer entirely — use bleed-scroll on .carousel-track directly */
.carousel-outer {
  /* passthrough — no overflow clipping, just a structural wrapper */
}
.carousel-wrapper {
  position: relative;
  margin-bottom: 48px;
}
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.carousel-title { font-size: 22px; font-weight: 600; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.15); }
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  /* Vertical padding so hover glow (box-shadow) is visible */
  padding-top: 16px;
  padding-bottom: 20px;
  /* First & last card get breathing room at edges */
  padding-left: 4px;
  padding-right: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface-card);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.carousel-item:hover { 
  transform: scale(1.02); 
  border-color: var(--color-primary);
  box-shadow: 0 0 40px var(--color-brand-glow);
  z-index: 10;
}
.carousel-item img, .carousel-item video {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: opacity 0.3s;
}
.carousel-item iframe {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  border: none;
  pointer-events: none; /* let the card's onclick handle it */
  transition: opacity 0.3s;
}
.carousel-item:hover img, .carousel-item:hover video {
  opacity: 1; /* Keep at 100% as requested, rely on overlay for text visibility */
}
/* iframes (YouTube) should not dim — overlay already provides the gradient */
.carousel-item:hover iframe {
  opacity: 1;
}
.carousel-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}
.carousel-item:hover .carousel-item__overlay {
  opacity: 1;
}
.carousel-item__title {
  color: var(--color-text-primary);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  margin: 0;
}
.carousel-item--4x5 { width: 380px; aspect-ratio: 4/5; max-width: 85vw; }
.carousel-item--9x16 { width: 320px; aspect-ratio: 9/16; max-width: 85vw; }
.carousel-item--16x9 { width: 560px; aspect-ratio: 16/9; max-width: 90vw; }

/* Testimonial specific */
.testi-card {
  width: 320px; aspect-ratio: 4/5;
  display: flex; flex-direction: column;
}
.testi-card__media { height: 60%; width: 100%; background: var(--color-surface-elevated); }
.testi-card__body { padding: 20px; height: 40%; background: var(--color-surface-card); display: flex; flex-direction: column; justify-content: center; }
.testi-card__review { font-size: var(--font-size-body); font-weight: var(--font-weight-regular); letter-spacing: -0.01em; font-style: italic; color: var(--color-text-secondary); margin-bottom: 12px; line-height: 1.45; }
.testi-card__client { font-size: var(--font-size-small); font-weight: var(--font-weight-semibold); color: var(--color-accent); }

@media (max-width: 768px) {
  .carousel-item--4x5 { width: 240px; }
  .carousel-item--9x16 { width: 200px; }
  .carousel-item--16x9 { width: 300px; }
  .testi-card { width: 260px; }
}

/* ── Team ────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 64px auto 0;
}
.team-card { 
  text-align: center;
  transition: transform 0.3s;
  cursor: pointer;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 24px;
}
.team-card:hover {
  transform: translateY(-8px);
}
.team-card__img-wrapper {
  width: 200px; height: 200px; border-radius: 50%;
  overflow: hidden; aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  border: 2px solid var(--color-border);
  background: var(--color-surface-card);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.team-card:hover .team-card__img-wrapper {
  border-color: var(--color-primary);
  box-shadow: 0 0 32px var(--color-brand-glow);
}
.team-card__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.team-card:hover .team-card__img {
  transform: scale(1.04);
}
.team-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: var(--font-weight-semibold);
  background: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  transition: transform 0.4s ease;
}
.team-card:hover .team-card__placeholder {
  transform: scale(1.04);
}
.team-card__name { font-size: var(--font-size-h3); font-weight: var(--font-weight-semibold); margin-bottom: 4px; color: var(--color-text-primary); letter-spacing: -0.01em; }
.team-card__role { font-size: var(--font-size-body); color: var(--color-accent); font-weight: var(--font-weight-regular); margin-bottom: 16px; }
.team-card__bio { font-size: var(--font-size-small); color: rgba(255, 255, 255, 0.9); line-height: 1.45; }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 40px var(--color-brand-glow);
}
.faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 24px; font-size: var(--font-size-h4); font-weight: var(--font-weight-semibold); color: var(--color-text-primary);
  letter-spacing: -0.01em;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-family);
}
.faq-icon {
  font-size: 24px; color: var(--color-accent); font-weight: var(--font-weight-regular);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.faq-item.active .faq-icon { background: var(--color-primary); color: var(--color-bg-dark); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-answer-inner {
  padding: 0 24px 24px 24px; font-size: var(--font-size-body); color: var(--color-text-secondary); line-height: 1.6; letter-spacing: -0.01em;
  max-width: 100%;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 500px; }

/* ── Simple Teaser Banners ───────────────────────────── */
.teaser-banner {
  background: var(--color-surface-card); 
  border: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card); 
  padding: 64px 32px; text-align: center;
  margin-bottom: 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.teaser-banner:hover {
  transform: translateY(-4px); /* L-6: removed scale(1.02) — caused jitter/overflow at section edges */
  border-color: var(--color-primary);
  box-shadow: 0 0 24px var(--color-brand-glow);
}
.teaser-banner h3 { font-size: 28px; margin-bottom: 16px; color: var(--color-text-primary); }
.teaser-banner p { color: var(--color-text-dark-secondary); margin-bottom: 24px; }

/* ── About Section: Team Photo Frame ─────────────────────────── */
.about-team-frame {
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.about-team-frame:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--color-primary) !important;
  box-shadow: 0 16px 48px rgba(41, 151, 255, 0.25), 0 0 0 1px rgba(41, 151, 255, 0.2);
}
.about-team-frame img {
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.about-team-frame:hover img {
  transform: scale(1.04);
}
