/* ============================================================
   Home page
   ============================================================ */

.home-hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + clamp(2rem, 6vw, 6rem));
  padding-bottom: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,229,255,0.18), transparent 55%),
              radial-gradient(ellipse at 75% 80%, rgba(138,43,226,0.22), transparent 55%);
  z-index: -2;
  pointer-events: none;
}

.home-hero .hero-canvas-wrap {
  position: relative;
  border-radius: var(--r-xl);
  padding: 6px;
  background: linear-gradient(135deg, rgba(0,229,255,0.55), rgba(138,43,226,0.55)) border-box;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow-card);
  transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
  transition: transform var(--dur-slow) var(--ease-out);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  width: 100%;
  max-width: none;
}
.home-hero .hero-canvas-wrap:hover { transform: perspective(1400px) rotateY(-1deg) rotateX(1deg); }
.home-hero #hero-canvas {
  width: 100%; height: 100%;
  border-radius: calc(var(--r-xl) - 8px);
  display: block;
  background: var(--gradient-mesh);
}
.home-hero .hero-reel-video {
  width: 100%; height: 100%;
  border-radius: calc(var(--r-xl) - 6px);
  display: block;
  object-fit: cover;
  object-position: center;
  background: #000;
  cursor: pointer;
}
.home-hero .hero-reel-caption {
  position: absolute;
  inset: auto var(--space-5) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 2;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
}
.home-hero .hero-reel-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--accent-blue);
  transition: opacity 280ms var(--ease-out);
}
.home-hero .hero-reel-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: #fff;
  transition: opacity 280ms var(--ease-out);
}
.home-hero .hero-reel-hint {
  position: absolute;
  top: var(--space-5); right: var(--space-5);
  z-index: 2;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
  background: rgba(0,0,0,0.55);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.home-hero .hero-canvas-wrap:hover .hero-reel-hint { opacity: 1; }
.home-hero .hero-canvas-wrap::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle, rgba(0,229,255,0.18), rgba(138,43,226,0.18) 40%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

@media (min-width: 1025px) {
  .home-hero .split-2 { grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem); }
}
.home-hero .eyebrow { margin-bottom: var(--space-4); }
.home-hero h1 {
  font-size: var(--fs-display);
  margin-bottom: var(--space-5);
  letter-spacing: var(--tracking-tight);
}
.home-hero .home-hero-sub {
  color: var(--fg-muted);
  font-size: var(--fs-md);
  max-width: 36rem;
  margin-bottom: var(--space-7);
}
.home-hero .hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .home-hero .hero-canvas-wrap { transform: none; max-width: 36rem; margin: 0 auto; }
  .home-hero .hero-cta { justify-content: center; }
}

/* Featured reel marquee */
.home-reel {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-reel .marquee-track .video-card {
  width: clamp(280px, 28vw, 420px);
  flex-shrink: 0;
}

/* Capabilities band */
.home-caps .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-5);
}

/* Stats strip */
.home-stats {
  background: var(--bg-1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-6);
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-4xl);
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-3);
}
.stat-label {
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Process pinned timeline */
.home-process {
  position: relative;
}
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  max-width: var(--container-md);
  margin: 0 auto;
  position: relative;
}
.process-list::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
  opacity: 0.5;
}
.proc-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-5);
  align-items: flex-start;
  transition: opacity var(--dur-base) var(--ease-out);
}
.proc-step .num {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 2px solid var(--accent-blue);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: var(--fs-lg);
  color: var(--accent-blue);
  position: relative;
  z-index: 1;
}
.proc-step h4 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.proc-step p { color: var(--fg-muted); }

/* Mega CTA */
.home-cta-mega {
  text-align: center;
  padding-block: clamp(6rem, 14vw, 12rem);
  background: var(--bg-0);
  position: relative;
  isolation: isolate;
}
.home-cta-mega::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-soft);
  opacity: 0.6;
  z-index: -1;
}
.home-cta-mega h2 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--space-5);
}
.home-cta-mega p {
  color: var(--fg-muted);
  font-size: var(--fs-md);
  max-width: 38rem;
  margin: 0 auto var(--space-7);
}
