/* header.css - the strip above, the main header, the drop-down menus,
   the phone menu panel, and the hero on the home page. */

.topstrip {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .82);
  font-family: var(--label);
  font-size: 12.5px;
  letter-spacing: .06em;
}
.topstrip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topstrip a { color: inherit; text-decoration: none; }
.topstrip a:hover { color: var(--sun-light); }
.topstrip .sep { color: var(--sun); margin-inline: 10px; }

/* ------------------------------------------------------------------ the header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  transition: transform .42s cubic-bezier(.2, .8, .3, 1), background .3s ease, box-shadow .3s ease;
}
/* once the page has moved: a shadow, a touch of glass, and everything draws in a little */
.site-head.stuck {
  background: rgba(16, 27, 49, .94);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(10, 18, 34, .34);
}
/* scrolling down gets the header out of the way; scrolling up brings it straight back */
.site-head.away { transform: translateY(-105%); }

.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; transition: padding-block .3s ease; }
.site-head.stuck .wrap { padding-block: 9px; }

.mark { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.2, .8, .3, 1); transform-origin: left center; }
.site-head.stuck .mark { transform: scale(.88); }
.mark img { width: 52px; height: 52px; flex: none; transition: transform .4s cubic-bezier(.2, .8, .3, 1); }
.mark:hover img { transform: rotate(-7deg) scale(1.06); }
.mark b { font-family: var(--display); font-size: 1.45rem; line-height: 1.05; display: block; }
.mark span { font-family: var(--label); font-size: 10.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sun); }

/* ------------------------------------------------------------------ the nav */
.nav { display: flex; align-items: center; gap: 2px; position: relative; }

/* the amber-lit pill that slides along behind whichever link you are pointing at */
.nav-ink {
  position: absolute; left: 0; top: 50%; height: 36px; width: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .13);
  transform: translate(0, -50%); opacity: 0; pointer-events: none; z-index: 0;
  transition: transform .34s cubic-bezier(.2, .8, .3, 1), width .34s cubic-bezier(.2, .8, .3, 1), opacity .25s ease;
}
.nav.lit .nav-ink { opacity: 1; }

.nav > a, .nav .drop > a {
  position: relative; z-index: 1;
  white-space: nowrap;
  font-family: var(--label);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease;
}
.nav > a:hover, .nav .drop > a:hover { color: var(--white); }
.nav a.here { color: var(--sun); }
/* a small amber dot under the page you are on */
.nav a.here::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sun);
  transform: translateX(-50%);
}
.nav .btn.here::after { display: none; }
.head-cta { margin-left: 10px; z-index: 1; }

/* ------------------------------------------------------------------ drop-down menus */
.drop { position: relative; display: flex; align-items: center; }
.drop > a .caret { width: 9px; height: 9px; transition: transform .25s ease; opacity: .75; }
.drop:hover > a .caret, .drop.open > a .caret { transform: rotate(180deg); opacity: 1; }

.sub {
  display: block;
  position: absolute; top: 100%; left: 50%;
  padding-top: 13px; /* keeps the pointer from falling through the gap */
  min-width: 290px; z-index: 5;
  transform: translateX(-50%) translateY(10px);
  opacity: 0; visibility: hidden;
  transition: opacity .24s ease, transform .24s cubic-bezier(.2, .8, .3, 1), visibility .24s;
}
.drop:hover .sub, .drop.open .sub, .drop:focus-within .sub { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.sub-in {
  display: block;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-md); border-top: 3px solid var(--sun);
  box-shadow: 0 26px 60px rgba(10, 18, 34, .34);
  padding: 10px; overflow: hidden;
}
.sub-in a {
  display: block; text-decoration: none;
  font-family: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--navy); padding: 10px 14px; border-radius: var(--r-sm);
  transition: background .18s ease, padding-left .18s ease;
}
.sub-in a span { display: block; font-size: 12.8px; font-weight: 400; color: var(--ink-2); margin-top: 1px; }
.sub-in a:hover { background: var(--sky-soft); padding-left: 20px; }
.sub-in a:hover span { color: var(--navy-mid); }

