/* NSBM Green University — design preview stylesheet (not production code).
   Spacing is on a 4/8 px base; type uses one scale; colours are tokens only.
   Contrast ratios are documented in APPROVAL.html and computed from these values. */

/* Tokens live in design-tokens.css (DESIGN_STRUCTURE.md). The names below are the older names this stylesheet uses, now pointing at the spec's role tokens so light and dark both work. */
:root {
  --tint: var(--surface-2);
  --ink: var(--heading);
  --muted: var(--text-muted);
  --green: var(--primary);
  --green-strong: var(--primary-hover);
  --lime: var(--accent);
  --lime-wash: var(--primary-soft);
  --navy: var(--blue-950);
  --blue: var(--link);
  --line: var(--border);

  --s1: var(--space-1); --s2: var(--space-2); --s3: var(--space-3); --s4: var(--space-4); --s5: var(--space-6);
  --s6: var(--space-8); --s7: var(--space-12); --s8: var(--space-16); --s9: var(--space-24);
  --radius: var(--radius-xl);
  --shape: 10px 10px 96px 10px;  /* the big curved corner, kept for photos only */

  --font-display: var(--font-sans);
  --font-body: var(--font-sans);
  --t-sm: var(--fs-body-sm);
  --t-base: var(--fs-body);
  --t-md: var(--fs-body-lg);
  --t-lg: var(--fs-h5);
  --t-xl: var(--fs-h3);
  --t-2xl: var(--fs-h1);   /* stat figures */
  --t-h1: var(--fs-display);
  --t-h2: var(--fs-h2);
  --t-lede: var(--fs-lead);

  --shadow: var(--shadow-md);
  --container: 1360px;
  --ease: var(--ease-out);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-strong); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 var(--s4); color: var(--ink); font-weight: 700; }
h1 { font-size: var(--t-h1); letter-spacing: -0.04em; line-height: 1; font-weight: 800; }
h2 { font-size: var(--t-h2); letter-spacing: -0.035em; line-height: 1.04; }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); }
p { margin: 0 0 var(--s4); max-width: 68ch; }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }

.skip-link { position: absolute; left: var(--s4); top: -100px; background: var(--ink); color: #fff; padding: var(--s3) var(--s4); border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: var(--s2); color: #fff; }

.container { width: min(100% - 2 * var(--s4), var(--container)); margin-inline: auto; }
@media (min-width: 1024px) { .container { width: min(100% - 3 * var(--s5), var(--container)); } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 768px) {
  .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
  .span-12 { grid-column: 1 / -1; }
}

.band { padding-block: var(--s8); }
.band--tint { background: var(--tint); }
@media (min-width: 1024px) { .band { padding-block: var(--s9); } }
.section-head { margin-bottom: var(--s6); }
.section-head p { color: var(--muted); font-size: var(--t-md); }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; color: var(--green); margin-bottom: var(--s2); }
.status { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px var(--s2); border-radius: 999px; background: var(--lime-wash); color: var(--ink); vertical-align: middle; }
.status--tbd { background: var(--warning-50); }

/* Buttons: obvious affordance, visible hover/focus/active */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s5); border-radius: 999px; border: 2px solid var(--green); background: var(--green); color: #fff; font: 800 0.8125rem/1 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--green-strong); border-color: var(--green-strong); color: #fff; box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--lime-wash); color: var(--green-strong); border-color: var(--green-strong); }
.btn--small { min-height: 44px; padding: 0 var(--s4); font-size: 0.8125rem; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.link-arrow::after { content: " \2192"; margin-left: var(--s1); transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Preview banner */
.preview-banner { background: var(--navy); color: #fff; font-size: var(--t-sm); padding: var(--s2) 0; }
.preview-banner .container { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.preview-banner p { margin: 0; max-width: none; }
.preview-banner button { min-height: 44px; min-width: 44px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 0 var(--s4); font: inherit; cursor: pointer; }
.preview-banner button:hover { background: rgba(255,255,255,.15); }
.preview-banner button[hidden] { display: none; }
.preview-banner.is-dismissed { display: none; }
.preview-banner :focus-visible { outline-color: #fff; }

/* Utility bar */
.utility { background: var(--tint); font-size: 0.8125rem; border-bottom: 1px solid var(--line); }
.utility .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s5); align-items: center; }
.utility ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s2); }
.utility a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s2); color: var(--ink); text-decoration: none; }
.utility a:hover { color: var(--green); text-decoration: underline; }
.utility .register a { font-weight: 700; color: var(--green); }

/* Floating glass header */
.site-header { position: sticky; top: var(--s2); z-index: 50; padding-top: var(--s2); }
.glass-bar { position: relative; display: flex; align-items: center; gap: var(--s4); min-height: 64px; padding: var(--s2) var(--s4); border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass-bar {
    background: linear-gradient(180deg, rgba(255,255,255,.52), rgba(255,255,255,.28));
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-color: transparent;
    box-shadow: 0 18px 40px color-mix(in srgb, var(--blue-950) 20%, transparent), inset 0 1px 1px rgba(255,255,255,.85), inset 0 -8px 20px rgba(255,255,255,.10), inset 0 0 0 1px rgba(255,255,255,.35);
  }
}
/* Specular sheen only; the refraction itself comes from liquid-glass.js (see site.js). No coloured border. */
.glass-bar { isolation: isolate; }
.glass-bar::after { z-index: -1; content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 0 30%, rgba(255,255,255,.35) 40%, rgba(255,255,255,0) 52%), radial-gradient(60% 140% at 8% 0%, rgba(255,255,255,.40), transparent 60%); mix-blend-mode: soft-light; }

.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: none; flex: 1; justify-content: center; }
.main-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--s1); }
.main-nav a, .main-nav summary { display: inline-flex; align-items: center; gap: var(--s1); min-height: 44px; padding: 0 var(--s3); border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: var(--s1); }
.main-nav a:hover, .main-nav summary:hover, .main-nav details[open] > summary { background: var(--lime-wash); color: var(--ink); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.mega { position: static; }
.mega-panel { position: absolute; left: var(--s4); right: var(--s4); top: calc(100% + var(--s2)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s5); }
.mega-panel p { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.mega-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); }
.mega-panel a { border-radius: var(--radius-sm); width: 100%; }
.header-actions { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }
.search-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; }
.search-link:hover { border-color: var(--green); color: var(--green); }
.search-link svg { width: 18px; height: 18px; }
.search-link .label { display: none; }
.mobile-menu { position: static; }
.mobile-menu summary { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: var(--t-sm); cursor: pointer; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel { position: absolute; left: 0; right: 0; top: calc(100% + var(--s2)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s4); max-height: 75vh; overflow: auto; }
.mobile-menu-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu-panel > ul > li > a, .mobile-menu-panel > ul > li > strong { display: flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mobile-menu-panel ul ul { padding-left: var(--s4); margin-bottom: var(--s2); }
.mobile-menu-panel ul ul a { display: flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
@media (min-width: 1180px) {
  .main-nav { display: flex; }
  .mobile-menu { display: none; }
  .search-link .label { display: inline; }
}
@media (max-width: 1179px) { .glass-bar { border-radius: 28px; } }

/* Hero */
.hero { padding-top: var(--s5); }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .hero-media img { aspect-ratio: 4 / 3; } }
.hero-card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s5); margin: calc(-1 * var(--s7)) var(--s3) 0; }
.hero-card .lede { font-size: var(--t-lede); color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0; }
@media (min-width: 1024px) {
  .hero-card { position: absolute; left: var(--s6); bottom: var(--s6); max-width: 640px; margin: 0; padding: var(--s6); }
  .hero-media img { aspect-ratio: auto; height: 600px; }
}
.finder { display: grid; grid-template-columns: 1fr; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); }
.finder label { display: block; font-size: var(--t-sm); font-weight: 700; margin-bottom: var(--s1); }
.finder input, .finder select { width: 100%; min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--text-subtle); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.finder input:hover, .finder select:hover { border-color: var(--green); }
@media (min-width: 640px) { .finder { grid-template-columns: 1fr 1fr; } .finder .full { grid-column: 1 / -1; } }
.finder-bar { margin-top: var(--s5); }

/* Moving strips (CSS only; pausable; static under reduced motion) */
.strip { position: relative; }
.strip-controls { display: flex; justify-content: flex-end; margin-bottom: var(--s3); }
.pause-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pause-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.pause-btn:hover { border-color: var(--green); }
.pause-toggle:focus-visible + .pause-btn { outline: 3px solid var(--focus); outline-offset: 3px; }
.pause-btn .on { display: none; }
.pause-toggle:checked + .pause-btn .on { display: inline; }
.pause-toggle:checked + .pause-btn .off { display: none; }
.strip-viewport { overflow-x: auto; scrollbar-width: thin; }
.strip-track { display: flex; gap: var(--s4); width: max-content; padding-block: var(--s1); }
.strip-track .dup { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .strip-viewport { overflow: hidden; }
  .strip-track .dup { display: flex; gap: var(--s4); }
  .strip-track { animation: marquee-left 40s linear infinite; }
  .strip--right .strip-track { animation-name: marquee-right; }
  .strip:hover .strip-track, .strip:focus-within .strip-track, .pause-toggle:checked ~ .strip-viewport .strip-track { animation-play-state: paused; }
}
@keyframes marquee-left { to { transform: translateX(calc(-50% - var(--s2))); } }
@keyframes marquee-right { from { transform: translateX(calc(-50% - var(--s2))); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .strip-controls { display: none; } }
.stream-chip { display: inline-flex; align-items: center; min-height: 56px; padding: 0 var(--s5); border-radius: 999px; background: var(--lime-wash); color: var(--ink); font-weight: 700; white-space: nowrap; text-decoration: none; border: 2px solid transparent; }
.stream-chip:hover { border-color: var(--green); color: var(--ink); }

/* Stats panel */
.stat-grid { display: grid; grid-template-columns: 1fr; gap: var(--s4); }
@media (min-width: 560px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); overflow: hidden; }
.stat .figure { font-family: var(--font-display); font-size: var(--t-2xl); line-height: 1; font-weight: 700; color: var(--green); display: block; margin-bottom: var(--s2); }
.stat .figure--tbd { font-size: var(--t-lg); line-height: 1.3; color: var(--ink); }
.stat h3 { font-family: var(--font-body); font-size: var(--t-base); margin-bottom: var(--s1); }
.stat p { margin: 0; color: var(--muted); font-size: var(--t-sm); }
.stat img { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); width: calc(100% + 2 * var(--s5)); max-width: none; aspect-ratio: 16 / 9; object-fit: cover; }
.media-panel { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.media-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-panel figcaption { padding: var(--s4); font-size: var(--t-sm); color: var(--muted); }
.play-fake { position: absolute; left: var(--s4); top: var(--s4); display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); font-weight: 700; font-size: var(--t-sm); color: var(--ink); text-decoration: none; }
.play-fake:hover { background: var(--surface); border-color: var(--green); color: var(--ink); }

/* Partners */
.partner-row { display: flex; flex-wrap: wrap; gap: var(--s3); list-style: none; margin: 0; padding: 0; }
.partner-row li { min-height: 56px; display: inline-flex; align-items: center; padding: 0 var(--s5); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; }
.circle-row { display: flex; flex-wrap: wrap; gap: var(--s5); list-style: none; padding: 0; margin: 0; }
.circle { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--lime-wash); border: 2px solid var(--lime); text-align: center; font-weight: 700; padding: var(--s2); line-height: 1.2; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); }
.card-body .link-arrow { margin-top: auto; }
.meta { font-size: var(--t-sm); color: var(--muted); }

/* News and events */
.news-layout { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 900px) { .news-layout { grid-template-columns: 5fr 7fr; } }
.row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.row-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); min-height: 72px; transition: border-color .2s, box-shadow .2s; }
a.row-item:hover { border-color: var(--green); box-shadow: var(--shadow); color: var(--ink); }
.row-item h3, .row-item h4 { margin: 0; font-size: var(--t-base); font-family: var(--font-body); }
.date-chip { text-align: center; min-width: 64px; padding: var(--s2); border-radius: var(--radius-sm); background: var(--lime-wash); line-height: 1.1; }
.date-chip strong { display: block; font-family: var(--font-display); font-size: var(--t-lg); }
.date-chip span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.subhead { font-family: var(--font-body); font-size: var(--t-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); }

/* Apply / Visit / Ask strip */
.avs { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 768px) { .avs { grid-template-columns: repeat(3, 1fr); } }
.avs-item { border-radius: var(--radius); padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--lime); }
.avs-item h3 { margin-bottom: var(--s2); }
.avs-item p { color: var(--muted); }

/* Page hero for inner pages */
.page-hero { padding-block: var(--s7) var(--s6); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--tint), #fff); }
.page-hero p { color: var(--muted); font-size: var(--t-lede); }
.breadcrumb { font-size: var(--t-sm); margin-bottom: var(--s3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--s2); color: var(--muted); }

/* Programme listing */
.filters { display: grid; gap: var(--s3); grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
@media (min-width: 768px) { .filters { grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; } }
.filters label { display: block; font-size: var(--t-sm); font-weight: 700; margin-bottom: var(--s1); }
.filters input, .filters select { width: 100%; min-height: 48px; padding: 0 var(--s3); border: 1.5px solid var(--text-subtle); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
.result-count { margin: var(--s5) 0 var(--s3); font-weight: 600; }
.prog-list { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .prog-list { grid-template-columns: 1fr 1fr; } }
.prog-item { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: var(--s1); }
.prog-item a { font-weight: 700; text-decoration: none; color: var(--ink); }
.prog-item a:hover { color: var(--green); text-decoration: underline; }
.prog-item .meta { margin: 0; }
.prog-item[hidden] { display: none; }
.faculty-block { margin-top: var(--s7); }
.faculty-block h2 { border-bottom: 3px solid var(--lime); display: inline-block; padding-bottom: var(--s1); }

/* Detail / steps / details */
.summary-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow); }
@media (min-width: 1024px) { .summary-card { position: sticky; top: 112px; } }
.summary-card dl { margin: 0 0 var(--s4); }
.summary-card dt { font-size: var(--t-sm); color: var(--muted); font-weight: 600; margin-top: var(--s3); }
.summary-card dd { margin: 0; font-weight: 600; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: var(--s4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: var(--t-md); }
.steps h3 { margin-bottom: var(--s1); }
.steps p { margin: 0; color: var(--muted); }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--s3); }
details.faq summary { min-height: 56px; display: flex; align-items: center; padding: 0 var(--s5); font-weight: 700; cursor: pointer; }
details.faq summary:hover { color: var(--green); }
details.faq > div { padding: 0 var(--s5) var(--s4); color: var(--muted); }
.tab-list { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0 0 var(--s5); }
.tab-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); background: var(--surface); }
.tab-list a:hover { border-color: var(--green); color: var(--green); }

/* Forms (mockups) */
.form { display: grid; gap: var(--s4); }
.form label { display: block; font-weight: 700; margin-bottom: var(--s1); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: var(--s3); border: 1.5px solid var(--text-subtle); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
.form textarea { min-height: 140px; }
.form .hint { font-size: var(--t-sm); color: var(--muted); margin: var(--s1) 0 0; }

/* Footer (pale, per the white-page direction) */
.site-footer { background: var(--tint); border-top: 4px solid var(--lime); padding-block: var(--s8) var(--s5); margin-top: 0; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--font-body); font-size: var(--t-base); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; color: var(--muted); }
.footer-bottom { margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
.footer-bottom p { max-width: none; margin: 0 0 var(--s2); }


/* Approval page helpers */
.swatches { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.swatch .chip { height: 72px; display: flex; align-items: flex-end; padding: var(--s2) var(--s3); font-weight: 700; }
.swatch .info { padding: var(--s3); font-size: var(--t-sm); }
.swatch code, code { font-size: 0.875em; background: var(--tint); padding: 1px 6px; border-radius: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-weight: 700; }
.thumbs { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.checklist { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.checklist label { display: flex; gap: var(--s3); align-items: flex-start; min-height: 44px; padding: var(--s2) 0; cursor: pointer; }
.checklist input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--green); }

@media print { .site-header, .preview-banner, .skip-link { display: none; } }

.hero-stage { position: relative; }
.lg-only { display: none; }
@media (min-width: 1024px) { .lg-only { display: inline; } }
.note-box { border-left: 4px solid var(--lime); background: var(--tint); padding: var(--s4) var(--s5); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: var(--s5); }
.note-box p:last-child { margin-bottom: 0; }
video.panel-video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); object-fit: cover; }
.two-col-text { columns: 1; }
@media (min-width: 768px) { .two-col-text { columns: 2; column-gap: var(--gutter); } }
.two-col-text li { break-inside: avoid; }
.mega-title { display: block; font-family: var(--font-display); font-size: var(--t-lg); margin-bottom: var(--s2); }

@media (max-width: 479px) {
  .glass-bar { gap: var(--s2); padding: var(--s2) var(--s3); }
  .brand img { height: 36px; }
  .header-actions { gap: var(--s1); }
  .header-actions .btn--small, .mobile-menu summary { padding: 0 var(--s3); }
  .search-link { padding: 0 var(--s3); }
}

/* Stats table over the 360 poster (zig-zag, as drawn in the sketch) */
.stats-panel { position: relative; border-radius: var(--radius); background-size: cover; background-position: center; padding: var(--s5); overflow: hidden; border: 1px solid var(--line); }
.stats-panel::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--surface) 86%, transparent); }
.stats-panel > * { position: relative; }
.stats-badge { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s4); }
.stats-table { display: grid; gap: var(--s3); }
.stat-row { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 768px) { .stat-row { grid-template-columns: 1fr 1fr; } .stat-row.flip .stat-cell { order: 2; } .stat-row.flip .desc-cell { order: 1; } }
.stat-cell, .desc-cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s5); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.stat-cell img { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); width: calc(100% + 2 * var(--s5)); max-width: none; aspect-ratio: 16 / 7; object-fit: cover; }
.stat-cell .figure { font-family: var(--font-display); font-size: var(--t-2xl); line-height: 1; font-weight: 700; color: var(--green); margin-bottom: var(--s2); }
.stat-cell .figure--tbd { font-size: var(--t-lg); line-height: 1.3; color: var(--ink); }
.stat-cell h3 { font-family: var(--font-body); font-size: var(--t-base); margin: 0; }
.desc-cell p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .news-layout { grid-template-columns: 1fr 1fr; align-items: start; } }

/* News and Stories: 2 x 2 as drawn. Row 1: recent story card | past headlines. Row 2: upcoming events | recent event card. */
.news-layout { display: grid; grid-template-columns: 1fr; gap: var(--s6) var(--s7); align-items: center; }
@media (min-width: 768px) { .news-layout { grid-template-columns: 1fr 1fr; } }
.news-cell--card .card { max-width: 340px; }
.news-cell--card .card img { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .news-cell--card:nth-child(4) { justify-self: center; } }

/* Background video behind the stats table (optional; poster shows if it does not play) */
.stats-panel .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stats-panel .bg-video + .stats-badge { position: relative; }
.stats-panel::before { z-index: 0; }
.stats-panel > * { z-index: 1; }
.stats-panel > .bg-video { z-index: 0; }

