/* The atmosphere lives below the content and never intercepts a link or gesture. */
.fluid-atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.fluid-ready main { position: relative; z-index: 1; }
.fluid-ready .hero { background: transparent; }
.fluid-ready .hero-atmosphere { opacity: .48; }
.hero-liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .9;
  pointer-events: none;
}
.fluid-ready .hero.liquid-ready .hero-atmosphere { opacity: .18; }
.fluid-ready .research-section {
  background: linear-gradient(120deg, #171b24bb, #21191dbb);
}
.fluid-ready .contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0e101655;
}
.contact-section::before {
  content: '';
  position: absolute;
  width: min(1000px, 110vw);
  height: 500px;
  left: 50%;
  top: 10%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, #d7c7b515, #b096a20a 42%, transparent 70%);
  transform: translateX(-50%);
}
.fluid-ready .contact-section::before {
  animation: contact-tide 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.fluid-ready .contact-section.in-view::before { animation-play-state: running; }
.motion-paused .contact-section::before { animation-play-state: paused !important; }
@keyframes contact-tide {
  from { transform: translateX(-54%) scale(.9) rotate(-8deg); opacity: .55; }
  to { transform: translateX(-46%) scale(1.15) rotate(8deg); opacity: 1; }
}

/* A short cascade within each card, using the existing reveal observer. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready { transition-duration: 1s; transform: translateY(26px); }
  .reveal-ready.visible, .reveal-ready:focus-within { transform: none; }
  .project-copy > * {
    transition: opacity .7s var(--ease), transform .8s var(--ease);
  }
  .project-copy > :nth-child(2) { transition-delay: .06s; }
  .project-copy > :nth-child(3) { transition-delay: .12s; }
  .project-copy > :nth-child(4) { transition-delay: .18s; }
  .project-copy > :nth-child(n+5) { transition-delay: .24s; }
  .project-card.reveal-ready:not(.visible):not(:focus-within) .project-copy > * {
    opacity: 0;
    transform: translateY(16px);
  }
  .project-art { transition: opacity 1.1s .12s var(--ease); }
  .project-card.reveal-ready:not(.visible):not(:focus-within) .project-art { opacity: 0; }
}
@media (max-width: 700px) {
  .fluid-ready .hero-atmosphere { opacity: .65; }
  .fluid-ready .contact-section::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fluid-atmosphere, .hero-liquid { display: none; }
  .contact-section::before { animation: none !important; }
}