/* ------------------------------------------------------------------ the burger */
.burger { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; position: relative; z-index: 95; }
.burger svg { width: 28px; height: 28px; }
.burger .bar { transition: transform .35s cubic-bezier(.2, .8, .3, 1), opacity .2s ease; transform-origin: center; }
.burger[aria-expanded="true"] .bar-1 { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .bar-2 { opacity: 0; }
.burger[aria-expanded="true"] .bar-3 { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-deep); }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: driftIn 14s ease-out forwards;
  will-change: transform;
}
@keyframes driftIn { to { transform: scale(1.02); } }
/* the photo lifts a little as you scroll and leans with the pointer (set in js) */
.hero-shift { transform: scale(1.08) translate3d(var(--mx, 0px), calc(var(--sy, 0px) + var(--my, 0px)), 0); animation: none; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 34, .58) 0%, rgba(10, 18, 34, .22) 34%, rgba(12, 20, 38, .9) 86%),
    linear-gradient(100deg, rgba(10, 18, 34, .72) 0%, rgba(10, 18, 34, .35) 42%, rgba(10, 18, 34, 0) 70%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(44px, 6.5vw, 80px); }
.hero h1 { color: var(--white); max-width: 16ch; text-shadow: 0 6px 30px rgba(8, 14, 28, .55); }
.hero h1 em { font-style: italic; color: var(--sun-light); }
.hero-lede { color: rgba(255, 255, 255, .9); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 48ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--label); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 20px;
}
.hero-tag::before { content: ""; width: 28px; height: 2px; background: var(--sun); }
/* a live amber dot beside "admissions open" */
.hero-tag .live { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(232, 163, 58, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 11px rgba(232, 163, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 163, 58, 0); } }

/* the hero copy arrives a line at a time */
.js .hero .step-in { opacity: 0; transform: translateY(20px); animation: stepIn .9s cubic-bezier(.2, .8, .3, 1) forwards; }
.js .hero .step-in:nth-child(1) { animation-delay: .15s; }
.js .hero .step-in:nth-child(2) { animation-delay: .3s; }
.js .hero .step-in:nth-child(3) { animation-delay: .45s; }
.js .hero .step-in:nth-child(4) { animation-delay: .6s; }
@keyframes stepIn { to { opacity: 1; transform: none; } }

/* the little chevron that invites you down the page */
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; z-index: 4;
  transform: translateX(-50%);
  background: none; border: 0; cursor: pointer; padding: 10px;
  color: rgba(255, 255, 255, .7);
  font-family: var(--label); font-size: 10px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: color .2s ease, opacity .3s ease;
}
.scroll-cue:hover { color: var(--sun); }
.scroll-cue svg { width: 20px; height: 20px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.scroll-cue.gone { opacity: 0; pointer-events: none; }

/* the amber ribbon that runs along the bottom of the hero */
.ribbon { background: var(--sun); color: #2B1E00; overflow: hidden; white-space: nowrap; }
.ribbon-track { display: inline-flex; gap: 48px; padding: 12px 0; animation: slide 28s linear infinite; font-family: var(--label); font-size: 13px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 48px; }
.ribbon-track span::after { content: "✦"; letter-spacing: 0; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* the small card that floats over the hero on wide screens */
.hero-note {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 8vw, 96px); z-index: 3;
  width: 290px; background: rgba(255, 255, 255, .96); border-radius: var(--r-lg); padding: 22px 24px;
  box-shadow: var(--shadow); color: var(--ink);
  transform: translate3d(var(--nx, 0px), var(--ny, 0px), 0);
  transition: box-shadow .3s ease;
}
.hero-note:hover { box-shadow: 0 26px 70px rgba(16, 27, 49, .3); }
.hero-note h4 { font-family: var(--label); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sun-ink); margin: 0 0 8px; }
.hero-note b { font-family: var(--display); font-size: 2.3rem; display: block; line-height: 1; color: var(--navy); }
.hero-note p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .scroll-cue svg, .hero-tag .live { animation: none; }
  .hero-photo, .hero-shift { animation: none; transform: none; }
  .js .hero .step-in { opacity: 1; transform: none; animation: none; }
  .site-head, .site-head .wrap, .mark, .nav-ink, .sub { transition: none; }
}