/* Student clip rail: vertical 9:16 cards, native controls, no autoplay */
.clip-rail { display: flex; gap: var(--s4); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--s3); }
.clip { flex: none; width: 220px; margin: 0; scroll-snap-align: start; }
.clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); border-radius: var(--radius); }
.clip figcaption { font-size: var(--t-sm); color: var(--muted); padding-top: var(--s2); }
@media (min-width: 768px) { .clip { width: 240px; } }

/* Matching type: every stat figure, label and description uses the same size across cells; FAQ stays a readable measure and left-aligned with the grid */
.stat-cell .figure { font-size: var(--t-h2); }
.stat-cell h3, .card-body h3, .avs-item h3, .steps h3 { font-family: var(--font-display); font-size: var(--t-lg); letter-spacing: -0.02em; }
.desc-cell p { font-size: var(--t-md); line-height: 1.6; }
.row-item h3, .row-item h4 { font-size: var(--t-base); font-weight: 600; }
details.faq { max-width: 820px; }
.section-head { max-width: 760px; }
.avs-item p, .card-body p, .steps p { font-size: var(--t-base); }
.stats-badge { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s2) var(--s4); color: var(--ink); }

.partner-figure { margin: 0; }
.partner-figure img { width: 100%; max-width: 1100px; height: auto; border-radius: var(--radius-sm); background: var(--surface); }
.life-panel { position: relative; border-radius: var(--radius); overflow: hidden; padding: var(--s6); border: 1px solid var(--line); min-height: 520px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5); background: var(--tint); }
.life-panel .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.life-panel .stats-badge { position: relative; z-index: 1; align-self: flex-start; }
.life-card { position: relative; z-index: 1; background: var(--surface); border-radius: var(--radius); padding: var(--s6); max-width: 680px; box-shadow: var(--shadow); }
.life-stats { display: grid; gap: var(--s5); grid-template-columns: 1fr; margin: var(--s5) 0; }
@media (min-width: 560px) { .life-stats { grid-template-columns: 1fr 1fr; } }
.life-stats .figure { display: block; font-family: var(--font-display); font-size: var(--t-h2); font-weight: 700; line-height: 1; color: var(--green); }
.life-stats h3 { font-size: var(--t-lg); margin: var(--s2) 0 var(--s1); }
.life-stats p { margin: 0; color: var(--muted); }
@media (max-width: 559px) { .life-panel { padding: var(--s4); } .life-card { padding: var(--s5); } }

/* Hero: edge to edge, as in the earlier mock; the card lines up with the page grid */
.hero { padding-top: 0; }
.hero-stage { position: relative; width: 100%; }
.hero-media { border-radius: 0; }
.hero-card { margin: calc(-1 * var(--s7)) var(--s4) 0; }
.hero-card h1 { font-size: clamp(2.8rem, 2rem + 3.6vw, 6rem); }
@media (min-width: 1024px) {
  .hero-media img { height: clamp(640px, 88vh, 880px); width: 100%; }
  .hero-card { left: max(var(--s5), calc((100% - var(--container)) / 2)); bottom: var(--s7); max-width: 760px; margin: 0; padding: var(--s7); }
}
/* Student life: the video is fully visible next to the text, not behind it */
.life-layout { display: grid; gap: var(--s6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .life-layout { grid-template-columns: 5fr 7fr; } }
.life-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); box-shadow: var(--shadow); max-width: none; position: static; }
.life-media { margin: 0; }
.life-media video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--ink); border-radius: var(--radius); }
.life-media figcaption { padding-top: var(--s3); }

/* On-campus partner logos in circles */
.circle-row { align-items: flex-start; gap: var(--s6); }
.circle-row li { display: flex; flex-direction: column; align-items: center; gap: var(--s2); width: 132px; text-align: center; }
.circle { width: 120px; height: 120px; background: var(--surface); border: 2px solid var(--lime); overflow: hidden; padding: 0; }
.circle img { width: 85px; height: 80px; object-fit: contain; }
.circle-name { font-weight: 600; font-size: var(--t-sm); line-height: 1.3; }

/* Balanced two-column partner sections: text left, logos spread across the right */
.partners-layout { display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: center; }
@media (min-width: 1024px) { .partners-layout { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
.partners-layout .circle-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); justify-items: center; gap: var(--s5) var(--s4); width: 100%; }
.partners-layout .circle-row li { width: auto; }
.partner-figure img { max-width: none; }


/* ==========================================================================
   Polish pass: one memorable element (the full-bleed hero with the campus
   curve), quieter everything else. Sentence-case buttons, ruled lists in place
   of boxed cards, asymmetric image corners taken from the earlier mock.
   ========================================================================== */
/* --shape and --ease now come from :root above */
.band { padding-block: clamp(72px, 9vw, 128px); }
.shape { border-radius: var(--shape); overflow: hidden; }

/* Buttons and links */
.btn { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 700; min-height: 52px; padding: 0 28px; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.btn--light { background: var(--surface); border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--lime-wash); border-color: var(--lime-wash); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.link-arrow { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 6px; transition: text-decoration-color .2s, color .2s; }
.link-arrow::after { content: none; }
.link-arrow:hover { text-decoration-color: var(--green); }

/* Hero: the campus fills the window; the headline sits directly on it */
.hero { margin-top: -72px; padding-top: 0; }
.hero-stage { position: relative; min-height: clamp(580px, 90vh, 900px); display: flex; align-items: flex-end; overflow: hidden; border-radius: 0 0 clamp(40px, 8vw, 128px) 0; background: var(--ink); }
.hero-media { position: absolute; inset: 0; border-radius: 0; }
.hero-media img { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; }
.hero-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue-950) 80%, transparent) 0%, color-mix(in srgb, var(--blue-950) 55%, transparent) 38%, color-mix(in srgb, var(--blue-950) 0%, transparent) 72%), linear-gradient(0deg, color-mix(in srgb, var(--blue-950) 70%, transparent) 0%, color-mix(in srgb, var(--blue-950) 0%, transparent) 45%); }
.hero-copy { position: relative; z-index: 2; width: 100%; padding-block: 120px clamp(48px, 9vh, 96px); color: #fff; }
.hero-copy h1 { color: #fff; font-size: clamp(3rem, 1.4rem + 6vw, 7rem); line-height: .96; letter-spacing: -0.05em; max-width: 12ch; margin-bottom: var(--s5); }
.hero-copy h1 span { display: block; }
.hero-copy .lede { color: rgba(255,255,255,.94); font-size: var(--t-lede); max-width: 44ch; }
.hero-copy .status { background: rgba(255,255,255,.18); color: #fff; }
.hero-copy .cta-row { margin-bottom: 0; }
.hero-copy :focus-visible { outline-color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 span { animation: rise .9s var(--ease) both; }
  .hero-copy h1 span:nth-child(2) { animation-delay: .12s; }
  .hero-copy h1 span:nth-child(3) { animation-delay: .24s; }
  .hero-copy .lede, .hero-copy .cta-row { animation: rise .9s var(--ease) .4s both; }
  .hero-media img { animation: settle 2.4s var(--ease) both; }
}

/* Inner page heroes with a photo */
.page-hero { padding-block: clamp(40px, 6vw, 80px); }
.page-hero__grid.has-media { display: grid; gap: var(--s6); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .page-hero__grid.has-media { grid-template-columns: 6fr 5fr; gap: var(--s8); } }
.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5rem); max-width: 14ch; }
.page-hero p { max-width: 52ch; }

/* Stats: bigger numerals, quieter cells, shaped photos */
.stat-cell, .desc-cell { border: 0; border-radius: 14px; box-shadow: 0 1px 0 color-mix(in srgb, var(--blue-950) 6%, transparent); }
.stat-cell img { border-radius: 14px 14px 0 0; }
.stat-cell .figure { font-size: clamp(3rem, 1.5rem + 5vw, 6rem); letter-spacing: -0.05em; }
.desc-cell p { font-size: var(--t-lg); line-height: 1.5; color: var(--ink); max-width: 36ch; }
.stats-panel { border: 0; border-radius: 10px 10px 96px 10px; }

/* News: ruled lists instead of boxed rows; one shaped photo style */
.row-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 4px; }
a.row-item:hover { box-shadow: none; border-color: var(--green); color: var(--green); }
.news-cell--card .card { border: 0; background: transparent; overflow: visible; }
.news-cell--card .card:hover { box-shadow: none; transform: none; }
.news-cell--card .card img { border-radius: var(--shape); }
.news-cell--card .card-body { padding: var(--s4) 0 0; }

/* Student life: shaped video frame */
.life-card { border: 0; box-shadow: none; background: transparent; padding: 0; }
.life-media video { border-radius: var(--shape); }

/* Apply / Visit / Ask us: three columns divided by hairlines */
.avs { gap: 0; border-top: 2px solid var(--ink); }
.avs-item { background: transparent; border: 0; border-radius: 0; border-top: 0; padding: var(--s6) var(--s5); }
@media (min-width: 768px) { .avs-item + .avs-item { border-left: 1px solid var(--line); } }
@media (max-width: 767px) { .avs-item + .avs-item { border-top: 1px solid var(--line); } }
.avs-item h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.avs-item p { font-size: var(--t-md); }

/* Quieter surfaces elsewhere */
.card { box-shadow: none; }
.card:hover { transform: none; box-shadow: 0 8px 24px color-mix(in srgb, var(--blue-950) 10%, transparent); }
.card img { transition: transform .5s var(--ease); }
.card:hover img { transform: scale(1.03); }
.card { overflow: hidden; }
.status { font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.site-footer { border-top-width: 1px; border-top-color: var(--line); background: var(--surface); }

/* Social icons (inline SVG, no icon font, no CDN) */
.utility .social { gap: var(--s1); }
.utility .social a { width: 44px; height: 44px; justify-content: center; padding: 0; border-radius: 50%; color: var(--ink); transition: background-color .2s, color .2s; }
.utility .social a:hover { background: var(--lime-wash); color: var(--green-strong); text-decoration: none; }
.utility .social svg { width: 18px; height: 18px; }


/* Varied components: radius and padding follow importance, not one default */
.hero-copy h1 { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.6rem); max-width: 14ch; }
.hero-copy h1, .hero-copy .lede { text-shadow: 0 1px 24px color-mix(in srgb, var(--blue-950) 35%, transparent); }
.hero-stage::after { background: linear-gradient(90deg, color-mix(in srgb, var(--blue-950) 84%, transparent) 0%, color-mix(in srgb, var(--blue-950) 68%, transparent) 45%, color-mix(in srgb, var(--blue-950) 30%, transparent) 75%, color-mix(in srgb, var(--blue-950) 0%, transparent) 100%), linear-gradient(0deg, color-mix(in srgb, var(--blue-950) 70%, transparent) 0%, color-mix(in srgb, var(--blue-950) 0%, transparent) 45%); }
.steps li { border: 0; border-top: 1px solid var(--ink); border-radius: 0; background: transparent; padding: var(--s5) 0; }
.steps li::before { border-radius: 4px; }
.steps { gap: 0; }
details.faq { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; margin: 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { padding: 0; min-height: 64px; font-size: var(--t-md); }
details.faq > div { padding: 0 0 var(--s4); }
.summary-card { border-radius: 4px 4px 40px 4px; padding: var(--s6); box-shadow: none; border: 1px solid var(--ink); }
.filters { border-radius: 6px; box-shadow: none; border: 1px solid var(--ink); }
.prog-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: var(--s4) 0; }
.stream-chip { border-radius: 6px 24px 6px 24px; }
.avs-item { padding: var(--s7) var(--s5); }
.note-box { border-radius: 0; background: transparent; border-left: 4px solid var(--lime); }

.hero-copy h1 { max-width: 18ch; }

/* Stats: a wide, clear photo background (no wash-out); solid white cells carry all the text */
.band--flush { padding-bottom: 0; }
.stats-panel { border: 0; border-radius: 0; padding: clamp(48px, 7vw, 104px) 0; margin-top: var(--s6); background-size: cover; background-position: center; }
.stats-panel::before { background: color-mix(in srgb, var(--blue-950) 10%, transparent); }
.stats-table { gap: var(--s4); }
.stat-cell, .desc-cell { box-shadow: 0 12px 32px color-mix(in srgb, var(--blue-950) 18%, transparent); }

/* Stats on the 360 panorama: glass cells with a stronger prism edge */
.stats-panel { background-color: var(--blue-400); background-size: auto 104%; background-position: 50% 0; }
.stats-panel::before { background: color-mix(in srgb, var(--blue-950) 4%, transparent); }
.stat-cell, .desc-cell { position: relative; isolation: isolate; border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.70) 48%, rgba(255,255,255,.84) 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -2px 6px rgba(120,160,255,.18), -3px 0 14px rgba(255,120,170,.22), 3px 0 14px color-mix(in srgb, var(--blue-300) 22%, transparent), 0 18px 40px color-mix(in srgb, var(--blue-950) 20%, transparent); }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .stat-cell, .desc-cell { -webkit-backdrop-filter: blur(12px) saturate(170%); backdrop-filter: blur(12px) saturate(170%); }
}
.stat-cell::before, .desc-cell::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, #ff6fa5, var(--warning-500) 18%, var(--green-300) 38%, #5cb8ff 58%, #b387ff 78%, #ff6fa5);
  opacity: .9; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.stat-cell::after, .desc-cell::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(112deg, transparent 0 22%, rgba(255,255,255,.55) 34%, rgba(190,215,255,.30) 40%, rgba(255,255,255,0) 52%), radial-gradient(70% 120% at 0% 0%, rgba(255,255,255,.35), transparent 60%); opacity: .55; }
.stat-cell .figure { color: var(--green-strong); }


/* Study routes beside a faculty mosaic sized by the number of programme titles */
.routes { display: grid; gap: var(--s7); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .routes { grid-template-columns: 5fr 7fr; gap: var(--s8); } }
.route-list { list-style: none; margin: var(--s5) 0; padding: 0; border-top: 2px solid var(--ink); }
.route-list a { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s5) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding-left .25s var(--ease), color .2s; }
.route-list a:hover { padding-left: var(--s3); color: var(--green); }
.route-list strong { font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.05; }
.route-list span { color: var(--muted); }
.faculty-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 92px; gap: var(--s3); }
.tile a { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: var(--s4) var(--s5); text-decoration: none; color: var(--ink); background: var(--lime-wash); border-radius: 6px 6px 40px 6px; transition: background-color .25s, transform .25s var(--ease); }
.tile a:hover { background: var(--green); color: #fff; }
.tile strong { font-family: var(--font-display); font-size: var(--t-lg); letter-spacing: -0.02em; line-height: 1.1; }
.tile__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; }
.tile__l { font-size: var(--t-sm); }
.tile--xl { grid-column: span 4; grid-row: span 3; }
.tile--l { grid-column: span 2; grid-row: span 3; }
.tile--l a { background: var(--surface); border: 1px solid var(--ink); }
.tile--m { grid-column: span 3; grid-row: span 2; }
.tile--m a { background: var(--green-strong); color: #fff; }
.tile--s { grid-column: span 3; grid-row: span 2; }
.tile--s a { background: var(--tint); }
.tile--pg { grid-column: span 6; grid-row: span 1; }
.tile--pg a { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s4); background: var(--surface); border: 1px dashed var(--muted); }
.tile--pg strong { font-size: var(--t-base); }
@media (max-width: 599px) { .faculty-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; } .tile--xl, .tile--l, .tile--m, .tile--s { grid-column: span 2; grid-row: span 2; } .tile--pg { grid-column: span 2; } }

/* Accreditation row (placeholders until the list is confirmed) */
.accreditations { margin-top: var(--s7); }
.accreditations h3 { margin-bottom: var(--s3); }
.slots { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.slots li { display: grid; place-items: center; min-height: 88px; border: 1px dashed var(--muted); border-radius: 6px 6px 28px 6px; color: var(--muted); font-size: var(--t-sm); background: var(--surface); }
.tile--s a { background: var(--surface); border: 1px solid var(--line); }

/* ==========================================================================
   Mobile pass: safe areas, tap targets, dynamic viewport units, a bottom
   action bar, lighter effects on small screens.
   ========================================================================== */
html { scroll-padding-top: 104px; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.status { font-size: 0.8125rem; }
code { font-size: 0.9em; }

/* Taps: footer contact links, programme names, breadcrumbs, checklist */
.site-footer address a, .site-footer address { display: inline-block; }
.site-footer address a { min-height: 44px; line-height: 44px; }
.prog-item a { display: block; padding: 10px 0; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
.checklist input { width: 28px; height: 28px; }
.contact-line a, .page-hero a, .section-head a { min-height: 24px; }

/* Bottom action bar (phones and tablets) */
.mobile-bar { display: none; }
@media (max-width: 1179px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px color-mix(in srgb, var(--blue-950) 10%, transparent); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; }
  .mobile-bar a:active { background: var(--lime-wash); }
  .mobile-bar .mobile-bar__apply { background: var(--green); color: #fff; }
  .mobile-bar .mobile-bar__apply:active { background: var(--green-strong); }
  .mobile-menu-panel { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-bottom: var(--s3); }
  .mobile-menu-actions .btn { min-height: 48px; padding: 0 var(--s3); text-align: center; }
  .mobile-menu-panel > nav > ul > li > a { min-height: 48px; font-size: var(--t-md); }
  .mobile-menu-panel ul ul a { min-height: 44px; }
}
@media (min-width: 1180px) { .mobile-menu-actions { display: none; } }

/* Small phones */
@media (max-width: 639px) {
  .band { padding-block: 56px; }
  .container { width: min(100% - 2 * 20px, var(--container)); }
  .hero-stage { min-height: 560px; min-height: clamp(520px, 86svh, 760px); }
  .hero-copy { padding-block: 112px 40px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 11.5vw, 3.4rem); }
  .hero-copy .lede { font-size: 1.0625rem; }
  .hero-copy .cta-row { display: grid; grid-template-columns: 1fr; gap: var(--s2); }
  .hero-copy .cta-row .btn { width: 100%; }
  .hero-stage { border-radius: 0 0 48px 0; }
  .utility .container { gap: 0 var(--s4); }
  .utility ul.quick { margin-left: auto; }
  .section-head { margin-bottom: var(--s5); }
  h2 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .stat-cell, .desc-cell { padding: var(--s4); }
  .stat-cell img { margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s3); width: calc(100% + 2 * var(--s4)); }
  .stat-cell .figure { font-size: clamp(2.6rem, 14vw, 3.5rem); }
  .desc-cell p { font-size: var(--t-base); }
  .stat-cell, .desc-cell { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--surface) 94%, transparent); }
  .stats-panel { padding: 32px 0; }
  .clip { width: 200px; }
  .life-card { padding: 0; }
  .life-stats { gap: var(--s4); }
  .avs-item { padding: var(--s5) 0; }
  .avs-item + .avs-item { border-left: 0; }
  .tile a { padding: var(--s3) var(--s4); }
  .circle-row li { width: auto; }
  .partners-layout .circle-row { grid-template-columns: repeat(3, 1fr); }
  .btn { width: 100%; }
  .cta-row .btn, .mobile-menu-actions .btn, .header-actions .btn, .filters .btn, .form .btn { width: auto; }
  .form .btn, .avs-item .btn, .life-card .btn, .band .btn { width: 100%; }
  .footer-grid { gap: var(--s5); }
  .footer-bottom p { font-size: 0.8125rem; }
  .page-hero__media { order: -1; }
  .summary-card { padding: var(--s5); }
  .note-box { padding: var(--s3) var(--s4); }
}
@media (max-width: 359px) { .partners-layout .circle-row { grid-template-columns: repeat(2, 1fr); } .mobile-bar a { font-size: 0.8125rem; } }

