/* ==========================================================================
   1. Tokens and reset
   ========================================================================== */
:root {
  --brand-burgundy-950: #3f0010;
  --brand-burgundy-900: #520014;
  --brand-burgundy-800: #680019;
  --brand-burgundy-700: #79031f;
  --brand-burgundy-100: #f4e8eb;
  --brand-gold-600: #d89700;
  --brand-gold-500: #f2ae00;
  --brand-gold-400: #ffc21a;
  --brand-gold-100: #fff2c6;
  --surface-canvas: #fffdf9;
  --surface-paper: #fffefa;
  --surface-warm: #fff9ef;
  --surface-tint: #f9eedc;
  --surface-white: #ffffff;
  --text-strong: #251317;
  --text-body: #4b3438;
  --text-muted: #735d61;
  --border-soft: #eadfce;
  --border-strong: #decdb3;
  --state-success: #216b49;
  --state-danger: #a40f32;
  --state-focus: #ffc21a;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-control: 4px;
  --radius-small: 6px;
  --radius-card: 8px;
  --radius-panel: 12px;
  --radius-image: 12px;
  --radius-pill: 999px;
  --shadow-control: 0 6px 16px rgba(82, 0, 20, 0.12);
  --shadow-card: 0 10px 28px rgba(70, 31, 25, 0.08);
  --shadow-float: 0 18px 44px rgba(70, 31, 25, 0.14);
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 320ms;
  --ease-enter: cubic-bezier(.2, .8, .2, 1);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --z-base: 0;
  --z-raised: 10;
  --z-sticky: 30;
  --z-drawer-backdrop: 80;
  --z-drawer: 90;
  --z-cursor: 1000;
  --sidebar-width: 232px;
  --content-max: 1360px;
  --canvas-padding: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f5f0e8; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 4%, rgba(255, 194, 26, .08), transparent 28rem),
    #f5f0e8;
  color: var(--text-body);
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--brand-gold-100); color: var(--brand-burgundy-950); }
:focus-visible { outline: 3px solid var(--state-focus); outline-offset: 3px; }

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 1100;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--brand-burgundy-950);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.icon { flex: 0 0 auto; }
.eyebrow {
  color: var(--brand-burgundy-800);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-transform: uppercase;
}
.eyebrow--soft {
  display: inline-flex;
  width: fit-content;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold-100);
  color: var(--brand-burgundy-800);
  letter-spacing: .06em;
}
.eyebrow--gold { color: var(--brand-gold-400); }
.micro-label { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ==========================================================================
   2. Shell, navigation and footer alignment
   ========================================================================== */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-sticky);
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  overflow-y: auto;
  border-inline-end: 1px solid var(--border-soft);
  background: rgba(255, 254, 250, .98);
  padding: 16px 14px 14px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
}
.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.sidebar-brand { display: grid; place-items: center; min-height: 80px; }
.brand-lockup { display: inline-flex; align-items: center; }
.brand-lockup img { max-width: 140px; height: auto; max-height: 100px; object-fit: contain; }
.brand-lockup--compact img { max-width: 118px; height: auto; max-height: 70px; object-fit: contain; }
.rail-nav { display: grid; gap: 0; margin-block-start: 12px; }
.nav-divider {
  display: block;
  width: calc(100% - 24px);
  height: 1px;
  margin: 5px auto;
  background: var(--border-soft);
}
.nav-link {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-radius: var(--radius-small);
  color: var(--brand-burgundy-900);
  font-size: 15px;
  font-weight: 650;
  transition: background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}
.nav-link:hover, .nav-link:focus-visible { background: var(--brand-burgundy-100); transform: translateX(2px); }
.nav-link.is-active { background: var(--brand-burgundy-800); color: white; box-shadow: var(--shadow-control); }
.nav-icon { display: grid; width: 22px; place-items: center; }
.nav-icon .icon { width: 19px; height: 19px; }
.guidance-card {
  display: block;
  margin-block-start: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, #fff8df, var(--surface-warm));
  padding: 12px;
  color: inherit;
  text-decoration: none;
}
.guidance-card:hover, .guidance-card:focus-visible { transform: translateY(-2px); }
.guidance-card:focus-visible { outline: 3px solid var(--state-focus); outline-offset: 3px; }
.guidance-card__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-paper);
  color: var(--brand-burgundy-800);
}
.guidance-card h2 { margin-block-start: 8px; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 18px; line-height: 1.1; }
.guidance-card p { margin-block: 4px 10px; font-size: 13px; line-height: 1.35; }
.sidebar-actions { display: flex; justify-content: center; gap: 10px; margin-block-start: 10px; }
.sidebar-actions a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-burgundy-800);
  transition: background var(--motion-fast), transform var(--motion-fast);
}
.sidebar-actions a:hover { background: var(--brand-burgundy-100); transform: translateY(-1px); }
.sidebar-actions .icon { width: 19px; height: 19px; }
.mobile-header, .mobile-drawer, .drawer-backdrop { display: none; }

.site-frame, .site-footer {
  width: min(calc(100% - var(--sidebar-width) - 42px), var(--content-max));
  margin-inline-start: calc(var(--sidebar-width) + 21px);
}
.site-frame { padding-block: 16px 0; }
.main-canvas {
  overflow: clip;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-panel);
  background: var(--surface-canvas);
  box-shadow: 0 6px 24px rgba(70, 31, 25, .06);
  padding: 0 var(--canvas-padding) var(--canvas-padding);
}
.utility-bar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  border-block-end: 1px solid rgba(234, 223, 206, .65);
}
.utility-phone { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--brand-burgundy-900); font-size: 14px; font-weight: 700; }
.utility-phone .icon { width: 17px; height: 17px; }
.site-main { min-width: 0; }
.content-section { padding-block: 28px; }
.content-section + .content-section { border-block-start: 1px solid var(--border-soft); }
.section-header { max-width: 680px; }
.section-header .eyebrow { margin-block-end: 9px; }
.section-header h2 {
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: clamp(29px, 2.6vw, 42px);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.06;
}
.section-header > p:last-child:not(.eyebrow) { max-width: 620px; margin-block-start: 11px; color: var(--text-muted); font-size: 17px; line-height: 1.55; }

/* ==========================================================================
   3. Actions and shared controls
   ========================================================================== */
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast), box-shadow var(--motion-fast);
}
.button .icon { width: 18px; height: 18px; }
.button--primary { background: var(--brand-burgundy-800); color: white; box-shadow: var(--shadow-control); }
.button--primary:hover { background: var(--brand-burgundy-950); transform: translateY(-1px); box-shadow: 0 5px 13px rgba(82, 0, 20, .18); }
.button--primary:active { transform: scale(.985); box-shadow: none; }
.button--gold { background: var(--brand-gold-400); color: var(--brand-burgundy-950); }
.button--gold:hover { background: var(--brand-gold-100); transform: translateY(-1px); }
.button--outline-light { border-color: rgba(255,255,255,.45); color: white; }
.button--outline-light:hover { background: rgba(255,255,255,.1); }
.button--small { min-height: 40px; padding: 8px 17px; }
.button--full { width: 100%; }
.button:disabled { opacity: .48; pointer-events: none; transform: none; box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block-start: 16px; }
.text-link, .arrow-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--brand-burgundy-800);
  font-size: 14px;
  font-weight: 700;
}
.text-link .icon, .arrow-link .icon { width: 17px; height: 17px; transition: transform var(--motion-fast); }
.text-link:hover .icon, .arrow-link:hover .icon { transform: translateX(3px); }
.arrow-link--light { color: white; }
.arrow-target {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-burgundy-800);
  transition: background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
.arrow-target .icon { width: 18px; height: 18px; }

/* ==========================================================================
   4. Homepage reference area
   ========================================================================== */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(500px, 1.35fr);
  align-items: center;
  gap: 24px;
  min-height: 370px;
  padding-block: 30px 24px;
}
.home-hero__copy { position: relative; z-index: 2; padding-inline-start: 12px; }
.home-hero h1 {
  margin-block-start: 14px;
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: clamp(48px, 4.35vw, 66px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .92;
}
.home-hero h1 span {
  display: inline-block;
  color: var(--brand-gold-500);
  font-family: "Kalam", cursive;
  font-size: 1.04em;
  letter-spacing: -.04em;
  transform: rotate(-2deg);
}
.home-hero h1 span::after { content: ""; display: block; height: 3px; margin-block-start: -7px; border-radius: 4px; background: var(--brand-gold-400); transform: rotate(-2deg); }
.hero-lede { max-width: 430px; margin-block-start: 19px; color: var(--text-body); font-size: 17px; line-height: 1.55; }
.home-hero__visual { position: relative; min-width: 0; min-height: 310px; padding-inline-end: 170px; }
.hero-image-wrap {
  position: absolute;
  inset: 20px 95px 6px 0;
  overflow: hidden;
  border-radius: 38% 18% 34% 20% / 28% 24% 38% 32%;
  background: var(--brand-gold-100);
}
.hero-image-wrap::before { content: ""; position: absolute; inset: -22px -18px auto auto; width: 80%; height: 40%; border-radius: 50%; background: rgba(82, 0, 20, .16); z-index: 1; pointer-events: none; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.doodle { position: absolute; z-index: 3; color: var(--brand-gold-500); font-family: "Kalam", cursive; line-height: 1; }
.doodle--star { inset-block-start: -2px; inset-inline-start: 7%; font-size: 48px; transform: rotate(-15deg); }
.doodle--rays { inset-block-start: 40px; inset-inline-end: 2%; font-size: 34px; transform: rotate(18deg); }
.consultation-widget {
  position: absolute;
  z-index: 4;
  inset-block-start: 60px;
  inset-inline-end: 0;
  width: 224px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-float);
  padding: 17px;
}
.consultation-widget__head { display: flex; align-items: center; gap: 10px; }
.widget-icon { display: none; }
.consultation-widget h2 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 19px; line-height: 1.05; }
.consultation-widget p { margin-block-start: 3px; color: var(--text-muted); font-size: 12px; line-height: 1.35; }
.week-picker { 
  display: flex; 
  overflow-x: auto; 
  scroll-snap-type: x mandatory; 
  scroll-padding-inline: 4px;
  gap: 8px; 
  margin-top: 6px;
  margin-bottom: 2px;
  padding-top: 8px;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.week-picker::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 64px;
  scroll-snap-align: start;
  display: grid;
  min-width: 0;
  min-height: 51px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--surface-warm);
  color: var(--text-body);
  padding: 5px 2px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.date-chip:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 16px rgba(70, 31, 25, 0.12);
  background: white;
  border-color: var(--brand-gold-400);
  z-index: 2;
}
.date-chip small { font-size: 9px; text-transform: uppercase; transition: color 0.2s; }
.date-chip strong { color: var(--brand-burgundy-900); font-size: 15px; transition: color 0.2s; }
.date-chip.is-selected { 
  background: var(--brand-burgundy-800); 
  color: white; 
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(70, 31, 25, 0.15);
}
.date-chip.is-selected strong { color: white; }
.date-chip.is-today:not(.is-selected) { border-color: var(--brand-gold-500); }

.home-overview {
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 1fr .85fr;
  gap: 12px;
}
.overview-card {
  position: relative;
  min-width: 0;
  min-height: 246px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-paper);
  padding: 18px;
}
.overview-card--support, .overview-card--programs { background: linear-gradient(145deg, #fff9ea, #fffdf8); }
.overview-card--stories { background: var(--surface-warm); }
.overview-title { display: flex; align-items: center; gap: 11px; }
.overview-title h2, .overview-card--stories h2 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 20px; font-weight: 750; line-height: 1.08; }
.round-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; }
.round-icon--gold { background: var(--brand-gold-400); color: var(--brand-burgundy-900); }
.round-icon--maroon { background: var(--brand-burgundy-800); color: white; }
.round-icon .icon { width: 19px; height: 19px; }
.overview-card > p:not(.micro-label) { margin-block: 15px 12px; font-size: 14px; line-height: 1.48; }
.overview-card .arrow-link { position: relative; z-index: 2; }
.book-stack { position: absolute; inset: auto 13px 12px auto; width: 112px; height: 78px; }
.book-stack span { position: absolute; inset-inline-start: 0; width: 82px; height: 14px; border: 1px solid rgba(82, 0, 20,.2); border-radius: 3px; background: var(--brand-gold-400); transform: skewX(-8deg); }
.book-stack span:nth-child(1) { inset-block-end: 0; width: 102px; background: var(--brand-burgundy-800); }
.book-stack span:nth-child(2) { inset-block-end: 16px; width: 92px; background: #f0a800; }
.book-stack span:nth-child(3) { inset-block-end: 32px; width: 98px; background: #f7d56a; }
.book-stack i { position: absolute; inset: 0 0 auto auto; display: grid; width: 37px; height: 55px; place-items: center; border: 1px solid var(--border-strong); border-radius: 8px 8px 3px 3px; background: #f2e5d0; color: var(--brand-burgundy-900); }
.program-mini-list { margin-block: 12px 8px; }
.program-mini-list a { display: grid; grid-template-columns: 32px 1fr 18px; align-items: center; gap: 8px; min-height: 43px; border-block-end: 1px solid var(--border-soft); }
.program-mini-list a:last-child { border-block-end: 0; }
.program-mini-list .mini-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.program-mini-list .mini-icon .icon { width: 16px; height: 16px; }
.program-mini-list strong { display: block; color: var(--text-strong); font-size: 13px; line-height: 1.15; }
.program-mini-list small { display: block; color: var(--text-muted); font-size: 10px; line-height: 1.15; }
.program-mini-list > a > .icon { width: 15px; height: 15px; color: var(--brand-burgundy-800); }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 9px; margin-block: 17px 13px; }
.check-list li { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.25; }
.check-list .icon { width: 14px; height: 14px; color: var(--brand-burgundy-800); }
.mini-quote { border-radius: 10px; background: white; padding: 11px 12px; }
.mini-quote > .icon { width: 18px; height: 18px; color: var(--brand-burgundy-800); }
.mini-quote p { margin-block-start: 5px; color: var(--text-body); font-size: 12px; font-weight: 600; line-height: 1.35; }
.mini-quote cite { color: var(--brand-burgundy-800); font-size: 10px; font-style: normal; font-weight: 700; }
.overview-card--stories .micro-label { margin-block-end: 7px; }
.metric-ring { position: relative; display: grid; width: 92px; height: 92px; margin-block: 13px 6px; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand-gold-400) 0 31%, var(--brand-burgundy-800) 31% 74%, #eadfce 74%); }
.metric-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface-warm); }
.metric-ring strong, .metric-ring span { position: relative; z-index: 1; grid-area: 1/1; }
.metric-ring strong { margin-block-start: -13px; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 25px; }
.metric-ring span { margin-block-start: 29px; color: var(--text-muted); font-size: 8px; line-height: 1.05; text-align: center; }
.overview-card--stories > p:not(.micro-label) { margin-block: 5px 7px; font-size: 12px; }
.quick-path-strip {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr) auto;
  align-items: stretch;
  margin-block-start: 18px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: linear-gradient(115deg, var(--brand-burgundy-950), var(--brand-burgundy-700));
  color: white;
}
.quick-path-strip__title, .quick-path-strip > a { min-height: 76px; }
.quick-path-strip__title { display: flex; align-items: center; gap: 10px; padding: 14px 20px; }
.quick-path-strip__title .icon { color: var(--brand-gold-400); }
.quick-path-strip > a:not(.arrow-link) { display: grid; align-content: center; border-inline-start: 1px solid rgba(255,255,255,.16); padding: 12px 18px; transition: background var(--motion-fast); }
.quick-path-strip > a:not(.arrow-link):hover { background: rgba(255,255,255,.08); }
.quick-path-strip small { color: var(--brand-gold-100); font-size: 10px; text-transform: uppercase; }
.quick-path-strip strong { font-size: 14px; }
.quick-path-strip .arrow-link { padding-inline: 20px; }

