:root {
  --void: #050505;
  --beige: #e8dfd0;
  --beige-soft: #f4efe6;
  --amber: #e2b56a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  color: var(--beige);
  font-family: Sansation, "Segoe UI", sans-serif;
  background: var(--void);
  overflow: hidden;
}

html:has(.top-events),
body:has(.top-events),
html:has(.event-detail),
body:has(.event-detail),
html:has(.ethos),
body:has(.ethos),
html:has(.gallery-page),
body:has(.gallery-page),
html:has(.merch-page),
body:has(.merch-page) {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

html:has(.event-layout),
body:has(.event-layout) {
  height: 100%;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

.atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 12% 8%, rgba(232, 223, 208, 0.06), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 92%, rgba(232, 223, 208, 0.035), transparent 60%),
    var(--void);
  animation: drift 20s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: 100%;
  opacity: 0;
  transform: translateY(0.35rem);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.brand {
  margin: 0;
  line-height: 0;
}

.brand a {
  display: block;
  line-height: 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.15rem);
  margin: 0.15rem 0 0;
}

.menu a {
  color: var(--beige);
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"] {
  color: var(--beige-soft);
}

.menu a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.menu a:focus-visible {
  outline: 1px solid var(--beige-soft);
  outline-offset: 0.35rem;
}

