/* ═══════════════════════════════════════════════════════════════
   CamIntelligence CSS
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:             #08080a;
  --bg-raised:      #0f0f12;
  --bg-card:        rgba(255, 255, 255, 0.03);
  --bg-card-hover:  rgba(255, 255, 255, 0.06);

  /* Platinum / Silver / Chrome system */
  --platinum:       #e4e4e7;
  --silver:         #a1a1aa;
  --chrome:         #d4d4d8;
  --steel:          #71717a;
  --graphite:       #27272a;
  --surface:        #18181b;

  /* Text */
  --text-primary:   #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted:     #52525b;

  /* Accent */
  --accent:         #e363f1;
  --accent-light:   #818cf8;
  --accent-glow:    rgba(99, 102, 241, 0.35);
  --grad-accent:    linear-gradient(135deg, #4b69ff, #d40eea);
  --grad-accent-h:  linear-gradient(135deg, #4b69ff, #6366f1, #4f46e5);

  /* Gradients */
  --grad-platinum:  linear-gradient(135deg, #e4e4e7, #a1a1aa);
  --grad-shine:     linear-gradient(135deg, #ffffff 0%, #d4d4d8 40%, #a1a1aa 100%);
  --grad-subtle:    linear-gradient(135deg, rgba(228,228,231,0.12), rgba(161,161,170,0.04));

  /* Borders */
  --border:         rgba(255, 255, 255, 0.06);
  --border-hover:   rgba(255, 255, 255, 0.12);
  --border-active:  rgba(228, 228, 231, 0.25);

  /* Glass */
  --glass-bg:       rgba(255, 255, 255, 0.02);
  --glass-border:   rgba(255, 255, 255, 0.06);
  --glass-blur:     1.5px;

  /* Typography */
  --font-display:   'Urbanist', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Spacing */
  --section-pad:    clamp(80px, 12vw, 160px);
  --container:      1280px;

  /* Motion */
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);
  --duration:       0.8s;
  --duration-slow:  1.2s;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-secondary);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom cursor: hide default only when JS confirms cursor is active */
body.has-custom-cursor { cursor: none; }
body.has-custom-cursor a { cursor: none; }
body.has-custom-cursor button { cursor: none; }

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

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

ul, ol { list-style: none; }

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

::selection {
  background: rgba(228, 228, 231, 0.2);
  color: var(--text-primary);
}


/* ─── Utility Classes ───────────────────────────────────────── */
.user-select-none {
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;;
}

.user-select-all {
  -moz-user-select: all;
  -webkit-user-select: all;
  -ms-user-select: all;
  -o-user-select: all;
  user-select: all;
}



/* ─── Full-Page Particle Canvas ─────────────────────────────── */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ─── Tech Dot Grid ─────────────────────────────────────────── */
.tech-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 100%);
  /* will-change: transform; */
}

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}

/* ─── Section Headers ───────────────────────────────────────── */
.section__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 24px;
  position: relative;
  padding-left: 32px;
}

.section__tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--grad-accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  max-width: 720px;
}

.section__title em {
  font-style: normal;
  background: var(--grad-accent-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass Card ────────────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: background 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Chrome Browser overide for perf reasons */
/* body.is-chrome .glass-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
} */

/* ═══════════════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: inset(0 0 0 0);
}

.loader__inner {
  text-align: center;
}

.loader__mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__diamond {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--platinum);
  transform: rotate(45deg);
  position: relative;
  opacity: 0;
}

.loader__diamond::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--platinum);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.loader__word {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-primary);
  display: block;
  opacity: 0;
}

.loader__bar {
  width: 120px;
  height: 1px;
  background: var(--graphite);
  margin: 24px auto 0;
  overflow: hidden;
  border-radius: 1px;
}

.loader__progress {
  width: 0%;
  height: 100%;
  background: var(--grad-accent);
  border-radius: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  /* mix-blend-mode: difference; */
}

/* Chrome Browser overide for perf reasons */
/* body.is-chrome .cursor {
   mix-blend-mode: normal;
} */

.cursor__dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: -3px;
}