/* ==========================================================================
   5. Inner heroes and page-level framing
   ========================================================================== */
.inner-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: center;
  gap: 34px;
  min-height: 390px;
  padding-block: 30px 36px;
}
.inner-hero--no-media {
  grid-template-columns: 1fr;
  min-height: auto;
}
.inner-hero--no-media .inner-hero__copy {
  max-width: 680px;
}
.inner-hero::after { content: ""; position: absolute; z-index: 0; inset: 20px -20px auto auto; width: 360px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 0, 20,.18), transparent 70%); pointer-events: none; }

.section-header--center {
  margin-inline: auto;
  text-align: center;
}
.section-header--center .eyebrow {
  justify-content: center;
}
.section-header--center > p:last-child:not(.eyebrow) {
  margin-inline: auto;
}

/* Custom Interactive Map Card */
.contact-hero-media-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}
.contact-map-card {
  position: relative;
  display: block;
  width: 100%;
  height: 260px;
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-float);
  background: var(--surface-tint);
  text-decoration: none;
  color: inherit;
}
.contact-map-image-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.contact-map-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--motion-slow) var(--ease-enter);
}
.contact-map-card:hover .contact-map-image-wrap img {
  transform: scale(1.05);
}

/* Map pin in center */
.contact-map-pin {
  position: absolute;
  top: 66%;
  left: 38%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.pin-marker {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--brand-burgundy-800);
  border: 2px solid var(--brand-gold-400);
  color: var(--brand-gold-400);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: var(--shadow-control);
  animation: pinBounce 2s infinite ease-in-out;
}
.pin-marker svg {
  transform: rotate(45deg);
  width: 20px;
  height: 20px;
}
.pin-pulse {
  position: absolute;
  bottom: -4px;
  width: 12px;
  height: 6px;
  background: rgba(82, 0, 20, 0.35);
  border-radius: 50%;
  transform: scale(1);
  animation: pinShadow 2s infinite ease-in-out;
}

@keyframes pinBounce {
  0%, 100% { transform: translateY(0) rotate(-45deg); }
  50% { transform: translateY(-8px) rotate(-45deg); }
}
@keyframes pinShadow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.4; }
}

/* Hover overlay details card */
.contact-map-overlay {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  background: rgba(255, 254, 250, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-float);
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: transform var(--motion-base) var(--ease-enter), opacity var(--motion-base) ease, visibility var(--motion-base);
}
.map-overlay-header h3 {
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.1;
}
.map-overlay-owner {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}
.map-overlay-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--space-2);
  font-size: 12.5px;
}
.rating-value {
  font-weight: 700;
  color: var(--brand-burgundy-900);
}
.rating-stars {
  color: var(--brand-gold-500);
  letter-spacing: 0.5px;
}
.rating-count {
  color: var(--text-muted);
}
.map-overlay-address {
  font-size: 13px;
  color: var(--text-body);
  margin-top: var(--space-2);
  line-height: 1.4;
}
.map-overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-burgundy-800);
  border-bottom: 1px solid rgba(104, 0, 25, 0.3);
  padding-bottom: 1px;
  width: fit-content;
  transition: color var(--motion-fast), border-color var(--motion-fast);
}
.contact-map-card:hover .map-overlay-btn {
  color: var(--brand-burgundy-950);
  border-color: var(--brand-burgundy-950);
}
.map-overlay-btn .icon {
  width: 13px;
  height: 13px;
  transition: transform var(--motion-fast);
}
.contact-map-card:hover .map-overlay-btn .icon {
  transform: translateX(2px);
}

/* Show details on hover for desktop */
@media (hover: hover) and (pointer: fine) {
  .contact-map-card:hover .contact-map-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* Touch devices & Mobile static layout */
@media (hover: none), (pointer: coarse), (max-width: 767px) {
  .contact-map-card {
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-panel);
    overflow: hidden;
  }
  .contact-map-image-wrap {
    height: 200px;
    border-radius: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .contact-map-overlay {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: var(--space-4);
    background: var(--surface-paper);
  }
}

.contact-timings-bubble {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-gold-100);
  border: 1px solid var(--border-strong);
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-fast) var(--ease-enter);
}
.contact-timings-bubble:hover {
  transform: translateY(-2px);
}
.contact-timings-bubble .timings-icon {
  display: grid;
  place-items: center;
  color: var(--brand-burgundy-800);
}
.contact-timings-bubble .timings-icon .icon {
  width: 17px;
  height: 17px;
}

/* Spacing and layout overrides for Contact page alignment */
.page-contact .inner-hero {
  align-items: flex-start;
  min-height: auto;
  padding-block: 24px 20px;
  border-block-end: 1px solid var(--border-soft);
}
.page-contact .inner-hero__copy {
  padding-block-start: 12px;
}
.page-contact .contact-hero-media-wrap {
  margin-block-start: 16px;
}
.inner-hero__copy, .inner-hero__media { position: relative; z-index: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-block-end: 17px; color: var(--text-muted); font-size: 13px; }
.breadcrumbs a { min-height: 28px; display: inline-flex; align-items: center; }
.breadcrumbs a:hover { color: var(--brand-burgundy-800); text-decoration: underline; }
.breadcrumbs .icon { width: 13px; height: 13px; }
.inner-hero h1 {
  max-width: 690px;
  margin-block-start: 14px;
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: clamp(43px, 4vw, 62px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .99;
}
.inner-hero__lede { max-width: 590px; margin-block-start: 17px; color: var(--text-body); font-size: 18px; line-height: 1.55; }
.inner-hero__media { min-height: 310px; padding: 12px 16px 30px 0; }
.inner-hero__image { width: 100%; height: 300px; overflow: hidden; border-radius: var(--radius-image); background: var(--surface-tint); }
.inner-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.inner-hero__annotation {
  position: absolute;
  inset: auto 0 0 auto;
  display: flex;
  width: min(270px, 75%);
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: white;
  box-shadow: var(--shadow-float);
  padding: 14px 16px;
}
.inner-hero__annotation > span { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--brand-gold-400); color: var(--brand-burgundy-900); }
.inner-hero__annotation strong { display: block; color: var(--brand-burgundy-900); font-size: 15px; line-height: 1.2; }
.inner-hero__annotation small { display: block; margin-block-start: 2px; color: var(--text-muted); font-size: 12px; line-height: 1.25; }

/* ==========================================================================
   6. Editorial pathway, subject and stream systems
   ========================================================================== */
