/* ==========================================================================
   Blueprint AI Training — "Blueprint Blue"
   Consulting-firm grammar in the BCG mold: white ground, inset rounded
   panels, pill buttons, serif display. Malaysian colors live in the
   gradient art, not in flags or flowers.
   Edit the tokens below to retune the whole site.
   ========================================================================== */

:root {
  /* Blue accent family */
  --blue-deep: #0b2161;      /* dark panels, footer bar */
  --blue-deeper: #06103a;    /* footer bottom bar */
  --blue: #1e40c9;           /* links, small accents (AA on white) */
  --blue-mid: #4f7df0;       /* gradient art only */
  --blue-soft: #7fa4ff;      /* gradient art only */
  --pill: #bcd2ff;           /* primary pill button ground */
  --pill-hover: #a7c3ff;
  --panel-light: #e4ecff;    /* light blue panel ground */

  --blue-royal: #1230a0;     /* gradient art endpoint */
  --blue-indigo: #10298c;    /* gradient art endpoint */

  /* Malaysian glints, gradient art only, never UI chrome */
  --glint-red: rgba(226, 59, 59, 0.4);
  --glint-amber: rgba(255, 179, 92, 0.45);
  --glint-red-soft: rgba(226, 59, 59, 0.22);
  --glint-amber-soft: rgba(255, 179, 92, 0.35);

  /* Neutral ground */
  --white: #ffffff;
  --paper: #f4f4f2;          /* light gray panels, upper footer */
  --silver: #d8d8d6;         /* hairlines */
  --slate: #4d4d4d;          /* secondary text */
  --ink: #1a1a1a;            /* text */

  /* Type */
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;

  --measure: 68ch;
  --container: 1280px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(2rem, 4vw, 3rem);

  --r-panel: 24px;
  --r-card: 16px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

/* ---------- Type roles ---------- */

.display {
  font-family: var(--font-serif);
  font-size: clamp(2.125rem, 3.8vw, 3.125rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.5rem, 4.6vw, 3.875rem); }

/* The dimensional word: the promise word extrudes in pill-blue steps.
   Hero only, one word per site. */
.dim {
  color: var(--blue-deep);
  text-shadow:
    0.018em 0.018em 0 var(--pill),
    0.036em 0.036em 0 var(--pill),
    0.054em 0.054em 0 var(--pill),
    0.072em 0.072em 0 var(--pill);
  animation: dim-pop 0.5s var(--ease-out) 0.7s both;
}
@keyframes dim-pop {
  from {
    color: var(--ink);
    text-shadow:
      0 0 0 var(--pill),
      0 0 0 var(--pill),
      0 0 0 var(--pill),
      0 0 0 var(--pill);
  }
}

/* Opening sequence: the statement settles from a blur, then the word pops */
.intro-rise { animation: intro-blur 0.75s var(--ease-out) both; }
@keyframes intro-blur {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.headline {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.title-serif {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.22;
  text-wrap: balance;
}
.title {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
}
.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--slate);
  max-width: 60ch;
}
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.label--blue { color: var(--blue); }
.label--slate { color: var(--slate); }
.label--light { color: rgba(255, 255, 255, 0.85); }

/* ---------- Layout primitives ---------- */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .label { display: block; margin-bottom: 0.9rem; }
.section-head .lede { margin-top: 1rem; }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* Feature head: the one section head per page allowed to break the
   eyebrow-plus-headline pattern. Centered display serif with a sweep. */
.section-head--feature { text-align: center; }
.section-head--feature h2 { max-width: 18ch; margin-inline: auto; }

/* The highlight sweep: a pill-blue marker stroke behind one phrase.
   At most one per page. */
.mark-sweep {
  position: relative;
  z-index: 0;
  font-style: italic;
  font-weight: 400;
  white-space: nowrap;
}
.mark-sweep::before {
  content: "";
  position: absolute;
  inset: 0.14em -0.2em -0.04em -0.16em;
  background: var(--pill);
  opacity: 0.55;
  border-radius: 0.35em;
  transform: rotate(-1.4deg);
  z-index: -1;
}
/* The sweep draws itself like a marker stroke when scrolled into view */
html.js [data-in] .mark-sweep::before {
  transform: scaleX(0) rotate(-1.4deg);
  transform-origin: 0 60%;
  transition: transform 0.55s var(--ease-out) 0.15s;
}
html.js [data-in].is-in .mark-sweep::before { transform: scaleX(1) rotate(-1.4deg); }

/* Centered page intro, the BCG opener */
.intro {
  text-align: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
}
.intro .label { display: block; margin-bottom: 1rem; }
.intro .display { max-width: 24ch; margin-inline: auto; }
.intro .display-xl { max-width: 22ch; }
.intro .lede { margin: 1.1rem auto 0; max-width: 52ch; }

/* ---------- Panels: the inset rounded blocks ---------- */

.panel {
  border-radius: var(--r-panel);
  overflow: hidden;
  position: relative;
}
.panel--deep { background: var(--blue-deep); color: var(--white); }
.panel--light { background: var(--panel-light); }
.panel--paper { background: var(--paper); }

.panel-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.5rem);
}
@media (max-width: 860px) { .panel-split { grid-template-columns: 1fr; } }
.panel-split .headline { max-width: 20ch; }
.panel-split p { max-width: 52ch; }
.panel--deep p { color: rgba(255, 255, 255, 0.85); }
.panel-split .btn { margin-top: 1.5rem; }

