/* ==========================================================================
   Sevasadan Foundation — Design System
   Theme: "Warm & Human" — deep teal anchor, marigold + terracotta warmth,
   cream canvas, editorial typography, motion that respects the reader.
   --------------------------------------------------------------------------
   1. Tokens
   2. Reset & base
   3. Typography
   4. Layout primitives
   5. Motion system
   6. Buttons & links
   7. Header / navigation
   8. Hero
   9. Cards & content components
   10. Stats, counters, marquee
   11. Forms
   12. Footer & utilities
   13. Responsive
   ========================================================================== */

/* ============================== 1. TOKENS ============================== */

:root {
  /* --- Brand: deep teal anchor --- */
  --teal-900: #06332F;
  --teal-800: #0B4F4A;
  --teal-700: #0E6B63;
  --teal-600: #11837A;
  --teal-500: #169C91;
  --teal-100: #D7EDE9;
  --teal-50:  #EDF7F5;

  /* --- Warmth: marigold + terracotta --- */
  --gold-600: #B9731A;   /* text-safe on cream — 4.9:1 */
  --gold-500: #E39324;
  --gold-400: #F2A341;
  --gold-200: #FBE3C1;
  --clay-600: #A9472A;   /* text-safe — 6.1:1 */
  --clay-500: #C75B39;
  --clay-200: #F7DDD3;

  /* --- Logo: sampled from the official mark. Decorative / large text only;
     it is ~3.1:1 on cream, so never use it for small body copy. --- */
  --brand: #429689;
  --brand-deep: #2F7A6E;

  /* --- Canvas & ink --- */
  --cream:    #FDFAF5;
  --cream-2:  #F7F1E7;
  --sand:     #EFE6D8;
  --white:    #FFFFFF;
  --ink:      #12201E;
  --ink-soft: #2C3E3A;
  --body:     #4F615D;
  --muted:    #7C8D89;
  --line:     #E6DFD3;
  --line-teal: rgba(14, 107, 99, .14);

  /* --- Semantic --- */
  --ok:     #1A7F58;
  --ok-bg:  #E4F4EC;
  --warn:   #B9731A;
  --err:    #B4402F;
  --err-bg: #FBEAE6;

  /* --- Role aliases (use these in components) --- */
  --primary:      var(--teal-800);
  --primary-deep: var(--teal-900);
  --primary-lift: var(--teal-600);
  --accent:       var(--gold-400);
  --accent-ink:   var(--gold-600);
  --surface:      var(--white);
  --canvas:       var(--cream);

  /* --- Elevation: tuned to the teal, never grey --- */
  --sh-xs: 0 1px 2px rgba(6, 51, 47, .06);
  --sh-sm: 0 2px 10px rgba(6, 51, 47, .07);
  --sh-md: 0 10px 28px -6px rgba(6, 51, 47, .12);
  --sh-lg: 0 26px 60px -14px rgba(6, 51, 47, .22);
  --sh-xl: 0 44px 90px -24px rgba(6, 51, 47, .30);
  --sh-gold: 0 12px 28px -8px rgba(227, 147, 36, .45);

  /* --- Radius --- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* --- Spacing: 4pt base, named by rhythm not number --- */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 2.75rem; --s-8: 3.5rem;
  --s-9: 5rem;    --s-10: 7rem;   --s-11: 9.5rem;

  /* Section rhythm — fluid, so small screens never feel cramped
     and large screens never feel sparse */
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --section-y-tight: clamp(3rem, 6vw, 5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* --- Type scale: fluid, 1.25 ratio at the top end --- */
  --f-xs:   .78rem;
  --f-sm:   .875rem;
  --f-base: 1rem;
  --f-md:   1.0625rem;
  --f-lg:   clamp(1.1rem, .35vw + 1.02rem, 1.25rem);
  --f-xl:   clamp(1.35rem, 1vw + 1.1rem, 1.75rem);
  --f-2xl:  clamp(1.7rem, 2vw + 1.2rem, 2.5rem);
  --f-3xl:  clamp(2.1rem, 3.4vw + 1.1rem, 3.4rem);
  --f-4xl:  clamp(2.5rem, 5vw + 1rem, 4.6rem);

  --lh-tight: 1.1;
  --lh-snug: 1.28;
  --lh-body: 1.72;

  /* --- Fonts --- */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Motion --- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .18s;
  --t-med: .35s;
  --t-slow: .6s;

  --header-h: 86px;
  --maxw: 1200px;
  --maxw-wide: 1400px;
  --measure: 66ch;
}

/* ============================ 2. RESET & BASE ============================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  /* The off-canvas nav is parked to the right of the viewport. `clip` removes
     it from the scrollable area outright; `hidden` is the older fallback and
     must come first. Without this, mobile gets a stray sideways scroll. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: var(--f-md);
  line-height: var(--lh-body);
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }

::selection { background: var(--gold-200); color: var(--teal-900); }

/* Any explicit `display` on an element would otherwise beat the [hidden]
   attribute's UA rule and leave it on screen. Make hidden actually hidden. */
[hidden] { display: none !important; }

/* Focus: visible, on-brand, never clipped */
:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: fixed; top: -100px; left: var(--s-4); z-index: 9999;
  background: var(--teal-800); color: var(--white);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
  font-weight: 700; box-shadow: var(--sh-lg);
  transition: top var(--t-med) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* Custom scrollbar — subtle, matches the palette */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--cream-2); }
  ::-webkit-scrollbar-thumb {
    background: var(--teal-100); border-radius: var(--r-pill);
    border: 3px solid var(--cream-2);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--teal-500); }
}

/* Scroll progress bar, pinned under the header */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-400), var(--clay-500));
  z-index: 500; pointer-events: none;
}

/* ============================ 3. TYPOGRAPHY ============================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -.018em;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  text-wrap: balance;
}
h1 { font-size: var(--f-4xl); }
h2 { font-size: var(--f-3xl); }
h3 { font-size: var(--f-xl); line-height: var(--lh-snug); }
h4 { font-size: var(--f-lg); line-height: var(--lh-snug); }

p { text-wrap: pretty; }
p + p { margin-top: var(--s-4); }

strong, b { font-weight: 700; color: var(--ink-soft); }
em { font-style: italic; }

/* Eyebrow — small label above a heading, with a drawn rule */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-sans);
  font-size: var(--f-xs); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--clay-500));
  transform-origin: 0 50%;
}
.on-dark .eyebrow, .is-dark .eyebrow { color: var(--gold-400); }

