/*
  CuratedPrep — Premium theme (site-wide)
  Refined heritage: Oxford navy + brass + warm paper, Source Serif display + Inter UI.
  Loaded on every page after styles.css. Every premium <main> carries the .cp-home
  theme hook; homepage-only component classes (cp-hero, cp-routemap...) simply do not
  appear on inner pages. Section 18 restyles the shared inner-page classes.

  Principles applied:
  - Material depth over flat fills (layered surfaces, light, grain, imagery).
  - Composition variety: no eyebrow-on-every-section, no identical 3-up grids.
  - Motion is part of the build: strong custom easing, per-section reveals, press feedback,
    everything degrades under prefers-reduced-motion.
  - Contrast verified: body >=4.5:1, large text >=3:1.
*/

/* Tokens live at :root too (home.css loads only on the homepage) so shared chrome
   (nav, footer, WhatsApp) sitting outside .cp-home can resolve them. */
:root, .cp-home {
  /* --- Palette: refined heritage --- */
  --ink: #14130f;
  --ink-soft: #34302a;
  --paper: #f3ede2;
  --paper-2: #ece3d4;
  --paper-deep: #e4d8c3;
  --ivory: #fbf7ef;
  --ivory-edge: #f6efe2;

  --navy: #0e2638;
  --navy-2: #143654;
  --navy-deep: #0a1d2b;
  --navy-line: rgba(248, 244, 236, 0.14);

  --brass: #9a6a1e;          /* decorative + large display (>=18px, needs 3:1) */
  --brass-text: #7d5314;     /* small label text on warm paper (passes 4.5:1) */
  --brass-bright: #c2934a;
  --brass-soft: #d9c094;
  --brass-on-navy: #d7b377;

  --line: rgba(20, 19, 15, 0.14);
  --line-strong: rgba(20, 19, 15, 0.26);

  /* --- Type --- */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* --- Motion (Emil curves) --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* --- Shape --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* --- Z-scale --- */
  --z-grain: 6;
  --z-nav: 40;
  --z-float: 45;
  --z-dialog: 60;
}

/* ============================================================
   1. Base / page shell
   ============================================================ */
.cp-home {
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(154, 106, 30, 0.10), transparent 55%),
    radial-gradient(90% 80% at 0% 0%, rgba(14, 38, 56, 0.06), transparent 50%),
    linear-gradient(180deg, var(--ivory) 0%, var(--paper) 22%, var(--paper) 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-top: 0; /* heroes own their top spacing; remove the legacy nav-offset that double-stacked */
}
.cp-home .shell { width: min(calc(100% - 48px), 1240px); margin-inline: auto; }
/* Offset anchor targets below the fixed nav (deep-link landing + JS smooth-scroll fallback). */
.cp-home[id], .cp-home [id] { scroll-margin-top: clamp(86px, 8vw, 102px); }

.cp-home h1, .cp-home h2, .cp-home h3, .cp-home h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.cp-home p { text-wrap: pretty; }
/* Kill the legacy justified body text (rivers of whitespace, worst on mobile) and auto-hyphenation
   (e.g. "stu-dent" breaks read cheap). Left-align, no hyphenation, inside the premium theme. */
.cp-home .lead, .cp-home .hero-text, .cp-home .brief-card p, .cp-home .principle p,
.cp-home .programme p, .cp-home .seo-cluster p, .cp-home .journey-sticky p, .cp-home .stage p,
.cp-home .experience-panel p, .cp-home .contact-row p, .cp-home .form-note,
.cp-home .roadmap-step p, .cp-home .roadmap-note p, .cp-home .programme-meta,
.cp-home .vision-intro p, .cp-home .vision-text p, .cp-home .culture-copy p,
.cp-home .international-stage p, .cp-home .testprep-copy p,
.cp-home .article-prose p, .cp-home .article-prose li {
  text-align: left; text-justify: auto;
  hyphens: none; -webkit-hyphens: none;
}

/* A single, restrained label style — used sparingly, NOT above every section */
.cp-home .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cp-home .kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

/* Reveal: TRANSFORM-ONLY so content is always at opacity 1 and can never ship blank
   in headless renderers / hidden tabs (where opacity transitions pause mid-fade).
   site.js adds .in via IntersectionObserver; if it never fires, content is simply
   in its resting (un-shifted) position. No persistent will-change. */
.cp-home .reveal { transform: none; }
html.page-ready .cp-home .reveal {
  transform: translateY(24px);
  transition: transform 0.7s var(--ease-out);
}
html.page-ready .cp-home .reveal.in {
  transform: none;
}

/* Visible keyboard focus on every interactive element (was missing). */
.cp-home a:focus-visible,
.cp-home button:focus-visible,
.cp-home .button:focus-visible,
.cp-home .cp-opt:focus-visible,
.cp-home .route-node:focus-visible,
.cp-home .cp-router-back:focus-visible,
body:has(.cp-home) .nav a:focus-visible,
body:has(.cp-home) .nav button:focus-visible,
body:has(.cp-home) footer a:focus-visible,
body:has(.cp-home) .whatsapp-float:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On dark navy surfaces, use a light ring for contrast. */
.cp-router :focus-visible,
.cp-guidance a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 3px;
}
.cp-form input:focus-visible,
.cp-form select:focus-visible,
.cp-form textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

/* ============================================================
   2. Navigation (homepage-scoped refinement)
   ============================================================ */
.cp-home ~ * .nav, /* fallback */
body:has(.cp-home) .nav {
  height: 74px;
  transition: height 0.4s var(--ease-out), background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
body:has(.cp-home) .nav.scrolled {
  height: 60px;
  background: rgba(243, 237, 226, 0.86);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px -32px rgba(14, 38, 56, 0.6);
}
body:has(.cp-home) .nav .brand-mark {
  border-color: var(--navy);
  color: var(--brass);
  transition: transform 0.4s var(--ease-out);
}
body:has(.cp-home) .brand:hover .brand-mark { transform: rotate(-8deg) scale(1.04); }
body:has(.cp-home) .nav .wordmark { color: var(--ink); }
body:has(.cp-home) .nav .wordmark b { color: var(--brass); font-weight: 400; }
body:has(.cp-home) .nav-links a {
  position: relative;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink-soft);
}
body:has(.cp-home) .nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
body:has(.cp-home) .nav-links a:hover { color: var(--navy); }
body:has(.cp-home) .nav-links a:hover::after,
body:has(.cp-home) .nav-links a.active::after { transform: scaleX(1); }
body:has(.cp-home) .nav-cta {
  background: var(--navy);
  color: var(--ivory);
  border: 1px solid var(--navy);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease-out), background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
body:has(.cp-home) .nav-cta:hover {
  background: var(--navy-2);
  color: var(--ivory);
  box-shadow: 0 10px 30px -14px rgba(14, 38, 56, 0.7);
}
body:has(.cp-home) .nav-cta:active { transform: scale(0.97); }

/* ============================================================
   3. Buttons (homepage)
   ============================================================ */
.cp-home .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease-out), background 0.3s var(--ease-out),
    color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}
.cp-home .button.primary {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
  box-shadow: 0 16px 40px -20px rgba(14, 38, 56, 0.85);
}
.cp-home .button.primary:hover {
  background: var(--navy-2);
  box-shadow: 0 22px 50px -20px rgba(14, 38, 56, 0.9);
  transform: translateY(-2px);
}
.cp-home .button.secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.cp-home .button.secondary:hover {
  border-color: var(--navy);
  background: rgba(14, 38, 56, 0.04);
  transform: translateY(-2px);
}
.cp-home .button:active { transform: scale(0.97); }
.cp-home .button .arrow {
  width: 16px; height: 16px;
  transition: transform 0.3s var(--ease-out);
}
.cp-home .button:hover .arrow { transform: translateX(4px); }

