/* ==========================================================================
   FLARESPARK — CINEMATIC FILM STUDIO DESIGN SYSTEM
   "Where ideas become cinema"
   ========================================================================== */

:root {
  --bg-deep: #050609;
  --bg-void: #020204;
  --bg-surface: #0a0c13;
  --bg-surface-elevated: #111420;
  --bg-card: rgba(13, 16, 26, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.3);
  --border-ember: rgba(249, 115, 22, 0.3);

  --accent-cyan: #38bdf8;
  --accent-electric: #0284c7;
  --accent-violet: #a855f7;
  --accent-ember: #f97316;
  --accent-gold: #fbbf24;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --font-display: 'Cinzel', 'Syne', Georgia, serif;
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;

  --container-max: 1360px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-deep);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Subtle Film Grain Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography Defaults */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}

.serif-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

p {
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 72ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, textarea, select {
  font: inherit;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-spacing {
  padding-top: 7rem;
  padding-bottom: 7rem;
  position: relative;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* Atmospheric Glows & Cinematic Lights */
.bg-ambient-spark {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  max-width: 900px;
  height: 450px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.14) 0%, rgba(168, 85, 247, 0.08) 40%, rgba(249, 115, 22, 0.03) 70%, transparent 80%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-ambient-ember {
  position: absolute;
  bottom: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* Anamorphic Flare Streak */
.lens-flare-horizontal {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.4) 30%, rgba(255, 255, 255, 0.9) 50%, rgba(249, 115, 22, 0.4) 70%, transparent 100%);
  pointer-events: none;
  opacity: 0.5;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

/* ==========================================================================
   HEADER / TOP BAR CONTRACT
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 6, 9, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(5, 6, 9, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

/* Brand Zone (Single element) */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-spark-dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px 3px rgba(56, 189, 248, 0.9), 0 0 20px 6px rgba(249, 115, 22, 0.5);
  position: relative;
}

.brand-spark-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 1);
}

/* Nav Links Zone */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-ember));
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Action Zone */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-youtube-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-youtube-header:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(249, 115, 22, 0.4));
  border-color: rgba(239, 68, 68, 0.8);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & COMMON AFFORDANCES
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.6), 0 0 15px rgba(124, 58, 237, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-ember {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 60%, #9a3412 100%);
  border: 1px solid rgba(251, 146, 60, 0.4);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 25px rgba(234, 88, 12, 0.35);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-ember:hover {
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.65);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #0d1222 0%, var(--bg-deep) 75%);
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-backdrop-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  mix-blend-mode: screen;
  z-index: 0;
  transform: scale(1.04);
  transition: transform 12s ease-out;
}

.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(2, 2, 4, 0.8) 75%, #020204 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-cinema-bars {
  position: absolute;
  left: 0;
  width: 100%;
  height: 24px;
  background: #000000;
  z-index: 3;
}
.hero-cinema-bars.top { top: 0; }
.hero-cinema-bars.bottom { bottom: 0; }

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.hero-kicker::before,
.hero-kicker::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan));
}
.hero-kicker::after {
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(56, 189, 248, 0.35));
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #f1f5f9;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-tagline span {
  color: var(--accent-amber);
  font-style: normal;
  font-weight: 600;
}

.hero-description {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-meta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-separator {
  color: var(--border-glow);
}

/* ==========================================================================
   ABOUT FLARESPARK
   ========================================================================== */
.about-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
  position: relative;
}

.editorial-header {
  margin-bottom: 3.5rem;
}

.editorial-header.text-center {
  text-align: center;
}

.editorial-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-lead-text {
  font-size: 1.35rem;
  line-height: 1.55;
  color: #f8fafc;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.about-body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #94a3b8;
}

/* Genre Pills (Metadata Discipline: Unboxed clean tokens) */
.genre-constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.genre-token {
  color: #e2e8f0;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color var(--transition-fast);
}

.genre-token:hover {
  color: var(--accent-cyan);
}

.about-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.about-visual-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about-visual-card:hover img {
  transform: scale(1.03);
}

.about-visual-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 2, 4, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.about-visual-caption-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.about-visual-caption-sub {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* 3 Pillars */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-subtle);
}

.pillar-item {
  position: relative;
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 0.85rem;
  display: block;
}

.pillar-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   CINEMATIC WORLDS (8 Distinct Genres)
   ========================================================================== */
.worlds-section {
  background-color: var(--bg-deep);
  position: relative;
}

.worlds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.world-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.world-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(56, 189, 248, 0.2);
}

.world-card.card-featured {
  grid-column: span 2;
}

.world-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}

.world-card.card-featured .world-img-container {
  aspect-ratio: 16/9;
}

.world-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.world-card:hover .world-img-container img {
  transform: scale(1.06);
}

.world-img-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 2, 4, 0.1) 0%, rgba(2, 2, 4, 0.6) 60%, rgba(10, 12, 19, 0.98) 100%);
}

.world-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.world-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.world-genre-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.world-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.world-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.world-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.world-inspect-btn {
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.world-card:hover .world-inspect-btn {
  color: #ffffff;
}

/* ==========================================================================
   THE FLARESPARK PROCESS
   ========================================================================== */
.process-section {
  background: radial-gradient(circle at 50% 50%, #0d1226 0%, var(--bg-deep) 80%);
  position: relative;
  overflow: hidden;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
}

/* Progression connector line */
.process-timeline::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.8), rgba(249, 115, 22, 0.8), rgba(168, 85, 247, 0.9));
  z-index: 1;
}

