/* ---------- Tokens ---------- */
:root {
  --bg: #0d0714;
  --bg-panel: #160c24;
  --violet-1: #6a1fb0;
  --violet-2: #b02fd6;
  --violet-3: #8b2fe0;
  --gold: #d8a339;
  --text: #f3ecfb;
  --text-dim: #b8a8cf;
  --border: rgba(216, 163, 57, 0.25);
  --radius: 14px;
  --gap: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(139, 47, 224, 0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(216, 163, 57, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

/* ---------- Header ---------- */
.site-header {
  text-align: center;
  padding: 14px 20px 8px;
  overflow: hidden;
}

.brand-block {
  width: min(94vw, 620px);
  margin: 0 auto;
  text-align: center;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 0 22px rgba(176, 47, 214, 0.55));
  animation: logoGlow 3s ease-in-out infinite, riseIn 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(176, 47, 214, 0.45)); }
  50% { filter: drop-shadow(0 0 34px rgba(216, 163, 57, 0.6)); }
}

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

.tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  /* shifts the optical center left to sit under the wordmark itself,
     since the badge mark extends the logo image further right */
  padding-right: 8.3%;
  margin: 4px 0 0;
  animation: riseIn 0.9s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tagline-text {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 3.4vw, 1.65rem);
  color: #efe6f9;
  letter-spacing: 0.3px;
  text-align: center;
  text-shadow: 0 0 24px rgba(176, 47, 214, 0.35);
}

.tagline-rule {
  margin-top: 14px;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo, .tagline { animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding: 10px 20px 70px;
}

.hero-frame {
  position: relative;
  width: min(94vw, 480px);
  border-radius: 24px;
  box-shadow: 0 26px 64px rgba(107, 31, 176, 0.48);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
}

/* View Reviews button: big attractive side panel with rotating gradient border */
.view-btn {
  position: relative;
  padding: 3px;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  font-family: inherit;
  background: none;
  isolation: isolate;
  animation: riseIn 0.9s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.view-btn-border {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: conic-gradient(from 0deg, var(--gold), var(--violet-2), var(--violet-3), var(--gold));
  animation: rotateBorder 5s linear infinite;
  z-index: 0;
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

.view-btn-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 260px;
  height: 260px;
  border-radius: 32px;
  background: linear-gradient(180deg, #1c0f2c, #130a1f);
  overflow: hidden;
  transition: transform 0.25s ease;
}

.view-btn:hover .view-btn-inner { transform: scale(1.04); }

.view-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--violet-2), var(--violet-3));
  color: var(--gold);
  box-shadow: 0 0 22px rgba(216, 163, 57, 0.5);
  animation: iconPulse 2.4s ease-in-out infinite;
}

.view-btn-icon svg { width: 44px; height: 44px; }

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(216, 163, 57, 0.4); }
  50% { box-shadow: 0 0 30px rgba(216, 163, 57, 0.75); }
}

.view-btn-label {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.3px;
  text-align: center;
  background: linear-gradient(100deg, #f3ecfb, var(--gold) 60%, #f3ecfb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.view-btn-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  animation: shineSweep 3.6s ease-in-out infinite;
}

@keyframes shineSweep {
  0% { left: -60%; }
  35%, 100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .view-btn, .view-btn-border, .view-btn-icon, .view-btn-shine { animation: none; }
}

@media (max-width: 560px) {
  .hero { flex-direction: column; }
  .view-btn-inner { width: 200px; height: 200px; }
}

/* ---------- Gallery: masonry via CSS columns ---------- */
.gallery {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px 0;
  column-count: 4;
  column-gap: var(--gap);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease, padding 0.7s ease;
}

.gallery.revealed {
  max-height: 6000px;
  opacity: 1;
  padding: 10px 20px 60px;
}

@media (max-width: 1100px) { .gallery { column-count: 3; } }
@media (max-width: 760px)  { .gallery { column-count: 2; } }
@media (max-width: 480px)  { .gallery { column-count: 1; } }

.tile {
  margin: 0 0 var(--gap);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(139, 47, 224, 0.35);
  border-color: rgba(216, 163, 57, 0.55);
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 3, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  z-index: 50;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { color: var(--gold); }
