/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-deep: #133122;
  --bg-dark: #1a3c2b;
  --bg-card: #224834;
  --mint: #abffc0;
  --mint-dim: rgba(171,255,192,0.12);
  --mint-glow: rgba(171,255,192,0.06);
  --sage: #9a9ab0;
  --text-white: #ffffff;
  --text-light: rgba(255,255,255,1);
  --text-muted: rgba(255,255,255,1);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 9999px;
  --max-w: 1200px;
  --gap: 80px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}


/* Film-grain canvas */
.grain-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: screen;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-family: var(--font-serif); font-style: italic; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }

/* ===== TYPOGRAPHY ===== */
.section-label {
  font-size: 15px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--mint); margin-bottom: 16px; text-align: center;
}
.section-eyebrow {
  font-size: 20px; font-weight: 500; color: #ffffff; text-align: center; margin-bottom: 24px;
  max-width: 700px; margin-left: auto; margin-right: auto; line-height: 1.6;
}
.eyebrow-highlight {
  color: var(--mint); font-weight: 600;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 16px; text-align: center;
  color: #ffffff;
}
.section-title em, .final-cta__title em { color: var(--mint); }
.section-subtitle {
  font-size: 17px; color: var(--text-light); max-width: 560px;
  line-height: 1.7; margin: 0 auto 40px; text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 500; font-size: 14px;
  border: none; cursor: pointer; border-radius: var(--r-pill);
  transition: all 0.25s ease; text-decoration: none; gap: 8px; white-space: nowrap;
}
.btn--mint {
  background: var(--mint); color: #091a11; padding: 12px 28px;
}
.btn--mint:hover {
  background: #c4ffd5; transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(171,255,192,0.2);
}
.btn--ghost {
  background: transparent; color: var(--text-light); padding: 12px 28px;
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn--outline {
  background: transparent; color: var(--text-light); padding: 12px 28px;
  border: 1px solid var(--border);
}
.btn--outline:hover { border-color: var(--mint); color: var(--mint); }
.btn--lg { padding: 14px 32px; font-size: 15px; }
.btn--full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  padding: 12px 0; background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: none; transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(19,49,34,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 24px;
}
.navbar__logo {
  display: flex; align-items: center; line-height: 0;
}
.navbar__logo-img { height: 80px; width: auto; display: block; margin-bottom: -20px; margin-top: -10px; }
/* Default (green): show dark logo */
.navbar__logo-dark { display: block; }
.navbar__logo-light { display: none; }
/* Dark mode: keep dark logo */
[data-theme="dark"] .navbar__logo-dark { display: block; }
[data-theme="dark"] .navbar__logo-light { display: none; }
.navbar__links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.navbar__links a {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s; letter-spacing: 0.01em;
}
.navbar__links a:hover { color: var(--text-white); }
.navbar__cta { padding: 8px 20px; font-size: 13px; }
.navbar__logo { grid-column: 1; }
.navbar__links { grid-column: 2; justify-self: center; }
.theme-toggle { grid-column: 3; }
.navbar__cta { grid-column: 4; }
.navbar__toggle { grid-column: 5; }
.navbar__toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.navbar__toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-white); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero { position: relative; padding: 160px 0 80px; text-align: center; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--mint);
  border: 1px solid var(--mint-dim); background: var(--mint-glow);
  padding: 8px 20px; border-radius: var(--r-pill); margin-bottom: 32px;
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero__title {
  font-size: clamp(40px,7vw,76px); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px;
  color: #ffffff;
}
.hero__em { font-family: var(--font-serif); font-weight: 400; color: var(--mint); }
.hero__subtitle {
  font-size: 17px; color: var(--text-light); max-width: 580px;
  margin: 0 auto 40px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__gradient {
  position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(171,255,192,0.06), rgba(0,0,0,0.02) 50%, transparent 70%);
  pointer-events: none; z-index: 1;
}

/* ===== VIDEO ===== */
.video-block { padding: 0 0 80px; }
.video-placeholder {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 100%;
  display: block;
  position: relative; overflow: hidden;
}
.video-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(171,255,192,0.03), transparent 60%);
}
.video-placeholder__play {
  width: 64px; height: 64px; border-radius: 50%; background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg-deep); transition: transform 0.3s, box-shadow 0.3s; position: relative; z-index: 1;
  cursor: pointer;
}
.video-placeholder__play:hover { transform: scale(1.1); box-shadow: 0 0 40px rgba(171,255,192,0.3); }

