.opening-active { overflow: hidden; }

.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  overflow: hidden;
  background: #0c0908;
  place-items: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s linear;
}

.opening-photo {
  position: absolute;
  inset: -5%;
  background: url("assets/003_IMG_20260719_210054.jpg") center 38% / cover no-repeat;
  filter: blur(12px) saturate(0.7) brightness(0.34);
  opacity: 0.7;
  transform: scale(1.08);
  animation: opening-drift 4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.opening-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 166, 190, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(10, 7, 6, 0.18), rgba(10, 7, 6, 0.88));
}

.opening-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 3px 30px rgba(0, 0, 0, 0.5);
}

.opening-star {
  margin-bottom: 18px;
  color: var(--pink);
  font-size: 1.1rem;
  opacity: 0;
  animation: opening-soft-in 700ms 160ms ease forwards, spin-slow 8s linear infinite;
}

.opening-copy p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 2vw, 1.05rem);
  font-style: italic;
  letter-spacing: 0.12em;
  opacity: 0;
  animation: opening-soft-in 700ms 240ms ease forwards;
}

.opening-copy h1 {
  display: flex;
  gap: 0.02em;
  margin: 0;
  font-size: clamp(5.8rem, 20vw, 14rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.11em;
}

.opening-copy h1 span {
  opacity: 0;
  transform: translateY(24px);
  animation: opening-letter 850ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.opening-copy h1 span:nth-child(1) { animation-delay: 300ms; }
.opening-copy h1 span:nth-child(2) { animation-delay: 390ms; }
.opening-copy h1 span:nth-child(3) { animation-delay: 480ms; }

.opening-copy small {
  margin-top: 21px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  opacity: 0;
  animation: opening-soft-in 700ms 620ms ease forwards;
}

.opening-line {
  position: absolute;
  right: 10vw;
  bottom: 7vh;
  left: 10vw;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.opening-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--amber));
  transform: translateX(-100%);
  animation: opening-progress 2.6s 100ms cubic-bezier(0.3, 0, 0.25, 1) forwards;
}

.site-shell {
  opacity: 0;
  filter: blur(7px);
  transform: scale(0.99) translateY(8px);
  transition: opacity 1s ease, filter 1s ease, transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-revealed .site-shell { opacity: 1; filter: blur(0); transform: none; }
.opening-screen.leaving { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes opening-soft-in { to { opacity: 1; } }
@keyframes opening-letter { to { opacity: 1; transform: translateY(0); } }
@keyframes opening-progress { to { transform: translateX(0); } }
@keyframes opening-drift { to { transform: scale(1.01); } }

@media (max-width: 560px) {
  .opening-copy h1 { font-size: clamp(5rem, 33vw, 9rem); }
  .opening-line { right: 20px; left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .opening-screen { transition-duration: 180ms !important; }
  .opening-screen *, .opening-screen *::before, .opening-screen *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; }
}
