/* ============================================================
   UMS LANDING — cinematic photo hero
   Golden badge intro + institution name + rotating education
   words, over a Ken-Burns crossfade of real graduation photos.
   Brand-themeable via --brand, --brand-dark, --accent
   ============================================================ */

:root {
  --ink: #16233a;
  --muted: #5c6b86;
  --line: #e4eaf3;
  --card: #ffffff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #0a1020;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- Cinematic photo backdrop ---------- */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0a1020; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 22%;
  opacity: 0; transition: opacity 2.4s ease;
  transform: scale(1.06); will-change: transform, opacity;
}
.slide.is-active { opacity: 1; animation: kenburns 14s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to   { transform: scale(1.11) translate3d(-1.2%, -1.6%, 0); }
}

/* Lighter, brand-tinted scrim: the campus photos stay clearly visible while
   the headline text keeps its contrast (darker at the very top and bottom). */
.scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(75% 65% at 50% 40%, transparent 0%, rgba(6,10,22,.14) 65%, rgba(5,8,18,.34) 100%),
    linear-gradient(180deg,
      rgba(8,14,30,.46) 0%,
      rgba(8,14,30,.16) 28%,
      rgba(8,14,30,.24) 60%,
      color-mix(in srgb, var(--brand-dark) 52%, rgba(6,10,22,.52)) 100%);
}
/* Subtle film grain / sheen. */
.grain { position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(100% 60% at 50% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); }

.wrap { position: relative; z-index: 2; }

/* ---------- Nav (floating dark bar, light text) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(6,10,22,.55), rgba(6,10,22,0));
  transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(9,14,28,.85); backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0,0,0,.28); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 800;
  letter-spacing: .3px; font-size: 16px; color: #fff; }
.nav__brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 6px 18px rgba(0,0,0,.4); }
.nav__links { display: flex; align-items: center; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav__links a { color: rgba(255,255,255,.82); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: #1a1200;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 74%, #6e5000));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 55%, transparent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 96px clamp(20px, 6vw, 40px) 60px; color: #fff; }
.hero-inner { max-width: 860px; }

/* Badge with golden circular loading motion. */
.badge-stage { position: relative; width: 148px; height: 148px; margin: 0 auto 26px; }
.badge-stage .ring {
  position: absolute; inset: -20px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent) 18%, #fff2cf 30%,
              transparent 46%, transparent 70%, var(--accent) 92%, transparent);
  filter: blur(4px); opacity: .95; animation: spin 4.5s linear infinite;
}
.badge-stage .ring2 {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 55%, transparent) inset,
              0 0 22px color-mix(in srgb, var(--accent) 40%, transparent);
  animation: spin 10s linear infinite reverse;
}
.badge-stage .ring-dash {
  position: absolute; inset: -30px; border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: .6; animation: spin 22s linear infinite;
}
.badge-stage img {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  border-radius: 50%; object-fit: cover; background: #fff;
  box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 5px rgba(7,11,24,.55),
              0 0 44px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.eyebrow { display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 0 16px; font-weight: 700; font-size: 12.5px; letter-spacing: 3px;
  text-transform: uppercase; color: color-mix(in srgb, var(--accent) 45%, white); }
.eyebrow .line { width: 34px; height: 1px; background: color-mix(in srgb, var(--accent) 60%, transparent); }
.eyebrow--dark { justify-content: flex-start; color: var(--brand-dark); }
.eyebrow--dark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero h1 { font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6.4vw, 88px); line-height: 1.02; letter-spacing: -.5px;
  margin: 0 0 14px; color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.5); }

.rotator { font-size: clamp(17px, 2.3vw, 27px); font-weight: 500; margin: 0 0 20px;
  color: #eaf0ff; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.rot { display: inline-grid; vertical-align: bottom; }
.rot .rw { grid-area: 1 / 1; font-family: var(--serif); font-style: italic; font-weight: 700;
  color: color-mix(in srgb, var(--accent) 40%, white);
  opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
.rot .rw.is-on { opacity: 1; transform: none; }

.lede { max-width: 620px; margin: 0 auto 30px; font-size: clamp(14px, 1.5vw, 16.5px);
  line-height: 1.62; color: rgba(233,239,255,.9); text-shadow: 0 1px 12px rgba(0,0,0,.5); }

.cta-row { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; }
.cta { display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px;
  border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.cta--primary { color: #1a1200;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 74%, #6e5000));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 40%, transparent); }
.cta--primary b { transition: transform .2s; }
.cta--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px color-mix(in srgb, var(--accent) 58%, transparent); }
.cta--primary:hover b { transform: translateX(4px); }
.cta--ghost { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.42);
  color: #fff; backdrop-filter: blur(4px); }
.cta--ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.18);
  border-color: color-mix(in srgb, var(--accent) 70%, white); }

.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(255,255,255,.7); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(6px);} }

/* ---------- Staged entrance ("loading" reveal) ---------- */
.reveal-1,.reveal-2,.reveal-3,.reveal-4,.reveal-5,.reveal-6 {
  opacity: 0; transform: translateY(20px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal-1 { animation-delay: .15s; }
.reveal-2 { animation-delay: .55s; }
.reveal-3 { animation-delay: .8s; }
.reveal-4 { animation-delay: 1.05s; }
.reveal-5 { animation-delay: 1.3s; }
.reveal-6 { animation-delay: 1.55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Modules (bright) ---------- */
.section { position: relative; z-index: 2; background: #f7faff; }
.section { max-width: none; padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 64px); }
.section > * { max-width: 1300px; margin-left: auto; margin-right: auto; }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -.4px; margin: 8px auto 12px; line-height: 1.08; color: var(--ink); }
.section .sub { color: var(--muted); max-width: 620px; margin: 0 0 44px; line-height: 1.6; font-size: 16px; }
.section .eyebrow--dark { display: inline-flex; gap: 9px; }

.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.mod { padding: 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 6px 20px -12px rgba(20,35,58,.2); transition: transform .18s, box-shadow .2s, border-color .2s; }
.mod.anim { opacity: 0; transform: translateY(18px); }
.mod.anim.reveal { opacity: 1; transform: none; transition: opacity .6s, transform .6s; }
.mod:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -18px rgba(20,35,58,.34);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); }
.mod .m-ico { font-size: 26px; }
.mod h4 { margin: 12px 0 6px; font-size: 16px; color: var(--ink); }
.mod p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; padding: 46px 6vw 62px; text-align: center;
  color: #b9c6e0; font-size: 13px; background: var(--brand-dark); border-top: 4px solid var(--accent); }
.footer .fbrand { display: inline-flex; align-items: center; gap: 10px; color: #fff;
  font-weight: 700; margin-bottom: 10px; font-size: 16px; }
.footer img { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .nav__links a:not(.btn) { display: none; }
  .badge-stage { width: 120px; height: 120px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .badge-stage .ring, .badge-stage .ring2, .badge-stage .ring-dash,
  .badge-stage img, .scroll-hint,
  .reveal-1,.reveal-2,.reveal-3,.reveal-4,.reveal-5,.reveal-6 { animation: none !important; }
  .reveal-1,.reveal-2,.reveal-3,.reveal-4,.reveal-5,.reveal-6 { opacity: 1; transform: none; }
}