/* No sticky hover effects on touch screens */
@media (hover: none) {
  .btn:hover, .card:hover { transform: none; box-shadow: none; }
  .route-list a:hover { padding-left: 0; color: var(--ink); }
  .card:hover img { transform: none; }
  .tile a:hover { background: var(--lime-wash); color: var(--ink); }
  .tile--m a:hover { background: var(--green-strong); color: #fff; }
  .tile--l a:hover, .tile--s a:hover { background: var(--surface); color: var(--ink); }
}
/* Short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero-stage { min-height: 420px; }
  .hero-copy { padding-block: 96px 24px; }
  .hero-copy h1 { font-size: clamp(2rem, 6vw, 3rem); }
}

/* Grids never grow past their container; circles scale down */
.partners-layout, .life-layout, .routes, .news-layout, .page-hero__grid.has-media, .footer-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .partners-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .life-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .routes { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (min-width: 768px) { .news-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
@media (min-width: 900px) { .page-hero__grid.has-media { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.circle { width: min(120px, 100%); height: auto; aspect-ratio: 1; }
.circle img { width: 72%; height: auto; max-width: 85px; }
.circle-name { overflow-wrap: anywhere; }

/* Stats: dark green glass so the 360 photo stays visible through every card and the text stays high-contrast.
   White on the glass is at least 4.5:1 even over the brightest clouds (checked below in APPROVAL). */
.stat-cell, .desc-cell { color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-950) 68%, transparent) 0%, rgba(14,52,42,.62) 50%, color-mix(in srgb, var(--blue-950) 68%, transparent) 100%);
  border-color: rgba(255,255,255,.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -2px 8px rgba(120,160,255,.18), -3px 0 16px rgba(255,120,170,.28), 3px 0 16px color-mix(in srgb, var(--blue-300) 28%, transparent), 0 18px 40px color-mix(in srgb, var(--blue-950) 28%, transparent); }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .stat-cell, .desc-cell { -webkit-backdrop-filter: blur(5px) saturate(160%); backdrop-filter: blur(5px) saturate(160%); }
}
.stat-cell .figure, .stat-cell h3, .desc-cell p { color: #fff; }
.stat-cell .figure { text-shadow: 0 2px 18px color-mix(in srgb, var(--blue-950) 35%, transparent); }
.stat-cell::after, .desc-cell::after { opacity: .28; }
@media (max-width: 639px) {
  .stat-cell, .desc-cell { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--blue-950) 68%, transparent); }
}


/* Page transitions between pages (supporting browsers only; off for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
}

/* Search dialog */
.search-dialog { border: 0; border-radius: 6px 6px 56px 6px; padding: var(--s5); width: min(680px, calc(100% - 32px)); max-height: min(80vh, 640px); box-shadow: 0 30px 80px color-mix(in srgb, var(--blue-950) 35%, transparent); color: var(--ink); margin-top: 12vh; }
.search-dialog::backdrop { background: color-mix(in srgb, var(--blue-950) 55%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search-form { display: flex; gap: var(--s2); align-items: center; }
.search-form input { flex: 1; min-height: 56px; padding: 0 var(--s4); border: 2px solid var(--ink); border-radius: 6px; font: inherit; font-size: var(--t-md); }
.search-close { min-height: 56px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.search-close:hover { border-color: var(--green); color: var(--green); }
.search-status { margin: var(--s3) 0; }
.search-results { list-style: none; margin: 0; padding: 0; overflow: auto; max-height: 46vh; }
.search-results li { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); border-bottom: 1px solid var(--line); }
.search-results a { flex: 1; display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 600; }
.search-results a:hover, .search-results a:focus-visible { color: var(--green); text-decoration: underline; }
.search-tag { flex: none; font-size: 0.8125rem; color: var(--muted); background: var(--tint); border-radius: 999px; padding: 2px var(--s3); }
@media (max-width: 639px) { .search-dialog { margin-top: 8vh; padding: var(--s4); border-radius: 6px 6px 32px 6px; } .search-form { flex-wrap: wrap; } .search-close { width: 100%; } }

/* 320px phones: tighter header so nothing is clipped */
@media (max-width: 359px) {
  .glass-bar { padding: var(--s2); gap: var(--s1); }
  .brand img { height: 30px; }
  .search-link { width: 44px; padding: 0; justify-content: center; }
  .header-actions .btn--small, .mobile-menu summary { padding: 0 var(--s2); min-width: 44px; }
}
.mobile-menu-panel a { text-decoration: none; }
.mobile-menu-panel > nav > ul > li > a { color: var(--ink); }
.mobile-menu-panel a:active { background: var(--lime-wash); }

/* News and stories: larger photos that fill their half of the 2 x 2 */
.news-cell--card .card { max-width: none; width: 100%; }
.news-cell--card .card img { aspect-ratio: 3 / 2; width: 100%; }
.news-cell--card .card-body h3 { font-size: var(--t-xl); line-height: 1.1; letter-spacing: -0.03em; }
@media (min-width: 768px) { .news-cell--card:nth-child(4) { justify-self: stretch; } }

/* Browse by subject: icon + label chips */
.stream-chip { gap: var(--s3); padding: 0 var(--s5) 0 var(--s2); min-height: 64px; font-size: var(--t-base); }
.stream-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--green-strong); transition: background-color .2s, color .2s; }
.stream-icon svg { width: 24px; height: 24px; }
.stream-chip:hover .stream-icon { background: var(--green); color: #fff; }
@media (hover: none) { .stream-chip:hover .stream-icon { background: var(--surface); color: var(--green-strong); } }
/* Subject chips become photo cards: icon top-left, label bottom-left, photo (set per chip with --chip-img) under a wash that darkens toward the label */
.stream-chip { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--s5); min-width: 210px; min-height: 148px; padding: var(--s3) var(--s4) var(--s4); border-radius: 8px 32px 8px 32px; color: #fff; border-color: transparent; font-size: var(--t-md); line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.40);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 8%, transparent) 0%, color-mix(in srgb, var(--blue-950) 30%, transparent) 45%, color-mix(in srgb, var(--blue-950) 80%, transparent) 100%), var(--chip-img, none) center / cover no-repeat, var(--ink); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.stream-chip:hover { color: #fff; border-color: var(--lime); transform: translateY(-3px); box-shadow: 0 10px 24px color-mix(in srgb, var(--blue-950) 22%, transparent); }
.stream-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .stream-chip, .stream-chip:hover { transition: none; transform: none; } }
#streams .strip-track { padding-block: var(--s3); }
/* Glass on the subject cards: the icon and label are glass pieces over the card photo (liquid-glass.js adds the edge refraction; this is the tint and highlights) */
.stream-chip { background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 4%, transparent) 0%, color-mix(in srgb, var(--blue-950) 18%, transparent) 50%, color-mix(in srgb, var(--blue-950) 52%, transparent) 100%), var(--chip-img, none) center / cover no-repeat, var(--ink); }
.stream-chip .stream-icon, .stream-chip > span:not(.stream-icon) { background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.10)); box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px 1px rgba(255,255,255,.75), inset 0 -6px 14px rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.28); text-shadow: 0 1px 2px rgba(0,0,0,.45); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .stream-chip .stream-icon, .stream-chip > span:not(.stream-icon) { -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%); }
}
.stream-chip > span:not(.stream-icon) { align-self: flex-start; padding: var(--s2) var(--s4); border-radius: 999px; }
.stream-chip .stream-icon, .stream-chip:hover .stream-icon { color: #fff; }
.stream-chip:hover .stream-icon { background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.18)); }
@media (hover: none) { .stream-chip:hover .stream-icon { background: linear-gradient(180deg, rgba(255,255,255,.30), rgba(255,255,255,.10)); color: #fff; } }
/* No outline ring on the photo cards: the photo runs edge to edge; hover draws an inset lime line instead of a border */
.stream-chip, .stream-chip:hover { border: 0; background-origin: border-box; background-clip: border-box; }
.stream-chip:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--blue-950) 22%, transparent), inset 0 0 0 2px var(--lime); }
/* Tint the glass pieces slightly dark green so white icons and labels stay legible on pale photos */
.stream-chip .stream-icon, .stream-chip > span:not(.stream-icon) { background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 34%, transparent), color-mix(in srgb, var(--blue-950) 18%, transparent)); }
.stream-chip:hover .stream-icon { background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 20%, transparent), color-mix(in srgb, var(--blue-950) 6%, transparent)); }
@media (hover: none) { .stream-chip:hover .stream-icon { background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 34%, transparent), color-mix(in srgb, var(--blue-950) 18%, transparent)); } }
/* Choose a study route: larger type, faculty photos on the tiles, glass label over each photo */
.route-list strong { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
.route-list span { font-size: 1.25rem; line-height: 1.4; }
.routes__text .small { font-size: 1.0625rem; }
.faculty-mosaic { grid-auto-rows: 104px; }
.faculty-mosaic .tile--xl { grid-column: span 6; grid-row: span 2; }
.faculty-mosaic .tile--l, .faculty-mosaic .tile--m, .faculty-mosaic .tile--s, .faculty-mosaic .tile--pg { grid-column: span 3; grid-row: span 2; }
.faculty-mosaic .tile a, .faculty-mosaic .tile a:hover { position: relative; justify-content: flex-end; align-items: flex-start; flex-direction: column; gap: 0; padding: var(--s3); border: 0; border-radius: 8px 8px 48px 8px; overflow: hidden; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 0%, transparent) 35%, color-mix(in srgb, var(--blue-950) 40%, transparent) 100%), var(--tile-img, none) center / cover no-repeat, var(--ink); }
.faculty-mosaic .tile a { transition: transform .25s var(--ease), box-shadow .25s; }
.faculty-mosaic .tile a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px color-mix(in srgb, var(--blue-950) 24%, transparent), inset 0 0 0 2px var(--lime); }
.faculty-mosaic .tile a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.tile__glass { display: flex; flex-direction: column; gap: 2px; align-self: stretch; padding: var(--s3) var(--s4); border-radius: 20px 20px 40px 20px; text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 34%, transparent), color-mix(in srgb, var(--blue-950) 18%, transparent)); box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px 1px rgba(255,255,255,.75), inset 0 -6px 14px rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.28); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .tile__glass { -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%); }
}
.faculty-mosaic .tile strong { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.faculty-mosaic .tile--pg strong { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
.faculty-mosaic .tile__n { font-size: clamp(3rem, 2.2rem + 3vw, 5rem); }
.faculty-mosaic .tile__l { font-size: 1.0625rem; }
@media (prefers-reduced-motion: reduce) { .faculty-mosaic .tile a, .faculty-mosaic .tile a:hover { transition: none; transform: none; } }
@media (max-width: 599px) { .faculty-mosaic { grid-auto-rows: 96px; } .faculty-mosaic .tile--xl, .faculty-mosaic .tile--l, .faculty-mosaic .tile--m, .faculty-mosaic .tile--s, .faculty-mosaic .tile--pg { grid-column: span 2; } }
/* Faculty tile glass is only a word-sized pill; number and label sit on the photo under a darker foot */
.faculty-mosaic .tile a, .faculty-mosaic .tile a:hover { justify-content: flex-start; padding: var(--s4);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 0%, transparent) 30%, color-mix(in srgb, var(--blue-950) 62%, transparent) 100%), var(--tile-img, none) center / cover no-repeat, var(--ink); }
.tile__glass { align-self: flex-start; width: fit-content; max-width: 100%; padding: var(--s2) var(--s4); border-radius: 999px; }
.faculty-mosaic .tile .tile__glass strong { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem); }
.faculty-mosaic .tile__n { margin-top: auto; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.faculty-mosaic .tile__l { text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.faculty-mosaic .tile--pg .tile__glass strong { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); }
.faculty-mosaic .tile--pg .tile__l { margin-top: auto; }
.faculty-mosaic .tile--pg .tile__glass { border-radius: 24px; }
.tile__glass { background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 46%, transparent), color-mix(in srgb, var(--blue-950) 30%, transparent)); }
/* Centre the text inside the glass pills: trim the font's built-in space so the letters, not the line box, sit in the middle */
.tile__glass { align-items: center; justify-content: center; text-align: center; }
.stream-chip > span:not(.stream-icon) { text-align: center; }
@supports (text-box: trim-both cap alphabetic) {
  .tile__glass strong, .stream-chip > span:not(.stream-icon) { text-box: trim-both cap alphabetic; }
  .tile__glass { padding: 13px 22px; }
  .stream-chip > span:not(.stream-icon) { padding: 11px 20px; }
}
.faculty-mosaic .tile--pg .tile__glass strong { text-wrap: balance; }
/* "What NSBM reports about itself": full-width photo / text rows that alternate, with the figure on a glass plate over the photo */
.exp.band--flush { padding-bottom: 0; }
.exp-rows { margin-top: var(--s6); }
.exp-row { display: grid; grid-template-columns: 1fr; }
.exp-media { position: relative; min-height: 340px; overflow: hidden; background: var(--ink); }
.exp-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.exp-row:hover .exp-media > img { transform: scale(1.025); }
.exp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--blue-950) 62%, transparent), color-mix(in srgb, var(--blue-950) 0%, transparent) 62%); pointer-events: none; }
.exp-stat { position: absolute; z-index: 1; left: var(--s5); bottom: var(--s5); max-width: calc(100% - 2 * var(--s5)); padding: var(--s4) var(--s5); color: #fff; border-radius: 10px 10px 44px 10px; text-shadow: 0 1px 3px rgba(0,0,0,.45);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 42%, transparent), color-mix(in srgb, var(--blue-950) 26%, transparent)); box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.75), inset 0 -8px 18px rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.28); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .exp-stat { -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%); }
}
.exp-stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem); line-height: 1.05; letter-spacing: -0.05em; font-weight: 700; }
.exp-stat span { display: block; margin-top: var(--s2); font-size: var(--t-md); }
.exp-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 5vw, 90px); background: var(--primary-soft); }
.exp-row.reverse .exp-copy { background: var(--surface-2); }
.exp-kicker { margin: 0 0 var(--s4); font-size: 0.95rem; font-weight: 700; color: var(--green); }
.exp-copy h3 { margin: 0 0 var(--s4); font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 3rem); line-height: 1.1; letter-spacing: -0.035em; max-width: 16ch; }
.exp-copy > p:not(.exp-kicker) { max-width: 46ch; margin: 0 0 var(--s5); color: var(--muted); font-size: var(--t-md); line-height: 1.65; }
.exp-link { display: inline-flex; align-items: center; gap: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--text-subtle); color: var(--ink); font-weight: 700; text-decoration: none; transition: color .2s, border-color .2s; }
.exp-link:hover { color: var(--green); border-color: var(--green); }
.exp-link span { transition: transform .25s var(--ease); }
.exp-link:hover span { transform: translate(3px, -3px); }
@media (min-width: 900px) {
  .exp-row { grid-template-columns: 1fr 1fr; min-height: clamp(420px, 34vw, 600px); }
  .exp-row.reverse .exp-media { order: 2; }
  .exp-stat { left: clamp(24px, 4vw, 64px); bottom: clamp(24px, 3.5vw, 48px); }
}
@media (prefers-reduced-motion: reduce) { .exp-media > img, .exp-row:hover .exp-media > img { transition: none; transform: none; } .exp-link span, .exp-link:hover span { transition: none; transform: none; } }
/* Stories, news & events: sized from the viewport height so the heading and both rows fit one screen; both image cards are the same size and keep the curved bottom corner */
.exp-news { padding-block: clamp(28px, 3.5vw, 52px); }
.stories-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6); margin-bottom: var(--s5); }
.stories-head h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.05; }
.stories-head .exp-kicker { margin-bottom: var(--s2); }
.stories-head__aside { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); max-width: 520px; text-align: right; }
.stories-head__aside p { margin: 0; font-size: var(--t-sm); }
.stories-grid { --row: clamp(380px, calc((100vh - 260px) / 2), 480px); display: grid; grid-template-columns: 1fr; gap: var(--s5) var(--s7); }
.story-card { position: relative; min-height: 280px; border-radius: var(--shape); overflow: hidden; isolation: isolate; color: #fff; background: var(--ink); }
.story-card > a { display: block; height: 100%; color: inherit; text-decoration: none; }
.story-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.story-card:hover img { transform: scale(1.035); }
.story-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--blue-950) 88%, transparent), color-mix(in srgb, var(--blue-950) 40%, transparent) 52%, color-mix(in srgb, var(--blue-950) 4%, transparent)); pointer-events: none; }
.story-card__copy { position: absolute; left: var(--s5); right: calc(var(--s5) + var(--s4)); bottom: var(--s5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.story-card h3 { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.15; letter-spacing: -0.03em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.story-pill { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 14px; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; line-height: 1.3; background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 46%, transparent), color-mix(in srgb, var(--blue-950) 30%, transparent)); box-shadow: inset 0 1px 1px rgba(255,255,255,.65), inset 0 0 0 1px rgba(255,255,255,.26); text-shadow: 0 1px 2px rgba(0,0,0,.4); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) { .story-pill { -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%); } }
.story-pill .status { background: rgba(255,255,255,.2); color: #fff; }
.story-more { padding-bottom: 2px; border-bottom: 1px solid rgba(255,255,255,.6); font-weight: 700; font-size: var(--t-sm); }
.story-card > a:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.stories-grid .news-cell { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.stories-grid .list-title { margin: 0 0 var(--s2); font-family: var(--font-display); font-size: var(--t-md); letter-spacing: -0.02em; }
.stories-grid .row-list { gap: 0; }
.stories-grid .row-item { grid-template-columns: 56px 1fr; gap: var(--s4); min-height: 0; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.stories-grid .row-item h4 { font-size: 1.0625rem; line-height: 1.3; font-weight: 600; }
.stories-grid a.row-item:hover h4 { color: var(--green); }
.stories-grid .date-chip { min-width: 56px; padding: 6px 4px; }
.stories-grid .date-chip strong { font-size: 1.25rem; }
@media (min-width: 900px) {
  .stories-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: var(--row); }
  .story-card { min-height: 0; }
}
@media (max-width: 899px) { .stories-head__aside { align-items: flex-start; text-align: left; } }
@media (prefers-reduced-motion: reduce) { .story-card img, .story-card:hover img { transition: none; transform: none; } }
.story-card img { object-position: 50% 10%; }
/* On-campus partners: logos only, each on an identical glass circle over a soft colour field so the glass reads */
.partners-layout .circle-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s5); width: 100%; padding: var(--s6); border-radius: var(--shape);
  background: radial-gradient(circle at 14% 22%, color-mix(in srgb, var(--green-400) 50%, transparent), transparent 46%), radial-gradient(circle at 84% 78%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 52%), radial-gradient(circle at 62% 12%, color-mix(in srgb, var(--primary) 36%, transparent), transparent 42%), linear-gradient(135deg, var(--primary-soft), var(--primary-soft)); }
