/* =========================================================
   Clouds & Coffees — Animations & atmospheric graphics
   ========================================================= */

@keyframes smokeDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-2%, 3%, 0) scale(1.06);
  }
}

@keyframes cloudFloat {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0.08;
  }
  50% {
    opacity: 0.14;
  }
  100% {
    transform: translate3d(4%, -3%, 0);
    opacity: 0.08;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  15% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(-100vh) scale(0.4);
    opacity: 0;
  }
}

@keyframes orbDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-30px, 40px);
  }
}

@keyframes lightRay {
  0%,
  100% {
    opacity: 0.04;
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    opacity: 0.09;
    transform: rotate(-6deg) translateY(-12px);
  }
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-2%, 2%);
  }
}

@keyframes productFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Scroll reveal — text/content only; media stays visible */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal="left"] {
  transform: translateX(-36px);
}

[data-reveal="right"] {
  transform: translateX(36px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Never hide photos / tiles behind reveal */
.split-media[data-reveal],
.visual-mosaic .tile[data-reveal],
.visual-card[data-reveal],
.contact-info-card[data-reveal],
.menu-hero-visual .shot[data-reveal] {
  opacity: 1;
  transform: none;
}


.section-header {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-header.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance */
.hero-copy h1,
.hero-accent,
.hero-lead,
.hero-ctas,
.hero-trust,
.hero-visual {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-ready .hero-copy h1 {
  opacity: 1;
  transform: none;
  transition-delay: 0.15s;
}

.hero.is-ready .hero-accent {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}

.hero.is-ready .hero-lead {
  opacity: 1;
  transform: none;
  transition-delay: 0.45s;
}

.hero.is-ready .hero-ctas {
  opacity: 1;
  transform: none;
  transition-delay: 0.55s;
}

.hero.is-ready .hero-visual {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.hero.is-ready .hero-trust {
  opacity: 1;
  transform: none;
  transition-delay: 0.7s;
}

.hero.is-ready .hero-visual img {
  animation: productFloat 5.5s ease-in-out infinite;
  animation-delay: 1.2s;
}

/* Atmosphere layers */
.hero-atmosphere .smoke {
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 240, 232, 0.12), transparent 70%);
  filter: blur(40px);
  animation: smokeDrift 18s ease-in-out infinite alternate;
}

.hero-atmosphere .smoke-1 {
  top: 10%;
  left: 35%;
}

.hero-atmosphere .smoke-2 {
  bottom: 5%;
  right: 10%;
  width: 40%;
  height: 40%;
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.hero-atmosphere .cloud {
  position: absolute;
  width: 280px;
  height: 120px;
  border: 1px solid rgba(200, 149, 85, 0.12);
  border-radius: 50%;
  animation: cloudFloat 20s ease-in-out infinite alternate;
}

.hero-atmosphere .cloud-1 {
  top: 18%;
  right: 22%;
}

.hero-atmosphere .cloud-2 {
  bottom: 22%;
  left: 12%;
  width: 200px;
  animation-duration: 26s;
}

.hero-atmosphere .ray {
  position: absolute;
  top: -10%;
  right: 18%;
  width: 2px;
  height: 70%;
  background: linear-gradient(180deg, rgba(200, 149, 85, 0.25), transparent);
  animation: lightRay 10s ease-in-out infinite;
}

.hero-atmosphere .halo {
  position: absolute;
  width: 320px;
  height: 320px;
  right: 8%;
  top: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 149, 85, 0.12), transparent 65%);
  animation: ringPulse 8s ease-in-out infinite;
}

.hero-atmosphere .grain {
  position: absolute;
  inset: -10%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 4s steps(2) infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.55);
  animation: particleFloat linear infinite;
}

.bg-anim {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.page-section.has-atmosphere > .container {
  position: relative;
  z-index: 1;
}


.bg-anim .orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 149, 85, 0.14), transparent 70%);
  animation: orbDrift 14s ease-in-out infinite alternate;
}

.bg-anim .orb-1 {
  top: -40px;
  left: 10%;
}

.bg-anim .orb-2 {
  bottom: -60px;
  right: 8%;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.bean-silhouette {
  position: absolute;
  width: 48px;
  height: 72px;
  border: 1px solid rgba(200, 149, 85, 0.08);
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  opacity: 0.35;
  animation: productFloat 9s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal],
  .section-header,
  .hero-copy h1,
  .hero-accent,
  .hero-lead,
  .hero-ctas,
  .hero-trust,
  .hero-visual,
  .hero-bg img {
    opacity: 1 !important;
    transform: none !important;
  }
}