/* ============================================================
   4. HERO — asymmetric, layered, with depth and imagery
   ============================================================ */
.cp-hero {
  position: relative;
  padding: clamp(86px, 8.5vh, 104px) 0 clamp(44px, 6vw, 72px);
  overflow: clip;
}
/* Hero is the LCP: visible by default, animates in on page-ready (not gated on the
   scroll observer, so it never ships blank in headless / slow renders). */
@media (prefers-reduced-motion: no-preference) {
  html.page-ready .cp-hero-copy { animation: cp-rise 0.8s var(--ease-out) both; }
  html.page-ready .cp-hero-panel { animation: cp-rise 0.8s var(--ease-out) 0.12s both; }
}
/* transform-only: content stays at opacity 1 even if the animation never runs
   (hidden tab / headless renderer), so the hero can never ship blank. */
@keyframes cp-rise {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}
.cp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cp-hero-bg img {
  position: absolute;
  right: -6%;
  top: -8%;
  width: 62%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 35%;
  opacity: 0.16;
  filter: saturate(0.85) contrast(1.02);
  -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 60%);
  mask-image: linear-gradient(100deg, transparent 8%, #000 60%);
}
.cp-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 78% 12%, rgba(194, 147, 74, 0.16), transparent 60%);
}
.cp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.cp-hero-copy .kicker { margin-bottom: 26px; }
.cp-hero-copy h1 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 13ch;
  margin-bottom: 24px;
}
.cp-hero-copy h1 .word-brand {
  white-space: nowrap;
}
.cp-hero-copy h1 .word-brand b { font-weight: 500; color: var(--brass); }
.cp-hero-copy h1 em {
  font-style: italic;
  color: var(--brass);
  line-height: 1.1; /* descender clearance for italic */
}
.cp-hero-lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 34px;
}
.cp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* Hero panel: the elevated consultation card with real material depth */
.cp-hero-panel {
  position: relative;
  border-radius: var(--r-lg);
  padding: 34px 32px 30px;
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-edge) 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 50px 90px -50px rgba(14, 38, 56, 0.55),
    0 2px 10px -4px rgba(14, 38, 56, 0.12);
}
.cp-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(217, 192, 148, 0.8), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.cp-hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px 180px at var(--mx, 78%) var(--my, 8%), rgba(217, 192, 148, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .cp-hero-panel:hover::after { opacity: 1; }
}
.cp-hero-panel > * { position: relative; z-index: 1; }
.cp-hero-panel .panel-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.cp-hero-panel h2 {
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.08;
  margin: 12px 0 14px;
  color: var(--navy);
  max-width: 14ch;
}
.cp-hero-panel p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.cp-panel-steps {
  display: grid;
  gap: 2px;
  margin-bottom: 24px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--line);
}
.cp-panel-steps li {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  background: var(--ivory);
  font-size: 14.5px;
  color: var(--ink);
  transition: background 0.3s var(--ease-out);
}
.cp-panel-steps li:hover { background: #fff; }
.cp-panel-steps li .step-no {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--brass-text);
  width: 24px;
}
.cp-hero-panel .button { width: 100%; }

/* ============================================================
   5. BOARDS strip — trust/credential marquee (single marquee on page)
   ============================================================ */
.cp-boards {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 239, 0.5);
  overflow: hidden;
}
.cp-boards-head {
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5b554b;
  margin-bottom: 18px;
}
.cp-marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cp-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  animation: cp-marquee 38s linear infinite;
}
.cp-marquee:hover .cp-marquee-track { animation-play-state: paused; }
.cp-marquee-track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  color: var(--navy);
  white-space: nowrap;
}
/* Dot is a separator with EQUAL spacing on both sides, so each word sits centred between its dots. */
.cp-marquee-track span::after {
  content: "";
  flex: 0 0 auto;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.55;
  margin: 0 clamp(20px, 2.4vw, 34px);
}
@keyframes cp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   6. "Why one route" — editorial split (replaces identical 3-up)
   ============================================================ */
.cp-section { padding: clamp(80px, 10vw, 132px) 0; position: relative; }
.cp-thesis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.cp-thesis-lead h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.07;
  margin-bottom: 22px;
  max-width: 15ch;
}
.cp-thesis-lead p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 46ch;
}
.cp-thesis-list { display: grid; gap: 0; }
.cp-thesis-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.cp-thesis-item:last-child { border-bottom: 1px solid var(--line); }
.cp-thesis-item .ti-mark {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--brass);
  line-height: 1;
}
.cp-thesis-item h3 {
  font-size: 21px;
  margin-bottom: 7px;
  color: var(--navy);
}
.cp-thesis-item p { font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

/* ============================================================
   7. BUILD YOUR ROUTE — interactive two-way tool
   ============================================================ */
.cp-router {
  position: relative;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(20, 54, 84, 0.9), transparent 60%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--ivory);
  overflow: hidden;
}
.cp-router::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}
.cp-router-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.cp-router-intro .kicker { color: var(--brass-on-navy); }
.cp-router-intro .kicker::before { background: linear-gradient(90deg, var(--brass-on-navy), transparent); }
.cp-router-intro h2 {
  color: var(--ivory);
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.06;
  margin: 22px 0 18px;
  max-width: 13ch;
}
.cp-router-intro p {
  color: rgba(251, 247, 239, 0.74);
  font-size: 16px;
  line-height: 1.7;
  max-width: 42ch;
}

/* The interactive console */
.cp-router-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  background: rgba(251, 247, 239, 0.045);
  border: 1px solid rgba(217, 192, 148, 0.22);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255,255,255,0.06) inset;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-height: 380px;
}
.cp-router-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.cp-router-progress .dot {
  height: 4px;
  flex: 1;
  border-radius: var(--r-pill);
  background: rgba(251, 247, 239, 0.16);
  overflow: hidden;
  position: relative;
}
.cp-router-progress .dot::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass-on-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.cp-router-progress .dot.filled::after { transform: scaleX(1); }

.cp-router-step { display: none; }
.cp-router-step.active { display: block; animation: cp-step-in 0.32s var(--ease-out) both; }
@keyframes cp-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.cp-router-q {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-on-navy);
  margin-bottom: 6px;
}
.cp-router-step h3 {
  color: var(--ivory);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.12;
  margin-bottom: 22px;
  max-width: 18ch;
}
.cp-router-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.cp-router-options.cols-1 { grid-template-columns: 1fr; }
.cp-opt {
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid rgba(217, 192, 148, 0.26);
  background: rgba(251, 247, 239, 0.04);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.cp-opt small {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: rgba(251, 247, 239, 0.6);
  margin-top: 3px;
}
.cp-opt:hover {
  background: rgba(251, 247, 239, 0.09);
  border-color: var(--brass-on-navy);
  transform: translateY(-2px);
}
.cp-opt:active { transform: scale(0.98); }
.cp-opt.selected {
  background: var(--brass-on-navy);
  border-color: var(--brass-on-navy);
  color: var(--navy-deep);
  box-shadow: 0 16px 30px -16px rgba(215, 179, 119, 0.7);
}
.cp-opt.selected small { color: rgba(10, 29, 43, 0.86); }
.cp-router-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}
.cp-router-back {
  background: none;
  border: none;
  color: rgba(251, 247, 239, 0.6);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.25s var(--ease-out);
}
.cp-router-back:hover { color: var(--ivory); }
.cp-router-back:active { transform: scale(0.97); }
.cp-router-back[hidden] { visibility: hidden; }
.cp-router-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(251, 247, 239, 0.68);
}