/* Lead paragraph */
.lead {
  font-size: var(--f-lg);
  color: var(--ink-soft);
  max-width: var(--measure);
  line-height: 1.68;
}
.is-dark .lead { color: rgba(255,255,255,.80); }

.section-head { max-width: 780px; margin-bottom: var(--s-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: var(--s-4); }

/* A word inside a heading, highlighted with a hand-drawn underline */
.mark {
  position: relative; display: inline-block;
  color: var(--teal-700); white-space: nowrap;
}
.mark::after {
  content: ''; position: absolute;
  left: -2%; right: -2%; bottom: .04em; height: .34em;
  background: var(--gold-200);
  border-radius: var(--r-pill);
  z-index: -1;
  transform-origin: 0 50%;
  transition: transform .8s var(--ease-out) .25s;
}
.js-reveal .mark::after { transform: scaleX(0); }
.js-reveal .is-visible .mark::after,
.js-reveal .mark.is-drawn::after { transform: scaleX(1); }
.is-dark .mark { color: var(--gold-400); }
.is-dark .mark::after { background: rgba(242,163,65,.22); }

/* ========================= 4. LAYOUT PRIMITIVES ========================= */

.container { width: min(var(--maxw), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.container.wide { width: min(var(--maxw-wide), 100% - (var(--gutter) * 2)); }
.container.narrow { width: min(820px, 100% - (var(--gutter) * 2)); }

.section { padding-block: var(--section-y); position: relative; }
.section.tight { padding-block: var(--section-y-tight); }
.section.flush-top { padding-top: 0; }

/* Surfaces */
.bg-cream { background: var(--cream); }
.bg-sand  { background: linear-gradient(170deg, var(--cream-2), var(--sand)); }
.bg-white { background: var(--white); }
.bg-teal-soft { background: var(--teal-50); }

.is-dark {
  background: var(--teal-900);
  color: rgba(255,255,255,.76);
}
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4 { color: var(--white); }

/* Ambient colour wash — the thing that makes flat sections feel alive.
   Two soft radial blooms, no images, no cost. */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before, .glow::after {
  content: ''; position: absolute; z-index: -1;
  width: 46rem; aspect-ratio: 1; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
}
.glow::before {
  background: radial-gradient(circle, rgba(22,156,145,.30), transparent 68%);
  top: -22rem; right: -14rem;
}
.glow::after {
  background: radial-gradient(circle, rgba(242,163,65,.28), transparent 68%);
  bottom: -24rem; left: -16rem;
}
.is-dark.glow::before { background: radial-gradient(circle, rgba(22,156,145,.45), transparent 68%); }
.is-dark.glow::after  { background: radial-gradient(circle, rgba(199,91,57,.32), transparent 68%); }

/* Fine dot grid, for dark panels */
.dotgrid::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
}

/* Grids */
.grid { display: grid; gap: var(--s-5); }
.grid.gap-lg { gap: var(--s-6); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
/* Auto-fit grids: the responsive default, no breakpoints needed */
.g-auto   { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.g-auto-lg{ grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr)); }
/* Four focus-area cards: 4-up, then 2-up, then stacked — never an orphan row. */
.g-sectors { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1180px) { .g-sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .g-sectors { grid-template-columns: 1fr; } }

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split.lean-left  { grid-template-columns: 1.15fr .85fr; }
.split.lean-right { grid-template-columns: .85fr 1.15fr; }
.split.top { align-items: start; }

.stack > * + * { margin-top: var(--s-4); }
.stack.lg > * + * { margin-top: var(--s-6); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.center { text-align: center; }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }

/* ========================== 5. MOTION SYSTEM ========================== */

/* Single reveal primitive. JS adds .is-visible when the element enters view.
   Direction and distance are set by modifier classes, delay by --d.

   The hidden start state is scoped to html.js-reveal, which an inline script in
   <head> sets before first paint. So if JavaScript is disabled, blocked, or
   simply slow, every section renders normally instead of staying blank. */
.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, var(--rev-y, 28px), 0) scale(var(--rev-s, 1));
  transition:
    opacity .75s var(--ease-out) var(--d, 0ms),
    transform .75s var(--ease-out) var(--d, 0ms),
    filter .75s var(--ease-out) var(--d, 0ms);
  filter: blur(var(--rev-blur, 0));
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
  opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0);
}
.js-reveal .reveal.from-left  { --rev-y: 0; transform: translate3d(-34px, 0, 0); }
.js-reveal .reveal.from-right { --rev-y: 0; transform: translate3d(34px, 0, 0); }
.js-reveal .reveal.zoom       { --rev-s: .94; --rev-y: 14px; }
.js-reveal .reveal.soft       { --rev-blur: 8px; --rev-y: 18px; }
.js-reveal .reveal.is-visible.from-left,
.js-reveal .reveal.is-visible.from-right,
.js-reveal .reveal.is-visible.zoom,
.js-reveal .reveal.is-visible.soft { transform: translate3d(0, 0, 0) scale(1); }

/* Stagger: JS sets --i on each child of a .stagger container */
.stagger > * { --d: calc(var(--i, 0) * 85ms); }
.stagger.quick > * { --d: calc(var(--i, 0) * 55ms); }

/* A line that draws itself in */
.rule-draw {
  height: 2px; border: 0; border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-400));
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out);
}
.js-reveal .rule-draw { transform: scaleX(0); }
.rule-draw.is-visible { transform: scaleX(1); }

/* Shared keyframes */
@keyframes float-y   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes drift     { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(10px,-16px) rotate(3deg); } }
@keyframes pulse-ring{ 0% { transform: scale(.82); opacity: .8; } 70% { transform: scale(1.5); opacity: 0; } 100% { opacity: 0; } }
@keyframes shimmer   { to { background-position: 200% 0; } }
@keyframes kenburns  { 0% { transform: scale(1.04) translate(0,0); } 100% { transform: scale(1.18) translate(-1.5%, -1.5%); } }
@keyframes marquee   { to { transform: translateX(-50%); } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes pop-in    { from { opacity:0; transform: translateY(10px) scale(.96);} to { opacity:1; transform:none; } }

.float { animation: float-y 7s var(--ease-in-out) infinite; }

/* The one switch that turns the whole motion system off. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .mark::after, .rule-draw { transform: scaleX(1) !important; }
}

/* ========================= 6. BUTTONS & LINKS ========================= */

.btn {
  --btn-bg: var(--teal-800);
  --btn-fg: var(--white);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-3);
  padding: .95rem 1.9rem;
  font-family: var(--font-sans);
  font-size: var(--f-sm); font-weight: 700; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer; overflow: hidden;
  transition: transform var(--t-med) var(--ease-spring),
              box-shadow var(--t-med) var(--ease-out),
              color var(--t-med) var(--ease-out),
              background-color var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
  box-shadow: var(--sh-sm);
}
/* Fill-from-centre wipe on hover */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover-bg, var(--teal-600));
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: translateY(-1px) scale(.985); }

