/*
 * Eknetra Productions — home.css
 * Homepage-specific styles loaded only on front-page.
 * Covers all section classes from the provided HTML blocks:
 * eknc, eknt, ekns, eknw, eknp, ekni, eknv, eknf
 * These supplement style.css global tokens.
 */

/* ── Ensure font smoothing on all home sections ── */
.eknc, .eknt, .ekns, .eknw, .eknp,
.ekni, .eknv, .eknf, .ekn-hero-home {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Hero Section (homepage) ── */
.ekn-hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #0a0a0f;
  padding: 140px 6vw 100px;
  overflow: hidden;
}

.ekn-hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 10%, rgba(255,184,0,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(124,58,237,.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,45,85,.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Film-grain noise layer */
.ekn-hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

.ekn-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.ekn-hero-inner h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 110px);
  line-height: .92;
  letter-spacing: -.04em;
  font-weight: 700;
  color: #f5f5f7;
  margin: 0 0 28px;
  max-width: 900px;
}

.ekn-hero-inner h1 em {
  background: linear-gradient(135deg, #ffb800, #ff2d55, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.ekn-hero-inner .lede {
  font-size: 18px;
  line-height: 1.65;
  color: #a1a1aa;
  max-width: 580px;
  margin: 0 0 40px;
}

.ekn-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Showreel trigger */
.ekn-hero-reel-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  color: #f5f5f7;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all .3s ease;
  cursor: pointer;
}

.ekn-hero-reel-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,184,0,.4);
  color: #f5f5f7;
}

.ekn-hero-play-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2d55, #ffb800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ekn-hero-play-dot::after {
  content: "";
  border-left: 8px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-left: 2px;
}

/* Scroll hint */
.ekn-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #52525b;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.ekn-scroll-hint::after {
  content: "";
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, #52525b, transparent);
}

@keyframes scrollBounce {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1;  transform: translateX(-50%) translateY(8px); }
}

/* ── CTA Section: .eknc ── */
/* Defined inline in HTML blocks, supplemented here */
.eknc { isolation: isolate; }

/* Ensure rings don't bleed on mobile */
@media (max-width: 640px) {
  .eknc::before { width: 280px; height: 280px; }
  .eknc::after  { width: 500px; height: 500px; }
}

/* ── Logo Marquee: .eknt ── */
.eknt-wrap {
  /* Smooth hardware acceleration */
  will-change: transform;
}

.eknt-track {
  will-change: transform;
}

/* Pause marquee for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .eknt-track { animation: none; }
}

/* ── Services Grid: .ekns ── */
/* 3D perspective parent */
.ekns-grid {
  transform-style: preserve-3d;
}

/* Disable 3D tilt on touch devices */
@media (hover: none) {
  .ekns-card:hover {
    transform: translateY(-4px);
  }
}

/* ── Work Grid: .eknw ── */
/* Responsive grid fix for very small viewports */
@media (max-width: 480px) {
  .eknw-stage {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 220px);
  }
  .eknw-tile.lg {
    grid-row: auto;
  }
}

/* ── Process Timeline: .eknp ── */
/* Ensure vertical line stays visible on small screens */
@media (max-width: 640px) {
  .eknp::before {
    left: 32px;
  }
  .eknp-step,
  .eknp-step:nth-child(even) {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .eknp-node {
    width: 60px;
    height: 60px;
    font-size: 14px;
  }
}

/* ── Stats Bar: .ekni ── */
/* Counter animation target */
.ekni-num {
  will-change: contents;
}

/* ── Testimonial: .eknv ── */
/* Reduce 3D tilt on mobile */
@media (max-width: 768px) {
  .eknv-card {
    transform: none;
    padding: 36px 24px;
  }
}

/* ── FAQ Accordion: .eknf ── */
/* Animate the answer reveal */
.eknf details .ans {
  animation: faqReveal .3s ease forwards;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Shared responsive override ── */
@media (max-width: 768px) {
  .eknc,
  .ekns,
  .eknw,
  .eknp,
  .ekni,
  .eknv,
  .eknf {
    padding-left: 5vw;
    padding-right: 5vw;
  }
}