html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  background-color: #fff;
  font-family: sans-serif;
}
.background {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.5);
  transform: scale(1.1) translate3d(0, 0, 0);
  transition: background-image 1s ease, opacity 1.4s cubic-bezier(.62,0,.16,1), filter 1s;
  z-index: 1;
  will-change: transform, opacity;
  opacity: 0;
}
.background.active { opacity: 1; }
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-image {
  position: absolute;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  transition: opacity 1.2s cubic-bezier(.62,0,.16,1), transform 1.2s cubic-bezier(.62,0,.16,1), box-shadow 1s cubic-bezier(.42,0,.16,1);
  opacity: 0;
  transform: scale(1.05) perspective(1000px);
  z-index: 10;
  box-shadow: 0 0 70px 30px rgba(30,30,30,0.15), 0 2px 64px 8px rgba(0,0,0,0.07);
  filter: drop-shadow(0 0 18px rgba(0,0,0,0.08));
  border-radius: 12px;
  backdrop-filter: blur(0.5px);
}
.gallery-image.visible {
  opacity: 1;
  transform: scale(1) perspective(1000px);
}
.gallery-image.fade-out {
  opacity: 0;
  transform: scale(0.95) perspective(1000px);
}
.nav-area {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.nav-left {
  left: 0;
  justify-content: flex-start;
  padding-left: calc((50vw - 80vw / 2) / 2);
}
.nav-right {
  right: 0;
  justify-content: flex-end;
  padding-right: calc((50vw - 80vw / 2) / 2);
}
.arrow-art {
  width: 120px;
  height: 120px;
  opacity: 0.36;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(.62,0,.16,1), opacity 0.45s;
  filter: drop-shadow(0 0 24px rgba(0,0,0,0.15));
  pointer-events: none;
  user-select: none;
}
.nav-area:hover .arrow-art {
  transform: scale(1.17);
  opacity: 0.82;
  filter: drop-shadow(0 0 60px rgba(0,0,0,0.16));
}
.signature-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  z-index: 15;
  will-change: transform;
  transform-style: preserve-3d;
  cursor: pointer;
}
.signature-container img {
  width: 100%;
  height: auto;
  display: block;
}
/* --- INTRO --- */
.intro {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s cubic-bezier(.62,0,.16,1);
  opacity: 1;
  pointer-events: all;
}
.intro.hide {
  opacity: 0;
  pointer-events: none;
}
.intro-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: opacity;
  margin-bottom: 22px;
}
.intro-text {
  font-family: 'Gloria Hallelujah', cursive, sans-serif;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.1;
  opacity: 0;
  color: #222;
  filter: blur(0.5px);
  text-shadow: 0 2px 9px rgba(80,80,80,0.09), 0 4px 14px rgba(60,60,60,0.08);
  transform: scaleX(0);
  transition:
    opacity 0.8s cubic-bezier(.62,0,.16,1),
    transform 1.3s cubic-bezier(.86,0,.16,1);
  margin-bottom: 22px;
}
.intro-text.visible {
  opacity: 1;
  transform: scaleX(1);
}
.intro-underline {
  width: 0;
  height: 7px;
  margin: 0 auto;
  background: #222;
  border-radius: 4px;
  filter: blur(0.6px);
  box-shadow: 0 2px 12px 0 rgba(40,40,40,0.08);
  transition: width 1.25s cubic-bezier(.82,0,.14,1);
}
.intro-underline.visible {
  width: 90%;
  min-width: 120px;
  max-width: 640px;
}
.intro-signature {
  display: block;
  width: 120px;
  margin: 32px auto 0 auto;
  opacity: 0;
  filter: blur(12px) translateY(40px);
  transition: opacity 1s cubic-bezier(.62,0,.16,1), filter 1.1s cubic-bezier(.7,0,.25,1);
}
.intro-signature.visible {
  opacity: 1;
  filter: blur(0px) translateY(0px);
}
.site-logo {
  position: fixed;
  top: 26px;
  left: 36px;
  z-index: 30;
  font-family: 'Gloria Hallelujah', cursive, sans-serif;
  font-size: clamp(1.2rem, 2vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.85;
  user-select: none;
  pointer-events: none;
  filter: blur(0.18px);
  text-shadow: 0 2px 7px rgba(40,40,40,0.10);
  transition: opacity 1.4s cubic-bezier(.72,0,.22,1), filter 1.2s cubic-bezier(.55,0,.22,1);
  display: none;
  color: rgba(255,255,255,0.87);
  background: none !important;
}
.site-logo.visible {
  display: block;
  opacity: 0.88;
  filter: blur(0);
}
@media (max-width: 600px) {
  .intro-text { font-size: 2.1rem; }
  .intro-underline { height: 4px; }
  .signature-container { width: 70px; }
  .intro-signature { width: 70px; }
  .site-logo { left: 10px; top: 13px; font-size: 1.1rem; }
  .arrow-art { width: 74px; height: 74px; }
}
@media (max-width: 450px) {
  .site-logo { font-size: .95rem; }
  .intro-signature { width: 45px; }
}