.cursor__ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: -20px;
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              top 0.3s var(--ease-out),
              left 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out);
}

.cursor.is-hovering .cursor__ring {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  border-color: rgba(228, 228, 231, 0.6);
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: background 0.4s var(--ease-out),
              padding 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.nav__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav__mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__diamond {
  width: 14px;
  height: 14px;
  border: 1.2px solid var(--platinum);
  transform: rotate(45deg);
  position: relative;
}

.nav__diamond::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: var(--platinum);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--platinum);
  transition: width 0.4s var(--ease-out);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__cta {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: var(--grad-accent);
  padding: 10px 24px;
  border-radius: 100px;
  transition: background 0.3s var(--ease-out),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.nav__cta:hover {
  background: var(--grad-accent-h);
  box-shadow: 0 0 30px var(--accent-glow);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out),
              opacity 0.3s var(--ease-out);
  transform-origin: center;
}

.nav__burger.is-active span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav__burger.is-active span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ─── Mobile Menu ───────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 8, 10, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  transition: color 0.3s var(--ease-out);
}

.mobile-menu__link:hover {
  color: var(--platinum);
}

.mobile-menu__cta {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--text-primary);
  padding: 16px 40px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, var(--bg) 100%),
    radial-gradient(ellipse 40% 40% at 30% 40%, rgba(228, 228, 231, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 70% 60%, rgba(161, 161, 170, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 clamp(20px, 4vw, 60px);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(15px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7.5vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero__line {
  display: block;
  overflow: hidden;
  position: relative;
}

.hero__word {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  margin-right: 0.25em;
  position: relative;
}

.hero__word::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0) 30%,
    rgba(129, 140, 248, 0.6) 50%,
    rgba(99, 102, 241, 0) 70%,
    transparent 100%
  );
  transform: translateX(var(--burst-x, -100%));
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__word--accent {
  background: var(--grad-shine);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(20px);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 36px;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--grad-accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--grad-accent-h);
  box-shadow: 0 0 20px var(--accent-glow),
              0 0 40px rgba(99, 102, 241, 0.1);
  /* transform: translateY(-1px); */
}

.btn--ghost {
  color: var(--silver);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn--full { width: 100%; justify-content: center; }

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--grad-accent);
  animation: scroll-line 2s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
  0% { top: -50%; }
  100% { top: 150%; }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about__intro {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.625rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--chrome);
  max-width: 800px;
  margin: 48px 0 80px;
}

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

.about__card {
  padding: 48px 40px;
  position: relative;
}

.about__card-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  margin-bottom: 24px;
}

.about__card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.about__card-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--silver);
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.services__card {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
}

.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(228,228,231,0.15), transparent);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.services__card:hover::before {
  opacity: 1;
}

.services__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--platinum);
  margin-bottom: 28px;
  transition: border-color 0.4s var(--ease-out),
              background 0.4s var(--ease-out);
}

.services__card:hover .services__icon {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.services__label {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.services__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.services__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: 24px;
}

.services__features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.services__features li {
  font-size: 0.8125rem;
  color: var(--chrome);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 16px;
}

.services__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--platinum);
  border-radius: 50%;
}

.services__features li:last-child { border-bottom: none; }

.services__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  transition: gap 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.services__link:hover { gap: 10px; color: #a5b4fc; }

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.marquee {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--bg);
  box-shadow:
    0 -60px 40px -10px var(--bg),
    0  60px 40px -10px var(--bg);
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0 24px;
}