/* ---------- Gradient art (Malaysian colors live here) ---------- */

.art {
  background:
    radial-gradient(52% 68% at 82% 18%, var(--glint-amber), transparent 62%),
    radial-gradient(44% 60% at 12% 88%, var(--glint-red), transparent 60%),
    radial-gradient(70% 90% at 28% 22%, var(--blue-soft), transparent 70%),
    radial-gradient(80% 100% at 78% 78%, var(--blue-mid), transparent 72%),
    linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-royal) 55%, var(--blue-deep) 100%);
}
.art--soft {
  background:
    radial-gradient(50% 64% at 84% 20%, var(--glint-amber-soft), transparent 62%),
    radial-gradient(42% 58% at 10% 86%, var(--glint-red-soft), transparent 60%),
    radial-gradient(70% 90% at 30% 20%, rgba(127, 164, 255, 0.75), transparent 70%),
    radial-gradient(80% 100% at 76% 80%, rgba(79, 125, 240, 0.6), transparent 72%),
    linear-gradient(135deg, #dbe7ff 0%, #eef3ff 55%, #dbe7ff 100%);
}

/* ---------- Buttons: pills, the BCG way ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out),
              color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--pill { background: var(--pill); color: var(--blue-deep); }
.btn--pill:hover { background: var(--pill-hover); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--blue-deep); border-color: var(--white); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--blue);
  text-decoration: none;
}
.arrow-link .arrow { transition: transform 0.25s var(--ease-out); }
.arrow-link:hover .arrow { transform: translateX(4px); }

/* ---------- Chips ---------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--silver);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  border-radius: var(--r-pill);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.chip:hover { background: var(--paper); color: var(--ink); }
.chip.is-active { background: var(--blue-deep); color: var(--white); }
.chip--static { cursor: default; }
@media (max-width: 700px) { .chip-row { border-radius: var(--r-card); } }

/* Small tag chip on cards */
.tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink);
}
.tag--ghost { background: transparent; border: 1px solid var(--silver); color: var(--slate); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.site-header.is-scrolled {
  border-bottom-color: var(--silver);
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-mark {
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--blue);
  flex: 0 0 auto;
}
.brand strong { font-weight: 700; }
.brand span { font-weight: 400; color: var(--slate); }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--silver); }
.site-nav a[aria-current] { border-bottom-color: var(--blue); }
.site-nav .btn { padding: 0.6rem 1.2rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 76px 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--blue-deep);
    padding: 2.5rem var(--pad-x);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav a:not(.btn) {
    color: var(--white);
    font-size: 1.625rem;
    font-weight: 600;
    padding-block: 0.9rem;
    border-bottom: 0;
  }
  .site-nav a[aria-current] { color: var(--pill); }
  .site-nav .btn { margin-top: 2rem; padding: 0.85rem 1.6rem; }
  body.nav-locked { overflow: hidden; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero card (home) ---------- */

.hero-card {
  border-radius: var(--r-panel);
  min-height: min(62vh, 560px);
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 30%;
  animation: bg-settle 1.5s var(--ease-out) both;
}
@keyframes bg-settle {
  from { transform: scale(1.045); }
}
.hero-float {
  position: relative;
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  max-width: 420px;
  box-shadow: 0 18px 44px rgba(11, 33, 97, 0.22);
}
.hero-float .label { display: block; margin-bottom: 0.7rem; }
.hero-float h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.25;
}
.hero-float p { color: var(--slate); font-size: 0.9375rem; margin-top: 0.6rem; }
.hero-float .btn { margin-top: 1.25rem; }

