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

html, body {
  margin: 0;
  height: 100%;
  background: #7fc0e8 url("/poster.jpg") center / cover no-repeat;
  color: #fff;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

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

/* ---------- Overlay ---------- */
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  /* centre slightly above middle so the lawn shows below, like the reference */
  padding-bottom: max(12vh, 1.25rem);
  opacity: 0;
  transform: translateY(32px);
  visibility: hidden;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0.9s;
  pointer-events: none;
}

.overlay.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1), visibility 0s;
  pointer-events: auto;
}

.panel {
  width: min(100%, 46rem);
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 5vw, 3.5rem);
  text-align: center;
  background: rgba(20, 58, 105, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(18px, 3vw, 32px);
  box-shadow: 0 20px 60px rgba(8, 30, 60, 0.35);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  backdrop-filter: blur(8px) saturate(1.1);
}

.logo {
  display: block;
  width: min(100%, 30rem);
  height: auto;
  margin: 0 auto;
}

.heading {
  margin: clamp(1rem, 2.5vw, 1.6rem) 0 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.phone {
  margin: clamp(0.6rem, 1.6vw, 1rem) 0 0;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.8vw, 1.6rem);
  letter-spacing: 0.01em;
}

.phone a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.phone a:hover,
.phone a:focus-visible {
  border-color: #fff;
}

.phone a:focus-visible,
.replay:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Replay button ---------- */
.replay {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  font: 600 0.85rem/1 "Montserrat", system-ui, sans-serif;
  color: #fff;
  background: rgba(20, 58, 105, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, background 0.2s ease, visibility 0s linear 0.4s;
}

.replay.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, background 0.2s ease, visibility 0s;
}

.replay:hover { background: rgba(20, 58, 105, 0.8); }

/* ---------- Static fallback (video error / reduced motion) ---------- */
.is-static .hero { display: none; }
.is-static .overlay { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .hero { display: none; }
  .overlay, .overlay.is-visible { transition: none; transform: none; }
}

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