/* EnjoyBeauty Manus magazine — cinematic enhancement layer. */
:root {
  --eb-cinema-ease: cubic-bezier(.22, .72, .18, 1);
  --eb-cinema-gold: #c9a96e;
}

/* Pages 6–7: coherent perfume visual/editorial spread. */
#root [data-loc="client/src/pages/Home.tsx:563"] > [data-loc="client/src/pages/Home.tsx:564"] {
  width: 100%;
}
#root [data-loc="client/src/pages/Home.tsx:563"] > [data-loc="client/src/pages/Home.tsx:569"] {
  display: none;
}
#root [data-loc="enjoybeauty:parfum-page-7"] {
  box-shadow: inset 1px 0 rgba(201,169,110,.22);
}

#root .eb-cinematic-page {
  isolation: isolate;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}

#root .eb-cinematic-page img {
  will-change: transform, opacity, filter;
}

#root .eb-cinematic-page h1,
#root .eb-cinematic-page h2,
#root .eb-cinematic-page h3,
#root .eb-cinematic-page p,
#root .eb-cinematic-page blockquote,
#root .eb-cinematic-page form,
#root .eb-cinematic-page [data-eb-reveal] {
  animation: eb-copy-rise .9s var(--eb-cinema-ease) both;
  animation-delay: var(--eb-reveal-delay, .16s);
}

#root .eb-cinematic-page p:nth-of-type(2),
#root .eb-cinematic-page [data-eb-reveal="2"] { --eb-reveal-delay: .28s; }
#root .eb-cinematic-page p:nth-of-type(3),
#root .eb-cinematic-page [data-eb-reveal="3"] { --eb-reveal-delay: .40s; }
#root .eb-cinematic-page form { --eb-reveal-delay: .46s; }

#root .eb-scene-drift {
  animation: eb-page-drift .95s var(--eb-cinema-ease) both;
}
#root .eb-scene-drift img {
  animation: eb-image-drift 7s ease-out both;
}

#root .eb-scene-curtain {
  animation: eb-page-curtain 1s var(--eb-cinema-ease) both;
}
#root .eb-scene-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(100deg, #090909 0%, #16120c 48%, transparent 51%);
  transform-origin: right center;
  animation: eb-curtain-open 1.15s var(--eb-cinema-ease) forwards;
}

#root .eb-scene-focus {
  animation: eb-page-focus 1.05s var(--eb-cinema-ease) both;
}
#root .eb-scene-focus img {
  animation: eb-image-focus 1.4s var(--eb-cinema-ease) both;
}

#root .eb-scene-gallery {
  animation: eb-page-gallery .9s var(--eb-cinema-ease) both;
}
#root .eb-scene-gallery img:nth-of-type(odd) {
  animation: eb-gallery-left 1.15s var(--eb-cinema-ease) both;
}
#root .eb-scene-gallery img:nth-of-type(even) {
  animation: eb-gallery-right 1.15s var(--eb-cinema-ease) both;
}

#root .eb-scene-paper {
  animation: eb-page-paper 1.05s var(--eb-cinema-ease) both;
  transform-origin: left center;
}

#root .eb-scene-glow {
  animation: eb-page-glow 1.15s var(--eb-cinema-ease) both;
}
#root .eb-scene-glow::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 20;
  pointer-events: none;
  background: radial-gradient(circle at 35% 40%, rgba(201,169,110,.24), transparent 34%);
  animation: eb-light-sweep 2.1s ease-out both;
  mix-blend-mode: screen;
}

#root .eb-page-nav,
#root .eb-language-switcher,
#root .eb-sound-control {
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

#root .eb-sound-control.eb-music-playing {
  color: var(--eb-cinema-gold) !important;
  border-color: var(--eb-cinema-gold) !important;
  box-shadow: 0 0 24px rgba(201,169,110,.18);
}

@keyframes eb-copy-rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes eb-page-drift {
  from { opacity: 0; transform: scale(1.025) translate3d(1.2%, 0, 0); }
  to { opacity: 1; transform: scale(1) translate3d(0, 0, 0); }
}
@keyframes eb-image-drift {
  from { transform: scale(1.075) translate3d(-1.5%, 0, 0); }
  to { transform: scale(1.015) translate3d(1%, 0, 0); }
}
@keyframes eb-page-curtain {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes eb-curtain-open {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes eb-page-focus {
  from { opacity: 0; filter: blur(12px) saturate(.6); transform: scale(.985); }
  to { opacity: 1; filter: blur(0) saturate(1); transform: scale(1); }
}
@keyframes eb-image-focus {
  from { transform: scale(1.09); filter: blur(8px) grayscale(.45); }
  to { transform: scale(1.015); filter: blur(0) grayscale(0); }
}
@keyframes eb-page-gallery {
  from { opacity: 0; background: #080808; }
  to { opacity: 1; }
}
@keyframes eb-gallery-left {
  from { opacity: 0; transform: translateX(-5%) scale(1.04); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes eb-gallery-right {
  from { opacity: 0; transform: translateX(5%) scale(1.04); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes eb-page-paper {
  from { opacity: 0; transform: perspective(1500px) rotateY(-5deg) translateX(2%); filter: brightness(.72); }
  to { opacity: 1; transform: perspective(1500px) rotateY(0) translateX(0); filter: brightness(1); }
}
@keyframes eb-page-glow {
  from { opacity: 0; filter: brightness(.65); }
  to { opacity: 1; filter: brightness(1); }
}
@keyframes eb-light-sweep {
  0% { opacity: 0; transform: translate3d(-18%, 8%, 0) scale(.8); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(28%, -8%, 0) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  #root .eb-cinematic-page,
  #root .eb-cinematic-page *,
  #root .eb-cinematic-page::before,
  #root .eb-cinematic-page::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 720px) {
  #root .eb-cinematic-page h1,
  #root .eb-cinematic-page h2,
  #root .eb-cinematic-page h3,
  #root .eb-cinematic-page p { animation-duration: .68s; }
  #root .eb-scene-curtain::after { animation-duration: .82s; }
  #root [data-loc="enjoybeauty:parfum-page-7-content"] {
    justify-content: flex-start;
    padding: 72px 24px 96px;
  }
  #root [data-loc="enjoybeauty:parfum-page-7-content"] > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