/* Result state */
.cp-router-result { display: none; }
.cp-router-result.active { display: block; animation: cp-step-in 0.5s var(--ease-out) both; }
.cp-router-result .res-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-on-navy);
  margin-bottom: 12px;
}
.cp-router-result h3 {
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  margin-bottom: 14px;
}
.cp-router-result p {
  color: rgba(251, 247, 239, 0.78);
  font-size: 15.5px;
  line-height: 1.66;
  margin-bottom: 22px;
  max-width: 46ch;
}
.cp-router-result .res-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cp-router-result .button.primary {
  background: var(--brass-on-navy);
  border-color: var(--brass-on-navy);
  color: var(--navy-deep);
}
.cp-router-result .button.primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
.cp-router-result .button.ghost {
  background: transparent;
  border: 1px solid rgba(217, 192, 148, 0.4);
  color: var(--ivory);
}
.cp-router-result .button.ghost:hover { border-color: var(--ivory); background: rgba(251,247,239,0.06); }

/* ============================================================
   8. PROGRAMMES — editorial asymmetric (no identical 3-up)
   ============================================================ */
.cp-prog-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 54px);
}
.cp-prog-head h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.05; max-width: 14ch; }
.cp-prog-head p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.cp-prog-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
.cp-prog-card.feature { grid-column: 1; grid-row: 1 / span 2; min-height: 484px; }
.cp-prog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 234px;
  padding: 28px;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out);
}
.cp-prog-card .pc-img {
  position: absolute;
  inset: 0;
  z-index: -1;
  object-fit: cover;
  width: 100%; height: 100%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.cp-prog-card.has-img { color: var(--ivory); border-color: transparent; }
.cp-prog-card.has-img .pc-img { opacity: 1; }
.cp-prog-card.has-img::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 29, 43, 0.2) 0%, rgba(10, 29, 43, 0.82) 100%);
}
.cp-prog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 70px -42px rgba(14, 38, 56, 0.55);
}
.cp-prog-card.has-img:hover .pc-img { transform: scale(1.12); }
.cp-prog-card .pc-no {
  position: absolute;
  top: 24px; left: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.cp-prog-card.has-img .pc-no { color: var(--brass-on-navy); }
.cp-prog-card h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 10px; color: inherit; }
.cp-prog-card.has-img h3 { color: var(--ivory); }
.cp-prog-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: 38ch; }
.cp-prog-card.has-img p { color: rgba(251, 247, 239, 0.82); }
.cp-prog-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.cp-prog-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.cp-prog-card.has-img .cp-prog-tags span {
  border-color: rgba(251, 247, 239, 0.3);
  color: rgba(251, 247, 239, 0.86);
}
.cp-prog-card .pc-go {
  position: absolute;
  top: 24px; right: 24px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}
.cp-prog-card.has-img .pc-go { border-color: rgba(251,247,239,0.4); }
.cp-prog-card .pc-go svg { width: 16px; height: 16px; }
.cp-prog-card:hover .pc-go {
  transform: rotate(-45deg);
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

/* ============================================================
   9. ROUTE BOARD (operating system) — elevated
   ============================================================ */
.cp-system { background: var(--paper-2); position: relative; }
.cp-system-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.cp-system-copy h2 { font-size: clamp(34px, 4vw, 56px); line-height: 1.05; max-width: 12ch; margin-bottom: 18px; }
.cp-system-copy p { font-size: 16.5px; line-height: 1.72; color: var(--ink-soft); max-width: 40ch; }

/* Re-skin the existing .route-console (driven by site.js) */
.cp-home .route-console {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--ivory), var(--ivory-edge));
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -56px rgba(14, 38, 56, 0.5);
  padding: clamp(20px, 2.2vw, 28px);
}
.cp-home .route-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.cp-home .route-console-header strong { color: var(--brass-text); display: inline-flex; align-items: center; gap: 7px; }
.cp-home .route-console-header strong::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass-bright); box-shadow: 0 0 0 0 rgba(194,147,74,0.6);
  animation: cp-pulse 2.4s var(--ease-out) infinite;
}
@keyframes cp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(194,147,74,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(194,147,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,147,74,0); }
}
.cp-home .route-console-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.cp-home .route-line {
  position: absolute;
  top: 26px; left: 6%; right: 6%;
  height: 1px;
  background: var(--line-strong);
  z-index: 0;
}
.cp-home .route-node {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 16px 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.cp-home .route-node span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brass-text);
}
.cp-home .route-node strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin: 8px 0 4px;
}
.cp-home .route-node em { font-style: normal; font-size: 12.5px; color: var(--ink-soft); }
.cp-home .route-node:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.cp-home .route-node:active { transform: scale(0.98); }
.cp-home .route-node.is-active {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 20px 40px -22px rgba(14, 38, 56, 0.8);
}
.cp-home .route-node.is-active span { color: var(--brass-on-navy); }
.cp-home .route-node.is-active strong { color: var(--ivory); }
.cp-home .route-node.is-active em { color: rgba(251, 247, 239, 0.7); }
.cp-home .route-console-panel {
  border-radius: var(--r-md);
  background: rgba(14, 38, 56, 0.04);
  padding: 22px;
  border: 1px solid var(--line);
}
.cp-home .route-console-panel span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
}
.cp-home .route-console-panel strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--navy);
  margin: 8px 0 8px;
}
.cp-home .route-console-panel p { font-size: 15px; line-height: 1.62; color: var(--ink-soft); }

/* ============================================================
   10. STUDENT VOICES — elevated rail (reuses .review-track markup)
   ============================================================ */
.cp-voices { padding: clamp(72px, 9vw, 116px) 0; }
.cp-voices-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}
.cp-voices-head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; max-width: 16ch; }
.cp-voices-head .hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cp-home .review-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  scrollbar-width: none;
  cursor: grab;
}
.cp-home .review-track::-webkit-scrollbar { display: none; }
.cp-home .review-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.cp-home .review-card {
  scroll-snap-align: start;
  flex: 0 0 min(86vw, 380px);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.cp-home .review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 64px -42px rgba(14, 38, 56, 0.5);
}
.cp-home .review-card-head { display: flex; align-items: center; gap: 14px; }
.cp-home .review-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--brass-soft);
}
.cp-home .review-card-head h3 { font-size: 18px; color: var(--navy); }
.cp-home .review-school { font-size: 13px; color: var(--ink-soft); }
.cp-home .review-service {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-top: 2px;
}
.cp-home .review-card blockquote {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.cp-home .review-rating-row { display: flex; align-items: center; gap: 10px; }
.cp-home .review-stars {
  --rating: 100%;
  width: 92px; height: 16px;
  background:
    linear-gradient(90deg, var(--brass-bright) var(--rating), rgba(20,19,15,0.16) var(--rating));
  -webkit-mask: repeat left/20% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.7-5.1 4.7 1.4 6.8L12 17.8 5.9 20.5l1.4-6.8L2.2 9l6.9-.7z'/%3E%3C/svg%3E");
  mask: repeat left/20% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.3 6.9.7-5.1 4.7 1.4 6.8L12 17.8 5.9 20.5l1.4-6.8L2.2 9l6.9-.7z'/%3E%3C/svg%3E");
}
.cp-home .review-score { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ============================================================
   11. GUIDANCE / blogs preview — editorial with imagery
   ============================================================ */
.cp-guidance { background: var(--navy); color: var(--ivory); position: relative; overflow: hidden; }
.cp-guidance::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 90% 0%, rgba(194,147,74,0.14), transparent 55%);
  pointer-events: none;
}
.cp-guidance-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 52px);
}
.cp-guidance-head .kicker { color: var(--brass-on-navy); }
.cp-guidance-head .kicker::before { background: linear-gradient(90deg, var(--brass-on-navy), transparent); }
.cp-guidance-head h2 { color: var(--ivory); font-size: clamp(32px, 4vw, 54px); line-height: 1.05; max-width: 14ch; margin-top: 18px; }
.cp-guidance-head p { color: rgba(251,247,239,0.74); font-size: 16px; line-height: 1.68; }
.cp-guidance-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cp-guide-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  background: rgba(251, 247, 239, 0.04);
  border: 1px solid rgba(217, 192, 148, 0.18);
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.cp-guide-card:hover { transform: translateY(-5px); border-color: rgba(217,192,148,0.45); background: rgba(251,247,239,0.07); }
.cp-guide-img { aspect-ratio: 16/10; overflow: hidden; }
.cp-guide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.cp-guide-card:hover .cp-guide-img img { transform: scale(1.06); }
.cp-guide-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cp-guide-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-on-navy);
}
.cp-guide-card h3 { color: var(--ivory); font-size: 18px; line-height: 1.28; font-weight: 500; }
.cp-guide-card .read {
  margin-top: auto;
  font-size: 13.5px;
  color: rgba(251,247,239,0.78);
  display: inline-flex; align-items: center; gap: 7px;
  transition: color 0.3s var(--ease-out);
}
.cp-guide-card .read-arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.cp-guide-card:hover .read { color: var(--brass-on-navy); }
.cp-guide-card:hover .read-arrow { transform: translateX(4px); }
.cp-guidance-foot { position: relative; margin-top: clamp(30px, 4vw, 44px); }
.cp-guidance-foot .button {
  background: transparent; border: 1px solid rgba(217,192,148,0.4); color: var(--ivory);
}
.cp-guidance-foot .button:hover { border-color: var(--ivory); background: rgba(251,247,239,0.06); }