/* ===== TRUSTED MARQUEE ===== */
.trusted { padding: 80px 0; overflow: hidden; }
.trusted__marquee {
  overflow: hidden; margin-bottom: 40px;
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex; gap: 20px; align-items: center;
  animation: marquee 30s linear infinite; width: max-content;
  font-size: 14px; color: var(--text-muted);
}
.marquee__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.trusted__logos { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.logo-pill {
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  padding: 10px 24px; border: 1px solid var(--border); border-radius: var(--r-pill);
  transition: all 0.25s;
}
.logo-pill:hover { border-color: var(--mint); color: var(--mint); }

/* ===== THE PROBLEM ===== */
.problem { padding: var(--gap) 0; }
.problem .section-subtitle:last-child { margin-bottom: 0; }

/* ===== IMPACT — BENTO GRID ===== */
.impact { padding: var(--gap) 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.bento__item {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: all 0.35s ease;
}
.bento__item:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.bento__item--hero {
  grid-column: span 3;
  text-align: center;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
}
.bento__description {
  font-size: 17px; color: var(--text-light); line-height: 1.8; max-width: 760px; margin: 0 auto;
}
.bento__stat { text-align: center; padding: 24px 20px; }
.bento__number {
  font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--mint);
  display: inline;
}
.bento__prefix, .bento__suffix {
  font-size: 28px; font-weight: 700; color: var(--mint);
}
.bento__label { display: block; font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

/* Case study cards */
.bento__item--case { padding: 36px 28px; position: relative; }
.case-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.bento__item--case:hover .case-icon {
  opacity: 0.7;
}
.bento__case-title { font-size: 16px; font-weight: 700; color: var(--text-white); margin-bottom: 12px; }
.bento__case-stat { font-size: 22px; font-weight: 700; color: var(--mint); margin-bottom: 8px; }
.bento__case-detail { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* Aggregate impact bar */
.impact__aggregate {
  margin-top: 32px; text-align: center;
  padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-dark);
}
.impact__aggregate-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--mint); margin-bottom: 12px;
}
.impact__aggregate-stats {
  font-size: 17px; font-weight: 600; color: var(--text-white);
}
.impact__divider { color: var(--text-muted); margin: 0 12px; }

@media (max-width: 768px) {
  .impact__aggregate-stats { font-size: 14px; }
  .impact__aggregate-stats span { display: block; }
  .impact__divider { display: none; }
}

/* ===== RESULTS SHOWCASE ===== */
.showcase { padding: var(--gap) 0; overflow: hidden; }
.showcase__scroll-wrap {
  position: relative;
  margin-top: 48px;
}
.showcase__grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc((100vw - min(82vw, 920px)) / 2);
  scrollbar-width: none;
}
.showcase__grid::-webkit-scrollbar { display: none; }
.showcase__item {
  flex: 0 0 min(82vw, 920px);
  aspect-ratio: 16 / 10;
  scroll-snap-align: center;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), border-color 0.3s, box-shadow 0.3s;
  cursor: zoom-in;
}
.showcase__item:hover {
  border-color: rgba(171,255,192,0.25);
  box-shadow: 0 8px 40px rgba(171,255,192,0.08);
  transform: scale(1.02);
}
.showcase__item img,
.showcase__item svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.showcase__svg {
  background: #141418;
}

/* Navigation arrows */
.showcase__nav {
  display: flex; gap: 12px;
  justify-content: center;
  margin-top: 28px;
}
.showcase__nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.showcase__nav-btn:hover {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(171,255,192,0.06);
}
.showcase__nav-btn:disabled {
  opacity: 0.3; cursor: default;
  border-color: var(--border);
  color: var(--text-muted);
  background: var(--bg-dark);
}
.showcase__nav-btn--play {
  width: auto; border-radius: var(--r-pill);
  padding: 0 18px; gap: 6px;
  font-size: 13px; font-weight: 500;
  font-family: var(--font-sans);
}

/* Progress dots */
.showcase__dots {
  display: flex; gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.showcase__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
}
.showcase__dot.active {
  background: var(--mint);
  width: 24px;
  border-radius: 4px;
}

/* Lightbox overlay */
.lightbox {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
  padding: 40px;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 90vw; max-height: 90vh;
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}
.lightbox.active img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none; color: #fff;
  font-size: 28px; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
  line-height: 1;
}
.lightbox__close:hover { opacity: 1; }

.showcase__caption {
  text-align: center;
  margin-top: 28px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-light);
}
.showcase__caption span {
  color: var(--mint);
  margin-right: 6px;
}