.partners-layout .circle-row li { display: block; width: auto; }
.partners-layout .circle { display: grid; place-items: center; width: 112px; height: 112px; aspect-ratio: auto; padding: 0; border: 0; border-radius: 50%; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.30));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--blue-950) 20%, transparent), inset 0 1px 1px rgba(255,255,255,.95), inset 0 -8px 18px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.60); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .partners-layout .circle { -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%); }
}
.partners-layout .circle img { width: 68px; height: 64px; max-width: none; object-fit: contain; }
@media (max-width: 599px) { .partners-layout .circle-row { padding: var(--s5) var(--s4); gap: var(--s4); } .partners-layout .circle { width: 96px; height: 96px; } .partners-layout .circle img { width: 58px; height: 54px; } }
/* Larger footer logo, with the address stacked under it */
.site-footer .brand { display: flex; margin-bottom: var(--s4); }
.site-footer .brand img { height: clamp(72px, 6.5vw, 96px); }
.site-footer address { display: block; }
/* Story cards: photo on top with nothing over it, text on a solid panel underneath; the curved bottom corner stays */
.story-card::after { display: none; }
.story-card > a { display: flex; flex-direction: column; }
.story-card img { position: static; z-index: auto; flex: 1 1 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; clip-path: inset(0); }
.story-card__copy { position: static; flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s2) var(--s4); padding: var(--s4) var(--s8) var(--s5) var(--s5); background: var(--ink); }
.story-pill { justify-self: start; }
.story-more { grid-column: 2; grid-row: 1; white-space: nowrap; }
.story-card h3 { grid-column: 1 / -1; grid-row: 2; }
/* Same text-panel height on both story cards so both photos are the same size */
.story-card__copy { height: 126px; align-content: start; padding-top: var(--s3); padding-bottom: var(--s3); }
.story-card h3 { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); }
/* Story cards, final: full photo with faces kept in the upper part, and a frosted glass bar along the bottom carrying the text */
.story-card > a { display: block; position: relative; height: 100%; }
.story-card img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; flex: none; clip-path: none; object-fit: cover; object-position: 50% 0%; }
.story-card__copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: auto; align-content: start; gap: var(--s2) var(--s4); padding: var(--s3) var(--s8) var(--s4) var(--s5); border-radius: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 34%, transparent), color-mix(in srgb, var(--blue-950) 52%, transparent)); box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(255,255,255,.16), 0 -8px 24px rgba(0,0,0,.12); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .story-card__copy { -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
}
.story-pill { background: rgba(255,255,255,.14); }
.story-card h3 { text-shadow: 0 1px 4px rgba(0,0,0,.45); }
/* Stats rows: sub-headings inside the text panels, each with its own short block */
.exp-copy { justify-content: center; }
.exp-copy > * { max-width: 56ch; }
.exp-copy .exp-lead { color: var(--ink); font-size: 1.1875rem; line-height: 1.6; margin: 0 0 var(--s5); }
.exp-sub { width: 100%; margin: 0 0 var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border); }
.exp-sub h4 { margin: 0 0 var(--s2); font-family: var(--font-display); font-size: var(--t-md); letter-spacing: -0.015em; color: var(--ink); }
.exp-sub p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: none; }
.exp-timeline, .exp-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.exp-timeline li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s3); color: var(--muted); line-height: 1.5; }
.exp-timeline strong { font-family: var(--font-display); color: var(--green); }
.exp-facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); padding-bottom: var(--s2); border-bottom: 1px dotted var(--border); }
.exp-facts a { font-weight: 600; color: var(--ink); text-decoration: none; }
.exp-facts a:hover { color: var(--green); text-decoration: underline; }
.exp-facts span { color: var(--muted); font-size: var(--t-sm); }
.exp-copy .exp-source { margin: var(--s2) 0 var(--s5); font-size: var(--t-sm); line-height: 1.5; max-width: none; }
.exp-source a { color: var(--green-strong); }
@media (min-width: 900px) { .exp-row { min-height: clamp(560px, 44vw, 760px); } }
/* Shorter rows: sub-headings sit in two columns so the photo no longer has to stretch tall */
@media (min-width: 900px) {
  .exp-row { min-height: clamp(420px, 32vw, 520px); }
  .exp-copy { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s6); align-content: center; justify-items: start; padding: clamp(24px, 3vw, 48px) clamp(24px, 3.5vw, 56px); }
  .exp-copy > .exp-kicker, .exp-copy > h3, .exp-copy > .exp-lead, .exp-copy > .exp-source, .exp-copy > .exp-link { grid-column: 1 / -1; }
  .exp-copy > * { max-width: none; }
  .exp-copy > h3 { max-width: 24ch; font-size: clamp(1.6rem, 1.1rem + 1.3vw, 2.4rem); margin-bottom: var(--s3); }
  .exp-copy > .exp-kicker { margin-bottom: var(--s2); }
  .exp-copy .exp-lead { font-size: 1.0625rem; line-height: 1.55; margin-bottom: var(--s3); max-width: 62ch; }
  .exp-sub { margin: 0 0 var(--s3); padding-top: var(--s3); }
  .exp-sub:nth-of-type(odd):last-of-type { grid-column: 1 / -1; }
  .exp-sub h4 { font-size: 1.0625rem; }
  .exp-sub p, .exp-timeline li { font-size: .9375rem; line-height: 1.55; }
  .exp-copy .exp-source { margin: 0 0 var(--s3); }
}
/* Short text: shorter rows, a little more air in the panel */
@media (min-width: 900px) {
  .exp-row { min-height: clamp(380px, 28vw, 460px); }
  .exp-copy .exp-lead { font-size: 1.125rem; margin-bottom: var(--s4); }
  .exp-sub { padding-top: var(--s3); margin-bottom: var(--s4); }
  .exp-sub p, .exp-timeline li { font-size: 1rem; }
}
/* Three short sub-headings per row, side by side */
@media (min-width: 900px) {
  .exp-row { min-height: clamp(340px, 26vw, 420px); }
  .exp-copy { grid-template-columns: repeat(3, 1fr); column-gap: var(--s5); }
  .exp-sub:nth-of-type(odd):last-of-type { grid-column: auto; }
  .exp-sub { margin-bottom: var(--s4); }
  .exp-sub h4 { font-size: 1.125rem; }
  .exp-sub p { font-size: 1rem; line-height: 1.45; }
  .exp-copy .exp-lead { max-width: 52ch; }
}
/* Nav bar: clear crystal glass. Bright specular rim, cool inner glow, a diagonal sheen; no coloured border */
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass-bar {
    background: linear-gradient(160deg, rgba(255,255,255,.58) 0%, rgba(228,241,255,.24) 38%, rgba(255,255,255,.14) 62%, rgba(255,255,255,.46) 100%);
    box-shadow: 0 22px 44px color-mix(in srgb, var(--blue-950) 20%, transparent), 0 2px 6px color-mix(in srgb, var(--blue-950) 10%, transparent),
      inset 0 2px 1px rgba(255,255,255,1), inset 2px 0 3px rgba(255,255,255,.75), inset -2px 0 3px rgba(255,255,255,.55),
      inset 0 -3px 8px rgba(120,170,255,.28), inset 0 14px 26px rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.65);
  }
}
.glass-bar::after { background: linear-gradient(104deg, transparent 0 24%, rgba(255,255,255,.75) 34%, rgba(255,255,255,.18) 42%, transparent 54%), radial-gradient(55% 150% at 6% 0%, rgba(255,255,255,.65), transparent 62%), radial-gradient(40% 120% at 96% 100%, rgba(150,190,255,.30), transparent 70%); mix-blend-mode: normal; opacity: .85; }

/* Story cards: no glass. Photo on top, solid text panel underneath, so the sizes stay fixed and equal */
.story-card > a { display: flex; flex-direction: column; position: relative; height: 100%; }
.story-card img { position: static; z-index: auto; flex: 1 1 0; min-height: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; clip-path: inset(0); }
.story-card__copy { position: static; flex: none; height: 126px; display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: start; gap: var(--s2) var(--s4); padding: var(--s3) var(--s8) var(--s3) var(--s5); border-radius: 0;
  background: var(--ink); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.story-pill { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: none; }
.story-card h3 { text-shadow: none; }
/* Nav bar in the same dark green glass as the "20,000+" stat plate: tinted glass, bright rim, white text.
   Only where backdrop blur is supported, so the plain white bar (with dark text) stays as the fallback. */
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .glass-bar {
    background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 74%, transparent), color-mix(in srgb, var(--blue-950) 62%, transparent));
    box-shadow: 0 12px 28px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.75), inset 0 -8px 18px rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.28);
  }
  .glass-bar::after { background: linear-gradient(104deg, transparent 0 26%, rgba(255,255,255,.22) 36%, transparent 50%), radial-gradient(55% 150% at 6% 0%, rgba(255,255,255,.22), transparent 62%); opacity: 1; }
  .glass-bar .brand { padding: 4px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 93%, transparent); box-shadow: inset 0 1px 1px rgba(255,255,255,.9); }
  .glass-bar .brand img { height: 36px; }
  .main-nav > ul > li > a, .main-nav > ul > li > details > summary { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
  .main-nav > ul > li > a:hover, .main-nav > ul > li > details > summary:hover, .main-nav details[open] > summary { background: rgba(255,255,255,.18); color: #fff; }
  .main-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lime); }
  .main-nav .mega-panel a { color: var(--ink); text-shadow: none; }
  .main-nav .mega-panel a:hover { background: var(--lime-wash); color: var(--ink); }
  .glass-bar .btn--small { box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
}
/* Homepage: the hero banner starts right under the utility strip and the nav bar floats over its top edge as an action bar */
.site-header { pointer-events: none; }
.glass-bar { pointer-events: auto; }
.site-header + main > .banner-slider { margin-top: -72px; }
/* Stats rows, v3: the photo is clean (figure straight on the image); the glass lives on the text side, over the campus panorama */
.exp-stat, .exp-stat strong, .exp-stat span { text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.exp-stat { padding: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.exp-copy { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 44px); background: var(--blue-400) url('assets/campus-360-4096.webp') 50% 45% / cover no-repeat; }
.exp-row.reverse .exp-copy { background-color: var(--blue-400); background-position: 18% 45%; }
.exp-glass { width: 100%; display: grid; grid-template-columns: 1fr; padding: clamp(22px, 2.6vw, 40px); border-radius: 10px 10px 48px 10px; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 72%, transparent), color-mix(in srgb, var(--blue-950) 60%, transparent)); box-shadow: 0 14px 34px rgba(0,0,0,.28), inset 0 1px 1px rgba(255,255,255,.7), inset 0 -8px 18px rgba(255,255,255,.05), inset 0 0 0 1px rgba(255,255,255,.26); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .exp-glass { -webkit-backdrop-filter: blur(8px) saturate(150%); backdrop-filter: blur(8px) saturate(150%); }
}
.exp-copy .exp-glass > * { max-width: none; justify-self: start; }
.exp-copy .exp-glass .exp-kicker { color: var(--green-300); }
.exp-copy .exp-glass h3 { color: #fff; max-width: 24ch; }
.exp-copy .exp-glass .exp-lead { color: rgba(255,255,255,.95); }
.exp-copy .exp-glass .exp-sub { border-top-color: rgba(255,255,255,.24); }
.exp-copy .exp-glass .exp-sub h4 { color: #fff; }
.exp-copy .exp-glass .exp-sub p { color: rgba(255,255,255,.88); }
.exp-copy .exp-glass .exp-source { color: rgba(255,255,255,.82); }
.exp-copy .exp-glass .exp-source a { color: var(--green-300); }
.exp-copy .exp-glass .exp-link { color: #fff; border-bottom-color: rgba(255,255,255,.55); }
.exp-copy .exp-glass .exp-link:hover { color: var(--green-300); border-bottom-color: var(--green-300); }
.exp-copy .exp-glass .status--tbd { background: rgba(255,255,255,.16); color: #fff; }
@media (min-width: 700px) {
  .exp-glass { grid-template-columns: repeat(3, 1fr); column-gap: var(--s5); }
  .exp-glass > .exp-kicker, .exp-glass > h3, .exp-glass > .exp-lead, .exp-glass > .exp-source, .exp-glass > .exp-link { grid-column: 1 / -1; }
  .exp-glass .exp-sub:nth-of-type(odd):last-of-type { grid-column: auto; }
}
/* Panorama crop for the glass backdrops: zoom in a little to drop the black bottom edge and pick land, not plain sky */
.exp-copy { background-size: auto 140%; background-position: 50% 28%; }
.exp-row.reverse .exp-copy { background-position: 78% 28%; }
.exp-row:nth-child(3) .exp-copy { background-position: 30% 28%; }
.exp-row:nth-child(5) .exp-copy { background-position: 62% 28%; }
.exp-row.reverse .exp-copy { background-image: url('assets/campus-360-4096.webp'); background-repeat: no-repeat; background-size: auto 140%; background-color: var(--blue-400); }
/* Clubs, sport and campus facilities: a numbers-first section.
   Figma UI principles: hierarchy (one giant figure, smaller supporting figures), contrast (bright gradient numerals on deep green),
   proximity (each number sits with its label), alignment (one left edge, equal columns), consistency (one numeral style),
   progressive disclosure (key figure first, the rest in a quiet row), accessibility (white on deep green, sr-only text for the numerals). */
.life-section { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(56px, 7vw, 112px);
  background: radial-gradient(60% 80% at 6% 0%, color-mix(in srgb, var(--green-400) 24%, transparent), transparent 60%), radial-gradient(50% 70% at 98% 100%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 62%), linear-gradient(135deg, var(--blue-950) 0%, var(--blue-900) 55%, var(--blue-950) 100%); }
.life-grid { display: grid; gap: var(--s7); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .life-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.life-kicker { margin: 0 0 var(--s3); font-weight: 700; font-size: .95rem; color: var(--green-300); }
.life-copy h2 { margin: 0 0 var(--s4); color: #fff; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); line-height: 1.05; max-width: 16ch; }
.life-lead { margin: 0 0 var(--s6); max-width: 46ch; color: rgba(255,255,255,.9); font-size: var(--t-md); }
.life-section .status { background: rgba(255,255,255,.16); color: #fff; }
.life-num { display: block; font-family: var(--font-display); font-weight: 800; line-height: .9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--green-300);
  background: linear-gradient(120deg, var(--green-200) 0%, var(--green-300) 45%, var(--green-400) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 10px 28px color-mix(in srgb, var(--green-400) 35%, transparent)); }
.life-hero-stat { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: var(--s2) var(--s5); margin-bottom: var(--s6); padding-bottom: var(--s6); border-bottom: 1px solid rgba(255,255,255,.18); }
.life-hero-stat .life-num { font-size: clamp(5.5rem, 3.5rem + 9vw, 10.5rem); }
.life-hero-stat h3 { margin: 0 0 var(--s1); color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; }
.life-hero-stat p { margin: 0; max-width: 28ch; color: rgba(255,255,255,.82); }
.life-points { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.life-points li { display: flex; flex-direction: column; gap: var(--s2); padding: 0 var(--s4); border-left: 1px solid rgba(255,255,255,.2); }
.life-points li:first-child { padding-left: 0; border-left: 0; }
.life-num--sm { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.life-label { color: rgba(255,255,255,.88); font-size: var(--t-sm); font-weight: 600; }
.btn--lime { background: var(--green-300); border-color: var(--green-300); color: var(--blue-950); }
.btn--lime:hover { background: var(--green-300); border-color: var(--green-300); color: var(--blue-950); }
.life-source { margin: var(--s4) 0 0; color: rgba(255,255,255,.72); font-size: var(--t-sm); }
.life-source a { color: var(--green-300); }
.life-section .life-media video { border-radius: var(--shape); box-shadow: 0 30px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.12); }
.life-section .life-media figcaption { color: rgba(255,255,255,.74); }
.life-section .life-media figcaption .status--tbd { background: rgba(255,255,255,.16); color: #fff; }
@media (max-width: 559px) { .life-hero-stat { grid-template-columns: 1fr; } .life-points li { padding: 0 var(--s3); } }
/* Stats rows: the photo is completely clean; the big figure sits at the top of the glass card */
.exp-media::after { display: none; }
.exp-glass .exp-stat { position: static; left: auto; bottom: auto; grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s1) var(--s4); max-width: none; margin: var(--s1) 0 var(--s3); padding: 0; color: #fff; text-shadow: none; }
.exp-glass .exp-stat strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 2rem + 3.6vw, 5.25rem); line-height: .95; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--green-300);
  background: linear-gradient(120deg, var(--green-200) 0%, var(--green-300) 45%, var(--green-400) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 24px color-mix(in srgb, var(--green-400) 30%, transparent)); text-shadow: none; }
.exp-glass .exp-stat span { margin: 0; font-size: var(--t-md); font-weight: 600; color: rgba(255,255,255,.95); text-shadow: none; }
.exp-copy .exp-glass h3 { font-size: clamp(1.35rem, 1.05rem + .9vw, 1.9rem); margin-bottom: var(--s2); }
/* Highlight: a short lime bar under each figure, and the label set as a lime-tinted chip */
.exp-glass .exp-stat strong { position: relative; padding-bottom: .12em; }
.exp-glass .exp-stat strong::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56%; height: .07em; min-height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--green-300), color-mix(in srgb, var(--green-300) 0%, transparent)); -webkit-text-fill-color: initial; }
.exp-glass .exp-stat span { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--green-300) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green-300) 45%, transparent); color: var(--green-200); font-size: var(--t-sm); font-weight: 700; }
/* Stats text side: back to the pale off-green panel; the card is light frosted glass with dark text, and the figure is highlighted in deep green + lime */
.exp-copy, .exp-row.reverse .exp-copy, .exp-row:nth-child(3) .exp-copy, .exp-row:nth-child(5) .exp-copy {
  background-image: radial-gradient(60% 80% at 8% 0%, color-mix(in srgb, var(--green-400) 16%, transparent), transparent 60%), radial-gradient(50% 70% at 96% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 62%);
  background-color: var(--primary-soft); background-size: auto; background-position: 0 0; background-repeat: no-repeat; }
.exp-row.reverse .exp-copy { background-color: var(--surface-2); }
.exp-glass { color: var(--ink); background: linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.46));
  box-shadow: 0 14px 34px color-mix(in srgb, var(--blue-950) 12%, transparent), inset 0 1px 1px rgba(255,255,255,.95), inset 0 -8px 18px rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.75); }