.editorial-split { display: grid; grid-template-columns: minmax(230px, 4fr) minmax(0, 8fr); gap: 30px; align-items: start; }
.editorial-intro { position: sticky; top: 26px; }
.editorial-intro .arrow-link { margin-block-start: 20px; }
.pathway-board { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); }
.pathway-row { display: grid; grid-template-columns: 94px minmax(0, 1fr) 40px; align-items: center; min-height: 108px; gap: 13px; border-block-end: 1px solid var(--border-soft); padding: 8px 11px; transition: background var(--motion-fast); }
.pathway-row:nth-child(odd) { border-inline-end: 1px solid var(--border-soft); }
.pathway-row:nth-last-child(-n+2) { border-block-end: 0; }
.pathway-row:nth-child(4n+2), .pathway-row:nth-child(4n+3) { background: var(--surface-warm); }
.pathway-row:hover { background: var(--brand-gold-100); }
.pathway-row:hover .arrow-target { background: var(--brand-burgundy-800); color: white; transform: translateX(3px); }
.pathway-row img { width: 94px; height: 84px; border-radius: var(--radius-small); object-fit: cover; }
.pathway-row__copy { min-width: 0; }
.pathway-row__copy small { display: block; color: var(--brand-burgundy-700); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pathway-row__copy strong { display: block; color: var(--text-strong); font-family: "Anek Latin", sans-serif; font-size: 20px; line-height: 1.1; }
.pathway-row__copy em { display: block; margin-block-start: 2px; color: var(--text-muted); font-size: 12px; font-style: normal; }

.program-path-board { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; margin-block-start: 27px; }
.program-path-board__foundation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.program-path-board__senior { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 22px; }
.program-path-card { position: relative; display: grid; grid-template-columns: 42% 58%; min-height: 175px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); transition: transform var(--motion-fast), box-shadow var(--motion-fast), border-color var(--motion-fast); }
.program-path-card:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.program-path-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-base); }
.program-path-card:hover img { transform: scale(1.025); }
.program-path-card > div { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 14px 15px; }
.program-path-card small { color: var(--brand-burgundy-700); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.program-path-card h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 23px; line-height: 1.05; }
.program-path-card p { color: var(--text-muted); font-size: 12px; }
.program-path-card span { display: inline-flex; align-items: center; gap: 5px; margin-block-start: 12px; color: var(--brand-burgundy-800); font-size: 12px; font-weight: 700; }
.program-path-card span .icon { width: 15px; height: 15px; }
.program-path-card--senior { min-height: 182px; grid-template-columns: 47% 53%; background: var(--surface-warm); }
.stream-panel, .stream-choice-panel { margin-inline: -10px; padding-inline: 24px; border-radius: var(--radius-panel); background: var(--surface-warm); }
.stream-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-block-start: 26px; }
.stream-card { position: relative; min-height: 315px; overflow: hidden; border-radius: var(--radius-card); background: var(--brand-burgundy-900); }
.stream-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-base); }
.stream-card__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(63,0,16,.04) 18%, rgba(63,0,16,.93) 100%); }
.stream-card__content { position: absolute; inset: auto 0 0; padding: 19px; color: white; }
.stream-card__content small { color: var(--brand-gold-100); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stream-card__content h3 { font-family: "Anek Latin", sans-serif; font-size: 29px; line-height: 1; }
.stream-card__content p { margin-block-start: 6px; font-size: 13px; line-height: 1.35; }
.stream-card__content > span { display: inline-flex; align-items: center; gap: 7px; margin-block-start: 16px; color: var(--brand-gold-100); font-size: 13px; font-weight: 700; }
.stream-card__content .icon { width: 16px; height: 16px; transition: transform var(--motion-fast); }
.stream-card:hover img { transform: scale(1.025); }
.stream-card:hover .icon { transform: translateX(3px); }

.subject-directory, .stream-subject-section { display: grid; grid-template-columns: 4fr 8fr; gap: 30px; align-items: start; }
.scope-links { display: grid; gap: 8px; margin-block-start: 23px; }
.scope-links a { display: grid; grid-template-columns: 1fr 18px; gap: 2px 8px; border-block-start: 1px solid var(--border-soft); padding-block: 11px; }
.scope-links span { color: var(--brand-burgundy-900); font-weight: 700; }
.scope-links small { color: var(--text-muted); font-size: 13px; }
.scope-links .icon { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 16px; height: 16px; }
.subject-list { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
.subject-list > a { display: grid; grid-template-columns: 38px minmax(0,1fr) 40px; align-items: center; min-height: 104px; gap: 12px; border-block-end: 1px solid var(--border-soft); padding: 13px; transition: background var(--motion-fast); }
.subject-list > a:nth-child(odd) { border-inline-end: 1px solid var(--border-soft); }
.subject-list > a:nth-last-child(-n+2) { border-block-end: 0; }
.subject-list > a:hover { background: var(--surface-warm); }
.subject-list > a:hover .arrow-target { transform: translateX(3px); }
.subject-list__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.subject-list__icon .icon { width: 18px; height: 18px; }
.subject-list__copy { min-width: 0; }
.subject-list__copy small { display: block; color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
.subject-list__copy strong { display: block; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 20px; line-height: 1.1; }
.subject-list__copy em { display: block; margin-block-start: 4px; color: var(--text-body); font-size: 12px; font-style: normal; line-height: 1.32; }

.class-journey .section-header { margin-block-end: 26px; }
.journey-board { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.journey-board::before { content: ""; position: absolute; z-index: 0; inset: 50% 6% auto; height: 2px; background: linear-gradient(90deg, var(--brand-gold-400), var(--brand-burgundy-800)); }
.journey-step { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 88px minmax(0,1fr) 40px; align-items: center; min-height: 124px; gap: 10px; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); padding: 10px; transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.journey-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.journey-step--foundation { background: #fffaf0; }
.journey-step--board { background: #fdf3e7; }
.journey-step--senior { background: #f8ecef; }
.journey-number { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--brand-burgundy-800); color: white; font-family: "Anek Latin", sans-serif; font-size: 24px; font-weight: 800; }
.journey-step img { width: 88px; height: 94px; border-radius: var(--radius-small); object-fit: cover; }
.journey-copy small { display: block; color: var(--brand-burgundy-700); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.journey-copy strong { display: block; color: var(--text-strong); font-family: "Anek Latin", sans-serif; font-size: 20px; line-height: 1.1; }
.journey-copy em { display: block; margin-block-start: 3px; color: var(--text-muted); font-size: 12px; font-style: normal; }

.subject-board-section .section-header { margin-block-end: 25px; }
.subject-board { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
.subject-cell { display: grid; grid-template-columns: 34px 1fr 22px; align-items: center; min-height: 80px; gap: 10px; border-inline-end: 1px solid var(--border-soft); border-block-end: 1px solid var(--border-soft); padding: 12px 16px; background: var(--surface-paper); transition: background var(--motion-fast); }
.subject-cell:nth-child(3n) { border-inline-end: 0; }
.subject-cell:nth-last-child(-n+3) { border-block-end: 0; }
.subject-cell:hover { background: var(--surface-warm); }
.subject-cell > span { color: var(--brand-burgundy-700); font-size: 12px; font-weight: 700; }
.subject-cell strong { color: var(--text-strong); font-family: "Anek Latin", sans-serif; font-size: 19px; }
.subject-cell .icon { width: 17px; height: 17px; color: var(--brand-burgundy-800); transition: transform var(--motion-fast); }
.subject-cell:hover .icon { transform: translateX(3px); }
.subject-cell--featured { background: var(--brand-gold-100); }
.subject-cell--featured:last-child { grid-column: span 3; border-inline-end: 0; }

.stream-subject-intro .quiet-note { margin-block-start: 22px; }
.quiet-note { display: grid; gap: 3px; border-inline-start: 3px solid var(--brand-gold-400); background: var(--surface-warm); padding: 12px 14px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.quiet-note strong { color: var(--brand-burgundy-900); }
.stream-subject-board { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
.stream-subject-board .subject-cell:nth-child(3n) { border-inline-end: 1px solid var(--border-soft); }
.stream-subject-board .subject-cell:nth-child(2n) { border-inline-end: 0; }
.stream-subject-board .subject-cell:nth-last-child(-n+2) { border-block-end: 0; }
.stream-subject-board .subject-cell--featured:last-child { grid-column: auto; }

/* ==========================================================================
   7. Learning systems and benefits
   ========================================================================== */
.learning-loop {
  display: grid;
  grid-template-columns: 4.5fr 7.5fr;
  gap: 30px;
  margin-inline: -10px;
  border: 0 !important;
  border-radius: var(--radius-panel);
  background: var(--surface-warm);
  padding: 32px 24px;
}
.learning-loop__narrative { min-width: 0; }
.loop-rail { position: relative; display: grid; gap: 0; margin-block-start: 25px; }
.loop-rail::before { content: ""; position: absolute; inset: 17px auto 17px 16px; width: 2px; background: var(--border-strong); }
.loop-rail article { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding-block: 8px; }
.loop-rail article > span { z-index: 1; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--brand-burgundy-800); color: white; font-size: 11px; font-weight: 700; }
.loop-rail article:nth-child(even) > span { background: var(--brand-gold-400); color: var(--brand-burgundy-950); }
.loop-rail h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 18px; line-height: 1.15; }
.loop-rail p { color: var(--text-muted); font-size: 13px; line-height: 1.35; }
.loop-image { margin-block-start: 20px; overflow: hidden; border-radius: var(--radius-card); }
.loop-image img { width: 100%; height: 170px; object-fit: cover; }
.method-matrix { display: grid; grid-template-columns: 1fr 1fr; align-content: stretch; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); }
.method-row { display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 11px; min-height: 130px; border-block-end: 1px solid var(--border-soft); padding: 20px; }
.method-row:nth-child(odd) { border-inline-end: 1px solid var(--border-soft); }
.method-row:nth-last-child(-n+2) { border-block-end: 0; }
.method-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.method-icon .icon { width: 18px; height: 18px; }
.method-row h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 18px; line-height: 1.15; }
.method-row p { margin-block-start: 4px; color: var(--text-muted); font-size: 13px; line-height: 1.42; }
.learning-loop--image { grid-template-columns: 4fr 8fr; }
.learning-loop--image .loop-rail { display: none; }
.learning-loop--image .loop-image img { height: 220px; }

.process-section .section-header { margin-block-end: 25px; }
.process-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); padding: 25px 8px; }
.process-strip::before { content: ""; position: absolute; inset: 41px 10% auto; height: 1px; background: var(--border-strong); }
.process-strip article { position: relative; z-index: 1; display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 0 15px; }
.process-strip article + article { border-inline-start: 1px solid var(--border-soft); }
.process-marker { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--brand-burgundy-800); color: white; font-size: 10px; font-weight: 700; }
.process-strip article:nth-child(even) .process-marker { background: var(--brand-gold-400); color: var(--brand-burgundy-950); }
.process-strip h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 18px; line-height: 1.1; }
.process-strip p { margin-block-start: 5px; color: var(--text-muted); font-size: 13px; line-height: 1.38; }
.compact-process { position: relative; display: grid; margin-block-start: 23px; }
.compact-process::before { content: ""; position: absolute; inset: 16px auto 16px 15px; width: 2px; background: var(--border-strong); }
.compact-process article { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-block: 8px; }
.compact-process span { z-index: 1; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--brand-burgundy-800); color: white; font-size: 10px; font-weight: 700; }
.compact-process h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 18px; }
.compact-process p { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.support-process { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.support-process > figure { position: relative; min-height: 330px; overflow: hidden; border-radius: var(--radius-panel); }
.support-process img { width: 100%; height: 100%; object-fit: cover; }
.support-process figcaption { position: absolute; inset: auto 14px 14px; border-radius: var(--radius-small); background: rgba(255,254,250,.94); color: var(--brand-burgundy-900); padding: 10px 12px; font-size: 13px; font-weight: 700; }

.method-checklist { display: grid; grid-template-columns: 4fr 8fr; gap: 30px; margin-inline: -10px; border: 0 !important; border-radius: var(--radius-panel); background: var(--surface-warm); padding: 32px 24px; }
.method-checklist > div:first-child .arrow-link { margin-block-start: 19px; }
.method-checklist__grid { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); }
.method-checklist__grid article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; min-height: 112px; border-block-end: 1px solid var(--border-soft); padding: 16px; }
.method-checklist__grid article:nth-child(odd) { border-inline-end: 1px solid var(--border-soft); }
.method-checklist__grid article:nth-last-child(-n+2) { border-block-end: 0; }
.method-checklist__grid article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.method-checklist__grid .icon { width: 17px; height: 17px; }
.method-checklist h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 17px; line-height: 1.15; }
.method-checklist__grid p { margin-block-start: 3px; color: var(--text-muted); font-size: 12px; line-height: 1.4; }

.why-component { display: grid; grid-template-columns: 4.2fr 7.8fr; gap: 0; overflow: hidden; border: 1px solid var(--border-soft) !important; border-radius: var(--radius-panel); padding: 0; }
.why-narrative { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(145deg, var(--brand-burgundy-950), var(--brand-burgundy-700)); color: white; padding: 30px; }
.why-narrative h2 { color: white; font-family: "Anek Latin", sans-serif; font-size: clamp(29px, 2.6vw, 40px); line-height: 1.05; }
.why-narrative > p:not(.eyebrow) { margin-block-start: 12px; color: rgba(255,255,255,.78); }
.scope-badge { display: inline-flex; width: fit-content; align-items: center; gap: 7px; margin-block-start: 22px; border: 1px solid rgba(255,255,255,.26); border-radius: var(--radius-pill); padding: 7px 11px; color: var(--brand-gold-100); font-size: 12px; font-weight: 700; }
.scope-badge .icon { width: 16px; height: 16px; }
.benefit-matrix { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-paper); }
.benefit-matrix article { display: grid; grid-template-columns: 34px 1fr; gap: 11px; min-height: 142px; border-block-end: 1px solid var(--border-soft); padding: 22px; }
.benefit-matrix article:nth-child(odd) { border-inline-end: 1px solid var(--border-soft); }
.benefit-matrix article:nth-last-child(-n+2) { border-block-end: 0; }
.benefit-matrix article > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.benefit-matrix h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 19px; line-height: 1.15; }
.benefit-matrix p { margin-block-start: 5px; color: var(--text-muted); font-size: 13px; line-height: 1.42; }

.senior-stage { display: flex; flex-direction: column; gap: 18px; }
.senior-stage__rows { overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); margin-block-start: 4px; }

/* Boards showcase — premium curricula grid under streams */
.boards-showcase { margin-block-start: 8px; }
.boards-showcase .section-header { margin-block-end: 26px; }
.boards-showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.board-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background:
    linear-gradient(165deg, rgba(255, 248, 223, .55) 0%, transparent 42%),
    var(--surface-paper);
  padding: 20px 18px 18px;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), border-color var(--motion-fast);
}
.board-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-gold-500);
  box-shadow: var(--shadow-card);
}
.board-card__accent {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-burgundy-800), var(--brand-gold-500));
  opacity: .9;
}
.board-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 14px;
}
.board-card__index {
  color: var(--brand-burgundy-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.board-card__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-gold-100);
  color: var(--brand-burgundy-800);
  opacity: .85;
}
.board-card__mark .icon { width: 16px; height: 16px; }
.board-card__name {
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.board-card__fullname {
  margin-block-start: 6px;
  color: var(--brand-burgundy-800);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.board-card__subtitle {
  margin-block-start: 10px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.board-card__note {
  margin-block-start: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 auto;
}
.board-card__link {
  margin-block-start: 16px;
  width: fit-content;
}
.board-card__link .icon { display: none; }
.board-card__link {
  border-block-end: 1px solid rgba(104, 0, 25, .22);
  padding-block-end: 2px;
}
@media (max-width: 1099px) {
  .boards-showcase__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .boards-showcase__grid { grid-template-columns: 1fr; }
  .board-card { min-height: 0; }
}
.senior-stage__rows article { display: grid; grid-template-columns: 42px 1fr; gap: 13px; min-height: 106px; align-items: center; border-block-end: 1px solid var(--border-soft); padding: 16px 18px; }
.senior-stage__rows article:last-child { border-block-end: 0; }
.senior-stage__rows article > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.senior-stage h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 19px; }
.senior-stage__rows p { color: var(--text-muted); font-size: 13px; line-height: 1.42; }
.consultation-prep { display: grid; grid-template-columns: 4fr 8fr; gap: 30px; }
.consultation-prep > div { overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); }
.consultation-prep article { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: center; min-height: 92px; border-block-end: 1px solid var(--border-soft); padding: 14px 18px; }
.consultation-prep article:last-child { border-block-end: 0; }
.consultation-prep article > span { color: var(--brand-gold-600); font-family: "Anek Latin", sans-serif; font-size: 22px; font-weight: 800; }
.consultation-prep h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 19px; }
.consultation-prep p { color: var(--text-muted); font-size: 13px; }

/* ==========================================================================
   8. Testimonials, story and gallery
   ========================================================================== */
.testimonial-section .section-header { margin-block-end: 28px; max-width: 640px; }

/* Review grid — long-form parent/student reviews */
.star-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #ffc21a;
  margin-block-end: 12px;
}
.star-icon { display: block; width: 15px; height: 15px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.06)); }

.review-feature { margin-block-end: 16px; }
.review-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-paper);
  padding: 20px 20px 18px;
  box-shadow: 0 8px 22px rgba(82, 0, 20, .04);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast), border-color var(--motion-fast);
  text-align: start;
  break-inside: avoid;
}
.review-card:hover {
  transform: translateY(-2px);
  border-color: rgba(104, 0, 25, .18);
  box-shadow: var(--shadow-card);
}
.review-card--featured {
  padding: 28px 26px 24px;
  background:
    linear-gradient(145deg, rgba(255, 242, 198, .35), transparent 55%),
    var(--surface-paper);
  border-color: rgba(242, 174, 0, .35);
}
.review-card__quote {
  flex: 1 1 auto;
  margin: 0;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
  quotes: none;
}
.review-card--featured .review-card__quote {
  font-family: "Anek Latin", sans-serif;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--brand-burgundy-900);
}
.review-card__footer {
  display: grid;
  gap: 3px;
  margin-block-start: 16px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--border-soft);
}
.review-card__name {
  color: var(--brand-burgundy-900);
  font-size: 15px;
  font-weight: 800;
}
.review-card__context {
  color: var(--brand-burgundy-800);
  font-size: 12px;
  font-weight: 700;
}
.review-card__detail {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.review-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block-end: 18px;
}
.review-grid__more {
  display: flex;
  justify-content: flex-start;
}
@media (max-width: 1099px) {
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .review-grid,
  .review-grid--compact { grid-template-columns: 1fr; }
  .review-card--featured { padding: 22px 18px; }
}