/* ===== TIMELINE ===== */
.timeline-section { padding: var(--gap) 0 80px; }
.timeline {
  position: relative;
  margin-top: 56px;
  padding: 40px 0;
}
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.08);
  transform: translateX(-50%);
}
.timeline__line-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--mint), rgba(171,255,192,0.4));
  border-radius: 1px;
  box-shadow: 0 0 16px rgba(171,255,192,0.25);
  transition: height 0.05s linear;
}
.timeline__step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
}
.timeline__step:last-child { margin-bottom: 0; }
.timeline__icon {
  display: block;
  margin: 0 auto 20px;
  opacity: 0.3;
  transition: opacity 0.6s cubic-bezier(.16,1,.3,1), transform 0.6s cubic-bezier(.16,1,.3,1);
}
.timeline__step[data-side="left"] .timeline__icon { margin-right: auto; margin-left: 0; }
.timeline__step[data-side="right"] .timeline__icon { margin-left: auto; margin-right: 0; }
.timeline__step.active .timeline__icon {
  opacity: 1;
  transform: scale(1.05);
}
.timeline__content h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.18);
  transition: color 0.6s cubic-bezier(.16,1,.3,1);
}
.timeline__content p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.12);
  transition: color 0.6s cubic-bezier(.16,1,.3,1);
  max-width: 380px;
}
.timeline__step[data-side="left"] .timeline__content { text-align: right; }
.timeline__step[data-side="left"] .timeline__content p { margin-left: auto; }
.timeline__step[data-side="right"] .timeline__content { text-align: left; }
.timeline__marker {
  position: relative;
  z-index: 2;
}
.timeline__marker span {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.18);
  white-space: nowrap;
  transition: all 0.5s cubic-bezier(.16,1,.3,1);
}
/* Active states */
.timeline__step.active .timeline__content h3 { color: var(--text-white); }
.timeline__step.active .timeline__content p { color: var(--text-light); }
.timeline__step.active .timeline__marker span {
  background: var(--mint);
  color: var(--bg-deep);
  border-color: var(--mint);
  box-shadow: 0 0 28px rgba(171,255,192,0.3);
}
.timeline__deliverable, .timeline__time {
  font-size: 13px !important; margin-top: 8px;
}
.timeline__deliverable strong, .timeline__time strong {
  color: rgba(171,255,192,0.18);
  transition: color 0.6s cubic-bezier(.16,1,.3,1);
}
.timeline__step.active .timeline__deliverable strong,
.timeline__step.active .timeline__time strong {
  color: var(--mint);
}
.timeline__total {
  text-align: center; margin-top: 48px; padding: 24px;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-dark);
}
.timeline__total p { font-size: 17px; color: var(--text-light); line-height: 1.6; margin: 0; }
.timeline__total strong { color: var(--mint); }
.timeline__empty { /* grid placeholder */ }

/* ===== SERVICES — EXPANDING ROWS ===== */
.services {
  padding: var(--gap) 0;
  background: var(--bg-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
/* Bento Grid - Masonry Style */
.services__bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 120px;
  gap: 20px;
  margin-top: 16px;
}

/* Base card */
.svc-card {
  --card-bg: var(--bg-card);
  position: relative; overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--text);
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s ease, border-color 0.3s ease;
  cursor: pointer;
  height: 100%;
}
.svc-card:hover {
  border-color: var(--mint);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px var(--mint);
}
.svc-card:nth-child(odd):hover {
  transform: translateY(2px) scale(1.02);
}
.svc-card:nth-child(even):hover {
  transform: translateY(-14px) scale(1.02);
}

/* Cursor-following glow */
.svc-card__glow {
  position: absolute; width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint) 0%, transparent 70%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: 0;
}
.svc-card:hover .svc-card__glow { opacity: 0.12; }

/* Card top row */
.svc-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.svc-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--mint-dim); color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s ease;
}
.svc-card__icon svg {
  width: 100%;
  height: 100%;
}
.svc-card:hover .svc-card__icon {
  background: var(--mint); color: var(--bg-deep);
  transform: scale(1.08);
}
.svc-card__number {
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.08em; opacity: 0.5;
}

/* Title & desc */
.svc-card__title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: 10px; position: relative; z-index: 1;
  transition: color 0.3s ease;
}
.svc-card:hover .svc-card__title { color: var(--mint); }
.svc-card__desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.6;
  position: relative; z-index: 1; flex-grow: 1;
}

/* Stat — only on large cards */
.svc-card__stat {
  margin: 24px 0 0; padding: 20px;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--r-md); text-align: center;
  position: relative; z-index: 1;
  transition: border-color 0.3s ease;
}
.svc-card:hover .svc-card__stat { border-color: var(--mint); }
.svc-card__stat-num {
  font-size: 42px; font-weight: 800; letter-spacing: -0.03em;
  color: var(--mint); line-height: 1;
}
.svc-card__stat-suffix {
  font-size: 28px; font-weight: 700; color: var(--mint);
}
.svc-card__stat-label {
  display: block; font-size: 13px; color: var(--text-muted);
  margin-top: 4px;
}

