/* ═══════════════════════════════════════════════════════════
   BACKGROUND SYSTEM — atmospheric depth for every section
═══════════════════════════════════════════════════════════ */

/* ── GLOBAL STARFIELD ── */
body::before {
  content: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #05081e;
}

/* ── SECTION ATMOSPHERIC WRAPPERS ── */

/* Hero: deep space with panel warmth — establish stacking context */
.hero {
  background: var(--bg);
  isolation: isolate;
}

/* Edge glow frame around hero panels — sits above panels (z:1) but below content (z:5) */
.hero::before {
  content: none;
}

/* Tagline divider: dark solid for maximum contrast */
.tagline-section {
  background: var(--bg);
  position: relative;
  z-index: 1;
}

/* flare div handles the hero boundary — no ::before needed */
.tagline-section::before {
  content: none;
}

.tagline-section::after {
  content: none;
}

/* Unleash: keep the backdrop cool and let the cloud carry the composition */
.unleash {
  position: relative;
  z-index: 1;
}

.unleash::before {
  content: none;
}

.unleash::after {
  content: none;
}

/* Work section: blue ambient only */
.work {
  position: relative;
  z-index: 1;
}

.work::before {
  content: none;
}

.work::after {
  content: none;
}

/* Global reach: dark with cool blue ambient */
.global {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Purpose: warm earth glow bottom-left */
.purpose {
  position: relative;
  z-index: 1;
}

.purpose::before {
  content: none;
}

.purpose::after {
  content: none;
}

/* Talent: cool blue top-right glow */
.talent {
  position: relative;
  z-index: 1;
}

.talent::after {
  content: none;
}

.talent::before {
  content: none;
}

/* Studio: subtle noise-like diagonal lines */
.studio {
  position: relative;
  z-index: 1;
}

.studio::before {
  content: none;
}

.studio::after {
  content: none;
}

/* Contact: orange warmth behind form */
.contact {
  position: relative;
  z-index: 1;
}

.contact::before {
  content: none;
}

/* Rep: deep cool atmosphere */
.rep {
  background: #05081e;
}

/* Footer: warm earth atmosphere */
.footer {
  background: transparent;
}

/* ── SECTION WAVE DIVIDERS ── */
.wave-divider {
  position: relative;
  overflow: hidden;
  height: 80px;
  flex-shrink: 0;
}

.wave-divider svg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
}

/* ── CLOUD LAYER ── */
.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.cloud-layer::before,
.cloud-layer::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.cloud-layer--hero::before {
  top: 20%; left: 5%;
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(128,174,255,0.06) 0%, transparent 80%);
  animation: cloudDrift 26s var(--ease-smooth) infinite;
}

.cloud-layer--hero::after {
  top: 40%; right: 5%;
  width: 350px; height: 180px;
  background: radial-gradient(ellipse, rgba(211,78,11,0.05) 0%, transparent 80%);
  animation: cloudDrift 32s var(--ease-smooth) infinite reverse;
}

@keyframes cloudDrift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33%      { transform: translate3d(20px, -10px, 0); }
  66%      { transform: translate3d(-14px, 8px, 0); }
}

/* ── AMBIENT GLOW NODES ── */
.glow-node {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-node--orange-sm {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(211,78,11,0.20) 0%, transparent 70%);
  filter: blur(20px);
}

.glow-node--blue-sm {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(128,174,255,0.18) 0%, transparent 70%);
  filter: blur(16px);
}

.glow-node--orange-lg {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(211,78,11,0.10) 0%, transparent 70%);
  filter: blur(40px);
}

/* ── CINEMATIC SCAN LINES (hero overlay) ── */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.03) 3px,
    rgba(0,0,0,0.03) 4px
  );
  opacity: 0.4;
}

/* ── FILM GRAIN (hero + footer) ── */
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  10%  { transform: translate(-2%,-3%); }
  20%  { transform: translate(3%, 2%); }
  30%  { transform: translate(-1%, 4%); }
  40%  { transform: translate(2%,-2%); }
  50%  { transform: translate(-3%, 1%); }
  60%  { transform: translate(1%, 3%); }
  70%  { transform: translate(-2%,-1%); }
  80%  { transform: translate(3%, 2%); }
  90%  { transform: translate(-1%,-3%); }
  100% { transform: translate(0,0); }
}

.film-grain {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  animation: grainShift 0.4s steps(1) infinite;
}

/* ── HERO LIGHT LEAK ── */
.hero__lightleak {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(180deg,
    rgba(128,174,255,0.06) 0%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── BOTTOM GRADIENT WIPE between sections ── */
.section-fade {
  height: 120px;
  background: linear-gradient(var(--from, transparent), var(--to, var(--bg)));
  position: relative;
  z-index: 1;
}