.btn .ico { width: 1.05em; height: 1.05em; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .ico { transform: translateX(4px); }

.btn-primary {
  --btn-bg: var(--gold-400); --btn-fg: var(--teal-900);
  --btn-hover-bg: var(--gold-500);
  box-shadow: var(--sh-gold);
}
.btn-primary:hover { box-shadow: 0 18px 38px -10px rgba(227,147,36,.6); }

.btn-teal { --btn-bg: var(--teal-800); --btn-fg: var(--white); --btn-hover-bg: var(--teal-600); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--white); --btn-hover-bg: var(--white);
  border-color: rgba(255,255,255,.4); box-shadow: none;
}
.btn-ghost:hover { color: var(--teal-900); border-color: var(--white); }

.btn-outline {
  --btn-bg: transparent; --btn-fg: var(--teal-800); --btn-hover-bg: var(--teal-800);
  border-color: var(--teal-800); box-shadow: none;
}
.btn-outline:hover { color: var(--white); }

.btn-lg { padding: 1.15rem 2.5rem; font-size: var(--f-base); }
.btn-sm { padding: .6rem 1.25rem; font-size: var(--f-xs); }
.btn-block { width: 100%; }

/* Text link with an underline that grows from the left */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 700; font-size: var(--f-sm);
  color: var(--teal-700);
  position: relative; padding-bottom: 2px;
}
.link-arrow::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: currentColor; border-radius: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--t-med) var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow .ico { width: 1em; height: 1em; transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(5px); }
.is-dark .link-arrow { color: var(--gold-400); }

/* Pill badge */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: .4rem .9rem;
  font-size: var(--f-xs); font-weight: 700; letter-spacing: .04em;
  border-radius: var(--r-pill);
  background: var(--teal-50); color: var(--teal-700);
  border: 1px solid var(--line-teal);
}
.pill.gold { background: var(--gold-200); color: var(--gold-600); border-color: rgba(185,115,26,.2); }
.pill.clay { background: var(--clay-200); color: var(--clay-600); border-color: rgba(169,71,42,.2); }
.pill.on-dark { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border-color: rgba(255,255,255,.18); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.live .dot { background: var(--ok); animation: float-y 2s infinite; }

/* ====================== 7. HEADER / NAVIGATION ====================== */

.topbar {
  background: var(--teal-900);
  color: rgba(255,255,255,.72);
  font-size: var(--f-xs);
  position: relative; z-index: 310;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); padding-block: .6rem; flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: .45rem; transition: color var(--t-fast); }
.topbar a:hover { color: var(--gold-400); }
.topbar .ico { width: 14px; height: 14px; opacity: .8; }
.topbar .social { display: flex; gap: var(--s-2); }
.topbar .social a {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring), color var(--t-fast);
}
.topbar .social a:hover { background: var(--gold-400); color: var(--teal-900); transform: translateY(-2px); }

.header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(253,250,245,.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out),
              background-color var(--t-med) var(--ease-out);
}
.header.is-stuck {
  box-shadow: 0 4px 30px -8px rgba(6,51,47,.16);
  border-bottom-color: var(--line);
  background: rgba(253,250,245,.94);
}

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
  transition: height var(--t-med) var(--ease-out);
}
.header.is-stuck .navbar { height: 66px; }

/* The Sevasadan lockup: img/brand/logo.svg (official emblem + vector
   wordmark), so it stays sharp at any size. */
.brand {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1px; flex-shrink: 0;
  transition: transform var(--t-med) var(--ease-spring);
}
.brand:hover { transform: translateY(-1px); }
.brand-logo {
  height: 56px; width: auto;
  transition: height var(--t-med) var(--ease-out), opacity var(--t-fast);
}
.brand:hover .brand-logo { opacity: .88; }
.header.is-stuck .brand-logo { height: 46px; }
/* The white lockup, for the footer and the admin bar. */
.brand-logo.on-dark { height: 60px; }
.brand-tag {
  font-size: .68rem; color: var(--muted); font-weight: 600;
  letter-spacing: .03em; display: block; padding-left: 2px;
}
/* The tagline would crowd the shrunken header, so retire it on scroll. */
.header.is-stuck .brand-tag { opacity: 0; max-height: 0; }
.brand-tag { transition: opacity var(--t-med), max-height var(--t-med); max-height: 1.4em; }
.footer-brand .brand-tag { color: rgba(255,255,255,.55); margin-top: var(--s-3); }

.nav-links { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.6rem); }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .1rem;
  font-size: var(--f-sm); font-weight: 700; color: var(--ink-soft);
  position: relative;
  transition: color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.nav-links > li > a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal-600), var(--gold-400));
  transform: scaleX(0);
  transition: transform var(--t-med) var(--ease-out);
}
.nav-links > li > a:hover { color: var(--teal-700); }
.nav-links > li > a:hover::after,
.nav-links > li > a.active::after { transform: scaleX(1); }
.nav-links > li > a.active { color: var(--teal-800); }
.nav-links .caret { width: 11px; height: 11px; transition: transform var(--t-fast); }
.dropdown:hover .caret, .dropdown:focus-within .caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  translate: -50% 0;
  min-width: 250px; padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-10px) scale(.97);
  transform-origin: top center;
  transition: opacity var(--t-med) var(--ease-out),
              transform var(--t-med) var(--ease-out),
              visibility var(--t-med);
}
.dropdown-menu::before {
  content: ''; position: absolute; top: -7px; left: 50%; translate: -50% 0;
  width: 13px; height: 13px; rotate: 45deg;
  background: var(--white);
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
}
.dropdown:hover > .dropdown-menu,
.dropdown:focus-within > .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: var(--s-3);
  padding: .65rem .8rem; border-radius: var(--r-sm);
  font-size: var(--f-sm); font-weight: 600; color: var(--body);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.dropdown-menu a .ico {
  width: 18px; height: 18px; color: var(--teal-600); flex-shrink: 0;
  transition: transform var(--t-fast) var(--ease-spring);
}
.dropdown-menu a:hover {
  background: var(--teal-50); color: var(--teal-800); transform: translateX(3px);
}
.dropdown-menu a:hover .ico { transform: scale(1.15); }