/* Feature list — only on large cards, hidden until hover */
.svc-card__features {
  list-style: none; padding: 0; margin: 16px 0 0;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s cubic-bezier(.16,1,.3,1), opacity 0.4s ease, margin 0.4s ease;
  position: relative; z-index: 1;
}
.svc-card:hover .svc-card__features {
  max-height: 200px; opacity: 1; margin: 20px 0 0;
}
.svc-card__features li {
  font-size: 13px; color: var(--text-light); padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.svc-card__features li::before {
  content: ''; width: 5px; height: 5px;
  border-radius: 50%; background: var(--mint); flex-shrink: 0;
}

/* Learn more link */
.svc-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--mint);
  margin-top: 20px; position: relative; z-index: 1;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.svc-card:hover .svc-card__link {
  opacity: 1; transform: translateY(0);
}
.svc-card__link svg {
  transition: transform 0.3s ease;
}
.svc-card:hover .svc-card__link svg {
  transform: translate(3px, -3px);
}

/* Large cards span 2 columns */
.svc-card--lg {
  grid-column: span 1;
}

/* Masonry-style varying heights */
.svc-card:nth-child(1) { grid-row: span 3; }
.svc-card:nth-child(2) { grid-row: span 2; }
.svc-card:nth-child(3) { grid-row: span 2; }
.svc-card:nth-child(4) { grid-row: span 3; }
.svc-card:nth-child(5) { grid-row: span 2; }
.svc-card:nth-child(6) { grid-row: span 2; }

/* Staggered positioning */
.svc-card:nth-child(odd) {
  transform: translateY(8px);
}
.svc-card:nth-child(even) {
  transform: translateY(-8px);
}

/* Icon size variations for visual interest */
.svc-card:nth-child(1) .svc-card__icon { width: 56px; height: 56px; }
.svc-card:nth-child(4) .svc-card__icon { width: 56px; height: 56px; }

/* Add decorative accent to some cards */
.svc-card:nth-child(1)::before,
.svc-card:nth-child(4)::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at top right, rgba(171,255,192,0.08), transparent 70%);
  pointer-events: none;
}

/* Small cards span 1 column */

/* ===== PORTFOLIO ===== */
.portfolio { padding: var(--gap) 0; }
.portfolio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 56px;
}
.portfolio-card {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.35s ease; text-decoration: none; color: inherit;
}
.portfolio-card:hover {
  border-color: var(--border-hover); transform: translateY(-3px);
}
.portfolio-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  background: var(--mint-dim); color: var(--mint);
  display: flex; align-items: center; justify-content: center;
}
.portfolio-card h3 { font-size: 20px; font-weight: 700; }
.portfolio-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.portfolio-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--mint);
  margin-top: auto;
  transition: gap 0.3s;
}
.portfolio-card:hover .portfolio-card__link { gap: 10px; }

@media (max-width: 768px) {
  .portfolio__grid { grid-template-columns: 1fr; }
}

/* ===== MID CTA ===== */
.mid-cta { padding: var(--gap) 0; }
.mid-cta__card {
  text-align: center; background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 80px 40px; position: relative; overflow: hidden;
}
.mid-cta__card::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(171,255,192,0.06), transparent 70%);
  pointer-events: none;
}
.mid-cta__card h2 {
  font-size: clamp(24px,4vw,36px); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 32px; position: relative;
}
.mid-cta .btn { position: relative; }

/* ===== WHY US — STAGGERED ===== */
.why-us {
  padding: var(--gap) 0;
  background: var(--bg-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.why-us__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 64px; }
.why-card {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px; transition: all 0.35s ease;
}
.why-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.why-card__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--mint-dim); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--mint);
}
/* Vs comparison header */
.vs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 48px; border-bottom: 1px solid var(--border);
}
.vs__col { padding: 20px 24px; }
.vs__col--them { text-align: center; }
.vs__col--us { text-align: center; background: var(--mint-dim); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.vs__heading { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.vs__col--them .vs__heading { color: var(--text-muted); }
.vs__col--us .vs__heading { color: var(--mint); }

/* Vs comparison rows */
.vs-rows { margin-bottom: 24px; }
.vs-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--border);
}
.vs-row__them, .vs-row__us {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 24px; font-size: 15px; line-height: 1.6;
}
.vs-row__them {
  color: var(--text-muted); text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.15);
}
.vs-row__us {
  color: var(--text-light); background: var(--mint-dim);
}
.vs-row__x {
  flex-shrink: 0; color: #ff6b6b; font-size: 16px; font-weight: 700;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}
.vs-row__check {
  flex-shrink: 0; color: var(--mint); font-size: 16px; font-weight: 700;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
}
.vs-row:last-child .vs-row__us { border-radius: 0 0 var(--r-lg) 0; }

@media (max-width: 768px) {
  .vs-row { grid-template-columns: 1fr; }
  .vs { grid-template-columns: 1fr 1fr; }
  .vs-row__them, .vs-row__us { padding: 16px 20px; font-size: 14px; }
}
.help-tags span {
  font-size: 13px; font-weight: 500; color: var(--text-white);
  padding: 8px 20px; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--mint-glow); transition: all 0.25s;
}
.help-tags span:hover { border-color: var(--mint); color: var(--mint); }

