/* ==========================================================================
   MBMEFH — HKU School of Biomedical Engineering
   Master of Biomedical Engineering for Future Health
   Design system: teal-led, light & white, editorial grid
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand — navy-led, with cyan secondary and burnt-orange accent */
  --navy: #1a3a5c;
  --navy-soft: #254d75;
  --navy-deep: #102a45;

  --cyan: #3a8db3;
  --cyan-soft: #6db0d0;
  --cyan-deep: #2a6b8a;

  --orange: #c46a3a;
  --orange-soft: #d68a5e;
  --orange-deep: #a8562b;

  /* Cream backgrounds (page tint from the reference swatches) */
  --cream: #f3e9d6;
  --cream-soft: #faf2e2;
  --cream-light: #fbf3e2;

  /* Pastels from the swatch grid — retone to match the screenshot */
  --powder: #bfdde3;       /* soft teal-blue */
  --mint: #d6dec3;         /* warm sage */
  --blush: #e8c4b8;        /* soft pink */
  --peach: #f0d4b3;        /* warm peach */
  --coral: #d68a72;        /* muted terracotta */

  /* Neutrals — warmer to sit on cream */
  --white: #ffffff;
  --paper: #fbf6ec;
  --line: #e6dcc8;
  --line-strong: #d2c5aa;
  --ink: #1c2a3a;
  --ink-soft: #4a5768;
  --ink-mute: #7a8294;

  /* Type */
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Geometry */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --gutter: 32px;
  --shadow-sm: 0 1px 2px rgba(26, 58, 92, 0.05),
    0 4px 14px rgba(26, 58, 92, 0.05);
  --shadow-md: 0 2px 6px rgba(26, 58, 92, 0.06),
    0 18px 44px rgba(26, 58, 92, 0.09);
  --header-h: 74px;

  /* ---------- Gradient system ---------- */
  /* Brand duotones */
  --grad-brand: linear-gradient(135deg, #1a3a5c 0%, #2a6b8a 55%, #3a8db3 100%);
  --grad-action: linear-gradient(135deg, #a8562b 0%, #c46a3a 45%, #d68a5e 100%);
  --grad-navy-cyan: linear-gradient(120deg, #102a45 0%, #1a3a5c 40%, #3a8db3 100%);
  --grad-orange-coral: linear-gradient(120deg, #c46a3a 0%, #d68a72 100%);
  --grad-cyan-powder: linear-gradient(120deg, #3a8db3 0%, #6db0d0 60%, #bfdde3 100%);

  /* Warm cream mesh backgrounds */
  --grad-cream-mesh: linear-gradient(
    135deg,
    #faf2e2 0%,
    #f7ece0 22%,
    #f3e9d6 45%,
    #f6e6d4 68%,
    #fbf3e2 100%
  );
  --grad-page-head: linear-gradient(
    170deg,
    #fbf3e2 0%,
    #f6e9d8 30%,
    #f2e6d6 58%,
    #ffffff 100%
  );
  --grad-hero: linear-gradient(
    160deg,
    #fbf3e2 0%,
    #f7ecdd 20%,
    #f3e9d6 42%,
    #f2e3d2 62%,
    #fbf6ec 82%,
    #ffffff 100%
  );

  /* Card / surface gradients (very subtle) */
  --grad-card: linear-gradient(168deg, #ffffff 0%, #fdf9f2 55%, #faf4e9 100%);
  --grad-card-peach: linear-gradient(
    165deg,
    #ffffff 0%,
    #fdf5ea 40%,
    #f9ead8 100%
  );
  --grad-card-powder: linear-gradient(
    165deg,
    #ffffff 0%,
    #f3f8fa 40%,
    #e6f0f3 100%
  );
  --grad-card-blush: linear-gradient(
    165deg,
    #ffffff 0%,
    #fdf4f1 40%,
    #f8e8e2 100%
  );
  --grad-card-sage: linear-gradient(
    165deg,
    #ffffff 0%,
    #f8faf5 40%,
    #eef2e7 100%
  );
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: var(--cyan-deep);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 3.9rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  letter-spacing: -0.024em;
}
h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}
h4 {
  font-size: 1.03rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0 0 1.3em;
}
p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1.1em;
  padding-left: 1.15em;
}
li {
  margin-bottom: 0.55em;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--cream);
  color: var(--cyan-deep);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding: clamp(56px, 7vw, 96px) 0;
}
.section--tight {
  padding: clamp(40px, 5vw, 64px) 0;
}
.section--paper {
  background: linear-gradient(180deg, #fbf6ec 0%, #f8f2e6 45%, #fbf8f2 100%);
}
.section--cream {
  background: var(--cream-soft);
}
.section--cream {
  background: var(--grad-cream-mesh);
}
/* full-width warm mesh band, for breaking up long pages */
.section--mesh {
  background: var(--grad-cream-mesh);
  position: relative;
}
.section--mesh::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  width: 620px;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(214, 138, 114, 0.16) 0%,
    transparent 68%
  );
  pointer-events: none;
}
/* color plate background (subtle pastel swatches) — for the section immediately below the hero slider */
.section--plate {
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.section--plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/color-plate-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.section--plate > .container {
  position: relative;
  z-index: 1;
}
/* on top of color plate, give cards a softer cream surface so they read clearly */
.section--plate .card,
.section--plate .value-item,
.section--plate .callout {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
/* gradient section titles — navy → cyan duotone */
.section-head h2,
.section-head--center h2 {
  background-image: var(--grad-navy-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--navy);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
.eyebrow--orange {
  color: var(--orange);
}
.eyebrow--navy {
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--grad-navy-cyan);
  border-radius: 3px;
}
.eyebrow--orange::before {
  background: var(--grad-action);
}
.eyebrow--upper {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--navy);
  font-weight: 800;
}
.eyebrow--upper::before {
  display: none;
}
.section-head--center .eyebrow::before {
  display: none;
}

/* Split-color headline utility (TURN AMBITION / INTO / ACTION look) */
.text-cyan {
  color: var(--cyan);
}
.text-orange {
  color: var(--orange);
}
.text-navy {
  color: var(--navy);
}

/* Descender fix: with background-clip:text the gradient box ends at the line box,
   clipping g/j/y tails at small line-heights. Extra bottom padding extends the
   background box below the descenders. */
.section-head h2,
.section-head--center h2,
.grad-text,
.fact .num,
.chip .chip-credit,
.hero-slider .slide h2 em {
  padding-bottom: 0.14em;
}

/* Gradient text — brand duotone, degrades gracefully to solid colour */
.grad-text {
  background-image: var(--grad-navy-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--navy); /* fallback if background-clip is unsupported */
}
.grad-text--action {
  background-image: var(--grad-action);
}
.grad-text--cyan {
  background-image: var(--grad-cyan-powder);
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text,
  .grad-text--action,
  .grad-text--cyan {
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: var(--navy);
  }
  .grad-text--action {
    color: var(--orange);
  }
  .grad-text--cyan {
    color: var(--cyan);
  }
}

.lead {
  font-size: clamp(1.03rem, 1.5vw, 1.16rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section-head--center .lead {
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 28px;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  :root {
    --gutter: 20px;
  }
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(251, 243, 226, 0.9) 100%
  );
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(26, 58, 92, 0.04), 0 4px 18px rgba(26, 58, 92, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  height: 68px;
  width: auto;
  flex: 0 0 auto;
  display: block;
}
/* Official HKU SBME lockup — full-width image, hide the old text columns */
.brand--official {
  gap: 0;
}
.brand--official .brand-text {
  display: none;
}
/* Hide legacy text columns if any page still has them */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
@media (max-width: 720px) {
  .brand--official .brand-mark {
    height: 52px;
  }
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a.nav-link,
.nav button.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 0;
  background: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a.nav-link:hover,
.nav button.nav-link:hover {
  color: var(--cyan);
  background: var(--cream-soft);
}
.nav a.nav-link[aria-current="page"],
.nav button.nav-link[aria-current="page"] {
  color: var(--cyan);
}
.nav a.nav-link[aria-current="page"]::after,
.nav button.nav-link[aria-expanded="true"]::after {
  content: "";
  position: absolute;
}
.nav-item {
  position: relative;
}
.nav a.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--navy);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav .chev {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 268px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}
.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown,
.nav-item.is-open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.925rem;
  line-height: 1.4;
}
.dropdown a:hover,
.dropdown a:focus-visible {
  background: var(--cream-soft);
  color: var(--cyan-deep);
}
.dropdown a .dd-title {
  font-weight: 600;
}
.dropdown a .dd-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-weight: 400;
}
.dropdown .ext {
  align-self: center;
  color: var(--ink-mute);
}

.header-cta {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 16px var(--gutter) 28px;
    display: none;
  }
  .nav.is-open {
    display: block;
  }
  .nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav a.nav-link,
  .nav button.nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav a.nav-link[aria-current="page"] {
    box-shadow: none;
    color: var(--cyan);
  }
  .nav-toggle {
    display: flex;
  }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 10px 10px;
    min-width: 0;
    display: none;
  }
  .nav-item.is-open > .dropdown {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .nav .mobile-apply {
    display: block;
    margin-top: 20px;
  }
}

.nav .mobile-apply {
  display: none;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
  text-align: center;
  line-height: 1.2;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--grad-action);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 1px 2px rgba(168, 86, 43, 0.24),
    0 10px 24px rgba(168, 86, 43, 0.22);
}
.btn-primary:hover {
  background-position: 100% 50%;
  color: #fff;
  box-shadow: 0 2px 4px rgba(168, 86, 43, 0.28),
    0 14px 30px rgba(168, 86, 43, 0.26);
}
.btn-secondary {
  background: var(--grad-brand);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 58, 92, 0.2),
    0 10px 24px rgba(26, 58, 92, 0.18);
}
.btn-secondary:hover {
  background-position: 100% 50%;
  color: #fff;
  box-shadow: 0 2px 4px rgba(26, 58, 92, 0.24),
    0 14px 30px rgba(26, 58, 92, 0.22);
}
.btn-ghost {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--navy);
  background: linear-gradient(120deg, #ffffff 0%, var(--cream-soft) 100%);
}
.btn-onDark {
  background: var(--white);
  color: var(--navy);
}
.btn-onDark:hover {
  background: linear-gradient(120deg, #ffffff 0%, var(--cream-soft) 100%);
  color: var(--navy-deep);
}
.btn-outlineLight {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outlineLight:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #fff;
}
.btn-sm {
  padding: 10px 17px;
  font-size: 0.875rem;
}
.btn .arrow {
  transition: transform 0.16s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.textlink {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.textlink .arrow {
  transition: transform 0.16s ease;
}
.textlink:hover .arrow {
  transform: translateX(4px);
}

/* ---------- 6. Hero slider ---------- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #fff;
  isolation: isolate;
}
.hero-slider .slider-track {
  position: relative;
  width: 100%;
  /* 3:2 frame. The tallest asset in the set is 3:2 (1920x1280), so at this
     ratio EVERY slide fills the frame edge-to-edge with its full height and
     any surplus spills out sideways (clipped) — no empty space left/right,
     nothing cut off top/bottom. */
  aspect-ratio: 3 / 2;
  min-height: 660px;
  max-height: 1240px;
}
.hero-slider {
  /* how far the copy + controls have to move up so they stay inside the first
     screen when the frame is taller than the viewport (set by main.js) */
  --fold-lift: 0px;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  pointer-events: none;
}
.hero-slider .slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.hero-slider .slide-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider .slide-media video,
.hero-slider .slide-media img {
  width: 100%;
  height: 100%;
  display: block;
}
/* The frame is 3:2 and every asset is 3:2 or wider, so `cover` always has
   enough HEIGHT to fill — the surplus is pushed out horizontally and clipped.
   Result: full height visible, no letterbox on any side. */
.hero-slider .slide-media .slide-main,
.hero-slider .slide-media video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-slider .slide-media video {
  background: transparent;
}
/* static fallback frame sits behind the video; if the video can't play,
   the webp still shows (poster also covers the pre-load moment) */
.hero-slider .slide-media .slide-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slider .slide-media video {
  position: relative;
  z-index: 1;
  background: transparent;
}
/* animated-webp slide (slide 1)
   - the still frame is the base layer and paints instantly
   - the animated webp sits on top and fades in once it has decoded
   - "pause" = hide the animation, revealing the still frame underneath
     (an animated webp exposes no JS playback API, so this is the swap trick) */
.hero-slider .slide-media .slide-anim,
.hero-slider .slide-media .slide-anim-static {
  position: absolute;
  inset: 0;
}
.hero-slider .slide-media .slide-anim-static {
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}
.hero-slider .slide-media .slide-anim {
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.hero-slider .slide.is-anim-ready .slide-media .slide-anim {
  opacity: 1;
}
.hero-slider .slide.is-anim-paused .slide-media .slide-anim {
  opacity: 0;
}
.hero-slider .slide-media::after {
  /* readability scrim — sits ABOVE the media (z-index) so it always dims it */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
      100deg,
      rgba(16, 26, 45, 0.78) 0%,
      rgba(16, 26, 45, 0.58) 38%,
      rgba(16, 26, 45, 0.32) 64%,
      rgba(16, 26, 45, 0.5) 100%
    );
  pointer-events: none;
}
.hero-slider .slide--video .slide-media::after {
  background: linear-gradient(
    180deg,
    rgba(16, 26, 45, 0.65) 0%,
    rgba(16, 26, 45, 0.45) 40%,
    rgba(16, 26, 45, 0.55) 100%
  );
}
/* the clinical still is bright, so slide 1 gets the heavier scrim back */
.hero-slider .slide--anim .slide-media::after {
  background:
    linear-gradient(
      180deg,
      rgba(12, 22, 40, 0.55) 0%,
      rgba(12, 22, 40, 0.28) 34%,
      rgba(12, 22, 40, 0.30) 58%,
      rgba(12, 22, 40, 0.72) 100%
    ),
    linear-gradient(
      100deg,
      rgba(12, 22, 40, 0.66) 0%,
      rgba(12, 22, 40, 0.44) 42%,
      rgba(12, 22, 40, 0.18) 66%,
      rgba(12, 22, 40, 0.42) 100%
    );
}
.hero-slider .slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  align-items: end;
  padding: clamp(56px, 7vw, 92px) 0
    calc(clamp(110px, 12vw, 130px) + var(--fold-lift, 0px));
}
.hero-slider .slide-content-inner {
  max-width: 720px;
}
.hero-slider .slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 16px;
}
.hero-slider .slide-eyebrow .step {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0;
  font-weight: 800;
}
.hero-slider .slide-eyebrow .bar {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--coral));
  border-radius: 2px;
}
.hero-slider .slide h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(16, 26, 45, 0.35);
}
.hero-slider .slide h2 em {
  font-style: normal;
  background: var(--grad-action);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-slider .slide p.lede {
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 56ch;
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(16, 26, 45, 0.5);
}
.hero-slider .slide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
}
.hero-slider .slide-meta strong {
  color: #fff;
  font-weight: 700;
}
.hero-slider .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-on-overlay {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}
.btn-on-overlay:hover {
  transform: translateY(-2px);
  background: var(--cream);
}
.btn-on-overlay--action {
  background: var(--grad-action);
  color: #fff;
}
.btn-on-overlay--action:hover {
  background: var(--grad-action);
  filter: brightness(1.05);
}

