/* ── Animation ── */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Events Hero ── */
.events-hero {
  background: var(--color-events);
  padding: 48px var(--gutter) 0;
  min-height: 42vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  animation: hero-enter 0.5s var(--ease-out) both;
  animation-delay: 0.1s;
}

/* Black-and-white party footage behind the hero, desaturated and scrimmed
   dark at the bottom so the white title/tagline stay legible. */
.events-hero--video {
  position: relative;
  background: var(--black);
}

.events-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(1);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.events-hero-video--ready { opacity: 1; }

.events-hero-video-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.4) 100%);
}

.events-hero-content {
  position: relative;
  z-index: 2;
}

.events-hero-eyebrow {
  font-size: 11px;
  font-weight: var(--fw-semi);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.events-hero-title {
  font-family: var(--font-main);
  font-size: var(--text-section-title);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.82;
}

.events-hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 0;
  border-top: 1.5px solid rgba(255, 255, 255, 0.22);
  margin-top: 16px;
}

.events-hero-tagline {
  font-size: 11px;
  font-weight: var(--fw-semi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 60%;
}

.events-count-wrap { text-align: right; }

.events-count-num {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -0.03em;
}

.events-count-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── Poster wall ──
   Parties runs one or two posters, and a flyer tile is a whole portrait image
   rather than a cropped block, so cap the column width and centre the row
   instead of letting a single tile stretch across a desktop viewport. */
.page-events .poster-wall {
  grid-template-columns: repeat(2, minmax(260px, 560px));
  justify-content: center;
  padding: 2px 0;
}

.events-companion { min-width: 0; }
.page-events .poster-wall > .poster { align-self: start; }

.events-archive {
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.events-archive summary {
  display: block;
  min-height: 64px;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.events-archive-heading,
.events-archive--list summary { display: flex; align-items: center; gap: 12px; }
.events-archive-preview {
  display: grid;
  grid-template-columns: clamp(88px, 10vw, 128px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  text-transform: none;
  letter-spacing: normal;
}
.events-archive-preview img { display: block; width: 100%; height: auto; }
.events-archive-preview-name { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--white); }
.events-archive-preview-date { display: block; margin-top: 8px; font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.68); }
.events-archive-preview-action { display: block; margin-top: 16px; font-size: 11px; font-weight: 500; color: var(--orange); }
.events-archive[open] .events-archive-preview-action { display: none; }
.events-archive summary::-webkit-details-marker { display: none; }
.events-archive summary:hover { color: var(--orange); }
.events-archive summary:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; }
.events-archive-count { color: var(--orange); font-variant-numeric: tabular-nums; }
.events-archive-icon { position: relative; width: 16px; height: 16px; margin-left: auto; }
.events-archive-icon::before,
.events-archive-icon::after { content: ''; position: absolute; background: currentColor; }
.events-archive-icon::before { width: 16px; height: 2px; top: 7px; left: 0; }
.events-archive-icon::after { width: 2px; height: 16px; top: 0; left: 7px; }
.events-archive[open] .events-archive-icon::after { display: none; }
.events-archive-posters { padding: 0 24px 24px; }
.events-archive-title { font-size: 14px; line-height: 1.5; font-weight: 500; margin: 16px 0 12px; }
.events-archive--list summary { padding-inline: var(--gutter); }

/* Post-party photo gallery (Google Drive). The crowd photo is the link; the
   caption sits on a scrim at its foot, styled like the hero's eyebrow/title. */
.events-photos {
  position: relative;
  display: block;
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
}
.events-photos .events-party-photo img { transition: transform 0.6s var(--ease-out), opacity 0.3s; }
.events-photos-caption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 64px 24px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
}
.events-photos-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.events-photos-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.events-photos-icon { margin-left: auto; font-size: 0.7em; color: var(--orange); transition: transform 0.2s var(--ease-out); }
.events-photos-sub { font-size: 13px; color: rgba(255,255,255,0.75); }
@media (hover: hover) and (pointer: fine) {
  .events-photos:hover .events-party-photo img { transform: scale(1.03); }
  .events-photos:hover .events-photos-icon { transform: translate(3px, -3px); }
}
.events-photos:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }

