/* ─────────────────────────────────────────────────────────────────────────
   Homepage — README §6.1.
   ───────────────────────────────────────────────────────────────────────── */

/* ══ a) Hero ═════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 620px;
  overflow: hidden;
  background: var(--color-hero-ground);
}

.hero__media { position: absolute; inset: 0; }
.hero__media img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The video fades in over the poster once it actually plays, so a stalled
   load never shows a black rectangle. */
.hero__video { opacity: 0; transition: opacity var(--dur) var(--ease); }
.hero__video.is-playing { opacity: 1; }

.hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.hero__scrim--side {
  background: linear-gradient(to right,
    rgba(15, 17, 28, .94) 0%,
    rgba(15, 17, 28, .72) 42%,
    rgba(15, 17, 28, .35) 100%);
}
.hero__scrim--foot {
  background: linear-gradient(to top, rgba(15, 17, 28, .96) 0%, transparent 55%);
}

.hero__inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 170px;   /* reserved for the next-event bar */
  pointer-events: none;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-accent-400);
}
.hero__kicker .mark { flex: none; }

.hero__logo { margin: 0; }
.hero__logo img {
  width: clamp(240px, 40vw, 520px);
  max-height: min(36vh, 290px);
  height: auto;
  object-fit: contain;
  object-position: left;
}

.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; }
.hero__foot-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

/* — the next-event bar — */
.next-event {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 18px 22px;
  background: var(--hero-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-12);
  border-radius: var(--radius-lg);
  pointer-events: auto;
}

.next-event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding-right: 22px;
  border-right: 1px solid var(--line-14);
}
.next-event__weekday {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-accent-400);
}
.next-event__day {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: var(--font-heading-weight);
  line-height: 1;
  letter-spacing: -.02em;
}
.next-event__month {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-55);
}

.next-event__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.next-event__body p { margin: 0; }
.next-event__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--font-heading-weight);
  line-height: 1.1;
}
.next-event__meta { font-size: 13px; color: var(--text-60); }

.next-event__action { display: flex; align-items: center; padding-left: 8px; }
.next-event__cta { padding: 10px 18px; }

.next-event--empty .next-event__body { padding-right: 8px; }

/* — the scroll cue — */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-bottom: 8px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-45);
  animation: maxDrift 2.2s ease-in-out infinite alternate;
}
.hero__scroll-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}
@keyframes maxDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

@media (max-width: 700px) {
  .hero__scroll { display: none; }

  .next-event { flex: 1 1 100%; flex-wrap: wrap; }

  /* Stacked, the date's vertical rule is left hanging beside nothing — turn
     the cell into a row and let a bottom rule do the separating instead. */
  .next-event__date {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;   /* the column layout centred it */
    gap: 10px;
    width: 100%;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line-14);
  }
  .next-event__day { font-size: 28px; }
  .next-event__action { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll { animation: none; }
}

/* ══ b) About band ═══════════════════════════════════════════════════════ */
.home-about__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
}
.home-about__cols > * { flex: 1 1 320px; min-width: 0; }

.home-about__title {
  margin-top: 18px;
  font-size: var(--text-h2);
  line-height: 1.06;
  letter-spacing: var(--tracking-h2);
}
.home-about__text { padding-top: 14px; }
.home-about__text > p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-78);
}
.home-about__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

@media (max-width: 760px) {
  .home-about__cols { gap: 48px; }
}

.home-stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 64px;
}
.home-stats__cell { padding: 26px 4px 6px 22px; }
.home-stats__cell:first-child { padding-left: 0; }
.home-stats__figure {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: var(--font-heading-weight);
  letter-spacing: -.02em;
  color: var(--color-accent-400);
}
.home-stats__label {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-50);
}

/* ══ c) Programme ════════════════════════════════════════════════════════ */
.featured-event {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.featured-event__media {
  position: relative;
  flex: 1 1 54%;
  min-width: 280px;
  min-height: 470px;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--color-neutral-900);
}
/* Absolute, so the poster's portrait ratio cannot dictate the card's height —
   min-height and the text column govern, and the image just covers. */
