/* ============================================================
   DJ SIK — Minimal Dark Luxury theme
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-alt: #121110;
  --bg-card: #161513;
  --line: #2a2723;
  --gold: #c9a227;
  --gold-soft: #b08d4a;
  --cream: #f5f1e8;
  --gray: #a8a49a;
  --gray-dim: #6b675f;
  --danger: #b5453a;
  --neon-green: #39ff14;
  --neon-green-hover: #2be60d;
  --radius: 2px;
  --maxw: 1180px;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

h2.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--cream);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head p {
  color: var(--gray);
  font-size: 0.98rem;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.gold { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--gold);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  font-family: var(--sans);
}
.btn:hover { background: var(--gold); color: #0a0a0b; }
.btn.btn-solid { background: var(--gold); color: #0a0a0b; }
.btn.btn-solid:hover { background: transparent; color: var(--cream); }
.btn.btn-small { padding: 10px 20px; font-size: 0.7rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn.btn-small.btn-ghost { border-color: var(--line); }
.btn.btn-small.btn-ghost:hover { border-color: var(--gold); background: transparent; color: var(--gold); }

/* ============================== GATE ============================== */
#gate {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  transition: opacity 1.1s ease, visibility 1.1s ease;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#gate.gate-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#gate video,
#gate .gate-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.gate-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,10,11,0.25) 0%, rgba(10,10,11,0.85) 75%),
    linear-gradient(180deg, rgba(10,10,11,0.6) 0%, rgba(10,10,11,0.35) 40%, rgba(10,10,11,0.9) 100%);
}
.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
}
.gate-content .logo-mark {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 12vw, 7rem);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  color: var(--cream);
}
.gate-content .logo-sub {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.55em;
  color: var(--gold-soft);
  margin-bottom: 56px;
  padding-left: 0.55em; /* optical centering for letter-spacing */
}
.enter-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--cream);
  padding: 18px 46px;
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.4s ease, color 0.4s ease, letter-spacing 0.4s ease;
}
.enter-btn:hover {
  background: var(--gold);
  color: #0a0a0b;
  letter-spacing: 0.45em;
}
.gate-age {
  margin-top: 26px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--gray-dim);
}
.gate-sound-hint {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gray-dim);
  z-index: 2;
}

/* ============================== SITE / NAV ============================== */
#site {
  opacity: 0;
  transition: opacity 0.9s ease 0.15s;
}
#site.site-visible { opacity: 1; }

header.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right)) 20px calc(32px + env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(10,10,11,0.92) 0%, rgba(10,10,11,0) 100%);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow .3s ease;
}
header.nav.scrolled {
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(10px);
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.14em;
  color: var(--cream);
}
.nav-logo span { color: var(--gold); }

nav.nav-links {
  display: flex;
  gap: 34px;
}
nav.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
nav.nav-links a:hover,
nav.nav-links a.active { color: var(--cream); border-color: var(--gold); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 210; /* stay above the fixed-position .nav-links panel when it's open */
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}

/* ============================== HERO / BANNER ============================== */
.hero {
  position: relative;
  height: 92vh;
  height: 92dvh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
  padding-top: env(safe-area-inset-top);
}
.hero video,
.hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.55) 55%, var(--bg) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 32px 72px;
}
.hero-inner .eyebrow { text-align: center; }
.hero-inner h1 {
  text-align: center;
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin-bottom: 22px;
}
.hottest-badge {
  display: flex; align-items: center; gap: 10px;
  width: fit-content; margin: 0 auto 30px;
  padding: 10px 20px;
  border: 1px solid var(--gold); border-radius: 999px;
  background: rgba(201,162,39,0.08);
  transition: background 0.25s ease, transform 0.2s ease;
}
.hottest-badge:hover { background: rgba(201,162,39,0.18); transform: translateY(-1px); }
.hottest-badge-tag {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
}
.hottest-badge-cta {
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--cream);
  border-left: 1px solid rgba(201,162,39,0.4); padding-left: 10px;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
}
.hero-links a {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.hero-links a:hover { color: var(--gold); border-color: var(--gold); }

/* ============================== SECTIONS ============================== */
section { padding: 110px 0; scroll-margin-top: 84px; }
section.alt { background: var(--bg-alt); }
section .divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 26px;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-portrait {
  aspect-ratio: 4/5;
  background: var(--bg-card) url('../assets/img/hero-poster.jpg') center/cover;
  border: 1px solid var(--line);
  position: relative;
}
.about-portrait::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(201,162,39,0.15);
}
.about-copy p { color: var(--gray); margin-bottom: 1.1em; }
.about-copy p.about-tagline {
  color: var(--gold); font-family: var(--serif); font-style: italic;
  font-size: 1.1rem; margin-top: 4px;
}
.stat-row {
  display: flex;
  gap: 48px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat-row .stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
}
.stat-row .stat span {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-dim);
}