.nav-cta { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px;
  border-radius: var(--r-sm);
  place-items: center; gap: 5px; flex-direction: column;
  background: var(--teal-50);
  transition: background var(--t-fast);
}
.nav-toggle span {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--teal-800);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(6,51,47,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med), visibility var(--t-med);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* ============================== 8. HERO ============================== */

.hero {
  position: relative; isolation: isolate;
  min-height: min(92vh, 860px);
  display: grid; align-items: center;
  padding-block: clamp(4rem, 10vw, 7rem);
  background: var(--teal-900);
  color: rgba(255,255,255,.82);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -3; }
/* Cross-fade without a gap: the outgoing slide stays fully opaque underneath
   (.is-prev) while the incoming one fades in on top, so the dark page
   background never flashes through mid-transition. */
.hero-media .slide {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s var(--ease-in-out);
}
.hero-media .slide.is-prev   { opacity: 1; z-index: 1; }
.hero-media .slide.is-active { opacity: 1; z-index: 2; animation: kenburns 14s linear forwards; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg, rgba(6,51,47,.96) 0%, rgba(6,51,47,.88) 32%, rgba(6,51,47,.58) 62%, rgba(6,51,47,.26) 100%),
    linear-gradient(to top, rgba(6,51,47,.82), rgba(6,51,47,.12) 48%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; z-index: -1; inset: auto -10% -30% auto;
  width: 50rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,163,65,.26), transparent 65%);
  filter: blur(80px); pointer-events: none;
}

.hero-inner { display: grid; gap: clamp(2.5rem, 5vw, 4rem); position: relative; }
.hero-copy { max-width: 48rem; }
.hero h1 {
  color: var(--white);
  font-size: var(--f-4xl);
  letter-spacing: -.03em;
  margin-bottom: var(--s-5);
  max-width: 17ch;
}
.hero-lead {
  font-size: var(--f-lg); color: rgba(255,255,255,.80);
  max-width: 52ch; margin-bottom: var(--s-7);
}
.hero .btn-row { display: flex; gap: var(--s-4); flex-wrap: wrap; }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--s-3);
  padding: .5rem .5rem .5rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-pill);
  font-size: var(--f-xs); font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: var(--s-6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-badge b {
  background: var(--gold-400); color: var(--teal-900);
  padding: .28rem .7rem; border-radius: var(--r-pill); font-size: var(--f-xs);
}

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg); overflow: hidden;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hero-stats .hstat {
  background: rgba(6,51,47,.42);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  transition: background var(--t-med) var(--ease-out);
}
.hero-stats .hstat:hover { background: rgba(14,107,99,.55); }
.hero-stats .num {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: .4rem;
  font-variant-numeric: tabular-nums;
}
.hero-stats .lbl {
  font-size: var(--f-xs); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.62); font-weight: 700;
}

.scroll-cue {
  position: absolute; bottom: var(--s-5); left: 50%; translate: -50% 0;
  display: grid; place-items: center; gap: var(--s-2);
  font-size: var(--f-xs); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.5); font-weight: 700;
  animation: float-y 2.8s var(--ease-in-out) infinite;
}
.scroll-cue .mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.38);
  border-radius: var(--r-pill); position: relative;
}
.scroll-cue .mouse::after {
  content: ''; position: absolute; top: 7px; left: 50%; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold-400);
  animation: float-y 1.8s var(--ease-in-out) infinite;
}

.page-hero {
  position: relative; isolation: isolate;
  padding-block: clamp(4.5rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--teal-900); color: rgba(255,255,255,.78);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(6,51,47,.92) 8%, rgba(6,51,47,.72) 52%, rgba(6,51,47,.44) 100%);
}
.page-hero h1 { color: var(--white); font-size: var(--f-3xl); margin-bottom: var(--s-4); max-width: 20ch; }
.page-hero p { max-width: 58ch; color: rgba(255,255,255,.78); }
.page-hero-inner { max-width: 62rem; }

.breadcrumb {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  font-size: var(--f-xs); font-weight: 600;
  color: rgba(255,255,255,.5); margin-top: var(--s-6);
}
.breadcrumb a { color: var(--gold-400); transition: opacity var(--t-fast); }
.breadcrumb a:hover { opacity: .75; }
.breadcrumb .sep { opacity: .4; }

/* ==================== 9. CARDS & CONTENT COMPONENTS ==================== */

/* --- Base card --- */
.card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
/* A colour bar that wipes across the top edge on hover */
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal-600), var(--gold-400), var(--clay-500));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--t-slow) var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--line-teal);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: var(--s-3); }
.card p { font-size: var(--f-sm); }
.card .link-arrow { margin-top: auto; padding-top: var(--s-5); align-self: flex-start; }