.marquee__dot {
  width: 4px;
  height: 4px;
  background: var(--steel);
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 24px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   METHOD
   ═══════════════════════════════════════════════════════════════ */
.method__timeline {
  margin-top: 80px;
  position: relative;
  padding-left: 80px;
}

.method__line {
  position: absolute;
  z-index: 0;
  left: 28px;
  top: 0;
  width: 2px;
  background: var(--graphite);
  /* height set dynamically by JS to end at last marker */
}

.method__line-fill {
  width: 100%;
  height: 0%;
  background: var(--grad-platinum);
  z-index: 1;
}

.method__step {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.method__step:last-child { margin-bottom: 0; }

.method__marker {
  position: absolute;
  left: -80px;
  top: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--graphite);
  border-radius: 50%;
  background: black;
  z-index: 2;
  transition: border-color 0.5s var(--ease-out),
              background 0.5s var(--ease-out);
}

.method__marker span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--steel);
  transition: color 0.5s var(--ease-out);
}

.method__step.is-active .method__marker {
  border-color: rgb(222, 222, 222);
  background: var(--bg);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.method__step.is-active .method__marker span {
  color: rgb(222, 222, 222);
  /* color: var(--accent-light); */
}

.method__content {
  padding: 40px;
  width: 100%;
}

.method__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.method__text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--silver);
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════════════════════════ */
.results__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 64px 0 80px;
}

.results__metric {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.results__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 200;
  background: var(--grad-accent-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1;
}

.results__unit {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 200;
  background: var(--grad-accent-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--steel);
  margin-top: 16px;
  line-height: 1.5;
}

/* Testimonials */
.results__carousel {
  position: relative;
  overflow: hidden;
  min-height: 240px;
}

.results__slide {
  padding: 48px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
  pointer-events: none;
}

.results__slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: all;
}

.results__quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--chrome);
  margin-bottom: 32px;
}

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

.results__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
}

.results__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  display: block;
}

.results__role {
  font-size: 0.8125rem;
  color: var(--steel);
}

.results__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.results__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--silver);
  transition: border-color 0.3s var(--ease-out),
              color 0.3s var(--ease-out);
}

.results__btn:hover {
  border-color: var(--platinum);
  color: var(--text-primary);
}

.results__dots {
  display: flex;
  gap: 8px;
}

.results__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--graphite);
  transition: background 0.3s var(--ease-out),
              transform 0.3s var(--ease-out);
}

.results__dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--silver);
  margin: 32px 0 48px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__detail-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact__detail-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--chrome);
}

/* Form */
.contact__form {
  padding: 48px;
}

.form__group {
  position: relative;
  margin-bottom: 32px;
}

.form__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--graphite);
  padding: 16px 0 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s var(--ease-out);
  cursor: none;
}

.form__input:focus {
  border-color: transparent;
}

/* Prevent browser autofill from overriding dark theme */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:hover,
.form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  /* border-color: var(--graphite); */
  /* transition: background-color 5000s ease-in-out 0s, border-color 0.3s var(--ease-out); */
}

.form__input:-webkit-autofill:focus {
  border-color: transparent;
}

.form__label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 0.875rem;
  color: var(--steel);
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: -4px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}

.form__select:valid ~ .form__label {
  top: -4px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}

.form__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grad-accent);
  transition: width 0.4s var(--ease-out);
}

.form__input:focus ~ .form__line {
  width: 100%;
}

.form__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form__select option {
  background: var(--bg);
  color: var(--text-primary);
}

.form__textarea {
  resize: none;
  min-height: 100px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.footer::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 0;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text-primary);
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--steel);
  max-width: 240px;
}

.footer__links {
  display: flex;
  gap: 80px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--silver);
  transition: color 0.3s var(--ease-out);
}

.footer__link:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 32px;
}

.footer__legal .footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS (base states — GSAP handles animation)
   ═══════════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Privacy Policy, Terms of Service)
   ═══════════════════════════════════════════════════════════════ */
.legal {
  padding-top: calc(var(--section-pad) + 80px);
}

.legal__header {
  margin-bottom: 64px;
}