/* Events / Gallery */
.events-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.events-tabs button {
  background: none;
  border: 1px solid var(--line);
  color: var(--gray);
  padding: 12px 22px;
  min-height: 44px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}
.events-tabs button.active,
.events-tabs button:hover { border-color: var(--gold); color: var(--cream); }

.event-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.event-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--bg);
  padding: 22px 20px;
  transition: background 0.25s ease;
}
section.alt .event-row { background: var(--bg-alt); }
.event-row:hover { background: var(--bg-card); }
.event-date-block {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.event-date-block .d { font-family: var(--serif); font-size: 1.7rem; color: var(--gold); line-height: 1; }
.event-date-block .m { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--gray-dim); text-transform: uppercase; }
.event-info .title { font-size: 1.08rem; margin-bottom: 4px; }
.event-info .meta { font-size: 0.8rem; color: var(--gray); }
.event-tag {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  white-space: nowrap;
}
.event-tag.past { border-color: var(--gray-dim); color: var(--gray-dim); }
.empty-note { text-align: center; color: var(--gray-dim); padding: 40px 0; font-size: 0.9rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 56px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-caption,
.gallery-item.tapped .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; }

/* Devices without real hover (touch) get a permanently-legible caption
   instead of relying on a hover state they can't produce. */
@media (hover: none) {
  .gallery-caption { opacity: 1; background: linear-gradient(0deg, rgba(0,0,0,0.82), rgba(0,0,0,0.1)); }
}

/* Calendar */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}
.cal-nav { display: flex; align-items: center; gap: 18px; }
.cal-nav button {
  background: none; border: 1px solid var(--line); color: var(--cream);
  width: 44px; height: 44px; cursor: pointer; font-size: 1rem;
  transition: border-color .25s ease, color .25s ease;
}
.cal-nav button:hover { border-color: var(--gold); color: var(--gold); }
.cal-nav .cal-label { font-family: var(--serif); font-size: 1.3rem; min-width: 190px; text-align: center; }
.cal-views { display: flex; gap: 8px; }
.cal-views button {
  background: none; border: 1px solid var(--line); color: var(--gray);
  padding: 12px 18px; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  min-height: 44px;
  transition: all .25s ease;
}
.cal-views button.active, .cal-views button:hover { border-color: var(--gold); color: var(--cream); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cal-weekday {
  background: var(--bg-alt); text-align: center; padding: 10px 0;
  font-size: 0.65rem; letter-spacing: 0.14em; color: var(--gray-dim); text-transform: uppercase;
}
.cal-day {
  background: var(--bg); min-height: 96px; padding: 8px;
  position: relative; cursor: default;
  transition: background 0.2s ease;
}
.cal-day.empty { background: var(--bg-alt); opacity: 0.4; }
.cal-day .num { font-size: 0.85rem; color: var(--gray); }
.cal-day.today .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; color: #0a0a0b; background: var(--gold);
}
.cal-day.has-event { cursor: pointer; }
.cal-day.has-event:hover { background: var(--bg-card); }
.cal-day.has-event:hover .cal-day-thumb img { transform: scale(1.06); }
.cal-day .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  position: absolute; bottom: 10px; left: 8px;
}
.cal-day-thumb {
  margin-top: 6px; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-card);
}
.cal-day-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.25s ease;
}
.cal-day .ev-mini {
  margin-top: 6px; font-size: 0.66rem; color: var(--gold-soft);
  line-height: 1.35; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.cal-week-list, .cal-day-list { display: flex; flex-direction: column; gap: 10px; }
.cal-week-day {
  display: grid; grid-template-columns: 130px 1fr; gap: 20px;
  border: 1px solid var(--line); padding: 16px 20px; align-items: center;
}
.cal-week-day.has-event { cursor: pointer; }
.cal-week-day.has-event:hover { background: var(--bg-card); }
.cal-week-day .wd-label b { font-family: var(--serif); font-size: 1.2rem; display:block; }
.cal-week-day .wd-label span { font-size: 0.68rem; color: var(--gray-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.cal-week-empty { color: var(--gray-dim); font-size: 0.85rem; }

/* Modal (flyer / event detail) */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,6,7,0.86);
  display: flex; align-items: center; justify-content: center;
  z-index: 400; padding: 24px; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal-card {
  background: var(--bg-alt); border: 1px solid var(--line);
  max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(16px); transition: transform 0.3s ease;
}
.modal-backdrop.open .modal-card { transform: translateY(0); }
.modal-flyer { background: var(--bg-card); }
.modal-flyer img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 40px 36px; position: relative; }
.modal-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--gray);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--gold); }
.modal-body h3 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-meta { color: var(--gray); font-size: 0.88rem; margin-bottom: 4px; }
.modal-meta.gold { color: var(--gold); }
.modal-desc { color: var(--gray); margin: 18px 0 26px; font-size: 0.92rem; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .modal-card { grid-template-columns: 1fr; }
  .modal-flyer { aspect-ratio: 4/3; }
}