/* Icon chip inside cards */
.card-icon {
  width: 58px; height: 58px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal-50), var(--teal-100));
  color: var(--teal-700);
  margin-bottom: var(--s-5);
  transition: transform var(--t-med) var(--ease-spring),
              background var(--t-med), color var(--t-med);
}
.card-icon .ico { width: 28px; height: 28px; }
.card:hover .card-icon {
  transform: translateY(-3px) rotate(-5deg) scale(1.06);
  background: linear-gradient(145deg, var(--teal-700), var(--teal-900));
  color: var(--gold-400);
}
.card-icon.gold { background: linear-gradient(145deg, var(--gold-200), #F6D7AC); color: var(--gold-600); }
.card:hover .card-icon.gold { background: linear-gradient(145deg, var(--gold-500), var(--clay-500)); color: var(--white); }
.card-icon.clay { background: linear-gradient(145deg, var(--clay-200), #F2C9BA); color: var(--clay-600); }
.card:hover .card-icon.clay { background: linear-gradient(145deg, var(--clay-500), var(--clay-600)); color: var(--white); }

/* --- Sector card: large photo + overlay, used for the four focus areas --- */
.sector-card {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 26rem; padding: var(--s-5);
  border-radius: var(--r-lg); overflow: hidden;
  color: var(--white);
  box-shadow: var(--sh-md);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.sector-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter var(--t-slow);
}
.sector-card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(6,51,47,.97) 0%, rgba(6,51,47,.93) 38%,
    rgba(6,51,47,.70) 64%, rgba(6,51,47,.30) 88%, rgba(6,51,47,.16) 100%);
  transition: background var(--t-slow) var(--ease-out);
}
.sector-card:hover { transform: translateY(-6px); box-shadow: var(--sh-xl); }
.sector-card:hover img { transform: scale(1.09); }
.sector-card:hover::after {
  background: linear-gradient(to top,
    rgba(11,79,74,.97) 0%, rgba(13,95,88,.92) 38%,
    rgba(14,107,99,.72) 66%, rgba(6,51,47,.34) 100%);
}
.sector-card h3 { color: var(--white); margin-bottom: var(--s-3); }
.sector-card p {
  font-size: var(--f-sm); color: rgba(255,255,255,.82);
  margin-bottom: var(--s-4);
  transition: color var(--t-med) var(--ease-out);
}
.sector-card:hover p { color: rgba(255,255,255,.94); }
.sector-card .card-icon {
  width: 48px; height: 48px; margin-bottom: var(--s-4);
  background: rgba(255,255,255,.14); color: var(--gold-400);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.sector-card .card-icon .ico { width: 24px; height: 24px; }
.sector-card:hover .card-icon { background: var(--gold-400); color: var(--teal-900); }
.sector-card .link-arrow { color: var(--gold-400); margin-top: 0; padding-top: 0; }
/* Whole card clickable without nesting interactive elements */
.stretch::after { content: ''; position: absolute; inset: 0; z-index: 1; }

/* --- Program card: image on top, body below --- */
.prog-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.prog-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line-teal); }
.prog-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-50); }
.prog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.prog-card:hover .prog-media img { transform: scale(1.07); }
.prog-media .pill { position: absolute; top: var(--s-4); left: var(--s-4); background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.prog-body { padding: var(--s-6); display: flex; flex-direction: column; flex: 1; }
.prog-body h3 { font-size: var(--f-lg); margin-bottom: var(--s-3); }
.prog-body p { font-size: var(--f-sm); }
.prog-metric {
  display: inline-block; font-weight: 800; color: var(--clay-600);
  font-size: var(--f-sm);
}

/* --- Highlight / impact figure inside prose --- */
.figure-inline {
  font-family: var(--font-display); font-weight: 700;
  color: var(--teal-700); font-size: 1.1em;
}

/* --- Feature row: alternating image + text --- */
.feature-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-lg); aspect-ratio: 4 / 3;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.feature-media:hover img { transform: scale(1.05); }
/* Decorative offset frame behind the photo */
.feature-media::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-lg);
}
.framed { position: relative; }
.framed::after {
  content: ''; position: absolute; z-index: -1;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 2px solid var(--gold-400); border-radius: var(--r-lg);
  opacity: .45;
}
.framed.flip::after { inset: 1.5rem 1.5rem -1.5rem -1.5rem; }

/* Floating stat badge over a photo */
.media-badge {
  position: absolute; z-index: 3;
  bottom: var(--s-5); left: var(--s-5);
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  border: 1px solid rgba(255,255,255,.6);
}
.media-badge .num {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.7rem; color: var(--teal-800); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.media-badge .lbl {
  font-size: var(--f-xs); font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}

/* --- Quote / testimonial --- */
.quote {
  position: relative;
  padding: var(--s-7) var(--s-6) var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-400);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.quote::before {
  content: '\201C';
  position: absolute; top: -.1em; left: var(--s-5);
  font-family: var(--font-display); font-size: 5rem; line-height: 1;
  color: var(--gold-200); z-index: 0;
}
.quote p { position: relative; z-index: 1; font-size: var(--f-md); color: var(--ink-soft); font-style: italic; }
.quote cite {
  display: block; margin-top: var(--s-4); font-style: normal;
  font-weight: 700; font-size: var(--f-sm); color: var(--teal-700);
}
.quote cite span { display: block; font-weight: 500; color: var(--muted); font-size: var(--f-xs); }
.is-dark .quote { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); border-left-color: var(--gold-400); }
.is-dark .quote p { color: rgba(255,255,255,.86); }
.is-dark .quote::before { color: rgba(242,163,65,.2); }

/* --- Person card --- */
.person {
  text-align: center; padding: var(--s-6) var(--s-5);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.person:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--line-teal); }
.person .avatar {
  width: 74px; height: 74px; margin: 0 auto var(--s-4);
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal-700), var(--teal-900));
  color: var(--gold-400);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  box-shadow: var(--sh-md);
  transition: transform var(--t-med) var(--ease-spring);
}
.person:hover .avatar { transform: scale(1.08) rotate(-4deg); }
.person h4 { font-size: var(--f-base); margin-bottom: .3rem; }
.person .role { font-size: var(--f-xs); color: var(--accent-ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.person p { font-size: var(--f-sm); margin-top: var(--s-3); }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--teal-500), var(--gold-400), transparent);
  border-radius: 2px;
  transform-origin: 50% 0;
  transition: transform 1.4s var(--ease-out);
}
.js-reveal .timeline::before { transform: scaleY(0); }
.timeline.is-visible::before { transform: scaleY(1); }
.tl-item { position: relative; padding-left: 3rem; padding-bottom: var(--s-7); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 4px; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--teal-600);
  box-shadow: 0 0 0 4px var(--cream);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med) var(--ease-spring);
  z-index: 1;
}
.tl-item:hover::before { background: var(--gold-400); border-color: var(--gold-500); transform: scale(1.25); }
.tl-date {
  display: inline-block; font-size: var(--f-xs); font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: var(--s-2);
}
.tl-item h4 { margin-bottom: var(--s-2); }
.tl-item p { font-size: var(--f-sm); }
.is-dark .tl-item::before { background: var(--teal-900); box-shadow: 0 0 0 4px var(--teal-900); }