/* ===== PROJECTS — BENTO MASONRY ===== */
.projects { padding: var(--gap) 0; }
.projects__bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto; gap: 16px; margin-top: 56px;
}
.project-card {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  transition: all 0.35s ease; display: flex; flex-direction: column;
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.project-card--tall { grid-row: span 2; }
.project-card--wide { grid-column: span 3; }
.project-card__tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--mint); background: var(--mint-dim);
  padding: 4px 12px; border-radius: var(--r-pill); margin-bottom: 16px; width: fit-content;
}
.project-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.project-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; flex-grow: 1; }
.project-card__stats { display: flex; gap: 16px; flex-wrap: wrap; }
.project-stat { display: flex; flex-direction: column; }
.project-stat strong { font-size: 18px; font-weight: 700; color: var(--mint); }
.project-stat span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== TESTIMONIALS — AUTO-SCROLL MARQUEE ===== */
.testimonials { padding: var(--gap) 0; background: var(--bg-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.testimonials__marquee {
  overflow: hidden; padding: 48px 0 24px;
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testimonials__track {
  display: flex; gap: 24px;
  width: max-content;
  animation: testimonialScroll 40s linear infinite;
}
.testimonials__marquee:hover .testimonials__track {
  animation-play-state: paused;
}
@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-card {
  flex: 0 0 360px; background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 28px;
  display: flex; flex-direction: column; transition: all 0.35s ease;
}
.testimonial-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.testimonial-card__stars { color: var(--mint); font-size: 14px; letter-spacing: 2px; margin-bottom: 20px; }
.testimonial-card blockquote {
  font-size: 15px; line-height: 1.7; color: var(--text-light);
  flex-grow: 1; margin-bottom: 24px; font-style: normal;
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--mint-dim);
  color: var(--mint); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.testimonial-card__author strong { display: block; font-size: 14px; font-weight: 600; }
.testimonial-card__author span { font-size: 12px; color: var(--text-muted); }

/* ===== TEAM ===== */
.team { padding: var(--gap) 0; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.team-card {
  background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px 24px; text-align: center;
  transition: all 0.35s ease;
}
.team-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.team-card__avatar { margin: 0 auto 20px; }
.team-card__avatar-inner {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--mint-dim); color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; margin: 0 auto;
}
.team-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.team-card__role { font-size: 12px; color: var(--mint); font-weight: 500; margin-bottom: 12px; }
.team-card__bio { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ===== THE FOUNDER ===== */
.founder { padding: var(--gap) 0; }
.founder__card {
  display: flex; gap: 36px; align-items: center;
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 48px 40px; margin-top: 56px;
  transition: border-color 0.35s ease;
}
.founder__card:hover { border-color: var(--border-hover); }
.founder__avatar { flex-shrink: 0; }
.founder__avatar-svg {
  width: 80px;
  height: 80px;
  display: block;
}
.founder__avatar-inner {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--mint-dim); color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
}
.founder__name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.founder__quote {
  font-size: 15px; color: var(--text-light); line-height: 1.8;
  font-style: italic; margin: 0; padding: 0; border: none;
}
@media (max-width: 768px) {
  .founder__card { flex-direction: column; text-align: center; padding: 36px 24px; gap: 24px; }
}

/* ===== PRICING ===== */
.pricing { padding: var(--gap) 0; background: var(--bg-dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; align-items: stretch; }
.pricing-card {
  background: var(--bg-deep); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 28px; position: relative;
  transition: all 0.35s ease;
  display: flex; flex-direction: column;
}
.pricing-card .btn { margin-top: auto; }
.pricing-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.pricing-card--featured { border-color: var(--mint); background: var(--bg-card); }
.pricing-card--featured:hover { border-color: var(--mint); }
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--bg-deep); background: var(--mint);
  padding: 4px 16px; border-radius: var(--r-pill); white-space: nowrap;
}
.pricing-card__header { margin-bottom: 24px; }
.pricing-card__header h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pricing-card__desc { font-size: 13px; color: var(--text-muted); }
.pricing-card__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px; }
.pricing-card__amount { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.pricing-card__term { font-size: 14px; color: var(--text-muted); }
.pricing-card__features { list-style: none; margin-bottom: 28px; }
.pricing-card__features li {
  font-size: 14px; color: var(--text-light); padding: 8px 0;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px;
}
.pricing-card__features li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); flex-shrink: 0; }
.pricing-card__features li:last-child { border-bottom: none; }

/* ===== FAQ ===== */
.faq { padding: var(--gap) 0; text-align: center; }
.faq__list { max-width: 680px; margin: 56px auto 0; text-align: left; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  padding: 22px 0; font-size: 16px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 300; color: var(--mint);
  transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--mint); }
