/* =====================================================================
   Aether-style design layer (loaded after style.css on every page)
   - Manrope typeface across the site
   - Home page: fullscreen photo stage, see-through header, headline,
     description and a scroll hint
   ===================================================================== */
/* Manrope is included with the site (no outside font service) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }
:root {
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slow: cubic-bezier(.65, 0, .35, 1);
  --font: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Manrope", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
h1, h2, h3, .section-head h2, .page-hero h1, .about-copy h2, .prose h2, .exam-card h3, .stat b, .cta-band h2 {
  font-weight: 700; letter-spacing: -0.03em;
}
.btn { font-weight: 700; letter-spacing: 0; }
.kicker { letter-spacing: 0.16em; }

/* ---------------------------------------------------------------- Home: see-through header over the photo */
.home-aether #site-header-mount { position: absolute; top: 0; left: 0; right: 0; z-index: 220; } /* above the menu's grey overlay (190) */
.home-aether .topbar { background: rgba(8, 18, 26, 0.28); color: rgba(255,255,255,0.86); }
.home-aether .site-header {
  background: transparent; border-bottom: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none;
}
.home-aether .brand-text strong { color: #fff; }
.home-aether .brand-text span { color: rgba(255,255,255,0.78); }
.home-aether .brand-mark { box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.home-aether .nav-toggle { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); }
.home-aether .nav-toggle span { background: #fff; }
@media (min-width: 1181px) {
  .home-aether .main-nav > ul > li > a { color: #fff; text-shadow: 0 1px 7px rgba(0,0,0,0.25); }
  .home-aether .main-nav > ul > li > a:hover { background: rgba(255,255,255,0.16); color: #fff; }
  .home-aether .main-nav > ul > li > a.active { background: #fff; color: var(--red-dark); text-shadow: none; }
}
@media (max-width: 1180px) {
  .home-aether .site-header { background: transparent; }
}

/* ---------------------------------------------------------------- Stage */
.stage {
  position: relative; isolation: isolate; width: 100%; height: 100vh; height: 100dvh; min-height: 620px;
  overflow: hidden; background: #0b1a24; color: #f7fbff;
}
.media-stack, .media { position: absolute; inset: 0; }
.media-stack { z-index: 0; }
.media {
  overflow: hidden; visibility: hidden; opacity: 0;
  transform: scale(1.03); filter: blur(0);
  transition: opacity 1.15s var(--slow), transform 1.25s var(--slow), filter 1.15s var(--slow), visibility 0s linear 1.25s;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: drift 24s ease-in-out infinite alternate; }
.media.is-visible { visibility: visible; opacity: 1; transform: scale(1.03); transition-delay: 0s; }
@keyframes drift { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }

.stage-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,14,22,0.55) 0%, rgba(6,14,22,0.12) 30%, rgba(6,14,22,0.34) 55%, rgba(6,14,22,0.80) 100%),
    radial-gradient(120% 80% at 50% 45%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}

.stage-hero {
  position: absolute; inset: 0; z-index: 10; pointer-events: none; text-align: center; text-shadow: 0 2px 14px rgba(0,0,0,0.28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--top, 117px) + 2vh) 24px 7vh;
}
.stage-eyebrow {
  margin: 0 0 18px; font-style: italic; font-weight: 600; font-size: clamp(17px, 1.7vw, 24px);
  letter-spacing: 0.05em; color: var(--gold-light); text-shadow: 0 1px 3px rgba(6,12,18,0.8), 0 2px 12px rgba(6,12,18,0.5);
}
.stage h1 {
  width: min(1060px, 100%); margin: 0 0 clamp(22px, 3.4vh, 38px);
  font-size: clamp(40px, 5.2vw, 82px); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; color: #fff;
}
.stage h1 em { font-style: normal; color: var(--gold-light); }
.hero-copy {
  width: min(760px, 100%); margin: 0; pointer-events: auto;
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 500; line-height: 1.55;
  text-shadow: 0 1px 3px rgba(6,12,18,0.85), 0 2px 14px rgba(6,12,18,0.6);
}
.hero-copy p { margin: 0; }
.hero-copy strong { display: inline-block; font-weight: 800; font-size: 1.12em; margin-bottom: 2px; }
.hero-copy .copy-links { margin-top: 16px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.glass-link {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; border-radius: 999px;
  color: #fff; font-size: 15px; font-weight: 700; text-shadow: none;
  border: 1px solid rgba(255,255,255,0.6); background: rgba(255,255,255,0.10);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: .3s var(--ease);
}
.glass-link:hover, .glass-link:focus-visible { background: #fff; color: var(--red-dark); border-color: #fff; }

.stage-scroll {
  position: absolute; z-index: 30; right: 32px; bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.8); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
}
.stage-scroll i { width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: scroll-hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes scroll-hint { 0% { transform: scaleY(0); } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.stage :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------------------------------------------------------------- Smaller screens */
@media (max-width: 900px) {
  .stage h1 { font-size: clamp(36px, 6.4vw, 56px); }
}
@media (max-width: 700px) {
  .stage { min-height: 600px; }
  .stage-hero { padding: calc(var(--top, 150px) + 8px) 18px 32px; }
  .stage-eyebrow { font-size: 15px; margin-bottom: 12px; }
  .stage h1 { font-size: clamp(30px, 9vw, 44px); line-height: 1.04; margin-bottom: 20px; }
  .hero-copy { font-size: 14px; line-height: 1.5; }
  .hero-copy .copy-links { margin-top: 12px; }
  .glass-link { height: 38px; font-size: 13px; padding: 0 18px; }
  .stage-scroll { display: none; }
}
@media (max-width: 700px) and (max-height: 720px) {
  .stage h1 { font-size: clamp(26px, 8vw, 34px); }
  .hero-copy { font-size: 13px; }
  .stage-eyebrow { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .media img { animation: none !important; }
}

/* Contact Us: link under the map */
.map-link { margin: 12px 0 0; text-align: center; font-size: 0.92rem; }
.map-link a { color: var(--red); font-weight: 700; }
.map-link a:hover { text-decoration: underline; }
