/* AUS homepage, design v2 ("The Arch")
   Brand: AUS red #990700, Roboto Slab (display) + Roboto (text).
   Geometry: square corners everywhere; the pointed arch from the Main Building is the only curved shape. */

:root {
  --red: #990700;
  --red-press: #7a0500;
  --red-deep: #2a0300;
  --ink: #131113;
  --ink-2: #3f3b3d;
  --mute: #6b6668;
  --paper: #ffffff;
  --stone: #f0efed;
  --line: rgba(19, 17, 19, 0.14);
  --line-light: rgba(255, 255, 255, 0.22);

  --slab: "Roboto Slab", Georgia, serif;
  --sans: "Roboto", system-ui, -apple-system, sans-serif;

  --g: clamp(16px, 4vw, 64px);
  --max: 1560px;
  --head-h: 72px;
  --util-h: 36px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }

/* ---------- Type ---------- */
.display {
  font-family: var(--slab);
  font-weight: 250;
  font-size: clamp(2.4rem, 5.2vw, 5.6rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.display b { font-weight: 500; }
.eyebrow {
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 22px;
}
.lede { font-size: clamp(17px, 1.25vw, 19px); color: var(--ink-2); max-width: 46ch; margin: 0; }

/* Masked line reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; will-change: transform; }
.js .line > span { transform: translateY(105%); }
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-hero-in] { opacity: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 26px;
  font: 500 15px/1 var(--sans); letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn .arr { width: 16px; height: 16px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--red { background: var(--red); color: #fff; }
.btn--red::before { background: var(--ink); }
.btn--white { background: #fff; color: var(--red); }
.btn--white::before { background: var(--ink); }
.btn--white:hover { color: #fff; }
.btn--line { box-shadow: inset 0 0 0 1px currentColor; }
.btn--line::before { background: #fff; }
.btn--line.on-dark { color: #fff; }
.btn--line.on-dark:hover { color: var(--red); }
.btn--line.on-light { color: var(--ink); }
.btn--line.on-light::before { background: var(--ink); }
.btn--line.on-light:hover { color: #fff; }

.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1.3 var(--sans);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.45s var(--ease);
}
.tlink:hover { background-size: 0% 1px; background-position: 100% 100%; }
.tlink .arr { width: 14px; height: 14px; transition: transform 0.45s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 65;
  color: #fff;
  transition: transform 0.5s var(--ease), color 0.3s;
}
.site-head::before {
  content: ""; position: absolute; inset: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  transform: translateY(-101%);
  transition: transform 0.5s var(--ease);
}
.site-head.is-solid, .site-head.is-open { color: var(--ink); }
.site-head.is-solid::before, .site-head.is-open::before { transform: none; }
.site-head.is-hidden { transform: translateY(calc(-100% - 2px)); }
.site-head.is-hidden.is-open { transform: none; }
.site-head.menu-open { color: #fff; transform: none; }
.site-head.menu-open::before { transform: translateY(-101%); }
.site-head.menu-open .util { border-color: var(--line-light); }
.site-head.menu-open .brand img { filter: brightness(0) invert(1); }
.site-head.menu-open .head-actions .icon-btn:not(.burger) { visibility: hidden; }

.util {
  position: relative;
  height: var(--util-h);
  display: flex; align-items: center; justify-content: space-between;
  font: 400 13px/1 var(--sans);
  border-bottom: 1px solid var(--line-light);
  transition: border-color 0.3s;
}
.site-head.is-solid .util, .site-head.is-open .util { border-color: var(--line); }
.util ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.util a { opacity: 0.82; transition: opacity 0.2s; }
.util a:hover { opacity: 1; }
.lang { display: flex; gap: 14px; align-items: center; }
.lang a[aria-current] { opacity: 1; font-weight: 500; }
.lang .ar { font-family: "Noto Kufi Arabic", var(--sans); font-size: 13px; }

.infofor { position: relative; }
.infofor > button { display: inline-flex; gap: 8px; align-items: center; opacity: 0.9; }
.infofor > button svg { width: 10px; transition: transform 0.3s; }
.infofor[data-open] > button svg { transform: rotate(180deg); }
.infofor ul {
  position: absolute; right: 0; top: calc(100% + 10px);
  display: block; min-width: 200px; padding: 8px 0;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: 0.3s var(--ease);
}
.infofor[data-open] ul { opacity: 1; visibility: visible; transform: none; }
.infofor ul a { display: block; padding: 10px 18px; opacity: 1; }
.infofor ul a:hover { background: var(--stone); color: var(--red); }

.bar {
  position: relative;
  height: var(--head-h);
  display: flex; align-items: center; gap: 40px;
}
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; transition: filter 0.3s; }
.site-head:not(.is-solid):not(.is-open) .brand img { filter: brightness(0) invert(1); }

.nav { flex: 1; display: flex; justify-content: center; }
.nav > ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-item > button {
  height: var(--head-h);
  padding: 0 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--sans);
  position: relative;
}
.nav-item > button::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 18px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-item > button[aria-expanded="true"]::after { transform: scaleX(1); }
.nav-item > button svg { width: 10px; transition: transform 0.3s; }
.nav-item > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.head-actions .btn { height: 46px; padding: 0 20px; font-size: 14px; }
.site-head:not(.is-solid):not(.is-open) .head-actions .btn--red { background: #fff; color: var(--red); }
.site-head:not(.is-solid):not(.is-open) .head-actions .btn--red:hover { color: #fff; }
.burger { display: none; }

/* Mega panels */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; color: var(--ink);
  border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.55s var(--ease-io), visibility 0s 0.55s;
}
.mega.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.6s var(--ease-io), visibility 0s; }
.mega-inner { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr) 1.15fr; gap: 40px; padding-block: 44px 52px; }
.mega-intro h3 { font: 250 2.1rem/1.05 var(--slab); margin: 0 0 14px; letter-spacing: -0.01em; }
.mega-intro p { color: var(--mute); font-size: 15px; margin: 0 0 20px; max-width: 30ch; }
.mega-col h4 { font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 6px 0 16px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col a { display: inline-block; padding: 6px 0; font-size: 15.5px; transition: color 0.2s, transform 0.3s var(--ease); }
.mega-col a:hover { color: var(--red); transform: translateX(4px); }
.mega-feature { position: relative; }
.mega-feature .arch-img { aspect-ratio: 4 / 5; width: 100%; max-width: 240px; margin-left: auto; }
.mega-feature p { font-size: 14px; color: var(--mute); text-align: right; margin: 12px 0 0; }
.mega > .wrap { opacity: 0; transform: translateY(-10px); transition: 0.3s; }
.mega.is-open > .wrap { opacity: 1; transform: none; transition: 0.5s 0.15s var(--ease); }

/* Search overlay */
.search-pop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(19, 17, 19, 0.6);
  display: grid; align-items: start;
  opacity: 0; visibility: hidden; transition: 0.35s;
}
.search-pop.is-open { opacity: 1; visibility: visible; }
.search-pop .panel { background: #fff; padding: 48px 0 56px; transform: translateY(-20px); transition: transform 0.5s var(--ease); }
.search-pop.is-open .panel { transform: none; }
.search-pop .close { position: absolute; right: var(--g); top: 20px; }

/* ---------- Arch helpers ---------- */
.arch-img { clip-path: url(#arch); overflow: hidden; }
.arch-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero (shared) ---------- */
.hero { position: relative; color: #fff; background: var(--red); }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; will-change: clip-path; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column;
  padding-top: calc(var(--util-h) + var(--head-h) + clamp(28px, 6vh, 72px));
  padding-bottom: clamp(28px, 6vh, 64px);
}
.notice {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  font: 500 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  padding-bottom: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.notice:hover { background-size: 0 1px; background-position: 100% 100%; }
.notice .arr { width: 14px; height: 14px; }
.hero__title {
  font-family: var(--slab); font-weight: 200;
  letter-spacing: -0.035em; line-height: 0.9;
  margin: 0;
}
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: auto; }
.hero__sub { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; opacity: 0.92; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero A: the arch opens ---------- */
.hero--arch .hero__media { opacity: 0; }
.hero--arch .hero__media .shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 3, 0, 0.6) 0%, rgba(20, 3, 0, 0.42) 52%, rgba(20, 3, 0, 0.08) 74%, rgba(20, 3, 0, 0) 85%),
              linear-gradient(0deg, rgba(20, 3, 0, 0.35) 0%, rgba(20, 3, 0, 0) 40%);
}
.hero--arch .arch-slot {
  position: absolute; right: 8vw; bottom: 0;
  width: min(33vw, 600px); height: 80%;
  pointer-events: none;
}
.hero--arch .hero__title { font-size: clamp(3.2rem, 8.6vw, 10.4rem); margin-top: auto; }
.hero--arch .hero__foot { flex-direction: column; align-items: flex-start; gap: 26px; margin-top: clamp(26px, 4vh, 44px); }
.hero--arch .hero__media img { object-position: var(--obj-x, 22%) 60%; }
.hero--arch .hero__title .l2 { padding-left: 0.62em; }
.hero--arch .hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(20, 3, 0, 0.82) 0%, rgba(20, 3, 0, 0.6) 38%, rgba(20, 3, 0, 0.1) 68%, rgba(20, 3, 0, 0) 80%);
}
.hero--arch .hero__intro {
  position: absolute; z-index: 3; left: var(--g); bottom: clamp(40px, 9vh, 104px);
  width: min(46rem, 50vw); opacity: 0;
}
.hero__intro .big { margin: 0 0 22px; font: 250 clamp(1.7rem, 2.75vw, 2.9rem)/1.18 var(--slab); letter-spacing: -0.015em; text-wrap: pretty; }
.hero__intro .small { margin: 0 0 26px; font-size: 15px; line-height: 1.55; opacity: 0.8; max-width: 52ch; }