.featured-event__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-event__flag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--tag-scrim);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.featured-event__body {
  flex: 1 1 46%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 34px 38px;
}
.featured-event__body p { margin: 0; }
.featured-event__date {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent-400);
}
.featured-event__date .mark { flex: none; }
.featured-event__title {
  font-size: var(--text-h3-card);
  line-height: 1.04;
  letter-spacing: var(--tracking-h2);
}
.featured-event__title a { color: inherit; }
.featured-event__title a:hover { color: var(--color-accent-300); }
.featured-event__excerpt { font-size: 16px; line-height: 1.65; color: var(--text-72); }
.featured-event__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; list-style: none; }
.featured-event__action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
}
.featured-event__action .btn { padding: 11px 20px; }
.featured-event__price { font-size: 13px; color: var(--text-55); }

/* Below ~860px the two halves stack, so the poster loses its side radius. */
@media (max-width: 859px) {
  .featured-event__media {
    min-height: 320px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .featured-event__body { padding: 28px 24px; }
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.event-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.event-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.event-card__link:hover { color: inherit; }
.event-card__media {
  display: block;
  height: 220px;
  background: var(--color-neutral-900);
}
.event-card__media img { width: 100%; height: 100%; object-fit: cover; }
.event-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 22px;
}
.event-card__date {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent-400);
}
.event-card__title {
  font-size: 22px;
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--tracking-h4);
  line-height: 1.15;
}
.event-card__lineup { flex: 1; font-size: 13px; line-height: 1.6; color: var(--text-60); }
.event-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-10);
}
.event-card__price { font-size: 13px; color: var(--text-75); }
.event-card__more { font-size: 13px; color: var(--color-accent-400); }

/* ══ d) Testimonials ═════════════════════════════════════════════════════ */

.home-testimonials__lede {
  margin: 22px 0 0;
  max-width: 340px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-70);
}
.home-testimonials__list { background: var(--line-14); }

.quote { margin: 0; padding: 26px 0 26px 26px; }
.quote__text { margin: 0; font-size: 19px; line-height: 1.5; }
.quote__author {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-55);
}

/* ══ e/g) Tile grids ═════════════════════════════════════════════════════ */
/*
 * README §6.1e specifies repeat(auto-fit, minmax(160px, 1fr)). Inside the
 * 1280px container that generates SEVEN columns for five tiles: the 2×2
 * feature plus four smalls fill six slots in row one and leave row two empty
 * but for the feature. The tile count here is fixed by the design, so at
 * desktop the column count is pinned to four — [F F 2 3] / [F F 4 5] closes
 * the mosaic exactly as drawn. Below that, auto-fit still handles the flow.
 */
.tile-grid--gallery {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  grid-auto-rows: 180px;
  gap: 12px;
}
@media (min-width: 900px) {
  .tile-grid--gallery { grid-template-columns: repeat(4, 1fr); }
}
.tile-grid--gallery .tile-grid__item { border-radius: var(--radius-tile); }
.tile-grid--gallery .tile-grid__item--feature { grid-column: span 2; grid-row: span 2; }

/* Same correction: auto-fit yields eleven columns for six tiles at 1280px. */
.tile-grid--instagram {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-auto-rows: 110px;
  gap: 8px;
}
@media (min-width: 700px) {
  .tile-grid--instagram { grid-template-columns: repeat(6, 1fr); }
}
.tile-grid--instagram .tile-grid__item { border-radius: var(--radius-ig); }

.home-instagram__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.home-instagram__handle {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-instagram__handle .mark { flex: none; }
.home-instagram__note { margin: 0; font-size: 12px; color: var(--text-45); }

/* ══ f) Journal teaser ═══════════════════════════════════════════════════ */
.journal-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.journal-card__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 26px;
  color: inherit;
}
.journal-card__link:hover { color: inherit; }
.journal-card__date {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-45);
}
.journal-card__title {
  font-size: 21px;
  font-weight: var(--font-heading-weight);
  letter-spacing: var(--tracking-h4);
  line-height: 1.2;
}
.journal-card__excerpt { font-size: 14px; line-height: 1.6; color: var(--text-62); }