/* video play/pause control */
.video-toggle {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 56px);
  bottom: clamp(120px, 14vw, 160px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}
.video-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}
.video-toggle svg {
  width: 18px;
  height: 18px;
}
.video-toggle .icon-pause {
  display: none;
}
.video-toggle.is-playing .icon-play {
  display: none;
}
.video-toggle.is-playing .icon-pause {
  display: block;
}

/* Slider nav (prev / dots / next + counter) */
.hero-slider .slider-nav {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(clamp(28px, 4vw, 44px) + var(--fold-lift, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: rgba(16, 26, 45, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}
.slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}
.slider-arrow svg {
  width: 14px;
  height: 14px;
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, width 0.25s ease, border-radius 0.25s ease;
}
.slider-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}
.slider-dot.is-active {
  background: var(--orange);
  border-color: var(--orange);
  width: 30px;
  border-radius: 6px;
}
.slider-counter {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
}

/* slide-in animation for active slide */
.hero-slider .slide.is-active .slide-eyebrow,
.hero-slider .slide.is-active .slide h2,
.hero-slider .slide.is-active .slide p.lede,
.hero-slider .slide.is-active .slide-meta,
.hero-slider .slide.is-active .btn-row {
  animation: slideIn 0.6s 0.2s both ease;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}






/* Narrow screens: 3:2 of a 900px viewport would be too short to hold the copy,
   so the frame is held up by min-height instead and the (much wider) photo
   simply spills further out to the sides. */
@media (max-width: 940px) {
  .hero-slider .slider-track {
    min-height: 640px;
  }
  .hero-slider .slide-content {
    padding: 80px 0 calc(130px + var(--fold-lift, 0px));
  }
  .video-toggle {
    bottom: clamp(72px, 16vw, 100px);
    right: 20px;
    width: 48px;
    height: 48px;
  }

}
@media (max-width: 560px) {
  .hero-slider .slider-track {
    min-height: 620px;
  }
  .hero-slider .slide-content {
    padding: 60px 0 calc(110px + var(--fold-lift, 0px));
  }
  .hero-slider .slider-nav {
    bottom: calc(18px + var(--fold-lift, 0px));
    padding: 8px 12px;
    gap: 12px;
  }
  .slider-arrow {
    width: 30px;
    height: 30px;
  }
  .slider-dot {
    width: 9px;
    height: 9px;
  }
  .slider-dot.is-active {
    width: 22px;
  }
}

/* ---------- 7. Cards ---------- */
.card {
  background: var(--grad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* gradient top edge on every card */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-cyan-powder);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card:hover::before {
  opacity: 1;
}
.card--grad-peach {
  background: var(--grad-card-peach);
}
.card--grad-peach::before {
  background: var(--grad-action);
  opacity: 0.6;
}
.card--grad-powder {
  background: var(--grad-card-powder);
}
.card--grad-powder::before {
  background: var(--grad-navy-cyan);
  opacity: 0.5;
}
.card--grad-blush {
  background: var(--grad-card-blush);
}
.card--grad-blush::before {
  background: var(--grad-orange-coral);
  opacity: 0.6;
}
.card--grad-sage {
  background: var(--grad-card-sage);
}
.card--grad-sage::before {
  background: var(--grad-cyan-powder);
  opacity: 0.55;
}
.card--plain {
  box-shadow: none;
}
.card--plain:hover {
  transform: none;
  box-shadow: none;
}
.card h3 {
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.card-foot {
  margin-top: auto;
  padding-top: 18px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(140deg, #f3e9d6 0%, #e6dcc8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.card-icon svg {
  width: 26px;
  height: 26px;
}
.card-icon--powder {
  background: linear-gradient(140deg, #bfdde3 0%, #6db0d0 100%);
}
.card-icon--mint {
  background: linear-gradient(140deg, #d6dec3 0%, #b3c4a4 100%);
}
.card-icon--peach {
  background: linear-gradient(140deg, #f0d4b3 0%, #d68a5e 100%);
}
.card-icon--blush {
  background: linear-gradient(140deg, #e8c4b8 0%, #d68a72 100%);
}

.accent-rule {
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-navy-cyan);
  margin-bottom: 20px;
}
.accent-rule--powder {
  background: var(--grad-cyan-powder);
}
.accent-rule--mint {
  background: linear-gradient(120deg, #b3c4a4 0%, #d6dec3 100%);
}
.accent-rule--coral {
  background: var(--grad-action);
}

/* ---------- 8. Journey infographic ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 8px 0 36px;
  position: relative;
}
.journey-step {
  position: relative;
  padding: 0 26px 0 0;
}
.journey-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(100% - 22px);
  width: 34px;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--line-strong) 0 6px,
    transparent 6px 11px
  );
}
.journey-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad-navy-cyan);
  border: none;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(26, 58, 92, 0.18);
}
/* Step colours follow the curriculum swatch palette (navy → teal → sage → peach → coral) */
.journey-step:nth-child(1) .journey-num {
  background: linear-gradient(140deg, #1a3a5c 0%, #3a8db3 100%);
}
.journey-step:nth-child(2) .journey-num {
  background: linear-gradient(140deg, #2a6b8a 0%, #3a8db3 100%);
}
.journey-step:nth-child(3) .journey-num {
  background: linear-gradient(140deg, #5f7349 0%, #8a9f74 100%);
}
.journey-step:nth-child(4) .journey-num {
  background: linear-gradient(140deg, #d68a5e 0%, #b4602f 100%);
}
.journey-step:nth-child(5) .journey-num {
  background: linear-gradient(140deg, #c8674f 0%, #9c4530 100%);
}
.journey-step h4 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.journey-step p {
  font-size: 0.92rem;
  color: var(--ink-mute);
  margin: 0;
}

@media (max-width: 1080px) {
  .journey {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-left: 18px;
  }
  .journey::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--line);
  }
  .journey-step {
    padding: 0;
  }
  .journey-step:not(:last-child)::before {
    display: none;
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, #ffffff 0%, #fdf8f0 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(26, 58, 92, 0.05);
}
.chip .chip-credit {
  font-weight: 700;
  background-image: var(--grad-navy-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}
.chip .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad-navy-cyan);
}
/* Tuition fees */
.fee-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
  margin: 10px 0 8px;
}
.section[id] {
  scroll-margin-top: 96px;
}
.chip .swatch--powder {
  background: var(--grad-cyan-powder);
}
.chip .swatch--mint {
  background: linear-gradient(140deg, #d6dec3 0%, #b3c4a4 100%);
}
.chip .swatch--peach {
  background: linear-gradient(140deg, #f0d4b3 0%, #d68a5e 100%);
}
.chip .swatch--blush {
  background: var(--grad-orange-coral);
}

/* ---------- 9. Pathways ---------- */
.pathway {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf5 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pathway-head {
  padding: 26px 30px 22px;
  border-bottom: 1px solid var(--line);
}
.pathway--a .pathway-head {
  background: linear-gradient(
    150deg,
    #fbf3e2 0%,
    #f6e9d8 40%,
    #f2e6d6 70%,
    #ffffff 100%
  );
}
.pathway--b .pathway-head {
  background: linear-gradient(
    150deg,
    #f4f9fb 0%,
    #e8f2f6 40%,
    #e2eef3 70%,
    #ffffff 100%
  );
}
.pathway-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.pathway--b .pathway-tag {
  color: #3f6d94;
}
.pathway h3 {
  margin-bottom: 6px;
}
.pathway .code {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.pathway-body {
  padding: 24px 30px 28px;
}
.pathway-body p {
  font-size: 0.97rem;
  color: var(--ink-soft);
}
/* pathway bullets — what you actually do in this pathway */
.pathway-bullets {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pathway-bullets li {
  position: relative;
  padding: 10px 12px 10px 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink);
}
.pathway-bullets li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-action);
  box-shadow: 0 2px 6px rgba(196, 106, 58, 0.32);
}
.pathway-bullets li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-65%) rotate(-45deg);
}
.pathway-meta {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pathway-meta li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.92rem;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.pathway-meta li:last-child {
  border-bottom: 0;
}
.pathway-meta .k {
  color: var(--ink-mute);
}
.pathway-meta .v {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.credit-bar {
  margin-top: 18px;
}
.credit-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 0.86rem;
}
.credit-bar-row .label {
  width: 108px;
  flex: 0 0 auto;
  color: var(--ink-mute);
}
.credit-bar-track {
  flex: 1;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3e9d6 0%, #faf2e2 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.credit-bar-fill {
  height: 100%;
  border-radius: 999px;
}
.pathway--a .credit-bar-fill {
  background: var(--grad-navy-cyan);
}
.pathway--b .credit-bar-fill {
  background: var(--grad-cyan-powder);
}
.credit-bar-row .val {
  width: 78px;
  flex: 0 0 auto;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- 9b. Event card (admission events) ---------- */
.event-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.event-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-navy-cyan);
}
.event-card--featured {
  border-color: var(--line-strong);
}
.event-card-body {
  padding: clamp(24px, 3.4vw, 38px);
  padding-left: clamp(28px, 3.8vw, 44px);
}
.event-card-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px;
}
.event-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--ink);
}
.event-card-lede {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}
.event-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}
.event-card-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event-card-meta dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.event-card-meta dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 600;
}
.event-card-side {
  background: linear-gradient(160deg, var(--navy) 0%, var(--cyan-deep) 100%);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.event-card-side::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at center, rgba(196, 106, 58, 0.5) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.es-mode {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  position: relative;
  z-index: 1;
}
@media (max-width: 820px) {
  .event-card {
    grid-template-columns: 1fr;
  }
  .event-card-side {
    padding: 18px;
  }
  .event-card-meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---------- 10. Values / facts ---------- */
.value-item {
  border-top: 3px solid var(--navy);
  border-image: var(--grad-navy-cyan) 1;
  border-image-slice: 1;
  border-top-width: 3px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  padding-top: 18px;
}
.value-item:nth-child(2) {
  border-image: var(--grad-cyan-powder) 1;
  border-image-slice: 1;
}
.value-item:nth-child(3) {
  border-image: var(--grad-action) 1;
  border-image-slice: 1;
}
.value-item:nth-child(4) {
  border-image: var(--grad-orange-coral) 1;
  border-image-slice: 1;
}
.value-item h4 {
  margin-bottom: 8px;
}
.value-item p {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin: 0;
}

.fact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #fdf8f0 55%, #f9f1e4 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.fact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-navy-cyan);
  opacity: 0.6;
}
.fact .num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background-image: var(--grad-navy-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
  display: block;
  margin-bottom: 8px;
  line-height: 1.2;
}
.fact .lbl {
  font-size: 0.88rem;
  color: var(--ink-mute);
  display: block;
}
/* fourth "at a glance" cell holds a sentence rather than a figure */
.fact--text .num {
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- 11. Events / empty state ---------- */
.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #ffffff 0%, #fdf9f3 50%, #f9f2e7 100%);
  padding: clamp(30px, 4vw, 46px);
  text-align: center;
}
.empty-state .es-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, #f3e9d6 0%, #e8d9c2 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.empty-state h3 {
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--ink-mute);
  max-width: 46ch;
  margin: 0 auto 20px;
}

/* ---------- 12. CTA band ---------- */
.cta-band {
  background: linear-gradient(
    135deg,
    #102a45 0%,
    #1a3a5c 28%,
    #254d75 52%,
    #2a6b8a 74%,
    #3a8db3 100%
  );
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(196, 106, 58, 0.42) 0%,
    rgba(214, 138, 94, 0.16) 45%,
    transparent 72%
  );
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -110px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(191, 221, 227, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
}
/* faint diagonal sheen */
.cta-band .container > * {
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
}
.cta-band .btn-row {
  margin-top: 26px;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
  padding: clamp(48px, 6vw, 76px) 0;
}

/* ---------- 13. Accordion ---------- */
.accordion {
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.acc-item {
  border-bottom: 1px solid var(--line);
}
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.012em;
}
.acc-btn:hover {
  color: var(--cyan-deep);
}
.acc-btn .sign {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.acc-btn .sign::before,
.acc-btn .sign::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.2s ease, background 0.16s ease, opacity 0.2s;
}
.acc-btn .sign::before {
  width: 12px;
  height: 1.6px;
}
.acc-btn .sign::after {
  width: 1.6px;
  height: 12px;
}
.acc-btn[aria-expanded="true"] .sign {
  background: var(--grad-navy-cyan);
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(26, 58, 92, 0.22);
}
.acc-btn[aria-expanded="true"] .sign::before,
.acc-btn[aria-expanded="true"] .sign::after {
  background: #fff;
}
.acc-btn[aria-expanded="true"] .sign::after {
  transform: rotate(90deg);
  opacity: 0;
}
.acc-panel {
  display: none;
  padding: 0 4px 24px;
  max-width: 74ch;
}
.acc-panel.is-open {
  display: block;
}
.acc-panel p,
.acc-panel ul {
  color: var(--ink-soft);
  font-size: 0.99rem;
}

/* ---------- 14. Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fdfaf6 100%);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.data th,
table.data td {
  text-align: left;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th {
  background: linear-gradient(120deg, #f6ecdd 0%, #f1e4d3 55%, #eee0cc 100%);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy-deep);
  font-weight: 700;
  white-space: nowrap;
}
table.data tbody tr:last-child td {
  border-bottom: 0;
}
table.data tbody tr:hover {
  background: linear-gradient(90deg, #fbf3e2 0%, #f7ece0 100%);
}
table.data td.num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
table.data th:first-child {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: none;
}
table.data tbody th {
  font-weight: 700;
}

/* ---------- 15. Callouts / notes ---------- */
.callout {
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #1a3a5c 0%, #3a8db3 100%) 1;
  border-image-slice: 1;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: linear-gradient(110deg, #faf2e2 0%, #f5e9d8 60%, #f2e4d1 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.callout strong {
  color: var(--ink);
}

.note-draft {
  border: 1px dashed #d9b98f;
  background: linear-gradient(150deg, #fdf8f0 0%, #fbf1e2 55%, #f8ebd9 100%);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.draft-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad-action);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(168, 86, 43, 0.2);
}
.draft-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.draft-list li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px dashed #e5d3b6;
  font-size: 0.94rem;
  margin: 0;
}
.draft-list li:last-child {
  border-bottom: 0;
}
.draft-list .k {
  color: #7a6142;
  font-weight: 600;
}
.draft-list .v {
  text-align: right;
  color: var(--ink-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink-mute);
}
.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-mute);
}
.status-pill--draft {
  background: #faecda;
  border-color: #e5c79a;
  color: #8a4f1d;
}
.status-pill--draft .dot {
  background: #c46a3a;
}

/* ---------- 16. Page header (inner pages) ---------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--grad-page-head);
  border-bottom: 1px solid var(--line);
  padding: clamp(40px, 5.5vw, 68px) 0 clamp(34px, 4vw, 52px);
}
/* soft warm blobs behind the title */
.page-head::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(240, 212, 179, 0.55) 0%,
    rgba(240, 212, 179, 0.18) 42%,
    transparent 70%
  );
  pointer-events: none;
}
.page-head::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -150px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(191, 221, 227, 0.5) 0%,
    rgba(191, 221, 227, 0.16) 45%,
    transparent 72%
  );
  pointer-events: none;
}
.page-head > .container {
  position: relative;
  z-index: 1;
}
.page-head h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 14px;
}
.page-head .lead {
  max-width: 62ch;
}
/* Page header with inset photo on the right (photo replaces the flat colour wash) */
.page-head--photo .page-head-row {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
}
.page-head--photo .page-head-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 58ch;
}
.page-head--photo .page-head-copy h1 {
  margin-top: 0;
}
.page-head--photo .page-head-media {
  flex: 0 0 auto;
  width: clamp(300px, 30vw, 430px);
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
/* image height follows the text block, ending just below the last text line */
.page-head--photo .page-head-media img {
  display: block;
  width: 100%;
  height: calc(100% + 18px);
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: var(--radius);
  border: 1px solid rgba(138, 79, 29, 0.12);
  box-shadow: 0 22px 48px -20px rgba(90, 51, 18, 0.38);
}
@media (max-width: 860px) {
  .page-head--photo .page-head-row {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }
  .page-head--photo .page-head-copy {
    max-width: none;
  }
  .page-head--photo .page-head-media {
    width: 100%;
  }
  .page-head--photo .page-head-media img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-position: 50% 35%;
    box-shadow: 0 12px 28px -18px rgba(90, 51, 18, 0.35);
  }
}
/* Page header with darkened photo background (photo replaces the flat colour wash) */
.page-head--dark {
  background:
    linear-gradient(
      180deg,
      rgba(38, 28, 18, 0.58) 0%,
      rgba(30, 22, 14, 0.68) 100%
    ),
    url("../img/scholarships-banner.jpg") center 64% / cover no-repeat;
  color: var(--cream-light);
}
.page-head--dark::before,
.page-head--dark::after {
  display: none;
}
.page-head--dark h1 {
  color: #fdf7ec;
}
.page-head--dark .lead {
  color: rgba(253, 243, 224, 0.88);
}
.page-head--dark .eyebrow {
  color: var(--cyan-soft);
}
.page-head--dark .breadcrumb li {
  color: rgba(253, 243, 224, 0.72);
}
.page-head--dark .breadcrumb li + li::before {
  color: rgba(253, 243, 224, 0.45);
}
.page-head--dark .breadcrumb a {
  color: rgba(253, 243, 224, 0.92);
}
.page-head--dark .breadcrumb a:hover {
  color: #ffffff;
}
/* Page header with pencil-sketch artwork (AI generated) behind the title, right-aligned */
.page-head--sketch {
  background:
    linear-gradient(
      90deg,
      #fbf3e2 0%,
      #fbf3e2 44%,
      rgba(251, 243, 226, 0.72) 60%,
      rgba(251, 243, 226, 0.28) 78%,
      rgba(251, 243, 226, 0) 94%
    ),
    url("../img/application-banner.jpg") right 40% / cover no-repeat;
}
.page-head--sketch::before,
.page-head--sketch::after {
  display: none;
}
@media (max-width: 860px) {
  .page-head--sketch {
    background:
      linear-gradient(
        90deg,
        rgba(251, 243, 226, 0.96) 0%,
        rgba(251, 243, 226, 0.9) 55%,
        rgba(251, 243, 226, 0.72) 78%,
        rgba(251, 243, 226, 0.55) 100%
      ),
      url("../img/application-banner.jpg") right 40% / cover no-repeat;
  }
}
.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.83rem;
  color: var(--ink-mute);
}
.breadcrumb li {
  margin: 0;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb a {
  color: var(--ink-mute);
}
.breadcrumb a:hover {
  color: var(--cyan);
}

/* Anchored sub-nav for Programme page */
.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.anchor-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-nav ul::-webkit-scrollbar {
  display: none;
}
.anchor-nav a {
  display: block;
  padding: 14px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.anchor-nav a:hover,
.anchor-nav a.is-active {
  color: var(--cyan);
  border-bottom-color: var(--navy);
}

/* ---------- 17. Split feature blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.feature-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  background: var(--white);
}
.feature-block .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.feature-block p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

.quote-block {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--navy);
  padding-left: 24px;
  margin: 0;
}

/* ---------- 18. Forms ---------- */
.form-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #fdf9f3 50%, #faf3e8 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-action);
  opacity: 0.65;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--ink);
}
.field .req {
  color: var(--coral);
}
.field .hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-weight: 400;
  margin-top: 4px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(170deg, #ffffff 0%, #fdfaf6 100%);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.14);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.checkbox input {
  margin: 3px 0 0;
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  flex: 0 0 auto;
}
.form-note {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin-top: 14px;
}
.form-success {
  display: none;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(120deg, #f6ecdd 0%, #f1e4d3 100%);
  border: 1px solid rgba(26, 58, 92, 0.25);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
}
.form-success.is-visible {
  display: flex;
}
.form-success .tick {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--grad-action);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(168, 86, 43, 0.25);
}
.form-success h4 {
  margin: 0 0 4px;
}
.form-success p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.field-error {
  display: none;
  color: #b4473c;
  font-size: 0.82rem;
  margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #cf6a5e;
}
.field.has-error .field-error {
  display: block;
}

