/* Design Forty — prototype 2026
 *
 * Colour palettes (logo image files are never altered):
 *   data-palette="d1" Lightest. Bands, CTA, pillars and
 *                     footer use the pale tone from Jackson's second swatch
 *                     (PIL #e0d7ea) and a lighter wash #f3eef8, with dark
 *                     violet-charcoal text. Gold is the only solid button.
 *   data-palette="d2" Light, a step more mid (wash to #d5c6e6).
 *   data-palette="d3" Default (chosen). Light, bands sit close to the second swatch mid
 *                     (PIL #cabade / hint #d0bde3).
 *   data-palette="d4" Light, most colour: bands near the third swatch tone
 *                     (PIL #b39fd0 is a touch too dark for muted AA, so
 *                     #c4b0db is used). Still dark text, no heavy fills.
 *   data-palette="c"  Earlier darker lavender: bands #4a3f5c, footer #3a3248.
 *   data-palette="a"  Muted plum / charcoal-plum.
 *   data-palette="b"  Warm neutrals.
 * Brand purple #7c2a86 is the logo and focus rings only.
 * Switch by changing data-palette on <html> in layouts/base.njk.
 *
 * Original tokens, for reference:
 *   --purple #7c2a86  --purple-deep #57206a  --purple-text #5e2168
 *   --bg #f7f4f9  --line #e4dce8  --paper #fffcff
 *   hero fallback #2a1730
 *   hero overlay rgba(43,16,54,0.18/0.30) → rgba(30,10,40,0.88)
 *   pillars/stats #7a2483 → #5b1d6b
 *   footer #1c1022  cta --purple-deep  challenge/project-cta purple gradients
 */
:root,
html[data-palette="a"] {
  /* Accent — logo-adjacent full-strength purple, used sparingly */
  --purple: #7c2a86;
  --purple-deep: #453548;
  --purple-text: #5a455c;
  --focus-ring: #7c2a86;
  --heading: #352e36;
  --link: #5a455c;
  --link-hover: #453548;

  --gold: #c79a2b;
  --gold-text: #8b6814;
  --gold-soft: #e8d7a2;
  --ink: #2b2b2b;
  --muted: #6a6568;
  --line: #e3dfdc;
  --bg: #f6f4f2;
  --paper: #fffdfb;
  --white: #ffffff;
  --banner: #2b2b2b;
  --form-line: #d4d0cd;
  --tint: #f1ecee;
  --tint-text: #453548;

  --hero-fallback: #2a2628;
  --hero-overlay: linear-gradient(180deg, rgba(28,24,26,0.10) 0%, rgba(28,24,26,0.22) 42%, rgba(22,18,20,0.80) 100%);
  --hub-hero-overlay: linear-gradient(180deg, rgba(28,24,26,0.14) 0%, rgba(22,18,20,0.80) 100%);
  --band: #2f2a30;
  --cta-bg: #2f2a30;
  --footer-bg: #241f24;
  --footer-text: #ece8e6;
  --footer-link: #f0e4c4;
  --footer-muted: #b3abae;
  --card-dark: #1f1c1e;
  --slot-dark: #241f24;
  --slot-stripe: #2c272c;

  --radius: 14px;
  --shadow: 0 16px 40px rgba(40, 32, 36, 0.08);
  --shadow-hover: 0 18px 36px rgba(40, 32, 36, 0.14);
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --max: 1180px;
  --header-h: 76px;
  --on-band: #ffffff;
  --on-band-muted: rgba(255,255,255,0.86);
  --on-band-kicker: var(--gold-soft);
  --btn-bg: var(--band);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-hover-bg: var(--footer-bg);
  --btn-hover-fg: #fff;
  --selected-bg: var(--band);
  --selected-fg: #fff;
  --selected-border: var(--band);
  --footer-heading: #ffffff;
  --footer-link-hover: #ffffff;
  --footer-line: rgba(255,255,255,0.14);
}

html[data-palette="b"] {
  --purple: #7c2a86;
  --purple-deep: #3e3a3c;
  --purple-text: #4a4346;
  --focus-ring: #7c2a86;
  --heading: #2b2b2b;
  --link: #4a4346;
  --link-hover: #2b2b2b;

  --line: #e5e0d8;
  --bg: #f5f3ef;
  --paper: #fffdf9;
  --form-line: #d6d1c9;
  --tint: #eeeae6;
  --tint-text: #3e3a3c;

  --hero-fallback: #1e1c1b;
  --hero-overlay: linear-gradient(180deg, rgba(20,18,16,0.08) 0%, rgba(20,18,16,0.20) 42%, rgba(18,16,15,0.80) 100%);
  --hub-hero-overlay: linear-gradient(180deg, rgba(20,18,16,0.12) 0%, rgba(18,16,15,0.80) 100%);
  --band: #2a2826;
  --cta-bg: #2a2826;
  --footer-bg: #1c1b1a;
  --footer-text: #eceae6;
  --footer-link: #f0e4c4;
  --footer-muted: #b0aaa6;
  --card-dark: #1c1b1a;
  --slot-dark: #1c1b1a;
  --slot-stripe: #2a2826;

  --shadow: 0 16px 40px rgba(28, 24, 20, 0.08);
  --shadow-hover: 0 18px 36px rgba(28, 24, 20, 0.14);
  --on-band: #ffffff;
  --on-band-muted: rgba(255,255,255,0.86);
  --on-band-kicker: var(--gold-soft);
  --btn-bg: var(--band);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-hover-bg: var(--footer-bg);
  --btn-hover-fg: #fff;
  --selected-bg: var(--band);
  --selected-fg: #fff;
  --selected-border: var(--band);
  --footer-heading: #ffffff;
  --footer-link-hover: #ffffff;
  --footer-line: rgba(255,255,255,0.14);
}

html[data-palette="c"] {
  /* Swatch (PIL samples): pale #e1d8eb, mid #cbbbdf, mid-deep #b4a0d1, deep #9080a7.
     Brand purple #7c2a86 is --focus-ring only — never a fill, band or button. */
  --purple: #5c4f72;
  --purple-deep: #4a3f5c;
  --purple-text: #5c4f72;
  --focus-ring: #7c2a86;
  --heading: #2f2a38;
  --link: #5c4f72;
  --link-hover: #4a3f5c;

  --gold: #c79a2b;
  --gold-text: #745210;
  --gold-soft: #e8d7a2;
  --ink: #2c2833;
  --muted: #564e62;
  --line: #d4cae3;
  --bg: #f6f3f9;
  --paper: #fdfcff;
  --white: #ffffff;
  --banner: #2f2a38;
  --form-line: #cfc6de;
  --tint: #e1d8eb;
  --tint-text: #4a3f5c;

  --hero-fallback: #2f2a38;
  --hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.10) 0%, rgba(47,42,56,0.22) 42%, rgba(42,36,52,0.80) 100%);
  --hub-hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.14) 0%, rgba(42,36,52,0.80) 100%);
  --band: #4a3f5c;
  --cta-bg: #4a3f5c;
  --footer-bg: #3a3248;
  --footer-text: #f3eef8;
  --footer-link: #f0e4c4;
  --footer-muted: #b3a9c0;
  --card-dark: #2a2533;
  --slot-dark: #3a3248;
  --slot-stripe: #4a3f5c;

  --shadow: 0 16px 40px rgba(47, 42, 56, 0.08);
  --shadow-hover: 0 18px 36px rgba(47, 42, 56, 0.14);
  --on-band: #ffffff;
  --on-band-muted: rgba(255,255,255,0.86);
  --on-band-kicker: var(--gold-soft);
  --btn-bg: var(--band);
  --btn-fg: #fff;
  --btn-border: transparent;
  --btn-hover-bg: var(--footer-bg);
  --btn-hover-fg: #fff;
  --selected-bg: var(--band);
  --selected-fg: #fff;
  --selected-border: var(--band);
  --footer-heading: #ffffff;
  --footer-link-hover: #ffffff;
  --footer-line: rgba(255,255,255,0.14);
}


