:root {
  color-scheme: dark;
  --edge: clamp(1.25rem, 3vw, 2.3rem);
  --text: rgba(255, 255, 255, 0.96);
  --soft-text: rgba(255, 255, 255, 0.88);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  background: #10130f;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.hero__video,
.hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  z-index: -3;
  object-fit: cover;
  filter: brightness(0.84) contrast(1.08);
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(156, 181, 166, 0.28) 0%, rgba(219, 216, 187, 0.13) 35%, rgba(34, 28, 22, 0.15) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(47, 45, 30, 0.11) 55%, rgba(20, 18, 12, 0.2) 100%);
  pointer-events: none;
}

.entry-gate {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: var(--edge);
  background:
    linear-gradient(90deg, rgba(177, 202, 188, 0.2), rgba(25, 22, 16, 0.04)),
    rgba(18, 19, 14, 0.12);
  backdrop-filter: blur(3px);
}

.entry-gate[hidden] {
  display: none;
}

.entry-gate__panel {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  width: min(24rem, 100%);
  padding: 0;
  color: var(--text);
  text-align: center;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.24);
}

.entry-gate__panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.05rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.entry-gate__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.1em;
  cursor: pointer;
}

.entry-gate__button:hover {
  color: #fff;
}

.entry-gate__button:focus-visible {
  outline: 0;
  text-decoration-thickness: 0.14em;
}

.entry-gate__button svg {
  width: 1.22rem;
  height: 1.22rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.is-gated .sound-toggle,
.is-gated .hero__center,
.is-gated .hero__about,
.is-gated .hero__logos {
  opacity: 0;
  pointer-events: none;
}

.is-gated .imprint-link {
  position: fixed;
  right: var(--edge);
  bottom: clamp(1rem, 2.25vw, 1.8rem);
  z-index: 5;
}

.sound-toggle {
  position: absolute;
  top: var(--edge);
  right: var(--edge);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(18, 19, 15, 0.16);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sound-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

.sound-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle__icon--on,
.sound-toggle[aria-pressed="true"] .sound-toggle__icon--off {
  display: none;
}

.sound-toggle[aria-pressed="true"] .sound-toggle__icon--on {
  display: block;
}

.hero__wash {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(190, 211, 199, 0.34) 0%, rgba(190, 211, 199, 0.16) 19%, rgba(190, 211, 199, 0) 42%),
    linear-gradient(0deg, rgba(19, 17, 12, 0.34) 0%, rgba(19, 17, 12, 0) 28%);
  mix-blend-mode: screen;
  opacity: 0.82;
  pointer-events: none;
}

.hero__center {
  place-self: center;
  width: min(34rem, calc(100vw - (var(--edge) * 2)));
  padding-block: clamp(5rem, 12vh, 8rem);
  text-align: center;
  text-shadow: 0 1px 15px rgba(0, 0, 0, 0.2);
}

.hero__center h1 {
  margin: 0 0 1.05rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.05rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero__center p {
  margin: 0 0 1.35rem;
  color: var(--soft-text);
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  font-weight: 400;
  line-height: 1.08;
}

.hero__center a {
  display: inline-block;
  color: var(--text);
  font-size: clamp(1rem, 1.22vw, 1.15rem);
  line-height: 1.1;
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.08em;
}

.hero__center a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.28rem;
}

.hero__footer {
  position: absolute;
  right: var(--edge);
  bottom: clamp(1.15rem, 2.25vw, 2rem);
  left: var(--edge);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  pointer-events: none;
}

.hero__about,
.hero__sponsors p {
  margin: 0;
  color: var(--text);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  font-weight: 700;
  line-height: 1.03;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero__about {
  max-width: 20rem;
  font-weight: 400;
}

.hero__about-copy--portrait,
.hero__about-copy--compact {
  display: none;
}

.hero__sponsors {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
  min-width: min(24rem, 45vw);
}

.hero__sponsors p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.22vw, 1.18rem);
  font-weight: 400;
}

.imprint-link {
  pointer-events: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.12em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.imprint-link:hover,
.imprint-link:focus-visible {
  color: var(--text);
}

.imprint-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.22rem;
}

.hero__logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.05rem, 2.2vw, 1.85rem);
  width: 100%;
}

.sponsor-word {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-family: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", serif;
  font-size: clamp(1.28rem, 2.35vw, 2.1rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}

@media (max-width: 760px) {
  .hero {
    min-height: 100dvh;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(162, 185, 170, 0.34) 0%, rgba(217, 213, 184, 0.08) 60%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(23, 20, 13, 0.28) 100%);
  }

  .hero__center {
    align-self: center;
    padding-block: 4.5rem 11rem;
  }

  .sound-toggle {
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero__footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .hero__about {
    max-width: 17rem;
  }

  .hero__sponsors {
    justify-self: end;
    gap: 0.65rem;
    min-width: 0;
    width: min(16rem, 64vw);
  }

  .hero__logos {
    gap: 0.9rem;
  }

  .imprint-link {
    font-size: 0.72rem;
  }
}

.legal-page {
  min-height: 100%;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(156, 181, 166, 0.18), rgba(34, 28, 22, 0.16)),
    #10130f;
}

.legal {
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 7vw, 4rem) 0;
  color: var(--text);
}

.legal__back,
.legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.075em;
  text-underline-offset: 0.12em;
}

.legal__back {
  display: inline-block;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.legal h1 {
  margin: 0 0 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.legal section {
  margin: 0 0 1.6rem;
}

.legal h2 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
}

.legal p {
  margin: 0;
  color: var(--soft-text);
  font-size: 0.95rem;
  line-height: 1.45;
}

.legal p + p {
  margin-top: 0.8rem;
}

.legal__note {
  margin-top: 2.5rem;
  max-width: 34rem;
}

@media (max-width: 430px) {
  :root {
    --edge: 1rem;
  }

  .hero__center {
    padding-block: 4rem 14.5rem;
  }

  .hero__center p {
    line-height: 1.14;
  }

  .hero__footer {
    bottom: 1rem;
  }

  .hero__about,
  .hero__sponsors p {
    font-size: 0.76rem;
  }

  .hero__about {
    max-width: 12rem;
  }

  .hero__sponsors {
    width: min(14rem, 70vw);
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  .hero__footer {
    left: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero__about {
    max-width: 10.8rem;
    margin-bottom: clamp(2.8rem, 9vh, 4.8rem);
  }

  .hero__about-copy--default {
    display: none;
  }

  .hero__about-copy--portrait {
    display: inline;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .hero__about {
    max-width: 9.8rem;
  }

  .hero__about-copy--portrait {
    display: none;
  }

  .hero__about-copy--compact {
    display: inline;
  }
}
