/* ==========================================================================
   Editorial Brutalist Animations & Atmospheric Depth
   ========================================================================== */

/* Infinite Marquee Scroll */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Flame & Core Red Pulse */
@keyframes flamePulse {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

/* Rising Embers from Burning Newspaper */
@keyframes emberRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-50px) translateX(15px) scale(0.75);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-120px) translateX(-12px) scale(0.15);
    opacity: 0;
  }
}

/* Atmospheric Red Radial Breathe */
@keyframes ambientBreathe {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Pulse Beacon */
@keyframes beaconPing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 42, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(225, 29, 42, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(225, 29, 42, 0);
  }
}

/* Case Study Drawer Slide In */
@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-flame-pulse {
  animation: flamePulse 3.5s ease-in-out infinite;
}

.animate-ambient-breathe {
  animation: ambientBreathe 6s ease-in-out infinite;
}

.animate-beacon-ping {
  animation: beaconPing 2s infinite;
}

/* Ambient Backdrop Glow Behind Hero Portrait */
.fire-glow-backdrop {
  background: radial-gradient(ellipse at 50% 60%, rgba(225, 29, 42, 0.45) 0%, rgba(255, 69, 0, 0.28) 40%, rgba(10, 10, 10, 0) 70%);
}

.hero-cutout-shadow {
  filter: drop-shadow(0 0 35px rgba(225, 29, 42, 0.45)) drop-shadow(0 20px 45px rgba(0, 0, 0, 0.95));
}

.ember {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  background: radial-gradient(circle, #FFE4B5 0%, #FF3A3A 65%, rgba(225, 29, 42, 0) 100%);
  animation: emberRise ease-out infinite;
}

/* Case Study Drawer Animation */
.drawer-content {
  animation: drawerSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth Backdrop Blur for Dialogs */
dialog::backdrop {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 0.3s ease-out;
}