html[data-palette="d"],
html[data-palette="d1"] {
  /* Second swatch PIL (phone UI ignored): pale #e0d7ea, mid #cabade, deep-light #b39fd0.
     First swatch pale/mid remain available. Brand purple is --focus-ring only. */
  --purple: #5c4f72;
  --purple-deep: #4a3f5c;
  --purple-text: #5c4f72;
  --focus-ring: #7c2a86;
  --heading: #2f2a38;
  --link: #5c4f72;
  --link-hover: #4a3f5c;

  --gold: #c79a2b;
  --gold-text: #745210;
  --gold-soft: #e8d7a2;
  --ink: #2c2833;
  --muted: #564e62;
  --line: #d7cae6;
  --bg: #f7f3fa;
  --paper: #fcf9fd;
  --white: #ffffff;
  --banner: #2f2a38;
  --form-line: #d4c6e4;
  --tint: #e0d7ea;
  --tint-text: #4a3f5c;

  --hero-fallback: #2f2a38;
  --hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.06) 0%, rgba(47,42,56,0.16) 40%, rgba(42,36,52,0.70) 100%);
  --hub-hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.10) 0%, rgba(42,36,52,0.70) 100%);
  --band: linear-gradient(180deg, #f3eef8 0%, #e0d7ea 100%);
  --cta-bg: linear-gradient(180deg, #f3eef8 0%, #e0d7ea 100%);
  --footer-bg: #eee8f4;
  --footer-text: #2c2833;
  --footer-link: #5c4f72;
  --footer-muted: #564e62;
  --footer-heading: #2f2a38;
  --footer-link-hover: #4a3f5c;
  --footer-line: #d7cae6;
  --card-dark: #2a2533;
  --slot-dark: #3a3248;
  --slot-stripe: #4a3f5c;

  --on-band: #2f2a38;
  --on-band-muted: #564e62;
  --on-band-kicker: #745210;
  --btn-bg: transparent;
  --btn-fg: #2f2a38;
  --btn-border: #7a6b96;
  --btn-hover-bg: #e0d7ea;
  --btn-hover-fg: #2f2a38;
  --selected-bg: #e0d7ea;
  --selected-fg: #2f2a38;
  --selected-border: #7a6b96;

  --shadow: 0 16px 40px rgba(47, 42, 56, 0.08);
  --shadow-hover: 0 18px 36px rgba(47, 42, 56, 0.14);
}

html[data-palette="d2"] {
  --purple: #5c4f72;
  --purple-deep: #4a3f5c;
  --purple-text: #5c4f72;
  --focus-ring: #7c2a86;
  --heading: #2f2a38;
  --link: #5c4f72;
  --link-hover: #4a3f5c;
  --gold: #c79a2b;
  --gold-text: #6a4e12;
  --gold-soft: #e8d7a2;
  --ink: #2c2833;
  --muted: #564e62;
  --line: #d4c4e4;
  --bg: #f7f3fa;
  --paper: #fcf9fd;
  --white: #ffffff;
  --banner: #2f2a38;
  --form-line: #d0c0e0;
  --tint: #e0d7ea;
  --tint-text: #4a3f5c;
  --hero-fallback: #2f2a38;
  --hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.06) 0%, rgba(47,42,56,0.16) 40%, rgba(42,36,52,0.70) 100%);
  --hub-hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.10) 0%, rgba(42,36,52,0.70) 100%);
  --band: linear-gradient(180deg, #e0d7ea 0%, #d5c6e6 100%);
  --cta-bg: linear-gradient(180deg, #e0d7ea 0%, #d5c6e6 100%);
  --footer-bg: #e0d7ea;
  --footer-text: #2c2833;
  --footer-link: #5c4f72;
  --footer-muted: #564e62;
  --footer-heading: #2f2a38;
  --footer-link-hover: #4a3f5c;
  --footer-line: #d4c4e4;
  --card-dark: #2a2533;
  --slot-dark: #3a3248;
  --slot-stripe: #4a3f5c;
  --on-band: #2f2a38;
  --on-band-muted: #564e62;
  --on-band-kicker: #6a4e12;
  --btn-bg: transparent;
  --btn-fg: #2f2a38;
  --btn-border: #7a6b96;
  --btn-hover-bg: #e0d7ea;
  --btn-hover-fg: #2f2a38;
  --selected-bg: #e0d7ea;
  --selected-fg: #2f2a38;
  --selected-border: #7a6b96;
  --shadow: 0 16px 40px rgba(47, 42, 56, 0.08);
  --shadow-hover: 0 18px 36px rgba(47, 42, 56, 0.14);
}

html[data-palette="d3"] {
  --purple: #4a3f5c;
  --purple-deep: #4a3f5c;
  --purple-text: #4a3f5c;
  --focus-ring: #7c2a86;
  --heading: #2f2a38;
  --link: #4a3f5c;
  --link-hover: #3a3248;
  --gold: #c79a2b;
  --gold-text: #5a420c;
  --gold-soft: #e8d7a2;
  --ink: #2c2833;
  --muted: #4a3f5c;
  --line: #cbb9e0;
  --bg: #f7f3fa;
  --paper: #fcf9fd;
  --white: #ffffff;
  --banner: #2f2a38;
  --form-line: #c5b3db;
  --tint: #e0d7ea;
  --tint-text: #4a3f5c;
  --hero-fallback: #2f2a38;
  --hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.06) 0%, rgba(47,42,56,0.16) 40%, rgba(42,36,52,0.70) 100%);
  --hub-hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.10) 0%, rgba(42,36,52,0.70) 100%);
  --band: #cabade;
  --cta-bg: linear-gradient(180deg, #d5c6e6 0%, #cabade 100%);
  --footer-bg: #d3c3e5;
  --footer-text: #2c2833;
  --footer-link: #4a3f5c;
  --footer-muted: #4a3f5c;
  --footer-heading: #2f2a38;
  --footer-link-hover: #2f2a38;
  --footer-line: #b9a6d4;
  --card-dark: #2a2533;
  --slot-dark: #3a3248;
  --slot-stripe: #4a3f5c;
  --on-band: #2f2a38;
  --on-band-muted: #4a3f5c;
  --on-band-kicker: #5a420c;
  --btn-bg: transparent;
  --btn-fg: #2f2a38;
  --btn-border: #5c4f72;
  --btn-hover-bg: #e0d7ea;
  --btn-hover-fg: #2f2a38;
  --selected-bg: #e0d7ea;
  --selected-fg: #2f2a38;
  --selected-border: #5c4f72;
  --shadow: 0 16px 40px rgba(47, 42, 56, 0.08);
  --shadow-hover: 0 18px 36px rgba(47, 42, 56, 0.14);
}

