:root {
  --bg: #0c0b10;
  --bg-soft: #141219;
  --ink: #f4efe7;
  --muted: #b7ad9d;
  --gold: #c9a558;
  --gold-soft: #e3c989;
  --line: rgba(201, 165, 88, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The HTML `hidden` attribute must always win over class display rules
   (e.g. .gate { display:grid }), otherwise hiding the gate does nothing. */
[hidden] { display: none !important; }

/* Hidden YouTube audio player (kept in DOM, off-screen, not display:none so it can play) */
.yt-hidden { position: fixed; width: 1px; height: 1px; left: -9999px; top: -9999px; overflow: hidden; opacity: 0; pointer-events: none; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

/* ===================== Password gate ===================== */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201,165,88,0.15), transparent 60%),
    var(--bg);
}
.gate-card {
  width: min(420px, 100%);
  text-align: center;
  padding: 48px 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.gate-mono {
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.gate-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 42px;
  line-height: 1.05;
  margin-bottom: 10px;
}
.gate-sub { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.3);
  color: var(--ink);
  font-size: 16px;
  text-align: center;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color .2s;
}
.gate-form input:focus { border-color: var(--gold); }
.gate-form button {
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a2110;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform .12s, filter .2s;
}
.gate-form button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.gate-error { color: #e89c9c; font-size: 14px; margin-top: 16px; }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Blurred fill of the same photo behind, so the edges aren't flat black */
.hero-photo::before {
  content: "";
  position: absolute; inset: -40px;
  background: url("assets/front-tuxedo.jpg") center / cover no-repeat;
  filter: blur(36px) brightness(0.5) saturate(1.05);
  transform: scale(1.1);
  z-index: 0;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;        /* show the whole photo (zoomed out, uncropped) */
  object-position: center top;
  filter: saturate(1.02) contrast(1.02);
}
.hero-fade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,11,16,0.45) 0%, rgba(12,11,16,0.05) 35%, rgba(12,11,16,0.75) 80%, var(--bg) 100%);
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: 0 24px 9vh;
  max-width: 820px;
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 18px;
}
.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(40px, 8vw, 86px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.55);
}
.hero-sub {
  margin: 20px auto 0;
  max-width: 560px;
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 400;
  color: #eadfce;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero-cta {
  display: inline-block;
  margin-top: 34px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: color .2s, border-color .2s;
}
.hero-cta:hover { color: var(--gold-soft); }

/* ===================== Collage ===================== */
.collage-section { padding: clamp(60px, 10vw, 120px) clamp(16px, 5vw, 64px); }
.section-head { text-align: center; margin-bottom: 54px; }
.section-eyebrow {
  font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(30px, 5vw, 52px);
}
.collage {
  columns: 4;
  column-gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.collage figure {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease;
}
.collage figure.in { opacity: 1; transform: none; }
.collage figure:hover { box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.collage img {
  width: 100%;
  height: auto;          /* preserve each photo's original aspect ratio */
  display: block;
  transition: transform .5s ease;
}
.collage figure:hover img { transform: scale(1.04); }

@media (max-width: 1100px) { .collage { columns: 3; } }
@media (max-width: 720px) { .collage { columns: 2; column-gap: 10px; } .collage figure { margin-bottom: 10px; } }

/* ===================== Footer ===================== */
.footer {
  text-align: center;
  padding: 90px 24px 110px;
  border-top: 1px solid var(--line);
}
.footer-line { color: var(--muted); font-size: 16px; }
.footer-sign {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 30px;
  color: var(--gold-soft);
  margin-top: 8px;
}

/* ===================== Music player ===================== */
.music {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 18, 25, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
}
.music-btn {
  width: 42px; height: 42px;
  border: none; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a2110;
  font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: filter .2s;
}
.music-btn:hover { filter: brightness(1.08); }
.music-label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding-right: 6px; }
.music-eq { display: none; gap: 3px; align-items: flex-end; height: 14px; }
.music.playing .music-eq { display: inline-flex; }
.music-eq i {
  width: 3px; height: 100%;
  background: var(--gold-soft);
  animation: eq 0.9s ease-in-out infinite;
  transform-origin: bottom;
}
.music-eq i:nth-child(2) { animation-delay: .25s; }
.music-eq i:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%,100%{ transform: scaleY(0.3); } 50%{ transform: scaleY(1); } }

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: rgba(6,5,9,0.94);
  backdrop-filter: blur(4px);
}
.lb-img {
  max-width: 90vw; max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}
.lb-close, .lb-nav {
  position: absolute;
  background: none; border: none; color: var(--ink);
  cursor: pointer; opacity: 0.8; transition: opacity .2s;
}
.lb-close { top: 22px; right: 28px; font-size: 40px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 56px; padding: 0 18px; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
@media (max-width: 720px) { .lb-nav { font-size: 40px; } }