.exp-copy .exp-glass .exp-kicker { color: var(--green); }
.exp-copy .exp-glass h3, .exp-copy .exp-glass .exp-lead, .exp-copy .exp-glass .exp-sub h4 { color: var(--ink); }
.exp-copy .exp-glass .exp-sub { border-top-color: color-mix(in srgb, var(--blue-950) 14%, transparent); }
.exp-copy .exp-glass .exp-sub p { color: var(--muted); }
.exp-copy .exp-glass .exp-source { color: var(--muted); }
.exp-copy .exp-glass .exp-source a { color: var(--green-strong); }
.exp-copy .exp-glass .exp-link { color: var(--ink); border-bottom-color: var(--text-subtle); }
.exp-copy .exp-glass .exp-link:hover { color: var(--green); border-bottom-color: var(--green); }
.exp-copy .exp-glass .status--tbd { background: var(--warning-50); color: var(--warning-700); }
.exp-glass .exp-stat strong { color: var(--primary-hover); background: linear-gradient(120deg, var(--primary-hover) 0%, var(--primary) 52%, var(--green-500) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 16px color-mix(in srgb, var(--primary) 22%, transparent)); }
.exp-glass .exp-stat strong::after { background: linear-gradient(90deg, var(--green-400), color-mix(in srgb, var(--green-400) 0%, transparent)); }
.exp-glass .exp-stat span { background: var(--lime-wash); color: var(--green-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent); }
/* Clubs, sport and campus facilities: pale off-green backdrop (same family as the stats panels), dark text, deep-green numerals */
.life-section { color: var(--ink); background: radial-gradient(60% 80% at 6% 0%, color-mix(in srgb, var(--green-400) 16%, transparent), transparent 60%), radial-gradient(50% 70% at 98% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 62%), var(--primary-soft); }
.life-kicker { color: var(--green); }
.life-copy h2 { color: var(--ink); }
.life-lead { color: var(--ink); }
.life-section .status { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent); }
.life-num { color: var(--primary-hover); background: linear-gradient(120deg, var(--primary-hover) 0%, var(--primary) 52%, var(--green-500) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 8px 20px color-mix(in srgb, var(--primary) 20%, transparent)); }
.life-hero-stat { border-bottom-color: color-mix(in srgb, var(--blue-950) 14%, transparent); }
.life-hero-stat h3 { color: var(--ink); }
.life-hero-stat p { color: var(--muted); }
.life-points li { border-left-color: color-mix(in srgb, var(--blue-950) 16%, transparent); }
.life-label { color: var(--ink); }
.btn--lime { background: var(--green); border-color: var(--green); color: #fff; }
.btn--lime:hover { background: var(--green-strong); border-color: var(--green-strong); color: #fff; }
.life-source { color: var(--muted); }
.life-source a { color: var(--green-strong); }
.life-section .life-media video { box-shadow: 0 24px 50px color-mix(in srgb, var(--blue-950) 22%, transparent), 0 0 0 1px color-mix(in srgb, var(--blue-950) 8%, transparent); }
.life-section .life-media figcaption { color: var(--muted); }
.life-section .life-media figcaption .status--tbd { background: var(--warning-50); color: var(--warning-700); box-shadow: none; }
/* Story cards: a plain rectangular photo, a separate off-green text rectangle under it, joined as one card with a curved bottom-right corner */
.story-card { border-radius: 0 0 96px 0; background: var(--primary-soft); box-shadow: 0 12px 28px color-mix(in srgb, var(--blue-950) 10%, transparent); color: var(--ink); }
.story-card img { border-radius: 0; }
.story-card__copy { background: var(--primary-soft); color: var(--ink); border-top: 4px solid var(--lime); }
.story-card h3 { color: var(--ink); }
.story-pill { background: var(--lime-wash); color: var(--green-strong); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent); }
.story-pill .status { background: var(--warning-50); color: var(--warning-700); }
.story-more { color: var(--ink); border-bottom-color: var(--green); }
.story-card > a:hover .story-more { color: var(--green); }
.story-card > a:focus-visible { outline: 3px solid var(--focus); outline-offset: -6px; }
/* Slightly taller photos: a leaner text panel gives the image about 14px more */
.story-card__copy { height: 112px; padding-top: 10px; padding-bottom: 10px; }
/* Taller photos and larger text in Stories, news & events */
.exp-news { padding-block: clamp(20px, 2.4vw, 36px); }
.story-card__copy { height: 134px; padding-top: 12px; padding-bottom: 12px; }
.story-card h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.75rem); }
.story-pill { font-size: .9375rem; }
.story-more { font-size: 1rem; }
.stories-grid .list-title { font-size: 1.375rem; }
.stories-grid .row-item { grid-template-columns: 62px 1fr; }
.stories-grid .row-item h4 { font-size: 1.1875rem; }
.stories-grid .date-chip { min-width: 62px; }
.stories-grid .date-chip strong { font-size: 1.4rem; }
.stories-head h2 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem); }
/* A touch darker text panel under the news photos */
.story-card, .story-card__copy { background: var(--border); }
.story-pill { background: color-mix(in srgb, var(--surface) 72%, transparent); }
/* Clubs, sport and campus facilities: the video fills the full height of the text column on wide screens */
@media (min-width: 1024px) {
  .life-grid { align-items: stretch; }
  .life-section .life-media { display: flex; flex-direction: column; height: 100%; }
  .life-section .life-media video { flex: 1 1 auto; width: 100%; height: auto; min-height: 360px; aspect-ratio: auto; object-fit: cover; }
  .life-section .life-media figcaption { flex: none; }
}
/* Clubs, sport and campus facilities: a wider section with a bigger video */
.life-section > .container { width: min(100% - 2 * var(--s5), 1640px); }
@media (min-width: 1024px) {
  .life-grid { grid-template-columns: 5fr 7fr; gap: clamp(32px, 4vw, 72px); min-height: clamp(620px, 44vw, 820px); }
  .life-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
}
/* Wider still: edge to edge with a small gutter, video takes about two thirds */
.life-section > .container { width: calc(100% - 2 * clamp(16px, 2.5vw, 48px)); max-width: none; }
@media (min-width: 1024px) { .life-grid { grid-template-columns: 4fr 8fr; } }
/* Text column spans the full video height: heading at the top, numbers in the middle, button and source at the bottom */
@media (min-width: 1024px) {
  .life-copy { justify-content: space-between; align-items: stretch; padding-block: clamp(8px, 1.5vw, 28px); }
  .life-copy h2 { font-size: clamp(2.4rem, 1.4rem + 2.8vw, 4.25rem); max-width: 14ch; }
  .life-lead { font-size: 1.25rem; margin-bottom: 0; }
  .life-hero-stat { margin-bottom: var(--s5); padding-bottom: var(--s5); }
  .life-hero-stat .life-num { font-size: clamp(6rem, 3.5rem + 9vw, 12rem); }
  .life-points { margin-bottom: 0; }
  .life-num--sm { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4rem); }
  .life-bottom .btn { margin-bottom: 0; }
}
/* A little less tall: slightly smaller grid height and text so the video and text column shrink together */
@media (min-width: 1024px) {
  .life-grid { min-height: clamp(560px, 38vw, 740px); }
  .life-copy h2 { font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.6rem); }
  .life-lead { font-size: 1.125rem; }
  .life-hero-stat .life-num { font-size: clamp(5.5rem, 3.5rem + 7.5vw, 10rem); }
  .life-num--sm { font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem); }
}
/* "Student life": a prominent solid tag (no dot since 1.3.13) */
.life-kicker { display: inline-flex; align-items: center; gap: var(--s2); align-self: flex-start; width: fit-content; margin: 0 0 var(--s4); padding: 0; background: none; color: var(--primary-hover); font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; } /* 1.3.29: text only, no pill (client request). */
.life-kicker::before { content: none; }
/* Combined graduates + students row: two photos stacked, two figures side by side in one card */
.exp-media--duo { display: grid; grid-template-rows: 1fr 1fr; min-height: 420px; }
.exp-media--duo > img { position: static; inset: auto; width: 100%; height: 100%; min-height: 0; }
.exp-media--duo > img + img { border-top: 4px solid #fff; }
.exp-glass .exp-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); margin: var(--s1) 0 var(--s3); }
.exp-glass .exp-stats .exp-stat { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); margin: 0; }
.exp-glass .exp-stats .exp-stat strong { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem); }
@media (max-width: 479px) { .exp-glass .exp-stats { grid-template-columns: 1fr; } }
/* fixes: stacked photos take half the row each (positioned, so they do not set the row height); the two figures sit side by side */
.exp-media--duo { display: block; min-height: 420px; }
.exp-media--duo > img { position: absolute; left: 0; width: 100%; height: 50%; inset-inline: 0; object-fit: cover; }
.exp-media--duo > img:first-child { top: 0; bottom: auto; }
.exp-media--duo > img + img { top: 50%; bottom: auto; border-top: 4px solid #fff; }
.exp-glass .exp-stats .exp-stat { grid-column: auto; }
/* Merged row, laid out properly: heading and intro first, then two aligned columns (graduates | students), each with its figure and two details */
.exp-glass .exp-cols { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin: var(--s3) 0 var(--s4); }
.exp-glass .exp-col { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.exp-glass .exp-col + .exp-col { padding-left: var(--s5); border-left: 1px solid color-mix(in srgb, var(--blue-950) 16%, transparent); }
.exp-glass .exp-col .exp-stat { grid-column: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2); margin: 0 0 var(--s1); }
.exp-glass .exp-col .exp-stat strong { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem); }
.exp-glass .exp-col .exp-sub { margin: 0; padding-top: var(--s3); }
@media (max-width: 599px) { .exp-glass .exp-cols { grid-template-columns: 1fr; } .exp-glass .exp-col + .exp-col { padding-left: 0; border-left: 0; padding-top: var(--s4); border-top: 1px solid color-mix(in srgb, var(--blue-950) 16%, transparent); } }
/* Merged row: the two figures as two plain lines of the same size, one under the other, no sub-headings or divider */
.exp-glass .exp-lines { grid-column: 1 / -1; display: grid; gap: var(--s3); margin: var(--s3) 0 var(--s5); }
.exp-glass .exp-line { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s3); font-family: var(--font-display); font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.9rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
.exp-glass .exp-line strong { font-weight: 800; color: var(--primary-hover); background: linear-gradient(120deg, var(--primary-hover) 0%, var(--primary) 52%, var(--green-500) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.exp-glass .exp-line span { font-weight: 700; color: var(--ink); }
/* Larger nav bar text: 16px on small desktops up to 18px on wide screens; Search and Apply scale with it */
@media (min-width: 1360px) {
  .main-nav a, .main-nav summary { font-size: clamp(1rem, .6rem + .45vw, 1.125rem); padding: 0 var(--s3); }
  .main-nav > ul { gap: 2px; }
  .search-link, .glass-bar .btn--small { font-size: clamp(.9375rem, .6rem + .35vw, 1.0625rem); }
}
.glass-bar .btn--small { font-weight: 800; }
/* Browse by subject: trim the very tall top and bottom padding */
.band.band--tight { padding-block: clamp(24px, 3vw, 44px); }
.band--tight .section-head { margin-bottom: var(--s4); }
/* Choose a study route: wider, edge to edge with a small gutter, bigger tiles */
.routes-section > .container { width: calc(100% - 2 * clamp(16px, 2.5vw, 48px)); max-width: none; }
@media (min-width: 1024px) {
  .routes { grid-template-columns: 4fr 8fr; gap: clamp(32px, 4vw, 72px); }
  .faculty-mosaic { grid-auto-rows: clamp(120px, 9.5vw, 190px); gap: var(--s4); }
  .faculty-mosaic .tile strong { font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.25rem); }
  .faculty-mosaic .tile__n { font-size: clamp(3.25rem, 2.2rem + 3.6vw, 6rem); }
  .route-list strong { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.75rem); }
  .route-list span { font-size: 1.375rem; }
}
/* Wide, not tall: short tile rows so the mosaic stays a wide band */
@media (min-width: 1024px) { .faculty-mosaic { grid-auto-rows: clamp(100px, 5.5vw, 120px); } }
/* Wider but not taller: tile rows and the route-list type back to their earlier sizes */
@media (min-width: 1024px) {
  .faculty-mosaic { grid-auto-rows: 104px; gap: var(--s3); }
  .faculty-mosaic .tile strong { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
  .faculty-mosaic .tile__n { font-size: clamp(3rem, 2.2rem + 3vw, 5rem); }
  .route-list strong { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
  .route-list span { font-size: 1.25rem; }
}
/* What NSBM reports about itself: less empty space above the heading */
.exp.band { padding-top: clamp(24px, 3vw, 44px); }
.exp .section-head { margin-bottom: var(--s4); }
.exp .exp-rows { margin-top: var(--s4); }
/* Calmer scrolling in "What NSBM reports about itself":
   - photos no longer zoom when the pointer passes over them while scrolling
   - the text cards are plain frosted white (no live backdrop filter), so nothing is re-rendered on every scroll frame
   - no drop-shadow filters on the figures */
.exp-media > img, .exp-row:hover .exp-media > img { transition: none; transform: none; }
.exp-glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.74)); }
.exp-glass .exp-stat strong, .exp-glass .exp-line strong, .exp-glass .exp-col .exp-stat strong { filter: none; }
.exp-row { contain: layout paint; }
/* Explore our faculties: an expanding photo accordion (the open panel shows its description and button, the others fold into strips) */
.fx-section > .container { width: calc(100% - 2 * clamp(16px, 2.5vw, 48px)); max-width: none; }
.fx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s7); margin-bottom: var(--s6); }
.fx-head h2 { margin: 0; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem); line-height: 1.05; }
.fx-head h2 span { color: var(--green); }
.fx-head .exp-kicker { margin-bottom: var(--s2); }
.fx-lead { margin: 0; max-width: 46ch; color: var(--muted); font-size: var(--t-md); }
.fx-wrap { display: flex; gap: 14px; height: clamp(440px, 34vw, 560px); }
.fx-panel { position: relative; flex: 1; min-width: 0; overflow: hidden; isolation: isolate; border-radius: 10px 10px 40px 10px; color: #fff; cursor: pointer; background: var(--ink); transition: flex .8s var(--ease); }
.fx-panel.is-active { flex: 3.4; }
.fx-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.fx-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.fx-panel.is-active .fx-bg { transform: scale(1); }
.fx-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 12%, transparent) 20%, color-mix(in srgb, var(--blue-950) 88%, transparent) 100%); transition: background .6s; }
.fx-panel:not(.is-active)::after { background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 38%, transparent) 0%, color-mix(in srgb, var(--blue-950) 88%, transparent) 100%); }
.fx-num { position: absolute; top: var(--s5); left: var(--s5); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; opacity: .85; }
.fx-inner { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s5) var(--s5) var(--s6); }
.fx-count { display: inline-block; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--blue-950) 50%, transparent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); font-size: var(--t-sm); font-weight: 700; color: var(--green-300); }
.fx-name { margin: var(--s3) 0 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: #fff; }
.fx-panel:not(.is-active) .fx-name { font-size: clamp(1.1rem, .85rem + .5vw, 1.45rem); line-height: 1.15; writing-mode: horizontal-tb; transform: none; white-space: normal; }
.fx-panel:not(.is-active) .fx-count { display: none; }
.fx-detail { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease); }
.fx-panel.is-active .fx-detail { max-height: 260px; opacity: 1; transition-delay: .25s; }
.fx-detail p { margin: var(--s3) 0 var(--s4); max-width: 46ch; color: rgba(255,255,255,.9); font-size: var(--t-md); line-height: 1.55; }
.fx-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s5); border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 800; text-decoration: none; }
.fx-btn:hover { background: var(--green-300); color: var(--ink); }
@media (max-width: 991px) {
  .fx-wrap { flex-direction: column; height: auto; }
  .fx-panel, .fx-panel.is-active { flex: none; height: 300px; }
  .fx-panel:not(.is-active) .fx-name { writing-mode: initial; transform: none; font-size: 1.6rem; }
  .fx-panel:not(.is-active) .fx-count { display: inline-block; }
  .fx-detail { max-height: none; opacity: 1; }
  .fx-panel::after, .fx-panel:not(.is-active)::after { background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 10%, transparent) 10%, color-mix(in srgb, var(--blue-950) 90%, transparent) 100%); }
}
@media (prefers-reduced-motion: reduce) { .fx-panel, .fx-bg, .fx-detail { transition: none; } }
/* At a glance: NSBM by numbers. A deep green panel, five big numerals with a lime plus, thin dividers */
.glance-section { padding-block: clamp(24px, 3vw, 44px) clamp(48px, 6vw, 96px); }
.glance-section > .container { width: calc(100% - 2 * clamp(16px, 2.5vw, 48px)); max-width: none; }
.glance { position: relative; isolation: isolate; overflow: hidden; padding: clamp(32px, 5vw, 72px); border-radius: 12px 12px 96px 12px; color: #fff; background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-950) 72%); }
.glance::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--green-400) 30%, transparent), transparent 65%); }
.glance-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s7); }
.glance-kicker { margin: 0 0 var(--s2); font-weight: 700; font-size: .95rem; color: var(--green-300); }
.glance h2 { margin: 0; color: #fff; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem); line-height: 1.05; }
.glance-lead { margin: 0; max-width: 44ch; color: rgba(255,255,255,.82); font-size: var(--t-md); }
.glance-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid rgba(255,255,255,.16); }
.glance-item { padding: var(--s6) var(--s5) 0; border-left: 1px solid rgba(255,255,255,.16); }
.glance-item:first-child { padding-left: 0; border-left: 0; }
.glance-val { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 4rem); line-height: 1.1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: #fff; }
.glance-val .plus { color: var(--green-300); }
.glance-label { display: block; margin-top: var(--s2); color: rgba(255,255,255,.84); font-size: var(--t-base); }
.glance-note { margin: var(--s7) 0 0; color: rgba(255,255,255,.7); font-size: var(--t-sm); }
.glance-note a { color: var(--green-300); }
@media (max-width: 1023px) {
  .glance-grid { grid-template-columns: repeat(2, 1fr); }
  .glance-item { padding: var(--s5) var(--s4) var(--s5) 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .glance-item:last-child { grid-column: span 2; border-bottom: 0; }
}
/* Less space between "Browse by subject" and "Explore our faculties" */
.band.band--tight { padding-bottom: clamp(20px, 2.4vw, 32px); }
.fx-section.band { padding-top: clamp(28px, 3vw, 44px); }
/* Clubs, sport and campus facilities: back to its first size (container width, 5/7 split, 16:9 video), keeping the current look */
.life-section > .container { width: min(100% - 2 * var(--s4), var(--container)); max-width: none; }
@media (min-width: 1024px) {
  .life-section > .container { width: min(100% - 3 * var(--s5), var(--container)); }
  .life-grid { grid-template-columns: 5fr 7fr; gap: var(--s6); min-height: 0; align-items: center; }
  .life-copy { justify-content: flex-start; align-items: flex-start; padding-block: 0; }
  .life-section .life-media { display: block; height: auto; }
  .life-section .life-media video { flex: none; width: 100%; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .life-copy h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); max-width: 16ch; }
  .life-lead { font-size: var(--t-md); margin-bottom: var(--s6); }
  .life-hero-stat { margin-bottom: var(--s6); padding-bottom: var(--s6); }
  .life-hero-stat .life-num { font-size: clamp(4.5rem, 3rem + 5vw, 8rem); }
  .life-points { margin-bottom: var(--s6); }
  .life-num--sm { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.25rem); }
}
/* Clubs, sport and campus facilities: text column and video are exactly the same height. The "Student life" tag sits above both,
   so the heading lines up with the top of the video and the button and source line with its bottom. */