/* ---------- Hero B: film ---------- */
.hero--film .hero__media .shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(14, 3, 2, 0.78) 0%, rgba(14, 3, 2, 0.25) 42%, rgba(14, 3, 2, 0) 62%),
              linear-gradient(180deg, rgba(14, 3, 2, 0.45) 0%, rgba(14, 3, 2, 0) 22%);
}
.hero--film .film-slot {
  position: absolute; left: 50%; top: 54%;
  width: min(24vw, 360px); height: min(58vh, 520px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero--film .hero__title { font-size: clamp(3.4rem, 9.6vw, 11.6rem); }
.hero--film .hero__bottom { margin-top: auto; }
.hero--film .hero__foot { margin-top: clamp(22px, 3.5vh, 40px); align-items: center; }
.film-ui {
  position: absolute; z-index: 3; right: var(--g); top: calc(var(--util-h) + var(--head-h) + 28px);
  display: flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
}
.film-ui button { width: 44px; height: 44px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); transition: background 0.3s, color 0.3s; }
.film-ui button:hover { background: #fff; color: var(--red); }
.film-ui svg { width: 14px; height: 14px; }
.film-progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.18); }
.film-progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---------- Programme finder ---------- */
.finder { padding-block: clamp(96px, 12vw, 180px) clamp(72px, 9vw, 140px); }
.finder-top { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; align-items: end; }
.finder-top .lede { margin-top: 26px; }
.searchbox { position: relative; }
.searchbox label { display: block; font-size: 14px; color: var(--mute); margin-bottom: 8px; }
.searchbox .field { position: relative; display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.searchbox input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font: 300 clamp(1.5rem, 2.4vw, 2.3rem)/1.2 var(--slab);
  color: var(--ink); padding: 14px 0 16px;
}
.searchbox input::placeholder { color: #a6a1a3; }
.searchbox .field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.searchbox .field:focus-within::after { transform: scaleX(1); }
.searchbox .go { width: 54px; height: 54px; display: grid; place-items: center; background: var(--red); color: #fff; transition: background 0.3s; }
.searchbox .go:hover { background: var(--ink); }
.searchbox .go svg { width: 20px; height: 20px; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  background: #fff; border: 1px solid var(--line); border-top: 0;
  list-style: none; margin: 0; padding: 6px 0; max-height: 340px; overflow: auto;
}
.suggest[hidden] { display: none; }
.suggest li { padding: 12px 20px; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--stone); }
.suggest li span { color: var(--mute); font-size: 14px; white-space: nowrap; }
.suggest mark { background: none; color: var(--red); font-weight: 500; }
.popular { margin: 18px 0 0; font-size: 15px; color: var(--mute); }
.popular a { color: var(--ink); background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1px no-repeat; transition: background-size 0.35s var(--ease), color 0.2s; }
.popular a:hover { color: var(--red); background-size: 100% 1px; }

.colleges { list-style: none; margin: clamp(64px, 8vw, 120px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.college {
  position: relative;
  display: grid; grid-template-columns: 1fr minmax(0, 360px) 56px; gap: 40px; align-items: center;
  padding: clamp(22px, 2.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.college::before {
  content: ""; position: absolute; inset: 0 calc(var(--g) * -1); z-index: -1;
  background: var(--red); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease);
}
.college h3 {
  margin: 0; font: 250 clamp(1.7rem, 3.4vw, 3.5rem)/1.05 var(--slab); letter-spacing: -0.02em;
  transition: transform 0.55s var(--ease), color 0.3s;
}
.college p { margin: 0; font-size: 15px; color: var(--mute); transition: color 0.3s; }
.college .go {
  width: 56px; height: 56px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line); transition: 0.4s var(--ease);
}
.college .go svg { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
@media (hover: hover) {
  .college:hover::before { transform: scaleY(1); }
  .college:hover h3 { color: #fff; transform: translateX(14px); }
  .college:hover p { color: rgba(255, 255, 255, 0.85); }
  .college:hover .go { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); color: #fff; }
  .college:hover .go svg { transform: rotate(-45deg); }
}
.peek {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 200px; height: 258px;
  pointer-events: none;
  opacity: 0; transform: scale(0.6);
}
.peek .arch-img { position: absolute; inset: 0; }
.peek img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; }
.peek img.on { opacity: 1; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(64px, 8vw, 130px) clamp(96px, 11vw, 170px); }
.statement .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 80px; align-items: start; }
.statement-text {
  font: 250 clamp(1.9rem, 3.7vw, 3.9rem)/1.16 var(--slab); letter-spacing: -0.015em;
  margin: 0; max-width: 22em;
}
.statement-text .w { opacity: 0.16; transition: none; }
.statement-text .accent { color: var(--red); }
.no-js-motion .statement-text .w { opacity: 1; }
.statement-side { padding-top: 12px; }
.seal { width: 180px; height: 180px; margin-bottom: 36px; opacity: 0.9; }
.statement-side p { font-size: 15px; color: var(--mute); margin: 0 0 22px; }

/* ---------- Rankings ---------- */
.rankings { background: var(--red); color: #fff; padding-block: clamp(88px, 10vw, 150px); position: relative; overflow: hidden; }
.rankings .eyebrow { color: #fff; opacity: 0.85; }
.rank-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr); gap: 40px; align-items: baseline;
  padding: clamp(26px, 3vw, 40px) 0;
}
.rank::before, .rank-list::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.35);
  transform-origin: left;
}
.rank-list { position: relative; }
.rank-list::after { top: auto; bottom: 0; }
.js .rank::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .rank.is-in::before { transform: none; }
.rank .fig { font: 200 clamp(3.6rem, 8vw, 8.6rem)/0.9 var(--slab); letter-spacing: -0.04em; white-space: nowrap; }
.rank .what { font: 300 clamp(1.25rem, 1.9vw, 1.85rem)/1.25 var(--slab); margin: 0; }
.rank .src { font-size: 14px; opacity: 0.75; margin: 0; text-align: right; }

/* ---------- Moments: growing frame, photos change on scroll ---------- */
.moments { position: relative; height: 380vh; }
.moments-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding: calc(var(--head-h) + 28px) var(--g) clamp(24px, 4vh, 44px);
}
.moments-top { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.moments-cap { margin: 0; min-height: 1.3em; font: 300 clamp(1.05rem, 1.4vw, 1.35rem)/1.3 var(--slab); color: var(--mute); text-align: right; max-width: 30ch; }
.moments-frame-wrap { flex: 1; min-height: 0; display: grid; place-items: center; margin-top: clamp(16px, 3vh, 32px); }
.moments-frame {
  position: relative; overflow: hidden; background: var(--ink);
  height: 100%; max-width: 100%; aspect-ratio: 16 / 10;
  transform: scale(0.36); will-change: transform;
}
.moments-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.moments-frame img:first-child { clip-path: inset(0); }

/* ---------- Life bento ---------- */
.life { padding-block: clamp(40px, 5vw, 80px) clamp(96px, 11vw, 160px); }
.life-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(36px, 4vw, 56px); }
.life-head .lede { max-width: 40ch; }
.bento {
  display: grid;
  grid-template-columns: 5fr 2.4fr 2.4fr 2.4fr;
  grid-template-rows: minmax(260px, 34vh) minmax(260px, 34vh);
  gap: 12px;
}
.tile { position: relative; overflow: hidden; display: block; color: #fff; background: var(--ink); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,3,2,.72) 0%, rgba(14,3,2,0) 48%); }
.tile-label { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.tile h3 { margin: 0; font: 300 clamp(1.25rem, 1.6vw, 1.7rem)/1.1 var(--slab); }
.tile p { margin: 6px 0 0; font-size: 14px; opacity: 0.85; max-width: 34ch; }
.tile .arr { width: 18px; height: 18px; flex: none; transform: translateX(-6px); opacity: 0; transition: 0.45s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile:hover .arr { transform: none; opacity: 1; }
.tile--a { grid-row: 1 / 3; }
.tile--a h3 { font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.tile--b { grid-column: 2 / 5; }
.tile .redbar { position: absolute; z-index: 2; left: 0; top: 0; height: 6px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.tile:hover .redbar { transform: scaleX(1); }

/* ---------- Spotlight ---------- */
.spotlight { background: var(--stone); padding-block: clamp(88px, 10vw, 150px); overflow: hidden; }
.spotlight .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.spotlight h2 { font: 250 clamp(2rem, 3.5vw, 3.6rem)/1.06 var(--slab); letter-spacing: -0.02em; margin: 0 0 28px; text-wrap: balance; }
.spotlight .lede { margin-bottom: 36px; }
.spot-visual { position: relative; }
.spot-visual .arch-img { aspect-ratio: 4 / 5; width: 100%; }
.spot-visual .arch-img img { object-position: 46% 50%; transform-origin: 50% 100%; }
.spot-visual .ring {
  position: absolute; inset: -18px -18px auto auto; width: 100%; aspect-ratio: 4 / 5;
  pointer-events: none;
}
.spot-visual .ring path { fill: none; stroke: var(--red); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* ---------- News ---------- */
.news { padding-block: clamp(96px, 11vw, 160px); }
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(36px, 4vw, 60px); }
.news-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
.story { display: block; }
.story .ph { overflow: hidden; position: relative; background: var(--stone); }
.story .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.story:hover .ph img { transform: scale(1.05); }
.story time { display: block; font-size: 13px; color: var(--mute); letter-spacing: 0.04em; margin: 18px 0 10px; }
.story h3 { margin: 0; font: 300 1.35rem/1.25 var(--slab); transition: color 0.25s; text-wrap: pretty; }
.story:hover h3 { color: var(--red); }
.story--lead .ph { aspect-ratio: 16 / 10; }
.story--lead h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 24ch; }
.news-list { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--line); }
.news-list .story { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.news-list .ph { aspect-ratio: 4 / 3; }
.news-list time { margin: 2px 0 8px; }
.news-list h3 { font-size: 1.15rem; }


/* ---------- Beyond the classroom: expanding panels ---------- */
.beyond { padding-block: clamp(96px, 11vw, 160px) 0; }
.beyond-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: clamp(36px, 4vw, 56px); }
.beyond-head .lede { max-width: 42ch; }
.panels { display: flex; gap: 12px; height: min(72vh, 640px); min-height: 460px; }
.panel {
  position: relative; overflow: hidden; color: #fff; background: var(--ink);
  flex: 1 1 0; min-width: 0;
  transition: flex-grow 0.8s var(--ease);
}
.panel.is-active { flex-grow: 2.6; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease), filter 0.8s var(--ease); filter: saturate(0.85) brightness(0.82); }
.panel.is-active img { transform: scale(1); filter: none; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,3,2,.8) 0%, rgba(14,3,2,.1) 55%, rgba(14,3,2,0) 75%); }
.panel-body { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; }
.panel h3 { margin: 0; font: 300 clamp(1.3rem, 1.7vw, 1.9rem)/1.1 var(--slab); }
.panel p, .panel .tlink { max-width: 36ch; opacity: 0; transform: translateY(12px); transition: opacity 0.4s, transform 0.6s var(--ease); }
.panel p { display: block; margin: 10px 0 18px; font-size: 15px; }
.panel.is-active p, .panel.is-active .tlink { opacity: 1; transform: none; transition-delay: 0.25s; }
.panel.is-active p { opacity: 0.9; }
.panel::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; height: 6px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease); }
.panel.is-active::before { transform: scaleX(1); }

