:root {
  --bg-dark: #0b0b0c;
  --text: #f7f7f5;
  --muted: #d7d7d2;
  --accent: #d19c7c;
  --overlay: rgba(8,8,10,0.45);
  --maxw: 1100px;
  --footer-h: 84px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  background: var(--bg-dark);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image: url('./backplate.jpg');
  background-position: center;
  background-size: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.55) 100%);
  z-index: -1;
}

.container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem calc(var(--footer-h) + 1rem);
  transform: translateY(-40px);
}

.card {
  width: min(100%, var(--maxw));
  padding: clamp(1.25rem, 2vw, 2rem);
  background: transparent;
  border: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(-5px); }
}

.brandmark, h1, .tagline {
  opacity: 0;
  transform: translateY(20px);
  animation-fill-mode: forwards;
}

.brandmark { animation: fadeUp 0.8s ease 0s forwards, glowPulse 3s ease-in-out 2.2s infinite alternate; }
h1 { animation: fadeUp 0.8s ease 0.6s forwards; }
.tagline { animation: fadeUp 0.8s ease 1.2s forwards; }

.brandmark {
  width: clamp(72px, 10vw, 110px);
  margin: 0 auto 1rem;
  opacity: 0.95;
  filter: drop-shadow(0 0 18px rgba(209,156,124,0.45));
}

@keyframes glowPulse {
  from { filter: drop-shadow(0 0 18px rgba(209,156,124,0.45)); }
  to { filter: drop-shadow(0 0 28px rgba(209,156,124,0.7)); }
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 3rem);
  letter-spacing: 0.02em;
  margin: 0.25rem 0 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.tagline {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin: 0 auto 1.25rem;
  max-width: 42ch;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.divider {
  width: 240px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 1.25rem auto 1.5rem;
  border: 0;
}

/* ===== GALLERY ===== */
.fadeUp { opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s ease 1.4s forwards; }

.gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.75rem;
}

.gallery-btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--accent);
  border-radius: 40px;
  padding: 0.6rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 0 12px rgba(209,156,124,0.25);
  text-shadow: 0 0 8px rgba(209,156,124,0.65);
}

.gallery-btn:hover {
  box-shadow: 0 0 18px rgba(209,156,124,0.45);
  transform: translateY(-2px);
}

/* === AUTO-WRAP GRID === */
.gallery-grid {
  display: none;
  opacity: 0;
  margin-top: 2.5rem;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;              /* enables wrapping */
  max-width: 100%;
  transition: opacity 1.2s ease;
}

.gallery-item {
  position: relative;
  width: clamp(120px, 22vw, 160px);
  height: clamp(120px, 22vw, 160px);
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 14px rgba(209,156,124,0.3);
  backdrop-filter: blur(4px);
  opacity: 0.5;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease;
  transform-origin: center center;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(209,156,124,0.45);
}

.gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 20, 20, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 5;
}

.gallery-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === RESPONSIVE BEHAVIOR === */
@media (max-width: 900px) {
  .gallery-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    gap: 1rem;
    justify-content: center;
    padding: 0 1rem;
  }

  .gallery-item {
    width: clamp(100px, 40vw, 140px);
    height: clamp(100px, 40vw, 140px);
  }
}

@media (max-width: 400px) {
  .gallery-item {
    width: clamp(90px, 45vw, 120px);
    height: clamp(90px, 45vw, 120px);
  }
}

.back-btn {
  margin-top: 1.25rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  color: #ffffff;
  border: 1.2px solid var(--accent);
  border-radius: 40px;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(209,156,124,0.18);
  text-shadow: 0 0 5px rgba(209,156,124,0.45);
  transition: opacity 0.4s ease, transform 0.4s ease !important;
}

.back-btn.visible { opacity: 1; transform: translateY(0); }
.back-btn.fade-up { opacity: 0; transform: translateY(-12px); }

/* ===== SOCIAL & FOOTER (LOCKED UNDER GO BACK) ===== */
.social-icons-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  width: 100%;
}

.social-icons {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 10;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.65, 0, 0.35, 1);
}

.social-icons.hidden {
  opacity: 0;
  pointer-events: none;
}

.social-icons a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 30px;
  height: 30px;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover .icon {
  transform: scale(1.2);
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

/* Copyright stays fixed */
.copyright {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.3px;
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: none;
  z-index: 5;
}



/* === New Animation from BETA merge === */
.fadeInRise {
  animation: fadeInRise 0.8s ease-in-out forwards;
}

@keyframes fadeInRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* (Optional) smooth fade-out class, if not already defined */
.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