/* ---------- 19. Contact block ---------- */
.contact-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
}
.contact-block h3 {
  margin-bottom: 14px;
}
.contact-block address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 18px;
}
.contact-block address .org {
  font-weight: 700;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
}
.contact-list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  margin: 0;
}
.contact-list .k {
  color: var(--ink-mute);
  min-width: 62px;
}

/* ---------- 20. Footer ---------- */
.site-footer {
  background: linear-gradient(
    165deg,
    #102a45 0%,
    #1a3a5c 30%,
    #1f4668 58%,
    #2a6b8a 82%,
    #254d75 100%
  );
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
/* warm orange glow low-left of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(196, 106, 58, 0.3) 0%,
    rgba(196, 106, 58, 0.1) 45%,
    transparent 70%
  );
  pointer-events: none;
}
.site-footer .container {
  position: relative;
  z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(44px, 5vw, 68px) 0 clamp(32px, 4vw, 44px);
}
@media (max-width: 940px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand .fb-name,
  .footer-brand .fb-sub {
    white-space: normal;
  }
}
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.74);
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-brand .brand-mark {
  width: 44px;
  height: 44px;
}
.footer-marks {
  display: flex;
  align-items: center;
  gap: 30px;
}
.footer-brand .footer-mark {
  height: 56px;
  width: auto;
  display: block;
}
.footer-brand .fb-name {
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
}
.footer-brand .fb-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.footer-contact {
  font-style: normal;
  color: rgba(255, 255, 255, 0.72);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-logo-slot {
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
  max-width: 320px;
}

/* ---------- 21. Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 22. Misc ---------- */
.ext::after {
  content: "↗";
  font-size: 0.85em;
  margin-left: 4px;
  opacity: 0.7;
}
.provisional-note {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin-top: 14px;
}
.two-col-text {
  columns: 2;
  column-gap: 40px;
}
@media (max-width: 700px) {
  .two-col-text {
    columns: 1;
  }
}
.spec-anchor {
  scroll-margin-top: calc(var(--header-h) + 84px);
}

/* ---------- Client line-spacing update (20261021 feedback items 4 & 5) ---------- */
/* Green-frame body copy → line-height 2.4 (value the client tested in DevTools) */
.lead,
.hero-slider .slide p.lede,
.acc-panel p,
.acc-panel ul,
.fact--text .num {
  line-height: 2.4;
}
/* Red-frame multi-line section titles → current + 1 (1.14 → 2.14) */
.section-head h2,
.section-head--center h2,
.split h2 {
  line-height: 2.14;
}

/* ---------- 20261022 feedback: Component 2 course cards ---------- */
/* cards closer to square + looser leading */
#professional-core .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 470px));
  justify-content: flex-start;
  column-gap: 28px;
}
.feature-block p {
  line-height: 2;
}