.faq-item p { padding: 0 0 22px; font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== FINAL CTA ===== */
.final-cta { padding: var(--gap) 0; }
.final-cta__card {
  text-align: center; background: var(--bg-dark); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 100px 40px; position: relative; overflow: hidden;
}
.final-cta__card::before {
  content: ''; position: absolute; top: -250px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(171,255,192,0.06), transparent 70%);
  pointer-events: none;
}
.final-cta__title { font-size: clamp(32px,5vw,52px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; position: relative; color: #ffffff; }
.final-cta__subtitle { font-size: 17px; color: var(--text-light); margin-bottom: 40px; position: relative; }
.final-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.calendly-embed {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.footer { padding: 80px 0 0; border-top: 1px solid var(--border); }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 12px; font-size: 13px; color: var(--text-muted); max-width: 280px; line-height: 1.6; }
.footer__links h4 { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer__links a { display: block; font-size: 14px; color: var(--text-light); margin-bottom: 10px; transition: color 0.2s; }
.footer__links a:hover { color: var(--mint); }
.footer__bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.footer__bottom p { font-size: 12px; color: var(--text-muted); }

/* ===== AUTO-HIDE NAVBAR ===== */
.navbar.nav-hidden { transform: translateY(-100%); }

/* ===== MOVING BORDER LINE ===== */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.bento__item,
.why-card,
.project-card,
.team-card,
.pricing-card,
.testimonial-card,
.mid-cta__card,
.svc-card,
.showcase__item,
.portfolio-card {
  --card-bg: var(--bg-dark);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    conic-gradient(from var(--border-angle), transparent 60%, rgba(255,255,255,0.5) 80%, transparent 100%) border-box;
  animation: rotateBorder 5s linear infinite;
}

/* Cards with --bg-card background */
.why-card,
.testimonial-card,
.pricing-card,
.svc-card,
.showcase__item,
.portfolio-card {
  --card-bg: var(--bg-card);
}

/* Stagger so cards don't all spin in sync */
.bento__item:nth-child(2), .why-card:nth-child(2), .team-card:nth-child(2) { animation-delay: -1.2s; }
.bento__item:nth-child(3), .why-card:nth-child(3), .team-card:nth-child(3) { animation-delay: -2.5s; }
.bento__item:nth-child(4), .team-card:nth-child(4) { animation-delay: -3.8s; }
.project-card:nth-child(2) { animation-delay: -1.7s; }
.project-card:nth-child(3) { animation-delay: -3.3s; }
.testimonial-card:nth-child(odd) { animation-delay: -2.5s; }
.pricing-card:nth-child(2) { animation-delay: -1.7s; }
.pricing-card:nth-child(3) { animation-delay: -3.3s; }
.svc-card:nth-child(2) { animation-delay: -0.8s; }
.svc-card:nth-child(3) { animation-delay: -1.6s; }
.svc-card:nth-child(4) { animation-delay: -2.4s; }
.svc-card:nth-child(5) { animation-delay: -3.2s; }
.svc-card:nth-child(6) { animation-delay: -4.0s; }
.showcase__item:nth-child(2) { animation-delay: -1.0s; }
.showcase__item:nth-child(3) { animation-delay: -2.0s; }
.showcase__item:nth-child(4) { animation-delay: -3.0s; }
.showcase__item:nth-child(5) { animation-delay: -3.5s; }
.showcase__item:nth-child(6) { animation-delay: -4.2s; }
.portfolio-card:nth-child(2) { animation-delay: -1.5s; }
.portfolio-card:nth-child(3) { animation-delay: -3.0s; }

@keyframes rotateBorder {
  to { --border-angle: 360deg; }
}

/* Brighten line on hover */
.bento__item:hover,
.why-card:hover,
.project-card:hover,
.team-card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.mid-cta__card:hover,
.svc-card:hover,
.showcase__item:hover,
.portfolio-card:hover {
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    conic-gradient(from var(--border-angle), transparent 50%, rgba(255,255,255,0.7) 75%, transparent 100%) border-box;
}


/* ===== NUMBER MORPH ===== */
.bento__number.counting {
  filter: blur(3px);
  transition: filter 0.2s;
}
.bento__number.counted {
  filter: blur(0);
  animation: numberPop 0.5s cubic-bezier(.16,1,.3,1);
}
@keyframes numberPop {
  0% { transform: scale(1.2); filter: blur(1px); }
  100% { transform: scale(1); filter: blur(0); }
}

/* ===== FLOATING ELEMENTS ===== */
.floaters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.floater {
  position: absolute;
  border-radius: 50%;
  background: rgba(171,255,192,0.04);
  animation: floatUp linear infinite;
}
.floater--diamond {
  border-radius: 2px;
  transform: rotate(45deg);
  background: rgba(171,255,192,0.03);
}
@keyframes floatUp {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* Mobile carousel controls — hidden on desktop */
.mc-controls, .mc-dots { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--hero { grid-column: span 2; }
  .showcase__item { flex: 0 0 82vw; }
  .services__bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .svc-card--lg { grid-column: span 1; }
  /* Reset masonry on tablet */
  .svc-card:nth-child(1) { grid-row: span 1; }
  .svc-card:nth-child(2) { grid-row: span 1; }
  .svc-card:nth-child(3) { grid-row: span 1; }
  .svc-card:nth-child(4) { grid-row: span 1; }
  .svc-card:nth-child(5) { grid-row: span 1; }
  .svc-card:nth-child(6) { grid-row: span 1; }
  .svc-card:nth-child(odd) { transform: translateY(0); }
  .svc-card:nth-child(even) { transform: translateY(0); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__bento { grid-template-columns: repeat(2, 1fr); }
  .project-card--wide { grid-column: span 2; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: span 3; }
}

@media (max-width: 768px) {
  :root { --gap: 60px; }
  .navbar__links, .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .navbar__links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5,36,21,0.96); backdrop-filter: blur(24px);
    padding: 20px 24px; gap: 14px; border-bottom: 1px solid var(--border);
  }
  .hero { padding: 140px 0 60px; }
  .section-title { font-size: clamp(24px, 5vw, 36px); }
  .hero__title { font-size: clamp(30px, 7vw, 48px); }
  .final-cta__title { font-size: clamp(24px, 5vw, 36px); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--hero { grid-column: span 2; }
  /* Convert grids to horizontal slide carousels on mobile */
  .services__bento,
  .why-us__grid,
  .team__grid,
  .pricing__grid,
  .portfolio__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 0 24px;
  }
  .services__bento::-webkit-scrollbar,
  .why-us__grid::-webkit-scrollbar,
  .team__grid::-webkit-scrollbar,
  .pricing__grid::-webkit-scrollbar,
  .portfolio__grid::-webkit-scrollbar { display: none; }

  .services__bento > *,
  .why-us__grid > *,
  .team__grid > *,
  .pricing__grid > *,
  .portfolio__grid > * {
    flex: 0 0 80vw;
    scroll-snap-align: center;
  }
  .svc-card--lg { grid-column: span 1; }
  /* Reset icon sizes on mobile */
  .svc-card:nth-child(1) .svc-card__icon { width: 48px; height: 48px; }
  .svc-card:nth-child(4) .svc-card__icon { width: 48px; height: 48px; }
  /* Reset hover transforms on mobile */
  .svc-card:nth-child(odd):hover { transform: translateY(0); }
  .svc-card:nth-child(even):hover { transform: translateY(0); }
  .svc-card__features { max-height: 200px; opacity: 1; margin: 16px 0 0; }
  .svc-card__link { opacity: 1; transform: translateY(0); }
  .why-card[style] { margin-top: 0 !important; }
  .project-card--tall { grid-row: span 1; }
  .project-card--wide { grid-column: span 1; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .mid-cta__card, .final-cta__card { padding: 56px 24px; }
  .video-placeholder { height: 260px; }
  .timeline__step { grid-template-columns: 1fr; gap: 16px; margin-bottom: 60px; }
  .timeline__line { left: 20px; transform: none; }
  .timeline__step[data-side="left"] .timeline__content,
  .timeline__step[data-side="right"] .timeline__content { text-align: left; }
  .timeline__step[data-side="left"] .timeline__content p { margin-left: 0; }
  .timeline__step[data-side="left"] { grid-template-columns: auto 1fr; }
  .timeline__step[data-side="right"] { grid-template-columns: auto 1fr; }
  .timeline__step[data-side="left"] .timeline__content { order: 2; }
  .timeline__step[data-side="left"] .timeline__marker { order: 1; }
  .timeline__step[data-side="left"] .timeline__empty { display: none; }
  .timeline__step[data-side="right"] .timeline__empty { display: none; }
  .timeline__icon {
    width: 60px;
    height: 60px;
    margin: 0 0 16px 0;
  }
  /* Convert testimonials marquee to slide carousel on mobile */
  .testimonials__marquee {
    mask: none; -webkit-mask: none;
    overflow: visible;
    padding: 24px 0;
  }
  .testimonials__track {
    animation: none !important;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 0 24px;
    width: auto;
  }
  .testimonials__track::-webkit-scrollbar { display: none; }
  .testimonials__track .testimonial-card:nth-child(n+5) { display: none; }
  .testimonial-card { flex: 0 0 80vw; scroll-snap-align: center; }
  .showcase__nav-btn { width: 38px; height: 38px; }

  /* Mobile carousel controls */
  .mc-controls {
    display: flex; gap: 10px; justify-content: center; margin-top: 20px;
  }
  .mc-btn {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-dark);
    color: var(--text-light); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
  }
  .mc-btn:hover { border-color: var(--mint); color: var(--mint); }
  .mc-btn:disabled { opacity: 0.3; cursor: default; }
  .mc-btn--play {
    width: auto; border-radius: var(--r-pill); padding: 0 14px;
  }
  .mc-dots {
    display: flex; gap: 6px; justify-content: center; align-items: center;
    margin-top: 14px;
  }
  .mc-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--border); transition: all 0.3s ease; cursor: pointer;
  }
  .mc-dot.active {
    background: var(--mint); width: 18px; border-radius: 3px;
  }

}
[data-theme="dark"] .navbar__links.active {
  background: rgba(11,11,15,0.96);
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .btn--lg { width: 100%; text-align: center; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--hero { grid-column: span 1; }
  .final-cta__actions { flex-direction: column; align-items: center; }
  .team__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .showcase__item { flex: 0 0 85vw; }
  .showcase__grid { padding: 0 5vw; }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: var(--r-pill);
  color: var(--text-light); cursor: pointer; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, color 0.3s;
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--text-white); }
/* Default is light: show sun, hide moon */
.theme-toggle__sun { display: block; }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --mint: #abffc0;
  --mint-dim: rgba(171,255,192,0.12);
  --mint-glow: rgba(171,255,192,0.06);
  --sage: #9a9ab0;
  --text-white: #ffffff;
  --text-light: rgba(255,255,255,1);
  --text-muted: rgba(255,255,255,1);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
}

