:root {
  --ink: #0E2A20;          /* deep shutter green */
  --paper: #FFFFFF;
  --gold: #E6C478;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--ink);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 300px;
  overflow: hidden;
}

/* Background photo: one slow, steady drift. No scripts. */
.hero__photo,
.hero__shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 50%;
  transform-origin: 38% 60%;
  -webkit-animation: drift 36s ease-in-out infinite alternate;
          animation: drift 36s ease-in-out infinite alternate;
  will-change: transform;
}

/* Darkens the lower part of the photo so the title reads cleanly. */
.hero__shade {
  background:
    linear-gradient(to top,
      rgba(14, 42, 32, .94) 0%,
      rgba(14, 42, 32, .82) 18%,
      rgba(14, 42, 32, .45) 38%,
      rgba(14, 42, 32, 0) 62%),
    linear-gradient(to bottom, rgba(14, 42, 32, .28) 0%, rgba(14, 42, 32, 0) 22%);
}

.hero__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 24px 9vh;
  padding-bottom: calc(9vh + env(safe-area-inset-bottom));
  text-align: center;
}

.hero__title {
  margin: 0;
  font-weight: inherit;
}

.hero__school,
.hero__committee,
.hero__rule {
  display: block;
}

.hero__school {
  font-family: "Noto Serif Bengali", "Tiro Bangla", "SolaimanLipi", serif;
  font-weight: 700;
  font-size: 34px;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.35;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hero__rule {
  width: 72px;
  height: 2px;
  margin: 18px auto 16px;
  margin: clamp(.7rem, 1.8vh, 1.3rem) auto clamp(.6rem, 1.6vh, 1.1rem);
  background: var(--gold);
}

.hero__committee {
  font-family: "Anek Bangla", "Hind Siliguri", "SolaimanLipi", sans-serif;
  font-weight: 500;
  font-size: 20px;
  font-size: clamp(1.2rem, 2.7vw, 2.1rem);
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--gold);
}

@-webkit-keyframes drift {
  from { -webkit-transform: scale(1.02) translate3d(0, 0, 0); }
  to   { -webkit-transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}
@keyframes drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}

@media (max-height: 480px) {
  .hero__text { padding-bottom: 6vh; }
  .hero__school { font-size: clamp(1.5rem, 5vw, 2.4rem); }
  .hero__committee { font-size: clamp(1rem, 2.6vw, 1.35rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__photo img { -webkit-animation: none; animation: none; }
}