/* ---------- Footer admission routes ---------- */
.routes { list-style: none; margin: 0; padding: clamp(40px, 5vw, 64px) 0; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-light); }
.routes li + li { border-left: 1px solid var(--line-light); }
.routes a { position: relative; display: block; height: 100%; padding: 8px 56px 8px 28px; }
.routes li:first-child a { padding-left: 0; }
.routes h3 { margin: 0 0 10px; font: 300 1.45rem/1.15 var(--slab); }
.routes p { margin: 0; font-size: 14.5px; opacity: 0.72; max-width: 30ch; }
.routes .arr { position: absolute; right: 24px; top: 14px; width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.routes a:hover h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.routes a:hover .arr { transform: translateX(5px); }

/* News category label */
.story time b { font-weight: 500; color: var(--red); letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; margin-right: 12px; }

/* ---------- Visit ---------- */
.visit { position: relative; height: 110vh; min-height: 680px; overflow: hidden; color: #fff; }
.visit-media { position: absolute; inset: 0; }
.visit-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.visit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,3,2,.74) 0%, rgba(14,3,2,.46) 42%, rgba(14,3,2,0) 72%); }
.visit .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.visit h2 { font: 200 clamp(3rem, 7.4vw, 8.4rem)/0.95 var(--slab); letter-spacing: -0.035em; margin: 0 0 30px; max-width: 9em; }
.visit p { margin: 0 0 36px; max-width: 38ch; font-size: clamp(16px, 1.3vw, 19px); opacity: 0.92; }

