* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
}

/* Hero / full-page background */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;   /* fallback for browsers without dvh support */
  min-height: 100dvh;  /* accounts for mobile browser UI (address bar) */
  background-image: url("DYP-Sir-banner.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Fixed/parallax background only where it's cheap to render (desktop, no reduced-motion) */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .hero {
    background-attachment: fixed;
  }
}

/* Mobile portrait: use the pre-cropped 1080x1920 image */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    background-image: url("1080x1920.webp");
  }
}

/* Landscape phones: avoid an overly short hero */
@media (max-width: 900px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  .hero {
    background-attachment: scroll !important;
  }
}