/* ---------- 20261022 feedback: Component 3 pillar cards ---------- */
/* equal height, consistent icon-title gap, accordion pinned to bottom */
#specialisations .grid-3 .card {
  display: flex;
  flex-direction: column;
}
#specialisations .card .card-icon {
  margin-bottom: 18px;
}
#specialisations .card h3 {
  margin: 0 0 14px;
}
#specialisations .card > p {
  margin: 0 0 20px;
}
#specialisations .card .spec-acc {
  margin-top: auto;
  border-top: 1px solid var(--line);
}

/* ---------- 20261022 feedback: Scholarships draft list ---------- */
/* left labels never wrap, right values wrap at comfortable length, line-height 2 */
.draft-list li {
  align-items: baseline;
  line-height: 2;
}
.draft-list .k {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-right: 24px;
}
.draft-list .v {
  flex: 1 1 auto;
  text-align: left;
}

/* 20261022 修订：草稿列表改为固定标签列 + 值列（值列换行后左对齐自己的列） */
.draft-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 36px;
  align-items: baseline;
}
.draft-list .k {
  margin: 0;
}
@media (max-width: 720px) {
  .draft-list li {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }
}

/* ---------- 20261023 feedback: card body alignment ("align to green line") ---------- */
/* h3 reserved at two-line height, so paragraph first lines start on the same baseline */
.grid-3 .card h3 {
  min-height: 2.4em;
}
/* homepage spec-preview + programme pillar cards: pin the foot/accordion to bottom */
.grid-3 .card {
  display: flex;
  flex-direction: column;
}
.grid-3 .card .card-foot,
.grid-3 .card .spec-acc {
  margin-top: auto;
}
/* pathways cards: description grows, meta list drops to the bottom */
.pathway {
  display: flex;
  flex-direction: column;
}
.pathway .pathway-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.pathway .pathway-meta {
  margin-top: auto;
}
/* Homepage (9): pathway bullet blocks align to the same baseline in both cards.
   Bullet lists are pushed to the bottom of the card body, so the first block
   starts on the same line regardless of paragraph length. */
