:root {
  color-scheme: dark;
  --bg: #102d48;
  --ink: #f8fbff;
  --muted: #d8eef6;
  --cyan: #67c9dc;
  --aqua: #4fc4bf;
  --blue: #577cae;
  --violet: #5d629b;
  --navy: #10243e;
  --line: rgba(255, 255, 255, 0.24);
  --shadow: 0 22px 54px rgba(13, 38, 62, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(103, 201, 220, 0.58), transparent 22rem),
    radial-gradient(circle at 90% 25%, rgba(93, 98, 155, 0.64), transparent 24rem),
    linear-gradient(145deg, #4ebfbd 0%, #577ead 46%, #405481 100%);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.site-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

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

.hero__video--backdrop {
  display: none;
}

.hero__content {
  position: relative;
  display: flex;
  min-height: 100%;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 max(28px, env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.hero-header {
  position: absolute;
  z-index: 2;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
}

.ritual-logo {
  display: grid;
  justify-items: center;
  color: #fff;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.28));
}

.ritual-logo__symbol {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  margin-bottom: 8px;
  font-size: 1.55rem;
  font-weight: 950;
  border: 6px solid currentColor;
  border-radius: 50%;
}

.ritual-logo__word {
  font-size: clamp(1.7rem, 8vw, 3.2rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.ritual-logo--image img {
  display: block;
  width: min(210px, 54vw);
  max-height: 108px;
  object-fit: contain;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(18, 42, 70, 0.28);
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(4.1rem, 22vw, 11rem);
  line-height: 0.78;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 8px 0 rgba(41, 73, 111, 0.32);
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 11vw, 5.6rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(24, 52, 82, 0.18);
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 800;
}

.scroll-cta,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.scroll-cta {
  animation: cta-bounce 1.45s ease-in-out infinite;
}

.scroll-cta__arrow {
  font-size: 1.1rem;
  line-height: 1;
}

@keyframes cta-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.events,
.organizers {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
}

.events {
  display: flex;
  min-height: 100svh;
  padding: 22px 0 max(22px, env(safe-area-inset-bottom));
  flex-direction: column;
  justify-content: center;
}

.event-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(16, 36, 62, 0.32);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.event-tab {
  min-height: 42px;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.event-tab.is-active {
  color: var(--navy);
  background: #fff;
}

.event-list {
  display: grid;
  grid-auto-columns: minmax(242px, 78vw);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.event-card {
  position: relative;
  display: flex;
  min-height: min(560px, 64svh);
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(16, 45, 72, 0.04), rgba(16, 45, 72, 0.92)),
    var(--poster, url("assets/ritual-poster.jpeg"));
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.56);
  border-radius: 12px;
}

.event-card__content {
  position: relative;
  z-index: 1;
}

.event-date {
  display: grid;
  place-items: center;
  width: 84px;
  aspect-ratio: 1;
  margin-bottom: 18px;
  background: rgba(103, 201, 220, 0.84);
  border-radius: 14px;
  box-shadow: 0 7px 0 rgba(24, 52, 82, 0.24);
}

.event-date strong {
  display: block;
  font-size: 2.05rem;
  line-height: 0.9;
}

.event-date span {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-status {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(16, 36, 62, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
}

.event-card h3 {
  margin: 14px 0 8px;
  font-size: 2.2rem;
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(24, 52, 82, 0.28);
}

.event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 750;
}

.event-meta {
  margin-bottom: 8px !important;
  color: #ffffff !important;
  font-weight: 900;
}

.story-hint {
  display: inline-flex;
  margin-top: 18px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-section-cta {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 46px;
  margin: 12px auto 0;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(16, 36, 62, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  animation: cta-bounce 1.45s ease-in-out infinite;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: rgba(24, 72, 106, 0.54);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.organizers {
  display: flex;
  min-height: calc(100svh - 74px);
  padding: 28px 0;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.logo-groups {
  display: grid;
  gap: clamp(22px, 4svh, 42px);
  justify-items: center;
}

.logo-group {
  display: grid;
  width: min(920px, 100%);
  gap: 18px;
  justify-items: center;
}

.logo-group h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(0.72rem, 2.2vw, 0.86rem);
  font-weight: 950;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5svh, 22px) 28px;
  width: 100%;
  align-items: center;
  justify-items: center;
}

.logo-item {
  display: grid;
  place-items: center;
  min-height: clamp(38px, 7svh, 54px);
  padding: 0;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.logo-item img {
  display: block;
  max-width: min(180px, 100%);
  max-height: clamp(44px, 9svh, 82px);
  object-fit: contain;
}

.logo-item span {
  font-size: clamp(1rem, 4vw, 1.25rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  min-height: 74px;
  padding: 24px 16px;
  color: #fff;
  background: #000;
  border-top: 0;
}

.footer span {
  font-weight: 900;
  letter-spacing: 0.16em;
}

.event-page {
  width: min(1120px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.event-detail {
  display: grid;
  gap: 22px;
}

.event-detail__poster {
  margin: 0;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.event-detail__poster img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.event-detail__content {
  padding-bottom: 20px;
}

.event-detail__content h1 {
  color: var(--cyan);
  font-size: clamp(3.3rem, 17vw, 8rem);
}

.event-detail__meta {
  margin: 20px 0 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
}

.event-detail__description {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.5;
  font-weight: 750;
}

.event-block {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.event-block h2 {
  font-size: 1.25rem;
  line-height: 1;
}

.event-block p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 780;
}

.shotgun-widget {
  width: 100%;
  margin-top: 24px;
  overflow: hidden;
  background: rgba(16, 36, 62, 0.28);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.shotgun-widget iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 0;
}

.ticket-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 22px;
  padding: 0 17px;
  color: var(--navy);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 0 rgba(25, 50, 82, 0.22);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.ticket-link:hover,
.ticket-link:focus-visible {
  background: #7ee0ed;
  transform: translateY(-1px);
}

.ticket-link[aria-disabled="true"] {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.ticket-link--large {
  width: 100%;
}

@media (min-width: 760px) {
  .hero {
    place-items: center;
  }

  .hero__video--backdrop {
    display: block;
    filter: blur(28px) saturate(1.12) brightness(0.62);
    opacity: 0.72;
    transform: scale(1.08);
  }

  .hero__video:not(.hero__video--backdrop) {
    inset: auto;
    width: min(430px, calc(100vw - 80px));
    height: min(780px, calc(100svh - 44px));
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 34%, transparent 66%, rgba(0, 0, 0, 0.52)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.28));
  }

  .hero-header,
  .hero__content {
    z-index: 2;
  }

  .hero__content {
    padding-bottom: 42px;
  }

  .event-list {
    grid-auto-columns: minmax(300px, 380px);
  }

  .event-card {
    min-height: min(620px, 66svh);
  }

  .logo-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .event-detail {
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    align-items: end;
    min-height: calc(100svh - 120px);
  }

  .ticket-link--large {
    width: max-content;
  }
}
