:root {
  --navy: #0d163c;
  --cream: #f7f5f0;
  --ink: #0d163c;
  --ink-soft: #1e2d52;
  --paper: #ffffff;
  --white: #ffffff;
  --line: rgba(13, 22, 60, 0.1);
  --accent: #c9a227;
  --accent-deep: #a8861f;
  --muted: #5a6478;
  --shadow: 0 20px 60px rgba(13, 22, 60, 0.08);
  --radius: 0.5rem;
  --font-display: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 1px solid transparent;
}

.page-home .site-header {
  background: transparent;
}

.page-home .site-header .brand-text,
.page-home .site-header .brand-byline,
.page-home .site-header .site-nav a,
.page-home .site-header .nav-toggle span {
  color: var(--white);
}

.page-home .site-header .goal-trigger {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.page-home .site-header.is-scrolled {
  background: rgba(13, 22, 60, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(13, 22, 60, 0.15);
}

.page-home .site-header.is-scrolled .brand-text,
.page-home .site-header.is-scrolled .brand-byline,
.page-home .site-header.is-scrolled .site-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.page-home .site-header.is-scrolled .goal-trigger {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

body:not(.page-home) .site-header {
  background: var(--white);
  border-bottom-color: var(--line);
}

body:not(.page-home) .site-header .brand-text,
body:not(.page-home) .site-header .brand-byline,
body:not(.page-home) .site-header .site-nav a,
body:not(.page-home) .site-header .nav-toggle span {
  color: var(--ink-soft);
}

body:not(.page-home) .site-header .site-nav a:hover,
body:not(.page-home) .site-header .site-nav a.is-active {
  color: var(--accent-deep);
}

body:not(.page-home) .site-header.is-scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
}

.site-header .container {
  position: relative;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand-mark {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-byline {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.goal-trigger {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: min(300px, 100%);
  max-width: 380px;
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.goal-trigger:hover,
.goal-trigger[aria-expanded="true"] {
  border-color: rgba(13, 22, 60, 0.25);
  color: var(--ink);
}

.goal-trigger-label {
  flex: 1;
  text-align: left;
}

.goal-trigger-chevron {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  justify-self: end;
}

.site-nav a {
  padding: 0.5rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent);
}

.nav-callback-btn {
  padding: 0.5rem 0.8rem;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-callback-btn:hover {
  color: var(--accent);
}

.page-home .site-header .nav-callback-btn {
  color: rgba(255, 255, 255, 0.9);
}

.page-home .site-header.is-scrolled .nav-callback-btn {
  color: rgba(255, 255, 255, 0.9);
}

body:not(.page-home) .site-header .nav-callback-btn {
  color: var(--ink-soft);
}

body:not(.page-home) .site-header .nav-callback-btn:hover {
  color: var(--accent-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: background 0.2s ease;
}

.site-main {
  flex: 1;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% 0 0;
  background:
    linear-gradient(180deg, rgba(13, 22, 60, 0.35) 0%, rgba(13, 22, 60, 0.82) 65%, rgba(13, 22, 60, 0.95) 100%),
    url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?auto=format&fit=crop&w=2000&q=80") center / cover no-repeat;
  z-index: -1;
  will-change: transform;
}

.hero-content {
  padding: 5rem 0 0;
  color: var(--white);
  max-width: 52rem;
  transform: translateY(-6vh);
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  z-index: 1;
}

.hero-scroll-cue svg {
  width: 1.25rem;
  height: 1.25rem;
  animation: bounce 2s ease infinite;
}

.hero-scroll-cue:hover {
  color: var(--white);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  font-family: inherit;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--white);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--ink-soft);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-cream {
  background: var(--cream);
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-index {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: rgba(13, 22, 60, 0.12);
  margin: 0 0 1rem;
}

.section-index-light {
  color: rgba(255, 255, 255, 0.15);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.page-hero h1,
.welcome-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--accent-deep);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.eyebrow-light {
  color: var(--accent);
}

.lead,
.muted {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.section-navy .lead,
.section-navy .muted {
  color: rgba(255, 255, 255, 0.72);
}

.text-link {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--accent-deep);
}

/* Welcome */
.welcome-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.welcome-title {
  max-width: 18ch;
  margin-bottom: 1rem;
}

/* Impact stats */
.impact-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 3rem;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 2.5rem;
}

.impact-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.impact-number-text {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.impact-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

/* Programme cards */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.programme-card {
  display: block;
  padding: 2rem;
  background: var(--white);
  transition: background 0.3s ease;
}

.programme-card:hover {
  background: var(--cream);
}

.programme-index {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}

.programme-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.programme-top {
  color: var(--accent-deep);
  font-weight: 500;
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.programme-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
}

/* Explore band */
.explore-band {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.explore-band h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

/* Category cards (inner pages) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.category-grid-wide .category-card {
  min-height: 100%;
}

.category-card,
.featured-card,
.panel,
.result-card,
.ranking-card {
  background: var(--white);
  border: none;
  padding: 1.75rem;
  transition: background 0.25s ease;
}

.category-card {
  display: block;
}

.category-card:hover,
.result-card:hover {
  background: var(--cream);
}

.category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}

.category-card h3,
.featured-card h3,
.result-card h3,
.ranking-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.category-card p,
.featured-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.category-meta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
}

.mini-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.mini-list li {
  display: flex;
  gap: 0.35rem;
  padding: 0.25rem 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.featured-top {
  color: var(--accent-deep);
  font-weight: 500;
  margin: 0.35rem 0;
}

.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 3rem;
  background: var(--navy);
  color: var(--white);
}

.cta-panel .muted {
  color: rgba(255, 255, 255, 0.7);
}

.cta-panel .eyebrow {
  color: var(--accent);
}

/* Page hero (inner) */
.page-hero {
  padding: 7rem 0 3rem;
  background: var(--cream);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0;
}

.page-hero .lead {
  max-width: 52ch;
  margin-top: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.chip {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Table */
.ranking-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.ranking-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
  background: var(--cream);
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.table-sub {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.action-cell a {
  color: var(--navy);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
}

.mobile-ranking-list {
  display: none;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.ranking-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.back-link {
  margin-top: 2rem;
}

.back-link a {
  color: var(--navy);
  border-bottom: 1px solid var(--accent);
}

/* Search */
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  max-width: 560px;
}

.search-form input,
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--white);
}

.search-form input {
  flex: 1 1 220px;
}

.result-count {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.result-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* Detail */
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.panel-accent {
  background: var(--cream);
}

.detail-list {
  margin: 1.5rem 0 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-list dd {
  margin: 0;
}

.check-list {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Prose */
.prose h2 {
  margin: 2rem 0 0.75rem;
}

.prose p,
.prose li {
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}

.contact-form {
  max-width: 520px;
}

.form-row {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.footer-note {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

.footer-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
}

/* Goal picker */
.goal-picker {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5.5rem 1rem 1.5rem;
}

.goal-picker[hidden] {
  display: none !important;
}

.goal-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 60, 0.55);
  backdrop-filter: blur(4px);
}

.goal-picker-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 7rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 32px 80px rgba(13, 22, 60, 0.25);
}

.goal-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.goal-picker-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 600;
}

.goal-picker-skip {
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.goal-picker-skip:hover {
  opacity: 1;
}

.goal-picker-search-wrap {
  position: relative;
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.goal-picker-search-icon {
  position: absolute;
  left: 2.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  pointer-events: none;
}

.goal-picker-search {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}

.goal-picker-search:focus {
  outline: none;
  border-color: var(--navy);
}

.goal-picker-body {
  overflow-y: auto;
  padding: 0.5rem 1.75rem 1.75rem;
}

.goal-group {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.goal-group:last-child {
  border-bottom: 0;
}

.goal-group.is-hidden {
  display: none;
}

.goal-group-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.goal-group-icon {
  display: inline-flex;
  color: var(--accent-deep);
}

.goal-group-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.goal-group-title {
  margin: 0;
  font-size: 1.2rem;
}

.goal-course-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem 2rem;
}

.goal-course-grid li.is-hidden {
  display: none;
}

.goal-course-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

.goal-course-link:hover {
  color: var(--navy);
}

.goal-course-chevron {
  width: 1rem;
  height: 1rem;
  color: var(--line);
  flex-shrink: 0;
}

.goal-course-link:hover .goal-course-chevron {
  color: var(--accent);
}

.goal-picker-empty {
  margin: 2rem 0;
  text-align: center;
  color: var(--muted);
}

body.goal-picker-open {
  overflow: hidden;
}

/* Instagram reel popup — supplementary promo; hidden from crawlers via hidden + lazy iframe */
.reel-popup {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.reel-popup[hidden] {
  display: none !important;
}

.reel-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 60, 0.62);
  backdrop-filter: blur(4px);
}

.reel-popup-dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 32px 80px rgba(13, 22, 60, 0.28);
}

.reel-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.reel-popup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.reel-popup-desc {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.reel-popup-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease;
}

.reel-popup-close:hover {
  background: var(--line);
}

.reel-popup-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.reel-popup-body {
  padding: 0.75rem 1.25rem 1.25rem;
}

.reel-embed-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(70vh, 640px);
  min-height: 320px;
  background: #000;
  overflow: hidden;
}

.reel-embed-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.reel-embed-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
  background: #000;
}

.reel-embed-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.reel-embed-slot .instagram-media {
  min-height: 480px !important;
}

.reel-popup-footnote {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.reel-popup-footnote a {
  color: var(--muted);
}

.reel-popup-footnote a:hover {
  color: var(--navy);
}

body.reel-popup-open {
  overflow: hidden;
}

/* Request callback modal */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 205;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.callback-modal[hidden] {
  display: none !important;
}

.callback-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 22, 60, 0.62);
  backdrop-filter: blur(4px);
}

.callback-modal-dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--white);
  box-shadow: 0 32px 80px rgba(13, 22, 60, 0.28);
}

.callback-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.callback-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.callback-modal-desc {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.callback-modal-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--navy);
  cursor: pointer;
}

.callback-modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.callback-form {
  padding: 1rem 1.25rem 1.25rem;
}

.callback-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.callback-consent input {
  margin-top: 0.2rem;
}

.callback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.callback-form-message {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.callback-form-message.is-error {
  color: #b42318;
}

.callback-form-message.is-success {
  color: #0f6b3f;
}

.callback-modal-phones {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.callback-modal-phones a {
  color: var(--navy);
}

body.callback-modal-open {
  overflow: hidden;
}

.footer-phones {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.footer-phones a {
  color: rgba(255, 255, 255, 0.92);
}

.footer-callback-btn {
  margin-top: 0.85rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-callback-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
}

.contact-phone-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.contact-phone-list a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-phone-row {
  margin-top: 1rem;
}

.chip-phone {
  text-decoration: none;
}

/* Reveal initial state (GSAP animates in) */
.reveal-item,
.reveal-stagger > * {
  will-change: transform, opacity;
}

/* Responsive */
@media (max-width: 960px) {
  .welcome-grid {
    grid-template-columns: 1fr;
  }

  .impact-stats,
  .programme-grid,
  .category-grid,
  .featured-grid,
  .footer-grid,
  .detail-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .explore-band,
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-content {
    transform: translateY(-3vh);
    padding-top: 4.5rem;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "goal goal";
  }

  .brand { grid-area: brand; }

  .goal-trigger {
    grid-area: goal;
    justify-self: stretch;
    max-width: none;
    margin-bottom: 0.35rem;
  }

  .nav-toggle {
    grid-area: toggle;
    justify-self: end;
    display: flex;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: var(--navy);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    color: rgba(255, 255, 255, 0.9);
  }

  .goal-course-grid {
    grid-template-columns: 1fr;
  }

  .goal-picker {
    padding: 4.5rem 0.75rem 1rem;
  }

  .ranking-table-wrap {
    display: none;
  }

  .mobile-ranking-list {
    display: grid;
  }

  .result-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scroll-cue svg {
    animation: none;
  }
}