/* ============================================================
   12. CONTACT — refined, accessible form on paper (not low-contrast navy)
   ============================================================ */
.cp-contact { padding: clamp(80px, 10vw, 130px) 0; }
.cp-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.cp-contact-copy h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1.05; max-width: 13ch; margin: 18px 0 18px; }
.cp-contact-copy .lead { font-size: 17px; line-height: 1.72; color: var(--ink-soft); max-width: 42ch; margin-bottom: 30px; }
.cp-contact-details { display: grid; gap: 0; }
.cp-contact-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cp-contact-row:last-child { border-bottom: 1px solid var(--line); }
.cp-contact-row span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-text);
}
.cp-contact-row a, .cp-contact-row p { font-size: 16px; color: var(--ink); text-decoration: none; }
.cp-contact-row a:hover { color: var(--brass); }

.cp-form {
  background: linear-gradient(180deg, var(--ivory), var(--ivory-edge));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 50px 100px -60px rgba(14, 38, 56, 0.5);
}
.cp-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-form .field { display: flex; flex-direction: column; gap: 7px; }
.cp-form .field.full { grid-column: 1 / -1; }
.cp-form label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cp-form input, .cp-form select, .cp-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.cp-form input::placeholder, .cp-form textarea::placeholder { color: #6f6a60; }
.cp-form input:focus, .cp-form select:focus, .cp-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(154, 106, 30, 0.5);
}
.cp-form textarea { min-height: 110px; resize: vertical; }
.cp-form .form-note { font-size: 13px; color: var(--ink-soft); margin: 16px 0 0; }
.cp-form .form-status { font-size: 14px; min-height: 0; transition: color 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
.cp-form .form-status.show { margin-top: 12px; color: var(--navy); }
.cp-form .form-status.error { color: #9a2a1e; }
.cp-form .button.submit { width: 100%; margin-top: 18px; }
.cp-form .hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FIX legacy dark-mode bug: styles.css @media(prefers-color-scheme:dark) forces every input's text to
   var(--paper) (ivory) with !important, so typed text is invisible on the light premium forms. Restore
   dark ink on white. Higher specificity (.cp-home input) + !important beats the global input rule. */
@media (prefers-color-scheme: dark) {
  .cp-home input, .cp-home select, .cp-home textarea {
    background: #fff !important;
    color: var(--ink) !important;
    -webkit-text-fill-color: var(--ink) !important;
  }
  .cp-home input::placeholder, .cp-home textarea::placeholder {
    color: #6f6a60 !important; -webkit-text-fill-color: #6f6a60 !important; opacity: 1;
  }
  .cp-home select:focus, .cp-home input:focus, .cp-home textarea:focus { background: #fff !important; }
}

/* ============================================================
   13. Footer + WhatsApp + dialog refinements (homepage)
   ============================================================ */
.cp-home + footer, body:has(.cp-home) footer {
  background: var(--navy-deep);
  color: rgba(251, 247, 239, 0.7);
  padding: 40px 0;
}
body:has(.cp-home) .footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  justify-content: space-between;
}
body:has(.cp-home) footer a { color: rgba(251,247,239,0.8); text-decoration: none; }
body:has(.cp-home) footer a:hover { color: var(--brass-on-navy); }
body:has(.cp-home) .footer-socials { display: flex; gap: 12px; }
body:has(.cp-home) .footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(251,247,239,0.18);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
body:has(.cp-home) .footer-socials a:hover { transform: translateY(-3px); border-color: var(--brass-on-navy); color: var(--brass-on-navy); }

body:has(.cp-home) .whatsapp-float {
  box-shadow: 0 16px 40px -16px rgba(14, 38, 56, 0.7);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
body:has(.cp-home) .whatsapp-float:hover { transform: translateY(-3px) scale(1.05); }

body:has(.cp-home) .lead-dialog-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: 0 60px 120px -50px rgba(14, 38, 56, 0.7);
}

/* ============================================================
   14. Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cp-hero-bg img { width: 100%; opacity: 0.1; }
  .cp-router-inner,
  .cp-system-grid,
  .cp-thesis-grid,
  .cp-prog-head,
  .cp-guidance-head,
  .cp-contact-grid { grid-template-columns: 1fr; }
  .cp-prog-grid { grid-template-columns: 1fr; }
  .cp-prog-card.feature { grid-column: auto; grid-row: auto; min-height: 300px; }
  .cp-guidance-grid { grid-template-columns: 1fr; }
  .cp-system-grid { gap: 40px; }
}
@media (max-width: 720px) {
  .cp-home .shell { width: calc(100% - 36px); }
  .cp-hero { padding-top: 104px; }
  .cp-hero-copy h1 { font-size: clamp(38px, 11vw, 52px); }
  .cp-router-options { grid-template-columns: 1fr; }
  .cp-form .form-grid { grid-template-columns: 1fr; }
  .cp-voices-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cp-contact-row { grid-template-columns: 1fr; gap: 4px; }
  .cp-guidance-grid { grid-template-columns: 1fr; }
}

/* Unify the page-navigation transitions (fade + slide + view-transition) onto the brand
   easing for one consistent motion language. Overrides only the timing function; home.css
   loads after styles.css so these win without touching the separately-cached stylesheet. */
html.page-ready body { animation-timing-function: var(--ease-out); }
html.page-leaving body { transition-timing-function: var(--ease-out); }
.home-page, .vision-page, .mentorship-page, .international-page, .testprep-page { transition-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-timing-function: var(--ease-out); }
/* Keep the outgoing page fully visible during navigation. site.js fades the body to opacity:0
   before navigating; in browsers with the View Transitions API that blanked page is what gets
   snapshotted, so the cross-fade starts from blank — an awkward flash. Staying visible lets the
   transition cross-fade from the real page (and the new page's cp-page-in entrance still plays). */
html.page-leaving body { opacity: 1 !important; transform: none !important; }

/* ============================================================
   15. Reduced motion — collapse movement, keep comprehension
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .cp-home *, .cp-home *::before, .cp-home *::after { scroll-behavior: auto !important; }
  html.page-ready .cp-home .reveal { transform: none !important; transition: none !important; }
  .cp-marquee-track { animation: none !important; transform: none !important; }
  .cp-home .route-console-header strong::before { animation: none !important; }
  .cp-router-step.active, .cp-router-result.active { animation: none !important; }
  .cp-router-progress .dot::after { transition: none !important; }
  .cp-prog-card .pc-img, .cp-guide-img img { transition: none !important; transform: none !important; }
  .cp-prog-card:hover .pc-img, .cp-guide-card:hover .cp-guide-img img { transform: none !important; }
  .cp-home .button:hover, .cp-prog-card:hover, .cp-guide-card:hover,
  .cp-home .review-card:hover, .cp-home .route-node:hover,
  .cp-opt:hover, .cp-home .nav-cta:hover, body:has(.cp-home) .footer-socials a:hover,
  body:has(.cp-home) .whatsapp-float:hover { transform: none !important; }
}

/* Touch devices: don't leave hover transforms stuck after a tap */
@media (hover: none) {
  .cp-prog-card:hover, .cp-guide-card:hover, .cp-home .review-card:hover,
  .cp-home .button:hover, .cp-opt:hover, .cp-home .route-node:hover,
  .cp-home .nav-cta:hover, body:has(.cp-home) .footer-socials a:hover,
  body:has(.cp-home) .whatsapp-float:hover { transform: none; }
  .cp-prog-card:hover .pc-go { transform: none; }
  .cp-guide-card:hover .read-arrow { transform: none; }
  .cp-prog-card:hover .pc-img, .cp-guide-card:hover .cp-guide-img img { transform: scale(1); }
}

/* ============================================================
   16. THE ROUTE MAP — generative two-way centerpiece
   ============================================================ */
.cp-routemap { background: var(--paper-2); }
.cp-rm-head { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 44px); text-align: center; }
.cp-rm-head .kicker { justify-content: center; }
.cp-rm-head .kicker::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--brass)); }
.cp-rm-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 18px auto 14px; max-width: 18ch; }
.cp-rm-head p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); margin: 0 auto; max-width: 56ch; }