/* --- Accordion (FAQ) --- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: var(--s-5) 0; text-align: left;
  font-family: var(--font-display); font-size: var(--f-lg); font-weight: 600;
  color: var(--ink);
  transition: color var(--t-fast);
}
.acc-trigger:hover { color: var(--teal-700); }
.acc-trigger .sign {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: var(--teal-50); color: var(--teal-700);
  transition: background var(--t-med), color var(--t-med), transform var(--t-med) var(--ease-out);
}
.acc-trigger[aria-expanded="true"] .sign { background: var(--teal-800); color: var(--white); transform: rotate(135deg); }
.acc-trigger .sign::before, .acc-trigger .sign::after {
  content: ''; position: absolute; background: currentColor; border-radius: 2px;
}
.acc-trigger .sign::before { width: 13px; height: 2px; }
.acc-trigger .sign::after  { width: 2px; height: 13px; }
.acc-panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out);
}
.acc-panel > div { overflow: hidden; }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel p { font-size: var(--f-sm); padding-bottom: var(--s-5); max-width: var(--measure); }

/* --- Gallery --- */
.gallery { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.gal-item {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--sh-sm); cursor: pointer;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter var(--t-med); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: var(--s-6) var(--s-4) var(--s-4);
  background: linear-gradient(to top, rgba(6,51,47,.94), transparent);
  color: var(--white); font-size: var(--f-sm); font-weight: 600;
  transform: translateY(8px); opacity: .92;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med);
}
.gal-item:hover { transform: translateY(-5px) ; box-shadow: var(--sh-lg); }
.gal-item:hover img { transform: scale(1.08); }
.gal-item:hover figcaption { transform: translateY(0); opacity: 1; }
/* Make a couple of tiles span wider for an editorial rhythm */
.gallery.mosaic .gal-item:nth-child(4n+1) { grid-column: span 2; aspect-ratio: 16/10; }
@media (max-width: 760px) { .gallery.mosaic .gal-item:nth-child(4n+1) { grid-column: span 1; aspect-ratio: 4/3; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: rgba(6,51,47,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; padding: var(--s-5);
  transition: opacity var(--t-med), visibility var(--t-med);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { max-width: min(1100px, 92vw); animation: pop-in var(--t-med) var(--ease-out); }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--r-md); box-shadow: var(--sh-xl); }
.lightbox figcaption { color: rgba(255,255,255,.85); text-align: center; margin-top: var(--s-4); font-size: var(--f-sm); }
.lightbox .lb-close {
  position: absolute; top: var(--s-5); right: var(--s-5);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: var(--white);
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring);
}
.lightbox .lb-close:hover { background: var(--clay-500); transform: rotate(90deg); }

/* --- Pull-out note / callout --- */
.note {
  display: flex; gap: var(--s-4); align-items: flex-start;
  padding: var(--s-5); border-radius: var(--r-md);
  background: var(--teal-50); border: 1px solid var(--line-teal);
  font-size: var(--f-sm);
}
.note .ico { width: 22px; height: 22px; color: var(--teal-700); flex-shrink: 0; margin-top: 2px; }
.note.gold { background: var(--gold-200); border-color: rgba(185,115,26,.22); }
.note.gold .ico { color: var(--gold-600); }

/* --- Credential tiles (registration numbers) --- */
.cred {
  padding: var(--s-5); border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med), box-shadow var(--t-med);
}
.cred:hover { transform: translateY(-4px); border-color: var(--gold-400); box-shadow: var(--sh-md); }
.cred .val {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: var(--f-lg); color: var(--teal-800); margin-bottom: .3rem;
  word-break: break-word;
}
.cred .key {
  display: block;
  font-size: var(--f-xs); font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; line-height: 1.4;
}
.cred .sub {
  display: block;
  font-size: var(--f-xs); color: var(--accent-ink);
  margin-top: .35rem; font-weight: 600; line-height: 1.4;
}

/* ==================== 10. STATS, COUNTERS, MARQUEE ==================== */

.stat { text-align: center; padding: var(--s-5) var(--s-3); }
.stat .num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1; color: var(--teal-800);
  letter-spacing: -.03em; margin-bottom: var(--s-2);
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  display: block;
  font-size: var(--f-xs); font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .1em; line-height: 1.4;
}
.stat .sub { display: block; font-size: var(--f-xs); color: var(--muted); margin-top: .4rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.is-dark .stat .num { color: var(--white); }
.is-dark .stat .lbl, .is-dark .stat .sub { color: rgba(255,255,255,.58); }

/* Divided stat row */
.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
}
.stat-row .stat { border-right: 1px solid var(--line); }
.stat-row .stat:last-child { border-right: 0; }
.is-dark .stat-row { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.is-dark .stat-row .stat { border-right-color: rgba(255,255,255,.1); }

/* Partner marquee — infinite scroll, pauses on hover */
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: var(--s-6); width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: grid; place-items: center; text-align: center;
  min-width: 15rem; padding: var(--s-5) var(--s-6);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--f-sm); font-weight: 700; color: var(--ink-soft);
  line-height: 1.4;
  transition: border-color var(--t-med), color var(--t-med), transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.marquee-item span { display: block; font-weight: 500; font-size: var(--f-xs); color: var(--muted); }
.marquee-item:hover {
  border-color: var(--gold-400); color: var(--teal-800);
  transform: translateY(-4px); box-shadow: var(--sh-md);
}

/* Big CTA band */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(125deg, var(--teal-900) 0%, var(--teal-800) 55%, var(--teal-700) 100%);
  border-radius: var(--r-xl);
  padding: clamp(2.75rem, 6vw, 5rem);
  color: rgba(255,255,255,.82);
  box-shadow: var(--sh-xl);
}
.cta-band::before {
  content: ''; position: absolute; z-index: -1; inset: -40% -20% auto auto;
  width: 40rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,163,65,.34), transparent 64%);
  filter: blur(60px); animation: drift 16s var(--ease-in-out) infinite;
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 100%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 20% 100%, #000, transparent 70%);
}
.cta-band h2 { color: var(--white); margin-bottom: var(--s-4); max-width: 20ch; }
.cta-band p { max-width: 54ch; }
.cta-band .btn-row { margin-top: var(--s-7); display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* ============================== 11. FORMS ============================== */

.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--sh-md);
}
.field { position: relative; margin-bottom: var(--s-5); }
.field label {
  display: block; font-size: var(--f-xs); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: var(--s-2);
}
.field .req { color: var(--clay-500); }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1.1rem;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-size: var(--f-sm); color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 7.5rem; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--teal-100); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white);
  border-color: var(--teal-600);
  box-shadow: 0 0 0 4px rgba(22,156,145,.14);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8D89' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.75rem; cursor: pointer;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-note {
  margin-top: var(--s-4); padding: var(--s-4);
  border-radius: var(--r-sm); font-size: var(--f-sm); font-weight: 600;
  display: none;
}
.form-note.show { display: block; animation: pop-in var(--t-med) var(--ease-out); }
.form-note.ok  { background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(26,127,88,.2); }
.form-note.err { background: var(--err-bg); color: var(--err); border: 1px solid rgba(180,64,47,.2); }

