/* ============================================================
   FRENS WITH BENEFITS — dark & luxe nightlife
   ============================================================ */

:root {
  --black:      #0a0a0a;
  --black-2:    #111111;
  --black-3:    #181818;
  --ink:        #efebe4;
  --muted:      #9a958c;
  --gold:       #c9a24b;
  --gold-soft:  #e4c878;
  --gold-glow:  rgba(201, 162, 75, 0.35);
  --line:       rgba(255, 255, 255, 0.08);
  --maxw:       1180px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Shared section bits ---------- */
.section__eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--lg { padding: 1.15rem 2.8rem; font-size: 0.88rem; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1304;
  box-shadow: 0 0 0 rgba(201, 162, 75, 0);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px -8px var(--gold-glow);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-2px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  border-bottom-color: var(--line);
}

.nav__brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.nav__brand span { color: var(--gold); margin: 0 0.15em; }

.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  color: var(--gold-soft) !important;
  border: 1px solid rgba(201, 162, 75, 0.4);
  padding: 0.55rem 1.2rem;
  border-radius: 2px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav__cta:hover { background: var(--gold); color: #1a1304 !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  /* graceful fallback if no video file is present yet */
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(201, 162, 75, 0.16), transparent 55%),
    radial-gradient(120% 90% at 20% 90%, rgba(201, 162, 75, 0.10), transparent 50%),
    linear-gradient(160deg, #1a1a1a, #060606 70%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.25) 35%, rgba(10,10,10,0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 1.4rem;
  max-width: 900px;
}
.hero__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: rise 1s var(--ease) 0.2s forwards;
}
.hero__title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-shadow: 0 0 60px rgba(0,0,0,0.6);
  opacity: 0;
  animation: rise 1s var(--ease) 0.35s forwards;
}
.hero__slogan {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--ink);
  margin: 1.6rem auto 2.6rem;
  max-width: 520px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.5s forwards;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease) 0.65s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 7px;
  background: var(--gold-soft);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--gold);
  color: #1a1304;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scrollX 40s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1.4rem;
  flex-shrink: 0;
  /* Never narrower than the screen, so the gold bar is always full of text
     even on ultrawide desktops; extra space is distributed between phrases.
     Uses vw (not %) so it resolves against the track's max-content width. */
  min-width: 100vw;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.22em;
}
/* Two identical groups; -50% shifts exactly one group → seamless loop.
   Each group repeats the phrases enough to exceed any desktop width. */
@keyframes scrollX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 3rem);
  background: linear-gradient(180deg, var(--black) 0%, var(--black-2) 100%);
}
.about__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.about__lead {
  max-width: 620px;
  margin: 0 auto 4rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: left;
}
.about__card {
  background: var(--black-3);
  border: 1px solid var(--line);
  padding: 2.4rem 2rem;
  border-radius: 4px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.about__card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,0.4); }
.about__num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}
.about__card h3 {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}
.about__card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   EVENTS
   ============================================================ */
.events {
  padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 3rem);
  background: var(--black-2);
}
.events__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.events__lead { max-width: 560px; margin: 0 auto 3rem; color: var(--muted); }

.events__embed {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--black-3);
  min-height: 520px;
}
.events__embed iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 640px;
  border: 0;
  background: transparent;
}
/* fallback sits behind the iframe; if iframe is blocked it shows through */
.events__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(201,162,75,0.10), transparent 60%),
    var(--black-3);
}
.events__cta { margin-top: 2.4rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 5vw, 3rem);
  background: linear-gradient(180deg, var(--black-2) 0%, var(--black) 100%);
}
.gallery__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.gallery__lead { color: var(--muted); margin: 0 auto 3rem; max-width: 560px; }
.gallery__lead code {
  font-family: ui-monospace, monospace;
  color: var(--gold-soft);
  font-size: 0.85em;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, #141414, #141414 12px, #181818 12px, #181818 24px);
  border: 1px solid var(--line);
}
.gallery__item::after {
  /* shown only while image is empty/broken */
  content: "FWB";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: rgba(201,162,75,0.35);
  pointer-events: none;
}
.gallery__item img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.gallery__item img:hover { transform: scale(1.06); }
.gallery__item img[data-broken] { opacity: 0; } /* reveal placeholder */
.gallery__cta { margin-top: 2.6rem; }

/* ============================================================
   JOIN / FINAL CTA
   ============================================================ */
.join {
  position: relative;
  padding: clamp(6rem, 13vw, 10rem) clamp(1.2rem, 5vw, 3rem);
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(201,162,75,0.12), transparent 60%),
    var(--black);
  border-top: 1px solid var(--line);
}
.join__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 1rem;
}
.join__sub { color: var(--muted); margin-bottom: 2.4rem; font-size: 1.05rem; }
.join__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.2rem, 5vw, 3rem);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
}
.footer__brand {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.22em;
  font-size: 1.1rem;
  color: var(--ink);
}
.footer__links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.footer__links a:hover { color: var(--gold-soft); }
.footer__copy { color: #5e5a52; font-size: 0.78rem; letter-spacing: 0.05em; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .about__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem 2.4rem;
    background: rgba(12,12,12,0.97);
    backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .nav__burger { display: flex; z-index: 110; }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .hero__actions, .join__actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__eyebrow, .hero__title, .hero__slogan, .hero__actions { opacity: 1; }
}