.cp-rm {
  background: linear-gradient(180deg, var(--ivory), var(--ivory-edge));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 50px 110px -60px rgba(14, 38, 56, 0.5);
  overflow: hidden;
}
.cp-rm-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
}
.cp-rm-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.cp-rm-q legend {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 12px;
  padding: 0;
}
.cp-rm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chip {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 9px 15px;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background 0.25s var(--ease-out),
    color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.cp-chip:hover { border-color: var(--navy); transform: translateY(-2px); }
.cp-chip:active { transform: scale(0.97); }
.cp-chip.selected {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
  box-shadow: 0 12px 26px -14px rgba(14, 38, 56, 0.8);
}
.cp-rm-name { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 7px; max-width: 340px; }
.cp-rm-name label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cp-rm-name label span { color: #8a8378; }
.cp-rm-name input {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.cp-rm-name input::placeholder { color: #6f6a60; }
.cp-rm-name input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(154, 106, 30, 0.5); }

.cp-rm-canvas { padding: clamp(24px, 3vw, 40px); }
.cp-rm-empty {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  padding: clamp(30px, 6vw, 70px) 0;
}
.cp-rm-result[hidden] { display: none; }
.cp-rm-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.cp-rm-map-head strong { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.4vw, 30px); color: var(--navy); }
.cp-rm-indicative { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-soft); }

/* Vertical itinerary timeline */
.cp-rm-timeline { list-style: none; margin: 0; padding: 0; }
.cp-rm-stop {
  display: grid;
  grid-template-columns: 132px 30px 1fr;
  align-items: start;
  column-gap: 6px;
  padding-bottom: 26px;
  opacity: 1;
}
.cp-rm-stop:last-child { padding-bottom: 0; }
.cp-rm-when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--brass-text);
  padding-top: 2px;
  text-align: right;
  padding-right: 8px;
}
.cp-rm-rail { position: relative; align-self: stretch; }
.cp-rm-node {
  position: relative;
  width: 14px; height: 14px;
  margin: 4px auto 0;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--brass);
  z-index: 1;
}
.cp-rm-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 22px;
  bottom: -26px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--brass-soft), rgba(154, 106, 30, 0.18));
}
.cp-rm-stop:last-child .cp-rm-rail::before { display: none; }
.cp-rm-stop:last-child .cp-rm-node { background: var(--navy); border-color: var(--navy); }
.cp-rm-body { padding-left: 6px; }
.cp-rm-phase {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-text);
  border: 1px solid rgba(154, 106, 30, 0.3);
  border-radius: var(--r-pill);
  padding: 2px 8px;
  margin-bottom: 7px;
}
.cp-rm-body h4 { font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.8vw, 21px); color: var(--navy); margin-bottom: 5px; }
.cp-rm-body p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; }

.cp-rm-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.cp-rm-insight { background: rgba(14, 38, 56, 0.04); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.cp-rm-insight:last-child { background: var(--navy); border-color: var(--navy); }
.cp-rm-insight-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-text);
  display: block;
  margin-bottom: 8px;
}
.cp-rm-insight:last-child .cp-rm-insight-label { color: var(--brass-on-navy); }
.cp-rm-insight p { font-family: var(--serif); font-size: 16px; line-height: 1.45; color: var(--navy); }
.cp-rm-insight:last-child p { color: var(--ivory); }

.cp-rm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* staggered draw-in (transform+opacity, only when motion allowed and after build) */
@media (prefers-reduced-motion: no-preference) {
  .cp-rm-result.is-drawn .cp-rm-stop {
    animation: cp-rm-stop-in 0.5s var(--ease-out) both;
    animation-delay: calc(var(--i) * 65ms);
  }
}
@keyframes cp-rm-stop-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Hero sample mini-route preview */
.cp-rm-mini { list-style: none; margin: 8px 0 18px; padding: 0; }
.cp-rm-mini li { display: grid; grid-template-columns: 64px 18px 1fr; align-items: center; column-gap: 8px; }
.cp-rm-mini-when { font-family: var(--mono); font-size: 11px; color: var(--brass-text); text-align: right; }
.cp-rm-mini-dot {
  position: relative;
  width: 10px; height: 10px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--brass);
}
.cp-rm-mini li:not(:last-child) .cp-rm-mini-dot::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 1.5px; height: 26px;
  background: linear-gradient(180deg, var(--brass-soft), rgba(154,106,30,0.2));
}
.cp-rm-mini-dot.is-end { background: var(--navy); border-color: var(--navy); }
.cp-rm-mini-label { font-family: var(--serif); font-size: 15px; color: var(--navy); padding: 7px 0; }
.cp-rm-mini-cap { font-size: 12.5px; color: var(--ink-soft); font-style: italic; }

/* Route Map responsive */
@media (max-width: 860px) {
  .cp-rm-controls { grid-template-columns: 1fr; gap: 20px; }
  .cp-rm-stop { grid-template-columns: 96px 26px 1fr; }
  .cp-rm-when { font-size: 11px; }
  .cp-rm-insights { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cp-rm-stop { grid-template-columns: 84px 24px 1fr; }
}

/* Route Map reduced-motion: snap, never gate visibility */
@media (prefers-reduced-motion: reduce) {
  .cp-rm-result.is-drawn .cp-rm-stop { animation: none !important; opacity: 1 !important; transform: none !important; }
  .cp-chip:hover { transform: none !important; }
}
@media (hover: none) {
  .cp-chip:hover { transform: none; }
}

/* ============================================================
   17. PRINT — the Route Map becomes a clean one-page artifact
   ============================================================ */
/* The printable Route Map artifact is generated in an isolated iframe (see
   printRouteMap in home.js), so it carries its own self-contained styles and
   needs no print CSS on the main document. */

/* ============================================================
   18. INNER PAGES (Phase 2) — premium restyle of the shared
   content classes. Scoped under .cp-home (present on every premium
   <main>) so these win over styles.css. Markup + copy are unchanged.
   ============================================================ */

/* --- Eyebrow used on content pages -> kicker treatment --- */
.cp-home .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  display: inline-block;
}