/* No upcoming flyers: the companion is all there is, so it takes the full row
   — photo/gallery on the left, archive beside it — instead of leaving the
   second poster column empty. */
.page-events .poster-wall:not(:has(> .poster)) {
  grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--gutter) 64px;
  background: var(--black);
}
.poster-wall:not(:has(> .poster)) .events-companion {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 56px);
  align-items: start;
  background: var(--black);
}
.poster-wall:not(:has(> .poster)) .events-archive { border-top: none; align-self: stretch; }
.poster-wall:not(:has(> .poster)) .events-archive summary { padding: 0 0 16px; }
.poster-wall:not(:has(> .poster)) .events-archive-posters { padding: 0; }
@media (max-width: 900px) {
  .poster-wall:not(:has(> .poster)) .events-companion { grid-template-columns: minmax(0, 1fr); }
  .poster-wall:not(:has(> .poster)) .events-companion { row-gap: 32px; }
  .poster-wall:not(:has(> .poster)) .events-archive { border-top: none; }
}

.events-party-photo {
  aspect-ratio: 3 / 2;
  min-width: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.events-party-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── View toggle ── */
.events-view-toggle-row {
  background: var(--black);
  padding: 16px var(--gutter);
  display: flex;
  justify-content: flex-end;
}

/* ── Event List ── */
.events-body { background: var(--black); }

.events-list-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px 100px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid #111;
  background: #0a0a0a;
}

.events-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
}

.events-col-label:last-child { text-align: right; }

.event-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 100px;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid #111;
  min-height: 72px;
  transition: background 0.12s;
}

.event-row:hover { background: #0d0d0d; }

.event-date-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid #1a1a1a;
  padding: 16px 20px 16px 0;
}

.event-day {
  font-family: var(--font-main);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.03em;
}

.event-day--tba { font-size: 28px; color: rgba(255,255,255,0.72); }

.event-month {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-top: 2px;
}

.event-info-col {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-name {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.event-name--coming { color: rgba(255,255,255,0.9); font-style: italic; }

.event-venue {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-tags { display: flex; gap: 6px; margin-top: 4px; }

.event-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.72);
}

.event-tag--orange { border-color: var(--color-events); color: var(--color-events); }

.event-status-col {
  padding: 0 16px;
  border-left: 1px solid #111;
  display: flex;
  align-items: center;
}

.event-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}

.event-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.event-status-dot--live { background: var(--green); }

.event-cta-col {
  padding: 0 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-left: 1px solid #111;
}

/* Ghost placeholder rows */
.event-row--ghost { opacity: 0.26; pointer-events: none; }

/* Event row stagger */
.event-row.reveal:nth-child(2) { transition-delay: 0.1s; }
.event-row.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── Guestlist Band ── */
.guestlist-band {
  background: var(--black);
  padding: clamp(24px, 3vw, 40px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.guestlist-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
}

.guestlist-headline {
  font-family: var(--font-main);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.92;
}

.guestlist-sub {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 10px;
  max-width: 380px;
  line-height: 1.55;
}

/* ── Closing countdown (last 48h before the party) ── */
.guestlist-band-countdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.guestlist-band-countdown-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.guestlist-band-countdown-clock {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-main);
  font-weight: var(--fw-semi);
  font-size: clamp(30px, 4.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green);
  /* Digits change every second — proportional figures would jitter the row. */
  font-variant-numeric: tabular-nums;
}

.guestlist-band-unit i {
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-left: 2px;
}

/* Inside the final hour the clock pulses so it reads as genuinely closing. */
@media (prefers-reduced-motion: no-preference) {
  .guestlist-band-countdown--urgent .guestlist-band-countdown-clock {
    animation: guestlist-pulse 1.8s var(--ease-out) infinite;
  }
  @keyframes guestlist-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.58; }
  }
}