/* Dark mode background image — fixed pseudo-element so it stays viewport-sized */
[data-theme="dark"] body {
  background: var(--bg-deep);
}
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('background 1.jpg') center/cover no-repeat;
  z-index: -1;
  transform: scale(1.1);
}
@media (max-width: 768px) {
  [data-theme="dark"] body::before {
    background: linear-gradient(180deg, #1a1a1f 0%, #121216 50%, #0f0f13 100%);
    opacity: 1;
    filter: none;
  }
}

/* Make sections transparent so bg image shows through */
[data-theme="dark"] .services,
[data-theme="dark"] .why-us,
[data-theme="dark"] .testimonials,
[data-theme="dark"] .pricing {
  background: rgba(11,11,15,0.6);
}

/* Navbar in dark mode */
[data-theme="dark"] .navbar.scrolled {
  background: rgba(11,11,15,0.85);
}

/* Grain overlay in dark mode */
[data-theme="dark"] .grain-canvas { opacity: 0.02; mix-blend-mode: screen; }

@media (max-width: 768px) {
  [data-theme="dark"] .grain-canvas {
    display: none;
  }
}

/* Floating elements in dark mode */
[data-theme="dark"] .floater { border-color: rgba(255,255,255,0.06); }

/* Button adjustments in dark mode */
[data-theme="dark"] .btn--mint {
  background: var(--mint); color: #052415;
}

/* Card styles in dark mode — static border, no rotating glow */
[data-theme="dark"] .bento__item,
[data-theme="dark"] .why-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .team-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .mid-cta__card,
[data-theme="dark"] .svc-card,
[data-theme="dark"] .showcase__item,
[data-theme="dark"] .portfolio-card,
[data-theme="dark"] .founder__card {
  background: rgba(20,20,24,0.7) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  animation: none !important;
}
[data-theme="dark"] .why-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .svc-card,
[data-theme="dark"] .showcase__item,
[data-theme="dark"] .portfolio-card {
  background: rgba(14,14,18,0.7) !important;
}
/* Kill cursor-following glow in dark mode */
[data-theme="dark"] .svc-card__glow { display: none; }
/* Kill service card hover glow/shadow in dark mode */
[data-theme="dark"] .svc-card:hover {
  box-shadow: none;
}

/* Hover in dark mode — simple border brighten */
[data-theme="dark"] .bento__item:hover,
[data-theme="dark"] .why-card:hover,
[data-theme="dark"] .project-card:hover,
[data-theme="dark"] .team-card:hover,
[data-theme="dark"] .pricing-card:hover,
[data-theme="dark"] .testimonial-card:hover,
[data-theme="dark"] .mid-cta__card:hover,
[data-theme="dark"] .svc-card:hover,
[data-theme="dark"] .showcase__item:hover,
[data-theme="dark"] .portfolio-card:hover {
  background: rgba(28,28,34,0.75) !important;
  border-color: rgba(255,255,255,0.18) !important;
}

/* Dark mode: hero, bento hero, mid-cta, final-cta, footer transparent */
[data-theme="dark"] .bento__item--hero {
  background: linear-gradient(135deg, rgba(20,20,24,0.6), rgba(28,28,34,0.6));
}
[data-theme="dark"] .mid-cta__card,
[data-theme="dark"] .final-cta__card {
  background: rgba(20,20,24,0.6);
}
[data-theme="dark"] .footer {
  background: rgba(11,11,15,0.7);
}
[data-theme="dark"] .video-placeholder {
  background: rgba(20,20,24,0.6);
}
[data-theme="dark"] .logo-pill {
  background: rgba(20,20,24,0.5);
}
[data-theme="dark"] .showcase__nav-btn {
  background: rgba(20,20,24,0.7);
}