.hero-card [data-rise] {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s var(--ease-out) 0.35s forwards;
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Strengths band (home) ----------
   One white band split by hairlines: mark, point, then a big serif
   numeral. Only truthful numbers live here (2 engineers, 0 coding). */

.strengths {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.strength {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 2.6vw, 2.4rem);
  border-left: 1px solid var(--silver);
}
.strength:first-child { border-left: 0; }
.strength-icon {
  width: 30px;
  height: 30px;
  color: var(--blue);
  margin-bottom: 0.3rem;
}
.strength h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.strength > p { color: var(--slate); font-size: 0.9375rem; line-height: 1.55; }
.strength-stat {
  margin-top: auto;
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.strength-num {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 4.6vw, 4.25rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  background: linear-gradient(150deg, var(--blue-deep) 15%, var(--blue) 55%, var(--blue-mid) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strength-num small { font-size: 0.45em; font-weight: 500; }
.strength-num--word { font-size: clamp(2.125rem, 3vw, 2.875rem); line-height: 1; }
.strength-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  line-height: 1.35;
  max-width: 14ch;
}
@media (max-width: 1080px) {
  .strengths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strength:nth-child(odd) { border-left: 0; }
  .strength:nth-child(n+3) { border-top: 1px solid var(--silver); }
}
@media (max-width: 620px) {
  .strengths { grid-template-columns: 1fr; }
  .strength { border-left: 0; }
  .strength:nth-child(n+2) { border-top: 1px solid var(--silver); }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid--3 { grid-template-columns: 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--r-card);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
a.card:hover, .card--hover:hover { box-shadow: 0 14px 34px rgba(26, 26, 26, 0.12); transform: translateY(-3px); }
a.card:hover .arrow-link .arrow { transform: translateX(4px); }

.card-cover {
  aspect-ratio: 16 / 10;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 0.9rem;
}
.card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-cover .tag { position: relative; z-index: 1; }
.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.4rem;
  flex: 1;
}
.card-body .title { color: var(--ink); }
.card-body p { color: var(--slate); font-size: 0.9375rem; line-height: 1.55; }
.card-body .arrow-link { margin-top: auto; padding-top: 0.6rem; }
.card-meta { font-size: 0.8125rem; color: var(--slate); }

/* Per-card gradient covers, each course/article gets its own mix */
.cover-a {
  background:
    radial-gradient(60% 80% at 80% 20%, var(--glint-amber), transparent 60%),
    radial-gradient(70% 90% at 20% 80%, var(--blue-mid), transparent 70%),
    linear-gradient(135deg, var(--blue-deep), var(--blue-royal));
}
.cover-b {
  background:
    radial-gradient(56% 76% at 18% 22%, var(--glint-red), transparent 58%),
    radial-gradient(70% 90% at 80% 78%, var(--blue-soft), transparent 72%),
    linear-gradient(135deg, var(--blue-indigo), var(--blue-deep));
}
.cover-c {
  background:
    radial-gradient(58% 78% at 78% 76%, var(--glint-amber), transparent 60%),
    radial-gradient(64% 84% at 22% 24%, rgba(127, 164, 255, 0.85), transparent 68%),
    linear-gradient(135deg, var(--blue-royal), var(--blue-deep));
}

/* ---------- Workshop route (home) ----------
   The 2 day workshop as origin node on the white ground, routing out to
   department nodes on the right. Curves draw in when the section scrolls
   into view; three pulses travel the lines. Node positions are inline
   left/top percentages; the SVG curves (viewBox 160x100, same 8/5 aspect
   as the map box) are drawn to match. */

.route {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.route-intro .label { display: block; margin-bottom: 0.9rem; }
.route-intro .headline { max-width: 16ch; }
.route-intro p { color: var(--slate); margin-top: 1rem; max-width: 44ch; }
.route-intro .btn { margin-top: 1.5rem; }

.route-map { position: relative; aspect-ratio: 8 / 5; }
.route-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-map path {
  fill: none;
  stroke: var(--blue);
  stroke-opacity: 0.3;
  stroke-width: 0.45;
  stroke-linecap: round;
}
html.js .route-map path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
html.js .route-map.is-live path { stroke-dashoffset: 0; }
.route-map path:nth-of-type(2) { transition-delay: 0.06s; }
.route-map path:nth-of-type(3) { transition-delay: 0.12s; }
.route-map path:nth-of-type(4) { transition-delay: 0.18s; }
.route-map path:nth-of-type(5) { transition-delay: 0.24s; }
.route-map path:nth-of-type(6) { transition-delay: 0.3s; }
.route-map path:nth-of-type(7) { transition-delay: 0.36s; }
.route-map path:nth-of-type(8) { transition-delay: 0.42s; }
.route-map path:nth-of-type(9) { transition-delay: 0.48s; }

.route-map .pulse { fill: var(--blue-mid); opacity: 0; transition: opacity 0.6s var(--ease-out) 1.2s; }
.route-map.is-live .pulse { opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .route-map .pulse { display: none; }
}

.route-origin {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: var(--blue-deep);
  color: var(--white);
  border-radius: var(--r-card);
  padding: 1.25rem 1.4rem;
  max-width: 240px;
  box-shadow: 0 14px 34px rgba(11, 33, 97, 0.28);
}
.route-origin .label { display: block; margin-bottom: 0.5rem; }
.route-origin h3 { font-family: var(--font-serif); font-size: 1.1875rem; font-weight: 500; line-height: 1.25; }
.route-origin .arrow-link { color: var(--pill); font-size: 0.8125rem; margin-top: 0.7rem; }

.route-node {
  position: absolute;
  transform: translate(-50%, -5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.25;
  max-width: 110px;
}
.route-node::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 64, 201, 0.14);
}
html.js .route-node { opacity: 0; transition: opacity 0.55s var(--ease-out); }
html.js .route-map.is-live .route-node { opacity: 1; }
.route-node:nth-of-type(2) { transition-delay: 0.5s; }
.route-node:nth-of-type(3) { transition-delay: 0.57s; }
.route-node:nth-of-type(4) { transition-delay: 0.64s; }
.route-node:nth-of-type(5) { transition-delay: 0.71s; }
.route-node:nth-of-type(6) { transition-delay: 0.78s; }
.route-node:nth-of-type(7) { transition-delay: 0.85s; }
.route-node:nth-of-type(8) { transition-delay: 0.92s; }
.route-node:nth-of-type(9) { transition-delay: 0.99s; }
.route-node:nth-of-type(10) { transition-delay: 1.06s; }

.leaf-tag {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1080px) {
  .route { grid-template-columns: 1fr; }
  .route-map {
    aspect-ratio: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-content: flex-start;
  }
  .route-map svg { display: none; }
  .route-origin { position: static; transform: none; max-width: none; width: 100%; margin-bottom: 0.5rem; }
  .route-node {
    position: static;
    transform: none;
    flex-direction: row;
    gap: 0.5rem;
    max-width: none;
    border: 1px solid var(--silver);
    border-radius: var(--r-pill);
    padding: 0.45rem 0.95rem;
  }
  .route-node::before { width: 8px; height: 8px; box-shadow: none; }
  /* The draw-in is a desktop moment; the chip cloud is always visible */
  html.js .route-node { opacity: 1; transition: none; }
}

/* ---------- Client logo grid (home) ---------- */

.logo-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}
.logo-tile {
  flex: 0 0 calc((100% - 3 * 1.25rem) / 4);
  background: var(--paper);
  border-radius: var(--r-card);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}
.logo-tile img { max-width: 100%; max-height: min(100%, 104px); object-fit: contain; }
/* Tiles arrive as a list: tight stagger, capped around 300ms total */
html.js .logo-grid .logo-tile {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 55ms);
}
html.js .logo-grid.is-in .logo-tile { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .logo-tile { flex-basis: calc((100% - 2 * 1.25rem) / 3); }
}
@media (max-width: 620px) {
  .logo-grid { gap: 0.75rem; }
  .logo-tile { flex-basis: calc((100% - 0.75rem) / 2); }
}

/* ---------- Insights mosaic (home) ---------- */

.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(240px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
}
.mosaic-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  min-height: 260px;
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.mosaic-card--tall { grid-row: span 2; min-height: 420px; }
@media (max-width: 900px) { .mosaic-card--tall { grid-row: auto; min-height: 320px; } }
.mosaic-card > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.mosaic-card:hover > img { transform: scale(1.03); }
.mosaic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgba(11, 33, 97, 0.05) 30%, rgba(11, 33, 97, 0.78) 100%);
}
.mosaic-card .label { margin-bottom: 0.75rem; }
.mosaic-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  max-width: 22ch;
  text-wrap: balance;
}
.mosaic-card .btn { margin-top: 1.4rem; align-self: flex-start; }
.mosaic-card--dark::after { background: none; }