html[data-palette="d4"] {
  --purple: #4a3f5c;
  --purple-deep: #4a3f5c;
  --purple-text: #4a3f5c;
  --focus-ring: #7c2a86;
  --heading: #2f2a38;
  --link: #4a3f5c;
  --link-hover: #3a3248;
  --gold: #c79a2b;
  --gold-text: #5a420c;
  --gold-soft: #e8d7a2;
  --ink: #2c2833;
  --muted: #4a3f5c;
  --line: #c4b0db;
  --bg: #f7f3fa;
  --paper: #fcf9fd;
  --white: #ffffff;
  --banner: #2f2a38;
  --form-line: #c0acd8;
  --tint: #e0d7ea;
  --tint-text: #4a3f5c;
  --hero-fallback: #2f2a38;
  --hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.06) 0%, rgba(47,42,56,0.16) 40%, rgba(42,36,52,0.70) 100%);
  --hub-hero-overlay: linear-gradient(180deg, rgba(47,42,56,0.10) 0%, rgba(42,36,52,0.70) 100%);
  --band: #c4b0db;
  --cta-bg: linear-gradient(180deg, #cabade 0%, #c4b0db 100%);
  --footer-bg: #cabade;
  --footer-text: #2c2833;
  --footer-link: #4a3f5c;
  --footer-muted: #4a3f5c;
  --footer-heading: #2f2a38;
  --footer-link-hover: #2f2a38;
  --footer-line: #b39fd0;
  --card-dark: #2a2533;
  --slot-dark: #3a3248;
  --slot-stripe: #4a3f5c;
  --on-band: #2f2a38;
  --on-band-muted: #4a3f5c;
  --on-band-kicker: #5a420c;
  --btn-bg: transparent;
  --btn-fg: #2f2a38;
  --btn-border: #5c4f72;
  --btn-hover-bg: #e0d7ea;
  --btn-hover-fg: #2f2a38;
  --selected-bg: #e0d7ea;
  --selected-fg: #2f2a38;
  --selected-border: #5c4f72;
  --shadow: 0 16px 40px rgba(47, 42, 56, 0.08);
  --shadow-hover: 0 18px 36px rgba(47, 42, 56, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.18; color: var(--heading); letter-spacing: 0; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.7rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.35rem); margin: 0 0 0.5em; }
h3 { font-size: 1.28rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
button, input, textarea, select { font: inherit; }
.skip {
  position: absolute; left: 12px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 8px 14px;
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(8px); }

/* Preview banner */
.preview-banner {
  background: var(--banner);
  color: #f4f0e8;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.55rem 1rem;
  position: sticky;
  top: 0;
  z-index: 80;
}
.preview-banner a { color: var(--gold-soft); }
.preview-banner strong { font-weight: 600; color: #fff; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.wrap-wide { width: min(1280px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 34px;
  z-index: 70;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.4rem; min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo img { height: 46px; width: auto; max-width: none; object-fit: contain; }
.logo span { display: none; }
nav.primary { display: flex; align-items: center; gap: 0.15rem 1.4rem; flex-wrap: wrap; }
nav.primary a {
  text-decoration: none; color: var(--ink); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; padding: 0.35rem 0 0.4rem; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
nav.primary a[aria-current="page"], nav.primary a:hover {
  color: var(--heading); border-bottom-color: var(--gold);
}
.header-tools { display: flex; align-items: center; gap: 1rem; }
.region-switch { display: flex; gap: 0.15rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.region-switch a, .region-switch span {
  text-decoration: none; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em;
  padding: 0.28rem 0.7rem; border-radius: 999px; color: var(--muted);
  transition: background .2s ease, color .2s ease;
}
.region-switch a:hover { color: var(--heading); }
.region-switch a.is-active, .region-switch a[aria-current="true"] {
  background: var(--selected-bg); color: var(--selected-fg); border: 1px solid var(--selected-border);
}
.header-wa {
  text-decoration: none; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--heading);
  border-bottom: 1px solid var(--gold); padding: 0.15rem 0 0.2rem;
  transition: color .2s ease, border-color .2s ease;
}
.header-wa:hover { color: var(--ink); border-bottom-color: var(--ink); }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 0.45rem 0.6rem; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none;
  border: 1px solid var(--btn-border); border-radius: 999px; padding: 0.8rem 1.35rem;
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); border-color: var(--btn-border); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #d4ac3e; color: var(--ink); border-color: #d4ac3e; }
.btn-ghost { background: transparent; color: var(--heading); border: 1px solid var(--btn-border); }
.btn-ghost:hover { background: var(--selected-bg); color: var(--selected-fg); border-color: var(--selected-border); }
.btn-accent { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-border); }
.btn-accent:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.cta .btn-ghost, .project-cta .btn-ghost, .challenge-hero .btn-ghost-light, .dash-challenge .btn-ghost-light {
  color: var(--on-band); border-color: color-mix(in srgb, var(--on-band) 55%, transparent);
}
.cta .btn-ghost:hover, .project-cta .btn-ghost:hover, .challenge-hero .btn-ghost-light:hover, .dash-challenge .btn-ghost-light:hover {
  background: var(--selected-bg); color: var(--selected-fg); border-color: var(--selected-border);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 820px);
  display: grid; align-items: end; color: #fff;
  background: var(--hero-fallback);
  overflow: hidden;
}
.hero img.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--hero-overlay);
}
.hero-copy {
  position: relative; z-index: 2; padding: 5.5rem 0 4rem;
  max-width: 44rem; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero .eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: #f0e0b0;
  margin: 0 0 0.35rem;
  text-shadow: 0 1px 2px rgba(22,18,20,0.55), 0 0 14px rgba(22,18,20,0.35);
}
.hero .eyebrow .ew-br { display: none; }
.hero .eyebrow::after {
  content: ""; display: block; width: 40px; height: 1px;
  background: var(--gold); margin: 0.9rem auto 0;
}
.hero h1 {
  color: #fff; font-size: clamp(2rem, 4.1vw, 3.15rem);
  font-weight: 500; line-height: 1.16; letter-spacing: -0.015em;
  max-width: 16ch; margin: 0 0 0.7em;
  text-shadow: 0 1px 2px rgba(22,18,20,0.45), 0 0 18px rgba(22,18,20,0.28);
}
.hero p {
  color: rgba(255,255,255,0.96); font-size: 1.02rem;
  font-weight: 400; letter-spacing: 0.01em; line-height: 1.5;
  max-width: 28rem; margin: 0;
  text-shadow: 0 1px 2px rgba(22,18,20,0.45), 0 0 16px rgba(22,18,20,0.28);
}
.hero .btn-row {
  justify-content: center; gap: 1.4rem; margin-top: 1.85rem;
}
.hero .btn {
  padding: 0.55rem 1.2rem; font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.08em; box-shadow: none;
}
.hero .btn-gold { color: var(--ink); }
.hero .btn-hero-secondary {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}
.hero .btn-hero-secondary:hover {
  background: rgba(255,255,255,0.12); color: #fff;
  border-color: #fff;
}

/* Slow 3-photo dissolve: 21s cycle, 7s per slide, 2s crossfade, subtle zoom.
   All three slides share the same 21s timeline (no animation-delay) so they stay in sync on every loop. */