/* ======================= 12. FOOTER & UTILITIES ======================= */

.footer {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--teal-900); color: rgba(255,255,255,.68);
  padding-top: var(--section-y-tight);
  font-size: var(--f-sm);
}
.footer::before {
  content: ''; position: absolute; z-index: -1; inset: -20rem auto auto -12rem;
  width: 42rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,156,145,.26), transparent 66%);
  filter: blur(80px);
}
.footer-grid {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  padding-bottom: var(--s-8);
}
.footer h4 {
  color: var(--white); font-size: var(--f-base);
  margin-bottom: var(--s-5); font-family: var(--font-sans);
  font-weight: 800; letter-spacing: .02em;
}
.footer-brand p { margin-top: var(--s-4); max-width: 34ch; }
.footer-links li + li { margin-top: var(--s-3); }
.footer-links a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  transition: color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.footer-links a::before {
  content: ''; width: 0; height: 1.5px; background: var(--gold-400); border-radius: 2px;
  transition: width var(--t-med) var(--ease-out);
}
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::before { width: 12px; }
.footer-contact li {
  display: flex; gap: var(--s-3); align-items: flex-start;
  line-height: 1.6;
}
.footer-contact li + li { margin-top: var(--s-4); }
.footer-contact .ico { width: 17px; height: 17px; color: var(--gold-400); flex-shrink: 0; margin-top: 4px; }
.footer-contact a:hover { color: var(--white); }
.footer-social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  transition: background var(--t-fast), transform var(--t-fast) var(--ease-spring), color var(--t-fast);
}
.footer-social a:hover { background: var(--gold-400); color: var(--teal-900); transform: translateY(-3px); }
.footer-social .ico { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--f-xs); color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: var(--gold-400); }
.footer-bottom .creds { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* Back to top */
.to-top {
  position: fixed; right: var(--s-5); bottom: var(--s-5); z-index: 400;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-800); color: var(--white);
  display: grid; place-items: center;
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity var(--t-med), visibility var(--t-med),
              transform var(--t-med) var(--ease-spring), background var(--t-fast);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { background: var(--gold-400); color: var(--teal-900); }
.to-top .ico { width: 20px; height: 20px; }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: var(--f-sm); }
.xsmall { font-size: var(--f-xs); }
.nowrap { white-space: nowrap; }

/* ============================ 13. RESPONSIVE ============================ */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split.lean-left, .split.lean-right { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .brand-logo { height: 46px; }
  .header.is-stuck .brand-logo { height: 42px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; z-index: 295;
    width: min(360px, 86vw);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: calc(var(--header-h) + 1.5rem) var(--s-5) var(--s-6);
    background: var(--white);
    box-shadow: var(--sh-xl);
    overflow-y: auto;
    transform: translateX(104%);
    /* visibility keeps the closed drawer out of the tab order and off the
       accessibility tree; it flips back the instant the drawer opens. */
    visibility: hidden;
    transition: transform var(--t-slow) var(--ease-out),
                visibility var(--t-slow) var(--ease-out);
  }
  .nav-links.is-open { transform: translateX(0); visibility: visible; }
  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li > a { padding: var(--s-4) 0; justify-content: space-between; font-size: var(--f-base); width: 100%; }
  .nav-links > li > a::after { display: none; }

  /* Dropdowns become inline accordions on mobile */
  .dropdown-menu {
    position: static; translate: none; transform: none;
    opacity: 1; visibility: visible;
    box-shadow: none; border: 0; min-width: 0;
    padding: 0 0 var(--s-3) var(--s-3);
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows var(--t-med) var(--ease-out);
  }
  .dropdown-menu::before { display: none; }
  .dropdown-menu > li { overflow: hidden; }
  .dropdown.is-open > .dropdown-menu { grid-template-rows: 1fr; }
  .dropdown:hover > .dropdown-menu { grid-template-rows: 0fr; }
  .dropdown.is-open:hover > .dropdown-menu { grid-template-rows: 1fr; }
  .dropdown.is-open > a .caret { transform: rotate(180deg); }

  .nav-cta .btn { display: none; }
  .nav-links .mobile-cta { display: block; margin-top: var(--s-5); border: 0; }
  .nav-links .mobile-cta .btn { width: 100%; }

  .split { grid-template-columns: 1fr !important; }
  .split .order-first { order: -1; }
  .framed::after { display: none; }
  .g-3, .g-4 { grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
  .topbar-left .hide-sm { display: none; }
}

@media (min-width: 921px) { .nav-links .mobile-cta { display: none; } }

@media (max-width: 640px) {
  :root { --gutter: 1.25rem; }
  .hero { min-height: auto; padding-block: clamp(3rem, 12vw, 5rem); }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .hero .btn-row .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .g-2 { grid-template-columns: 1fr; }
  .stat-row .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-row .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); }
  .topbar-inner { justify-content: center; font-size: .72rem; }
  .to-top { right: var(--s-4); bottom: var(--s-4); }
}

@media print {
  .header, .topbar, .footer, .to-top, .scroll-progress, .nav-scrim, .scroll-cue { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* ========================= 14. EVENTS (public) ========================= */

.event-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out),
              border-color var(--t-med) var(--ease-out);
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--line-teal);
}

.event-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-50); }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.event-card:hover .event-media img { transform: scale(1.07); }

/* Torn-calendar date chip */
.event-date {
  position: absolute; top: var(--s-4); left: var(--s-4); z-index: 2;
  display: grid; place-items: center;
  width: 58px; padding: .5rem 0 .45rem;
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  line-height: 1;
  transition: transform var(--t-med) var(--ease-spring);
}
.event-card:hover .event-date { transform: translateY(-3px) scale(1.05); }
.event-date .d {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  color: var(--teal-800); font-variant-numeric: tabular-nums;
}
.event-date .m {
  font-size: .62rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay-600); margin-top: .18rem;
}
.event-flag {
  position: absolute; top: var(--s-4); right: var(--s-4); z-index: 2;
  background: rgba(255,255,255,.94); color: var(--ok);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-color: rgba(26,127,88,.22);
}