.life-section > .container > .life-kicker { margin-bottom: var(--s4); }
@media (min-width: 1024px) {
  .life-grid { align-items: stretch; }
  .life-copy { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; height: 100%; padding-block: 0; }
  .life-section .life-media { position: relative; display: block; height: auto; min-height: 400px; margin: 0; }
  .life-section .life-media video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; object-fit: cover; }
  .life-copy h2 { font-size: clamp(1.6rem, 1rem + 1vw, 2.1rem); line-height: 1.08; margin-bottom: var(--s3); max-width: 20ch; }
  .life-lead { font-size: 1rem; margin-bottom: var(--s4); max-width: 44ch; }
  .life-hero-stat { margin-bottom: var(--s4); padding-bottom: var(--s4); gap: var(--s1) var(--s4); }
  .life-hero-stat .life-num { font-size: clamp(3.5rem, 2.4rem + 3vw, 4.75rem); }
  .life-hero-stat h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
  .life-hero-stat p { font-size: .9rem; line-height: 1.4; }
  .life-points { margin-bottom: var(--s4); }
  .life-num--sm { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); }
  .life-label { font-size: .85rem; }
  .life-source { margin-top: var(--s3); font-size: .8rem; }
}
/* Study path finder */
.pf-section > .container { width: calc(100% - 2 * clamp(16px, 2.5vw, 48px)); max-width: none; }
.pf-section.band { padding-block: clamp(32px, 4vw, 64px); }
.pf { display: grid; gap: var(--s6); grid-template-columns: 1fr; align-items: start; padding: clamp(24px, 3.5vw, 56px); border-radius: 12px 12px 72px 12px; background: var(--surface); box-shadow: 0 18px 44px color-mix(in srgb, var(--blue-950) 8%, transparent); }
@media (min-width: 1100px) { .pf { grid-template-columns: 7fr 5fr; gap: clamp(32px, 4vw, 64px); } }
.pf h2 { margin: 0 0 var(--s4); font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.05; }
.pf-noscript { color: var(--muted); }
.pf-steps { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.pf-steps li { display: inline-flex; align-items: center; gap: var(--s2); color: var(--muted); font-weight: 600; font-size: var(--t-sm); }
.pf-steps li span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.pf-steps li.is-current { color: var(--ink); }
.pf-steps li.is-current span { background: var(--green); border-color: var(--green); color: #fff; }
.pf-steps li.is-done span { background: var(--lime-wash); border-color: var(--green); color: var(--green-strong); }
.pf-step { margin: 0 0 var(--s5); padding: 0; border: 0; min-width: 0; }
.pf-step legend { padding: 0; margin-bottom: var(--s3); font-family: var(--font-display); font-weight: 700; font-size: var(--t-md); color: var(--ink); }
.pf-step legend em { font-family: var(--font-body); font-style: normal; font-weight: 500; font-size: var(--t-sm); color: var(--muted); margin-left: var(--s2); }
.pf-step__no { display: block; margin-bottom: 2px; font-family: var(--font-body); font-size: .8rem; font-weight: 700; color: var(--green); }
.pf-levels { display: flex; flex-wrap: wrap; gap: var(--s3); }
.pf-level { min-height: 52px; padding: 0 var(--s6); border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: 700 1.0625rem var(--font-body); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.pf-level:hover { border-color: var(--green); }
.pf-level[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.pf-level:focus-visible, .pf-tile:focus-visible, .pf-reset:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pf-tiles { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pf-tile { position: relative; display: block; height: 108px; padding: 0; overflow: hidden; border: 0; border-radius: 8px 8px 28px 8px; background: var(--ink); color: #fff; cursor: pointer; isolation: isolate; box-shadow: inset 0 0 0 0 transparent; transition: transform .25s var(--ease), opacity .25s; }
.pf-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pf-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--blue-950) 5%, transparent) 25%, color-mix(in srgb, var(--blue-950) 82%, transparent) 100%); }
.pf-tile__label { position: absolute; left: var(--s3); right: var(--s3); bottom: var(--s2); font-weight: 700; font-size: .95rem; line-height: 1.2; text-align: left; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pf-tile:not(:disabled):hover { transform: translateY(-2px); }
.pf-tile:not(:disabled):hover img { transform: scale(1.04); }
.pf-tile[aria-pressed="true"] { outline: 3px solid var(--green-300); outline-offset: -3px; }
.pf-tile[aria-pressed="true"]::before { content: "\2713"; position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green-300); color: var(--ink); font-weight: 800; font-size: .85rem; }
.pf-tile:disabled { opacity: .4; cursor: not-allowed; filter: grayscale(.6); }
.pf-hint { margin: var(--s2) 0 0; color: var(--muted); font-size: var(--t-sm); }
.pf-hint[hidden] { display: none; }
.pf-reset { min-height: 44px; padding: 0 var(--s5); border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 var(--t-sm) var(--font-body); cursor: pointer; }
.pf-reset:hover { border-color: var(--green); color: var(--green); }
.pf-card { overflow: hidden; border-radius: 10px 10px 72px 10px; background: var(--primary-soft); box-shadow: 0 14px 34px color-mix(in srgb, var(--blue-950) 12%, transparent); position: sticky; top: 96px; }
.pf-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.pf-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.pf-card__media img.is-swapping { opacity: 0; }
.pf-badge { position: absolute; left: var(--s3); bottom: var(--s3); padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--blue-950) 62%, transparent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); color: #fff; font-size: var(--t-sm); font-weight: 700; }
.pf-card__body { padding: var(--s5) var(--s5) var(--s6); }
.pf-card__kicker { margin: 0 0 var(--s1); font-size: var(--t-sm); font-weight: 700; color: var(--green); }
.pf-card h3 { margin: 0 0 var(--s2); font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.pf-card__desc { margin: 0 0 var(--s3); color: var(--muted); }
.pf-chips { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.pf-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s3); border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent); color: var(--green-strong); font-weight: 700; font-size: var(--t-sm); text-decoration: none; }
.pf-chips a:hover { background: var(--lime-wash); }
.pf-route { margin: 0 0 var(--s4); padding-left: var(--s3); border-left: 3px solid var(--lime); color: var(--ink); font-size: var(--t-sm); }
.pf-go { text-decoration: none; }
@media (max-width: 1099px) { .pf-card { position: static; } }
@media (prefers-reduced-motion: reduce) { .pf-tile, .pf-tile img, .pf-card__media img { transition: none; } }
/* Path finder tiles: no photos, frosted glass tiles on a soft colour field so the glass reads */
.pf-tiles { padding: var(--s4); border-radius: 12px 12px 40px 12px; gap: var(--s3);
  background: radial-gradient(60% 90% at 8% 0%, color-mix(in srgb, var(--green-400) 38%, transparent), transparent 62%), radial-gradient(55% 80% at 96% 100%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 64%), linear-gradient(135deg, var(--primary-soft), var(--primary-soft)); }