.hero-dissolve .hero-slide {
  will-change: opacity, transform;
  transform-origin: center center;
}
.hero-dissolve .hero-slide-2,
.hero-dissolve .hero-slide-3 { opacity: 0; }
.hero-dissolve .hero-slide-1 { animation: hero-fade-1 21s ease-in-out infinite; }
.hero-dissolve .hero-slide-2 { animation: hero-fade-2 21s ease-in-out infinite; }
.hero-dissolve .hero-slide-3 { animation: hero-fade-3 21s ease-in-out infinite; }
@keyframes hero-fade-1 {
  0%, 23.81% { opacity: 1; transform: scale(1); }
  33.33% { opacity: 0; transform: scale(1.04); }
  33.34%, 90.47% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hero-fade-2 {
  0%, 23.8% { opacity: 0; transform: scale(1); }
  33.33% { opacity: 1; transform: scale(1.012); }
  57.14% { opacity: 1; transform: scale(1.028); }
  66.67% { opacity: 0; transform: scale(1.04); }
  66.68%, 100% { opacity: 0; transform: scale(1); }
}
@keyframes hero-fade-3 {
  0%, 57.13% { opacity: 0; transform: scale(1); }
  66.67% { opacity: 1; transform: scale(1.012); }
  90.48% { opacity: 1; transform: scale(1.028); }
  100% { opacity: 0; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dissolve .hero-slide {
    animation: none !important;
    transform: none !important;
    opacity: 0;
  }
  .hero-dissolve .hero-slide-1 { opacity: 1; }
}
.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}

/* Sections */
section { padding: 4.5rem 0; }
.section-kicker {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 0.55rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.rule { width: 64px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.4rem; }

.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Reusable project photo credit (services, about, and elsewhere) */
.shot-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-self: start;
  min-width: 0;
}
.project-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.project-shot img,
.split .project-shot img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}
.photo-caption {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.cards-3, .cards-2 { display: grid; gap: 1.4rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(40,32,36,0.06);
  display: flex; flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card-body { padding: 1.35rem 1.4rem 1.5rem; }
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); margin-bottom: 0.8em; }
.card a.more { font-weight: 600; font-size: 0.88rem; text-decoration: none; color: var(--purple); }
.card a.more:hover { color: var(--purple-deep); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value { padding: 1.6rem 1.5rem 1.7rem; background: #fff; border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px; }
.value h3 { margin: 0 0 0.35em; }

/* Pillars */
.pillars {
  background: var(--band);
  color: var(--on-band); padding: 2.6rem 0;
}
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.pillars h2, .pillars h3 { color: var(--on-band); letter-spacing: 0.08em; font-family: var(--font); font-size: 0.86rem; font-weight: 700; text-transform: uppercase; }
.pillars p { color: var(--on-band-muted); margin: 0; font-size: 0.95rem; }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1.8rem; }
.filters button {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.95rem; cursor: pointer; font-weight: 500; font-size: 0.88rem; color: var(--ink);
}
.filters button[aria-pressed="true"], .filters button:hover {
  background: var(--selected-bg); color: var(--selected-fg); border-color: var(--selected-border);
}
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.project-card {
  position: relative; display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden; background: var(--card-dark);
  min-height: 240px;
}
.project-card img { width: 100%; height: 280px; object-fit: cover; transition: transform .45s ease; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.05); }
.project-card .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(22,18,20,0.88));
  color: #fff;
}
.project-card h3 { color: #fff; font-size: 1.25rem; margin: 0; }
.project-card p { margin: 0.15rem 0 0; color: var(--gold-soft); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.person { text-align: left; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.person img { width: 100%; height: 320px; object-fit: cover; object-position: top center; background: var(--tint); }
.person .meta { padding: 1.15rem 1.2rem 1.35rem; }
.person h3 { margin: 0 0 0.15em; }
.person .role { color: var(--purple); font-weight: 600; font-size: 0.88rem; margin-bottom: 0.45rem; }
.person p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Team activities gallery on the About pages */
.team-activities .project-gallery { margin-top: 1.6rem; }
.team-activities .g-placeholder .g-ph { height: 100%; }

/* Contact / form */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
dl.facts { margin: 0; }
dl.facts dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 1.1rem; }
dl.facts dd { margin: 0.2rem 0 0; font-size: 1.05rem; }
dl.facts a { text-decoration: none; color: var(--purple-deep); font-weight: 500; }
form.enquiry {
  background: #fff; padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line);
}
form.enquiry label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0.85rem 0 0.3rem; }
form.enquiry input, form.enquiry textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; background: var(--bg);
}
form.enquiry input:focus, form.enquiry textarea:focus { outline: 2px solid var(--focus-ring); border-color: var(--focus-ring); }
form.enquiry textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0.8rem 0 0; }
/* FAQ */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.15rem;
  margin-bottom: 0.7rem;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--purple-deep); }
.faq details p { margin: 0.7rem 0 0.3rem; color: var(--muted); }

/* CTA band */
.cta {
  background: var(--cta-bg); color: var(--on-band); padding: 4rem 0; text-align: center;
}
.cta h2 { color: var(--on-band); }
.cta p { color: var(--on-band-muted); max-width: 32rem; margin-inline: auto; }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 3.2rem 0 1.6rem; font-size: 0.92rem; }
.site-footer a { color: var(--footer-link); text-decoration: none; }
.site-footer a:hover { color: var(--footer-link-hover); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h2 { color: var(--footer-heading); font-family: var(--font); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer .logo img { width: 220px; height: auto; object-fit: contain; border-radius: 8px; }
.legal { border-top: 1px solid var(--footer-line); padding-top: 1.1rem; color: var(--footer-muted); font-size: 0.82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; padding: 0; list-style: none; margin: 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: #25D366; color: #083716; text-decoration: none; font-weight: 600;
  padding: 0.75rem 1.05rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-size: 0.88rem;
}
.wa-float:hover { color: #083716; background: #36e07a; }

/* Landing / region hub */
body.hub { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
body.hub .site-header { display: none; }
.hub-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3.2rem 0 3.6rem; }
.hub-brand { text-align: center; padding-top: clamp(1.4rem, 5vh, 3rem); }
.hub-brand img { width: clamp(200px, 20vw, 248px); height: auto; object-fit: contain; margin: 0 auto; }
.hub-brand p.tag { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.cards-title {
  text-align: center; font-weight: 500; letter-spacing: -0.02em; line-height: 1.22;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem); max-width: 24ch; margin: 2.4rem auto 0;
  color: var(--heading);
}
.cards-title + .mission-lead { position: relative; padding-top: 1.35rem; }
.cards-title + .mission-lead::before {
  content: ""; display: block; width: 40px; height: 1px; background: var(--gold);
  margin: 0 auto 1.2rem;
}
.region-cards {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(20px, 3.5vw, 40px);
  margin-top: 2rem;
}
.region-card {
  width: 220px; text-align: center; text-decoration: none; color: inherit;
  background: var(--paper); border-radius: 12px; padding: 1.5rem 1.1rem 1.55rem;
  box-shadow: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid var(--line);
}
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.region-card .flag { display: flex; justify-content: center; align-items: center; height: 52px; margin: 0 auto 1.05rem; }
.region-card .flag img { height: 52px; width: auto; max-width: none; object-fit: contain; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.06); }
.region-card .brand-label { font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--muted); }
.region-card .country { font-family: var(--serif); font-size: 1.5rem; color: var(--heading); margin: 0.2rem 0 0.45rem; font-weight: 500; }
.region-card .uline { width: 36px; height: 1px; background: var(--gold); margin: 0 auto 0.7rem; }
.region-card .city { color: var(--muted); font-size: 0.88rem; }
.region-card.disabled { cursor: default; opacity: 0.7; }
.region-card.disabled:hover { transform: none; box-shadow: none; border-color: var(--line); }
.mission { text-align: center; max-width: 34rem; margin: 2.6rem auto 0; color: var(--muted); font-weight: 400; }
.disciplines { text-align: center; margin-top: 1.1rem; color: var(--ink); font-size: 0.88rem; letter-spacing: 0.04em; }
.disciplines::before { content: ""; display: block; width: 110px; height: 1px; background: var(--line); margin: 0 auto 1rem; }

/* Notes page */
.notes { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); }
.notes h2 { margin-top: 1.6em; }
.notes li { margin-bottom: 0.5rem; }

.page-hero { padding: 3.2rem 0 1.2rem; }
.page-hero h1 { max-width: 18ch; }

@media (max-width: 900px) {
  .shot-stack { gap: 1rem; }
  .split, .split.reverse, .cards-3, .values, .portfolio-grid, .team-grid, .contact-grid, .footer-grid, .pillars-grid, .cards-2 {
    grid-template-columns: 1fr;
  }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  nav.primary, .region-switch { display: none; }
  body.nav-open nav.primary, body.nav-open .region-switch {
    display: flex; flex-direction: column; align-items: flex-start;
  }
  body.nav-open .header-inner { flex-wrap: wrap; }
  body.nav-open nav.primary { width: 100%; padding-bottom: 1rem; }
  .hero { min-height: 70vh; }
  .site-header { top: 52px; }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
  .region-cards { gap: 12px; }
  .region-card { width: calc(50% - 8px); min-width: 140px; }
  .wa-float { right: 12px; bottom: 12px; font-size: 0.8rem; padding: 0.65rem 0.85rem; }
}