/* ---------- Facts row (workshop) ---------- */

.facts-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* ---------- Curriculum (workshop) ---------- */

.days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 860px) { .days { grid-template-columns: 1fr; } }
.day {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: var(--r-card);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 3px solid var(--blue);
  margin-bottom: 0.4rem;
}
.day-head h3 { font-family: var(--font-serif); font-size: 1.625rem; font-weight: 500; }
.day-head .label { color: var(--slate); }
.day ol { list-style: none; }
.day ol li { padding-block: 1rem; border-top: 1px solid var(--silver); }
.day ol li:first-child { border-top: 0; }
.day h4 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.25rem; }
.day p { font-size: 0.9375rem; color: var(--slate); }

.outcomes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 3rem;
  max-width: 980px;
}
@media (max-width: 760px) { .outcomes { grid-template-columns: 1fr; } }
.outcomes li { display: flex; gap: 1rem; align-items: flex-start; }
.outcomes li::before {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--blue);
  margin-top: 0.55em;
}
.outcomes strong { display: block; font-weight: 600; }
.outcomes span { color: var(--slate); font-size: 0.9375rem; }

/* ---------- Article pages ---------- */

.article-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2rem); }
.article-head .tag--ghost { margin-bottom: 1.1rem; }
.article-head .display { max-width: 26ch; }
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate);
}
.byline strong { color: var(--ink); font-weight: 600; }

