.club-page {
  --club-page-progress: 0;
  --club-intro-progress: 0;
  position: relative;
  overflow-x: clip;
  background-color: #030405;
  color: var(--color-foreground);
  isolation: isolate;
}

.club-page::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(var(--kodz-grid-line-color, #fff) 1px, transparent 1px),
    linear-gradient(90deg, var(--kodz-grid-line-color, #fff) 1px, transparent 1px);
  background-attachment: fixed;
  background-position: top left;
  background-size: var(--kodz-grid-size, calc(100vw / 40)) var(--kodz-grid-size, calc(100vw / 40));
  content: "";
  opacity: var(--kodz-grid-opacity, 0.06);
  pointer-events: none;
}

.club-hero {
  position: relative;
  z-index: 1;
  min-height: 410svh;
}

.club-hero__sticky {
  position: sticky;
  z-index: 1;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: rgb(3 4 5 / 12%);
}

.admin-bar .club-hero__sticky {
  top: 32px;
  height: calc(100svh - 32px);
}

.club-hero__canvas,
.club-hero__overlay {
  --club-ordinary-transform: translate3d(calc(var(--club-intro-progress) * 4.5vw), calc(var(--club-intro-progress) * -0.75vh), 0);
  --club-title-size: clamp(4rem, 7.6vw, 9.5rem);
  --club-title-second-top: clamp(12.5rem, 23.5vh, 16.5rem);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.club-hero__canvas {
  z-index: 1;
  cursor: default;
}

.club-hero__overlay {
  z-index: 2;
  font-family: var(--font-body);
  pointer-events: none;
}

.club-hero__title {
  position: absolute;
  inset: 0;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--club-title-size);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-wrap: nowrap;
}

.club-hero__title-line {
  position: absolute;
  display: block;
  will-change: opacity, transform;
}

.club-hero__title-line--one {
  top: clamp(6.5rem, 10.5vh, 8.5rem);
  left: var(--page-padding);
  opacity: calc(1 - var(--club-intro-progress));
  transform: translate3d(
    calc(var(--club-intro-progress) * -4.5vw),
    calc(var(--club-intro-progress) * -1.25vh),
    0
  );
}

.club-hero__title-line--two {
  top: var(--club-title-second-top);
  right: var(--page-padding);
  opacity: calc(1 - var(--club-intro-progress));
  transform: var(--club-ordinary-transform);
}

.club-hero__intro {
  position: absolute;
  bottom: clamp(5.75rem, 12.5vh, 8rem);
  left: var(--page-padding);
  width: min(23rem, 30vw);
  font-size: clamp(0.72rem, 0.78vw, 0.9rem);
  font-weight: 500;
  line-height: 1.42;
  opacity: calc(1 - var(--club-intro-progress));
  pointer-events: auto;
  transform: translate3d(calc(var(--club-intro-progress) * -1vw), 0, 0);
  will-change: opacity, transform;
}

.club-hero__intro p {
  max-width: 34ch;
}

.club-hero__tickets {
  margin-top: 1.25rem;
}

.club-hero__event {
  position: absolute;
  top: calc(var(--club-title-second-top) + var(--club-title-size) * 0.88 + 30px);
  right: var(--page-padding);
  pointer-events: auto;
  transform: var(--club-ordinary-transform);
  will-change: transform;
}

.club-hero__event .hero-event {
  position: relative;
}

/* Fade the glass itself: parent opacity would isolate the backdrop to blur. */
.club-hero__event .hero-event:not(.is-dismissed) {
  opacity: calc(1 - var(--club-intro-progress));
  transition: none;
}

.club-hero__scroll {
  position: fixed;
  z-index: 90;
  right: var(--page-padding);
  bottom: clamp(1.75rem, 4.5vh, 3rem);
  opacity: 1;
  text-shadow: 0 0.15rem 1rem rgb(0 0 0 / 80%);
}

.club-hero__cross {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  opacity: calc(1 - var(--club-intro-progress));
  transform: translate(-50%, -50%);
}

.club-hero__cross::before,
.club-hero__cross::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentcolor;
  content: "";
}

.club-hero__cross::after {
  transform: rotate(90deg);
}

.club-hero__cross--one {
  top: calc(var(--kodz-grid-size) * 11);
  left: calc(var(--kodz-grid-size) * 13);
}

.club-hero__cross--two {
  top: calc(var(--kodz-grid-size) * 15);
  left: calc(var(--kodz-grid-size) * 35);
}

.club-page:is(.is-intro-exiting, .has-intro-exited) .club-hero__intro,
.club-page:is(.is-intro-exiting, .has-intro-exited) .club-hero__event {
  pointer-events: none;
}

.club-story {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 310svh;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(50svh, 1fr));
  column-gap: clamp(4rem, 10vw, 12rem);
  padding: 70svh var(--page-padding) 40svh;
  pointer-events: none;
}

.club-story__block {
  width: min(22rem, 100%);
  font-size: clamp(0.9rem, 1.05vw, 1.2rem);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.club-venue {
  --club-venue-progress: 0;
  position: relative;
  z-index: 2;
  height: 400svh;
}

.club-venue__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: rgb(3 4 5 / 18%);
}

.admin-bar .club-venue__sticky {
  top: 32px;
  height: calc(100svh - 32px);
}

.club-venue__track {
  position: absolute;
  top: 50%;
  left: 0;
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  transform: translate3d(var(--page-padding), -50%, 0);
  will-change: transform;
}

.club-venue__item {
  --club-venue-opacity: 0.42;
  --club-venue-scale: 0.92;
  --club-venue-shift: 0px;
  height: min(66svh, 48rem);
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-card, 0.7rem);
  opacity: var(--club-venue-opacity);
  transform: translate3d(0, var(--club-venue-shift), 0) scale(var(--club-venue-scale));
  transform-origin: center;
  transition: opacity 100ms linear;
  will-change: opacity, transform;
}