.legal__updated {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--steel);
  margin-top: 20px;
  letter-spacing: 0.02em;
}

.legal__content {
  max-width: 800px;
}

.legal__block {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.legal__block:last-of-type {
  border-bottom: none;
}

.legal__heading {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.legal__subheading {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--chrome);
  margin: 24px 0 12px;
  letter-spacing: -0.01em;
}

.legal__content p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--silver);
  margin-bottom: 16px;
}

.legal__content p:last-child {
  margin-bottom: 0;
}

.legal__content strong {
  color: var(--chrome);
  font-weight: 500;
}

.legal__content ul {
  margin: 16px 0;
  padding-left: 0;
}

.legal__content ul li {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--silver);
  padding: 6px 0 6px 24px;
  position: relative;
}

.legal__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent-light);
  border-radius: 50%;
}

.legal__link {
  color: var(--accent-light);
  transition: color 0.3s var(--ease-out);
  text-decoration: underline;
  text-decoration-color: rgba(129, 140, 248, 0.3);
  text-underline-offset: 3px;
}

.legal__link:hover {
  color: #a5b4fc;
  text-decoration-color: rgba(129, 140, 248, 0.7);
}

.legal__cta {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.legal__cta p {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--chrome);
  margin-bottom: 28px;
}

.legal__cta .btn {
  display: inline-flex;
}

/* ═══════════════════════════════════════════════════════════════
   404 ERROR PAGE
   ═══════════════════════════════════════════════════════════════ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.error-page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.error-page__grid {
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 0%, transparent 100%);
}

.error-page__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 60px);
  max-width: 640px;
}

.error-page__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.error-page__digit {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 200;
  line-height: 1;
  background: var(--grad-shine);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
}

.error-page__diamond-wrap {
  width: clamp(40px, 8vw, 72px);
  height: clamp(40px, 8vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: error-rotate 8s linear infinite;
}

.error-page__diamond {
  width: clamp(28px, 5vw, 48px);
  height: clamp(28px, 5vw, 48px);
  border: 1.5px solid var(--accent-light);
  transform: rotate(45deg);
  position: relative;
  box-shadow: 0 0 20px var(--accent-glow);
}

.error-page__diamond::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes error-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-page__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.error-page__text {
  font-family: var(--font-body);
  font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
  max-width: 440px;
  margin: 0 auto 40px;
}

.error-page__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.error-page__links {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.error-page__links-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.error-page__links-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.error-page__link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--silver);
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.error-page__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--grad-accent);
  transition: width 0.4s var(--ease-out);
}

.error-page__link:hover {
  color: var(--text-primary);
}

.error-page__link:hover::after {
  width: 100%;
}

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

  .contact__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

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

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

  .method__timeline {
    padding-left: 64px;
  }

  .method__marker {
    left: -64px;
    width: 44px;
    height: 44px;
  }

  .footer__top {
    flex-direction: column;
    gap: 48px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn { width: 100%; justify-content: center; }

  .cursor { display: none; }

  body.has-custom-cursor { cursor: auto; }
  body.has-custom-cursor a,
  body.has-custom-cursor button { cursor: pointer; }

  .results__slide {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .about__card,
  .services__card,
  .method__content {
    padding: 32px 24px;
  }

  .contact__form {
    padding: 32px 24px;
  }

  .method__timeline {
    padding-left: 52px;
  }

  .method__marker {
    left: -52px;
    width: 36px;
    height: 36px;
  }

  .method__marker span {
    font-size: 0.625rem;
  }

  .error-page__actions {
    flex-direction: column;
    gap: 12px;
  }

  .error-page__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .error-page__links-list {
    flex-wrap: wrap;
    gap: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .particle-canvas {
    display: none;
  }

  .marquee__track {
    animation: none;
  }

  .hero__scroll-line::after {
    animation: none;
  }

  .loader {
    display: none;
  }
}