/* Home page hero — js/umbc-hero.js */
@font-face { font-family: "UMBC Metropolis"; src: url("Metropolis-Regular.woff2") format("woff2"), url("Metropolis-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "UMBC Metropolis"; src: url("Metropolis-SemiBold.woff2") format("woff2"), url("Metropolis-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "UMBC Metropolis"; src: url("Metropolis-Bold.woff2") format("woff2"), url("Metropolis-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

/* hide the old hero until the new one is in (no flash of the big logo) */
html:not(.umbc-hero-ready) body > div.ps120, html:not(.umbc-hero-ready) body > div.ps145 { visibility: hidden; }

#umbc-hero {
  --navy: #103d51; --navy-2: #0a2a38; --blue: #63c5f1; --blue-2: #0b8fd0; --orange: #ff9600;
  --text: #cfe2eb;
  position: relative; display: block; width: 100%; clear: both; overflow: hidden; box-sizing: border-box;
  background: radial-gradient(circle at 78% 48%, #1d5f7c 0%, rgba(29, 95, 124, 0) 46%),
              linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 50%, #145068 100%);
  font-family: "UMBC Metropolis", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); text-align: left; word-spacing: normal;
}
#umbc-hero *, #umbc-hero *::before, #umbc-hero *::after { box-sizing: border-box; }
#umbc-hero h1, #umbc-hero h2, #umbc-hero p { margin: 0; padding: 0; max-height: none; word-spacing: normal; }
#umbc-hero a { text-decoration: none; }
#umbc-hero button { font: inherit; }
#umbc-hero .uh-ic { width: 20px; height: 20px; flex: 0 0 auto; }

/* background art */
#umbc-hero .uh-bg { position: absolute; inset: 0; pointer-events: none; }
#umbc-hero .uh-pattern { position: absolute; top: 0; right: 0; width: 65%; height: 100%; color: rgba(99, 197, 241, .13); }
#umbc-hero .uh-glow { position: absolute; left: -180px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 150, 0, .16), transparent 65%); }

#umbc-hero .uh-wrap {
  max-width: 1240px; margin: 0 auto; padding: calc(var(--uh-hh, 81px) + 40px) 24px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 740px;
}
#umbc-hero .uh-copy { position: relative; z-index: 2; grid-column: 1; }

/* see-through header over the hero (home page) */
.umbc-hdr-bg { transition: opacity .35s ease, box-shadow .35s ease, background-color .35s ease, backdrop-filter .35s ease; }
html.umbc-hdr-clear .umbc-hdr-bg { box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.umbc-hdr-clear .umbc-hdr-bg:not(.umbc-hdr-fill) { background-color: transparent !important; }
html.umbc-hdr-clear .umbc-hdr-fill { opacity: 0 !important; }

/* text (fixed) */
#umbc-hero .uh-copy > * { animation: uh-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
#umbc-hero .uh-copy > :nth-child(2) { animation-delay: .08s; }
#umbc-hero .uh-copy > :nth-child(3) { animation-delay: .16s; }
#umbc-hero .uh-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes uh-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

#umbc-hero .uh-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; border-radius: 40px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
}
#umbc-hero .uh-eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 150, 0, .25); }
#umbc-hero h1, #umbc-hero .uh-h {
  margin-top: 22px; font-family: "Metropolis 6", "UMBC Metropolis", Arial, sans-serif; font-weight: 700;
  font-size: clamp(36px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -.01em; color: #fff;
}
#umbc-hero h1 em, #umbc-hero .uh-h em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }
#umbc-hero h1 em::after, #umbc-hero .uh-h em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .14em; border-radius: 1em; background: rgba(255, 150, 0, .35);
}
#umbc-hero .uh-copy p { margin-top: 20px; max-width: 540px; font-size: 18px; color: var(--text); }
#umbc-hero .uh-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
#umbc-hero .uh-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 12px; font-weight: 700; font-size: 16px;
  background: var(--orange); color: #fff; box-shadow: 0 12px 26px rgba(255, 150, 0, .3); transition: transform .2s, box-shadow .2s, background .2s;
}
#umbc-hero .uh-btn:hover { background: #ffa526; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255, 150, 0, .4); }
#umbc-hero .uh-btn .uh-ic { transition: transform .2s; }
#umbc-hero .uh-btn:hover .uh-ic { transform: translateX(4px); }
#umbc-hero .uh-btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
#umbc-hero .uh-btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--blue); }