/* Legacy wall (unused) */
.testimonial-wall { display: grid; grid-template-columns: 7fr 5fr; gap: 14px; }
.testimonial-feature { display: flex; min-height: 400px; flex-direction: column; justify-content: center; align-items: center; text-align: center; border-radius: var(--radius-panel); background: linear-gradient(145deg, var(--brand-burgundy-950), var(--brand-burgundy-700)); color: white; padding: 40px; }
.quote-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--brand-gold-400); color: var(--brand-burgundy-950); margin: 0 auto; }
.testimonial-feature p.testimonial-context { color: var(--brand-gold-100); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-block-end: 16px; margin-block-start: 24px; }
.testimonial-feature blockquote { max-width: 680px; font-family: "Anek Latin", sans-serif; font-size: clamp(25px, 2.2vw, 32px); font-weight: 600; line-height: 1.2; color: white; margin-inline: auto; }
.testimonial-feature cite { margin-block-start: 18px; color: var(--brand-gold-100); font-style: normal; font-weight: 700; }
.testimonial-feature small { color: rgba(255,255,255,0.8); font-size: 14px; margin-block-start: 6px; display: block; }
.testimonial-stack { display: grid; gap: 12px; }
@media (min-width: 768px) {
  .testimonial-stack > .arrow-link {
    margin-block-start: -48px;
    margin-inline-start: 5px;
  }
}

/* Hero Testimonial */
.hero-testimonial { display: flex; flex-direction: column; justify-content: center; height: 100%; padding: 40px; background: white; border-radius: var(--radius-panel); border: 1px solid var(--border-soft); box-shadow: var(--shadow-float); }
.hero-testimonial .quote-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); margin-block-end: 24px; }
.hero-testimonial blockquote { font-family: "Anek Latin", sans-serif; font-size: clamp(24px, 2vw, 30px); font-weight: 600; line-height: 1.3; color: var(--brand-burgundy-900); }
.hero-testimonial-author { margin-block-start: 24px; border-block-start: 1px solid var(--border-soft); padding-block-start: 16px; }
.hero-testimonial-author strong { display: block; font-size: 16px; color: var(--text-strong); }
.hero-testimonial-author span { display: block; font-size: 13px; color: var(--text-muted); margin-block-start: 2px; }

/* Student Results — legacy (unused) */
.student-results { text-align: center; }
.student-results__header { max-width: 640px; margin-inline: auto; margin-block-end: 40px; }
.student-results__header h2 { font-family: "Anek Latin", sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--brand-burgundy-900); margin-block-end: 12px; }
.student-results__header > p { color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.student-results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-block-end: 40px; }

/* Divider after success hero — same soft rule as between content sections */
.section-breaker {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-block-start: 1px solid var(--border-soft);
  background: none;
  opacity: 1;
}
.page-success .inner-hero { margin-block-end: 0; }
.page-success .section-breaker + .content-section {
  border-block-start: 0;
  padding-block-start: var(--space-10, 40px);
}

/* Video showcase — Success Stories rotating collection */
.video-showcase { text-align: center; }
.video-showcase__header { max-width: 640px; margin-inline: auto; margin-block-end: 28px; }
.video-showcase__header h2 {
  font-family: "Anek Latin", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: var(--brand-burgundy-900);
  margin-block-end: 12px;
}
.video-showcase__header > p { color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.video-showcase__empty { color: var(--text-muted); font-size: 15px; }
.video-showcase__frame {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  border: 1px solid var(--border-soft);
  border-radius: calc(var(--radius-panel) + 4px);
  background:
    linear-gradient(180deg, rgba(255,255,255,.55), transparent 40%),
    var(--surface-paper);
  box-shadow: var(--shadow-card);
  padding: 12px 12px 16px;
  overflow: hidden;
}
.video-showcase__stage {
  position: relative;
  aspect-ratio: 9 / 16;
  max-height: min(72vh, 640px);
  width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-card);
  background: #1a0c10;
  overflow: hidden;
}
.video-showcase__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #1a0c10;
  display: block;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Tiny corner speaker — only audio control */
.video-showcase__audio {
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 5;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 8, 11, .55);
  color: #fff;
  backdrop-filter: blur(6px);
  cursor: pointer;
  padding: 0;
  transition: background var(--motion-fast), transform var(--motion-fast);
}
.video-showcase__audio:hover {
  background: rgba(18, 8, 11, .78);
  transform: scale(1.05);
}
.video-showcase__audio:focus-visible {
  outline: 2px solid var(--brand-gold-400);
  outline-offset: 2px;
}
.video-showcase__audio-icon { display: none; width: 14px; height: 14px; }
.video-showcase__audio.is-muted .video-showcase__audio-icon--off { display: block; }
.video-showcase__audio:not(.is-muted) .video-showcase__audio-icon--on { display: block; }
.video-showcase__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-block-start: 14px;
}
.video-showcase__nav {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--surface-warm);
  color: var(--brand-burgundy-900);
  transition: background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}
.video-showcase__nav:hover {
  border-color: var(--brand-burgundy-800);
  background: var(--brand-burgundy-100);
  transform: translateY(-1px);
}
.video-showcase__nav .icon { width: 18px; height: 18px; }
/* Chevron path points right by default: flip prev only */
.video-showcase__nav--prev .icon { transform: rotate(180deg); }
.video-showcase__nav--next .icon { transform: none; }
.video-showcase__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 220px;
}
.video-showcase__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(82, 0, 20, .18);
  transition: transform var(--motion-fast), background var(--motion-fast);
}
.video-showcase__dot.is-active {
  background: var(--brand-burgundy-800);
  transform: scale(1.25);
}
@media (min-width: 768px) {
  .video-showcase__frame {
    padding: 0;
    max-width: none;
    width: 100%;
    border: 0;
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-float);
    background: #12080b;
  }
  .video-showcase__stage {
    aspect-ratio: 16 / 9;
    max-height: min(82vh, 900px);
    min-height: min(62vh, 640px);
    border-radius: var(--radius-panel);
  }
  .video-showcase__video {
    /* Fill the stage; source WhatsApp files are limited — avoid extra CSS blur/scale */
    object-fit: cover;
    object-position: center center;
  }
  .video-showcase__controls {
    position: relative;
    margin-block-start: 0;
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, transparent, rgba(18, 8, 11, .92));
    margin-block-start: -56px;
    z-index: 2;
  }
  .video-showcase__nav {
    background: rgba(255, 254, 250, .92);
  }
  .video-showcase__dot {
    background: rgba(255, 255, 255, .35);
  }
  .video-showcase__dot.is-active {
    background: #fff;
  }
}
@media (max-width: 479px) {
  .video-showcase__frame {
    margin-inline: -4px;
    border-radius: var(--radius-panel);
    padding: 8px 8px 12px;
  }
  .video-showcase__stage { max-height: min(70vh, 560px); }
}
.result-card { display: flex; flex-direction: column; align-items: center; padding: 32px 20px; background: var(--surface-paper); border: 1px solid var(--border-soft); border-radius: var(--radius-card); transition: border-color var(--motion-base) var(--ease-enter), box-shadow var(--motion-base) var(--ease-enter); }
.result-card:hover { border-color: var(--brand-burgundy-700); box-shadow: var(--shadow-card); }
.result-card__value { font-family: "Anek Latin", sans-serif; font-size: 40px; font-weight: 800; line-height: 1; color: var(--brand-burgundy-900); }
.result-card__label { display: block; margin-block-start: 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-gold-600); }
.result-card__note { margin-block-start: 12px; font-size: 14px; line-height: 1.45; color: var(--text-muted); }
.student-results__cta { padding-block-start: 24px; border-block-start: 1px solid var(--border-soft); }
.student-results__cta > p { font-size: 14px; color: var(--text-muted); font-style: italic; margin-block-end: 16px; }
.testimonial-stack article { display: flex; min-height: 125px; flex-direction: column; justify-content: center; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-warm); padding: 18px 20px; }
.testimonial-stack article:nth-child(2) { background: var(--surface-paper); }
.testimonial-stack blockquote { color: var(--text-strong); font-size: 15px; line-height: 1.45; }
.testimonial-stack cite { margin-block-start: 8px; color: var(--brand-burgundy-800); font-size: 13px; font-style: normal; font-weight: 700; }

.story-split { display: grid; grid-template-columns: 6.5fr 5.5fr; gap: 40px; align-items: stretch; }
.story-split figure { position: relative; min-height: 380px; overflow: hidden; border-radius: var(--radius-panel); }
.story-split figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-split figcaption { position: absolute; inset: auto 16px 16px; display: grid; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-small); background: rgba(255,254,250,.94); padding: 12px 15px; }
.story-split figcaption strong { color: var(--brand-burgundy-900); font-size: 17px; }
.story-split figcaption span { color: var(--text-muted); font-size: 12px; }
.story-split > div { display: flex; flex-direction: column; justify-content: center; }
.story-split > div > p { margin-block-start: 16px; }
.story-points { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; margin-block-start: 22px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); }
.story-points article { padding: 15px; }
.story-points article + article { border-inline-start: 1px solid var(--border-soft); }
.story-points strong { display: block; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 19px; }
.story-points span { display: block; margin-block-start: 4px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.values-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; margin-inline: -10px; border: 0 !important; border-radius: var(--radius-panel); background: var(--surface-warm); padding: 0 24px; }
.values-split article { position: relative; min-height: 260px; padding: 31px 34px; }
.values-split article + article { border-inline-start: 1px solid var(--border-strong); }
.values-split article > span:first-child { position: absolute; inset: 13px 20px auto auto; color: rgba(82, 0, 20,.07); font-family: "Anek Latin", sans-serif; font-size: 72px; font-weight: 800; }
.values-split h2 { max-width: 430px; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 32px; line-height: 1.08; }
.values-split article > p:last-child { margin-block-start: 12px; }
/* Founder Section */
.founder-section { background: var(--surface-paper); border-radius: var(--radius-panel); border: 1px solid var(--border-soft); overflow: hidden; padding: 40px; margin-block-start: 40px; }
.founder-section__grid { display: grid; grid-template-columns: 4.5fr 7.5fr; gap: 48px; align-items: center; }
.founder-section__image { position: relative; border-radius: var(--radius-card); overflow: hidden; }
.founder-section__image img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.founder-section__nameplate { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(63,0,16,0.9)); padding: 40px 24px 24px; color: white; }
.founder-section__nameplate strong { display: block; font-family: "Anek Latin", sans-serif; font-size: 22px; color: var(--brand-gold-400); }
.founder-section__nameplate span { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500; }
.founder-section__content h2 { font-family: "Anek Latin", sans-serif; font-size: clamp(32px, 3vw, 42px); color: var(--brand-burgundy-900); line-height: 1.1; margin-block: 8px 24px; }
.founder-section__prose p { font-size: 15px; color: var(--text-body); line-height: 1.6; margin-block-end: 18px; }
.founder-section__prose p:last-child { margin-block-end: 0; }

/* Elegant Process Grid */
.elegant-process-section { margin-block-start: 40px; }
.elegant-process-section .section-header { margin-block-end: 32px; }
.elegant-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.elegant-process-card { background: var(--surface-paper); border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 32px 24px; transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.elegant-process-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.elegant-process-card .process-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); margin-block-end: 20px; }
.elegant-process-card h3 { font-family: "Anek Latin", sans-serif; font-size: 20px; color: var(--brand-burgundy-900); line-height: 1.2; margin-block-end: 10px; }
.elegant-process-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.gallery-section .section-header { margin-block-end: 25px; }
.gallery-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 160px; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--surface-tint); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-base); }
.gallery-item:hover img { transform: scale(1.015); }
.gallery-item figcaption { position: absolute; inset: auto 0 0; background: linear-gradient(transparent, rgba(63,0,16,.82)); color: white; padding: 28px 13px 10px; font-size: 13px; font-weight: 700; }
.gallery-item--1 { grid-column: span 7; grid-row: span 2; }
.gallery-item--2, .gallery-item--3 { grid-column: span 5; }
.gallery-item--4, .gallery-item--5, .gallery-item--6 { grid-column: span 4; }
.gallery-item--7, .gallery-item--8 { grid-column: span 6; }

/* ==========================================================================
   9. Resource, contact and conversion modules
   ========================================================================== */
.toolkit-panel { display: grid; grid-template-columns: 4.5fr 7.5fr; gap: 28px; margin-inline: -10px; border: 0 !important; border-radius: var(--radius-panel); background: var(--surface-warm); padding: 32px 24px; }
.toolkit-panel__visual { position: relative; min-height: 400px; }
.css-books { position: absolute; inset: auto 10% 10px; height: 150px; }
.css-books span { position: absolute; inset-inline-start: 0; height: 30px; border: 1px solid rgba(82, 0, 20,.22); border-radius: 5px; transform: skewX(-8deg); }
.css-books span:nth-child(1) { inset-block-end: 0; width: 240px; background: var(--brand-burgundy-800); }
.css-books span:nth-child(2) { inset-block-end: 33px; width: 210px; background: var(--brand-gold-500); }
.css-books span:nth-child(3) { inset-block-end: 66px; width: 225px; background: #f8d97c; }
.css-books i { position: absolute; inset: 0 0 auto auto; display: grid; width: 72px; height: 116px; place-items: center; border: 1px solid var(--border-strong); border-radius: 13px 13px 5px 5px; background: #efe3cf; color: var(--brand-burgundy-900); }
.css-books i .icon { width: 30px; height: 30px; }
.toolkit-rows { overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); }
.toolkit-rows article { display: grid; grid-template-columns: 42px 1fr; gap: 13px; min-height: 106px; align-items: center; border-block-end: 1px solid var(--border-soft); padding: 16px 19px; }
.toolkit-rows article:last-child { border-block-end: 0; }
.toolkit-rows article > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.toolkit-rows h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 20px; }
.toolkit-rows p { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.legacy-note { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 15px; border: 1px solid var(--border-soft) !important; border-radius: var(--radius-card); background: var(--surface-warm); padding: 20px; }
.legacy-note > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.legacy-note h2 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 21px; }
.legacy-note p { color: var(--text-muted); font-size: 13px; }

