/* Opening title lives outside Framer's hydrated page. */
.elgendy-intro {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  padding: clamp(24px, 3.125vw, 64px);
  background: #fff;
  color: #111;
  pointer-events: none;
  animation: intro-curtain 950ms cubic-bezier(.22, 1, .36, 1) 2200ms forwards;
}
.elgendy-intro h1 {
  margin: 0;
  font-family: "Open Sans", "Open Sans Placeholder", sans-serif;
  font-size: clamp(34px, 5.3vw, 96px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.055em;
}
.elgendy-intro span {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  animation: intro-title 900ms cubic-bezier(.22, 1, .36, 1) 150ms forwards;
}
.elgendy-intro span + span { animation-delay: 350ms; }
/* Both animations share the same clock: content begins moving as the
   white curtain dissolves. Clear transforms afterwards for fixed descendants. */
.elgendy-intro ~ #main {
  animation: intro-content 1200ms cubic-bezier(.22, 1, .36, 1) 2350ms both;
}
.elgendy-intro h1 {
  animation: intro-title-exit 750ms cubic-bezier(.4, 0, .2, 1) 2050ms forwards;
}
@keyframes intro-content {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-title-exit {
  to { opacity: 0; transform: translateY(-18px); }
}
@keyframes intro-title {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes intro-curtain {
  to { opacity: 0; visibility: hidden; }
}
@media (max-width: 600px) {
  .elgendy-intro h1 { font-size: clamp(24px, 7.2vw, 43px); }
}
@media (prefers-reduced-motion: reduce) {
  .elgendy-intro { animation: intro-curtain 1ms linear 800ms forwards; }
  .elgendy-intro ~ #main, .elgendy-intro h1 { animation: none; }
  .elgendy-intro span { animation: none; opacity: 1; transform: none; filter: none; }
}