/* Student Hub */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.student-hero { min-height: 72vh; }
.student-hero h1 { letter-spacing: 0.02em; max-width: 16ch; }
.student-hero .lead,
.page-hero .lead { max-width: 46rem; font-size: 1.08rem; color: var(--ink); }
.student-hero .lead { color: #f4f0e8; }
.student-areas { padding: 3.2rem 0 1rem; }
.hub-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.hub-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hub-card:hover { transform: translateY(-4px); color: inherit; box-shadow: var(--shadow-hover); }
.hub-card h2 { font-size: 1.35rem; margin-bottom: 0.45em; }
.hub-card p:last-child { margin-bottom: 0; color: var(--muted); }
.latest-students { padding: 2.4rem 0 3.4rem; }
.article-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.article-card:hover { transform: translateY(-3px); color: inherit; }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-card div { padding: 1rem 1.1rem 1.2rem; }
.article-card h2, .article-card h3 { font-size: 1.15rem; margin: 0 0 0.25em; }
.article-card-date { font-size: 0.88rem; color: var(--muted); margin: 0; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin: 0 0 0.45rem; }
.page-hero .eyebrow a, .article-hero .eyebrow a { color: inherit; }
.draft-notice {
  background: #f4ead0;
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.empty-openings, .opening-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.opening-cards { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.2rem; }
.opening-location { color: var(--muted); margin-top: -0.4rem; }
.internship-list { padding-bottom: 3rem; }
.ask-wrap { max-width: 42rem; padding-bottom: 3.5rem; }
.ask-form p { margin: 0 0 1rem; }
.ask-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.ask-form input, .ask-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: var(--white);
}
.ask-form input:focus, .ask-form textarea:focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.article { background: var(--bg); }
.article-hero { position: relative; }
.article-hero-img { width: 100%; height: min(62vh, 560px); object-fit: cover; }
.article-hero-copy { padding: 2rem 0 0.5rem; }
.article-meta { color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.article-body { max-width: 46rem; padding: 1.5rem 0 3.5rem; margin-inline: auto; }
.article-body > p, .article-body > ul { font-size: 1.05rem; }
.continue-learning { margin-top: 2.8rem; }
.continue-learning .article-cards { grid-template-columns: repeat(2, 1fr); }
.article-back { margin-top: 2rem; }

@media (max-width: 900px) {
  .hub-cards, .article-cards, .continue-learning .article-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .hub-cards, .article-cards, .continue-learning .article-cards {
    grid-template-columns: 1fr;
  }
  .student-hero { min-height: 80vh; }
}

/* =========================================================
   Student Hub v2 — hub nav, dashboard, Q&A, listings, forms
   ========================================================= */
.h3 { font-size: clamp(1.2rem, 2vw, 1.42rem); }
.h4 { font-size: 1.07rem; margin: 0 0 0.3em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.hide-sm { }
.plain { list-style: none; padding: 0; }

/* Hub sub-navigation */
.hub-nav { background: #fff; border-bottom: 1px solid var(--line); }
.hub-nav-inner { display: flex; align-items: center; gap: 1.2rem; }
.hub-nav-brand { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--purple-deep); text-decoration: none; white-space: nowrap; }
.hub-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hub-nav ul::-webkit-scrollbar { display: none; }
.hub-nav a:not(.hub-nav-brand) { display: block; padding: 0.85rem 0.7rem; font-size: 0.86rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.hub-nav a[aria-current="page"], .hub-nav a:not(.hub-nav-brand):hover { color: var(--purple); border-bottom-color: var(--gold); }
.hub-nav a:focus-visible, .btn:focus-visible, .pills button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Page heads */
.page-head { padding: 2.6rem 0 1.2rem; }
.page-head h1 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); max-width: 20ch; }
.page-head .lead { font-size: 1.08rem; color: var(--muted); margin-bottom: 1.1rem; }
section.wrap { padding: 1.5rem 0; }
.narrow { max-width: 44rem; }
.callout { background: #fff; border-left: 4px solid var(--gold); padding: 0.7rem 1rem; border-radius: 0 10px 10px 0; font-size: 0.95rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); padding-top: 1.6rem; }
.crumbs a { color: var(--purple-text); }

/* Tags & chips */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.55rem; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.18rem 0.6rem; border-radius: 999px; background: var(--tint); color: var(--tint-text); margin: 0; }
.tag-gold { background: #f6ecd0; color: #6b4f08; }
.tag-example { background: #2b2b2b; color: #fff; }
.tag-plain { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.tag-past { background: #e9e6ea; color: #555; }
.chips { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.82rem; }
.chips-sm li { font-size: 0.74rem; padding: 0.12rem 0.55rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 700; }

/* Toolbars & filters */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: center; margin-bottom: 0.6rem; }
.toolbar p { margin: 0; }
.toolbar .search { flex: 1 1 260px; }
.toolbar input[type="search"], .toolbar select {
  width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 0.65rem 1rem; background: #fff; min-height: 44px;
}
.toolbar-selects select { min-width: 160px; }
.pills { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pills::-webkit-scrollbar { display: none; }
.pills button { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.95rem; min-height: 40px; font-size: 0.86rem; font-weight: 500; color: var(--ink); cursor: pointer; white-space: nowrap; }
.pills button[aria-pressed="true"] { background: var(--selected-bg); border-color: var(--selected-border); color: var(--selected-fg); }
.toggle { display: inline-flex; gap: 0.45rem; align-items: center; font-size: 0.9rem; font-weight: 500; }
.toggle input { width: 18px; height: 18px; accent-color: var(--band); }
.result-count { margin: 0 0 0.8rem; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem; color: var(--muted); }

/* Q&A */
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; }
.q-card h2 { margin: 0 0 0.4rem; }
.q-card h2 a { text-decoration: none; color: var(--purple-deep); }
.q-card h2 a:hover { text-decoration: underline; }
.q-meta { color: var(--muted); margin: 0.4rem 0 0; }
.best-preview { border-left: 3px solid var(--gold); padding-left: 0.85rem; margin-top: 0.4rem; }
.best-preview summary { cursor: pointer; font-weight: 600; color: #6b4f08; font-size: 0.9rem; padding: 0.3rem 0; }
.prose > :last-child { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.q-page { max-width: 48rem; padding-bottom: 2rem; }
.q-head h1 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
.q-body { font-size: 1.05rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.6rem; }
.answer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.answer.is-best { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.best-label { font-weight: 700; color: #6b4f08; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.5rem; }
.answer-by { font-size: 0.85rem; margin: 0.8rem 0 0; color: var(--ink); font-weight: 500; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.q-foot { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* Forms */
.split-form { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; align-items: start; padding: 3rem 0 !important; }
.hub-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.fld { margin: 0 0 1rem; min-width: 0; }
.fld-full { grid-column: 1 / -1; }
.fld label, .fld legend { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.35rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.fld input:not([type="checkbox"]):not([type="radio"]), .fld select, .fld textarea {
  width: 100%; border: 1px solid var(--form-line); border-radius: 10px; padding: 0.7rem 0.8rem; background: #fff; min-height: 46px; color: var(--ink);
}
.fld input[type="file"] { padding: 0.55rem; background: var(--bg); }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.fld textarea { resize: vertical; }
.hint { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }
fieldset.checks { border: 0; padding: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.check { display: inline-flex; gap: 0.45rem; align-items: flex-start; font-size: 0.88rem; font-weight: 400 !important; }
.check-row .check { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; background: var(--bg); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--band); flex-shrink: 0; }
.consent .check { font-size: 0.85rem; color: var(--muted); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.form-foot .form-note { margin: 0; }
.alerts-box { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2rem; background: linear-gradient(135deg, var(--tint), #fbf6ea); border-radius: 18px; padding: 1.8rem; align-items: center; }
.alerts-box .hub-form { box-shadow: none; }

/* Thanks */
.thanks { padding: 4rem 0 !important; }
.thanks-card { max-width: 40rem; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 2.4rem 1.6rem; box-shadow: var(--shadow); }
.thanks-card .btn-row { justify-content: center; }
.thanks-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--selected-bg); color: var(--selected-fg); border: 1px solid var(--selected-border); font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 1rem; }
.thanks-card .lead { margin-inline: auto; }

/* Internship listings */
.listing-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.listing { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.listing h2 { margin-bottom: 0.6rem; }
.listing.is-closed { opacity: 0.72; background: var(--bg); }
.status { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.18rem 0.6rem; border-radius: 999px; background: #e3f4e6; color: #1c5a2a; }
.is-closed .status { background: #eee; color: #555; }
.meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1rem; margin: 0 0 0.8rem; }
.meta-grid dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.meta-grid dd { margin: 0; font-weight: 500; font-size: 0.95rem; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--purple); font-size: 0.9rem; padding: 0.3rem 0; }
.listing-cta { margin: auto 0 0; padding-top: 0.8rem; display: flex; align-items: center; gap: 0.8rem; }

/* Challenge */
.challenge-hero { background: var(--band); color: var(--on-band); padding: 3rem 0; }
.challenge-hero h1 { color: var(--on-band); font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
.challenge-hero .lead { color: var(--on-band-muted); }
.challenge-hero .eyebrow { color: var(--on-band-kicker); }
.challenge-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; align-items: center; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.65); }
.btn-ghost-light:hover { background: #fff; color: var(--purple-deep); }
.countdown { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 18px; padding: 1.3rem; text-align: center; }
.countdown-label { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-band-kicker); margin-bottom: 0.6rem; }
.countdown-units { display: flex; justify-content: center; gap: 1rem; }
.countdown-units span { display: flex; flex-direction: column; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-band-muted); }
.countdown-units b { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--on-band); }
.brief-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 2rem; padding-top: 2.5rem !important; }
.accordion { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.4rem 1.2rem; }
.accordion > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; }
.accordion > summary::-webkit-details-marker { display: none; }
.accordion > summary::after { content: "+"; font-size: 1.5rem; color: var(--purple); line-height: 1; }
.accordion[open] > summary::after { content: "–"; }
.accordion > summary h2 { margin: 0; }
.accordion[open] { padding-bottom: 1rem; }
.past-block { margin-bottom: 1.6rem; }
.work-grid { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-card img { width: 100%; aspect-ratio: 10/7; object-fit: cover; }
.work-card > div { padding: 0.9rem 1rem 1rem; }
.work-card .tag { margin-bottom: 0.4rem; }

/* Talent */
.talent-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.talent-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.talent-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.talent-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.talent-body { padding: 0.9rem 1rem 1.1rem; }
.talent-id { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.5rem; }
.talent-id h2 { margin: 0; }
.talent-id p { margin: 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--selected-bg); color: var(--selected-fg); border: 1px solid var(--selected-border); display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }
.avatar-lg { width: 92px; height: 92px; font-size: 1.8rem; }
.profile-page { padding-bottom: 2rem; }
.profile-head { display: flex; gap: 1.4rem; align-items: flex-start; padding: 1.2rem 0 1.6rem; }
.profile-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 0.2em; }
.profile-head .lead { margin-bottom: 0.6rem; }
.facts-inline { list-style: none; padding: 0; margin: 0 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; color: var(--muted); font-size: 0.92rem; }
.profile-grid { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 2rem; align-items: start; }

/* Resources */
.res-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.res-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; }
.res-card h2 a { color: var(--purple-deep); text-decoration: none; }
.res-card h2 a:hover { text-decoration: underline; }
.res-type { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6a12; margin: 0 0 0.4rem; }
.res-type .tag { text-transform: none; letter-spacing: 0; }
.res-foot { margin: auto 0 0; padding-top: 0.5rem; color: var(--muted); border-top: 1px solid var(--line); }
.video-slot { aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-bottom: 0.8rem; background: var(--slot-dark); }
.video-slot iframe { width: 100%; height: 100%; border: 0; }
.video-slot.is-empty { display: grid; place-items: center; align-content: center; gap: 0.2rem; color: var(--gold-soft); background: repeating-linear-gradient(45deg, var(--slot-dark), var(--slot-dark) 12px, var(--slot-stripe) 12px, var(--slot-stripe) 24px); }
.video-slot.is-empty span { font-size: 1.8rem; }
.note-line { margin-top: 1rem; }

/* Events */
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.event { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.event.is-past { opacity: 0.6; }
.event-date { width: 58px; height: 62px; border-radius: 12px; background: var(--selected-bg); color: var(--selected-fg); border: 1px solid var(--selected-border); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.event-date b { font-family: var(--serif); font-size: 1.35rem; }
.event-date span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.event-body h2 { margin: 0 0 0.2rem; }
.event-body p { margin: 0 0 0.2rem; }

/* Support / colleges */
.support-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.mini-card { display: flex; flex-direction: column; gap: 0.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; text-decoration: none; color: inherit; }
a.mini-card:hover { border-color: var(--purple); color: inherit; }
.mini-card b { color: var(--purple-deep); }
.mini-card span { font-size: 0.88rem; color: var(--muted); }
.accordion .support-cards { margin-top: 0.4rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 700; display: grid; place-items: center; margin-bottom: 0.5rem; }
.steps span { color: var(--muted); font-size: 0.9rem; }
.stages { padding-left: 0; list-style: none; }
.stages li { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.6rem 1rem; margin-bottom: 1rem; }

/* Hub landing / dashboard */
.hub-hero { position: relative; color: #fff; background: var(--hero-fallback); min-height: 420px; display: grid; align-items: end; }
.hub-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-hero::after { content: ""; position: absolute; inset: 0; background: var(--hub-hero-overlay); }
.hub-hero-copy { position: relative; z-index: 1; padding: 4rem 0 3rem; }
.hub-hero h1 { color: #fff; font-size: clamp(1.95rem, 4.4vw, 3.3rem); max-width: 15ch; }
.hub-hero .lead { color: rgba(255,255,255,.9); font-size: 1.1rem; }
.hub-hero .eyebrow { color: var(--gold-soft); }
.quick { padding-top: 2rem !important; }
.quick-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem; }
.quick-grid a { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: inherit; height: 100%; transition: border-color .2s, transform .2s; }
.quick-grid a:hover { border-color: var(--purple); transform: translateY(-2px); color: inherit; }
.qi { width: 36px; height: 36px; border-radius: 10px; background: var(--tint); color: var(--purple); display: grid; place-items: center; font-weight: 700; margin-bottom: 0.4rem; }
.quick-grid b { color: var(--purple-deep); font-size: 1rem; }
.quick-grid small { color: var(--muted); font-size: 0.8rem; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.dash-challenge { background: var(--band); color: var(--on-band); border: 0; }
.dash-challenge h2 { color: var(--on-band); }
.dash-challenge .eyebrow { color: var(--on-band-kicker); }
.dash-challenge:hover { color: var(--on-band); }
.countdown-inline { font-weight: 600; color: var(--gold-soft); }
.link-arrow { margin-top: auto; font-weight: 600; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.7rem; }
.dash-head h2 { margin: 0; }
.dash-head a { font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { padding: 0.6rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.dash-list li:first-child { border-top: 0; padding-top: 0; }
.dash-list a { font-weight: 600; text-decoration: none; color: var(--purple-deep); }
.dash-list small { color: var(--muted); }
.dash-section { padding: 1.4rem 0 !important; }
.q-mini { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.q-mini a { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: inherit; }
.q-mini a:hover { border-color: var(--purple); color: inherit; }
.q-mini b { font-weight: 600; color: var(--purple-deep); line-height: 1.35; }
.q-mini small { color: var(--muted); margin-top: auto; }
.scroller { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.work-tile { display: block; position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: #fff; border: 1px solid var(--line); color: inherit; }
.work-tile img { width: 100%; aspect-ratio: 10/7; object-fit: cover; }
.work-tile span { display: flex; flex-direction: column; padding: 0.7rem 0.9rem 0.85rem; }
.work-tile b { color: var(--purple-deep); font-weight: 600; font-size: 0.95rem; }
.work-tile small { color: var(--muted); }
.ev-mini { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.ev-mini .event { padding: 0; display: block; }
.ev-mini a { display: flex; gap: 0.9rem; align-items: center; padding: 0.9rem; text-decoration: none; color: inherit; }
.ev-mini a > span:last-child { display: flex; flex-direction: column; }
.ev-mini b { color: var(--purple-deep); font-weight: 600; line-height: 1.3; }
.ev-mini small { color: var(--muted); }
.ev-mini .event-date b { color: var(--selected-fg); }
.stats { background: var(--band); color: var(--on-band); padding: 2rem 0; margin-top: 1.5rem; }
.stats-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stats-grid b { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.1; }
.stats-grid span { font-size: 0.85rem; color: var(--on-band-muted); }
.stats-note { text-align: center; font-size: 0.82rem; color: var(--on-band-muted); margin: 1rem 0 0; }
.stats-note .tag-example { background: var(--gold); color: var(--ink); }
.phase2 p { background: #fff; border: 1px dashed var(--form-line); border-radius: var(--radius); padding: 0.9rem 1.1rem; font-size: 0.92rem; color: var(--muted); margin: 0; }
.phase2 b { color: var(--purple-deep); }
body .hub-nav + main, .hub-nav { position: relative; }

/* ---------- Cleaner landing pages ---------- */
.hub-student-link { text-align: center; margin-top: 0.8rem; font-size: 0.92rem; }
.hub-student-link a { font-weight: 600; }
.student-band { background: #f6ecd0; padding: 1.6rem 0; }
.student-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.student-band p { margin: 0; color: var(--ink); }
.student-band b { color: var(--purple-deep); }
.pillars-slim { padding: 2rem 0; }

@media (max-width: 900px) {
  .split-form, .alerts-box, .challenge-grid, .brief-grid, .profile-grid, .dash-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .listing-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .q-mini { grid-template-columns: 1fr 1fr; }
  .ev-mini { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-nav-brand { display: none; }
  .scroller { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.8rem; padding-bottom: 0.4rem; }
  .scroller li { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .preview-banner .pb-long { display: none; }
  .preview-banner { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
  .site-header { top: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .hub-form { padding: 1.1rem; }
  .split-form { padding: 2rem 0 !important; }
  .page-head { padding: 1.8rem 0 0.6rem; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .quick-grid a { align-items: center; text-align: center; padding: 0.8rem 0.4rem; }
  .quick-grid small { display: none; }
  .quick-grid b { font-size: 0.86rem; }
  .q-mini { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .hub-nav ul { flex-wrap: wrap; overflow: visible; }
  .hub-nav a:not(.hub-nav-brand) { padding: 0.55rem 0.6rem; font-size: 0.8rem; }
  .hub-hero { min-height: 360px; }
  .hub-hero-copy { padding: 3rem 0 2rem; }
  .hub-hero .btn-row .btn { flex: 1; }
  .event { grid-template-columns: auto 1fr; }
  .event-cta { grid-column: 1 / -1; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .profile-head { flex-direction: column; gap: 0.8rem; }
  .avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid b { font-size: 1.6rem; }
  .countdown-units b { font-size: 1.85rem; }
  .toolbar-selects p:not(.search) { flex: 1 1 calc(50% - 0.5rem); }
  .toolbar-selects select { min-width: 0; }

  /* Landing pages: less copy, more air on phones */
  .shot-stack { gap: 0.85rem; }
  .photo-caption { font-size: 0.74rem; }
  section { padding: 2.6rem 0; }
  .hero { min-height: 78vh; }
  .hero-copy { padding: 3.2rem 1.1rem 2.5rem; }
  .hero::after { background: var(--hero-overlay); }
  .hero .eyebrow {
    font-size: 0.62rem; letter-spacing: 0.14em; color: #f3e4b8;
    text-shadow: 0 1px 3px rgba(22,18,20,0.8), 0 0 16px rgba(22,18,20,0.5);
  }
  .hero .eyebrow .ew-br { display: block; }
  .hero h1 { font-size: clamp(1.85rem, 8.2vw, 2.35rem); max-width: 14ch; }
  .hero .btn-row { gap: 1.15rem; flex-wrap: nowrap; }
  .hero .btn { flex: 0 1 auto; padding: 0.5rem 0.95rem; font-size: 0.76rem; letter-spacing: 0.06em; white-space: nowrap; }
  .intro .photo-frame { display: none; }
  .intro .split { gap: 0; }
  .section-kicker + h2 { margin-bottom: 0.3em; }
  .rule { margin-bottom: 1rem; }
  .svc .cards-3 { gap: 0.6rem; }
  .svc .card { flex-direction: row; box-shadow: none; }
  .svc .card img { display: none; }
  .svc .card-body { padding: 0.9rem 1rem; }
  .svc .card h3 { font-size: 1.1rem; }
  .svc .card p { font-size: 0.9rem; margin-bottom: 0.4em; }
  .proj-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.7rem; padding-bottom: 0.4rem; margin-inline: -1.2rem; padding-inline: 1.2rem; scrollbar-width: none; }
  .proj-scroll::-webkit-scrollbar { display: none; }
  .proj-scroll .project-card { flex: 0 0 78%; scroll-snap-align: start; min-height: 0; }
  .proj-scroll .project-card img { height: 220px; }
  .pillars-slim { padding: 1.4rem 0; }
  .pillars-slim .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; text-align: center; }
  .pillars-slim p { display: none; }
  .pillars-slim h3 { margin: 0; font-size: 0.8rem; }
  .student-band-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta { padding: 2.6rem 0; }
  .footer-about { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2) { grid-column: 1 / -1; }
  .site-footer { padding-top: 2rem; }

  /* Region chooser: compact rows instead of tall cards */
  .hub-main, body.hub main { padding-top: 1.5rem; }
  .hub-brand img { width: min(260px, 68vw); height: auto; }
  .hub-brand p.tag { font-size: 0.7rem; letter-spacing: 0.14em; }
  .cards-title { font-size: clamp(1.55rem, 6.4vw, 1.85rem); margin-top: 1.8rem; max-width: 18ch; }
  .region-cards { flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
  .region-card { width: 100%; display: grid; grid-template-columns: 82px 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; text-align: left; padding: 0.9rem 1rem; }
  .region-card .flag { height: 42px; margin: 0; grid-row: 1 / span 2; justify-content: center; }
  .region-card .flag img { height: 42px; }
  .region-card .brand-label, .region-card .uline { display: none; }
  .region-card .country { margin: 0; font-size: 1.3rem; line-height: 1.15; }
  .region-card .city { font-size: 0.85rem; }
  .mission { margin-top: 1.6rem; font-size: 0.95rem; }
}
.hub-brand p.tag { background: none; padding: 0; border-radius: 0; display: block; font-size: 0.8rem; color: #3a3340; }

/* Group home hero logo: refined size, tagline kept legible. Width only, height auto. */
.hub-brand img { width: 240px; height: auto; margin: 0 auto 0.5rem; }
@media (max-width: 560px) {
  .hub-brand img { width: 210px; }
}

/* ---------- Project cards: clear "View project" affordance ---------- */
.project-card { cursor: pointer; }
.project-card img { display: block; }
.project-card .view-project {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.55rem;
  font-size: 0.82rem; font-weight: 600; color: #fff;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px; padding: 0.3rem 0.75rem;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}
.project-card .view-project small { font-weight: 400; opacity: 0.8; font-size: 0.75rem; }
.project-card:hover .view-project, .project-card:focus-visible .view-project { background: var(--gold); border-color: var(--gold); color: #2b1530; }
.project-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (min-width: 900px) {
  .project-card .view-project { opacity: 0; transform: translateY(6px); }
  .project-card:hover .view-project, .project-card:focus-visible .view-project { opacity: 1; transform: none; }
}

/* ---------- Project page ---------- */
.project-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 2.4rem; align-items: center; padding-bottom: 1rem; }
.project-hero-copy .crumbs { padding-top: 0; margin-bottom: 1.2rem; }
.project-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 0.2rem 0 1.2rem; }
.project-hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--tint); aspect-ratio: 3 / 2; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-page { padding-top: 2.2rem; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.4rem; margin: 0; }
.project-facts div { border-top: 1px solid var(--line); padding-top: 0.55rem; }
.project-facts dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.project-facts dd { margin: 0.1rem 0 0; font-weight: 600; color: var(--ink); }
.tbc { color: var(--muted); font-style: italic; font-weight: 400; }
.project-body { display: grid; grid-template-columns: 7fr 4fr; gap: 2.4rem; padding-top: 2rem; padding-bottom: 1rem; }
.project-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.project-scope { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; align-self: start; }
.project-scope .h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.project-scope .h3 + * { margin-bottom: 1rem; }
.chip-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.7rem; font-size: 0.85rem; }
.project-gallery-wrap { padding-top: 1.6rem; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1.2rem; margin-bottom: 1rem; }
.gallery-head h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.gallery-head p { margin: 0; font-size: 0.9rem; }
.project-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-gallery li { margin: 0; }
.g-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--tint); aspect-ratio: 3 / 2; }
.g-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.g-tile:hover img, .g-tile:focus-visible img { transform: scale(1.04); }
.g-tile:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.g-zoom { position: absolute; right: 0.6rem; bottom: 0.6rem; background: rgba(20,17,19,0.72); color: #fff; font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 0.22rem 0.65rem; }
.g-cap { font-size: 0.85rem; color: var(--muted); margin: 0.4rem 0 0; line-height: 1.4; }
.g-ph {
  aspect-ratio: 3 / 2; border-radius: 10px; border: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, var(--bg) 0 14px, var(--tint) 14px 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
}
.g-ph img { width: 84px; height: auto; opacity: 0.55; filter: grayscale(0.2); }
.g-ph span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-text); }
.project-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding-top: 2.4rem; padding-bottom: 2.4rem; }
.project-pager a { text-decoration: none; }
.pager-prev, .pager-next { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 1.1rem; background: #fff; transition: border-color .2s; }
.pager-prev:hover, .pager-next:hover { border-color: var(--purple); }
.pager-next { text-align: right; }
.pager-prev span, .pager-next span { font-size: 0.78rem; color: var(--muted); }
.pager-prev b, .pager-next b { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--purple-deep); }
.pager-all { font-weight: 600; font-size: 0.9rem; }
.project-cta { background: var(--band); color: var(--on-band); padding: 3rem 0; text-align: center; }
.project-cta h2 { color: var(--on-band); margin-bottom: 0.3rem; }
.project-cta p { color: var(--on-band-muted); }
.project-cta .btn-row { justify-content: center; }
@media (max-width: 899px) {
  .project-hero, .project-body { grid-template-columns: 1fr; gap: 1.4rem; }
  .project-hero-media { order: -1; margin-inline: -1.2rem; border-radius: 0; }
  .project-page { padding-top: 0; }
  .project-hero-copy .crumbs { padding-top: 0.4rem; }
  .project-gallery { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
}
@media (max-width: 560px) {
  .project-gallery { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .g-cap { font-size: 0.78rem; }
  .g-zoom { display: none; }
  .g-ph img { width: 60px; }
  .g-ph span { font-size: 0.66rem; letter-spacing: 0.08em; text-align: center; }
  .project-pager { grid-template-columns: 1fr 1fr; }
  .pager-all { grid-column: 1 / -1; grid-row: 2; text-align: center; }
  .project-cta .btn { width: 100%; }
}

/* ---------- Lightbox ---------- */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(22,18,20,0.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox[hidden] { display: none !important; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100dvh; padding: 3.5rem 0 1rem; min-width: 0; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lb-cap { color: #f1e9f3; font-size: 0.92rem; margin-top: 0.8rem; text-align: center; padding: 0 1rem; }
.lightbox button { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; cursor: pointer; font-size: 1.8rem; line-height: 1; width: 3rem; height: 3rem; display: grid; place-items: center; margin: 0 1rem; }
.lightbox button:hover, .lightbox button:focus-visible { background: var(--gold); color: #2b1530; border-color: var(--gold); outline: none; }
.lb-close { position: absolute; top: 0.8rem; right: 0; font-size: 2rem !important; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { position: absolute; bottom: 1rem; width: 2.8rem !important; height: 2.8rem !important; }
  .lb-prev { left: 0.4rem; } .lb-next { right: 0.4rem; }
  .lb-figure { padding: 3.5rem 0.5rem 4.5rem; }
  .lb-img { max-height: calc(100dvh - 10rem); }
}

.student-note { padding: 2.2rem 0 2.6rem; border-top: 1px solid var(--line); background: transparent; text-align: center; }
.student-note h2 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--heading); font-weight: 500; }
.student-note p { margin: 0 auto; color: var(--muted); max-width: 36rem; }
.student-note a { font-weight: 500; }
.hub-enquire { text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.35rem; margin: 1.6rem 0 0; }
.hub-enquire .btn {
  padding: 0.55rem 1.2rem; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em;
}
.mission-lead { margin-top: 0 !important; font-size: 1.02rem; line-height: 1.55; }
.cards-sub {
  text-align: center; font-size: 0.72rem; font-weight: 500; margin: 2.6rem 0 0;
  color: var(--muted); letter-spacing: 0.16em; text-transform: uppercase;
}
.hub-footer { border-top: 1px solid var(--line); padding: 1.1rem 0 0.2rem; margin-top: 1.5rem; }
.hub-footer p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.quick-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .quick-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .quick-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .hub-enquire { gap: 1.25rem; padding: 0 0.5rem; }
  .hub-enquire .btn { width: auto; }
  .student-note { text-align: center; padding: 1.4rem 0 1.8rem; }
  .hub-footer { text-align: center; }
}

/* Coming-soon note used when a Student Hub section is hidden for launch. */
.hub-soon {
  font-family: "Poppins", "Open Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--purple-text);
  background: var(--tint);
  border-left: 3px solid var(--purple);
  padding: 1rem 1.2rem;
  margin: 0.4rem 0 1.1rem;
  border-radius: 0 4px 4px 0;
}
.hub-soon a {
  color: var(--purple-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hub-soon a:hover { color: var(--purple); }
.hub-soon-stack { margin-top: 1.2rem; }
.hub-soon-stack .hub-soon { margin-bottom: 0.7rem; }
.dash-card .hub-soon { margin: 0.6rem 0 0; }