/* --- Recomposed inner-page hero (image in the hero grid) --- */
.cp-inner-hero { padding-bottom: clamp(20px, 4vw, 48px); }
.cp-home .cp-inner-hero .cp-hero-grid { align-items: start; }
.cp-home .cp-inner-hero .cp-hero-copy { padding-top: clamp(4px, 1.5vw, 18px); }
/* The CARD owns the aspect-ratio; the image always fills it (no grey gap below a capped image). */
.cp-home .cp-inner-hero .cp-hero-figure { align-self: start; margin: 0; aspect-ratio: 4 / 5; }
.cp-home .cp-inner-hero .cp-hero-figure img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; max-height: none; }
@media (prefers-reduced-motion: no-preference) {
  html.page-ready .cp-inner-hero .cp-hero-figure { animation: cp-rise 0.8s var(--ease-out) 0.12s both; }
}
@media (max-width: 1024px) {
  /* Copy-first on tablet (beats the legacy .vision-image-card order:-1 from the 980px block).
     Image becomes a clean full-width landscape banner below the headline, not a narrow centred crop. */
  .cp-home .cp-inner-hero .cp-hero-copy { order: 0; }
  .cp-home .cp-inner-hero .cp-hero-figure { order: 1; margin-top: clamp(24px, 4vw, 36px); width: 100%; max-width: none; aspect-ratio: 16 / 10; align-self: stretch; justify-self: stretch; }
}

/* ============================================================
   THE LEDGER — premium 4-step "method" component (replaces the
   old route-board cards). An Oxbridge contents-page accordion with
   an engraved brass progress rail + a ghosted serif numeral.
   ============================================================ */
.cp-ledger {
  background: linear-gradient(180deg, var(--ivory), var(--ivory-edge));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 50px 100px -56px rgba(14, 38, 56, 0.5);
  overflow: hidden;
}
.cp-ledger-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px clamp(22px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.cp-ledger-head strong { color: var(--brass-text); font-weight: 500; display: inline-flex; align-items: center; gap: 9px; font-variant-numeric: tabular-nums; }
.cp-ledger-head strong::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-bright); box-shadow: 0 0 0 0 rgba(194, 147, 74, 0.5); animation: cp-pulse 2.6s var(--ease-out) infinite; }
.cp-ledger-rows { position: relative; list-style: none; margin: 0; padding: 6px clamp(22px, 3vw, 34px) clamp(10px, 2vw, 18px); }
/* engraved rail (pending) + brass fill (traversed) */
.cp-ledger-rows::before { content: ""; position: absolute; left: clamp(22px, 3vw, 34px); top: 12px; bottom: 16px; width: 1.5px; background: linear-gradient(180deg, rgba(154, 106, 30, 0.22), rgba(154, 106, 30, 0.08)); }
.cp-ledger-fill { position: absolute; left: clamp(22px, 3vw, 34px); top: 0; width: 1.5px; height: 0; background: linear-gradient(180deg, var(--brass), var(--brass-soft)); box-shadow: 0 0 7px rgba(154, 106, 30, 0.4); transition: height 0.5s var(--ease-out); pointer-events: none; }
.cp-ledger-fill::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); width: 11px; height: 11px; border-radius: 50%; background: var(--brass); border: 2px solid var(--ivory); box-shadow: 0 0 0 6px rgba(154, 106, 30, 0.12), 0 0 10px rgba(154, 106, 30, 0.45); }
.cp-ledger-row + .cp-ledger-row { border-top: 1px solid rgba(14, 38, 56, 0.12); }
.cp-led-trigger {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 18px; align-items: end;
  padding: clamp(17px, 2.2vw, 23px) 0 clamp(17px, 2.2vw, 23px) 36px;
  position: relative; transition: background 0.25s var(--ease-out);
}
@media (hover: hover) { .cp-led-trigger:hover { background: rgba(255, 253, 247, 0.6); } }
.cp-led-trigger:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; border-radius: 8px; }
.cp-led-num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0.1em; color: var(--brass-soft); align-self: end; padding-bottom: 6px; transition: color 0.3s var(--ease-out); }
.cp-led-name { position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 2.9vw, 38px); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); max-width: 16ch; overflow-wrap: break-word; transition: color 0.3s var(--ease-out); }
.cp-led-name::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: 0; background: var(--brass); transition: width 0.45s var(--ease-out); }
.cp-led-label { justify-self: end; align-self: end; padding-bottom: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); text-align: right; max-width: 14ch; line-height: 1.3; }
@media (hover: hover) { .cp-led-trigger:hover .cp-led-num, .cp-led-trigger:hover .cp-led-name { color: var(--navy); } }
.cp-ledger-row.is-open .cp-led-num { color: var(--brass-text); }
.cp-ledger-row.is-open .cp-led-name { color: var(--navy); }
.cp-ledger-row.is-open .cp-led-name::after { width: 2.2em; }
/* reveal */
.cp-led-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.42s var(--ease-out); }
.cp-ledger-row.is-open .cp-led-body { grid-template-rows: 1fr; }
.cp-led-body-inner { overflow: hidden; min-height: 0; position: relative; padding-left: 36px; }
.cp-led-ghost { position: absolute; top: -0.42em; right: 0; z-index: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(76px, 11vw, 148px); line-height: 1; color: rgba(14, 38, 56, 0.05); pointer-events: none; }
.cp-led-desc { position: relative; z-index: 1; color: var(--ink-soft); font-size: 16px; line-height: 1.75; max-width: 46ch; padding-bottom: 26px; opacity: 0; transform: translateY(8px); transition: opacity 0.34s var(--ease-out) 0.1s, transform 0.34s var(--ease-out) 0.1s; }
.cp-ledger-row.is-open .cp-led-desc { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cp-led-body, .cp-ledger-fill, .cp-led-desc, .cp-led-name::after { transition: none !important; }
  .cp-led-desc { opacity: 1; transform: none; }
  .cp-ledger-head strong::before { animation: none; }
}
@media (max-width: 720px) {
  .cp-led-trigger { grid-template-columns: auto 1fr; row-gap: 4px; padding-left: 30px; }
  .cp-led-label { grid-column: 1 / -1; justify-self: start; text-align: left; padding-bottom: 0; max-width: none; }
  .cp-led-body-inner { padding-left: 30px; }
  .cp-ledger-rows::before, .cp-ledger-fill { left: 22px; }
}

/* --- Page hero (vision / mentorship / international / test prep) --- */
.cp-home .vision-editorial { padding: clamp(116px, 14vh, 150px) 0 clamp(40px, 6vw, 70px); }
.cp-home .vision-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.cp-home .vision-intro h1 {
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 14ch;
}
.cp-home .vision-subhead {
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 18px;
  max-width: 38ch;
}
.cp-home .vision-intro p:not(.vision-subhead) {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink-soft);
  max-width: 48ch;
}
.cp-home .vision-image-card {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 50px 100px -56px rgba(14, 38, 56, 0.5);
}
.cp-home .vision-image-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-home .vision-image-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 22px 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  background: linear-gradient(0deg, rgba(10, 29, 43, 0.82), transparent);
}

/* --- Editorial text block (vision-content) --- */
.cp-home .vision-content { padding: clamp(44px, 6vw, 76px) 0; }
.cp-home .vision-content-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.cp-home .vision-side {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-text);
  padding-top: 14px;
  border-top: 2px solid var(--navy);
}
.cp-home .vision-text p {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.72;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 60ch;
}
.cp-home .vision-text p:last-child { margin-bottom: 0; }

/* --- Method section (copy + route console, already styled in §9) --- */
.cp-home .trust-infographic { padding: clamp(60px, 8vw, 108px) 0; background: var(--paper-2); }
.cp-home .trust-infographic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}
.cp-home .trust-infographic-copy h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; margin: 12px 0 14px; max-width: 14ch; }
.cp-home .trust-infographic-copy p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); max-width: 42ch; }