.event-body { padding: var(--s-6); display: flex; flex-direction: column; flex: 1; gap: var(--s-3); }
.event-meta { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.event-where {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--f-xs); font-weight: 600; color: var(--muted);
}
.event-where .ico { width: 14px; height: 14px; color: var(--clay-500); }
.event-body h3 { font-size: var(--f-lg); }
.event-body > p { font-size: var(--f-sm); margin: 0; }
.event-when {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--f-xs); font-weight: 700; color: var(--teal-700);
}
.event-when .ico { width: 15px; height: 15px; }

/* Inline "read more" */
.event-more > summary {
  cursor: pointer; list-style: none;
  font-size: var(--f-xs); font-weight: 800; letter-spacing: .04em;
  color: var(--accent-ink); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: color var(--t-fast);
}
.event-more > summary::-webkit-details-marker { display: none; }
.event-more > summary::after {
  content: ''; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px,-1px);
  transition: transform var(--t-med) var(--ease-out);
}
.event-more[open] > summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.event-more > summary:hover { color: var(--clay-600); }
.event-more p { font-size: var(--f-sm); margin-top: var(--s-3); }
.event-more[open] p { animation: pop-in var(--t-med) var(--ease-out); }

/* Filter chips */
.filter-bar {
  display: flex; gap: var(--s-3); flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.filter-chip {
  padding: .55rem 1.2rem; border-radius: var(--r-pill);
  background: var(--white); border: 1.5px solid var(--line);
  font-size: var(--f-xs); font-weight: 700; color: var(--body);
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast) var(--ease-out);
}
.filter-chip:hover { border-color: var(--teal-600); color: var(--teal-700); transform: translateY(-2px); }
.filter-chip.is-active {
  background: var(--teal-800); border-color: var(--teal-800); color: var(--white);
}

/* Empty state */
.event-empty {
  grid-column: 1 / -1;
  display: grid; place-items: center; gap: var(--s-4);
  padding: var(--s-9) var(--s-5); text-align: center;
  background: var(--white); border: 1.5px dashed var(--line);
  border-radius: var(--r-lg); color: var(--muted);
}
.event-empty .ico { width: 36px; height: 36px; color: var(--teal-100); }

/* ==========================================================================
   Programme pages (generated from data/programs.json by scripts/build.py)
   ========================================================================== */
.prog-layout {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) 20rem; align-items: start;
}
@media (max-width: 960px) { .prog-layout { grid-template-columns: 1fr; } }

/* Long-form text imported from the original site */
.prose { max-width: var(--measure, 68ch); color: var(--body); font-size: var(--f-base); line-height: var(--lh-body); }
.prose > * + * { margin-top: var(--s-4); }
.prose h3, .prose h4 { font-family: var(--font-display); color: var(--ink); margin-top: var(--s-7); }
.prose h3 { font-size: var(--f-lg); }
.prose h4 { font-size: var(--f-md); }
.prose p > strong:first-child { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s-2); }
.prose li::marker { color: var(--primary-lift, var(--teal-500)); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--f-sm); }
.prose td, .prose th { border: 1px solid var(--line); padding: var(--s-2) var(--s-3); text-align: left; vertical-align: top; }

.prog-aside { position: sticky; top: calc(var(--header-h, 80px) + var(--s-5)); display: grid; gap: var(--s-5); }
@media (max-width: 960px) { .prog-aside { position: static; } }
.aside-card {
  background: var(--surface, var(--white)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-sm);
}
.aside-card h3 { font-size: var(--f-md); margin-bottom: var(--s-3); }
.aside-card p { font-size: var(--f-sm); }
.aside-card.is-cta { background: linear-gradient(150deg, var(--teal-800), var(--teal-900)); border-color: transparent; color: rgba(255,255,255,.85); }
.aside-card.is-cta h3 { color: var(--white); }
.aside-card.is-cta .btn { margin-top: var(--s-4); }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-1); }
.related-list a {
  display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  font-size: var(--f-sm); font-weight: 600; color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.related-list a:hover, .related-list a:focus-visible { background: var(--teal-50); color: var(--primary); }

.prog-nav { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-8); }
.prog-nav a { font-weight: 600; color: var(--primary); }

/* Programme directory */
.prog-dir { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
.prog-tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface, var(--white)); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs); transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med), border-color var(--t-med);
}
.prog-tile:hover, .prog-tile:focus-visible { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-teal); }
.prog-tile .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-50); }
.prog-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog-tile .body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.prog-tile h3 { font-size: var(--f-md); }
.prog-tile p { font-size: var(--f-sm); color: var(--muted); }
.prog-tile .more { margin-top: auto; padding-top: var(--s-2); font-size: var(--f-sm); font-weight: 700; color: var(--primary); }
.sector-block + .sector-block { margin-top: var(--s-10); }
.sector-block > h2 { font-size: var(--f-xl); margin-bottom: var(--s-5); }

/* Course list (Institute page) */
.course-facts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.course-facts .pill { font-size: var(--f-xs); }
.tick-list { list-style: none; padding: 0; display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.tick-list li { position: relative; padding-left: 1.6em; font-size: var(--f-sm); }
.tick-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7em; height: .4em; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }

/* Team cards with a real photograph instead of initials */
.person .avatar.photo { width: 128px; height: 128px; overflow: hidden; background: var(--teal-50); }
.person .avatar.photo img { width: 100%; height: 100%; object-fit: cover; }
.person .avatar.photo.wide { width: 168px; border-radius: 64px; }
.place-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* Two-column fact tables (statutory and bank details) */
.table-wrap { margin-top: var(--s-5); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--f-sm); }
.data-table th, .data-table td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table th { width: 42%; font-weight: 600; color: var(--muted); background: var(--cream); }
.data-table td { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }

.copy-btn {
  margin-left: var(--s-2); padding: .15rem .6rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-teal); background: var(--teal-50); color: var(--teal-700);
  font: 600 var(--f-xs)/1.6 var(--font-sans); cursor: pointer; vertical-align: middle;
}
.copy-btn:hover, .copy-btn:focus-visible { background: var(--teal-700); color: var(--white); }

/* Events without a photograph show the emblem instead of an unrelated picture */
.event-media img.is-placeholder { object-fit: contain; padding: 18%; background: linear-gradient(150deg, var(--teal-50), var(--cream-2)); }

.card > .pill { align-self: flex-start; }

/* Notice bar (homepage, institute) — filled from data/notices.json */
.notice-bar .container { display: grid; gap: var(--s-2); justify-items: center; text-align: center; }
.notice-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .6rem; font-size: var(--f-sm); }
.notice-line a:not(.link-arrow) { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.notice-card .pill { margin-bottom: var(--s-2); }
