/* ============================================================
   HOME.CSS — Hero, Reel, Services, Statement, Featured Work
   Mothrills 3D Studio
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: var(--space-24);
  overflow: hidden;
}

/* Background layers */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-base {
  position: absolute;
  inset: 0;
  /* Deep space dark base */
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(20, 20, 60, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(10, 15, 40, 0.6) 0%, transparent 60%),
    linear-gradient(160deg, #0a0a1a 0%, #080810 50%, #06060e 100%);
}

.hero__bg-video {
  position: absolute;
  inset: 0;
}

.hero__bg-video video,
.hero__bg-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

/* Multi-layer gradient overlay on top of media */
.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,8,16,0.5) 0%, transparent 30%, rgba(8,8,16,0.7) 70%, rgba(8,8,16,0.98) 100%),
    linear-gradient(to right, rgba(8,8,16,0.4) 0%, transparent 50%);
}

/* Ambient blue glow — the "light source" in the hero */
.hero__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 70% 25%, rgba(79, 172, 254, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 60%, rgba(26, 126, 255, 0.04) 0%, transparent 55%);
}

/* Three.js canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Noise grain */
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
}

/* ── Hero label ── */
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-6);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(79, 172, 254, 0.25);
  background: rgba(79, 172, 254, 0.06);
  backdrop-filter: blur(8px);
  width: fit-content;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}

.hero__label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(79, 172, 254, 0.5);
  animation: hero-dot-pulse 2.5s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent), 0 0 16px rgba(79,172,254,0.5); }
  50%       { opacity: 0.6; box-shadow: 0 0 4px var(--accent), 0 0 8px rgba(79,172,254,0.3); }
}

/* ── Headline ── */
.hero__headline {
  font-size: clamp(2.75rem, 7.5vw, 7rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.hero__headline em {
  font-style: normal;
  background: linear-gradient(135deg, #a8d8ff 0%, #4facfe 40%, #1a7eff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Sub ── */
.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  font-weight: 400;
}

/* ── Actions ── */
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.35;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

.hero__scroll-text {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  writing-mode: vertical-rl;
}

/* ════════════════════════════════════════════════════════════
   MARQUEE / REEL STRIP
   ════════════════════════════════════════════════════════════ */
.reel {
  padding-block: var(--space-24);
  position: relative;
  overflow: hidden;
}

/* Faint edge fade masks */
.reel::before,
.reel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

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

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

.reel__header {
  padding-inline: var(--space-8);
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.reel__track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-inline: max(32px, calc((100vw - 1280px) / 2));
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
}

.reel__track::-webkit-scrollbar { display: none; }

.reel__item {
  flex-shrink: 0;
  width: clamp(280px, 28vw, 400px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration-slow) var(--ease-out);
}

.reel__item:hover {
  border-color: rgba(79, 172, 254, 0.2);
  box-shadow: 0 0 30px rgba(79, 172, 254, 0.06), 0 12px 40px rgba(0, 0, 0, 0.4);
}

.reel__item-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.reel__item-media img,
.reel__item-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
  filter: brightness(0.85);
}

.reel__item:hover .reel__item-media img,
.reel__item:hover .reel__item-media video {
  transform: scale(1.04);
  filter: brightness(1);
}

/* ════════════════════════════════════════════════════════════
   SERVICES TEASER
   ════════════════════════════════════════════════════════════ */
.services-teaser {
  padding-block: var(--space-32);
}

/* ════════════════════════════════════════════════════════════
   STUDIO STATEMENT
   ════════════════════════════════════════════════════════════ */
.statement {
  padding-block: var(--space-32);
  position: relative;
  overflow: hidden;
}

.statement__text {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 820px;
}

.statement__text em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 400;
}

.statement__text strong {
  background: linear-gradient(135deg, #a8d8ff, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════════════════════
   FEATURED WORK
   ════════════════════════════════════════════════════════════ */
.featured-work {
  padding-block: var(--space-32);
}

.featured-work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.featured-work__item--large { grid-column: span 7; }
.featured-work__item--small { grid-column: span 5; }

@media (max-width: 1024px) {
  .featured-work__item--large,
  .featured-work__item--small { grid-column: span 12; }
}