.contact-methods .section-header { margin-block-end: 24px; }
.contact-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; min-height: 96px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); padding: 16px 18px; }
a.contact-card { transition: background var(--motion-fast), transform var(--motion-fast); }
a.contact-card:hover { background: var(--surface-warm); transform: translateY(-1px); }
.contact-card > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.contact-card small { display: block; color: var(--text-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.contact-card strong { display: block; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 20px; line-height: 1.18; }
.contact-card > .icon { width: 17px; height: 17px; color: var(--brand-burgundy-800); }

.enquiry-workspace, .booking-workspace, .tutor-workspace { display: grid; grid-template-columns: 4.5fr 7.5fr; gap: 22px; align-items: start; }
.guidance-panel, .tutor-values, .calendar-panel, .expect-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-panel);
  background: var(--surface-warm);
  padding: 24px;
}
.guidance-panel h2, .tutor-values h2, .calendar-panel h2, .expect-panel h2 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 29px; line-height: 1.08; }
.guidance-rows, .tutor-values > div { margin-block: 20px; }
.guidance-rows article, .tutor-values article, .expect-panel > div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; border-block-end: 1px solid var(--border-soft); padding-block: 12px; }
.guidance-rows article:first-child, .tutor-values article:first-child { border-block-start: 1px solid var(--border-soft); }
.guidance-rows .icon, .tutor-values article > span, .expect-panel > div > .icon { width: 20px; height: 20px; color: var(--brand-burgundy-800); }
.guidance-panel > a, .tutor-values > a, .expect-panel > a { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--brand-burgundy-800); font-weight: 700; }
.tutor-values article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); }
.tutor-values article > span .icon { width: 17px; height: 17px; }
.tutor-values h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 18px; }
.tutor-values article p { color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.tutor-values > .quiet-note { display: block; border-inline-start-width: 3px; }
.booking-support { display: grid; gap: 14px; }
.calendar-panel__head { display: flex; gap: 12px; align-items: center; }
.calendar-panel__head > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--brand-gold-400); color: var(--brand-burgundy-900); }
.week-picker--large { gap: 10px; margin-block: 19px 14px; }
.week-picker--large .date-chip { min-height: 65px; background: white; flex: 0 0 72px; }
.week-picker--large .date-chip.is-selected { background: var(--brand-burgundy-800); }
.selected-date-summary { min-height: 42px; margin-block-start: 12px; color: var(--text-muted); font-size: 13px; line-height: 1.4; }
.expect-panel { background: var(--surface-paper); }
.expect-panel > div { grid-template-columns: 24px 1fr; }