/* ---------- Footer ---------- */
.foot { background: var(--red-deep); color: #fff; padding-top: clamp(80px, 9vw, 130px); }
.foot-cta { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-light); }
.foot-cta h2 { font: 200 clamp(2.4rem, 5.4vw, 6rem)/0.98 var(--slab); letter-spacing: -0.03em; margin: 0; max-width: 12em; }
.foot-cols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; padding-block: clamp(48px, 6vw, 80px); }
.foot-cols h4 { font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin: 0 0 20px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.foot-cols a { opacity: 0.85; transition: opacity 0.2s; }
.foot-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-id img.logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 26px; }
.foot-id address { font-style: normal; font-size: 15px; opacity: 0.8; line-height: 1.7; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px 34px; border-top: 1px solid var(--line-light); font-size: 13px; }
.foot-base ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.foot-base a, .foot-base span { opacity: 0.7; }
.foot-base a:hover { opacity: 1; }

/* ---------- Film modal ---------- */
.film-modal { position: fixed; inset: 0; z-index: 80; background: rgba(10, 2, 1, 0.94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: 0.4s; }
.film-modal.is-open { opacity: 1; visibility: visible; }
.film-modal video { width: min(92vw, 1400px); aspect-ratio: 16 / 9; background: #000; }
.film-modal .close { position: absolute; top: 20px; right: 20px; color: #fff; }

/* ---------- Review switch (design review only, remove for build) ---------- */
.review-switch {
  position: fixed; z-index: 90; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
  background: var(--ink); color: #fff; padding: 4px;
  font: 500 12px/1 var(--sans); letter-spacing: 0.06em;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.review-switch span { padding: 0 10px 0 8px; opacity: 0.6; text-transform: uppercase; }
.review-switch a { padding: 10px 14px; }
.review-switch a[aria-current] { background: #fff; color: var(--ink); }

/* ---------- Mobile menu ---------- */
.mnav {
  position: fixed; inset: 0; z-index: 60; background: var(--red); color: #fff;
  padding: calc(var(--head-h) + 16px) var(--g) 40px;
  overflow: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.6s var(--ease-io), visibility 0s 0.6s;
}
.mnav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.6s var(--ease-io), visibility 0s; }
.mnav details { border-bottom: 1px solid var(--line-light); }
.mnav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font: 300 1.7rem/1.1 var(--slab); cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { width: 14px; transition: transform 0.3s; }
.mnav details[open] summary svg { transform: rotate(45deg); }
.mnav ul { list-style: none; margin: 0; padding: 0 0 18px; display: grid; gap: 10px; }
.mnav ul a { opacity: 0.85; }
.mnav .btn { margin-top: 28px; width: 100%; justify-content: space-between; }
.mnav .mutil { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 15px; }
.mnav .mutil a { opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav, .util ul.links { display: none; }
  .burger { display: grid; }
  .head-actions .btn { display: none; }
  .head-actions { margin-left: auto; gap: 0; }
  .bar { gap: 20px; }
  .mega-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .finder-top, .statement .wrap, .spotlight .wrap, .news-grid { grid-template-columns: 1fr; }
  .statement-side { display: flex; gap: 28px; align-items: flex-start; }
  .seal { width: 110px; height: 110px; flex: none; }
  .rank { grid-template-columns: 1fr; gap: 10px; }
  .rank .src { text-align: left; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-id { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .util { display: none; }
  .hero__inner { padding-top: calc(var(--head-h) + 28px); }

  /* Hero A on phones: headline, then the arch rising from the bottom edge */
  .hero--arch .hero__stage { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero--arch .hero__inner { height: auto; flex: none; padding-bottom: 0; }
  .hero--arch .hero__title { font-size: clamp(2.8rem, 12.5vw, 5rem); }
  .hero--arch .hero__title .l2 { padding-left: 0; }
  .hero--arch .hero__title { margin-top: clamp(20px, 4vh, 40px); }
  .hero--arch .hero__media img { object-position: 50% 60%; }
  .hero--arch .hero__foot { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 22px; }
  .hero--arch .arch-slot { position: relative; order: 2; right: auto; bottom: auto; align-self: center; width: 78%; height: auto; flex: 1 0 300px; margin-top: 36px; }
  .hero--arch .hero__veil { display: none; }
  .hero--arch .hero__intro { position: relative; order: 3; left: auto; bottom: auto; width: auto; opacity: 1; padding: 44px 0 52px; }
  .hero--arch .hero__intro, .hero--arch .hero__inner { padding-inline: var(--g); }

  .hero--film .hero__title { font-size: clamp(2.8rem, 12vw, 5rem); }
  .hero--film .hero__media .shade { background: linear-gradient(0deg, rgba(14,3,2,.86) 0%, rgba(14,3,2,.5) 45%, rgba(14,3,2,.1) 70%), linear-gradient(180deg, rgba(14,3,2,.45) 0%, rgba(14,3,2,0) 20%); }
  .hero--film .hero__foot { flex-direction: column; align-items: flex-start; gap: 22px; }
  .film-ui { top: auto; bottom: 28px; right: var(--g); }
  .film-ui .lbl { display: none; }
  .hero--film .hero__inner { padding-bottom: 36px; }
  .hero--film .ctas { padding-right: 60px; }

  .college { grid-template-columns: 1fr 48px; gap: 12px 20px; }
  .college p { grid-column: 1; grid-row: 2; }
  .college .go { grid-row: 1 / 3; grid-column: 2; width: 48px; height: 48px; }
  .peek { display: none; }


  .life-head, .news-head, .rank-head, .foot-cta { flex-direction: column; align-items: flex-start; }
  .moments { height: 340vh; }
  .moments-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .moments-cap { text-align: left; }
  .moments-frame { aspect-ratio: 4 / 5; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .tile--a { grid-column: 1 / -1; grid-row: span 2; height: auto; }
  .tile--b { grid-column: 1 / -1; }
  .tile--e { grid-column: 1 / -1; }
  .tile .arr { opacity: 1; transform: none; }

  .news-list .story { grid-template-columns: 112px 1fr; gap: 16px; }
  .beyond-head { flex-direction: column; align-items: flex-start; }
  .panels { flex-direction: column; height: auto; min-height: 0; }
  .panel, .panel.is-active { flex: none; height: 300px; }
  .panel img { transform: none; filter: none; }
  .panel p, .panel .tlink { opacity: 1; transform: none; }
  .routes { grid-template-columns: 1fr 1fr; }
  .routes li + li { border-left: 0; }
  .routes a, .routes li:first-child a { padding: 18px 40px 18px 0; }
  .routes .arr { right: 8px; top: 24px; }
  .visit { height: 88svh; min-height: 560px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .hero__foot .ctas, .visit .ctas { width: 100%; }
  .hero__foot .ctas .btn, .visit .ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .bento { grid-template-columns: 1fr; }
  .tile--c, .tile--d { grid-column: 1 / -1; }
  .foot-cols { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .review-switch span { display: none; }
  .brand img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .line > span, .js [data-reveal], .js [data-hero-in] { transform: none; opacity: 1; }
  .statement-text .w { opacity: 1; }
  .js .rank::before { transform: none; }
}
