/* Whales College website. Theme B: "Abyss".
   A dive from the sunlit surface to the deep ocean. The page darkens as you scroll,
   a depth gauge tracks the dive, and a whale swims through the hero. */
/* Fonts bundled with the site (SIL Open Font License), so it works offline too */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/unbounded-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/unbounded-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/unbounded-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Abyss palette */
  --surface: #0D3A63;      /* sunlit water at the top of the page */
  --twilight: #072646;     /* mid water */
  --deep: #03111F;         /* the abyss */
  --glow: #6FF3E4;         /* bioluminescence: motion, focus, highlights */
  --sea: #8FD8E8;          /* sea glass, from the brand */
  --gold: #F4B740;         /* sunlit gold, from the brand: achievement only */
  --gold-deep: #E0A12A;
  --text: #E8F2F9;
  --text-soft: #A6BACD;
  --text-faint: #7E95AC;
  --line: rgba(143, 216, 232, 0.16);
  --line-strong: rgba(143, 216, 232, 0.32);
  --glass: rgba(12, 44, 78, 0.38);
  --glass-deep: rgba(4, 20, 38, 0.72);

  /* names used by shared page bodies */
  --abyss: #04121F;
  --abyss-2: rgba(10, 38, 68, 0.6);
  --line-dark: var(--line);
  --ink: var(--text);
  --ink-soft: var(--text-soft);
  --white: #FFFFFF;
  --blue: #5B95F0;
  --seaglass: var(--sea);

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.6rem, 1.3rem + 1.1vw, 2.15rem);
  --step-4: clamp(1.9rem, 1.35rem + 2.3vw, 3.3rem);
  --step-5: clamp(2.15rem, 1.3rem + 3.6vw, 4.5rem);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --header-h: 76px;
  --depth: 0;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--deep); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65;
  color: var(--text); background: transparent; overflow-x: hidden;
}
::selection { background: rgba(111, 243, 228, 0.35); color: #fff; }
img, video { max-width: 100%; display: block; }
a { color: var(--sea); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--glow); }
h1, h2, h3, h4 { margin: 0 0 0.5em; color: #F4FBFF; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong, b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 400; background: var(--glow); color: var(--deep); padding: 10px 16px; border-radius: var(--r-s); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- The ocean behind every page ---------- */
.ocean { position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--surface) 0%, var(--twilight) 48%, var(--deep) 100%); pointer-events: none; }
.ocean::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 28% -8%, rgba(143, 216, 232, 0.28), transparent 70%); opacity: calc(1 - var(--depth) * 1.4); }
.ocean-shade { position: absolute; inset: 0; background: #01060C; opacity: calc(var(--depth) * 0.78); }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; }

/* depth gauge */
.depth { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); height: 42vh; width: 120px; z-index: 40; pointer-events: none; }
.depth-line { position: absolute; right: 0; top: 0; bottom: 0; width: 12px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 10%) right / 6px 100% no-repeat, linear-gradient(var(--line), var(--line)) right / 1px 100% no-repeat; }
.depth-mark { position: absolute; right: 0; top: calc(var(--depth) * 100%); transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; padding-right: 20px; }
.depth-mark::after { content: ""; position: absolute; right: -3px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.depth-val { font-family: var(--font-display); font-size: 0.82rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.depth-zone { font-size: 0.72rem; color: var(--text-faint); white-space: nowrap; }
.depth-bar { display: none; }

/* ---------- Announcement and header ---------- */
.announce { position: relative; z-index: 101; background: rgba(2, 12, 22, 0.55); border-bottom: 1px solid var(--line); color: var(--text-soft); font-size: var(--step--1); }
.announce .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; text-align: center; flex-wrap: wrap; }
.announce a { color: var(--gold); font-weight: 600; }
.announce-short { display: none; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.site-header.is-scrolled { background: rgba(3, 17, 31, 0.78); border-bottom-color: var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav li { margin: 0; }
.nav a { position: relative; display: block; padding: 10px 11px; white-space: nowrap; color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.header-cta { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; background: rgba(143, 216, 232, 0.06); border: 1px solid var(--line-strong); border-radius: 50%; width: 46px; height: 46px; cursor: pointer; color: #fff; place-items: center; }
.menu-toggle svg { width: 20px; height: 20px; }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 300; background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(13, 58, 99, 0.95), transparent 70%), #020B16; color: #fff; display: flex; flex-direction: column; padding: 14px var(--gutter) 28px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav-top, .mnav nav, .mnav-actions { width: 100%; max-width: 640px; margin-left: auto; margin-right: auto; }
.mnav-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mnav-top img { height: 34px; width: auto; }
.mnav-close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mnav-close svg { width: 20px; height: 20px; }
.mnav ul { list-style: none; margin: 12px 0 0; padding: 0; }
.mnav li { margin: 0; border-bottom: 1px solid var(--line); }
.mnav nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.mnav nav a[aria-current="page"] { color: var(--glow); }
.mnav nav a[aria-current="page"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.mnav-actions { display: grid; gap: 10px; margin-top: 22px; }
.mnav-actions .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1; padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .2s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: #1A1200; }
.btn-gold:hover { background: #FFC85A; color: #1A1200; box-shadow: 0 0 0 6px rgba(244, 183, 64, 0.14), 0 10px 30px -8px rgba(244, 183, 64, 0.55); }
.btn-primary { background: linear-gradient(120deg, var(--glow), var(--sea)); color: #021220; }
.btn-primary:hover { color: #021220; box-shadow: 0 0 0 6px rgba(111, 243, 228, 0.12), 0 10px 30px -8px rgba(111, 243, 228, 0.6); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(143, 216, 232, 0.04); }
.btn-ghost:hover { border-color: var(--glow); color: #fff; background: rgba(111, 243, 228, 0.08); box-shadow: 0 0 22px -6px rgba(111, 243, 228, 0.5); }
.btn-sm { padding: 11px 18px; font-size: 0.93rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.section-tight { position: relative; padding: clamp(44px, 6vw, 80px) 0; }
.on-white { background: linear-gradient(180deg, rgba(143, 216, 232, 0.045), rgba(143, 216, 232, 0.015)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.on-dark { background: rgba(1, 7, 14, 0.42); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text-soft); }
.on-dark a:not(.btn) { color: var(--sea); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--text-soft); font-size: var(--step-1); line-height: 1.5; }
.section-head.head-row { grid-template-columns: minmax(0, 1fr) auto; }
.section-head.head-row p { margin-top: 14px; max-width: 60ch; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--text-soft); }
.recent-title { font-size: var(--step-2); margin: clamp(40px, 5vw, 60px) 0 18px; }

/* ---------- Home hero ---------- */
.ab-hero { position: relative; min-height: max(640px, 100svh); margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); display: flex; align-items: flex-end; overflow: hidden; }
.ab-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 2s ease .2s; }
.ab-hero-canvas.is-ready { opacity: 1; }
.ab-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(3, 17, 31, 0.55)); pointer-events: none; }
.ab-hero-inner { z-index: 2; padding-bottom: clamp(44px, 8vh, 96px); }
.ab-title { font-size: clamp(2.35rem, 0.9rem + 5.6vw, 6.6rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.045em; margin: 0 0 0.35em; color: #F4FBFF; }
.ab-title .ln { display: block; overflow: hidden; padding: 0 0.04em 0.07em 0; }
.ab-title .ln > span { display: inline-block; }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .ab-title .ln > span { background: linear-gradient(100deg, #F4FBFF 0%, #F4FBFF 42%, #A9F7F0 50%, #F4FBFF 58%, #F4FBFF 100%) 100% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.ab-hero-foot { display: grid; grid-template-columns: minmax(0, 54ch) auto; gap: 28px 48px; align-items: end; }
.ab-hero-foot .lead { margin: 0; color: #C3D5E5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ab-hero-inner { position: static; }
.ab-hero-inner > * { position: relative; z-index: 2; }
.ab-hero-proof { position: absolute !important; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); top: calc(var(--header-h) + clamp(24px, 6vh, 64px)); display: grid; gap: 4px; padding: 16px 20px; border: 1px solid rgba(244, 183, 64, 0.35); border-radius: var(--r-m); background: rgba(3, 17, 31, 0.4); text-decoration: none; color: var(--text-soft); max-width: 220px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .25s, box-shadow .25s; }
.ab-hero-proof b { font-family: var(--font-display); font-weight: 500; font-size: 2rem; letter-spacing: -0.03em; line-height: 1; color: var(--gold); }
.ab-hero-proof span { font-size: 0.9rem; line-height: 1.35; }
.ab-hero-proof:hover { border-color: var(--gold); color: var(--text); box-shadow: 0 0 30px -10px rgba(244, 183, 64, 0.6); }

/* the one orchestrated entrance */
@media (prefers-reduced-motion: no-preference) {
  .js .ab-title .ln > span { animation: surface 1.2s var(--ease) both, caustic 2.6s ease-in-out 1.6s both; }
  .js .ab-title .ln + .ln > span { animation-delay: .14s, 1.85s; }
  .js .ab-hero-foot, .js .ab-hero-proof { animation: fadein 1s ease .7s both; }
}
@keyframes surface { from { transform: translateY(105%); } to { transform: none; } }
@keyframes caustic { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- A student's day: the 24 hour dial ---------- */
.ab-day-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ab-legend { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ab-legend li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 14px; align-items: baseline; margin: 0; color: var(--text-soft); }
.ab-legend b { color: #fff; margin-right: 6px; }
.k { display: block; width: 14px; height: 14px; border-radius: 4px; transform: translateY(2px); }
.k-college { background: #3E7BDA; }
.k-free { background: var(--glow); box-shadow: 0 0 12px rgba(111, 243, 228, 0.7); }
.k-rest { background: #1E4268; }
.ab-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-soft); }
.ab-note strong { color: var(--gold); font-weight: 600; }
.ab-dial { position: relative; margin: 0 auto; width: 100%; max-width: 470px; aspect-ratio: 1; }
.ab-dial svg { width: 100%; height: 100%; overflow: visible; }
.ab-dial .track { fill: none; stroke: rgba(143, 216, 232, 0.08); stroke-width: 22; }
.ab-dial .arc { fill: none; stroke-width: 22; stroke-dasharray: 0 24; stroke-dashoffset: var(--off); transition: stroke-dasharray 1.3s var(--ease) var(--d); }
.ab-dial.in-view .arc, html:not(.js) .ab-dial .arc { stroke-dasharray: var(--len) 24; }
.ab-dial .a-rest { stroke: #1E4268; }
.ab-dial .a-college { stroke: #3E7BDA; }
.ab-dial .a-free { stroke: var(--glow); filter: drop-shadow(0 0 10px rgba(111, 243, 228, 0.65)); }
.ab-dial .ticks-ring line { stroke: rgba(166, 186, 205, 0.5); stroke-width: 1.5; }
.ab-dial .dial-labels text { fill: var(--text-soft); font-family: var(--font-body); font-size: 15px; text-anchor: middle; }
.ab-dial figcaption { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; pointer-events: none; }
.ab-dial figcaption b { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); letter-spacing: -0.04em; color: #fff; line-height: 1; }
.ab-dial figcaption span { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Proof numbers ---------- */
.ab-proof-band { padding: clamp(28px, 4vw, 48px) 0; }
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof > div { padding: 30px 24px; border-left: 1px solid var(--line); }
.proof > div:first-child { border-left: 0; padding-left: 0; }
.proof b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -0.05em; color: #F4FBFF; font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 12px; color: var(--text-soft); font-size: 0.97rem; line-height: 1.4; max-width: 24ch; }

/* ---------- Split, porthole, ticks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 5 / 4; background: var(--abyss-2); border: 1px solid var(--line); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.ab-porthole { border-radius: 50%; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; box-shadow: 0 0 0 10px rgba(143, 216, 232, 0.05), 0 0 0 11px var(--line), 0 0 90px -10px rgba(111, 243, 228, 0.25); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; margin: 0; color: var(--text-soft); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px rgba(111, 243, 228, 0.8); }

/* ---------- Results ---------- */
.ab-reel-wrap { position: relative; }
.ab-reel { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 22vw, 272px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scrollbar-width: thin; scrollbar-color: rgba(143, 216, 232, 0.3) transparent; }
.ab-reel > * { scroll-snap-align: start; }
.ab-reel-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.ab-reel-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.ab-reel-nav button:hover { border-color: var(--glow); background: rgba(111, 243, 228, 0.08); }
.ab-reel-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.score { background: linear-gradient(180deg, rgba(16, 52, 90, 0.72), rgba(4, 20, 38, 0.9)); border: 1px solid rgba(244, 183, 64, 0.22); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.score-top { padding: 20px 20px 16px; }
.score-num { font-family: var(--font-display); font-weight: 500; color: var(--gold); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem); line-height: 1; letter-spacing: -0.04em; }
.score-sub { color: #fff; font-weight: 600; margin-top: 10px; }
.score-name { color: var(--text-soft); font-size: 0.93rem; margin-top: 2px; }
.score img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; margin-top: auto; background: #061A30; }
button.score { font: inherit; text-align: left; padding: 0; cursor: zoom-in; color: inherit; transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); }
button.score:hover { border-color: var(--gold); box-shadow: 0 0 40px -14px rgba(244, 183, 64, 0.6); transform: translateY(-4px); }
.scores-light .score { border-color: var(--line); background: var(--glass); }
.scores-light .score-num { color: var(--sea); }
.ab-results-foot { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(32px, 6vw, 88px); margin-top: clamp(40px, 6vw, 72px); align-items: end; }
.ab-board h3 { font-size: var(--step-2); margin-bottom: 18px; }
.ab-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ab-bars li { display: grid; grid-template-columns: minmax(0, 15ch) minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--line); }
.ab-bars .nm { color: var(--text); }
.ab-bars .bar { height: 6px; border-radius: 6px; background: rgba(143, 216, 232, 0.1); overflow: hidden; }
.ab-bars .bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 6px; background: linear-gradient(90deg, rgba(244, 183, 64, 0.35), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.ab-bars.in-view .bar i, html:not(.js) .ab-bars .bar i { transform: scaleX(1); }
.ab-bars li:nth-child(2) i { transition-delay: .08s; } .ab-bars li:nth-child(3) i { transition-delay: .16s; } .ab-bars li:nth-child(4) i { transition-delay: .24s; } .ab-bars li:nth-child(5) i { transition-delay: .32s; } .ab-bars li:nth-child(6) i { transition-delay: .4s; }
.ab-bars b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ab-results-cta p { color: var(--text-soft); }
.results-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; align-items: center; }
.mdcat { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mdcat li { margin: 0; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.mdcat b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); color: var(--gold); letter-spacing: -0.03em; min-width: 4.6ch; }
.mdcat span { color: var(--text); }

/* ---------- Faculty ---------- */
.ab-marquee { display: grid; gap: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ab-track { display: flex; gap: 16px; width: max-content; animation: drift calc(var(--n) * 4.2s) linear infinite; animation-play-state: paused; }
.ab-marquee.is-live .ab-track { animation-play-state: running; }
.ab-marquee:hover .ab-track, .ab-marquee:focus-within .ab-track { animation-play-state: paused; }
.ab-rev { animation-direction: reverse; }
@keyframes drift { to { transform: translateX(calc(-50% - 8px)); } }
.ab-track .fac { width: 188px; flex: 0 0 auto; }
.faculty-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.fac { display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; cursor: zoom-in; font: inherit; color: inherit; }
.fac img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 14px; background: #0A2440; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.fac:hover img { border-color: var(--glow); box-shadow: 0 0 30px -10px rgba(111, 243, 228, 0.55); }
.fac-name { font-weight: 600; margin-top: 10px; line-height: 1.25; color: #fff; }
.fac-sub { font-size: .9rem; color: var(--text-soft); }

/* ---------- Streams (home) and programmes (academics) ---------- */
.ab-streams { border-top: 1px solid var(--line); }
.ab-stream { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) minmax(0, 0.9fr); gap: 32px; padding: 34px 8px; border-bottom: 1px solid var(--line); align-items: start; transition: background .3s; }
.ab-stream:hover { background: linear-gradient(90deg, rgba(111, 243, 228, 0.06), transparent 70%); }
.ab-stream h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); letter-spacing: -0.03em; margin: 0; display: flex; align-items: center; gap: 14px; }
.ab-stream h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.s-sci h3::before { background: #5B95F0; box-shadow: 0 0 12px #5B95F0; }
.s-com h3::before { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.s-gen h3::before { background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.ab-stream p { margin: 0; color: var(--text-soft); }
.subjects { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.subjects li { margin: 0; font-size: 0.85rem; font-weight: 500; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); }
.leads-to { font-size: 0.95rem; color: var(--text-soft); }
.leads-to strong { display: block; color: #fff; margin-bottom: 2px; }
.programs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.program { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-m); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.program h3 { margin: 0; }
.program p { color: var(--text-soft); }
.program .leads-to { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.program-accent { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.pa-sci { background: #5B95F0; box-shadow: 0 0 18px #5B95F0; }
.pa-com { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.pa-gen { background: var(--glow); box-shadow: 0 0 18px var(--glow); }

/* ---------- Life tiles and event cards ---------- */
.life-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.life-tile { position: relative; display: block; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; text-decoration: none; background: #061A30; border: 1px solid var(--line); }
.life-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s var(--ease), filter .5s; filter: saturate(0.85); }
.life-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 17, 31, 0) 25%, rgba(3, 17, 31, 0.78) 58%, rgba(3, 17, 31, 0.97) 100%); }
.life-tile span { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; font-size: .92rem; line-height: 1.4; color: var(--text-soft); }
.life-tile b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; letter-spacing: -0.02em; color: #fff; margin-bottom: 6px; }
.life-tile:hover img { transform: scale(1.05); filter: saturate(1); }
.life-tile:hover { border-color: var(--glow); color: #fff; }

.events-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.event-card { grid-column: span 4; background: var(--glass); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); color: inherit; cursor: pointer; text-align: left; padding: 0; font: inherit; transition: border-color .25s, box-shadow .25s; }
.event-card:hover { border-color: var(--line-strong); box-shadow: 0 0 40px -18px rgba(111, 243, 228, 0.6); }
.event-card:hover img { transform: scale(1.04); }
.event-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: #061A30; position: relative; }
.event-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.event-card .count { position: absolute; right: 12px; bottom: 12px; background: rgba(2, 12, 22, 0.8); border: 1px solid var(--line); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.event-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card time { font-size: 0.85rem; color: var(--text-faint); font-weight: 500; }
.event-card h3 { font-size: var(--step-1); margin: 0; line-height: 1.25; color: #fff; }
.event-card p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }
.event-card .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(111, 243, 228, 0.35); color: var(--glow); }
.event-card.feature { grid-column: span 8; }
.event-card.feature .media { aspect-ratio: 16 / 9; }
.event-card.feature h3 { font-size: var(--step-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: inherit; font-weight: 500; font-size: 0.92rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-soft); cursor: pointer; transition: all .2s; }
.filter:hover { color: #fff; border-color: var(--glow); }
.filter[aria-pressed="true"] { background: var(--glow); color: #021220; border-color: var(--glow); }
.month-head { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); letter-spacing: -0.03em; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Dialogs ---------- */
.dialog { border: 1px solid var(--line-strong); padding: 0; width: min(1100px, 94vw); max-height: 92vh; border-radius: var(--r-m); background: #051628; color: var(--text); }
.dialog::backdrop { background: rgba(1, 6, 12, 0.86); backdrop-filter: blur(4px); }
.dialog-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); max-height: 92vh; }
.dialog-media { background: #01070E; position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.dialog-media img { max-height: 80vh; width: 100%; object-fit: contain; }
.dialog-text { padding: 30px; overflow: auto; max-height: 92vh; }
.dialog-text time { color: var(--text-faint); font-weight: 500; font-size: 0.9rem; }
.dialog-text h3 { margin: 6px 0 14px; color: #fff; }
.dialog-text .desc { white-space: pre-line; font-size: 0.98rem; color: var(--text-soft); }
.dialog-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(2, 12, 22, 0.8); cursor: pointer; font-size: 22px; line-height: 1; color: #fff; }
.dialog-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(2, 12, 22, 0.75); cursor: pointer; font-size: 22px; color: #fff; }
.dialog-nav:hover, .dialog-close:hover { border-color: var(--glow); }
.dialog-prev { left: 10px; } .dialog-next { right: 10px; }
.dialog-counter { position: absolute; left: 12px; bottom: 12px; background: rgba(2, 12, 22, 0.8); color: #fff; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.thumbs button { width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #0A2440; }
.thumbs button[aria-current="true"] { border-color: var(--glow); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 12% 0%, rgba(143, 216, 232, 0.16), transparent 70%); pointer-events: none; }
.page-hero.on-dark { background: transparent; border: 0; }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 60ch; }
.crumbs { font-size: 0.9rem; margin-bottom: 22px; color: var(--text-faint); }
.crumbs a { color: var(--text-soft); }
.page-hero-media { margin-top: 40px; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 21 / 8; background: #061A30; border: 1px solid var(--line); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Generic blocks ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-m); padding: 28px; }
.panel h3 { font-size: var(--step-1); margin-bottom: 8px; color: #fff; }
.panel p { color: var(--text-soft); }
.panel p:last-child { margin-bottom: 0; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(111, 243, 228, 0.5); }
.value { padding: 30px 30px 8px 0; }
.value + .value { padding-left: 30px; border-left: 1px solid var(--line); }
.value h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); letter-spacing: -0.03em; margin-bottom: 12px; }
.value p { color: var(--text-soft); }
.facility { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; }
.facility svg { width: 36px; height: 36px; color: var(--glow); }
.facility h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.facility p { font-size: 0.95rem; color: var(--text-soft); margin: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); margin: 0; }
.steps > li::before { content: counter(step); font-family: var(--font-display); font-weight: 300; font-size: 2.6rem; line-height: 1; color: var(--glow); }
.steps h3 { margin: 0 0 6px; font-size: var(--step-1); }
.steps p { margin: 0; color: var(--text-soft); }
.steps-h { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps-h > li { counter-increment: step; padding: 24px 20px 0 0; border-top: 1px solid var(--line-strong); margin: 0; position: relative; }
.steps-h > li::after { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.steps-h > li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 300; font-size: 2.2rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.steps-h h3 { font-size: var(--step-1); margin: 0 0 8px; }
.steps-h p { font-size: 0.95rem; margin: 0; color: var(--text-soft); }

.quote { margin: 0; padding: 0; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1.25; letter-spacing: -0.03em; color: #F4FBFF; }
.quote figcaption { margin-top: 18px; font-weight: 500; color: var(--text-soft); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.quotes .quote { border-top: 1px solid var(--line-strong); padding-top: 26px; position: relative; }
.quotes .quote::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 1px; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.quotes .quote blockquote { font-family: var(--font-body); font-weight: 400; font-size: 1.08rem; line-height: 1.65; letter-spacing: 0; color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--glass); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(143, 216, 232, 0.07); font-weight: 600; color: #fff; }
td { color: var(--text-soft); }
td strong { color: #fff; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: center; font-variant-numeric: tabular-nums; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font-weight: 600; font-size: var(--step-1); line-height: 1.35; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: linear-gradient(var(--glow), var(--glow)) center / 14px 1.5px no-repeat, linear-gradient(var(--glow), var(--glow)) center / 1.5px 14px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding: 0 0 22px; color: var(--text-soft); }
.faq .answer p { max-width: 75ch; }

.cta-band { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(111, 243, 228, 0.14), transparent 70%), var(--glass-deep); border: 1px solid rgba(111, 243, 228, 0.25); color: var(--text-soft); border-radius: var(--r-l); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--step-4); margin-bottom: 12px; }
.cta-band p { margin: 0; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; }
.sonar { position: absolute !important; z-index: 0 !important; right: 14%; top: 50%; width: 0; height: 0; }
.sonar i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(111, 243, 228, 0.55); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .sonar i { animation: ping 4.5s cubic-bezier(.1, .6, .3, 1) infinite; }
  .sonar i:nth-child(2) { animation-delay: 1.5s; }
  .sonar i:nth-child(3) { animation-delay: 3s; }
}
@keyframes ping { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; margin: 0; color: var(--text-soft); }
.contact-list svg { width: 24px; height: 24px; color: var(--glow); margin-top: 3px; }
.contact-list b { display: block; color: #fff; }
.contact-list + .hero-actions { margin-top: 30px; }
.map { border: 1px solid var(--line); width: 100%; height: 100%; min-height: 380px; border-radius: var(--r-m); background: #EEF3F7; filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.92); }
form .field { display: grid; gap: 6px; margin-bottom: 16px; }
form label { font-weight: 500; font-size: 0.95rem; color: var(--text); }
form input, form select, form textarea { font: inherit; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(1, 8, 16, 0.55); color: #fff; width: 100%; }
form select option { background: #051628; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 3px rgba(111, 243, 228, 0.18); }
form .hint, .form-status { font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Footer: the seabed ---------- */
.site-footer { position: relative; background: #01070E; color: var(--text-soft); padding: clamp(60px, 8vw, 96px) 0 24px; font-size: 0.97rem; border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--glow), transparent); opacity: .6; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--glow); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--text-faint); max-width: 38ch; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--text); }
.socials a:hover { border-color: var(--glow); color: var(--glow); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.88rem; color: var(--text-faint); }
.credit { text-align: center; font-size: 11px; color: #6E829A; padding: 16px 0 4px; }
.credit a { color: #6E829A !important; text-decoration: underline !important; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.14), 0 12px 28px -10px rgba(0, 0, 0, .6); }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ab-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ab-hero-canvas { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .header-cta .btn-ghost { display: none; }
  .depth { right: 10px; }
}
@media (max-width: 1180px) {
  .depth { display: none; }
  .depth-bar { display: block; position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 120; background: linear-gradient(90deg, var(--sea), var(--glow)); box-shadow: 0 0 10px var(--glow); transform-origin: left; transform: scaleX(var(--depth)); pointer-events: none; }
}
@media (max-width: 1080px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .header-cta { margin-left: auto; }
  .menu-toggle { display: grid; }
  .scores, .mdcat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faculty-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .event-card, .event-card.feature { grid-column: span 6; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-h { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ab-hero-proof { position: relative !important; right: auto; top: auto; margin-top: 28px; }
  .ab-hero-foot { grid-template-columns: minmax(0, 1fr); }
  .ab-day-grid, .split, .grid-2, .ab-results-foot { grid-template-columns: minmax(0, 1fr); }
  .ab-dial { max-width: 400px; }
  .section-head, .section-head.head-row { grid-template-columns: minmax(0, 1fr); }
  .section-head.head-row .btn { justify-self: start; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-stream { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .life-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .programs, .grid-3, .values, .quotes { grid-template-columns: minmax(0, 1fr); }
  .value, .value + .value { padding: 26px 0 8px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .actions { flex-direction: row; flex-wrap: wrap; }
  .sonar { right: 10%; top: 22%; }
  .dialog-inner { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .dialog-text { max-height: none; }
  .faculty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-hero-media { aspect-ratio: 16 / 9; }
  .split .split-media { order: -1; }
  .ab-porthole { max-width: 360px; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .announce-long { display: none; }
  .announce-short { display: inline; }
  .announce a { display: inline-block; padding: 6px 0; }
  .site-header .wrap { gap: 10px; }
  .brand img { height: 32px; }
  .header-cta .btn-sm { min-height: 42px; padding: 10px 14px; }
  .site-header .brand { min-height: 44px; }
  .ab-hero { min-height: max(760px, 100svh); }
  .ab-hero-foot .lead { font-size: 1.05rem; }
  .ab-title { letter-spacing: -0.05em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; }
  .ab-hero-proof { max-width: none; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
  .ab-legend li { font-size: 0.95rem; }
  .proof > div { padding: 22px 14px 22px 0; }
  .proof > div:nth-child(even) { padding-left: 14px; }
  .proof b { font-size: 2.4rem; }
  .ab-reel { grid-auto-columns: 74%; margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
  .ab-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .ab-bars .bar { grid-column: 1 / -1; grid-row: 2; }
  .ab-track .fac { width: 140px; }
  .ab-stream { padding: 26px 0; }
  .life-tile { aspect-ratio: 3 / 4; }
  .life-tile span { padding: 12px; font-size: .8rem; }
  .life-tile b { font-size: .95rem; }
  .scores:not(.ab-reel) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scores .score-top { padding: 14px 12px 10px; }
  .scores .score-num { font-size: 1.6rem; }
  .scores .score-sub { font-size: .84rem; line-height: 1.3; }
  .scores .score-name { font-size: .8rem; }
  .mdcat { grid-template-columns: minmax(0, 1fr); }
  .faculty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .mini-grid .panel { padding: 14px; }
  .mini-grid .panel h3 { font-size: 1.02rem; margin-bottom: 4px; }
  .mini-grid .panel p { font-size: .86rem; line-height: 1.4; }
  .events-grid { gap: 12px; }
  .event-card, .event-card.feature { grid-column: 1 / -1; }
  .event-card:not(.feature) { flex-direction: row; align-items: stretch; }
  .event-card:not(.feature) .media { flex: 0 0 38%; aspect-ratio: auto; min-height: 132px; }
  .event-card:not(.feature) .count { right: 6px; bottom: 6px; font-size: .7rem; padding: 3px 7px; }
  .event-card:not(.feature) .body { padding: 12px 14px; gap: 5px; }
  .event-card:not(.feature) h3 { font-size: 1rem; }
  .event-card:not(.feature) .tag { font-size: .7rem; padding: 3px 8px; }
  .event-card:not(.feature) time { font-size: .78rem; }
  .event-card:not(.feature) p { font-size: .84rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .filter { flex: 0 0 auto; }
  .steps-h { grid-template-columns: minmax(0, 1fr); }
  .steps > li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .steps > li::before { font-size: 2rem; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer a { display: inline-block; padding: 4px 0; }
  .cta-band .actions .btn { flex: 1 1 100%; }
  th, td { padding: 12px 12px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