.guestlist-band-countdown--urgent .guestlist-band-countdown-label { color: var(--orange); }

.guestlist-band-closed {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  max-width: 380px;
}

/* Closed: the slab shouldn't still look like the primary action. */
.guestlist-band--closed .guestlist-headline { color: rgba(255, 255, 255, 0.32); }
.guestlist-band--closed .guestlist-button {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
}
.guestlist-band--closed .guestlist-button .btn-c-circle {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
}
.guestlist-band--closed .guestlist-button .btn-c-text { color: rgba(255, 255, 255, 0.72); }

.guestlist-cta { flex-shrink: 0; }

/* Green slab CTA. The circle sits inside the slab with matching padding on
   every side, so it reads as one object rather than a badge stuck to the
   edge of a box. */
.guestlist-button {
  --gl-pad: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: var(--gl-pad) 22px var(--gl-pad) var(--gl-pad);
  border: 0;
  background: var(--green);
  color: var(--black);
  transition: transform 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.guestlist-button .btn-c-circle {
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--green);
  font-size: 13px;
}
.guestlist-button .btn-c-text {
  padding: 0;
  border: 0;
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .guestlist-button:hover { background: #6fe06c; transform: translateY(-2px); }
  /* The shared .btn-c hover fade would wash the slab out. */
  .guestlist-button:hover { opacity: 1; }
  .guestlist-button:hover .btn-c-circle { transform: none; }
}
.guestlist-button:active { transform: translateY(1px); }
.guestlist-button:active .btn-c-circle { transform: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .events-list-header { display: none; }

  .events-view-toggle-row {
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .events-view-toggle {
    width: 100%;
    max-width: 320px;
  }

  .events-view-btn {
    flex: 1;
    text-align: center;
  }

  .page-events .poster-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .page-events .poster {
    min-height: auto;
    min-height: 300px;
    padding: 16px;
  }

  .page-events .poster--flyer {
    min-height: 0;
    padding: 0;
  }

  .page-events .poster-wordmark {
    font-size: clamp(20px, 8vw, 34px);
  }

  .page-events .poster-lineup-names {
    font-size: clamp(16px, 5.4vw, 22px);
  }

  .page-events .poster-top,
  .page-events .poster-kicker,
  .page-events .poster-footer-line {
    font-size: 10px;
  }

  .event-row {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    padding: 16px var(--gutter);
  }

  .event-date-col { padding: 0 16px 0 0; border-right: 1px solid #1a1a1a; }
  .event-info-col { padding: 0 0 0 16px; }
  .event-status-col { display: none; }
  .event-cta-col { grid-column: 2; border-left: none; padding: 8px 0 0 16px; justify-content: flex-start; }

  .guestlist-band { grid-template-columns: 1fr; align-items: start; }

  /* Stacked, the CTA is the only tappable thing in the band — give it the
     full column instead of leaving it as a small slab floating left. */
  .guestlist-cta { width: 100%; }
  .guestlist-button {
    width: 100%;
    justify-content: flex-start;
    padding-right: var(--gl-pad);
    min-height: 60px;
  }
  .guestlist-sub { max-width: none; }
}

@media (max-width: 600px) {
  .page-events .poster-wall { grid-template-columns: 1fr; }
  /* The photo is the gallery link, so it stays — just shorter. */
  .events-party-photo { aspect-ratio: 4 / 3; }
  .events-photos-caption { padding: 48px 20px 20px; }

  /* The hero's title/tagline/count row runs out of width around here: the
     count crowds the tagline and clips against the gutter. */
  .events-hero { min-height: 46vh; padding-top: 36px; }
  .events-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .events-hero-tagline { max-width: none; }
  .events-count-wrap { text-align: left; }

  .events-view-toggle-row { padding-left: 0; padding-right: 0; }
  .events-view-toggle { max-width: none; width: calc(100% - (var(--gutter) * 2)); }
}