.article-banner {
  border-radius: var(--r-panel);
  min-height: clamp(180px, 26vw, 300px);
}

.article-body { padding-block: clamp(2.5rem, 5vw, 4rem); }
.article-body .prose { max-width: var(--measure); margin-inline: auto; }
.prose p { margin-bottom: 1.4rem; }
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.22;
  margin: 2.6rem 0 1rem;
  text-wrap: balance;
}
.prose .pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.42;
  color: var(--blue-deep);
  padding: 0.4rem 0 0.4rem 1.6rem;
  border-left: 1px solid var(--blue);
  margin: 2.4rem 0;
}
.author-note {
  max-width: var(--measure);
  margin: 3rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--silver);
  font-size: 0.9375rem;
  color: var(--slate);
}
.author-note strong { color: var(--ink); }
.author-note a { color: var(--blue); }

/* ---------- Profiles (about) ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 820px) { .profile-grid { grid-template-columns: 1fr; } }
.profile {
  border: 1px solid var(--silver);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--white);
}
.profile-portrait {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.profile-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-initials {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}
.profile-portrait .photo-note {
  position: absolute;
  bottom: 0.9rem; right: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.profile-body { padding: 1.6rem; }
.profile-body h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; }
.profile-body .role { color: var(--blue); font-size: 0.875rem; font-weight: 600; margin-top: 0.2rem; }
.profile-body p { color: var(--slate); font-size: 0.9375rem; margin-top: 0.9rem; }

/* ---------- Split with media card ---------- */

.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) { .media-split { grid-template-columns: 1fr; } }
.media-split .media {
  border-radius: var(--r-panel);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.media-split .media img { width: 100%; height: 100%; object-fit: cover; }
.media-split .label { display: block; margin-bottom: 0.9rem; }
.media-split p { margin-top: 1rem; max-width: 50ch; color: var(--slate); }
.media-split .btn { margin-top: 1.5rem; }

/* ---------- Footer ---------- */

.site-footer { margin-top: var(--section-y); }
.footer-main {
  background: var(--paper);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3rem 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-mission { margin-top: 1rem; max-width: 38ch; color: var(--slate); font-size: 0.9375rem; }
.site-footer h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-main a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.footer-main a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.footer-bar { background: var(--blue-deeper); color: rgba(255, 255, 255, 0.75); }
.footer-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.25rem;
  font-size: 0.8125rem;
}
.footer-bar .brand { color: var(--white); font-size: 0.9375rem; }
.footer-bar .brand span { color: rgba(255, 255, 255, 0.6); }