.pf-tile { display: flex; align-items: center; justify-content: flex-start; height: auto; min-height: 60px; padding: 0 var(--s4); border-radius: 18px; color: var(--ink); isolation: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.74), rgba(255,255,255,.40)); box-shadow: 0 8px 20px color-mix(in srgb, var(--blue-950) 14%, transparent), inset 0 1px 1px rgba(255,255,255,.95), inset 0 -6px 14px rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.7); }
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) { .pf-tile { -webkit-backdrop-filter: blur(10px) saturate(150%); backdrop-filter: blur(10px) saturate(150%); } }
.pf-tile::after { display: none; }
.pf-tile__label { position: static; left: auto; right: auto; bottom: auto; padding-right: var(--s5); color: var(--ink); text-shadow: none; font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: left; }
.pf-tile:not(:disabled):hover { transform: translateY(-2px); background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.58)); }
.pf-tile[aria-pressed="true"] { outline: 0; background: linear-gradient(180deg, rgba(232,245,211,.95), rgba(200,235,150,.7)); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 22%, transparent), inset 0 1px 1px rgba(255,255,255,.95), inset 0 0 0 2px var(--green); }
.pf-tile[aria-pressed="true"]::before { top: 50%; right: 12px; transform: translateY(-50%); background: var(--green); color: #fff; }
.pf-tile:disabled { opacity: .5; filter: none; }
/* Path finder progress: sticky under the nav, connector lines that fill, check marks on finished steps, clickable steps */
.pf-steps { position: sticky; top: 82px; z-index: 6; margin: 0 0 var(--s5); padding: 10px 0; flex-wrap: nowrap; gap: 0; background: linear-gradient(#fff 80%, rgba(255,255,255,0)); }
.pf-steps li { flex: 1 1 0; position: relative; min-width: 0; }
.pf-steps li + li::before { content: ""; position: absolute; left: calc(-50% + 22px); right: calc(50% + 0px); top: 17px; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .3s; }
.pf-steps li.is-done + li::before, .pf-steps li.is-done + li.is-current::before { background: var(--green); }
.pf-stepbtn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s2) 0 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.pf-stepbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.pf-steps li span { transition: background-color .25s, color .25s, border-color .25s; flex: none; position: relative; z-index: 1; }
.pf-steps li.is-done span { background: var(--green); border-color: var(--green); color: #fff; font-size: 0; }
.pf-steps li.is-done span::after { content: "\2713"; font-size: .95rem; font-weight: 800; }
.pf-steps li.is-done .pf-stepbtn { color: var(--green-strong); }
.pf-steps li.is-current .pf-stepbtn { color: var(--ink); font-weight: 800; }
.pf-steps li.is-current:not(.is-done) span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
@media (max-width: 599px) { .pf-stepbtn { font-size: .8rem; } .pf-steps li + li::before { left: calc(-50% + 18px); } }
@media (prefers-reduced-motion: reduce) { .pf-steps li span, .pf-steps li + li::before { transition: none; } }
/* Progress bar under the steps (replaces the per-step connector lines) */
.pf-steps li + li::before { display: none; }
.pf-steps { --pf-progress: 0%; padding-bottom: 14px; }
.pf-steps::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 4px; border-radius: 4px; background: var(--line); }
.pf-steps::after { content: ""; position: absolute; left: 0; bottom: 4px; height: 4px; width: var(--pf-progress); border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--green-400)); transition: width .4s var(--ease); }
@media (prefers-reduced-motion: reduce) { .pf-steps::after { transition: none; } }
/* Role tiles are rendered from the chosen streams: two-line glass tiles (role + its stream) */
.pf-tiles--roles:empty { display: none; }
.pf-tiles--roles .pf-tile { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding-block: var(--s2); }
.pf-tile__sub { font-size: .75rem; font-weight: 600; color: var(--muted); }
.pf-tile[aria-pressed="true"] .pf-tile__sub { color: var(--green-strong); }
/* Path finder: groups of areas under a heading (undergraduate streams, master's degrees, postgraduate diplomas, doctoral study) */
.pf-groups:empty { display: none; }
.pf-group + .pf-group { margin-top: var(--s4); }
.pf-group__title { margin: 0 0 var(--s2); font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); color: var(--ink); }
.pf-tiles--streams .pf-tile { min-height: 64px; }
/* Matching degrees list in the result card */
.pf-degrees { margin: 0 0 var(--s3); padding-top: var(--s3); border-top: 1px solid color-mix(in srgb, var(--blue-950) 14%, transparent); }
.pf-degrees[hidden] { display: none; }
.pf-degrees__title { margin: 0 0 var(--s2); font-family: var(--font-display); font-weight: 700; font-size: var(--t-base); color: var(--ink); }
.pf-degree-list { list-style: none; margin: 0; padding: 0; max-height: 270px; overflow-y: auto; display: grid; gap: 6px; }
.pf-degree-list a { display: block; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent); text-decoration: none; color: var(--ink); }
.pf-degree-list a:hover { background: var(--lime-wash); box-shadow: inset 0 0 0 1px var(--green); }
.pf-degree-list strong { display: block; font-size: .95rem; line-height: 1.25; }
.pf-degree-list span { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.pf-more { margin-top: var(--s2); min-height: 40px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--green-strong); font: 700 var(--t-sm) var(--font-body); cursor: pointer; }
.pf-more:hover { border-color: var(--green); }
.pf-more[hidden] { display: none; }
/* Degrees as a stack of cards (Motion animates the transforms; these rules set up the pile) */
.pf-card__media { overflow: hidden; }
.pf-stack { position: relative; list-style: none; margin: 0; padding: 0; transform-origin: top center; }
.pf-stack li { position: absolute; left: 0; right: 0; top: 0; transform-origin: 50% 0; will-change: transform, opacity; }
.pf-stack li a { box-shadow: 0 6px 16px color-mix(in srgb, var(--blue-950) 14%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent); background: var(--surface); }
.pf-stack li a:hover { background: var(--lime-wash); }
.pf-degree-list { max-height: none; overflow: visible; }
.pf-more[aria-expanded="true"] { background: var(--lime-wash); }
@keyframes pfTick { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pf-tile[aria-pressed="true"]::before { animation: pfTick .3s cubic-bezier(.34,1.56,.64,1) both; }
@media (prefers-reduced-motion: reduce) { .pf-tile[aria-pressed="true"]::before { animation: none; } }
/* Stacked degree cards: the card look that the old list class used to provide */
.pf-stack li a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.pf-stack li strong { display: block; font-size: .95rem; line-height: 1.25; }
.pf-stack li span { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.35; color: var(--muted); }
.pf-go[hidden] { display: none; }
.pf-card.is-open { position: static; }
/* Degrees with international partners: partner tabs with a slanted "page curtain" wipe between panels */
.cu-tabs { display: none; }
.js .cu-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-bottom: var(--s4); }
.cu-tab { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 8px 8px 10px; border: 2px solid var(--line); border-radius: 12px 12px 28px 12px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: border-color .2s, background-color .2s, transform .25s var(--ease); }
.cu-tab:hover { border-color: var(--green); transform: translateY(-2px); }
.cu-tab img { width: 100%; height: auto; aspect-ratio: 430 / 224; object-fit: cover; border-radius: 8px 8px 22px 8px; }
.cu-tab__name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.15; padding: 0 4px; }
.cu-tab__meta { font-size: .8rem; color: var(--muted); padding: 0 4px; }
.cu-tab[aria-selected="true"] { border-color: var(--green); background: var(--lime-wash); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 18%, transparent); }
.cu-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cu-tab:disabled { cursor: progress; }
.cu-stage { position: relative; overflow: hidden; border-radius: 12px 12px 72px 12px; background: var(--primary-soft); box-shadow: 0 14px 34px color-mix(in srgb, var(--blue-950) 10%, transparent); }
.cu-panels { display: grid; }
.cu-panel { display: grid; grid-template-columns: 1fr; gap: var(--s5); padding: clamp(20px, 3vw, 44px); align-items: center; }
.js .cu-panel { grid-area: 1 / 1; }
.js .cu-panel:not(.is-active) { visibility: hidden; pointer-events: none; }
@media (min-width: 900px) { .cu-panel { grid-template-columns: 1.15fr .85fr; gap: var(--s7); } }
.cu-kicker { margin: 0 0 var(--s2); font-weight: 700; font-size: var(--t-sm); color: var(--green); }
.cu-panel h3 { margin: 0 0 var(--s2); font-family: var(--font-display); font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }
.cu-count { margin: 0 0 var(--s4); color: var(--muted); }
.cu-count strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--green-strong); margin-right: 4px; }
.cu-degrees { list-style: none; margin: 0; padding: 0 var(--s2) 0 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); max-height: 270px; overflow-y: auto; }
.cu-degrees a { display: block; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent); color: var(--ink); font-size: .92rem; line-height: 1.3; font-weight: 600; text-decoration: none; }
.cu-degrees a:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--green); color: var(--green-strong); }
.cu-panel__media img { width: 100%; height: auto; border-radius: 10px 10px 48px 10px; box-shadow: 0 14px 30px color-mix(in srgb, var(--blue-950) 18%, transparent); }
.cu-wipe { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; text-align: center; padding: var(--s5); color: #fff; pointer-events: none; clip-path: polygon(0 0, 0 0, 0 0, 0 0); background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-950) 70%); }
.cu-wipe__country { font-size: var(--t-md); font-weight: 700; color: var(--green-300); }
.cu-wipe__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1rem + 4vw, 4.75rem); line-height: 1; letter-spacing: -0.04em; }
.cu-note { margin: var(--s3) 0 0; }
@media (max-width: 767px) { .js .cu-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .cu-tab { transition: none; } }
/* Partner degree lists: filter chips, a six-row preview that expands, row cards with an area tag and a sliding arrow */
.cu-degrees { display: grid; grid-template-columns: 1fr; gap: 8px; max-height: none; overflow: visible; padding: 0; }
@media (min-width: 1100px) { .cu-degrees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cu-degrees li[hidden] { display: none; }
.cu-degrees a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px 14px 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 1px 0 color-mix(in srgb, var(--blue-950) 5%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--primary) 16%, transparent); transition: transform .25s var(--ease), box-shadow .25s, background-color .2s; }
.cu-degrees a::after { content: "\2192"; flex: none; color: var(--green); opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .25s var(--ease); }
.cu-degrees a:hover, .cu-degrees a:focus-visible { background: var(--surface); transform: translateX(4px); box-shadow: 0 8px 18px color-mix(in srgb, var(--blue-950) 10%, transparent), inset 0 0 0 1px var(--green); }
.cu-degrees a:hover::after, .cu-degrees a:focus-visible::after { opacity: 1; transform: none; }
.cu-d__title { flex: 1; min-width: 0; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.cu-d__tag { flex: none; padding: 3px 10px; border-radius: 999px; background: var(--lime-wash); color: var(--green-strong); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.cu-filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s3); }
.cu-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 var(--s3); border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .85rem var(--font-body); cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.cu-chip b { font-weight: 800; color: var(--muted); }
.cu-chip:hover { border-color: var(--green); }
.cu-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.cu-chip[aria-pressed="true"] b { color: var(--green-300); }
.cu-chip:focus-visible, .cu-more:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.cu-more { margin-top: var(--s3); min-height: 44px; padding: 0 var(--s5); border-radius: 999px; border: 2px solid var(--green); background: var(--surface); color: var(--green-strong); font: 800 .95rem var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.cu-more:hover { background: var(--green); color: #fff; }
.cu-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .cu-degrees a, .cu-degrees a::after, .cu-chip, .cu-more { transition: none; } }
/* Partner tabs: the selected partner is gray, the others stay white */
.cu-tab[aria-selected="true"] { background: var(--surface-3); border-color: var(--border-strong); box-shadow: none; }
.cu-tab[aria-selected="true"]:hover { border-color: var(--text-subtle); }
.cu-tab[aria-selected="true"] .cu-tab__meta { color: var(--text-muted); }
/* Full list: the photo steps aside and the degrees spread across the whole panel */
.cu-panel.is-open { grid-template-columns: 1fr; }
.cu-panel.is-open .cu-panel__media { display: none; }
@media (min-width: 1100px) { .cu-panel.is-open .cu-degrees { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) and (max-width: 1099px) { .cu-panel.is-open .cu-degrees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Degree rows: every row the same height, whether the title wraps or not */
.cu-degrees { grid-auto-rows: 1fr; align-items: stretch; }
.cu-degrees li { display: flex; min-width: 0; }
.cu-degrees li[hidden] { display: none; }
.cu-degrees a { flex: 1; min-height: 64px; line-height: 1.3; }
.cu-d__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Matching degrees: full-width results panel with parallax depth layers */
.pf-more { background: var(--green); border-color: var(--green); color: #fff; }
.pf-more:hover { background: var(--green-strong); }
.pfr { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--s6); border-radius: var(--radius-2xl); background: var(--grad-ink); color: #fff; box-shadow: 0 24px 60px rgba(8,30,24,.28); }
.pfr[hidden] { display: none; }
.pfr-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.pfr-l { position: absolute; display: block; will-change: transform; }
.pfr-l--ring { width: 520px; height: 520px; right: -140px; top: -200px; border-radius: 50%; border: 56px solid rgba(160,214,80,.16); }
.pfr-l--blob { width: 440px; height: 440px; left: -160px; bottom: -220px; border-radius: 46% 54% 60% 40%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--green-400) 45%, transparent), color-mix(in srgb, var(--green-400) 0%, transparent) 70%); }
.pfr-l--dots { inset: -60px 0; background-image: radial-gradient(rgba(255,255,255,.14) 1.4px, transparent 1.6px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 100%); mask-image: linear-gradient(100deg, transparent 38%, #000 100%); }
.pfr-inner { position: relative; z-index: 1; padding: clamp(24px, 4vw, 56px); }
.pfr-head { will-change: transform; margin-bottom: var(--s5); }
.pfr-kicker { margin: 0 0 var(--s2); font-size: var(--t-sm); font-weight: 700; color: var(--green-300); }
.pfr h3 { margin: 0 0 var(--s4); font-family: var(--font-display); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; color: #fff; outline: none; }
.pfr-filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pfr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s4); border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: 700 .88rem var(--font-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.pfr-chip b { color: var(--green-300); font-weight: 800; }
.pfr-chip:hover { border-color: var(--green-300); }
.pfr-chip[aria-pressed="true"] { background: var(--green-300); border-color: var(--green-300); color: var(--blue-950); }
.pfr-chip[aria-pressed="true"] b { color: var(--green-800); }
.pfr-chip:focus-visible, .pfr-more:focus-visible, .pfr-grid a:focus-visible { outline: 3px solid var(--green-300); outline-offset: 3px; }
.pfr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--s3); grid-auto-rows: 1fr; }
@media (min-width: 700px) { .pfr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pfr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pfr-grid li { display: flex; min-width: 0; }
.pfr-grid li[hidden] { display: none; }
.pfr-grid a { position: relative; flex: 1; display: flex; flex-direction: column; gap: var(--s2); min-height: 150px; padding: var(--s4) var(--s5) var(--s4) var(--s4); border-radius: 14px 14px 40px 14px; background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.18); transition: transform .3s var(--ease), box-shadow .3s; }
.pfr-grid a:hover, .pfr-grid a:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 34px rgba(0,0,0,.26); }
.pfr-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.pfr-tag { padding: 3px 10px; border-radius: 999px; background: var(--lime-wash); color: var(--green-strong); font-size: .74rem; font-weight: 800; }
.pfr-lvl { font-size: .74rem; font-weight: 700; color: var(--muted); }
.pfr-grid strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.22; letter-spacing: -0.01em; }
.pfr-sub { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.pfr-go { position: absolute; right: 16px; bottom: 12px; color: var(--green); font-weight: 800; opacity: 0; transform: translateX(-8px); transition: opacity .2s, transform .3s var(--ease); }
.pfr-grid a:hover .pfr-go, .pfr-grid a:focus-visible .pfr-go { opacity: 1; transform: none; }
.pfr-more { margin-top: var(--s5); min-height: 46px; padding: 0 var(--s6); border-radius: 999px; border: 2px solid var(--green-300); background: transparent; color: var(--green-300); font: 800 .95rem var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.pfr-more:hover { background: var(--green-300); color: var(--blue-950); }
.pfr-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .pfr-chip, .pfr-grid a, .pfr-go, .pfr-more { transition: none; } .pfr-l, .pfr-head { transform: none !important; } }
.pfr-grid a { min-height: 124px; }
/* Tighter gap between the partner tabs and Research clusters */
.band[aria-labelledby="partners-title"] { padding-bottom: clamp(20px, 2.4vw, 32px); }
#research.band { padding-top: clamp(28px, 3.4vw, 48px); }
.cu-note { margin-bottom: 0; }
/* Theme switch (Light / Dark / Device) */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-pill); background: rgb(255 255 255 / .14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.theme-switch button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; color: #fff; cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-base) var(--ease-spring); }
.theme-switch button svg { width: var(--icon-sm); height: var(--icon-sm); }
.theme-switch button:hover { background: rgb(255 255 255 / .2); }
.theme-switch button:active { transform: scale(.94); }
.theme-switch button[aria-pressed="true"] { background: #fff; color: var(--blue-950); box-shadow: var(--shadow-sm); }
.theme-switch button:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: 2px; }
.mobile-theme { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-theme .theme-switch { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); }
.mobile-theme .theme-switch button { color: var(--text); }
.mobile-theme .theme-switch button:hover { background: var(--primary-soft); }
.mobile-theme .theme-switch button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
@media (max-width: 1099px) { .header-actions > .theme-switch { display: none; } }

/* Parallax depth layers (decorative, behind section content) */
.px-host { position: relative; isolation: isolate; overflow: clip; }
.px-host > .container { position: relative; z-index: 1; }
.px-layers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.px-l { position: absolute; display: block; will-change: transform; }
.px-l--ring { width: 460px; height: 460px; right: -150px; top: -120px; border-radius: 50%; border: 48px solid color-mix(in srgb, var(--primary) 9%, transparent); }
.px-l--blob { width: 520px; height: 520px; left: -200px; bottom: -180px; border-radius: 46% 54% 60% 40%; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--green-400) 22%, transparent), transparent 70%); }
.px-l--dots { width: 340px; height: 260px; right: 4%; bottom: 8%; background-image: radial-gradient(color-mix(in srgb, var(--primary) 26%, transparent) 1.5px, transparent 1.7px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.banner-stage { overflow: clip; }
.banner-slide img { will-change: transform; transform-origin: 50% 40%; }

/* Scroll reveal: gentle fade and rise, only when JavaScript is on */
.js .reveal { opacity: 0; transform: translateY(var(--reveal-distance)); transition: opacity var(--dur-slower) var(--ease-out), transform var(--dur-slower) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .px-l, .banner-slide img { transform: none !important; } }
/* Research that shapes tomorrow: a sideways card scroller (no autoplay) */
.rs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-8); }
.rs-head h2 { margin: 0 0 var(--space-3); font-size: var(--fs-h2); letter-spacing: -0.02em; text-wrap: balance; }
.rs-head p { margin: 0; color: var(--text-muted); max-width: 62ch; }
.rs-head .exp-kicker { margin-bottom: var(--space-2); color: var(--primary); }
.rs-actions { display: flex; align-items: center; gap: var(--space-4); }
.rs-ctrl { display: flex; gap: var(--space-2); }
.rs-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: var(--radius-pill); border: var(--border-w-strong) solid var(--border-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-base) var(--ease-spring); }
.rs-btn svg { width: 16px; height: 16px; }   /* matches .ctrl-btn, the standard small control (components/carousel/carousel.css) */
.rs-btn:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.rs-btn:active { transform: scale(.94); }
.rs-btn[aria-disabled="true"] { background: var(--disabled-bg); border-color: var(--disabled-border); color: var(--disabled-text); cursor: not-allowed; transform: none; }
.rs-btn:focus-visible, .rs-track:focus-visible, .rs-card:focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-offset); }
.rs-track { display: flex; gap: var(--space-6); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: var(--space-2) var(--space-6); cursor: grab; border-radius: var(--radius-xl); }
.rs-track::-webkit-scrollbar { display: none; }
.rs-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rs-track.is-drag .rs-card { pointer-events: none; }
.rs-card { position: relative; isolation: isolate; flex: 0 0 clamp(270px, 30vw, 400px); min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; overflow: hidden; scroll-snap-align: start; border-radius: var(--radius-xl); color: #fff; text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(var(--rs-y, 0)) scale(var(--rs-s, 1)); transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out); }
.rs-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 30 58 / .4) 0%, transparent 32%), var(--scrim); }
.rs-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; will-change: transform; transition: scale var(--dur-slower) var(--ease-out); }
.rs-card:hover, .rs-card:focus-visible { --rs-y: var(--hover-lift); box-shadow: var(--shadow-lg); color: #fff; }
.rs-card:hover img, .rs-card:focus-visible img { scale: var(--image-zoom); }
.rs-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.rs-num { font-size: var(--fs-body-sm); font-weight: 600; letter-spacing: .06em; color: rgb(255 255 255 / .9); }
.rs-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-lg); background: rgb(255 255 255 / .16); border: var(--border-w) solid rgb(255 255 255 / .35); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.rs-ico svg { width: var(--icon-lg); height: var(--icon-lg); }
.rs-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.rs-text strong { display: block; margin-bottom: var(--space-2); font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.rs-text > span { display: block; font-size: var(--fs-body-sm); line-height: 1.55; color: rgb(255 255 255 / .88); }
.rs-go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: rgb(255 255 255 / .16); border: var(--border-w) solid rgb(255 255 255 / .35); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-base) var(--ease-spring); }
.rs-go svg { width: var(--icon-md); height: var(--icon-md); }
.rs-card:hover .rs-go, .rs-card:focus-visible .rs-go { background: #fff; color: var(--blue-950); transform: translate(2px, -2px); }
.rs-progress { height: 3px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.rs-progress span { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--grad-primary); transform: translateX(0); will-change: transform; }
.rs-mobile { display: none; margin: var(--space-6) 0 0; }
.rs-mobile .btn { width: 100%; justify-content: center; }
.js .rs-wait .rs-card { opacity: 0; }
@media (max-width: 767px) { .rs-explore { display: none; } .rs-mobile { display: block; } .rs-card { flex-basis: clamp(260px, 82vw, 340px); min-height: 420px; } }
@media (prefers-reduced-motion: reduce) { .rs-card, .rs-card img, .rs-go, .rs-btn { transition: none; } .rs-card { transform: none; } .rs-card img { transform: none !important; } .js .rs-wait .rs-card { opacity: 1; } }
/* Research cards: lean, turn and layered travel while the strip moves */
.rs-card { transform: perspective(1100px) translateY(var(--rs-y, 0)) scale(var(--rs-s, 1)) rotateY(var(--rs-ry, 0deg)) skewX(var(--rs-sk, 0deg)); transform-origin: 50% 60%; }
.rs-foot, .rs-ico { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .rs-card { transform: none; } .rs-foot, .rs-ico { transform: none !important; } }
/* room for the cards' vertical parallax so the scroller never clips them */
.rs-track { padding-block: 72px; margin-block: -64px; }
.rs-progress { margin-top: calc(var(--space-6) - 24px); position: relative; z-index: 1; }
/* Browse by subject: the strip runs edge to edge, past the page container on both sides */
.band[aria-labelledby="streams-title"] { overflow-x: clip; }
#streams .strip-viewport { width: 100vw; margin-inline: calc(50% - 50vw); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%); }
@media (prefers-reduced-motion: reduce) { #streams .strip-viewport { padding-inline: max(var(--space-4), calc(50vw - 50%)); } }
/* Browse by subject: heading and strip start on the same left edge as "Explore our faculties" */
.band[aria-labelledby="streams-title"] > .container { width: calc(100% - 2 * clamp(16px, 2.5vw, 48px)); max-width: none; }
.band[aria-labelledby="streams-title"] .section-head { text-align: left; }
/* Research cards: gentle automatic drift to the right, with a pause button */
/* Research cards: calm. Identical cards that only lift a few pixels on hover; no tilt, scale or skew while moving. */
.rs-card { transform: translateY(var(--rs-y, 0)); transform-origin: 50% 50%; }
.rs-foot, .rs-ico { will-change: auto; transform: none !important; }
.rs-track { padding-block: 24px; margin-block: -16px; }
.rs-progress { margin-top: var(--space-4); }

/* ===== Mobile pass: tap targets, news card, quick-action bar, banner clearance ===== */
.cu-d__tag { font-size: .75rem; }
.preview-banner p { min-width: 0; }
.preview-banner button { flex: none; white-space: nowrap; }
.exp-link { display: inline-flex; align-items: center; min-height: 44px; }
.pf-stepbtn { min-height: 44px; }
.mobile-bar a { padding-inline: 4px; white-space: nowrap; }
@media (max-width: 767px) {
  .mobile-bar { grid-template-columns: 1.25fr 1fr 1fr 1.2fr; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { font-size: .8125rem; }
  .site-header + main > .banner-slider { margin-top: var(--space-2); }
}
@media (pointer: coarse), (max-width: 1023px) {
  .cu-chip, .pfr-chip { min-height: 44px; }
  .mobile-theme .theme-switch button { width: 44px; height: 44px; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 899px) {
  .stories-grid .story-card > a, .story-card > a { display: flex; flex-direction: column; height: auto; }
  .story-card { min-height: 0; }
  .story-card img { position: static; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .story-card__copy { position: static; height: auto; min-height: 0; grid-template-columns: 1fr; justify-items: start; padding: var(--space-4) var(--space-5) var(--space-6); }
  .story-card h3 { grid-column: 1; grid-row: 2; }
  .story-more { grid-column: 1; grid-row: 3; }
  .story-pill { border-radius: var(--radius-md); line-height: 1.35; }
}
.mobile-menu-panel { max-height: calc(100dvh - 190px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mobile-menu-panel ul a { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) {
  /* filter chips: one swipeable row instead of a tall wrapped block */
  .pfr-filters, .cu-filters { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--space-5) * -1); padding-inline: var(--space-5); padding-bottom: var(--space-1); -webkit-overflow-scrolling: touch; }
  .pfr-filters::-webkit-scrollbar, .cu-filters::-webkit-scrollbar { display: none; }
  .pfr-chip, .cu-chip { flex: none; scroll-snap-align: start; }
  .pfr-grid a { min-height: 104px; }
}
.cu-panel > *, .cu-panels, .cu-stage, .pfr-inner, .pfr-head { min-width: 0; }
.cu-panel { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cu-panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
@media (max-width: 767px) {
  .cu-degrees a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
  .cu-d__title { display: block; -webkit-line-clamp: unset; overflow: visible; }
  .cu-degrees a::after { display: none; }
}
@media (hover: none) { .cu-degrees a:hover, .pfr-grid a:hover { transform: none; } }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
/* Think beyond borders: a compact dark panel with an illustrative map */
.glb-band { padding-block: clamp(20px, 2.6vw, 36px); }
.glb { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: clamp(22px, 3vw, 40px); border-radius: var(--radius-2xl); background: var(--grad-ink); color: #fff; box-shadow: var(--shadow-lg); }
.glb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 82% 40%, rgb(26 111 209 / .32), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgb(31 164 99 / .2), transparent 70%); }
@media (min-width: 900px) { .glb { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: var(--space-8); } }
.glb-kicker { margin: 0 0 var(--space-1); font-size: var(--fs-overline); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-300); }
.glb h2 { margin: 0 0 var(--space-2); font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.015em; color: #fff; }
.glb-lead { margin: 0 0 var(--space-4); color: rgb(255 255 255 / .82); }
.glb-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
@media (max-width: 575px) { .glb-list { grid-template-columns: 1fr; } }
.glb-list li { display: flex; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); border: var(--border-w) solid rgb(255 255 255 / .14); background: rgb(255 255 255 / .05); }
.glb-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgb(112 216 160 / .14); color: var(--green-300); }
.glb-ico svg { width: var(--icon-md); height: var(--icon-md); }
.glb-list strong { display: block; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.glb-list li div > span { display: block; margin-top: 2px; font-size: var(--fs-body-sm); line-height: 1.4; color: rgb(255 255 255 / .74); }
.glb .status--tbd { background: var(--warning-50); color: var(--warning-700); }
.glb-btn { background: #fff; border-color: #fff; color: var(--blue-950); }
.glb-btn:hover { background: var(--blue-100); border-color: var(--blue-100); color: var(--blue-950); }
.glb-map { min-width: 0; }
.glb .world { display: block; width: 100%; max-height: 300px; height: auto; overflow: visible; }
.glb .world .land { fill: url(#glbDots); }
.glb .world .arc-base { fill: none; stroke: rgb(127 181 247 / .2); stroke-width: 1; }
.glb .world .arc { fill: none; stroke: url(#glbArc); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 6 8; animation: glbDash 3.5s linear infinite; }
.glb .world .node { fill: var(--blue-300); }
.glb .world .node-pulse { fill: none; stroke: var(--blue-300); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: glbPulse 2.6s var(--ease-out) infinite; }
.glb .world .home { fill: var(--green-400); }
.glb .world .home-pulse { fill: none; stroke: var(--green-400); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: glbPulse 2s var(--ease-out) infinite; }
.glb .world text { fill: rgb(255 255 255 / .85); font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.glb .world .home-label { fill: #fff; font-weight: 700; }
.glb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; font-size: var(--fs-caption); color: rgb(255 255 255 / .75); }
.glb-legend em { font-style: normal; margin-left: auto; opacity: .8; }
.glb-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--blue-300); }
.glb-dot--home { background: var(--green-400); }
@keyframes glbDash { to { stroke-dashoffset: -28; } }
@keyframes glbPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .glb .world .arc, .glb .world .node-pulse, .glb .world .home-pulse { animation: none; } .glb .world .node-pulse, .glb .world .home-pulse { opacity: .4; } }
.glb-band + .band[aria-labelledby="avs-title"] { padding-top: clamp(24px, 3vw, 40px); }
.band[aria-labelledby="partners-title"] + .glb-band { padding-top: 0; }
/* Ported from the testing branch: partner universities (map beside the degree lists, no photo, lists and filters) */
.glance-section + .band[aria-labelledby="partners-title"] { padding-top: clamp(20px, 2.4vw, 32px); }
.glance-section + .band[aria-labelledby="partners-title"] { padding-top: var(--space-3); }
.cu-stage { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .cu-stage { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.cu-panels { min-width: 0; }
@media (min-width: 900px) { .cu-panel { grid-template-columns: minmax(0, 1fr); } }
.cu-panel .cu-degrees { max-height: none; }
@media (min-width: 1280px) { .cu-degrees { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pmap { min-width: 0; align-self: center; margin: clamp(12px, 2vw, 28px); margin-left: 0; padding: var(--space-4); border-radius: var(--radius-xl); background: var(--grad-ink); color: #fff; box-shadow: var(--shadow-lg); }
@media (max-width: 999px) { .pmap { margin: 0 clamp(12px, 3vw, 24px) clamp(12px, 3vw, 24px); } }
.pmap .world { display: block; width: 100%; max-height: 300px; height: auto; overflow: visible; }
.pmap .world .land { fill: url(#glbDots); }
.pmap .world .arc-base { fill: none; stroke: rgb(127 181 247 / .2); stroke-width: 1; }
.pmap .world .arc { fill: none; stroke: url(#glbArc); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 6 8; animation: glbDash 3.5s linear infinite; }
.pmap .world .node { fill: var(--blue-300); }
.pmap .world .node-pulse { fill: none; stroke: var(--blue-300); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: glbPulse 2.6s var(--ease-out) infinite; }
.pmap .world .home { fill: var(--green-400); }
.pmap .world .home-pulse { fill: none; stroke: var(--green-400); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: glbPulse 2s var(--ease-out) infinite; }
.pmap .world text { fill: rgb(255 255 255 / .85); font-family: var(--font-sans); font-size: 14px; font-weight: 500; }
.pmap .world .home-label { fill: #fff; font-weight: 700; }
.pmap .world [data-c] { transition: opacity var(--dur-slow) var(--ease-out), stroke-width var(--dur-slow) var(--ease-out); }
.pmap[data-active] .world [data-c] { opacity: .22; }
.pmap[data-active="uk"] .world [data-c="uk"], .pmap[data-active="usa"] .world [data-c="usa"], .pmap[data-active="au"] .world [data-c="au"] { opacity: 1; }
.pmap[data-active="uk"] .world .arc[data-c="uk"], .pmap[data-active="usa"] .world .arc[data-c="usa"], .pmap[data-active="au"] .world .arc[data-c="au"] { stroke-width: 3.5; }
.pmap[data-active="uk"] .world text[data-c="uk"], .pmap[data-active="usa"] .world text[data-c="usa"], .pmap[data-active="au"] .world text[data-c="au"] { font-weight: 800; fill: #fff; }
.pmap .glb-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); margin: var(--space-2) 0 0; font-size: var(--fs-caption); color: rgb(255 255 255 / .75); }
.pmap .glb-legend em { font-style: normal; margin-left: auto; opacity: .8; }
.glb-active { margin: var(--space-2) 0 0; font-size: var(--fs-body-sm); font-weight: 700; color: var(--green-300); min-height: 1.4em; }
@media (prefers-reduced-motion: reduce) { .pmap .world .arc, .pmap .world .node-pulse, .pmap .world .home-pulse { animation: none; } .pmap .world [data-c] { transition: none; } }
.pmap .world text { font-size: 22px; }
.pmap .world .home-label { font-size: 24px; }
/* Partner tabs: small cards with the university logo */
.js .cu-tabs { gap: var(--space-3); margin-bottom: var(--space-4); }
.cu-tab { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: var(--space-3); row-gap: 2px; min-height: 76px; padding: 10px 14px 10px 10px; border-radius: var(--radius-lg); }
.cu-tab .cu-tab__logo { grid-row: 1 / span 2; width: 56px; height: 56px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: var(--shadow-sm); }
.cu-tab__name { align-self: end; padding: 0; font-size: .9375rem; line-height: 1.2; }
.cu-tab__meta { align-self: start; padding: 0; }
@media (max-width: 480px) { .cu-tab { grid-template-columns: 44px minmax(0, 1fr); min-height: 64px; padding: 8px 10px 8px 8px; } .cu-tab .cu-tab__logo { width: 44px; height: 44px; } .cu-tab__name { font-size: .8125rem; } }
@media (max-width: 480px) { .js .cu-tabs { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } .cu-tab { min-height: 60px; } }
/* Partner tabs: bigger logos */
.cu-tab { grid-template-columns: 84px minmax(0, 1fr); min-height: 104px; column-gap: var(--space-4); padding: 10px 16px 10px 10px; }
.cu-tab .cu-tab__logo { width: 84px; height: 84px; }
@media (max-width: 480px) { .cu-tab { grid-template-columns: 64px minmax(0, 1fr); min-height: 80px; } .cu-tab .cu-tab__logo { width: 64px; height: 64px; } }
/* Partner tabs: the full partner image (campus photo, logo and flag), small, beside the name */
.cu-tab { grid-template-columns: 160px minmax(0, 1fr); min-height: 0; padding: 10px 16px 10px 10px; }
.cu-tab .cu-tab__logo--full { width: 160px; height: auto; aspect-ratio: 430 / 224; border-radius: 10px; object-fit: cover; background: #fff; box-shadow: none; }
@media (max-width: 1279px) and (min-width: 481px) { .cu-tab { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; } .cu-tab .cu-tab__logo--full { grid-row: auto; width: 100%; } }
@media (max-width: 480px) { .cu-tab { grid-template-columns: 132px minmax(0, 1fr); } .cu-tab .cu-tab__logo--full { width: 132px; height: auto; } }

/* Glass footer (liquid-glass skill): four glass cards over the campus aerial photo. Glass only over imagery, per the design spec. */
.site-footer--glass { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 6vw, 88px) var(--space-8); border-top: 0; background: var(--blue-950); color: #fff; }
.site-footer--glass::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/campus-aerial-wide.webp") center 40% / cover no-repeat; }
.site-footer--glass::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 30 58 / .55) 0%, rgb(7 30 58 / .35) 45%, rgb(7 30 58 / .8) 100%); }
.site-footer--glass .footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 640px) { .site-footer--glass .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .site-footer--glass .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-5); } }
.foot-glass { position: relative; padding: var(--space-6); border-radius: var(--radius-xl); color: #fff;
  background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .04)), linear-gradient(180deg, rgb(7 30 58 / .16), rgb(7 30 58 / .34));
  box-shadow: 0 24px 60px rgb(0 0 0 / .35), inset 0 1px 1px rgb(255 255 255 / .55), inset 0 -8px 20px rgb(255 255 255 / .06), inset 0 0 0 1px rgb(255 255 255 / .16); }
.site-footer--glass h2 { margin: 0 0 var(--space-3); font-family: var(--font-sans); font-size: var(--fs-overline); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-footer--glass ul { list-style: none; margin: 0; padding: 0; }
.site-footer--glass li a, .site-footer--glass address a { display: inline-flex; align-items: center; min-height: 44px; color: rgb(255 255 255 / .86); text-decoration: none; }
.site-footer--glass li a:hover, .site-footer--glass address a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer--glass a:focus-visible { outline: var(--focus-w) solid var(--green-400); outline-offset: 2px; border-radius: 4px; }
.site-footer--glass address { display: block; font-style: normal; line-height: 1.6; color: rgb(255 255 255 / .82); }
.site-footer--glass address a { min-height: 40px; line-height: 1.3; }
.site-footer--glass .brand { display: inline-flex; margin-bottom: var(--space-4); padding: 8px 16px; border-radius: var(--radius-pill); background: rgb(255 255 255 / .94); box-shadow: inset 0 1px 1px rgb(255 255 255 / .9); }
.site-footer--glass .brand img { height: clamp(52px, 4.6vw, 68px); width: auto; }
.foot-credit { margin: var(--space-6) 0 0; padding: var(--space-3) var(--space-4); max-width: none; border-radius: var(--radius-lg); font-size: var(--fs-caption); color: rgb(255 255 255 / .8); background: rgb(7 30 58 / .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.foot-credit a { color: #fff; }
@media (prefers-reduced-transparency: reduce) { .foot-glass, .foot-credit { background: rgb(7 30 58 / .88); -webkit-backdrop-filter: none; backdrop-filter: none; } }
/* Footer logo: no white pill, just the logo on the glass */
.site-footer--glass .brand { padding: 0; border-radius: 0; background: none; box-shadow: none; }
.site-footer--glass .brand img { filter: drop-shadow(0 1px 2px rgb(0 0 0 / .45)); }
/* the colour logo's dark-blue lettering disappears on the dark glass, so the footer shows it in white */
.site-footer--glass .brand img { height: clamp(60px, 5.4vw, 80px); filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
/* Footer logo in its own colours, no background: a thin white halo keeps the dark-blue lettering readable on the dark glass */
.site-footer--glass .brand img { height: 60px; filter: drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 6px rgb(255 255 255 / .55)); }
/* Footer: stronger glass. Less tint and frost so the photo shows through and bends at the rims; brighter edge highlights. */
.site-footer--glass::after { background: linear-gradient(180deg, rgb(7 30 58 / .35) 0%, rgb(7 30 58 / .15) 45%, rgb(7 30 58 / .65) 100%); }
.foot-glass { background: linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / .03)), linear-gradient(180deg, rgb(7 30 58 / .06), rgb(7 30 58 / .22));
  box-shadow: 0 28px 70px rgb(0 0 0 / .4), inset 0 1.5px 1px rgb(255 255 255 / .75), inset 0 -10px 24px rgb(255 255 255 / .08), inset 0 0 0 1px rgb(255 255 255 / .28), inset 0 0 24px rgb(255 255 255 / .06); }
.foot-glass h2, .foot-glass a, .foot-glass address { text-shadow: 0 1px 3px rgb(0 0 0 / .55); }
/* Footer: no underlines on links (hover brightens to white instead) */
.site-footer--glass a, .site-footer--glass a:hover, .site-footer--glass a:focus-visible, .foot-credit a { text-decoration: none; }
.site-footer--glass li a:hover, .site-footer--glass address a:hover, .foot-credit a:hover { color: #fff; }
.foot-credit a { font-weight: 600; }
/* Footer logo on a square white tile (logo keeps its own colours; no halo needed on white) */
.site-footer--glass .brand { display: inline-grid; place-items: center; width: 112px; height: 112px; padding: 12px; border-radius: var(--radius-md); background: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / .25), inset 0 0 0 1px rgb(255 255 255 / .6); }
.site-footer--glass .brand img { width: 100%; height: auto; max-height: 100%; object-fit: contain; filter: none; }
/* Footer logo tile: white rectangle that fits the wide logo */
.site-footer--glass .brand { width: auto; height: auto; padding: 12px 18px; border-radius: var(--radius-md); }
.site-footer--glass .brand img { width: auto; height: 64px; max-height: none; }
/* Footer: a little less glass, clearer text. More frost and a darker tint inside each card; the rim still bends the photo. */
.site-footer--glass::after { background: linear-gradient(180deg, rgb(7 30 58 / .45) 0%, rgb(7 30 58 / .3) 45%, rgb(7 30 58 / .72) 100%); }
.foot-glass { background: linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .02)), linear-gradient(180deg, rgb(7 30 58 / .38), rgb(7 30 58 / .55)); }
.foot-glass a, .foot-glass address, .foot-glass li a { color: #fff; }
.foot-glass h2 { color: var(--green-300); }
/* Footer logo: no white tile. Colour logo straight on the glass, with a thin white halo so the dark-blue lettering stays readable. */
.site-footer--glass .brand { width: auto; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.site-footer--glass .brand img { height: 60px; width: auto; filter: drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 0.6px #fff) drop-shadow(0 0 6px rgb(255 255 255 / .55)); }
/* Footer logo on a white rectangle (no halo needed on white) */
.site-footer--glass .brand { display: inline-grid; place-items: center; width: auto; height: auto; padding: 12px 18px; border-radius: var(--radius-md); background: #fff; box-shadow: 0 8px 20px rgb(0 0 0 / .25), inset 0 0 0 1px rgb(255 255 255 / .6); }
.site-footer--glass .brand img { height: 64px; width: auto; filter: none; }

/* Path finder stage: one photograph per step of the journey, the same two NSBM students (a young woman and a young man)
   as school leavers -> undergraduates / postgraduates / doctoral researchers -> interns or graduates -> professionals in the chosen area.
   Outfit and setting change together; scenes cross-fade with a slow settle. Images: assets/pathway/pair/ (AI-created, see assets/New Images/generated images/QA.md). */
.pf-stage { position: relative; aspect-ratio: auto; height: clamp(380px, 32vw, 480px); overflow: hidden; background: var(--sc, #e3f4ea); transition: background-color .7s var(--ease-out); }
.pf-scenes { position: absolute; inset: 0; z-index: 0; }
.pf-scenes::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(7 30 58 / .28) 0%, rgb(7 30 58 / 0) 26%, rgb(7 30 58 / 0) 82%, rgb(7 30 58 / .14) 100%); }
.pf-stage .pf-scene { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 22%; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease-out), transform 1.4s var(--ease-out); }
.pf-stage .pf-scene.on { opacity: 1; transform: scale(1); }
.pf-snum { position: absolute; right: 22px; top: 10px; z-index: 1; font-family: var(--font-display); font-size: clamp(64px, 6vw, 104px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: rgb(255 255 255 / .9); text-shadow: 0 2px 14px rgb(7 30 58 / .45); }
.pf-snum span { display: inline-block; transition: transform .6s var(--ease-out), opacity .4s; }
.pf-snum.swap span { transform: translateY(-24px); opacity: 0; }
.pf-who { position: absolute; left: 16px; bottom: 14px; z-index: 3; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--blue-950); font-weight: 700; font-size: .875rem; box-shadow: var(--shadow-sm); }
@media (min-width: 641px) and (max-width: 1099px) { .pf-stage { height: auto; aspect-ratio: 3 / 2; } }
@media (max-width: 640px) { .pf-stage { height: clamp(260px, 74vw, 340px); } }
@media (prefers-reduced-motion: reduce) { .pf-stage, .pf-stage .pf-scene, .pf-snum span { transition: none; } .pf-stage .pf-scene { transform: none; } }
/* the old card photo element stays in the markup for the script, but never shows on the stage (the global img{display:block} was overriding [hidden]) */
.pf-stage #pf-img, .pf-stage .pf-badge { display: none !important; }
/* Path finder card: empty labels take no space until the visitor chooses something */
.pf-card__kicker:empty, .pf-card h3:empty, .pf-card__desc:empty, .pf-route:empty { display: none; }
/* Path finder card: only the essentials under the figure (title, then the degree count and its button). No label, sentence, chips or entry-route line. */
.pf-card__kicker, .pf-card__desc, .pf-chips, .pf-route { display: none !important; }
.pf-card h3:empty + .pf-degrees[hidden] { display: none; }
/* nothing chosen yet: no empty strip under the figure */
.pf-card__body:has(> h3:empty):has(> .pf-degrees[hidden]) { display: none; }
.pf-degrees { border-top: 0; padding-top: 0; }

/* Faculties: no overlay on the photos. Only the text block keeps a soft shade, so the white names stay readable on bright photos. */
.fx-panel::after, .fx-panel:not(.is-active)::after { background: none; }
@media (max-width: 991px) { .fx-panel::after, .fx-panel:not(.is-active)::after { background: none; } }
.fx-inner { padding-top: var(--space-12); background: linear-gradient(0deg, rgb(7 30 58 / .72) 0%, rgb(7 30 58 / .4) 55%, transparent 100%); }
.fx-name, .fx-detail p, .fx-num { text-shadow: 0 1px 6px rgb(0 0 0 / .55); }
/* Faculties, closed panels: bigger vertical names. The long postgraduate name wraps onto a second line instead of running off the panel. */
/* Closed faculty panels show their names horizontally; while one panel is open the narrow closed ones use a smaller size so long names wrap neatly. */
@media (min-width: 992px) { .fx-panel:not(.is-active) .fx-name { font-size: clamp(1.1rem, .85rem + .5vw, 1.45rem); line-height: 1.15; white-space: normal; overflow-wrap: break-word; hyphens: manual; } .fx-wrap:has(.fx-panel.is-active) .fx-panel:not(.is-active) .fx-name { font-size: 1rem; } }

/* =====================================================================================================================
   Mobile optimisation (phones, max-width 767px). Desktop and tablet are untouched: every rule below sits in this query.
   Guided by Figma's UI design principles (hierarchy, progressive disclosure, consistency, contrast, accessibility, proximity,
   alignment) and platform touch guidance: 44px touch targets about 8px apart, body text 16px or more, 20px side margins,
   primary actions within thumb reach, and swipe instead of hover.
   ===================================================================================================================== */
@media (max-width: 767px) {
  /* Top utility row: one tidy line. The phone number leaves (Call sits in the bottom bar, in thumb reach). */
  .utility .container { flex-wrap: nowrap; gap: 0 var(--s2); }
  .utility ul.quick li:first-child { display: none; }
  .utility ul.quick, .utility ul.social { flex-wrap: nowrap; }
  .utility .social { gap: 0; }
  .utility .quick a { font-size: .875rem; padding-inline: 8px; }
  .utility .container { gap: 0 4px; }
  /* One primary action: Apply lives in the bottom bar, so the header keeps logo, search and menu with room to breathe. */
  .header-actions > .btn--small { display: none; }

  /* Path finder: shorter instructions (progressive disclosure) and readable step labels. */
  .pf-step legend em { display: none; }
  .pf-stepbtn, .pf-step__no { font-size: .875rem; }

  /* Faculties: a swipeable row of cards instead of five tall stacked cards (about 1,600px shorter), next card peeking. */
  .fx-wrap { flex-direction: row; gap: 12px; height: auto; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin-inline: -20px; padding: 4px 20px 16px; scrollbar-width: none; }
  .fx-wrap::-webkit-scrollbar { display: none; }
  .fx-panel, .fx-panel.is-active { flex: 0 0 84%; height: clamp(400px, 112vw, 460px); scroll-snap-align: start; }
  .fx-panel .fx-bg, .fx-panel.is-active .fx-bg { transform: none; }
  .fx-num { top: 16px; left: 18px; }
  .fx-inner { padding: var(--s5); }

  /* Research and every other small control: full 44px touch targets on phones. */
  .rs-btn, .ctrl-btn { width: 44px; height: 44px; }
  .rs-btn svg, .ctrl-btn svg { width: 18px; height: 18px; }
  .rs-ctrl { gap: 10px; }

  /* Partners: the filter chips scroll sideways; a soft fade at the edge shows there is more. */
  .cu-filters { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .cu-tab__meta, .cu-d__tag, .pmap .glb-legend { font-size: .8125rem; }
  .date-chip span, .pf-steps li span { font-size: .8125rem; }

  /* Inline text links get a taller tap area without changing the text layout. */
  .life-source a, .glance-note a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .status { font-size: .8125rem; }

  /* Footer: link groups in two columns, so the footer is about half as tall and still has 44px rows. */
  .site-footer--glass .footer-grid { gap: 12px; }
  .foot-glass { padding: var(--space-5); }
  .foot-glass ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .site-footer--glass address a { min-height: 44px; }

  /* Bottom action bar: 14px labels, thumb-reachable, clear of the iPhone home indicator. */
  .mobile-bar a { font-size: .875rem; }
}