.form-card { border: 1px solid var(--border-soft); border-radius: var(--radius-panel); background: var(--surface-paper); padding: 27px; }
.form-card header { margin-block-end: 22px; }
.form-card header h2 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 32px; line-height: 1.05; }
.form-card header > p:not(.eyebrow) { margin-block-start: 8px; color: var(--text-muted); }
.form-card header > span { display: block; margin-block-start: 8px; color: var(--text-muted); font-size: 12px; }
.form-card b { color: var(--state-danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label,
.form-grid .phone-field,
.form-grid .contact-place-field,
.form-grid .combobox-field {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 650;
}

/* Phone: country code combobox + national number */
.phone-field__row {
  display: grid;
  grid-template-columns: minmax(132px, 0.95fr) minmax(0, 1.25fr);
  gap: 8px;
  align-items: stretch;
}
.contact-place-field__stack {
  display: grid;
  gap: 8px;
}
.combobox {
  position: relative;
  min-width: 0;
}
.combobox__trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  background: var(--surface-paper);
  padding: 10px 12px;
  color: var(--text-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}
.combobox__trigger:hover,
.combobox__trigger:focus-visible {
  border-color: var(--brand-burgundy-800);
  outline: none;
  box-shadow: 0 0 0 3px rgba(82, 0, 20,.45);
}
.combobox__label,
.combobox__trigger [data-combobox-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combobox__chevron {
  flex: 0 0 auto;
  opacity: .65;
  font-size: 12px;
}
.combobox__panel {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(100% + 4px);
  z-index: 40;
  display: grid;
  gap: 6px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-paper);
  padding: 8px;
  box-shadow: 0 14px 36px rgba(70, 31, 25, .14);
}
.combobox__panel[hidden] { display: none !important; }
.combobox__filter {
  width: 100%;
  min-height: 40px !important;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
.combobox__list {
  list-style: none;
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: 0;
}
.combobox__option {
  border-radius: var(--radius-small);
  padding: 9px 10px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.combobox__option:hover,
.combobox__option:focus {
  background: var(--brand-burgundy-100);
  outline: none;
}
.combobox__empty {
  padding: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.phone-field > small,
.contact-place-field > small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.phone-field input[name="phoneNational"] {
  min-height: 48px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font: inherit;
}
.contact-place-field input[name="contactCity"] {
  min-height: 48px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-small);
  padding: 10px 12px;
  font: inherit;
}
@media (max-width: 640px) {
  .phone-field__row { grid-template-columns: 1fr; }
}
.form-span-2 { grid-column: span 2; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: white;
  color: var(--text-strong);
  padding: 11px 12px;
  outline: 0;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}
.form-grid input, .form-grid select { min-height: 48px; }
.form-grid textarea { min-height: 132px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--brand-burgundy-800); box-shadow: 0 0 0 3px rgba(82, 0, 20,.45); }
.form-grid [aria-invalid="true"] { border-color: var(--state-danger); box-shadow: 0 0 0 2px rgba(164,15,50,.12); }
.form-grid label > small { color: var(--text-muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.field-error { color: var(--state-danger) !important; font-size: 13px !important; font-weight: 650 !important; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.file-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-button { display: flex; min-height: 50px; align-items: center; gap: 9px; border: 1px dashed var(--border-strong); border-radius: var(--radius-control); background: var(--surface-warm); padding: 10px 12px; color: var(--brand-burgundy-800); }
.file-control:focus-within .file-button { outline: 3px solid var(--state-focus); outline-offset: 2px; }
.form-submit { display: flex; align-items: center; gap: 16px; margin-block-start: 20px; }
.form-status { min-height: 24px; color: var(--text-muted); font-size: 13px; }
.form-status.is-error { color: var(--state-danger); font-weight: 650; }
.form-status.is-success { color: var(--state-success); font-weight: 650; }

/* ==========================================================================
   10. Action band and footer
   ========================================================================== */
.action-section { padding-block-end: 14px; }
.action-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 26px; border-radius: var(--radius-panel); background: linear-gradient(120deg, var(--brand-burgundy-950), var(--brand-burgundy-700)); color: white; padding: 30px 32px; }
.action-band h2 { max-width: 720px; color: white; font-family: "Anek Latin", sans-serif; font-size: clamp(29px, 2.8vw, 42px); line-height: 1.04; }
.action-band > div:first-child > p:last-child { max-width: 650px; margin-block-start: 9px; color: rgba(255,255,255,.75); }
.action-band__actions { display: grid; min-width: 250px; gap: 9px; }
.practical-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; margin-block-start: 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); }
.practical-strip > div { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 10px; min-height: 78px; padding: 12px 18px; }
.practical-strip > div + div { border-inline-start: 1px solid var(--border-soft); }
.practical-strip > div > .icon { width: 20px; height: 20px; color: var(--brand-burgundy-800); }
.practical-strip small { display: block; color: var(--text-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.practical-strip strong { display: block; overflow-wrap: anywhere; color: var(--brand-burgundy-900); font-size: 14px; }

.site-footer { margin-block: 20px 24px; overflow: hidden; border-radius: var(--radius-panel); background: var(--brand-burgundy-950); color: white; }
.footer-inner { display: grid; grid-template-columns: 4.5fr 1.8fr 1.8fr 3.2fr; gap: 28px; padding: 40px 34px 30px; }
.footer-brand .brand-lockup { border-radius: var(--radius-small); background: white; padding: 3px 8px; }
.footer-brand p { max-width: 410px; margin-block: 16px 18px; color: rgba(255,255,255,.72); font-size: 14px; }
.footer-column h2 { margin-block-end: 11px; color: var(--brand-gold-400); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column ul { display: grid; }
.footer-column a, .footer-column span, .footer-column address { display: block; min-height: 34px; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.45; }
.footer-column a:hover { color: white; text-decoration: underline; }
.footer-bottom { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; border-block-start: 1px solid rgba(255,255,255,.12); padding: 13px 34px; color: rgba(255,255,255,.58); font-size: 12px; }
.footer-bottom div { display: flex; gap: 18px; }

/* ==========================================================================
   11. 404 and progressive enhancements
   ========================================================================== */
.not-found { position: relative; display: flex; min-height: 560px; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; padding: 50px max(24px, 8vw); }
.not-found__number { position: absolute; inset: 20px 20px auto auto; color: rgba(82, 0, 20,.055); font-family: "Anek Latin", sans-serif; font-size: clamp(150px, 24vw, 330px); font-weight: 800; line-height: 1; }
.not-found h1 { position: relative; max-width: 700px; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: clamp(43px, 5vw, 68px); line-height: .98; }
.not-found > p:not(.eyebrow) { position: relative; max-width: 580px; margin-block-start: 13px; font-size: 18px; }
.not-found .button-row { position: relative; }
.not-found nav { position: relative; display: flex; gap: 10px; margin-block-start: 28px; }
.not-found nav a { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; border: 1px solid var(--border-soft); border-radius: var(--radius-control); background: var(--surface-paper); padding: 8px 14px; color: var(--brand-burgundy-800); font-weight: 700; }
.not-found nav .icon { width: 16px; height: 16px; }

/* Content is visible by default. JS adds the preparation class. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--motion-slow) var(--ease-enter), transform var(--motion-slow) var(--ease-enter); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
.custom-cursor { display: none; }
@media (pointer: fine) and (hover: hover) {
  html.cursor-ready, html.cursor-ready body, html.cursor-ready body * { cursor: none !important; }
  .custom-cursor { position: fixed; inset: 0 auto auto 0; z-index: var(--z-cursor); display: block; width: 0; height: 0; pointer-events: none; }
  .cursor-dot, .cursor-ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor-dot { width: 6px; height: 6px; background: var(--brand-burgundy-800); }
  .cursor-ring { width: 30px; height: 30px; border: 1.5px solid var(--brand-burgundy-800); transition: width var(--motion-fast), height var(--motion-fast), background var(--motion-fast), opacity var(--motion-fast); }
  html.cursor-over-action .cursor-ring { width: 46px; height: 46px; border-color: var(--brand-gold-500); background: rgba(82, 0, 20,.13); }
  html.cursor-hidden .custom-cursor { opacity: 0; }
}

/* ==========================================================================
   12. Responsive compositions
   ========================================================================== */
@media (max-width: 1279px) {
  :root { --canvas-padding: 24px; }
  .site-frame, .site-footer { width: calc(100% - var(--sidebar-width) - 34px); margin-inline-start: calc(var(--sidebar-width) + 17px); }
  .home-hero { grid-template-columns: .8fr 1.2fr; }
  .home-hero__visual { padding-inline-end: 142px; }
  .hero-image-wrap { inset-inline-end: 75px; }
  .consultation-widget { width: 205px; }
  .home-overview { grid-template-columns: 1fr 1fr; }
  .overview-card { min-height: 220px; }
  .stream-grid { grid-template-columns: 1fr 1fr; }
  .stream-card { min-height: 280px; }
  .journey-board { grid-template-columns: 1fr 1fr; }
  .journey-board::before { display: none; }
  .gallery-mosaic { grid-auto-rows: 145px; }
}

@media (max-width: 1099px) {
  :root { --canvas-padding: 22px; }
  .sidebar { display: none; }
  .mobile-header {
      position: sticky;
      inset-block-start: 0;
      z-index: var(--z-sticky);
      display: flex;
      flex-direction: row;
      min-height: 76px;
      align-items: center;
      justify-content: flex-start;
      gap: 12px;
      border-block-end: 1px solid var(--border-soft);
      background: rgba(255,254,250,.96);
      padding: 4px 20px;
      backdrop-filter: blur(10px);
    }
  .mobile-brand { transition: opacity var(--motion-fast); display: flex; align-items: center; }
  html.drawer-open .mobile-brand { opacity: 0; pointer-events: none; }
  .mobile-brand .brand-lockup img { max-width: 200px; height: auto; max-height: 56px; object-fit: contain; }
  .menu-button {
      display: grid;
      width: 46px;
      height: 46px;
      place-items: center;
      border-radius: 50%;
      background: var(--brand-burgundy-800);
      color: white;
      box-shadow: 0 6px 14px rgba(82, 0, 20, .06);
      transition: transform var(--motion-fast), 
                  background var(--motion-fast), 
                  color var(--motion-fast), 
                  opacity var(--motion-base) var(--ease-enter), 
                  visibility var(--motion-base) var(--ease-enter);
    }
  .menu-button:hover,
  .menu-button:focus-visible {
      background: var(--brand-burgundy-950);
      color: white;
    }
  .drawer-open .mobile-header .menu-button {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
  .drawer-backdrop { position: fixed; inset: 0; z-index: var(--z-drawer-backdrop); background: rgba(63,0,16,.42); opacity: 0; pointer-events: none; transition: opacity var(--motion-base); }
  .mobile-drawer { position: fixed; inset: 0 auto 0 0; z-index: var(--z-drawer); display: flex; width: min(88vw, 360px); flex-direction: column; overflow-y: auto; background: var(--surface-paper); padding: 16px; transform: translateX(-105%); transition: transform var(--motion-base) var(--ease-enter); }
  .drawer-open .drawer-backdrop { display: block; opacity: 1; pointer-events: auto; }
  .drawer-open .mobile-drawer { transform: translateX(0); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; border-block-end: 1px solid var(--border-soft); padding-block-end: 8px; }
  .drawer-head .menu-button {
    background: transparent;
    color: var(--brand-burgundy-800);
    box-shadow: none;
  }
  .drawer-head .menu-button:hover,
  .drawer-head .menu-button:focus-visible {
    background: var(--brand-burgundy-100);
    color: var(--brand-burgundy-900);
  }
  .drawer-head .brand-lockup img { width: 104px; height: 62px; }
  .drawer-nav { display: grid; gap: 5px; margin-block: 15px; }
  .drawer-contact { display: grid; gap: 4px; margin-block: auto 16px 14px; border-block-start: 1px solid var(--border-soft); padding-block-start: 14px; }
  .drawer-contact a { display: flex; min-height: 42px; align-items: center; gap: 9px; color: var(--brand-burgundy-800); font-weight: 650; }
  .site-frame, .site-footer { width: calc(100% - 32px); margin-inline: 16px; }
  .site-frame { padding-block-start: 16px; }
  .utility-bar { display: none; }
  .main-canvas { padding-block-start: 0; }
  .home-hero { grid-template-columns: .88fr 1.12fr; }
  .home-hero__visual { padding-inline-end: 128px; }
  .consultation-widget { width: 190px; }
  .inner-hero { grid-template-columns: 1fr 1fr; }
  .founder-section__grid { grid-template-columns: 1fr; gap: 28px; }
  .founder-section__image { max-width: 420px; margin-inline: auto; }
  .editorial-split, .subject-directory, .stream-subject-section, .learning-loop, .method-checklist, .consultation-prep, .toolkit-panel { grid-template-columns: 1fr; }
  .editorial-intro { position: static; }
  .learning-loop__narrative, .method-checklist > div:first-child, .toolkit-panel__visual { max-width: 720px; }
  .toolkit-panel__visual { min-height: 300px; }
  .css-books { inset-inline-start: 44%; }
}

@media (max-width: 767px) {
  :root { --canvas-padding: 18px; }
  body { background: var(--surface-warm); }
  .mobile-header { padding-inline: 14px; }
  .site-frame, .site-footer { width: calc(100% - 20px); margin-inline: 10px; }
  .site-frame { padding-block-start: 10px; }
  .main-canvas { border-radius: 15px; padding-inline: var(--canvas-padding); padding-block-end: 18px; }
  .content-section { padding-block: 30px; }
  .section-header h2 { font-size: clamp(28px, 8.4vw, 34px); }
  .section-header > p:last-child:not(.eyebrow) { font-size: 16px; }
  .button { min-height: 46px; }
  .button-row { align-items: stretch; }
  .home-hero { grid-template-columns: 1fr; gap: 20px; min-height: auto; padding-block: 24px 20px; }
  .home-hero__copy { padding: 0; }
  .home-hero h1 { font-size: clamp(42px, 12.5vw, 50px); }
  .hero-lede { font-size: 16px; }
  .home-hero__visual { min-height: 395px; padding: 0; }
  .hero-image-wrap { inset: 0 0 142px; border-radius: 58px 18px 52px 22px; }
  .consultation-widget { inset: auto 0 0; width: 100%; box-shadow: var(--shadow-card); }
  .doodle--star { inset-block-start: -18px; }
  .doodle--rays { inset-block-start: 18px; }
  .home-overview { grid-template-columns: 1fr; gap: 10px; }
  .overview-card { min-height: auto; padding: 16px; }
  .book-stack { opacity: .8; }
  .quick-path-strip { grid-template-columns: 1fr; }
  .quick-path-strip__title, .quick-path-strip > a { min-height: 62px; }
  .quick-path-strip > a:not(.arrow-link) { border-inline-start: 0; border-block-start: 1px solid rgba(255,255,255,.14); }
  .quick-path-strip .arrow-link { min-height: 54px; border-block-start: 1px solid rgba(255,255,255,.14); }
  .inner-hero { grid-template-columns: 1fr; gap: 24px; min-height: auto; padding-block: 24px 31px; }
  .inner-hero::after { inset: auto -40px 20px auto; width: 280px; height: 240px; }
  .inner-hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .inner-hero__lede { font-size: 16px; }
  .inner-hero__media { min-height: 255px; padding: 0 0 36px; }
  .inner-hero__image { height: 240px; border-radius: var(--radius-image); }
  .inner-hero__annotation { inset: auto 8px 0; width: calc(100% - 16px); }
  .editorial-split, .program-path-board, .support-process, .why-component, .senior-stage, .story-split, .founder-section__grid, .enquiry-workspace, .booking-workspace, .tutor-workspace { grid-template-columns: 1fr; }
  .pathway-board { grid-template-columns: 1fr 1fr; }
  .pathway-row { grid-template-columns: 1fr 34px; min-height: 145px; align-content: start; }
  .pathway-row:nth-child(odd) { border-inline-end: 1px solid var(--border-soft); }
  .pathway-row:nth-last-child(-n+2) { border-block-end: 0; }
  .pathway-row img { grid-column: 1 / -1; width: 100%; height: 70px; }
  .pathway-row__copy strong { font-size: 18px; }
  .program-path-board__foundation { grid-template-columns: 1fr 1fr; }
  .program-path-board__senior { grid-template-columns: 1fr 1fr; }
  .program-path-card, .program-path-card--senior { grid-template-columns: 1fr; min-height: 245px; }
  .program-path-card img { height: 130px; }
  .stream-grid { grid-template-columns: 1fr 1fr; }
  .stream-card { min-height: 260px; }
  .subject-list, .stream-subject-board { grid-template-columns: 1fr; }
  .subject-list > a, .stream-subject-board .subject-cell { border-inline-end: 0 !important; border-block-end: 1px solid var(--border-soft) !important; }
  .subject-list > a:last-child, .stream-subject-board .subject-cell:last-child { border-block-end: 0 !important; }
  .journey-board { grid-template-columns: 1fr; padding-inline-start: 18px; }
  .journey-board::before { display: block; inset: 20px auto 20px 6px; width: 2px; height: auto; }
  .journey-step { grid-template-columns: 48px 82px 1fr 36px; min-height: 112px; }
  .journey-number { width: 46px; height: 46px; font-size: 22px; }
  .journey-step img { width: 82px; height: 86px; }
  .journey-copy em { display: none; }
  .subject-board { grid-template-columns: 1fr; }
  .subject-cell, .subject-cell:nth-child(3n), .subject-cell:nth-last-child(-n+3) { border-inline-end: 0; border-block-end: 1px solid var(--border-soft); }
  .subject-cell:last-child { border-block-end: 0; }
  .subject-cell--featured:last-child { grid-column: auto; }
  .learning-loop, .method-checklist, .toolkit-panel { margin-inline: -5px; padding: 25px 18px; }
  .method-matrix, .method-checklist__grid { grid-template-columns: 1fr; }
  .method-row, .method-row:nth-child(odd), .method-row:nth-last-child(-n+2), .method-checklist__grid article, .method-checklist__grid article:nth-child(odd), .method-checklist__grid article:nth-last-child(-n+2) { border-inline-end: 0; border-block-end: 1px solid var(--border-soft); }
  .method-row:last-child, .method-checklist__grid article:last-child { border-block-end: 0; }
  .method-row { min-height: auto; padding: 16px; }
  .process-strip { grid-template-columns: 1fr; gap: 0; padding: 16px 18px; }
  .process-strip::before { inset: 28px auto 28px 33px; width: 2px; height: auto; }
  .process-strip article { grid-template-columns: 32px 1fr; min-height: 96px; align-items: start; padding: 12px 0; }
  .process-strip article + article { border-inline-start: 0; border-block-start: 1px solid var(--border-soft); }
  .why-narrative { padding: 26px 22px; }
  .benefit-matrix { grid-template-columns: 1fr; }
  .benefit-matrix article, .benefit-matrix article:nth-child(odd), .benefit-matrix article:nth-last-child(-n+2) { min-height: auto; border-inline-end: 0; border-block-end: 1px solid var(--border-soft); }
  .benefit-matrix article:last-child { border-block-end: 0; }
  .senior-stage__rows article { min-height: 94px; }
  .testimonial-wall { grid-template-columns: 1fr; }
  .student-results__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .testimonial-feature { min-height: 330px; padding: 26px 22px; }
  .testimonial-stack article { min-height: auto; }
  .story-split { gap: 22px; }
  .story-split figure { min-height: 280px; order: 2; }
  .story-split > div { order: 1; }
  .values-split { grid-template-columns: 1fr; margin-inline: -5px; padding: 0 18px; }
  .values-split article { min-height: auto; padding: 25px 14px; }
  .values-split article + article { border-inline-start: 0; border-block-start: 1px solid var(--border-strong); }
  .founder-section { margin-block-start: 24px; padding: 22px; }
  .founder-section__grid { gap: 22px; }
  .founder-section__image { aspect-ratio: 4/5; width: 100%; max-width: none; margin-inline: 0; }
  .founder-section__image img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .founder-section__content h2 { font-size: 30px; }
  .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .gallery-item--1 { grid-column: span 2; grid-row: span 2; }
  .gallery-item--2, .gallery-item--3, .gallery-item--4, .gallery-item--5, .gallery-item--6, .gallery-item--7, .gallery-item--8 { grid-column: span 1; grid-row: span 1; }
  .toolkit-panel__visual { min-height: auto; }
  .css-books { display: none; }
  .legacy-note { grid-template-columns: 42px 1fr; }
  .legacy-note .arrow-link { grid-column: 2; }
  .contact-card-grid { grid-template-columns: 1fr; }
  .guidance-panel, .tutor-values, .calendar-panel, .expect-panel, .form-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .form-submit { align-items: stretch; flex-direction: column; }
  .form-submit .button { width: 100%; }
  .action-band { grid-template-columns: 1fr; padding: 25px 22px; }
  .action-band__actions { min-width: 0; }
  .practical-strip { grid-template-columns: 1fr; }
  .practical-strip > div + div { border-inline-start: 0; border-block-start: 1px solid var(--border-soft); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding: 32px 22px 24px; }
  .footer-brand, .footer-column:last-child { grid-column: span 2; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding: 15px 22px; }
  .not-found { min-height: 480px; padding: 42px 12px; }
  .not-found nav { flex-direction: column; width: 100%; }
}

@media (max-width: 479px) {
  :root { --canvas-padding: 15px; }
  .site-frame, .site-footer { width: calc(100% - 12px); margin-inline: 6px; }
  .main-canvas { padding-inline: var(--canvas-padding); }
  .button-row { flex-direction: column; }
  .button-row .button, .button-row .text-link { width: 100%; justify-content: center; }
  .home-hero h1 { font-size: 42px; }
  .home-hero__visual { min-height: 405px; }
  .pathway-board { grid-template-columns: 1fr; }
  .pathway-row { grid-template-columns: 92px 1fr 34px; min-height: 100px; }
  .pathway-row:nth-child(odd) { border-inline-end: 0; }
  .pathway-row:nth-last-child(-n+2) { border-block-end: 1px solid var(--border-soft); }
  .pathway-row:last-child { border-block-end: 0; }
  .pathway-row img { grid-column: auto; width: 92px; height: 78px; }
  .program-path-board__foundation, .program-path-board__senior, .stream-grid { grid-template-columns: 1fr; }
  .program-path-card, .program-path-card--senior { grid-template-columns: 112px 1fr; min-height: 140px; }
  .program-path-card img { height: 100%; }
  .stream-card { min-height: 245px; }
  .subject-list > a { grid-template-columns: 36px 1fr 34px; min-height: 92px; }
  .subject-list__copy em { font-size: 12px; }
  .journey-step { grid-template-columns: 44px 74px 1fr 32px; gap: 8px; padding: 8px; }
  .journey-number { width: 42px; height: 42px; font-size: 20px; }
  .journey-step img { width: 74px; height: 78px; }
  .story-points { grid-template-columns: 1fr; }
  .story-points article + article { border-inline-start: 0; border-block-start: 1px solid var(--border-soft); }
  .gallery-mosaic { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .gallery-item--1, .gallery-item--2, .gallery-item--3, .gallery-item--4, .gallery-item--5, .gallery-item--6, .gallery-item--7, .gallery-item--8 { grid-column: span 1; grid-row: span 1; }
  .contact-card strong { font-size: 18px; overflow-wrap: anywhere; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 359px) {
  .mobile-header { min-height: 68px; }
  .home-hero h1 { font-size: 40px; }
  .inner-hero h1 { font-size: 37px; }
  .home-hero__visual { min-height: 415px; }
  .consultation-widget { padding: 14px; }
  .week-picker { gap: 6px; }
  .date-chip { min-height: 48px; }
  .pathway-row { grid-template-columns: 78px 1fr 30px; }
  .pathway-row img { width: 78px; height: 72px; }
  .journey-step { grid-template-columns: 42px 68px 1fr 28px; }
  .journey-step img { width: 68px; height: 74px; }
  .journey-copy strong { font-size: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand, .footer-column:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .custom-cursor { display: none !important; }
  html.cursor-ready, html.cursor-ready body, html.cursor-ready body * { cursor: auto !important; }
}


/* ==========================================================================\n   Latest merged-build refinements\n   ========================================================================== */

html { background: #f3eee6; }
body {
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(82, 0, 20, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(82, 0, 20, .025) 1px, transparent 1px),
    #f3eee6;
  background-size: 42px 42px;
}

/* Floating desktop rail */
.sidebar {
  inset: 16px auto 16px 16px;
  width: var(--sidebar-width);
  height: calc(100dvh - 32px);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: rgba(255, 254, 250, .97);
  padding: 15px 13px 13px;
  box-shadow: 0 18px 46px rgba(70, 31, 25, .12);
  /* Keep rail scrollable if content overflows, but hide the scrollbar on PC */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge */
  transition: inset 0.3s ease, height 0.3s ease, border-radius 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
  /* Only overflow fix: clip paint to the rounded rail so action icons don't poke out */
  overflow-x: hidden;
  overflow-y: auto;
}
.sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
  width: 0;
  height: 0;
}
.sidebar.is-docked {
  inset: 0 auto 0 0;
  height: 100dvh;
  border-radius: 0;
  border-block: none;
  border-inline-start: none;
  box-shadow: 1px 0 0 var(--border-soft);
}
/* Keep the support card and its contact actions together at the rail bottom. */
.sidebar:not(.is-docked) {
  padding-block-end: 13px;
}
.sidebar:not(.is-docked) .sidebar-actions {
  transform: none;
}
.sidebar-brand { min-height: 128px; border-block-end: 1px solid var(--border-soft); padding-block: 7px 12px; }
.sidebar-brand .brand-lockup {
  display: block;
  width: min(100%, 190px);
  height: 108px;
  overflow: hidden;
  border-radius: var(--radius-small);
  background: white;
}
.sidebar-brand .brand-lockup img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center 54%;
  transform: none;
}
.rail-nav { gap: 0; margin-block-start: 14px; }
.nav-link { min-height: 42px; padding: 9px 12px; font-size: 14px; }
.nav-link:hover, .nav-link:focus-visible { transform: translateX(3px); }
.sidebar-support {
  display: grid;
  flex-shrink: 0;
  gap: 6px;
  margin-block-start: auto;
  padding-block-start: 14px;
}
.guidance-card { flex-shrink: 0; margin-block-start: 0; padding: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.guidance-card p { margin-block-end: 2px; }
.sidebar-actions {
  flex-shrink: 0;
  margin-block-start: 0;
  padding-block-start: 0;
}

/* Keep the complete desktop rail inside shorter PC viewports. */
@media (min-width: 1099px) and (max-height: 760px) {
  .sidebar {
    padding-block: 10px 12px;
  }
  .sidebar:not(.is-docked) {
    inset-block: 6px;
    height: calc(100dvh - 12px);
    padding-block-end: 12px;
  }
  .sidebar:not(.is-docked) .sidebar-actions { transform: none; }
  .sidebar-brand {
    min-height: 94px;
    padding-block: 4px 8px;
  }
  .sidebar-brand .brand-lockup {
    width: min(100%, 160px);
    height: 80px;
  }
  .rail-nav {
    gap: 3px;
    margin-block-start: 9px;
  }
  .nav-link {
    min-height: 38px;
    padding-block: 7px;
  }
  .sidebar-support {
    gap: 3px;
    padding-block-start: 8px;
  }
  .guidance-card {
    margin-block-start: 0;
    padding: 10px 12px;
  }
  .guidance-card__icon {
    width: 28px;
    height: 28px;
  }
  .guidance-card h2 {
    margin-block-start: 6px;
    font-size: 17px;
  }
  .guidance-card p {
    margin-block: 3px 5px;
    font-size: 12px;
    line-height: 1.3;
  }
  .sidebar-actions {
    gap: 8px;
    margin-block-start: 0;
    padding-block-start: 0;
  }
  .sidebar-actions a {
    width: 36px;
    height: 36px;
  }
}

.site-frame, .site-footer {
  width: auto;
  max-width: var(--content-max);
  margin-inline-start: calc(16px + var(--sidebar-width) + 20px);
  margin-inline-end: 24px;
}
.site-frame { padding-block-start: 16px; }
.main-canvas { border-radius: 20px; }

.utility-bar { min-height: 58px; }
.instagram-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-paper);
  padding: 8px 15px;
  color: var(--brand-burgundy-900);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 5px 14px rgba(82, 0, 20,.07);
  transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast);
}
.instagram-link:hover { transform: translateY(-1px); border-color: var(--brand-burgundy-800); background: var(--brand-burgundy-100); }
.instagram-link .icon { width: 18px; height: 18px; }

/* Homepage */
.home-hero { grid-template-columns: minmax(340px, .86fr) minmax(520px, 1.34fr); gap: 32px; min-height: 470px; }
.home-hero__copy { padding-inline-start: 4px; }
.home-hero__actions { flex-wrap: nowrap; }
.home-programs-button { min-width: 176px; white-space: nowrap; }
.home-hero__visual { min-height: 390px; padding-inline-end: 282px; }
.hero-image-wrap { inset: 25px 210px 22px 0; }
.consultation-widget {
  inset: 34px 0 auto auto;
  width: 276px;
  min-height: 330px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: rgba(255,254,250,.98);
  padding: 17px;
  box-shadow: 0 22px 46px rgba(70, 31, 25,.17);
}
.consultation-widget__head { display: grid; gap: 11px; }
.calendar-kicker { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 16px; font-weight: 800; line-height: 1.1; }
.calendar-note { margin-block-start: 3px; color: var(--text-muted); font-size: 11px; line-height: 1.3; }
.month-selector { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 7px; }
.month-selector h2 { text-align: center; font-size: 17px; line-height: 1.1; }
.month-selector button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border-soft); border-radius: 50%; background: var(--surface-warm); color: var(--brand-burgundy-800); }
.month-selector button:first-child .icon { transform: rotate(180deg); }
.month-selector button:hover:not(:disabled) { background: var(--brand-gold-100); }
.month-selector button:disabled { opacity: .32; cursor: not-allowed; }
.month-selector .icon { width: 16px; height: 16px; }
.week-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-block-start: 11px; overflow: visible; }
.cal-day-header { display: grid; min-height: 22px; place-items: center; color: var(--text-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.cal-empty { min-height: 29px; }
.cal-date { display: grid; width: 100%; aspect-ratio: 1; min-height: 29px; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-strong); font-size: 11px; font-weight: 700; transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast); }
.cal-date:hover:not(:disabled) { border-color: var(--brand-gold-400); background: var(--brand-gold-100); transform: translateY(-1px); }
.cal-date.is-today { border-color: var(--border-strong); }
.cal-date.is-selected { border-color: var(--brand-burgundy-800); background: var(--brand-burgundy-800); color: white; }
.cal-date:disabled { color: #b9aaad; text-decoration: line-through; opacity: .56; cursor: not-allowed; }
.selected-date-summary { min-height: 32px; margin-block: 9px; color: var(--text-muted); font-size: 10px; line-height: 1.3; }
.calendar-continue { min-height: 40px; padding-inline: 11px; font-size: 12px; }

/* Merged Programs + Subjects */
.program-selector__grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; margin-block-start: 22px; }
.program-selector__item { display: grid; min-height: 86px; align-content: center; gap: 2px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); padding: 14px; transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); }
.program-selector__item:hover { transform: translateY(-2px); border-color: var(--brand-gold-500); box-shadow: var(--shadow-card); }
.program-selector__item span { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 20px; font-weight: 800; }
.program-selector__item small { color: var(--text-muted); font-size: 11px; line-height: 1.25; }
.program-path-card ul { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 10px 4px; }
.program-path-card li { border-radius: 999px; background: var(--brand-gold-100); padding: 3px 7px; color: var(--brand-burgundy-900); font-size: 10px; font-weight: 700; }
.program-path-card .text-link { margin-block-start: auto; min-height: 36px; font-size: 12px; }
.subject-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 40px; gap: 12px; align-items: center; min-height: 104px; border-block-end: 1px solid var(--border-soft); padding: 13px 15px; }
.subject-row:last-child { border-block-end: 0; }
.subject-list { overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); }
.filter-panel { display: grid; gap: 12px; margin-block-start: 20px; }
.filter-panel label { display: grid; gap: 5px; color: var(--text-strong); font-size: 13px; font-weight: 700; }
.filter-panel select { min-height: 46px; border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--surface-paper); padding-inline: 12px; color: var(--text-strong); }