.club-venue__item.is-landscape {
  width: min(72vw, 76rem);
}

.club-venue__item.is-portrait {
  width: min(37vw, 31rem);
}

.club-venue__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.club-story__block--left-one,
.club-story__block--left-two {
  grid-column: 1;
  justify-self: start;
}

.club-story__block--right-one,
.club-story__block--right-two {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}

.club-story__block--left-one {
  grid-row: 1;
}

.club-story__block--right-one {
  grid-row: 3;
}

.club-story__block--left-two {
  grid-row: 2;
}

.club-story__block--right-two {
  grid-row: 4;
}

.club-story__block {
  align-self: center;
  text-shadow: 0 0.15rem 1.5rem rgb(0 0 0 / 65%);
}

[data-club-reveal] {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

[data-club-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.club-page.is-reduced-motion .club-hero {
  min-height: auto;
}

.club-page.is-reduced-motion .club-hero__sticky {
  position: relative;
}

@media screen and (max-width: 782px) {
  .admin-bar .club-hero__sticky {
    top: 46px;
    height: calc(100svh - 46px);
  }

  .admin-bar .club-venue__sticky {
    top: 46px;
    height: calc(100svh - 46px);
  }
}

@media (max-width: 991px) {
  .club-hero {
    min-height: 370svh;
  }

  .club-hero__overlay {
    --club-title-size: clamp(3.6rem, 10vw, 6.4rem);
  }

  .club-hero__intro {
    width: min(21rem, 44vw);
  }

  .club-story {
    min-height: 280svh;
  }
}

@media (max-width: 767px) {
  .club-hero {
    min-height: 345svh;
  }

  .club-hero__title {
    font-size: clamp(3.15rem, 15vw, 5.2rem);
    line-height: 0.9;
  }

  .club-hero__title-line--one {
    top: 7.5rem;
  }

  .club-hero__title-line--two {
    top: 12.25rem;
  }

  .club-hero__intro {
    bottom: 5.75rem;
    width: calc(100% - (var(--page-padding) * 2));
    font-size: 0.72rem;
  }

  .club-hero__event,
  .club-hero__cross {
    display: none;
  }

  .club-hero__scroll {
    bottom: 2rem;
  }

  .club-story {
    min-height: 245svh;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(42svh, 1fr));
    gap: 0;
    padding-block: 60svh 25svh;
  }

  .club-story__block {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .club-story__block--right-one,
  .club-story__block--right-two {
    justify-self: end;
    text-align: right;
  }

  .club-venue__track {
    gap: 0.625rem;
  }

  .club-venue__item {
    height: min(62svh, 34rem);
    border-radius: 0.55rem;
  }

  .club-venue__item.is-landscape {
    width: 82vw;
  }

  .club-venue__item.is-portrait {
    width: 60vw;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .club-hero__title {
    font-size: clamp(2.8rem, 8.5vw, 4rem);
  }

  .club-hero__title-line--one {
    top: 7.25rem;
  }

  .club-hero__title-line--two {
    top: 10.9rem;
  }

  .club-hero__intro {
    bottom: 2.3rem;
    width: min(19rem, 55vw);
    font-size: 0.62rem;
    line-height: 1.3;
  }

  .club-hero__tickets {
    margin-top: 0.55rem;
  }

  .club-hero__scroll {
    bottom: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-club-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .club-venue {
    height: auto !important;
    padding: clamp(5rem, 10vw, 8rem) var(--page-padding);
  }

  .club-venue__sticky {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .club-venue__track {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    transform: none !important;
  }

  .club-venue__item,
  .club-venue__item.is-landscape,
  .club-venue__item.is-portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    opacity: 1;
    transform: none;
  }
}