/* Gallery lightbox */
.lightbox-backdrop {
  background: rgba(4,4,5,0.96);
  flex-direction: column;
  z-index: 450;
}
.lightbox-stage {
  position: relative;
  max-width: 92vw;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-stage img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--bg-card);
}
.lightbox-caption {
  margin-top: 14px;
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-align: center;
  max-width: 640px;
}
.lightbox-counter {
  margin-top: 6px;
  color: var(--gray-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}
.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(20,20,19,0.6);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  cursor: pointer;
  box-shadow: 0 0 0 rgba(57,255,20,0);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(57,255,20,0.14);
  box-shadow: 0 0 14px rgba(57,255,20,0.4);
  transform: scale(1.06);
}
.lightbox-close {
  top: 20px; right: 24px;
  width: 60px; height: 60px;
  font-size: 1.9rem; line-height: 1;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 76px; height: 76px;
  font-size: 2.6rem;
  line-height: 1;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 640px) {
  .lightbox-close { top: 12px; right: 12px; width: 52px; height: 52px; font-size: 1.6rem; }
  .lightbox-nav { width: 60px; height: 60px; font-size: 2.1rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* Contact / Registration */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-card {
  border: 1px solid var(--line);
  padding: 40px;
  background: var(--bg-alt);
}
section.alt .contact-card { background: var(--bg); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-card .sub { color: var(--gray); font-size: 0.86rem; margin-bottom: 28px; }

.field { margin-bottom: 20px; }
.field label {
  display: block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-dim); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--cream);
  padding: 13px 14px; font-family: var(--sans);
  /* 16px minimum stops iOS Safari auto-zooming the page on focus */
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gray) 50%), linear-gradient(135deg, var(--gray) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.checkbox-row input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.checkbox-row label { cursor: pointer; padding: 4px 0; }
.checkbox-row label { font-size: 0.78rem; color: var(--gray); text-transform: none; letter-spacing: 0; }
.form-note { font-size: 0.72rem; color: var(--gray-dim); margin-top: 14px; }
.form-success {
  display: none; margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--gold-soft); color: var(--gold); font-size: 0.82rem;
}
.form-success.show { display: block; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 46px 0 60px;
  text-align: center;
}
footer .foot-logo { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.14em; margin-bottom: 14px; }
footer .foot-logo span { color: var(--gold); }
.social-row { display: flex; justify-content: center; gap: 22px; margin: 18px 0 26px; }
.social-row a {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray);
  border-bottom: 1px solid transparent;
}
.social-row a:hover { color: var(--gold); border-color: var(--gold); }
footer .fine { font-size: 0.68rem; color: var(--gray-dim); }

.back-to-top {
  position: fixed;
  right: calc(26px + env(safe-area-inset-right));
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 150;
  width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(10,10,11,0.85);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s ease, border-color .25s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--gold); }

.music-toggle {
  position: fixed;
  left: calc(26px + env(safe-area-inset-left));
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 150;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(10,10,11,0.85);
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .25s ease, background .25s ease;
}
.music-toggle svg { display: block; }
.music-toggle svg[hidden] { display: none; }
.music-toggle:hover { border-color: var(--gold); }
.music-toggle.playing {
  border-color: var(--gold); background: rgba(201,162,39,0.16);
  animation: music-pulse 1.6s ease-in-out infinite;
}
@keyframes music-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,0.35); }
  50% { box-shadow: 0 0 0 6px rgba(201,162,39,0); }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  nav.nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: 76vw; max-width: 320px;
    background: rgba(10,10,10,0.98); flex-direction: column; align-items: flex-start;
    padding: calc(100px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right)) 28px 32px;
    gap: 8px; transform: translateX(100%); transition: transform 0.35s ease;
    overflow-y: auto;
  }
  nav.nav-links.open { transform: translateX(0); }
  nav.nav-links a {
    padding: 12px 0;
    font-size: 0.85rem;
    width: 100%;
  }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 70px 1fr; }
  .event-tag { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .event-date-block { padding-right: 12px; }
  section { padding: 76px 0; }

  .cal-toolbar { justify-content: center; text-align: center; }
  .cal-nav { width: 100%; justify-content: center; }
  .cal-views { width: 100%; justify-content: center; }
  .cal-day { min-height: 64px; padding: 6px 4px; }
  .cal-day .num { font-size: 0.72rem; }
  .cal-day .dot { display: none; } /* thumbnail already signals an event at this width */
  .cal-day-thumb { margin-top: 4px; aspect-ratio: 1 / 1; }
  .cal-day .ev-mini { display: none; } /* thumb is enough at this width — flyer/detail is one tap away */
  .cal-weekday { font-size: 0.56rem; padding: 8px 0; }
  .modal-close { top: 4px; right: 4px; }
}