/* Decluttered subject preview */
.home-subject-preview { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.45fr); gap: 34px; align-items: start; }
.home-subject-preview__intro { position: sticky; top: 24px; }
.home-subject-preview__intro .text-link { margin-block-start: 14px; }
.home-subject-preview__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-panel); background: var(--surface-paper); }
.home-subject-preview__grid article { display: grid; grid-template-columns: 38px 1fr; gap: 11px; min-height: 112px; padding: 18px; }
.home-subject-preview__grid article:nth-child(odd) { border-inline-end: 1px solid var(--border-soft); }
.home-subject-preview__grid article:not(:nth-last-child(-n+2)) { border-block-end: 1px solid var(--border-soft); }
.home-subject-preview__grid article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--brand-gold-100); color: var(--brand-burgundy-800); }
.home-subject-preview__grid .icon { width: 18px; height: 18px; }
.home-subject-preview__grid h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 18px; line-height: 1.1; }
.home-subject-preview__grid p { margin-block-start: 4px; color: var(--text-muted); font-size: 12px; line-height: 1.38; }

/* Success stories: reviews first, habits without connector bars */
.review-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-block-start: 24px; }
.review-theme-grid article { min-height: 190px; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-warm); padding: 20px; }
.review-theme-grid article > span { color: var(--brand-gold-600); font-family: "Anek Latin", sans-serif; font-size: 13px; font-weight: 800; }
.review-theme-grid h3 { margin-block-start: 20px; color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 21px; line-height: 1.1; }
.review-theme-grid p { margin-block-start: 8px; color: var(--text-muted); font-size: 14px; line-height: 1.45; }
.success-habits__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-block-start: 24px; }
.success-habits__grid::before, .success-habits__grid::after, .success-habits__grid article::before, .success-habits__grid article::after { content: none !important; display: none !important; }
.success-habits__grid article { display: grid; grid-template-columns: 38px 1fr; gap: 11px; min-height: 155px; align-content: start; border: 1px solid var(--border-soft); border-radius: var(--radius-card); background: var(--surface-paper); padding: 18px; }
.success-habits__grid article > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--brand-burgundy-800); color: white; font-size: 11px; font-weight: 800; }
.success-habits__grid h3 { color: var(--brand-burgundy-900); font-family: "Anek Latin", sans-serif; font-size: 20px; line-height: 1.1; }
.success-habits__grid p { margin-block-start: 5px; color: var(--text-muted); font-size: 13px; line-height: 1.42; }

.drawer-secondary { display: grid; gap: 4px; border-block-start: 1px solid var(--border-soft); margin-block-start: 8px; padding-block-start: 8px; }
.drawer-secondary a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; color: var(--brand-burgundy-900); font-weight: 700; }
.brand-story-prose { margin-block-start: 16px; }
.brand-story-prose p { margin-block-end: 14px; color: var(--text-body); font-size: 17px; line-height: 1.6; }

@media (max-width: 1279px) {
  .site-frame, .site-footer { width: auto; margin-inline-start: calc(16px + var(--sidebar-width) + 18px); margin-inline-end: 18px; }
  .home-hero { grid-template-columns: minmax(330px, .82fr) minmax(500px, 1.18fr); }
  .home-hero__visual { padding-inline-end: 270px; }
  .hero-image-wrap { inset-inline-end: 204px; }
  .consultation-widget { width: 270px; }
  .program-selector__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .review-theme-grid, .success-habits__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1099px) {
  .site-frame, .site-footer { width: calc(100% - 32px); margin-inline: 16px; }
  .home-hero { grid-template-columns: .9fr 1.1fr; }
  .home-hero__visual { padding-inline-end: 235px; }
  .hero-image-wrap { inset-inline-end: 175px; }
  .consultation-widget { width: 238px; padding: 14px; }
  .cal-date { min-height: 25px; }
}

@media (max-width: 767px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero__actions, .home-programs-button { width: 100%; }
  .home-programs-button { justify-content: center; }
  .home-hero__visual { min-height: 600px; padding: 0; }
  .hero-image-wrap { inset: 0 0 360px; }
  .consultation-widget { inset: auto 0 0; width: 100%; min-height: 338px; }
  .home-subject-preview { grid-template-columns: 1fr; gap: 20px; }
  .home-subject-preview__intro { position: static; }
  .program-selector__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review-theme-grid, .success-habits__grid { grid-template-columns: 1fr; }
  .review-theme-grid article, .success-habits__grid article { min-height: auto; }
}

@media (max-width: 479px) {
  .home-hero__visual { min-height: 620px; }
  .home-subject-preview__grid { grid-template-columns: 1fr; }
  .home-subject-preview__grid article:nth-child(odd) { border-inline-end: 0; }
  .home-subject-preview__grid article:not(:last-child) { border-block-end: 1px solid var(--border-soft); }
  .program-selector__grid { grid-template-columns: 1fr 1fr; }
  .program-selector__item { min-height: 78px; padding: 12px; }
}

/* ========================================================================== 
   Final form + calendar corrections (2026-06-18)
   ========================================================================== */

/* Restore the original horizontal date-strip calendar, only slightly wider. */
.home-hero__visual {
  min-height: 370px;
  padding-inline-end: 266px;
}
.hero-image-wrap { inset: 25px 150px 22px 0; }
.consultation-widget {
  inset: 152px 0 auto auto;
  width: 258px;
  min-height: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.98);
  padding: 18px;
  box-shadow: var(--shadow-float);
}
.consultation-widget__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.consultation-widget h2 {
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: 20px;
  line-height: 1.05;
}
.consultation-widget p {
  margin-block-start: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}