.process-step-card {
  position: relative;
  z-index: 2;
  background: rgba(13, 16, 26, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.process-step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
}

.process-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.process-spark-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.process-step-card:nth-child(1) .process-spark-orb {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}
.process-step-card:nth-child(2) .process-spark-orb {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  border-color: rgba(56, 189, 248, 0.4);
}
.process-step-card:nth-child(3) .process-spark-orb {
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.6);
  border-color: rgba(168, 85, 247, 0.4);
}
.process-step-card:nth-child(4) .process-spark-orb {
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.8);
  border-color: rgba(249, 115, 22, 0.6);
}

.process-orb-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
}

.process-step-card:nth-child(1) .process-orb-icon { width: 6px; height: 6px; }
.process-step-card:nth-child(2) .process-orb-icon { width: 10px; height: 10px; background: var(--accent-cyan); }
.process-step-card:nth-child(3) .process-orb-icon { width: 14px; height: 14px; background: var(--accent-violet); }
.process-step-card:nth-child(4) .process-orb-icon { width: 18px; height: 18px; background: var(--accent-ember); }

.process-stage-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.process-stage-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   WORLDS BEYOND ONE FILM
   ========================================================================== */
.universe-section {
  background: var(--bg-surface);
  position: relative;
}

.universe-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.universe-preview-display {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #000;
  aspect-ratio: 16/9;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9);
}

.universe-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-smooth), transform var(--transition-slow);
}

.universe-aspect-stamp {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.universe-categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.universe-cat-item {
  padding: 1.15rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.universe-cat-item:hover, .universe-cat-item.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateX(6px);
}

.universe-cat-item.active {
  border-left: 3px solid var(--accent-cyan);
}

.universe-cat-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.universe-cat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURED PRODUCTIONS (FLARESPARK ORIGINALS)
   ========================================================================== */
.originals-section {
  background: var(--bg-deep);
  position: relative;
}

.originals-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.originals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.production-card {
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.production-card:hover {
  transform: translateY(-8px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.9), 0 0 25px -5px rgba(249, 115, 22, 0.2);
}

.production-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.production-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.production-card:hover .production-poster-wrap img {
  transform: scale(1.05);
}

.production-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.production-card:hover .production-play-overlay {
  opacity: 1;
}

.play-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6);
  transform: scale(0.85);
  transition: transform var(--transition-fast);
}

.production-card:hover .play-circle {
  transform: scale(1);
}

.production-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.production-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-ember);
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.production-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.production-logline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.production-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-watch-card {
  flex-grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-watch-card:hover {
  background: #ffffff;
  color: #000000;
}

.btn-details-card {
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-details-card:hover {
  color: #ffffff;
}

/* ==========================================================================
   VISUAL STORYTELLING (CINEMATIC GALLERY)
   ========================================================================== */
.gallery-section {
  background: var(--bg-surface);
  position: relative;
}

.gallery-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 2, 4, 0.9) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.gallery-caption-meta {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

/* ==========================================================================
   AI + CINEMATIC CREATION
   ========================================================================== */
.creation-section {
  background: radial-gradient(circle at 50% 30%, #0d142a 0%, var(--bg-deep) 75%);
  position: relative;
}

.creation-relationship-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 3.5rem 0;
  padding: 2.5rem;
  background: rgba(13, 16, 26, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.creation-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.node-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-fast);
}

.creation-node:hover .node-icon-circle {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

.node-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.node-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 140px;
  margin-top: 0.25rem;
}

.flow-connector {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.8), rgba(249, 115, 22, 0.8));
  margin: 0 1.5rem;
  position: relative;
}

.flow-connector::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent-ember);
  border-right: 2px solid var(--accent-ember);
  transform: rotate(45deg);
}

.creation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.creation-card {
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.creation-card-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.creation-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: var(--bg-deep);
  position: relative;
  border-top: 1px solid var(--border-subtle);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.contact-channel-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(255, 255, 255, 0.03);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-channel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-channel-val {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 500;
}

.contact-channel-val a:hover {
  color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(5, 6, 9, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.form-status-msg {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  display: none;
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */
.final-cta-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, #151b33 0%, var(--bg-deep) 80%);
  padding: 7rem 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.05;
}

.final-cta-desc {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-style: italic;
  color: var(--accent-amber);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-nav-link:hover {
  color: #ffffff;
}

.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-contact-line {
  display: flex;
  gap: 0.5rem;
}

.footer-contact-line strong {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  min-width: 70px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-zip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.75rem;
  transition: all var(--transition-fast);
}

.footer-zip-badge:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* ==========================================================================
   MODAL / LIGHTBOX VIEWER
   ========================================================================== */
.cinema-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 4, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.cinema-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cinema-modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.95);
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.cinema-modal-backdrop.open .cinema-modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ffffff;
  color: #000000;
}

.modal-image-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  overflow: hidden;
}

.modal-image-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 2.5rem;
}

.modal-genre-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.modal-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.spec-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.spec-item span {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Zero horizontal scroll, perfect scaling)
   ========================================================================== */
@media (max-width: 1024px) {
  .worlds-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .world-card.card-featured {
    grid-column: span 2;
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-timeline::before {
    display: none;
  }
  .originals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .creation-relationship-flow {
    flex-direction: column;
    gap: 2rem;
  }
  .flow-connector {
    width: 2px;
    height: 30px;
    margin: 0;
  }
  .flow-connector::after {
    top: auto;
    bottom: -4px;
    right: -4px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background: rgba(5, 6, 9, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1.5rem;
    display: none;
  }
  .nav-menu.mobile-open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .about-grid, .universe-showcase, .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pillars-row, .creation-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .worlds-grid, .originals-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .world-card.card-featured {
    grid-column: span 1;
  }
  .process-timeline {
    grid-template-columns: 1fr;
  }
  .hero-meta-strip {
    flex-direction: column;
    gap: 0.5rem;
  }
  .meta-separator {
    display: none;
  }
  .modal-specs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