/* the college logo, big, with the photos inside its two leaves */
#umbc-hero .uh-art {
  /* bigger than the hero: a little of it is cut at the top (under the header), the bottom and the right */
  position: absolute; z-index: 1; right: -7.5%; top: -46px; aspect-ratio: 0.76 / 1;
  height: min(calc(100% + 96px), 62vw);
}
#umbc-hero .uh-emblem { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
#umbc-hero .uh-emblem-top { filter: none; }
#umbc-hero .uh-photos { position: absolute; inset: 0; overflow: hidden; clip-path: url(#uh-leaves); -webkit-clip-path: url(#uh-leaves); }
#umbc-hero .uh-photos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08);
  transition: opacity .9s ease, transform 7.5s ease-out;
}
#umbc-hero .uh-photos img.is-active { opacity: 1; transform: scale(1); }
#umbc-hero .uh-e-strip { fill: #64c6f1; }
#umbc-hero .uh-e-leaf { fill: #bce6f9; }
#umbc-hero .uh-e-edge { fill: none; stroke: #bce6f9; stroke-width: 4; }
#umbc-hero .uh-dots { position: absolute; width: 130px; left: -20%; bottom: 2%; color: var(--blue); opacity: .35; }
#umbc-hero .uh-plus { position: absolute; width: 22px; color: var(--blue); animation: uh-float 5s ease-in-out infinite; }
#umbc-hero .uh-plus-1 { left: -6%; top: 16%; }
#umbc-hero .uh-plus-2 { left: -4%; bottom: 36%; color: var(--orange); width: 16px; animation-delay: -2.5s; }
@keyframes uh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

#umbc-hero .uh-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .97); box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  animation: uh-float 6s ease-in-out infinite;
}
#umbc-hero .uh-card b { display: block; color: var(--navy); font-size: 15px; line-height: 1.2; }
#umbc-hero .uh-card small { display: block; color: #6f8090; font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
#umbc-hero .uh-card-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--blue-2), var(--blue)); flex: 0 0 auto; }
#umbc-hero .uh-card-ic.orange { background: linear-gradient(135deg, var(--orange), #ffb347); }
#umbc-hero .uh-card-ic.navy { background: linear-gradient(135deg, var(--navy), #2a6f8f); }
#umbc-hero .uh-card-1 { left: -12%; top: 68%; }
#umbc-hero .uh-card-2 { left: -10%; top: 46%; max-width: 230px; animation-delay: -2s; }
#umbc-hero .uh-card-3 { left: -10%; top: 22%; animation-delay: -4s; }

@media (max-width: 1100px) {
  #umbc-hero .uh-card-2 { display: none; }
  #umbc-hero .uh-card-1, #umbc-hero .uh-card-3 { left: -10%; }
}
@media (max-width: 900px) {
  #umbc-hero .uh-wrap { grid-template-columns: 1fr; gap: 44px; padding: calc(var(--uh-hh, 70px) + 60px) 28px 44px; min-height: 0; }
  #umbc-hero .uh-btns { margin-top: 40px; }
  #umbc-hero .uh-art { position: relative; right: auto; top: auto; order: 0; justify-self: center; height: auto; width: min(78%, 340px); margin: 4px auto 0; }
  #umbc-hero .uh-copy { grid-column: auto; }
  #umbc-hero .uh-pattern { width: 100%; height: 60%; }
  #umbc-hero .uh-card { padding: 9px 12px 9px 9px; border-radius: 13px; }
  #umbc-hero .uh-card-ic { width: 34px; height: 34px; border-radius: 10px; }
  #umbc-hero .uh-card-ic .uh-ic { width: 17px; height: 17px; }
  #umbc-hero .uh-card b { font-size: 13.5px; }
  #umbc-hero .uh-card small { font-size: 11.5px; }
  #umbc-hero .uh-card-1 { display: none; }
  #umbc-hero .uh-card-2 { display: none; }
  #umbc-hero .uh-card-3 { display: none; }
  #umbc-hero .uh-dots { width: 70px; left: -20px; bottom: 4%; }
  #umbc-hero .uh-plus-1 { left: -10px; }
  #umbc-hero .uh-copy p { font-size: 16.5px; }
}
@media (max-width: 480px) {
  #umbc-hero .uh-btns { flex-direction: column; }
  #umbc-hero .uh-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  #umbc-hero *, #umbc-hero *::before, #umbc-hero *::after { animation: none !important; transition: none !important; }
}