.consultation-widget .week-picker {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  margin: 7px 0 3px;
  padding: 8px 1px 15px;
  scroll-padding-inline: 3px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.consultation-widget .week-picker::-webkit-scrollbar { display: none; }
.consultation-widget .date-chip {
  display: grid;
  flex: 0 0 66px;
  min-width: 66px;
  min-height: 53px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  background: var(--surface-warm);
  padding: 5px 2px;
  color: var(--text-body);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.consultation-widget .date-chip:hover {
  z-index: 2;
  border-color: var(--brand-gold-400);
  background: white;
  box-shadow: 0 8px 16px rgba(70, 31, 25,.12);
  transform: translateY(-3px);
}
.consultation-widget .date-chip small {
  color: inherit;
  font-size: 9px;
  text-transform: uppercase;
}
.consultation-widget .date-chip strong {
  color: var(--brand-burgundy-900);
  font-size: 16px;
}
.consultation-widget .date-chip.is-selected {
  border-color: var(--brand-burgundy-800);
  background: var(--brand-burgundy-800);
  color: white;
  box-shadow: 0 6px 16px rgba(70, 31, 25,.15);
  transform: translateY(-2px);
}
.consultation-widget .date-chip.is-selected strong { color: white; }
.consultation-widget .date-chip.is-today:not(.is-selected) { border-color: var(--brand-gold-500); }
.calendar-continue {
  min-height: 43px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

/* Fix the previously unstyled homepage grade chooser. */
.quick-grade-chooser .section-header { max-width: 760px; }
.grade-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-block-start: 22px;
}
@media (min-width: 1100px) {
  .grade-chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grade-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 88px;
  gap: 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-paper);
  padding: 15px 16px;
  box-shadow: 0 5px 16px rgba(82, 0, 20,.035);
  transition: transform var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.grade-chip:hover {
  border-color: var(--brand-gold-500);
  background: var(--surface-warm);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.grade-chip small,
.grade-chip strong { grid-column: 1; }
.grade-chip small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
.grade-chip strong {
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: 21px;
  line-height: 1.05;
}
.grade-chip > .icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  color: var(--brand-burgundy-800);
}

/* Show subject options as two clean columns and only after grade/stream selection. */
.subject-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.subject-choices legend {
  grid-column: 1 / -1;
  margin-block-end: 1px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 650;
}
.subject-choice-note {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-control);
  background: var(--surface-warm);
  padding: 13px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.subject-choice-note[hidden],
.choice-card[hidden] { display: none !important; }
.form-grid .choice-card {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-control);
  background: white;
  padding: 10px 12px;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color var(--motion-fast), background var(--motion-fast), box-shadow var(--motion-fast);
}
.form-grid .choice-card:hover { border-color: var(--brand-gold-500); background: var(--surface-warm); }
.form-grid .choice-card:has(input:checked) {
  border-color: var(--brand-burgundy-800);
  background: var(--brand-burgundy-100);
  box-shadow: 0 0 0 1px rgba(82, 0, 20,.04);
}
.form-grid .choice-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  accent-color: var(--brand-burgundy-800);
  box-shadow: none;
}
.form-grid .choice-card span { min-width: 0; line-height: 1.25; }
.subject-choices .field-error { grid-column: 1 / -1; }

/* Repair the oversized/broken consent checkbox row on every form. */
.form-grid .consent-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-control);
  background: var(--surface-warm);
  padding: 13px 14px;
  color: var(--text-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.form-grid .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  accent-color: var(--brand-burgundy-800);
  box-shadow: none;
}
.form-grid .consent-row > span { min-width: 0; }
.form-grid .consent-row .field-error { grid-column: 1 / -1; }

/* Make the map address card unmistakably interactive. */
a.contact-card[href*="google.com/maps"] { cursor: pointer; }
a.contact-card[href*="google.com/maps"]:focus-visible { outline: 3px solid var(--state-focus); outline-offset: 3px; }

@media (max-width: 1279px) {
  .home-hero__visual { padding-inline-end: 250px; }
  .hero-image-wrap { inset-inline-end: 186px; }
  .consultation-widget { width: 242px; }
}

@media (max-width: 1099px) {
  .home-hero__visual { padding-inline-end: 240px; }
  .hero-image-wrap { inset-inline-end: 178px; }
  .consultation-widget { width: 232px; padding: 15px; }
  .consultation-widget .date-chip { flex-basis: 62px; min-width: 62px; }
}

@media (max-width: 767px) {
  .home-hero__visual { min-height: 440px; padding: 0; }
  .hero-image-wrap { inset: 0 0 205px; }
  .consultation-widget {
    inset: auto 0 0;
    width: 100%;
    min-height: 0;
    padding: 17px;
  }
  .grade-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-chip { min-height: 80px; }
  .subject-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 519px) {
  .home-hero__visual { min-height: 455px; }
  .hero-image-wrap { inset-block-end: 220px; }
  .grade-chip-grid { grid-template-columns: 1fr; }
  .grade-chip { min-height: 74px; }
}

/* Author styles must not override the native hidden attribute on form rows. */
.form-grid [hidden],
.form-grid label[hidden],
.form-grid [data-subject-option][hidden] {
  display: none !important;
}

/* ========================================================================== 
   Launch polish: mobile quick actions, privacy page, simplified programs
   ========================================================================== */
.mobile-header__actions {
  display: none;
}
.mobile-action {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  color: var(--brand-burgundy-800);
  box-shadow: 0 6px 14px rgba(82, 0, 20, .06);
  transition: transform var(--motion-fast), border-color var(--motion-fast), background var(--motion-fast), color var(--motion-fast);
}
.mobile-action:hover,
.mobile-action:focus-visible {
  border-color: var(--brand-gold-500);
  background: var(--surface-warm);
  color: var(--brand-burgundy-950);
  transform: translateY(-1px);
}
.mobile-action--whatsapp { color: #0f6b45; }
.mobile-action .icon { width: 19px; height: 19px; }
.testimonial-context {
  margin-block-end: 9px;
  color: var(--brand-burgundy-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.testimonial-feature small,
.testimonial-stack small {
  display: block;
  margin-block-start: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}
.subject-directory .quiet-note {
  margin-block-start: 16px;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-warm);
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.privacy-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.privacy-content article {
  min-height: 245px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--surface-paper);
  padding: clamp(20px, 3vw, 28px);
}
.privacy-content h2 {
  color: var(--brand-burgundy-900);
  font-family: "Anek Latin", sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}
.privacy-content p {
  margin-block-start: 12px;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.58;
}
.consent-row a {
  color: var(--brand-burgundy-900);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1099px) {
  .mobile-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .mobile-header__actions {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
  }
  .mobile-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .mobile-brand .brand-lockup { max-width: 128px; }
  .mobile-brand .brand-lockup img { width: 100%; max-width: 128px; }
}

@media (max-width: 767px) {
  .privacy-content { grid-template-columns: 1fr; }
  .privacy-content article { min-height: auto; }
  .page-about .inner-hero,
  .page-about .story-split,
  .page-about .values-split,
  .page-about .founder-section,
  .page-about .elegant-process-section {
    max-width: 100%;
    overflow: hidden;
  }
  .page-about .inner-hero__copy,
  .page-about .brand-story-prose,
  .page-about .story-points,
  .page-about .founder-section__content,
  .page-about .founder-section__prose {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .page-about .elegant-process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
  .mobile-header { gap: 6px; padding-inline: 9px; }
  .mobile-brand .brand-lockup { max-width: 104px; }
  .mobile-brand .brand-lockup img { max-width: 104px; }
  .mobile-header__actions { gap: 5px; }
  .mobile-action,
  .menu-button { width: 38px; height: 38px; }
  .mobile-action .icon,
  .menu-button .icon { width: 18px; height: 18px; }
}

@media (max-width: 1099px) {
  .mobile-header { display: flex; }
  .mobile-header__actions { margin-inline-start: auto; }
  .menu-button { flex: 0 0 auto; }
}

/* ==========================================================================
   Page Transitions
   ========================================================================== */
body {
  animation: pageFadeIn 0.3s ease-out forwards;
}
body.page-is-exiting {
  animation: pageFadeOut 0.25s ease-in forwards;
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pageFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; opacity: 1 !important; }
  body.page-is-exiting { animation: none !important; }
}


/* ========================================================================== 
   Subtle de-template polish: fewer repeated cards, quieter arrows/badges
   ========================================================================== */

/* Global: keep arrows functional, but stop them from shouting everywhere. */
.text-link,
.arrow-link {
  min-height: auto;
  padding-block: 4px;
  text-underline-offset: 4px;
}
.text-link .icon,
.arrow-link .icon {
  width: 14px;
  height: 14px;
  opacity: .55;
}
.button .icon { width: 16px; height: 16px; opacity: .78; }
.text-link:hover,
.arrow-link:hover { text-decoration: underline; }

/* Homepage grade chooser: still clickable cards, but more editorial and less template-like. */
.grade-chip-grid { gap: 12px 14px; }
.grade-chip {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  min-height: 82px;
  overflow: hidden;
  border-color: rgba(234, 223, 206, .92);
  background: linear-gradient(180deg, rgba(255, 254, 250, .96), rgba(255, 249, 239, .58));
  padding: 16px 18px 15px 20px;
  box-shadow: none;
}
.grade-chip::before {
  content: "";
  position: absolute;
  inset: 13px auto 13px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: rgba(216, 151, 0, .55);
}
.grade-chip:nth-child(3n+2)::before { background: rgba(82, 0, 20, .24); }
.grade-chip:nth-child(3n)::before { background: rgba(82, 0, 20, .82); }
.grade-chip:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  background: var(--surface-paper);
  box-shadow: 0 8px 22px rgba(82, 0, 20, .055);
}
.grade-chip > .icon { display: none; }
.grade-chip small { letter-spacing: .025em; }
.grade-chip strong { margin-block-start: 3px; }

/* Programs grade chooser: reduce the six identical-card feeling without changing links or layout. */
.program-selector__grid { gap: 8px; }
.program-selector__item {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  border-color: rgba(234, 223, 206, .9);
  background: linear-gradient(180deg, var(--surface-paper), rgba(255, 249, 239, .58));
  box-shadow: none;
}
.program-selector__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: rgba(216, 151, 0, .42);
}
.program-selector__item:nth-child(even)::before { background: rgba(82, 0, 20, .2); }
.program-selector__item:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 20px rgba(82, 0, 20, .05);
}
.program-selector__item small { margin-block-start: 3px; }

/* Program cards: keep the cards, but vary rhythm and convert loud pills into quiet subject metadata. */
.program-path-board__foundation { gap: 12px 14px; }
.program-path-card {
  border-radius: 10px;
  box-shadow: none;
}
.program-path-card:nth-child(even) { background: linear-gradient(180deg, var(--surface-paper), rgba(255, 249, 239, .78)); }
.program-path-board__foundation .program-path-card:nth-child(odd) { grid-template-columns: 44% 56%; }
.program-path-board__foundation .program-path-card:nth-child(even) { grid-template-columns: 38% 62%; }
.program-path-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(82, 0, 20, .055);
}
.program-path-card ul {
  gap: 0;
  margin-block: 9px 7px;
}
.program-path-card li {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .01em;
}
.program-path-card li:not(:last-child)::after {
  content: "·";
  margin-inline: 6px;
  color: var(--border-strong);
}
.program-path-card .text-link {
  width: fit-content;
  border-block-end: 1px solid rgba(104, 0, 25, .22);
  padding-block: 0 2px;
}
.program-path-card .text-link .icon { display: none; }
.program-path-card--senior { background: linear-gradient(180deg, var(--surface-warm), var(--surface-paper)); }

/* Homepage subject matrix: icons stay as detail, not the main visual pattern. */
.home-subject-preview__grid article {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  padding: 19px 20px;
}
.home-subject-preview__grid article > span {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--brand-burgundy-800);
  opacity: .24;
}
.home-subject-preview__grid h3 { padding-inline-end: 34px; }
.home-subject-preview__intro .text-link .icon { display: none; }
.home-subject-preview__intro .text-link { border-block-end: 1px solid rgba(104, 0, 25, .28); }

/* Learning support matrix: less repeated icon-card pattern, same content. */
.method-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  padding: 20px 22px;
}
.method-icon {
  position: absolute;
  inset-block-start: 18px;
  inset-inline-end: 18px;
  width: 25px;
  height: 25px;
  border-radius: 0;
  background: transparent;
  color: var(--brand-burgundy-800);
  opacity: .22;
}
.method-row h3 { padding-inline-end: 34px; }

/* Senior stream rows: keep the icons, but make them quiet supporting markers. */
.senior-stage__rows article > span {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--brand-burgundy-800);
  opacity: .68;
}
.senior-stage__rows .text-link {
  width: fit-content;
  border-block-end: 1px solid rgba(104, 0, 25, .2);
  padding-block-end: 2px;
}
.senior-stage__rows .text-link .icon { display: none; }

/* Contact/info cards: arrows become quiet affordances, not decoration spam. */
.contact-card > .icon:last-child,
.scope-links .icon,
.subject-cell .icon {
  opacity: .45;
}

@media (max-width: 767px) {
  .program-path-board__foundation .program-path-card:nth-child(odd),
  .program-path-board__foundation .program-path-card:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .program-path-card img { height: 132px; }
}

@media (max-width: 479px) {
  .program-path-board__foundation .program-path-card:nth-child(odd),
  .program-path-board__foundation .program-path-card:nth-child(even),
  .program-path-card,
  .program-path-card--senior {
    grid-template-columns: 112px 1fr;
  }
  .program-path-card img { height: 100%; }
}

/* Student voice typography */
.testimonial-section .section-header h2 {
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}
.testimonial-section .section-header > p:last-child:not(.eyebrow) {
  font-size: 18px;
  line-height: 1.6;
}
.testimonial-context,
.testimonial-feature p.testimonial-context {
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .045em;
}
.testimonial-feature blockquote {
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: clamp(21px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.32;
}
.testimonial-stack blockquote {
  font-size: 16px;
  line-height: 1.55;
}

/* Mobile edge-to-edge page shell: keep content padding, remove only the outer gutters. */
@media (max-width: 767px) {
  .site-frame,
  .site-footer {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .site-frame { padding-block-start: 10px; }

  .main-canvas {
    border-inline: 0;
    border-radius: 0;
  }
}
