/* ==========================================================================
   LAYOUT — nav, hero, sticky stack, grids, CTA, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   NAV  ·  logo left · links centred · booking right (mirrors the reference)
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: var(--pad-x);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

/* Scrim so white nav text stays legible over any hero photo. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  pointer-events: none;
  z-index: -1;
}

.nav__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
}

.nav__logo {
  flex: 1 1 0;
  min-width: 0;
  padding-top: 5px;
  font-size: var(--fs-logo);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  white-space: nowrap;
}

.nav__wordmark { color: var(--white); }

@media (min-width: 1200px) {
  body[data-page="home"] .nav__logo {
    font-size: clamp(74px, 5.2vw, 96px);
    transition: font-size 520ms var(--ease-out), padding-top 520ms var(--ease-out);
  }
  body[data-page="home"] .nav.is-condensed .nav__logo {
    padding-top: 10px;
    font-size: clamp(34px, 2.4vw, 46px);
  }
}

/* "Electronic Press Kit", set directly under the wordmark. */
.nav__sub {
  margin-top: 16px;
  padding-left: .12em;   /* optical alignment against the display weight */
}
@media (max-width: 1199.98px) {
  .nav__sub { margin-top: 10px; }
}

.nav__menu {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding-top: 15px;
}
.nav__menu--home { gap: 26px; }

.nav__end {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 15px;
}

.nav__link {
  font-size: var(--fs-h5);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-transform: uppercase;
}
.nav__link[aria-current="page"] { color: var(--white-70); }

.nav__toggle {
  display: none;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

/* Mobile/tablet backdrop with a right-side navigation drawer. */
.navmenu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, .56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease-out),
              visibility .45s;
}
.navmenu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.navmenu__drawer {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(86vw, 420px);
  min-width: 280px;
  padding: calc(var(--nav-h) + 36px) clamp(24px, 7vw, 48px) 42px;
  overflow-y: auto;
  background: var(--bg);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .42);
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
}
.navmenu[data-open="true"] .navmenu__drawer { transform: none; }
.navmenu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.navmenu__link {
  font-size: clamp(34px, 10vw, 58px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .nav__logo { padding-top: 8px; }
  .nav__end { gap: 16px; padding-top: 10px; }
  .nav__end .nav__link { display: block; font-size: 15px; }
  .nav__end .nav__booking { display: none; }
}
@media (min-width: 1200px) {
  .navmenu { display: none; }
}

body.is-menu-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   LANDING-PAGE TOC — adapted from the compact Framer line menu

   The six marks remain readable as one quiet control over the hero and the
   label for the intended destination is revealed on hover/focus. The existing
   full-screen menu is used below the desktop breakpoint, where hover would be
   an unreliable interaction.
   -------------------------------------------------------------------------- */

.toc-menu { display: none; }

@media (min-width: 1200px) {
  body[data-page="home"] .nav__menu { transform: translateX(8vw); }

  .toc-menu {
    position: fixed;
    top: 50%;
    right: clamp(18px, 2vw, 36px);
    z-index: 61;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 158px;
    padding-block: 8px;
    transform: translateY(-50%);
    filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .45));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms linear, visibility 180ms linear;
  }

  .toc-menu[data-visible="true"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .toc-menu__link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    min-height: 22px;
    color: var(--white);
  }

  .toc-menu__label {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(7px);
    transition: opacity 180ms var(--ease-out),
                transform 260ms var(--ease-out),
                visibility 180ms;
  }

  .toc-menu__mark {
    flex: 0 0 auto;
    width: 12px;
    height: 3px;
    border-radius: 99px;
    background: var(--white);
    opacity: .66;
    transform-origin: right center;
    transition: width 300ms var(--ease-spring),
                opacity 180ms var(--ease-out);
  }

  .toc-menu__link:hover,
  .toc-menu__link:focus-visible { color: var(--white); }

  .toc-menu__link:hover .toc-menu__label,
  .toc-menu__link:focus-visible .toc-menu__label {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .toc-menu__link:hover .toc-menu__mark,
  .toc-menu__link:focus-visible .toc-menu__mark {
    width: 28px;
    opacity: 1;
  }

  /* The neighbouring marks respond softly as in the reference component. */
  .toc-menu__link:has(+ .toc-menu__link:hover) .toc-menu__mark,
  .toc-menu__link:hover + .toc-menu__link .toc-menu__mark {
    width: 19px;
    opacity: .82;
  }
}

/* --------------------------------------------------------------------------
   HERO — the landing panel is the photograph alone. Name and subtitle sit
   in the fixed nav, so there is no copy to make room for or to shade.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   PINNED IMAGE — the full-bleed shot that scales in on load
   -------------------------------------------------------------------------- */

.pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.pinned__media { width: 100%; height: 100%; }
.pinned__media img,
.pinned__media .ph { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   STICKY CARD STACK — cards pin at 0 / 50 / 100 / 150px and pile up
   -------------------------------------------------------------------------- */

.stack { position: relative; }
.stack__inner {
  display: flex;
  flex-direction: column;
  gap: 65px;
  background: var(--bg);
}

.stack__card {
  position: sticky;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: block;
  color: var(--white);
}
.stack__card:nth-child(1) { top: var(--stack-1); }
.stack__card:nth-child(2) { top: var(--stack-2); }
.stack__card:nth-child(3) { top: var(--stack-3); }
.stack__card:nth-child(4) { top: var(--stack-4); }
.stack__card:hover { color: var(--white); }

.stack__media { position: absolute; inset: 0; z-index: 0; }
.stack__media img,
.stack__media .ph {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: none;
}
.stack__card:hover .stack__media img { transform: none; }

/* Dark wash so the title always reads over the photo */
.stack__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
              rgba(0,0,0,.35), rgba(0,0,0,.15) 45%, rgba(0,0,0,.6));
}

.stack__body {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  padding-inline: var(--pad-x);
}
.stack__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}
.stack__line {
  width: 100%;
  max-width: var(--container);
  margin: 8px auto 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-out);
}
.stack__card.is-in .stack__line { transform: scaleX(1); }
.stack__index { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   EDITORIAL GRID — 12 columns, asymmetric spans (the reference work grid)
   -------------------------------------------------------------------------- */

.egrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--grid-gap-row) var(--grid-gap-col);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.egrid > * { min-width: 0; }

@media (max-width: 809.98px) {
  .egrid {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 580px;
    gap: var(--grid-gap-row);
  }
  .egrid > * { width: 100%; grid-column: auto !important; }
}

/* Plain responsive grids for galleries and video walls */
.grid-auto {
  display: grid;
  gap: 40px var(--grid-gap-col);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.grid-auto--wide  { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.grid-auto--tight {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px var(--grid-gap-col);
}

@media (max-width: 809.98px) {
  .grid-auto,
  .grid-auto--wide,
  .grid-auto--tight { grid-template-columns: 1fr; max-width: 580px; }
}

/* --------------------------------------------------------------------------
   LOGO BAND — clubs, festivals, labels · 5x2 desktop, 2 columns on mobile
   -------------------------------------------------------------------------- */

.logoband {
  display: grid;
  grid-template-columns: repeat(5, minmax(50px, 1fr));
  gap: clamp(10px, 1.4vw, 24px);
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.logoband__item {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  height: auto;
  padding: clamp(16px, 2.4vw, 34px);
  border: 0;
  background: transparent;
  opacity: .68;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.logoband__item:hover { opacity: 1; }
.logoband__item img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 809.98px) {
  .logoband {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 2vw, 10px);
    padding-inline: 16px;
  }
  .logoband__item { height: auto; padding: 8px; }
  .logoband__placeholder { font-size: 7px; line-height: 1.35; }
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  border-top: 1px solid var(--line);
  display: grid;
  place-items: center;
  min-height: 445px;
  padding: 80px var(--pad-x);
}
.cta__link {
  display: block;
  width: 100%;
  max-width: var(--container);
  text-align: center;
  font-size: var(--fs-cta);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--white-70);
  transition: color .5s var(--ease-out);
}
.cta__link:hover { color: var(--white); }
.cta__sub { margin-top: 22px; text-align: center; }

@media (max-width: 809.98px) { .cta { min-height: 280px; } }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.footer { background: var(--bg); padding: 0 var(--pad-x) 15px; }
.footer__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer__cols {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}
.footer__col h2 { font-size: var(--fs-body); font-weight: 500; }
.footer__col a { color: var(--white-70); }
.footer__col a:hover { color: var(--white); }

.footer__bottom { display: flex; align-items: flex-end; justify-content: flex-end; gap: 20px; }

/* Giant wordmark, scaled to the exact container width */
.wordmark { display: block; width: 100%; overflow: visible; }
.wordmark text {
  fill: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.03em;
}
.footer__copy { flex: 1 1 0; display: flex; justify-content: flex-end; }

@media (max-width: 809.98px) {
  .footer__inner { gap: 80px; }
  .footer__cols { flex-direction: column; gap: 35px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 15px; }
  .footer__copy { justify-content: flex-start; width: 100%; order: -1; }
}

/* --------------------------------------------------------------------------
   PAGE HEADER — inner pages (Music, Live, About, Booking)
   -------------------------------------------------------------------------- */

.pagehead { padding: calc(var(--nav-h) + 90px) var(--pad-x) 0; }
.pagehead__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
@media (max-width: 809.98px) {
  .pagehead { padding-top: calc(var(--nav-h) + 50px); }
}

/* Vertical offset that keeps neighbouring cards in a row from lining up.
   Set by the packer in render.js; neutralised in the single-column layout. */
.egrid { --egrid-offset: 80px; }
@media (max-width: 1199.98px) { .egrid { --egrid-offset: 50px; } }
@media (max-width: 809.98px) {
  .egrid { --egrid-offset: 0px; }
  .egrid > * { margin-top: 0 !important; }
}

/* A background video fills its panel exactly like a background image would. */
.hero__media video,
.pinned__media video,
.stack__media video,
.media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media video { transition: transform 1.1s var(--ease-out); }
