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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #530E57; /* matches GIF edge colour */
  color: #EDEBE6;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

a { color: #EDEBE6; }
a:hover { color: #8C8A86; }

/* Desktop: GIF fills the viewport, never cropped or distorted */
.page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Mobile portrait: GIF spans full width, centred vertically */
@media (orientation: portrait) {
  .page {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .hero {
    width: 100%;
    height: auto;
    max-height: 100%;
    transform: scale(1.694); /* mobile: ~69% zoom, centred */
  }
}