.brand img {
  display: block;
  width: clamp(7.5rem, 22vw, 12rem);
  height: auto;
  /* Source art is black on transparent; flip it to white. */
  filter: invert(1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-events {
  display: block;
}

.top-events .brand {
  float: left;
  margin: 0 clamp(1.75rem, 4vw, 3.25rem) 1.5rem 0;
}

.top-events .menu {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
}

.event-list {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 2.85rem 0 4.5rem;
}

.event-list li {
  display: flow-root;
  padding: 0;
  border-top: 1px solid rgba(232, 223, 208, 0.16);
}

.event-link {
  display: block;
  padding: clamp(1.35rem, 2.8vw, 2.1rem) 0;
  color: inherit;
  text-decoration: none;
}

.event-link:hover .event-name,
.event-link:focus-visible .event-name {
  color: var(--beige);
}

.event-link:focus-visible {
  outline: 1px solid var(--beige-soft);
  outline-offset: 0.35rem;
}

.event-list li:last-child {
  border-bottom: 1px solid rgba(232, 223, 208, 0.16);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.45rem;
  color: rgba(232, 223, 208, 0.42);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.event-date {
  display: inline;
  margin: 0;
}

.event-name {
  margin: 0;
  color: var(--beige-soft);
  font-size: clamp(1.85rem, 4.4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.stage:has(.event-detail) {
  display: block;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.stage:has(.event-detail) .top {
  position: static;
  float: left;
  width: auto;
  margin: 0 clamp(1.5rem, 3vw, 2.75rem) 1.5rem 0;
  transform: none;
  animation: none;
  opacity: 1;
}

.stage:has(.event-detail) .menu {
  position: fixed;
  top: clamp(1.25rem, 3.5vw, 2.5rem);
  right: clamp(1.25rem, 3.5vw, 2.5rem);
  z-index: 4;
  margin: 0;
  padding: 0.35rem 0.15rem;
  background: var(--void);
}

.event-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  width: auto;
  min-width: 0;
}

.event-detail {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  min-width: auto;
  margin: 0;
  padding: 0 0 1.5rem;
  text-align: left;
}

.event-detail .event-meta {
  justify-content: flex-start;
}

.event-detail .event-name {
  max-width: 100%;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.event-flyer-frame {
  margin-top: 1rem;
}

.event-flyer {
  display: block;
  align-self: flex-start;
  min-height: 0;
  width: auto;
  height: calc(100dvh - 14rem);
  border: 1px solid #fff;
}

.event-flyer[hidden] {
  display: none;
}

.artists[hidden] {
  display: none;
}

.artists {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: calc(100dvh - 5rem);
  margin: 0;
  padding: 2.75rem 0.85rem 2rem 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--void);
}

.artist + .artist {
  margin-top: 1.85rem;
}

.artist {
  display: flow-root;
}

.artist-photo-button {
  display: block;
  float: left;
  width: 8.5rem;
  height: 8.5rem;
  margin: 0.1rem 1rem 0.55rem 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.artist:nth-child(even) {
  text-align: right;
}

.artist:nth-child(even) .artist-photo-button {
  float: right;
  margin: 0.1rem 0 0.55rem 1rem;
}

.artist-photo {
  display: block;
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
}

.artist-photo[hidden] {
  display: none;
}

.artist-name {
  margin: 0 0 0.35rem;
  color: var(--beige-soft);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.artist-bio {
  margin: 0;
  color: var(--beige);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.artist-links {
  margin: 0.75rem 0 0;
  color: var(--beige);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.artist-links a {
  color: var(--beige-soft);
  text-underline-offset: 0.2em;
}

.artist::after {
  content: "";
  display: block;
  clear: both;
}

.stage:has(.ethos) {
  display: block;
  min-height: 100dvh;
}

.stage:has(.ethos) .top {
  position: static;
  float: left;
  width: auto;
  margin: 0 clamp(1.5rem, 3vw, 2.75rem) 1.5rem 0;
  transform: none;
  animation: none;
  opacity: 1;
}

.stage:has(.ethos) .menu {
  position: fixed;
  top: clamp(1.25rem, 3.5vw, 2.5rem);
  right: clamp(1.25rem, 3.5vw, 2.5rem);
  z-index: 4;
  margin: 0;
  padding: 0.35rem 0.15rem;
  background: var(--void);
}

.ethos {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  margin: 0;
  padding: 2.75rem 0 4.5rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}

.ethos section {
  width: min(100%, 44rem);
}

.ethos section + section {
  margin-top: 2.35rem;
}

.ethos h2 {
  margin: 0 0 0.55rem;
  color: var(--amber);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.ethos p {
  margin: 0;
  color: var(--beige);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 400;
  line-height: 1.6;
}

.gallery-grid[hidden],
.gallery-view[hidden],
.gallery-full[hidden],
.gallery-clip[hidden] {
  display: none;
}

.gallery-page {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  padding-bottom: 3rem;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.15rem);
  margin: 0 0 1.35rem;
}

.gallery-tabs button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--beige);
  font: inherit;
  font-size: clamp(0.82rem, 1.5vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.gallery-tabs button:hover,
.gallery-tabs button:focus-visible,
.gallery-tabs button[aria-selected="true"] {
  color: var(--beige-soft);
}

.gallery-tabs button[aria-selected="true"] {
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.gallery-tabs button:focus-visible {
  outline: 1px solid var(--beige-soft);
  outline-offset: 0.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.gallery-grid button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  background: none;
  cursor: pointer;
}

.gallery-grid img,
.gallery-grid video {
  display: block;
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.gallery-clip-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.gallery-clip-thumb {
  position: relative;
}

.gallery-clip-title {
  margin: 0.55rem 0 0;
  color: var(--beige-soft);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.gallery-clip-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent var(--beige-soft);
  filter: drop-shadow(0 0 0.4rem rgba(5, 5, 5, 0.8));
  pointer-events: none;
}

.gallery-view {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem);
  background: rgba(5, 5, 5, 0.9);
}

.gallery-back {
  position: absolute;
  top: clamp(1.25rem, 3.5vw, 2.5rem);
  left: clamp(1.25rem, 3.5vw, 2.5rem);
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--beige-soft);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-view.is-clip {
  padding: 0;
  background: rgba(5, 5, 5, 0.96);
}

.gallery-full,
.gallery-clip {
  display: block;
  width: auto;
  max-width: min(100%, 70rem);
  max-height: 100%;
  object-fit: contain;
  border: 1px solid #fff;
  animation: gallery-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-view.is-clip .gallery-clip {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

@keyframes gallery-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.merch-page {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  padding-bottom: 3rem;
}

.merch-note {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--beige);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  font-weight: 400;
  line-height: 1.55;
}

.merch-note a {
  color: var(--beige-soft);
  text-underline-offset: 0.2em;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem);
  width: 100%;
  margin: 0;
  padding: 0;
}

.merch-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.merch-photo {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #fff;
  background: var(--void);
  cursor: pointer;
}

.merch-photo img {
  display: block;
  width: 100%;
  height: 19rem;
  object-fit: contain;
  background: var(--void);
}

.merch-sides {
  display: flex;
  gap: 0.85rem;
  margin: 0.65rem 0 0;
}

.merch-sides button,
.merch-view-sides button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(232, 223, 208, 0.55);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.merch-sides button[aria-pressed="true"],
.merch-view-sides button[aria-pressed="true"],
.merch-sides button:hover,
.merch-view-sides button:hover {
  color: var(--beige-soft);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.merch-name,
.merch-view-name {
  margin: 0.7rem 0 0;
  color: var(--beige-soft);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}

.merch-price,
.merch-view-price {
  margin: 0.25rem 0 0;
  color: rgba(232, 223, 208, 0.55);
  font-size: 0.92rem;
  font-weight: 400;
}

.merch-view-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(100%, 36rem);
}

.merch-view-sides {
  display: flex;
  gap: 0.85rem;
  margin: 0.85rem 0 0;
}

.merch-view-sides[hidden] {
  display: none;
}

.merch-view-name,
.merch-view-price {
  text-align: center;
}

.event-flyer-missing {
  margin: 1.15rem 0 0;
  color: rgba(232, 223, 208, 0.42);
  font-size: 0.95rem;
}

.event-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.35rem;
  margin: 0.6rem 0 0;
  color: rgba(232, 223, 208, 0.55);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.event-credits a {
  color: var(--beige-soft);
  text-underline-offset: 0.2em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.03) translate3d(0.8%, -0.6%, 0);
  }
}

@media (max-width: 680px) {
  .top {
    flex-wrap: wrap;
    row-gap: 1.35rem;
  }

  .menu {
    order: -1;
    width: 100%;
    justify-content: space-between;
    margin-top: 0;
  }

  .top-events {
    display: flex;
    flex-direction: column;
  }

  .top-events .brand {
    float: none;
    margin: 0;
  }

  .top-events .menu {
    position: static;
  }

  .event-list {
    padding-top: 0.25rem;
  }

  .stage:has(.event-detail) .top,
  .stage:has(.ethos) .top {
    float: none;
    position: relative;
    width: 100%;
    margin: 0 0 1.25rem;
  }

  .stage:has(.event-detail),
  .stage:has(.ethos) {
    padding-top: 4.5rem;
  }

  .stage:has(.event-detail) .menu,
  .stage:has(.ethos) .menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    justify-content: space-between;
    padding: 1.15rem clamp(1.25rem, 3.5vw, 2.5rem);
  }

  .event-flyer-frame {
    height: auto;
  }

  .event-flyer {
    width: 100%;
    height: auto;
  }

  html:has(.event-layout),
  body:has(.event-layout),
  .stage:has(.event-detail) {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .event-layout {
    display: block;
  }

  .artists {
    width: 100%;
    height: auto;
    max-height: none;
    margin-top: 2rem;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .top,
  .gallery-full,
  .gallery-clip {
    animation: none;
  }

  .top {
    opacity: 1;
    transform: none;
  }
}