/* Small phones: tighten a little further and give calendar weekdays
   single-letter labels so 7 columns don't get cramped. */
@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .hero-links { gap: 24px 28px; }
  .cal-weekday { font-size: 0; }
  .cal-weekday::first-letter { font-size: 0.6rem; }
  .hottest-badge { flex-wrap: wrap; justify-content: center; padding: 10px 16px; row-gap: 4px; }
  .hottest-badge-cta { border-left: none; padding-left: 0; }
}

/* ============================== BRAND WATERMARK ============================== */
section:not(.hero) { position: relative; }
section:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/img/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(46vw, 480px);
  opacity: 0.05;
  pointer-events: none;
}
footer {
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/img/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(46vw, 480px);
  opacity: 0.05;
  pointer-events: none;
}
footer > * { position: relative; z-index: 1; }

/* ============================== REAL LOGO IMAGE (replaces text wordmark) ============================== */
.gate-content .logo-mark-img {
  display: block;
  width: clamp(190px, 32vw, 340px);
  height: auto;
  margin: 0 auto 4px;
}
.nav-logo-img {
  display: block;
  height: 36px;
  width: auto;
  transition: height 0.3s ease;
}
header.nav.scrolled .nav-logo-img { height: 30px; }
footer .foot-logo-img {
  display: block;
  height: 52px;
  width: auto;
  margin: 0 auto 14px;
}

/* ============================== DJ BOOTH ============================== */
.nav-booth-link {
  margin-left: 6px;
  padding-left: 24px !important;
  border-left: 1px solid var(--line);
  opacity: 0.75;
}
.nav-booth-link:hover { opacity: 1; }

.booth-login {
  max-width: 380px;
  margin: 0 auto;
}
.booth-login form {
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 36px;
}
.booth-error {
  display: none;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  color: #e0968c;
  font-size: 0.82rem;
}
.booth-error.show { display: block; }
.booth-security-note {
  max-width: 380px;
  margin: 20px auto 0;
  text-align: center;
}
.booth-security-note code {
  color: var(--gold-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.booth-dashboard { max-width: 900px; margin: 0 auto; }
.booth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.booth-welcome { font-family: var(--serif); font-size: 1.3rem; }
.booth-welcome span { color: var(--gold); }

.booth-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.booth-panel-head p { color: var(--gray); font-size: 0.9rem; max-width: 520px; margin: 0; }
.booth-panel-head .btn { flex: none; }

.booth-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); }
.booth-event-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  padding: 18px 20px;
}
.booth-event-row .event-info .title { font-size: 1rem; margin-bottom: 4px; }
.booth-event-row .event-info .meta { font-size: 0.78rem; color: var(--gray); }

.booth-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.booth-gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
}
.booth-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.booth-gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 0.68rem;
  color: var(--cream);
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}
.booth-gallery-remove {
  position: absolute; top: 6px; right: 6px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,11,0.75); border: 1px solid var(--line); color: var(--cream);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.booth-gallery-remove:hover { border-color: var(--danger); color: #e0968c; }

.booth-form-card { grid-template-columns: 1fr; max-width: 640px; }
.booth-form-card .modal-body { padding: 40px 36px; }
.booth-file-preview { margin-top: 10px; }
.booth-file-preview img {
  max-width: 100%; max-height: 220px;
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--bg);
}
.booth-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; flex-wrap: wrap; }

.booth-export-copy { max-width: 620px; margin-bottom: 24px; }
.booth-export-copy p { color: var(--gray); font-size: 0.92rem; }
.booth-export-list {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
  border-left: 2px solid var(--gold-soft);
}
.booth-export-list li {
  padding: 8px 0 8px 16px;
  color: var(--cream);
  font-size: 0.86rem;
}
.booth-export-list code {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.booth-export-status {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--gold-soft);
  min-height: 1.2em;
}

@media (max-width: 720px) {
  .nav-booth-link { margin-left: 0; padding-left: 0 !important; border-left: none; border-top: 1px solid var(--line); padding-top: 16px !important; margin-top: 8px; }
  .booth-event-row { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 14px; }
  .booth-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .booth-panel-head { flex-direction: column; }
}