/* --- Stages (international "every stage") rebuilt clean, no oval badges --- */
.cp-stages { background: var(--paper); }
.cp-stages-head { max-width: 640px; margin: 0 auto clamp(34px, 4vw, 52px); text-align: center; }
.cp-stages-head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin: 0 auto 14px; max-width: 16ch; }
.cp-stages-head p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }
.cp-stages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(40px, 5vw, 84px); border-top: 1px solid var(--line); }
.cp-stage { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cp-stage .n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: 0.08em; color: var(--brass-text); padding-top: 5px; }
.cp-stage h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.18; color: var(--navy); margin-bottom: 7px; }
.cp-stage p { font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); text-align: left; max-width: 46ch; }
@media (max-width: 760px) { .cp-stages-grid { grid-template-columns: 1fr; } }

/* --- Guidance LIGHT variant (inner pages, so the final navy CTA stands alone) --- */
.cp-guidance.is-light { background: var(--paper-2); color: var(--ink); }
.cp-guidance.is-light::before { display: none; }
.cp-guidance.is-light .cp-guidance-head .kicker, .cp-guidance.is-light .cp-guide-tag { color: var(--brass-text); }
.cp-guidance.is-light .cp-guidance-head h2 { color: var(--navy); }
.cp-guidance.is-light .cp-guidance-head p { color: var(--ink-soft); }
.cp-guidance.is-light .cp-guide-card { background: var(--ivory); border-color: var(--line); }
.cp-guidance.is-light .cp-guide-card:hover { border-color: var(--line-strong); }
.cp-guidance.is-light .cp-guide-card h3 { color: var(--navy); }
.cp-guidance.is-light .cp-guide-card .read { color: var(--ink-soft); }
.cp-guidance.is-light .cp-guide-card:hover .read { color: var(--brass-text); }
.cp-guidance.is-light .cp-guidance-foot .button { background: transparent; border: 1px solid var(--line-strong); color: var(--navy); }
.cp-guidance.is-light .cp-guidance-foot .button:hover { border-color: var(--navy); background: rgba(14, 38, 56, 0.04); }

/* --- Numbered stages grid (international page) --- */
.cp-home .international-stages { padding: clamp(60px, 8vw, 108px) 0; }
.cp-home .international-stage-head { margin-bottom: clamp(28px, 4vw, 46px); }
.cp-home .international-stage-head h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.06; margin-top: 12px; }
.cp-home .international-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
.cp-home .international-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.cp-home .international-stage b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--brass-text);
  padding-top: 4px;
}
.cp-home .international-stage h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.cp-home .international-stage p { font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); }

/* --- Closing band (culture-band) -> navy CTA --- */
.cp-home .culture-band { background: var(--navy); color: var(--ivory); padding: clamp(60px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.cp-home .culture-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 90% 0%, rgba(194, 147, 74, 0.14), transparent 55%); pointer-events: none; }
.cp-home .culture-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.cp-home .culture-band .eyebrow { color: var(--brass-on-navy); }
.cp-home .culture-band h2 { color: var(--ivory); font-size: clamp(32px, 4vw, 52px); line-height: 1.05; margin-top: 14px; max-width: 13ch; }
.cp-home .culture-band h2 span { color: var(--brass-on-navy); font-style: italic; }
.cp-home .culture-copy p { color: rgba(251, 247, 239, 0.78); font-size: 16.5px; line-height: 1.7; margin-bottom: 16px; max-width: 48ch; }
.cp-home .culture-band .button.primary { background: var(--brass-on-navy); border-color: var(--brass-on-navy); color: var(--navy-deep); margin-top: 10px; }
.cp-home .culture-band .button.primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); }
/* Light closing CTA: sits between the now-navy "Related reading" and the navy footer, so the page
   ends navy -> warm ivory -> navy and the final call-to-action clearly separates from the footer. */
.cp-home .culture-band.is-light { background: linear-gradient(180deg, var(--ivory), var(--paper-2)); color: var(--ink); }
.cp-home .culture-band.is-light::before { background: radial-gradient(70% 90% at 90% 0%, rgba(154, 106, 30, 0.10), transparent 55%); }
.cp-home .culture-band.is-light .eyebrow { color: var(--brass-text); }
.cp-home .culture-band.is-light .eyebrow::before { background: linear-gradient(90deg, var(--brass), transparent); }
.cp-home .culture-band.is-light h2 { color: var(--navy); }
.cp-home .culture-band.is-light h2 span { color: var(--brass-text); }
.cp-home .culture-band.is-light .culture-copy p { color: var(--ink-soft); }
.cp-home .culture-band.is-light .button.primary { background: var(--brass); border-color: var(--brass); color: var(--ivory); }
.cp-home .culture-band.is-light .button.primary:hover { background: var(--brass-text); border-color: var(--brass-text); color: var(--ivory); }

/* --- Blog library (listing) --- */
.cp-home .blog-library { padding: clamp(116px, 14vh, 150px) 0 clamp(70px, 9vw, 116px); }
.cp-home .blog-library-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.cp-home .blog-library-head h1 { font-size: clamp(38px, 4.6vw, 62px); line-height: 1.05; margin: 16px auto 14px; max-width: 18ch; }
.cp-home .blog-library-head p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); max-width: 54ch; margin: 0 auto; }
.cp-home .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.cp-home .blog-card {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.cp-home .blog-card:hover { transform: translateY(-5px); box-shadow: 0 40px 70px -42px rgba(14, 38, 56, 0.5); }
.cp-home .blog-card-image { aspect-ratio: 16 / 10; overflow: hidden; margin: 0; }
.cp-home .blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.cp-home .blog-card:hover .blog-card-image img { transform: scale(1.05); }
.cp-home .blog-card-copy { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cp-home .blog-card-meta {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-text);
}
.cp-home .blog-card-meta span:first-child { display: none; } /* drop decorative card number */
.cp-home .blog-card h2 { font-size: 19px; line-height: 1.28; color: var(--navy); font-weight: 500; }
.cp-home .blog-card-copy p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.cp-home .blog-card-link { font-size: 13.5px; color: var(--brass-text); display: inline-flex; align-items: center; gap: 7px; margin-top: auto; transition: gap 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.cp-home .blog-card:hover .blog-card-link { color: var(--navy); gap: 11px; }

/* --- Blog article --- */
.cp-home .blog-article-hero { padding: clamp(112px, 13vh, 148px) 0 clamp(18px, 3vw, 34px); }
.cp-home .article-shell { width: min(calc(100% - 48px), 820px); margin-inline: auto; }
.cp-home .article-back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--brass-text); text-decoration: none; display: block; margin-bottom: 20px; transition: color 0.25s var(--ease-out); }
.cp-home .article-back:hover { color: var(--navy); }
.cp-home .blog-article-hero h1 { font-size: clamp(33px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -0.015em; margin: 12px auto 18px; max-width: 20ch; text-wrap: balance; }
.cp-home .article-summary { font-family: var(--serif); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--navy); margin-bottom: 14px; }
.cp-home .article-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-soft); text-transform: uppercase; }
.cp-home .article-hero-media { margin: clamp(28px, 4vw, 44px) 0 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 50px 100px -60px rgba(14, 38, 56, 0.5); aspect-ratio: 16 / 9; }
.cp-home .article-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.cp-home .blog-article-content { padding: clamp(36px, 5vw, 64px) 0 clamp(70px, 9vw, 120px); }
.cp-home .article-layout {
  width: min(calc(100% - 48px), 1080px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}
.cp-home .article-prose { max-width: 68ch; }
.cp-home .article-prose p { font-size: 17.5px; line-height: 1.78; color: var(--ink); margin-bottom: 20px; text-align: left; }
.cp-home .article-prose p.article-lede { font-size: 20px; line-height: 1.66; color: var(--ink); }
.cp-home .article-prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.16; color: var(--navy); margin: 38px 0 14px; }
.cp-home .article-prose h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--navy); margin: 28px 0 10px; }
.cp-home .article-prose a { color: var(--brass-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color 0.2s var(--ease-out); }
.cp-home .article-prose a:hover { color: var(--navy); }
.cp-home .article-prose ul, .cp-home .article-prose ol { margin: 0 0 20px 1.1em; }
.cp-home .article-prose li { font-size: 17.5px; line-height: 1.7; color: var(--ink); margin-bottom: 8px; }
.cp-home .article-prose blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.42;
  color: var(--navy);
  margin: 32px 0;
  padding: 24px 28px;
  background: rgba(14, 38, 56, 0.045);
  border-radius: var(--r-md);
}
.cp-home .article-prose em { font-style: italic; }
.cp-home .article-cta {
  position: sticky;
  top: 92px;
  background: var(--navy);
  color: var(--ivory);
  border-radius: var(--r-lg);
  padding: 28px 26px;
}
.cp-home .article-cta .eyebrow { color: var(--brass-on-navy); }
.cp-home .article-cta h2 { color: var(--ivory); font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.12; margin: 12px 0 12px; }
.cp-home .article-cta p { color: rgba(251, 247, 239, 0.78); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }
.cp-home .article-cta .button.primary { background: var(--brass-on-navy); border-color: var(--brass-on-navy); color: var(--navy-deep); width: 100%; }
.cp-home .article-cta .button.primary:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