.pathway .pathway-bullets {
  margin-top: auto;
}
.pathway .pathway-body p {
  margin-bottom: 18px;
}

/* ---------- Student Resources (5): pills become real links ---------- */
.status-pill--link {
  background: #ffffff;
  border: 1px solid #bcd6d2;
  color: #1f6f66;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.status-pill--link:hover {
  background: #eef6f4;
  border-color: #1f6f66;
  color: #14524b;
}
.status-pill--link .arrow {
  font-size: 0.85em;
  line-height: 1;
}

/* ---------- Programme banner now follows the Scholarships page-head treatment
   (photo behind, copy in front) using the client-supplied photo ---------- */
.page-head--dark.page-head--programme {
  background:
    linear-gradient(
      180deg,
      rgba(30, 22, 14, 0.50) 0%,
      rgba(24, 18, 12, 0.66) 100%
    ),
    url("../img/programme-hero.jpg") center 42% / cover no-repeat;
}

/* ---------- 23. Interactive pathway planner ---------- */
.planner-section {
  position: relative;
  overflow: hidden;
}
.planner-shell {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.planner-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(110deg, #fdf8ef 0%, #f4f8f8 56%, #eef6f7 100%);
  border-bottom: 1px solid var(--line);
}
.planner-progress__item {
  position: relative;
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(210, 197, 170, 0.64);
  background: transparent;
  min-height: 92px;
  padding: 18px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.planner-progress__item:last-child { border-right: 0; }
.planner-progress__item:not(:disabled):hover { background: rgba(255, 255, 255, 0.68); color: var(--navy); }
.planner-progress__item:disabled { cursor: default; }
.planner-progress__item.is-active { color: var(--navy); background: rgba(255, 255, 255, 0.9); }
.planner-progress__item.is-active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--grad-navy-cyan);
}
.planner-progress__item.is-complete .planner-progress__number { background: var(--grad-action); }
.planner-progress__number {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: #d8dfdf;
  color: #fff;
  font-size: 0.76rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.planner-progress__item.is-active .planner-progress__number { background: var(--grad-navy-cyan); transform: scale(1.08); }
.planner-live {
  margin: 24px 30px 0;
  padding: 12px 15px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid #d7e3e5;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #f6fafb 0%, #fffdf8 100%);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.planner-live__label {
  flex: 0 0 auto;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan-deep);
}
.planner-step { padding: 38px 30px 30px; }
.planner-step[hidden] { display: none; }
.planner-step__head { max-width: 760px; margin-bottom: 27px; }
.planner-step__head .eyebrow { margin-bottom: 8px; }
.planner-step__head h3 { font-size: clamp(1.34rem, 2.5vw, 1.82rem); margin-bottom: 10px; }
.planner-step__head p:not(.eyebrow) { color: var(--ink-soft); max-width: 65ch; margin: 0; }
.planner-choice-grid { display: grid; gap: 16px; }
.planner-choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.planner-choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.planner-choice-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.planner-choice {
  appearance: none;
  position: relative;
  min-width: 0;
  min-height: 242px;
  padding: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--grad-card);
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(26, 58, 92, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.planner-choice:hover:not(:disabled) { transform: translateY(-4px); border-color: #a8c7d1; box-shadow: var(--shadow-md); }
.planner-choice.is-selected { border: 2px solid var(--cyan-deep); padding: 21px; background: linear-gradient(148deg, #ffffff 0%, #f2f8fa 58%, #e9f3f5 100%); box-shadow: 0 8px 24px rgba(42, 107, 138, 0.14); }
.planner-choice.is-selected .planner-choice__check { opacity: 1; transform: scale(1); }
.planner-choice:disabled { cursor: not-allowed; opacity: 0.48; filter: saturate(0.35); }
.planner-choice__top { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.planner-choice__icon, .planner-choice__label {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--grad-navy-cyan);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.planner-choice__label { width: auto; height: auto; padding: 7px 11px; border-radius: 999px; font-size: 0.72rem; }
.planner-choice__check {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-action);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.planner-choice strong { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.35; margin-bottom: 4px; }
.planner-choice__meta { color: var(--cyan-deep); font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; }
.planner-choice__copy { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.7; margin-top: 13px; }
.planner-choice__tag { margin-top: auto; padding-top: 16px; color: var(--orange-deep); font-family: var(--font-display); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.planner-choice--compact { min-height: 216px; padding: 19px; }
.planner-choice--compact.is-selected { padding: 18px; }
.planner-choice--compact strong { font-size: 0.98rem; }
.planner-choice--specialisation { min-height: 268px; }
.planner-choice--specialisation .planner-choice__top img { width: 36px; height: 36px; padding: 3px; border-radius: 10px; background: #f3f7f6; }
.planner-choice--pathway-a { background: linear-gradient(155deg, #ffffff 0%, #fdf5e8 58%, #f8ead9 100%); }
.planner-choice--pathway-b { background: linear-gradient(155deg, #ffffff 0%, #f2f8fa 58%, #e6f0f4 100%); }
.planner-advisory { display: flex; align-items: flex-start; gap: 11px; margin: 20px 0 0; padding: 13px 15px; border-radius: var(--radius-sm); background: #fffaf0; border: 1px solid #efdfbd; color: var(--ink-soft); font-size: 0.87rem; line-height: 1.65; }
.planner-advisory span { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-soft); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.75rem; }
.planner-advisory p { margin: 0; }
.planner-pathway-note { margin: 17px 0 0; padding: 12px 14px; border-left: 3px solid var(--orange); background: #fff9ee; color: var(--ink-soft); font-size: 0.9rem; }
.planner-pathway-warning { margin: 17px 0 0; padding: 12px 14px; border-left: 3px solid var(--orange-deep); background: #fff4e4; color: var(--ink); font-size: 0.9rem; line-height: 1.6; }
.planner-pathway-warning[hidden] { display: none; }
.planner-controls { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.arrow--back { margin-right: 4px; }
.planner-result { margin: 0 30px 30px; border: 1px solid #c9d9dc; border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 6px 20px rgba(26, 58, 92, 0.07); }
.planner-result[hidden] { display: none; }
.planner-result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 30px 23px; background: linear-gradient(105deg, #f5fafb 0%, #fffaf2 100%); border-bottom: 1px solid var(--line); }
.planner-result__head .eyebrow { margin-bottom: 8px; }
.planner-result__head h3 { font-size: clamp(1.32rem, 2.4vw, 1.8rem); margin-bottom: 7px; }
.planner-result__head p:not(.eyebrow) { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.planner-total { min-width: 134px; padding: 12px 16px; border: 1px solid #bad1d8; border-radius: var(--radius-sm); background: rgba(255,255,255,.82); text-align: center; color: var(--ink-soft); line-height: 1.2; }
.planner-total span, .planner-total small { display: block; font-size: 0.68rem; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.planner-total strong { display: inline-block; margin: 3px 3px 2px 0; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--cyan-deep); }
.planner-total.is-incomplete { border-color: #e1bf8b; background: #fffaf1; }
.planner-total.is-incomplete strong { color: var(--orange-deep); }
.planner-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.planner-summary { padding: 16px 17px; border-right: 1px solid var(--line); text-align: left; background: #fff; }
.planner-summary:last-child { border-right: 0; }
.planner-summary__label { display: block; color: var(--ink-mute); font-family: var(--font-display); font-size: 0.66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.planner-summary__value { display: block; margin-top: 4px; color: var(--ink); font-family: var(--font-display); font-size: .86rem; font-weight: 800; line-height: 1.4; }
.planner-summary__edit { display: inline-block; margin-top: 7px; appearance: none; padding: 0; border: 0; background: transparent; color: var(--cyan-deep); font-size: .75rem; font-weight: 700; cursor: pointer; }
.planner-summary__edit:hover { color: var(--orange-deep); text-decoration: underline; }
.planner-picker { padding: 25px 30px; border-bottom: 1px solid var(--line); background: #fdfcf9; }
.picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.picker-head h4 { margin: 0 0 4px; }
.picker-head p { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.6; }
.picker-count { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #edf5f6; color: var(--cyan-deep); font-family: var(--font-display); font-size: .72rem; font-weight: 800; }
.picker-count.is-incomplete { color: var(--orange-deep); background: #fff1dc; }
.picker-group + .picker-group { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line-strong); }
.course-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.course-choice { appearance: none; width: 100%; padding: 11px 40px 11px 13px; position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.course-choice:hover:not(:disabled) { border-color: var(--cyan-soft); background: #f6fbfc; transform: translateY(-1px); }
.course-choice.is-selected { border-color: var(--cyan-deep); background: #edf7f8; }
.course-choice:disabled { cursor: not-allowed; opacity: .48; background: #f6f5f1; }
.course-choice__code { display: block; color: var(--cyan-deep); font-family: var(--font-display); font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.course-choice__title { display: block; margin-top: 1px; font-size: .82rem; font-weight: 600; line-height: 1.45; }
.course-choice__tick { position: absolute; top: 50%; right: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; transform: translateY(-50%); background: var(--grad-action); color: #fff; font-size: .68rem; font-weight: 800; opacity: 0; }
.course-choice.is-selected .course-choice__tick { opacity: 1; }
.picker-notice { margin: 14px 0 0; color: var(--orange-deep); font-size: .82rem; font-weight: 600; }
.planner-output { padding: 28px 30px 24px; }
.plan-output-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.plan-output-head h4 { margin: 0; }
.plan-output-head p { margin: 0; color: var(--ink-mute); font-size: .8rem; }
.plan-warning { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff5e5; border: 1px solid #f0d8ab; color: var(--orange-deep); font-size: .86rem; }
.plan-components { display: grid; gap: 12px; }
.plan-component { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.plan-component__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; background: #faf8f3; border-bottom: 1px solid var(--line); }
.plan-component__head h5 { margin: 0; color: var(--navy); font-family: var(--font-display); font-size: .84rem; }
.plan-component__head span { color: var(--cyan-deep); font-family: var(--font-display); font-size: .76rem; font-weight: 800; white-space: nowrap; }
.plan-course { display: grid; grid-template-columns: 104px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0ebe1; font-size: .85rem; line-height: 1.45; }
.plan-course:last-child { border-bottom: 0; }
.plan-course__code { color: var(--cyan-deep); font-family: var(--font-display); font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
.plan-course__title { color: var(--ink); font-weight: 600; }
.plan-course__credits { color: var(--ink-mute); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.plan-course--internship { background: #fcfaf5; }
.planner-result__foot { padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fbf8f2; }
.planner-result__foot p { margin: 0; max-width: 76ch; color: var(--ink-mute); font-size: .79rem; line-height: 1.65; }
@media (max-width: 900px) {
  .planner-choice-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .planner-summary:nth-child(2) { border-right: 0; }
  .planner-summary:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .planner-progress { grid-template-columns: repeat(2, 1fr); }
  .planner-progress__item:nth-child(2) { border-right: 0; }
  .planner-progress__item:nth-child(-n+2) { border-bottom: 1px solid rgba(210, 197, 170, .64); }
  .planner-progress__item { min-height: 65px; padding: 11px; font-size: .72rem; }
  .planner-progress__number { width: 24px; height: 24px; }
  .planner-live, .planner-step { margin-left: 16px; margin-right: 16px; }
  .planner-live { margin-top: 16px; }
  .planner-step { padding: 26px 0 22px; }
  .planner-choice-grid--2, .planner-choice-grid--3, .planner-choice-grid--4 { grid-template-columns: 1fr; }
  .planner-choice, .planner-choice--compact, .planner-choice--specialisation { min-height: 0; }
  .planner-result { margin: 0 16px 16px; }
  .planner-result__head, .planner-result__foot { padding: 20px; flex-direction: column; }
  .planner-total { min-width: 115px; }
  .planner-summary { padding: 13px; }
  .planner-picker, .planner-output { padding: 20px; }
  .course-choice-grid { grid-template-columns: 1fr; }
  .plan-course { grid-template-columns: 1fr auto; }
  .plan-course__code { grid-column: 1 / -1; }
  .planner-controls { padding-top: 17px; }
}
