/* V17: fixed square hero accent, softened campus image, relocated logo, and floating partnership banner */
.hero {
  background-image: url('./assets/donghong-campus-hero-v17-clean.png');
  background-position: center center;
  background-size: cover;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(239, 244, 247, .4) 0%, rgba(225, 234, 240, .22) 38%, rgba(15, 39, 57, .17) 100%),
    linear-gradient(180deg, rgba(9, 28, 42, .14), rgba(9, 28, 42, .24));
}

.hero::after {
  background: linear-gradient(180deg, transparent 58%, rgba(247, 249, 250, .68));
}

.hero-glow {
  top: auto;
  bottom: 12.5%;
  left: 5.5vw;
  width: min(620px, 47vw);
  height: 176px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(225, 234, 239, .34), rgba(16, 35, 49, .16));
  box-shadow: 0 24px 70px rgba(8, 28, 43, .16), inset 0 0 54px rgba(255, 255, 255, .16);
  animation: none;
}

.hero-copy {
  text-shadow: 0 2px 20px rgba(235, 242, 246, .74);
}

.hero-building-logo {
  position: absolute;
  z-index: 2;
  top: 31%;
  right: 19.5%;
  width: 225px;
  padding: 11px 15px;
  background: rgba(243, 247, 249, .75);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 14px 34px rgba(5, 25, 41, .2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hero-building-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.partnership-frame {
  display: block;
  cursor: pointer;
  transition: transform .5s cubic-bezier(.2, .75, .25, 1), box-shadow .5s ease;
  will-change: transform;
}

.partnership-frame:focus-visible {
  outline: 2px solid #b98a3d;
  outline-offset: 8px;
}

.partnership-frame:hover,
.partnership-frame:focus-within {
  transform: translateY(-12px);
  box-shadow: 0 36px 82px rgba(33, 46, 55, .2);
}

.partnership-frame img {
  transition: transform .65s cubic-bezier(.2, .75, .25, 1), filter .5s ease;
}

.partnership-frame:hover img,
.partnership-frame:focus-within img {
  transform: scale(1.012);
  filter: brightness(1.025);
}

@media (max-width: 980px) {
  .hero {
    background-position: 50% center;
  }

  .hero-glow {
    left: 20px;
    width: min(600px, calc(100% - 40px));
    height: 164px;
  }

  .hero-building-logo {
    top: 24%;
    right: 5vw;
    width: 184px;
  }
}

@media (max-width: 620px) {
  .hero {
    background-position: 54% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(236, 242, 246, .72), rgba(219, 229, 235, .38) 72%, rgba(11, 32, 48, .18)),
      linear-gradient(180deg, rgba(9, 28, 42, .12), rgba(9, 28, 42, .24));
  }

  .hero-glow {
    bottom: 14%;
    height: 210px;
  }

  .hero-building-logo {
    top: 14%;
    right: 20px;
    width: 142px;
    padding: 8px 10px;
  }

  .partnership-frame:hover,
  .partnership-frame:focus-within {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .partnership-frame,
  .partnership-frame img {
    transition: none;
  }

  .partnership-frame:hover,
  .partnership-frame:focus-within,
  .partnership-frame:hover img,
  .partnership-frame:focus-within img {
    transform: none;
  }
}