/* --- Inner-page responsive --- */
@media (max-width: 980px) {
  .cp-home .vision-editorial-grid,
  .cp-home .vision-content-grid,
  .cp-home .trust-infographic-grid,
  .cp-home .culture-grid,
  .cp-home .article-layout { grid-template-columns: 1fr; }
  .cp-home .vision-image-card { order: -1; }
  .cp-home .article-cta { position: static; }
  .cp-home .international-stage-grid { grid-template-columns: 1fr; }
  .cp-home .vision-side { border-top: 0; padding-top: 0; }
}

/* ============================================================
   MOBILE OPTIMISATION (<= 720px) — a leaner, faster phone read:
   shorter hero copy, tighter rhythm, smaller display type,
   full-width tap targets. (.trim-sm hides secondary sentences.)
   ============================================================ */
.trim-sm { display: inline; }
@media (max-width: 720px) {
  .trim-sm { display: none; }

  /* Hero: tighter top, headline-first, image sized for phones */
  .cp-hero { padding-top: clamp(80px, 17vw, 98px); }
  .cp-home .cp-hero-copy h1 { font-size: clamp(33px, 9.4vw, 44px); line-height: 1.07; max-width: 18ch; }
  .cp-hero-lead { font-size: 16px; line-height: 1.62; max-width: 100%; }
  .cp-hero-actions { gap: 10px; flex-direction: column; align-items: stretch; }
  .cp-hero-actions .button { width: 100%; min-height: 52px; }
  .cp-inner-hero .cp-hero-figure { order: 0; margin-top: 22px; }
  .cp-inner-hero .cp-hero-figure img { aspect-ratio: 16 / 11; }

  /* Leaner section rhythm + display type */
  .cp-section { padding: clamp(50px, 12vw, 74px) 0; }
  .cp-voices { padding: clamp(50px, 12vw, 74px) 0; }
  .cp-home .cp-thesis-lead h2, .cp-home .cp-prog-head h2, .cp-home .cp-system-copy h2,
  .cp-home .cp-stages-head h2, .cp-home .cp-guidance-head h2, .cp-home .cp-contact-copy h2,
  .cp-home .cp-rm-head h2, .cp-home .cp-voices-head h2, .cp-home .cp-router-intro h2,
  .cp-home .culture-band h2, .cp-home .vision-intro h1 { font-size: clamp(28px, 7.6vw, 38px); line-height: 1.08; }
  .cp-home .vision-text p { font-size: 17px; }
  .cp-home .vision-subhead { font-size: 18px; }

  /* Marquee a touch quieter */
  .cp-marquee-track span { font-size: 18px; }
  .cp-marquee-track span::after { margin: 0 18px; }

  /* Programmes bento: comfortable card heights */
  .cp-prog-card.feature { min-height: 280px; }
  .cp-prog-card { min-height: 210px; }

  /* Route Map + Ledger: bigger tap targets, smaller serif */
  .cp-led-name { font-size: clamp(23px, 6.8vw, 29px); }
  .cp-rm-canvas { padding: 20px 16px; }
  .cp-rm { border-radius: var(--r-md); }

  /* Blog article: comfortable reading on phones */
  .cp-home .blog-article-hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .cp-home .article-prose p, .cp-home .article-prose li { font-size: 16.5px; }
  .cp-home .article-prose p.article-lede { font-size: 18px; }

  /* Footer tidy */
  body:has(.cp-home) .footer-grid { gap: 14px 20px; }
}

/* ============================================================
   ROUTE MAP — printable sheet. #cp-print-sheet is built into the main
   document when a parent generates their route; @media print hides the
   live site and prints ONLY this clean one-page sheet (works on mobile,
   where iframe printing prints the whole page instead).
   ============================================================ */
#cp-print-sheet { display: none; }

@media print {
  /* When a route sheet exists, print only it. */
  body:has(#cp-print-sheet) > *:not(#cp-print-sheet) { display: none !important; }
  .whatsapp-float, .whatsapp-fab, [class*="whatsapp"] { display: none !important; }
  @page { margin: 14mm; }
  html, body { background: #fff !important; }

  #cp-print-sheet {
    display: block !important;
    font-family: "Inter", system-ui, sans-serif;
    color: #14130f;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #cp-print-sheet * { margin: 0; box-sizing: border-box; }
  #cp-print-sheet .ps-head { text-align: center; border-bottom: 2px solid #0e2638; padding-bottom: 12px; margin-bottom: 16px; }
  #cp-print-sheet .ps-brand { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 27px; color: #0e2638; }
  #cp-print-sheet .ps-brand b { font-weight: 500; color: #9a6a1e; }
  #cp-print-sheet .ps-tag { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #7d5314; margin-top: 6px; }
  #cp-print-sheet .ps-title { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 22px; color: #0e2638; }
  #cp-print-sheet .ps-note { font-family: "IBM Plex Mono", monospace; font-size: 10px; color: #6f6a60; margin: 3px 0 14px; }
  #cp-print-sheet .ps-timeline { list-style: none; }
  #cp-print-sheet .ps-stop { display: grid; grid-template-columns: 118px 1fr; gap: 14px; padding: 8px 0; border-bottom: 1px solid #e3dccd; page-break-inside: avoid; break-inside: avoid; }
  #cp-print-sheet .ps-when { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: #7d5314; padding-top: 3px; }
  #cp-print-sheet .ps-phase { font-family: "IBM Plex Mono", monospace; font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #7d5314; }
  #cp-print-sheet .ps-body h3 { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 15px; color: #0e2638; margin: 3px 0; }
  #cp-print-sheet .ps-body p { font-size: 11.5px; line-height: 1.42; color: #34302a; }
  #cp-print-sheet .ps-insights { border-top: 2px solid #0e2638; padding-top: 12px; margin: 14px 0 16px; break-inside: avoid; }
  #cp-print-sheet .ps-insights p { font-size: 12px; line-height: 1.48; margin-bottom: 5px; }
  #cp-print-sheet .ps-insights strong { color: #0e2638; }
  /* Reset leaking site chrome (the sheet uses real <header>/<footer> elements). */
  #cp-print-sheet header, #cp-print-sheet footer { background: none !important; color: inherit; padding: 0; }
  #cp-print-sheet .ps-foot { text-align: center; background: none !important; border-top: 1px solid #cfc7b6; padding: 12px 0 0; margin-top: 6px; break-inside: avoid; }
  #cp-print-sheet .ps-foot-name { font-family: "Source Serif 4", Georgia, serif; font-size: 13px; color: #0e2638; }
  #cp-print-sheet .ps-foot-contact { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: #555; margin-top: 4px; }
}
