:root {
  --night: #03152f;
  --paper: #f5f3ec;
  --muted: rgba(245, 243, 236, 0.68);
  --line: rgba(245, 243, 236, 0.22);
  --gold: #f5a900;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--night);
}

body {
  color: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1 {
  margin: 0;
}

.site-shell {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
}

.film {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
  background: var(--night) url("assets/augsburg-poster.jpg") center / cover no-repeat;
}

.film__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.76) contrast(1.06) brightness(0.73);
  animation: film-arrival 1.8s ease both;
}

.video-fallback .film__video {
  display: none;
}

.film__wash,
.film__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.film__wash {
  background:
    linear-gradient(
      90deg,
      rgba(2, 13, 30, 0.84) 0%,
      rgba(2, 13, 30, 0.53) 50%,
      rgba(2, 13, 30, 0.7) 100%
    ),
    linear-gradient(
      180deg,
      rgba(1, 11, 25, 0.34) 0%,
      rgba(1, 11, 25, 0.02) 38%,
      rgba(1, 11, 25, 0.82) 100%
    );
}

.film__vignette {
  box-shadow: inset 0 0 18vw rgba(0, 0, 0, 0.38);
}

.masthead,
.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline:
    max(clamp(1.25rem, 4.6vw, 5rem), env(safe-area-inset-left))
    max(clamp(1.25rem, 4.6vw, 5rem), env(safe-area-inset-right));
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.masthead {
  padding-top: max(clamp(1.5rem, 4vh, 3.25rem), env(safe-area-inset-top));
  animation: rise-in 0.9s 0.15s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
}

.status__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 169, 0, 0.13);
}

.edition {
  color: rgba(245, 243, 236, 0.5);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template:
    "logo logo" minmax(13rem, 1fr)
    "announcement note" auto / minmax(0, 1fr) minmax(12rem, 20rem);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(100% - clamp(2.5rem, 9.2vw, 10rem), 110rem);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 3.5rem) 0 clamp(1.8rem, 4.5vh, 4rem);
}

.logo-stage {
  grid-area: logo;
  align-self: center;
  justify-self: center;
  width: min(66vw, 61rem);
  filter: drop-shadow(0 1.25rem 2.75rem rgba(0, 0, 0, 0.25));
  animation: logo-reveal 1.15s 0.2s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.brand-logo {
  width: 100%;
  height: auto;
}

.announcement {
  grid-area: announcement;
  max-width: 47rem;
  animation: rise-in 1s 0.45s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.announcement__label {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: min(100%, 28rem);
  margin-bottom: clamp(0.9rem, 2vh, 1.4rem);
  color: rgba(245, 243, 236, 0.72);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.announcement__rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 169, 0, 0.88), transparent);
  transform-origin: left;
  animation: line-grow 1.1s 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.announcement h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.4vw, 7.25rem);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.announcement h1 em {
  color: var(--gold);
  font-weight: 400;
}

.announcement > p {
  max-width: 38rem;
  margin-top: clamp(1rem, 2.3vh, 1.6rem);
  color: var(--muted);
  font-size: clamp(0.88rem, 1.05vw, 1.03rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.return-note {
  grid-area: note;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  color: rgba(245, 243, 236, 0.58);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  animation: rise-in 1s 0.65s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.return-note__index {
  color: var(--gold);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.footer {
  gap: 1.3rem;
  padding-bottom: max(clamp(1.25rem, 3.5vh, 2.5rem), env(safe-area-inset-bottom));
  color: rgba(245, 243, 236, 0.46);
  animation: rise-in 0.9s 0.75s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.progress {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: rgba(245, 243, 236, 0.15);
}

.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--gold);
  animation: progress-travel 8s cubic-bezier(0.5, 0, 0.4, 1) infinite;
}

@keyframes film-arrival {
  from {
    opacity: 0;
    scale: 1.02;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes logo-reveal {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

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

@keyframes line-grow {
  from {
    scale: 0 1;
  }
  to {
    scale: 1 1;
  }
}

@keyframes progress-travel {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(440%);
  }
}

@media (max-width: 720px) {
  .masthead,
  .footer {
    font-size: 0.59rem;
  }

  .edition {
    display: none;
  }

  .hero {
    grid-template:
      "logo" minmax(9rem, 1fr)
      "announcement" auto
      "note" auto / minmax(0, 1fr);
    gap: clamp(1rem, 3vh, 1.65rem);
    width: calc(100% - 2.5rem);
    padding-top: clamp(1rem, 3vh, 2rem);
    padding-bottom: clamp(1.25rem, 3vh, 2rem);
  }

  .logo-stage {
    width: min(91vw, 37rem);
  }

  .announcement__label {
    margin-bottom: 0.8rem;
    font-size: 0.58rem;
  }

  .announcement h1 {
    font-size: clamp(3.25rem, 16vw, 5.15rem);
    line-height: 0.92;
  }

  .announcement > p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .desktop-break {
    display: none;
  }

  .return-note {
    max-width: 18rem;
    padding-top: 0.7rem;
    font-size: 0.65rem;
  }

  .footer > p:last-child {
    display: none;
  }
}

@media (max-height: 680px) {
  .masthead {
    padding-top: max(1rem, env(safe-area-inset-top));
  }

  .hero {
    padding-block: 0.75rem 1rem;
  }

  .logo-stage {
    width: min(69vw, 47rem);
  }

  .announcement h1 {
    font-size: clamp(2.8rem, 9vh, 4.5rem);
  }

  .announcement > p {
    margin-top: 0.65rem;
  }

  .return-note {
    display: none;
  }

  .footer {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .hero {
    grid-template:
      "logo announcement" 1fr / minmax(15rem, 1fr) minmax(18rem, 0.9fr);
    align-items: center;
  }

  .logo-stage {
    width: min(47vw, 40rem);
  }

  .announcement h1 {
    font-size: clamp(3rem, 10vw, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .film__video {
    display: none;
  }
}
