/* Inter (body) + IBM Plex Sans Arabic (bilingual) via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600&display=swap');

/* CODED_TYPE - self-hosted, same source as coded.kw (framerusercontent.com) */
@font-face {
  font-family: 'CODED_TYPE';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('brand/fonts/CODED_TYPE-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'CODED_TYPE';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('brand/fonts/CODED_TYPE-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'CODED_TYPE';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('brand/fonts/CODED_TYPE-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'CODED_TYPE';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('brand/fonts/CODED_TYPE-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'CODED_TYPE';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('brand/fonts/CODED_TYPE-Bold.woff2') format('woff2');
}

/* CODED, Open Programs landing page
 * Font stack matches coded.kw exactly: CODED_TYPE display + Inter body.
 * Outfit removed; CODED_TYPE replaces it at every display usage site.
 * Tokens consolidated here so a future Next.js + Tailwind migration can map 1:1.
 */

:root {
  /* Light palette, matched to coded.kw/companies (navy #14243F on white,
   * #E4EAF2 hairline borders, royal blue accents). Brand-book royal #012891
   * stays as the primary CTA / signal color. */
  --bg-base: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-soft: #F4F7FB;       /* subtle wash for alternating sections */

  --brand-navy: #14243F;     /* coded.kw heading colour, used for body H1/H2 */
  --brand-navy-deep: #0C1B33;
  --brand-royal: #012891;
  --brand-royal-soft: rgba(1, 40, 145, 0.08);
  --brand-cool-white: #F3F7FF;

  --border: #E4EAF2;          /* coded.kw hairline border */
  --border-strong: #CBD5E5;

  /* Text */
  --text-primary: #14243F;
  --text-secondary: #475569;
  --text-muted: #667085;

  /* Accent, royal blue from the brand book */
  --accent: #012891;
  --accent-hover: #1A40B0;
  --accent-soft: rgba(1, 40, 145, 0.08);
  --accent-ring: rgba(1, 40, 145, 0.30);
  --accent-ink: #FFFFFF;

  /* Topic colors, calibrated for white bg (dark text on soft tinted bg) */
  --topic-ai: #1A40B0;
  --topic-cyber: #B91C1C;
  --topic-fullstack: #6D28D9;
  --topic-automation: #047857;
  --topic-leadership: #B45309;

  /* Layout */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --maxw: 1200px;
  --container-pad: 24px;

  /* Spacing rhythm (4 steps, used everywhere) */
  --s-1: 24px;
  --s-2: 48px;
  --s-3: 80px;
  --s-4: 120px;

  /* Type — exact coded.kw stack: CODED_TYPE display + Inter body */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "CODED_TYPE", "Inter", -apple-system, sans-serif;

  /* Section colors */
  --bg-section-soft: #FCFCFC;
  --curriculum-navy: #192C4D;

  /* Motion */
  --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-med:  280ms;
  --t-slow: 600ms;
}

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

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ------------ Container ------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ------------ Header / Nav ------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 3px rgba(20, 36, 63, 0.06), 0 1px 2px rgba(20, 36, 63, 0.04);
  background: rgba(255, 255, 255, 0.96);
}
.brand img { transition: opacity var(--t-fast) var(--ease); }
.brand:hover img { opacity: 0.78; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.brand img {
  height: 36px;
  width: auto;
  display: block;
  /* SVG ships in brand navy — perfect for the light page chrome.
   * On the dark hero we invert it to white via the override below. */
}
.brand-text {
  /* hidden visually, logo image carries the wordmark */
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--text-primary); }
.nav a.active { color: var(--text-primary); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.nav-cta:hover {
  background: var(--brand-navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 36, 63, 0.16);
}
.nav-cta:active { transform: translateY(0); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border-strong); border-radius: 8px; color: var(--text-primary); padding: 8px; }

/* ------------ Hero ------------ */
.hero {
  position: relative;
  padding: var(--s-4) 0 var(--s-3);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }

/* Echo circle pattern, centered behind hero text */
.hero-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(380px, 64vw, 780px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0;
  animation: heroCirclesFadeIn 2s var(--ease) 0.3s forwards;
}
@keyframes heroCirclesFadeIn {
  from { opacity: 0; }
  to   { opacity: 0.09; }
}

/* Bracket entrance wrapper: slides in from the side */
.hero-bracket-wrap {
  position: absolute;
  top: 50%;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  opacity: 0;
}
.hero-bracket-wrap--left {
  left: clamp(8px, 14%, 200px);
  transform: translate(-20px, -50%);
  animation: heroBracketWrapLeftIn 1.4s cubic-bezier(.2,.7,.2,1) 0.3s forwards;
}
.hero-bracket-wrap--right {
  right: clamp(8px, 14%, 200px);
  transform: translate(20px, -50%);
  animation: heroBracketWrapRightIn 1.4s cubic-bezier(.2,.7,.2,1) 0.3s forwards;
}
@keyframes heroBracketWrapLeftIn {
  from { opacity: 0; transform: translate(-20px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
@keyframes heroBracketWrapRightIn {
  from { opacity: 0; transform: translate(20px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}

/* Bracket image: keep the natural pose from the source render. Left side
 * uses the asset as-is; right side mirrors horizontally and sits slightly
 * larger. Continuous Y-float adds life without rotation. */
.hero-bracket {
  height: clamp(140px, 22vw, 260px);
  width: auto;
  display: block;
}
.hero-bracket--left {
  transform: translateY(0);
  animation: heroBracketFloatLeft 3.8s ease-in-out 1.8s infinite;
}
.hero-bracket--right {
  /* Mirror horizontally + scale up ~8% so it visually balances the left. */
  transform: scale(-1.08, 1.08) translateY(0);
  transform-origin: center center;
  animation: heroBracketFloatRight 3.8s ease-in-out 2.1s infinite;
}
@keyframes heroBracketFloatLeft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes heroBracketFloatRight {
  0%, 100% { transform: scale(-1.08, 1.08) translateY(0); }
  50%      { transform: scale(-1.08, 1.08) translateY(-14px); }
}

@media (max-width: 1024px) {
  .hero-bracket { height: clamp(110px, 18vw, 200px); }
  .hero-bracket-wrap--left  { left: 4%; }
  .hero-bracket-wrap--right { right: 4%; }
  .hero-circles { opacity: 0.08; animation: none; }
}
@media (max-width: 720px) {
  .hero-bracket { height: 88px; }
  /* Shift brackets up from 50% to ~33% so they align with the h1,
     not the lede paragraph below it */
  .hero-bracket-wrap       { top: 33%; }
  .hero-bracket-wrap--left  { left: 1%; }
  .hero-bracket-wrap--right { right: 1%; }
  .hero-bracket--left  { animation: heroBracketFloatLeft  3.8s ease-in-out 1.8s infinite; }
  .hero-bracket--right { animation: heroBracketFloatRight 3.8s ease-in-out 2.1s infinite; }
  .hero-circles { width: 340px; opacity: 0.07; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bracket-wrap { animation: none !important; opacity: 1 !important; transform: translateY(-50%) !important; }
  .hero-bracket--left, .hero-bracket--right { animation: none !important; }
  .hero-circles { animation: none !important; opacity: 0.09; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before { content: "["; color: var(--accent); margin-right: 8px; font-weight: 400; }
.eyebrow::after  { content: "]"; color: var(--accent); margin-left: 8px;  font-weight: 400; }
.eyebrow .dot { display: none; } /* superseded by bracket framing */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--brand-royal);
  margin: 18px 0 16px;
}
.hero h1 .accent { color: var(--accent); }
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}
.hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  color: var(--text-muted);
  font-size: 13px;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .pip { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* ------------ Intro band ------------ */
.intro-band {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: var(--s-3) 0;
  overflow: hidden;
}
.intro-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.intro-card h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.intro-card p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }

/* ------------ Filter bar ------------ */
.filters {
  position: sticky;
  top: 68px;
  z-index: 40;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  /* solid surface, no double-blur */
}
.filters__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
}

/* ------------ Search bar ------------ */
.filter-search-row {
  padding: 16px 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Filters toggle pill, mobile-only entry into the filter drawer */
.filters-toggle { display: none; }
.filters-toggle:hover { border-color: var(--text-secondary); background: var(--bg-soft); }
.filters-toggle .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}
.filters-toggle .count[hidden] { display: none; }

/* Drawer chrome, invisible on desktop, takes over on mobile */
.filters-drawer-head, .filters-drawer-foot { display: none; }
.filters__backdrop { display: none; }

.filter-search {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: text;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.filter-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.filter-search__icon { color: var(--text-muted); flex-shrink: 0; }
.filter-search:focus-within .filter-search__icon { color: var(--accent); }
.filter-search input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  padding: 0;
  height: 100%;
}
.filter-search input:focus { outline: none; }
.filter-search input::placeholder { color: var(--text-muted); }
.filter-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.filter-search__clear {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 22px;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.filter-search__clear:hover { color: var(--text-primary); background: var(--bg-soft); }
.filter-group {
  position: relative;
}
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg-base);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.filter-button:hover { border-color: var(--text-secondary); background: var(--bg-soft); }
.filter-button .chev { transition: transform var(--t-fast) var(--ease); display: inline-flex; }
.filter-group.open .filter-button { border-color: var(--accent); }
.filter-group.open .filter-button .chev { transform: rotate(180deg); }
.filter-button.has-active { border-color: var(--accent); background: var(--brand-royal-soft); }
.filter-button.has-active span:first-child { color: var(--accent); }
.chip { transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.chip:hover { background: var(--bg-base); border-color: var(--border-strong); }
.filter-button .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
/* Bug fix: [hidden] was being overridden by display:inline-flex above,
   so the per-filter count badge stayed visible after the filter cleared. */
.filter-button .count[hidden] { display: none; }
.filter-button .chev { opacity: 0.6; transition: transform var(--t-fast) var(--ease); }
.filter-group.open .filter-button .chev { transform: rotate(180deg); }
.filter-group.open .filter-button { border-color: var(--accent); background: var(--bg-input); }

.filter-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 12px 32px rgba(20, 36, 63, 0.10), 0 2px 6px rgba(20, 36, 63, 0.06);
  z-index: 50;
  display: none;
}
.filter-group.open .filter-popover { display: block; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-option:hover { background: var(--bg-soft); color: var(--text-primary); }
.filter-option input { accent-color: var(--accent); width: 15px; height: 15px; }
.filter-option.checked { color: var(--text-primary); font-weight: 500; }

.filter-clear {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  padding: 8px 4px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.filter-clear:hover { color: var(--accent); }
.filter-results {
  font-size: 13px;
  color: var(--text-muted);
}

/* Active filter chips */
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 0 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
.chip button { background: transparent; color: var(--text-muted); border: 0; padding: 2px 4px; border-radius: 4px; line-height: 1; font-size: 14px; cursor: pointer; }
.chip button:hover { color: var(--text-primary); background: var(--bg-base); }

/* ------------ Card grid ------------ */
.grid-section { padding: 36px 0 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color var(--t-fast) var(--ease),
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
  scroll-margin-top: 140px;
}
.card__hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px -8px rgba(20, 36, 63, 0.10),
    0 2px 4px rgba(20, 36, 63, 0.04);
}
.card:focus-within { border-color: var(--accent); }
.card__title { transition: color var(--t-fast) var(--ease); }
.card:hover .card__title { color: var(--accent); }
.card__price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  align-self: flex-start;
}
.card__price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
  /* No pill background, type-only like Stripe pricing */
}
.card__price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #166534;
  background: #F0FDF4;
  border: 1px solid #C8EFD4;
  padding: 3px 8px 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.card__price-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
}
/* removed inner glowing ring; single hover signal via border above */

.card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.card__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
}
.card__one-liner {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.card__meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.card__meta svg { color: var(--text-muted); flex-shrink: 0; }
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  align-self: flex-start;
  position: relative;
}
.card__cta .arrow {
  display: inline-flex;
  transition: transform var(--t-med) var(--ease-out);
}
.card:hover .card__cta .arrow { transform: translateX(5px); }

/* ------------ Simplified filter bar (quick chips) ------------ */
.filters--simple .filter-search-row {
  padding: 16px 0 10px;
}
.filters--simple .filter-search {
  flex: 1;
}
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
}
.quick-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 7px 13px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-base);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.quick-chip svg { color: var(--text-muted); flex-shrink: 0; }
.quick-chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  background: var(--bg-soft);
}
.quick-chip:hover svg { color: var(--text-secondary); }
.quick-chip.is-active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.quick-chip.is-active svg { color: #FFFFFF; }
.quick-chip--reset {
  margin-left: auto;
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
}
.quick-chip--reset:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
  border-color: var(--border);
}

@media (max-width: 720px) {
  .quick-chip--reset { margin-left: 0; }
}

/* ------------ Helper chat (program finder) ------------
 * Floating launcher in the bottom-right corner. Click expands a chat-style
 * panel. Three quick questions, each shown as bot bubble + user-clickable
 * option chips. Mapped to the existing filter state, applied on Done.
 */
.helper-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.helper-chat[data-active="true"] { pointer-events: auto; }
.helper-chat[data-active="false"] .helper-chat__launcher { opacity: 0; transform: translateY(8px); }

.helper-chat__launcher {
  position: relative;
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #FFFFFF;
  padding: 11px 16px 11px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 4px 12px -4px rgba(20, 36, 63, 0.20);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), background var(--t-fast) var(--ease);
  font-family: inherit;
}
.helper-chat__launcher:hover { background: var(--accent-hover); }
.helper-chat__launcher svg { flex-shrink: 0; }
.helper-chat__launcher-label {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.helper-chat__launcher-label strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.helper-chat__launcher-label small {
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.85;
}
/* Pulsing ring to draw attention */
.helper-chat__launcher-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: hc-pulse 2.4s ease-out infinite;
}
@keyframes hc-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.15); }
}
.helper-chat[data-open="true"] .helper-chat__launcher-pulse { animation: none; opacity: 0; }

/* When the floating Grid/Schedule/Calendar toggle is visible, collapse the
 * launcher to icon-only so the two floating elements don't compete for the
 * same bottom-right real estate. Tooltip carries the meaning when collapsed. */
body:has(.view-toggle-floating.is-visible) .helper-chat:not([data-open="true"]) .helper-chat__launcher {
  padding: 12px;
  gap: 0;
  width: 44px;
  height: 44px;
  justify-content: center;
}
body:has(.view-toggle-floating.is-visible) .helper-chat:not([data-open="true"]) .helper-chat__launcher-label {
  display: none;
}
body:has(.view-toggle-floating.is-visible) .helper-chat:not([data-open="true"]) .helper-chat__launcher svg {
  width: 20px;
  height: 20px;
}

/* Panel */
.helper-chat__panel {
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: min(560px, calc(100vh - 120px));
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 24px 60px -16px rgba(20, 36, 63, 0.25),
    0 8px 16px -4px rgba(20, 36, 63, 0.08);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: hc-pop-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.helper-chat[data-open="true"] .helper-chat__panel {
  display: flex;
}
@keyframes hc-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.helper-chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--accent);
  color: #FFFFFF;
}
.helper-chat__head-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.helper-chat__head-text { flex: 1; min-width: 0; }
.helper-chat__head-text h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.helper-chat__head-text p {
  margin: 1px 0 0;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.85;
}
.helper-chat__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.helper-chat__close:hover { background: rgba(255, 255, 255, 0.14); color: #FFFFFF; }

.helper-chat__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.chat-msg {
  display: flex;
  max-width: 88%;
}
.chat-msg p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 9px 13px;
  border-radius: 14px;
}
.chat-msg--bot {
  align-self: flex-start;
}
.chat-msg--bot p {
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
}
.chat-msg--user {
  align-self: flex-end;
}
.chat-msg--user p {
  background: var(--accent);
  color: #FFFFFF;
  border-top-right-radius: 4px;
}

.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 4px;
}
.helper-chat__option {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-base);
  color: var(--text-primary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  font-family: inherit;
}
.helper-chat__option:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.helper-chat__option:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

.helper-chat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}
.helper-chat__btn {
  appearance: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.helper-chat__btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.helper-chat__btn--primary:hover {
  background: var(--accent-hover);
}
.helper-chat__btn--ghost {
  background: transparent;
  color: var(--text-muted);
}
.helper-chat__btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-soft);
}

/* Hide chat on detail pages and other views */
body.has-catalog .helper-chat,
body.is-detail .helper-chat,
body.is-enterprise .helper-chat {
  display: none;
}

@media (max-width: 720px) {
  .helper-chat { bottom: 12px; right: 12px; left: 12px; align-items: stretch; }
  .helper-chat__launcher { align-self: flex-end; }
  .helper-chat__launcher-label small { display: none; }
  .helper-chat__panel { width: 100%; max-width: 100%; }
}

/* ------------ Results header + view toggle (Grid / Calendar) ------------ */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.view-toggle {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  gap: 2px;
}
.view-toggle__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.view-toggle__btn svg { flex-shrink: 0; opacity: 0.85; }
.view-toggle__btn:hover { color: var(--text-primary); }
.view-toggle__btn.is-active {
  background: var(--bg-base);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(20, 36, 63, 0.08), 0 1px 0 rgba(20, 36, 63, 0.04);
}
.view-toggle__btn.is-active svg { opacity: 1; }

/* ── Floating view toggle ───────────────────────────────────────────
   A duplicate of .view-toggle pinned to bottom-center, only visible
   while the user is scrolled into the programs grid. Sized up for
   thumb-reach + presence. */
.view-toggle-floating {
  /* Temporarily hidden — site is schedule-only for now. To re-enable,
   * remove this display:none and restore the previous getViewMode()
   * in assets/app.js so the toggle can switch grid/calendar. */
  display: none !important;
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 24px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 320ms var(--ease-out),
    opacity 220ms var(--ease);
  /* iOS safe-area inset so the bar clears the home indicator */
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.view-toggle-floating.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.view-toggle--lg {
  padding: 6px;
  border-radius: 14px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 36, 63, 0.10);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 14px 40px -10px rgba(20, 36, 63, 0.22),
    0 4px 12px -2px rgba(20, 36, 63, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.view-toggle--lg .view-toggle__btn {
  font-size: 15px;
  font-weight: 600;
  padding: 11px 22px;
  gap: 9px;
  border-radius: 10px;
  color: var(--text-secondary);
}
.view-toggle--lg .view-toggle__btn svg {
  width: 17px;
  height: 17px;
  opacity: 0.95;
}
.view-toggle--lg .view-toggle__btn:hover {
  color: var(--text-primary);
  background: rgba(1, 40, 145, 0.04);
}
.view-toggle--lg .view-toggle__btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(1, 40, 145, 0.10), inset 0 0 0 1px rgba(1, 40, 145, 0.06);
}

@media (max-width: 640px) {
  .view-toggle-floating { left: 12px; right: 12px; transform: translateY(24px); }
  .view-toggle-floating.is-visible { transform: translateY(0); }
  .view-toggle--lg { width: 100%; justify-content: space-between; }
  .view-toggle--lg .view-toggle__btn { flex: 1; justify-content: center; padding: 12px 8px; font-size: 14px; }
  .view-toggle--lg .view-toggle__btn span { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .view-toggle-floating { transition: opacity 0ms; }
}

/* ------------ Per-program icon tile (used in card head + calendar row) -- */
.prog-icon {
  --picon-bg: var(--card-accent-soft, #F1F5FB);
  --picon-fg: var(--card-accent-deep, #475569);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--picon-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--picon-fg);
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--card-accent, #94A3B8) 18%, transparent);
  transition: transform var(--t-med) var(--ease-out);
}
.prog-icon svg { width: 24px; height: 24px; display: block; }
.prog-icon[data-brand="true"] {
  background: #FFFFFF;
  border-color: var(--border);
}

/* ------------ B2B catalog program card (modern) ------------
 * Topic-themed accent strip + larger title + visible one-liner +
 * spec-sheet stat blocks + animated CTA. Each card derives its
 * accent color from data-topic, themed below.
 */
.card--program {
  --card-accent: #94A3B8;
  --card-accent-soft: #F1F5FB;
  --card-accent-deep: #475569;
  position: relative;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 22px 18px;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--t-fast) var(--ease),
    transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
}
/* Top accent strip — flat solid topic color, thin and quiet. */
.card--program::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-accent);
  opacity: 0.9;
  transition: opacity var(--t-fast) var(--ease), height var(--t-fast) var(--ease);
  z-index: 2;
}
.card--program::after { content: none; }
.card--program > * { position: relative; z-index: 1; }
.card--program .card__hit { z-index: 1; }

.card--program:hover {
  border-color: var(--card-accent);
  transform: translateY(-4px);
  box-shadow:
    0 18px 32px -12px rgba(20, 36, 63, 0.16),
    0 4px 8px -2px rgba(20, 36, 63, 0.06);
}
.card--program:hover::before { opacity: 1; height: 4px; }
.card--program:hover::after  { opacity: 0.85; }
.card--program:focus-within { border-color: var(--card-accent); }
.card--program:hover .card__title { color: var(--card-accent-deep); }

/* Header row: program icon (left) + format badge (right) */
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.card--program:hover .prog-icon { transform: scale(1.04) rotate(-1.5deg); }

.card__topic {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-accent-deep);
  background: var(--card-accent-soft);
  border: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
  padding: 5px 10px 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: flex-start;
  margin-top: -2px;
}
.card__topic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent) 22%, transparent);
  flex-shrink: 0;
}
.card__format {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* Title + one-liner */
.card--program .card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 2px 0 0;
  color: var(--text-primary);
  transition: color var(--t-fast) var(--ease);
}
.card__lede {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Stat row — labels above values, with a subtle vertical divider between */
.card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 8px 0 4px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.card__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 14px;
  border-left: 1px solid var(--border);
}
.card__stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.card__stat:last-child {
  padding-right: 0;
}
.card__stat dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.card__stat dd {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
}
.card__stat dd span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.card__stat dd svg { color: var(--card-accent); flex-shrink: 0; }

/* Actions row */
.card--program .card__actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.card__inquire {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.card__inquire:hover {
  background: var(--accent-hover);
}
.card--program .card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--card-accent-deep);
}
.card__cta-arrow {
  display: inline-flex;
  transition: transform var(--t-med) var(--ease-out);
}
.card--program:hover .card__cta-arrow { transform: translateX(4px); }

/* ── Topic theming ──────────────────────────────────────────────────────── */
.card--program[data-topic="Data Science & Analysis"] {
  --card-accent: #2F5CE0; --card-accent-soft: #EEF3FE; --card-accent-deep: #1A40B0;
}
.card--program[data-topic="Cybersecurity"] {
  --card-accent: #DC2626; --card-accent-soft: #FEF2F2; --card-accent-deep: #B91C1C;
}
.card--program[data-topic="Agentic AI"] {
  --card-accent: #8B5CF6; --card-accent-soft: #F4EFFE; --card-accent-deep: #6D28D9;
}
.card--program[data-topic="AI Automation"] {
  --card-accent: #10B981; --card-accent-soft: #ECFDF5; --card-accent-deep: #047857;
}
.card--program[data-topic="AI Productivity"] {
  --card-accent: #D97706; --card-accent-soft: #FEF6E7; --card-accent-deep: #B45309;
}
.card--program[data-topic="Project Management & Agile"] {
  --card-accent: #22C55E; --card-accent-soft: #F0FDF4; --card-accent-deep: #166534;
}

@media (max-width: 720px) {
  .card--program { padding: 18px 18px 16px; }
  .card--program .card__title { font-size: 18px; }
  .card__stats { padding: 10px 12px; }
  .card__stat { padding: 0 10px; }
}

/* ------------ Calendar (agenda) view ------------
 * Programs grouped by start month. Each row is a single horizontal line
 * with date · icon · name · meta · days-left FOMO chip · inquire.
 * Uses the same per-topic color tokens as the cards.
 */
.schedule-view {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.cal-month {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cal-month__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cal-month__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  font-family: var(--font-display);
}
.cal-month__count {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-row {
  --card-accent: #94A3B8;
  --card-accent-soft: #F1F5FB;
  --card-accent-deep: #475569;
  position: relative;
  display: grid;
  grid-template-columns: 64px 44px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 12px;
  isolation: isolate;
  overflow: hidden;
  transition:
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out);
}
/* Topic-themed left accent bar — small but expressive */
.cal-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--card-accent);
  opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease), width var(--t-med) var(--ease-out);
}
.cal-row:hover {
  border-color: var(--card-accent);
  transform: translateX(2px);
  box-shadow:
    0 8px 18px -8px rgba(20, 36, 63, 0.10),
    0 2px 4px -2px rgba(20, 36, 63, 0.04);
}
.cal-row:hover::before { opacity: 1; width: 4px; }
.cal-row:hover .prog-icon { transform: scale(1.06) rotate(-2deg); }

.cal-row > * { position: relative; z-index: 1; }
.cal-row > .cal-row__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Date column */
.cal-row__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.05;
}
.cal-row__day {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand-navy);
  letter-spacing: -0.03em;
  font-family: var(--font-display);
}
.cal-row__dow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Body column: title row + meta row */
.cal-row__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cal-row__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}
.cal-row__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color var(--t-fast) var(--ease);
  min-width: 0;
}
.cal-row:hover .cal-row__title { color: var(--card-accent-deep); }

.cal-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.cal-row__sep { color: var(--border-strong); }
.cal-row__topic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-accent-deep);
  white-space: nowrap;
}
.cal-row__topic-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--card-accent) 22%, transparent);
}

/* FOMO chip: days-left with urgency tier */
.cal-row__fomo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding: 4px 11px 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.cal-row__fomo-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.95;
}
/* Urgency tiers */
.cal-row__fomo[data-urgency="now"] {
  color: #B91C1C;
  background: #FEF2F2;
  border-color: #FCDADA;
}
.cal-row__fomo[data-urgency="now"] .cal-row__fomo-pulse {
  animation: fomo-pulse 1.4s ease-in-out infinite;
}
.cal-row__fomo[data-urgency="soon"] {
  color: #B45309;
  background: #FEF6E7;
  border-color: #FCE7B5;
}
.cal-row__fomo[data-urgency="soon"] .cal-row__fomo-pulse {
  animation: fomo-pulse 1.8s ease-in-out infinite;
}
.cal-row__fomo[data-urgency="warm"] {
  color: #166534;
  background: #F0FDF4;
  border-color: #C8EFD4;
}
.cal-row__fomo[data-urgency="calm"] {
  color: #1A40B0;
  background: #EEF3FE;
  border-color: #DCE6FB;
}
.cal-row__fomo[data-urgency="past"] {
  color: var(--text-muted);
  background: var(--bg-soft);
  border-color: var(--border);
}
@keyframes fomo-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

/* Actions column */
.cal-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-row__inquire {
  position: relative;
  z-index: 2;
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.cal-row__inquire:hover {
  background: var(--accent-hover);
}
.cal-row__arrow {
  display: inline-flex;
  transition: transform var(--t-med) var(--ease-out);
}
.cal-row:hover .cal-row__arrow { transform: translateX(3px); }

/* Per-topic theming for calendar rows — reuse card tokens */
.cal-row[data-topic="Data Science & Analysis"] {
  --card-accent: #2F5CE0; --card-accent-soft: #EEF3FE; --card-accent-deep: #1A40B0;
}
.cal-row[data-topic="Cybersecurity"] {
  --card-accent: #DC2626; --card-accent-soft: #FEF2F2; --card-accent-deep: #B91C1C;
}
.cal-row[data-topic="Agentic AI"] {
  --card-accent: #8B5CF6; --card-accent-soft: #F4EFFE; --card-accent-deep: #6D28D9;
}
.cal-row[data-topic="AI Automation"] {
  --card-accent: #10B981; --card-accent-soft: #ECFDF5; --card-accent-deep: #047857;
}
.cal-row[data-topic="AI Productivity"] {
  --card-accent: #D97706; --card-accent-soft: #FEF6E7; --card-accent-deep: #B45309;
}
.cal-row[data-topic="Project Management & Agile"] {
  --card-accent: #22C55E; --card-accent-soft: #F0FDF4; --card-accent-deep: #166534;
}

/* Responsive — calendar rows collapse gracefully */
@media (max-width: 720px) {
  .cal-row {
    grid-template-columns: 52px 40px 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 12px 14px;
  }
  .cal-row__day { font-size: 22px; }
  .cal-row__title { font-size: 15px; }
  .cal-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 2px;
  }
  .cal-month__title { font-size: 22px; }
}

/* ============================================================
   Month Calendar (actual 6×7 grid with spanning event bars)
   ============================================================ */
.month-cal-view {
  display: block;
}
.month-cal {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.month-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.month-cal__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.month-cal__navbtn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-base);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.month-cal__navbtn:hover {
  background: var(--bg-base);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}
.month-cal__title {
  margin: 0 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  font-family: var(--font-display);
}
.month-cal__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.month-cal__today {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-base);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.month-cal__today:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.month-cal__count {
  font-size: 12.5px;
  color: var(--text-muted);
}

.month-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
}
.month-cal__weekdays span {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-right: 1px solid var(--border);
}
.month-cal__weekdays span:last-child { border-right: 0; }

.month-cal__weeks {
  display: flex;
  flex-direction: column;
}

/* Each week is its own grid. Row 1 = day numbers; rows 2..N = event lanes. */
.mcal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 22px;
  grid-template-rows: 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-bottom: 6px;
  min-height: 96px;
}
.mcal-week:last-child { border-bottom: 0; }

.mcal-day {
  grid-row: 1;
  padding: 6px 10px 4px;
  font-size: 12px;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
  position: relative;
}
.mcal-day:nth-child(7n) { border-right: 0; }
.mcal-day__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
}
.mcal-day--out { background: var(--bg-soft); }
.mcal-day--out .mcal-day__num { color: var(--text-muted); opacity: 0.55; }
.mcal-day--past .mcal-day__num { color: var(--text-muted); }
.mcal-day--today .mcal-day__num {
  background: var(--accent);
  color: #FFFFFF;
}

/* Background fill for the full week row under day cells */
.mcal-week::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background:
    linear-gradient(to right,
      transparent calc(100%/7), var(--border) calc(100%/7),
      var(--border) calc(100%/7 + 1px), transparent calc(100%/7 + 1px),
      transparent calc(2 * 100%/7), var(--border) calc(2 * 100%/7),
      var(--border) calc(2 * 100%/7 + 1px), transparent calc(2 * 100%/7 + 1px),
      transparent calc(3 * 100%/7), var(--border) calc(3 * 100%/7),
      var(--border) calc(3 * 100%/7 + 1px), transparent calc(3 * 100%/7 + 1px),
      transparent calc(4 * 100%/7), var(--border) calc(4 * 100%/7),
      var(--border) calc(4 * 100%/7 + 1px), transparent calc(4 * 100%/7 + 1px),
      transparent calc(5 * 100%/7), var(--border) calc(5 * 100%/7),
      var(--border) calc(5 * 100%/7 + 1px), transparent calc(5 * 100%/7 + 1px),
      transparent calc(6 * 100%/7), var(--border) calc(6 * 100%/7),
      var(--border) calc(6 * 100%/7 + 1px), transparent calc(6 * 100%/7 + 1px));
  pointer-events: none;
  z-index: 0;
}

.mcal-bar {
  --bar-bg: #94A3B8;
  --bar-fg: #FFFFFF;
  grid-column: var(--col-start) / span var(--col-span);
  grid-row: calc(var(--lane) + 2);
  margin: 0 3px;
  padding: 3px 8px;
  background: var(--bar-bg);
  color: var(--bar-fg);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  position: relative;
  z-index: 1;
  line-height: 1.35;
}
.mcal-bar:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}
.mcal-bar--cont-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: 0;
  padding-left: 12px;
}
.mcal-bar--cont-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 0;
  padding-right: 12px;
}
/* Subtle notch indicator for continued bars */
.mcal-bar--cont-left::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 4px; height: 4px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translateY(-50%);
}
.mcal-bar--cont-right::after {
  content: "";
  position: absolute;
  right: 2px; top: 50%;
  width: 4px; height: 4px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Per-topic bar coloring */
.mcal-bar[data-topic="Data Science & Analysis"] { --bar-bg: #2F5CE0; }
.mcal-bar[data-topic="Cybersecurity"]            { --bar-bg: #DC2626; }
.mcal-bar[data-topic="Agentic AI"]               { --bar-bg: #8B5CF6; }
.mcal-bar[data-topic="AI Automation"]            { --bar-bg: #10B981; }
.mcal-bar[data-topic="AI Productivity"]          { --bar-bg: #D97706; }
.mcal-bar[data-topic="Project Management & Agile"] { --bar-bg: #22C55E; }

.month-cal__empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
}
.month-cal__empty p { margin: 0; }

@media (max-width: 720px) {
  .month-cal__head { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px; }
  .month-cal__title { font-size: 20px; }
  .month-cal__weekdays span { padding: 8px 6px; font-size: 10px; }
  .mcal-day { padding: 5px 6px 3px; font-size: 11px; }
  .mcal-bar { font-size: 10.5px; padding: 2px 6px; margin: 0 2px; }
  .mcal-week { min-height: 78px; grid-auto-rows: 18px; grid-template-rows: 26px; }
}

/* ============================================================
   Inquiry modal — Onyx + Platinum, floating labels
   ============================================================ */
body.modal-open { overflow: hidden; }

.inquiry-modal {
  --onyx-1: #0A0A0E;
  --onyx-2: #101016;
  --onyx-3: #15151E;
  --platinum-100: #F5F7FA;
  --platinum-200: #DDE1EA;
  --platinum-300: #C9CEDB;
  --platinum-400: #A0A6B5;
  --platinum-500: #8B8F9B;

  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 220ms var(--ease);
}
.inquiry-modal[hidden] { display: none; }
.inquiry-modal--in { opacity: 1; }

.inquiry-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.inquiry-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--onyx-2) 0%, var(--onyx-1) 100%);
  border: 1px solid rgba(221, 225, 234, 0.10);
  border-radius: 18px;
  color: #FFFFFF;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.65),
    0 12px 28px -12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(245, 247, 250, 0.06);
  transform: translateY(14px) scale(0.985);
  transition: transform 280ms var(--ease-out);
  overflow: hidden;
}
.inquiry-modal--in .inquiry-modal__panel { transform: translateY(0) scale(1); }

/* Subtle platinum halo at the top edge */
.inquiry-modal__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 247, 250, 0.28) 50%, transparent 100%);
  pointer-events: none;
}

.inquiry-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 28px 22px;
  background: transparent;
  border-bottom: 1px solid rgba(221, 225, 234, 0.08);
}
.inquiry-modal__head h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #FFFFFF;
  margin: 6px 0 8px;
  line-height: 1.15;
}
.inquiry-modal__eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(221, 225, 234, 0.55);
}
.inquiry-modal__sub {
  font-size: 13.5px;
  color: rgba(221, 225, 234, 0.70);
  margin: 0;
  line-height: 1.55;
  max-width: 440px;
}
.inquiry-modal__close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(221, 225, 234, 0.14);
  background: rgba(245, 247, 250, 0.04);
  color: rgba(221, 225, 234, 0.65);
  cursor: pointer;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.inquiry-modal__close:hover {
  color: var(--platinum-100);
  border-color: rgba(221, 225, 234, 0.35);
  background: rgba(245, 247, 250, 0.08);
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.inquiry-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 14px;
  padding: 24px 28px 8px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.inquiry-form__field {
  position: relative;
  display: block;
  min-width: 0;
}
.inquiry-form__field--full { grid-column: 1 / -1; }

/* Inputs / textareas / selects */
.inquiry-form__field input,
.inquiry-form__field select,
.inquiry-form__field textarea {
  width: 100%;
  padding: 22px 14px 10px;
  font: inherit;
  font-size: 14.5px;
  color: #FFFFFF;
  background: rgba(245, 247, 250, 0.04);
  border: 1px solid rgba(221, 225, 234, 0.14);
  border-radius: 12px;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.inquiry-form__field textarea { resize: vertical; min-height: 86px; line-height: 1.5; padding-top: 28px; }
.inquiry-form__field select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(221, 225, 234, 0.60) 50%),
    linear-gradient(135deg, rgba(221, 225, 234, 0.60) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.inquiry-form__field input:hover,
.inquiry-form__field select:hover,
.inquiry-form__field textarea:hover {
  border-color: rgba(221, 225, 234, 0.28);
}
.inquiry-form__field input:focus,
.inquiry-form__field select:focus,
.inquiry-form__field textarea:focus {
  border-color: rgba(245, 247, 250, 0.55);
  background: rgba(245, 247, 250, 0.07);
  box-shadow: 0 0 0 3px rgba(201, 206, 219, 0.14);
}

/* Floating label */
.inquiry-form__field > span {
  position: absolute;
  left: 15px;
  top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(221, 225, 234, 0.55);
  letter-spacing: 0;
  pointer-events: none;
  transform-origin: left center;
  transition: transform 160ms var(--ease), color 160ms var(--ease);
  background: transparent;
  padding: 0 4px;
  margin-left: -4px;
  max-width: calc(100% - 32px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inquiry-form__field > span em {
  font-style: normal;
  color: rgba(221, 225, 234, 0.35);
  font-weight: 400;
}
/* Float up when input has value (placeholder shown means empty, since we use placeholder=" ") */
.inquiry-form__field input:not(:placeholder-shown) ~ span,
.inquiry-form__field textarea:not(:placeholder-shown) ~ span,
.inquiry-form__field input:focus ~ span,
.inquiry-form__field textarea:focus ~ span,
.inquiry-form__field--select span {
  transform: translateY(-12px) scale(0.78);
  color: rgba(221, 225, 234, 0.70);
}
.inquiry-form__field input:focus ~ span,
.inquiry-form__field textarea:focus ~ span,
.inquiry-form__field--select:focus-within span {
  color: var(--platinum-100);
}
/* Selects: the label always floats since selects don't support :placeholder-shown */
.inquiry-form__field--select select {
  padding-top: 24px;
}

.inquiry-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 22px;
  border-top: 1px solid rgba(221, 225, 234, 0.08);
  background: transparent;
  flex-wrap: wrap;
}
.inquiry-form__status {
  font-size: 12.5px;
  color: rgba(221, 225, 234, 0.55);
  flex: 1;
  min-width: 0;
  line-height: 1.4;
}
.inquiry-form__status[data-tone="ok"]    { color: #6EE7A7; }
.inquiry-form__status[data-tone="error"] { color: #FCA5A5; }
.inquiry-form__actions { display: inline-flex; gap: 10px; align-items: center; }

/* Dark variants of the standard buttons inside the dark modal */
.inquiry-modal .btn.btn-secondary {
  background: rgba(245, 247, 250, 0.05);
  color: rgba(221, 225, 234, 0.80);
  border: 1px solid rgba(221, 225, 234, 0.16);
}
.inquiry-modal .btn.btn-secondary:hover {
  background: rgba(245, 247, 250, 0.10);
  color: var(--platinum-100);
  border-color: rgba(221, 225, 234, 0.32);
}
.inquiry-modal .btn.btn-primary {
  background: linear-gradient(180deg, #F5F7FA 0%, #C9CEDB 60%, #8B8F9B 100%);
  color: #0A0A0E;
  border: 1px solid rgba(245, 247, 250, 0.45);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.inquiry-modal .btn.btn-primary:hover { filter: brightness(1.05); }

@media (max-width: 640px) {
  .inquiry-modal { padding: 0; }
  .inquiry-modal__panel {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    align-self: end;
    width: 100%;
  }
  .inquiry-form__grid { grid-template-columns: 1fr; padding: 20px 20px 6px; }
  .inquiry-modal__head { padding: 22px 20px 18px; }
  .inquiry-form__foot { padding: 14px 20px 20px; }
  .inquiry-form__actions { width: 100%; justify-content: flex-end; }
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-secondary);
  white-space: nowrap;
}
/* Topic pill palette, calibrated for white bg (dark text on soft tinted bg) */
.pill[data-topic="Data Science & Analysis"]            { color: #1A40B0; background: #EEF3FE; border-color: #DCE6FB; }
.pill[data-topic="Cybersecurity"]               { color: #B91C1C; background: #FEF2F2; border-color: #FCDADA; }
.pill[data-topic="Agentic AI"]                  { color: #6D28D9; background: #F4EFFE; border-color: #E5DAFA; }
.pill[data-topic="AI Automation"]               { color: #047857; background: #ECFDF5; border-color: #C9F1DD; }
.pill[data-topic="AI Productivity"]             { color: #B45309; background: #FEF6E7; border-color: #FCE7B5; }
.pill[data-topic="Project Management & Agile"]  { color: #166534; background: #F0FDF4; border-color: #C8EFD4; }
.pill.format { color: var(--text-secondary); background: var(--bg-soft); }
.pill.audience { color: var(--text-muted); background: transparent; border-color: var(--border); }
.badge-seats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: #FEF6E7;
  border: 1px solid #FCE7B5;
  color: #B45309;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Empty state */
.empty {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  background: var(--bg-soft);
}
.empty h3 { margin: 0 0 8px; font-size: 20px; color: var(--text-primary); }
.empty p { margin: 0 auto 20px; color: var(--text-secondary); max-width: 540px; }
.empty p strong { color: var(--text-primary); font-weight: 600; }
.empty__actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ------------ Trust strip (kept available, not currently rendered) ------------ */
.trust { background: var(--bg-soft); padding: var(--s-3) 0; border-bottom: 1px solid var(--border); }
.trust__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); text-align: center; margin: 0 0 20px; }
.trust__row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px 28px; }
.partner-chip { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

/* ------------ Stats strip (kept available, not currently rendered) ------------ */
.stats { padding: var(--s-3) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat__num { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1; }
.stat__num .accent { color: var(--text-muted); font-weight: 400; }
.stat__label { margin-top: 10px; font-size: 14px; color: var(--text-secondary); }

/* ------------ Final CTA banner ------------ */
.cta-banner { padding: var(--s-3) 0 var(--s-4); }
.cta-banner__inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: var(--curriculum-navy);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
/* Brand texture overlays inside the CTA banner (dark bg = white variants) */
.cta-dot {
  position: absolute;
  top: -20px;
  right: -16px;
  width: clamp(200px, 35vw, 420px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.15;
  z-index: 0;
}
.cta-lines {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: clamp(180px, 28vw, 340px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0.22;
  z-index: 0;
}
/* Ensure text + button render above the decorative layers */
.cta-banner__content {
  position: relative;
  z-index: 1;
}
.cta-banner__inner > .btn {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  max-width: 640px;
  line-height: 1.2;
  color: #FFFFFF;
  font-family: var(--font-display);
}
.cta-banner p { margin: 12px 0 0; color: rgba(255, 255, 255, 0.72); max-width: 640px; }
.cta-banner .btn-primary { background: #FFFFFF; color: var(--curriculum-navy); }
.cta-banner .btn-primary:hover { background: #F0F4FF; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn {
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.btn .arrow {
  display: inline-flex;
  transition: transform var(--t-med) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-royal);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: #1A40B0;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(1, 40, 145, 0.22);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 4px rgba(1, 40, 145, 0.14); }
.btn-secondary {
  background: var(--bg-base);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(20, 36, 63, 0.06);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ------------ Footer (minimal: single mailto CTA + © line) ------------ */
.site-footer-min {
  border-top: 1px solid var(--border);
  background: var(--bg-base);
  padding: var(--s-2) 0;
}
.site-footer-min__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer-min__lead {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}
.site-footer-min__email {
  display: inline-block;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--t-fast) var(--ease);
}
.site-footer-min__email:hover { color: var(--accent); }
.site-footer-min__legal { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

/* ------------ Detail page ------------ */
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-3) 0 var(--s-2);
  border-bottom: 1px solid var(--border);
}
.detail-hero__inner { position: relative; z-index: 2; }

/* ── Onyx + Platinum premium detail hero ──────────────────────────── */
.detail-hero--onyx {
  --onyx-0:       #050507;
  --onyx-1:       #0A0A0E;
  --onyx-2:       #101016;
  --platinum-100: #F5F7FA;
  --platinum-200: #DDE1EA;
  --platinum-300: #C9CEDB;
  --platinum-400: #A0A6B5;
  --platinum-500: #8B8F9B;

  margin-top: -68px;
  padding: calc(68px + 96px) 0 96px;
  border-bottom: 0;
  color: #FFFFFF;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(221, 225, 234, 0.07) 0%, transparent 60%),
    radial-gradient(50% 40% at 14% 30%, rgba(245, 247, 250, 0.04) 0%, transparent 65%),
    linear-gradient(180deg, var(--onyx-0) 0%, var(--onyx-1) 60%, var(--onyx-2) 100%);
  isolation: isolate;
}
@media (max-width: 720px) {
  .detail-hero--onyx { margin-top: -60px; padding: calc(60px + 56px) 0 64px; }
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.detail-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 206, 219, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 206, 219, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.55) 25%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.55) 25%, rgba(0, 0, 0, 0) 80%);
  opacity: 0.55;
}
.detail-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.detail-hero__orb--a {
  width: 520px; height: 520px;
  left: -160px; top: -120px;
  background: radial-gradient(circle, rgba(221, 225, 234, 0.20) 0%, transparent 70%);
}
.detail-hero__orb--b {
  width: 620px; height: 620px;
  right: -200px; top: 10%;
  background: radial-gradient(circle, rgba(160, 166, 181, 0.18) 0%, transparent 70%);
}

/* Dot-pattern texture, top-right corner of each program detail hero */
.detail-dot-pattern {
  position: absolute;
  top: -40px;
  right: -20px;
  width: clamp(260px, 38vw, 500px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.12;
  will-change: transform;
}
.detail-hero--onyx .detail-dot-pattern { opacity: 0.08; }
@media (max-width: 720px) {
  .detail-dot-pattern {
    width: 92vw;
    top: 0;
    right: 0;
    opacity: 0.16;
  }
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; opacity: 0.4; }

.breadcrumb--light {
  color: rgba(221, 225, 234, 0.55);
}
.breadcrumb--light a { color: rgba(221, 225, 234, 0.70); transition: color var(--t-fast) var(--ease); }
.breadcrumb--light a:hover { color: var(--platinum-200, #DDE1EA); }
.breadcrumb--light span { color: rgba(221, 225, 234, 0.30); }

.detail-hero__pills {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px;
}
/* Platinum-themed topic pill on dark hero */
.pill--platinum {
  background: rgba(245, 247, 250, 0.08) !important;
  border: 1px solid rgba(221, 225, 234, 0.18) !important;
  color: var(--platinum-100, #F5F7FA) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.detail-hero--onyx .pill {
  background: rgba(245, 247, 250, 0.05);
  border: 1px solid rgba(221, 225, 234, 0.12);
  color: rgba(221, 225, 234, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Countdown chip — live pulse, signals urgency without being loud */
.countdown-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.10) 0%, rgba(245, 247, 250, 0.04) 100%);
  border: 1px solid rgba(245, 247, 250, 0.22);
  color: var(--platinum-100, #F5F7FA);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.countdown-chip__pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--platinum-100, #F5F7FA);
  box-shadow: 0 0 0 0 rgba(245, 247, 250, 0.55);
  animation: countdownPulse 2.2s ease-in-out infinite;
}
@keyframes countdownPulse {
  0%   { box-shadow: 0 0 0 0   rgba(245, 247, 250, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(245, 247, 250, 0); }
  100% { box-shadow: 0 0 0 0   rgba(245, 247, 250, 0); }
}

/* ------------ Hero D / H / M / S countdown ------------
 * Sits between .detail-meta-row and .detail-hero__cta on the program
 * detail page. Glass cells on the onyx hero — matches .countdown-chip
 * tokens for a coherent platinum look. */
.hero-countdown {
  margin: 4px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 540px;
}
.hero-countdown__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(221, 225, 234, 0.55);
  font-weight: 600;
}
.hero-countdown__grid {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.hero-countdown__cell {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.10) 0%, rgba(245, 247, 250, 0.04) 100%);
  border: 1px solid rgba(245, 247, 250, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
}
.hero-countdown__num {
  font-family: var(--font-display, inherit);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.hero-countdown__unit {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(221, 225, 234, 0.55);
  font-weight: 600;
}
.hero-countdown__sep {
  align-self: center;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  color: rgba(221, 225, 234, 0.30);
  line-height: 1;
  padding-bottom: 14px;
}
.hero-countdown--done .hero-countdown__num { color: rgba(255, 255, 255, 0.55); }
@media (max-width: 560px) {
  .hero-countdown { max-width: none; }
  .hero-countdown__grid { gap: 6px; }
  .hero-countdown__cell { padding: 12px 4px 10px; border-radius: 12px; }
  .hero-countdown__sep { display: none; }
}

.detail-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 18ch;
  font-family: var(--font-display);
}
.detail-hero--onyx h1 {
  color: #FFFFFF;
  font-size: clamp(48px, 6.4vw, 84px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.0;
  max-width: 16ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.detail-hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.lede--platinum {
  color: rgba(221, 225, 234, 0.78) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.detail-meta-row {
  display: grid;
  /* 6 columns wide on desktop (Starts / Ends / Duration / Per seat / Format / Timing);
   * wrap to two rows of three on tablets, single column on phones. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--border);
  margin-bottom: 32px;
}
@media (max-width: 1024px) {
  .detail-meta-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
}
@media (max-width: 560px) {
  .detail-meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; gap: 16px; }
}
.detail-meta-row--onyx {
  border-top-color: rgba(221, 225, 234, 0.14);
  padding-top: 32px;
  margin-top: 12px;
}
.detail-meta-row--onyx .detail-meta__label { color: rgba(221, 225, 234, 0.55); }
.detail-meta-row--onyx .detail-meta__value { color: #FFFFFF; font-weight: 600; }
.detail-meta-row--onyx .detail-meta__sub   { color: rgba(221, 225, 234, 0.50); }

/* Premium platinum CTA — uses the same chrome as the hero send button */
.btn--platinum {
  background: linear-gradient(180deg, #F5F7FA 0%, #C9CEDB 60%, #8B8F9B 100%) !important;
  color: #0A0A0E !important;
  border: 1px solid rgba(245, 247, 250, 0.45) !important;
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.btn--platinum:hover  { filter: brightness(1.05); transform: translateY(-1px); }
.btn--platinum:active { transform: translateY(0); }
.btn--ghost-light {
  background: rgba(245, 247, 250, 0.04) !important;
  color: var(--platinum-100, #F5F7FA) !important;
  border: 1px solid rgba(221, 225, 234, 0.22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost-light:hover { background: rgba(245, 247, 250, 0.08) !important; border-color: rgba(221, 225, 234, 0.40) !important; }
.detail-meta__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.detail-meta__value {
  margin-top: 6px;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  /* Keep "8 AM – 2 PM" on a single line in the meta strip. Combined with
   * non-breaking spaces inside fmtTimingShort, this prevents PM from
   * dropping to the next line in narrow columns. */
  white-space: nowrap;
}
.detail-meta__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.key-row__note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.4;
}
.detail-hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}

.detail-section {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}
.detail-section.no-border { border-bottom: 0; }
.detail-section h2 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 24px;
  font-family: var(--font-display);
}
.detail-section h3 { font-size: 17px; font-weight: 600; color: var(--text-primary); margin: 0 0 8px; }
.prose p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin: 0 0 16px; max-width: 62ch; }
.prose p strong { color: var(--text-primary); font-weight: 600; }
.prose--center p { margin-left: auto; margin-right: auto; text-align: center; max-width: 62ch; }

/* ------------ Reusable eyebrow (replaces ad-hoc h2 bracket pseudos) ------------ */
.eyebrow-tag {
  display: inline-block;
  font: 700 13px/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow-tag.is-light { color: rgba(255, 255, 255, 0.65); }

/* ------------ Marquee section (centered, larger headline) ------------ */
.detail-section--marquee {
  padding: var(--s-3) 0;
  text-align: center;
  border-bottom: 0;
}
.detail-section--marquee.is-soft { background: var(--bg-section-soft); }
.detail-section--marquee h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 auto 40px;
  max-width: 720px;
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.1;
}
.detail-section--marquee .lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ------------ 4-up hero strip (under hero) ------------ */
.hero-strip {
  background: #F7F7F7;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.hero-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.hero-strip__cell {
  padding: 8px 28px;
  border-right: 1px solid var(--border);
}
.hero-strip__cell:last-child { border-right: 0; }
.hero-strip__cell:first-child { padding-left: 0; }
.hero-strip__icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--brand-royal-soft);
  border-radius: 10px;
  margin-bottom: 18px;
}
.hero-strip__icon svg { width: 24px; height: 24px; }
.hero-strip__cell h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}
.hero-strip__cell p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .hero-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .hero-strip__cell { border-right: 0; padding: 0 16px; }
  .hero-strip__cell:nth-child(odd) { border-right: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .hero-strip__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-strip__cell, .hero-strip__cell:nth-child(odd) { border-right: 0; padding: 0; }
}

/* ------------ 2x2 Overview tiles ------------ */
.overview-tiles {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 880px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  overflow: hidden;
}
.overview-tiles li {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.overview-tiles li:nth-child(2n) { border-right: 0; }
.overview-tiles li:nth-child(n+3) { border-bottom: 0; }

/* 3-column variant, used in the trimmed Overview marquee */
.overview-tiles--three {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1080px;
  /* Parent bg = border colour; 1px column gap exposes it as a full-height divider */
  background: var(--border);
  gap: 0 1px;
}
.overview-tiles--three li {
  background: #FFFFFF;
  border-right: 0;
  border-bottom: 0;
}
@media (max-width: 720px) {
  .overview-tiles--three {
    grid-template-columns: 1fr;
    gap: 1px 0;
  }
  .overview-tiles--three li { border-bottom: 0; }
}
.overview-tiles h6 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}
.overview-tiles p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .overview-tiles { grid-template-columns: 1fr; }
  .overview-tiles li { border-right: 0; border-bottom: 1px solid var(--border); }
  .overview-tiles li:last-child { border-bottom: 0; }
}

/* ------------ Curriculum band (dark navy), coded.kw signature ------------ */
.curriculum-band {
  background: var(--curriculum-navy);
  color: #FFFFFF;
  padding: var(--s-3) 0 calc(var(--s-3) + 16px);
  margin: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}
.curriculum-band__head {
  max-width: 720px;
  margin: 0 0 56px;
}
.curriculum-band h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: #FFFFFF;
  font-weight: 600;
  font-family: var(--font-display);
}
.curriculum-band__lede {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}
/* Dark variant of the timeline */
.timeline--dark .timeline__row { border-top-color: rgba(255, 255, 255, 0.10); }
.timeline--dark .timeline__rail::before { background: rgba(255, 255, 255, 0.14); }
.timeline--dark .timeline__node {
  background: var(--curriculum-navy);
  border-color: #4A90FF;
}
.timeline--dark .timeline__step { color: rgba(255, 255, 255, 0.55); }
.timeline--dark .timeline__title { color: #FFFFFF; font-size: 22px; }
.timeline--dark .timeline__meta { color: rgba(255, 255, 255, 0.55); }
.timeline--dark .timeline__focus { color: rgba(255, 255, 255, 0.78); font-size: 16px; max-width: 64ch; }

.outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0;
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--border);
}
.outcomes li {
  padding: 18px 24px 18px 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}
.outcomes li:nth-child(odd) { padding-right: 32px; }
.outcomes li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--border); }
.outcomes li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

/* ------------ Timeline (program structure, day-by-day) ------------ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  /* base state for scroll reveal */
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1700ms var(--ease-out), transform 1700ms var(--ease-out);
}
.timeline__row.is-in { opacity: 1; transform: translateY(0); }
.timeline__row:first-child { border-top: 0; padding-top: 4px; }
.timeline__row:last-child { padding-bottom: 4px; }
/* Stagger each row 280ms apart so the timeline reads top-to-bottom, deliberate */
.timeline__row:nth-child(1) { transition-delay: 0ms; }
.timeline__row:nth-child(2) { transition-delay: 280ms; }
.timeline__row:nth-child(3) { transition-delay: 560ms; }
.timeline__row:nth-child(4) { transition-delay: 840ms; }
.timeline__row:nth-child(5) { transition-delay: 1120ms; }
.timeline__row:nth-child(6) { transition-delay: 1400ms; }
.timeline__row:nth-child(7) { transition-delay: 1680ms; }
.timeline__row:nth-child(8) { transition-delay: 1960ms; }

.timeline__rail {
  position: relative;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.timeline__rail::before {
  content: "";
  position: absolute;
  left: 5px; top: 14px; bottom: -28px;
  width: 1px;
  background: var(--border);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 2000ms var(--ease-out);
  transition-delay: 560ms;
}
.timeline__row.is-in .timeline__rail::before { transform: scaleY(1); }
.timeline__row:last-child .timeline__rail::before { display: none; }
.timeline__node {
  position: absolute;
  left: 0; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 1.5px solid var(--accent);
  transform: scale(0);
  transition: transform 950ms var(--ease-spring);
  transition-delay: 320ms;
}
.timeline__row.is-in .timeline__node { transform: scale(1); }
.timeline__step {
  font: 600 11px/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.timeline__body { padding-top: 0; }
.timeline__title {
  margin: 0 0 6px;
  font: 600 18px/1.3 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.timeline__meta {
  font: 500 12px/1 var(--font-sans);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.timeline__focus {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ------------ Reveal-on-scroll (marketing sections) ------------ */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1800ms var(--ease-out), transform 1800ms var(--ease-out);
}
.reveal-up.is-in { opacity: 1; transform: translateY(0); }
.reveal-up.delay-1 { transition-delay: 220ms; }
.reveal-up.delay-2 { transition-delay: 440ms; }
.reveal-up.delay-3 { transition-delay: 660ms; }

/* ------------ Stagger child (per-element scroll reveal with nth-child stagger) ------------
 * Used for hero-strip cells, overview tiles, outcomes list items, iter-table
 * rows, FAQ items, anything that lives inside a section and benefits from a
 * sequential reveal as the user scrolls past. */
.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1200ms var(--ease-out), transform 1200ms var(--ease-out);
}
.stagger-child.is-in { opacity: 1; transform: translateY(0); }
.stagger-child:nth-child(1)  { transition-delay: 0ms;    }
.stagger-child:nth-child(2)  { transition-delay: 110ms;  }
.stagger-child:nth-child(3)  { transition-delay: 220ms;  }
.stagger-child:nth-child(4)  { transition-delay: 330ms;  }
.stagger-child:nth-child(5)  { transition-delay: 440ms;  }
.stagger-child:nth-child(6)  { transition-delay: 550ms;  }
.stagger-child:nth-child(7)  { transition-delay: 660ms;  }
.stagger-child:nth-child(8)  { transition-delay: 770ms;  }
.stagger-child:nth-child(9)  { transition-delay: 880ms;  }
.stagger-child:nth-child(10) { transition-delay: 990ms;  }

/* ------------ Hero entrance (first paint on detail page) ------------ */
@keyframes hero-enter-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.detail-hero .breadcrumb       { animation: hero-enter-up 1100ms 0ms    var(--ease-out) both; }
.detail-hero .detail-hero__pills{animation: hero-enter-up 1100ms 80ms   var(--ease-out) both; }
.detail-hero h1                { animation: hero-enter-up 1100ms 160ms  var(--ease-out) both; }
.detail-hero .lede             { animation: hero-enter-up 1100ms 280ms  var(--ease-out) both; }
.detail-hero .detail-meta-row  { animation: hero-enter-up 1100ms 400ms  var(--ease-out) both; }
.detail-hero__cta              { animation: hero-enter-up 1100ms 520ms  var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  .stagger-child { opacity: 1; transform: none; transition: none; }
  .detail-hero .breadcrumb,
  .detail-hero .detail-hero__pills,
  .detail-hero h1,
  .detail-hero .lede,
  .detail-hero .detail-meta-row,
  .detail-hero__cta { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline__row, .reveal-up { opacity: 1; transform: none; transition: none; }
  .timeline__rail::before, .timeline__node { transform: scaleY(1) scale(1); transition: none; }
}

/* ------------ Iteration table (schedule) ------------ */
.iter-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.iter-table th, .iter-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-primary);
}
.iter-table th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.iter-table tr:last-child td { border-bottom: 0; }
.iter-table tr:first-child td { padding-top: 16px; }

/* ------------ How we teach it (clean ratio, no gradient panel) ------------ */
.method-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 4px 0;
}
.method-block p { margin: 0 0 12px; color: var(--text-secondary); font-size: 16px; line-height: 1.7; max-width: 62ch; }
.method-block p strong { color: var(--text-primary); font-weight: 600; }
.ratio { margin: 0; }
.ratio__bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.ratio__bar span {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: var(--w);
  background: var(--accent);
  border-radius: 2px;
}
.ratio__caption {
  margin-top: 14px;
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ratio__caption b { color: var(--text-primary); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin-right: 6px; font-family: var(--font-display); }
.ratio__caption span:last-child { color: var(--text-muted); }

/* ------------ Instructor (clean, no gradient avatar) ------------ */
.instructor-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.instructor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Meta-link (Google Maps location etc.) */
.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-primary);
  border-bottom: 1px dashed var(--border-strong);
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.meta-link:hover { color: var(--accent); border-color: var(--accent); }
.meta-link svg { color: var(--text-muted); }
.meta-link:hover svg { color: var(--accent); }
.method-block p { margin: 0; color: var(--text-secondary); }

.faq details {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-muted);
  font-weight: 400;
  font-size: 20px;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.faq summary:hover::after { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin-top: 12px; color: var(--text-secondary); max-width: 62ch; line-height: 1.6; }

.aside-stuck { position: sticky; top: 96px; align-self: start; }
.aside-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
}
.aside-card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.aside-card h3 { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted); }
.aside-card .key-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.aside-card .key-row:last-of-type { border-bottom: 0; }
.aside-card .key-row span:first-child { color: var(--text-muted); }
.aside-card .key-row span:last-child { color: var(--text-primary); font-weight: 500; text-align: right; }
.aside-card .key-row.is-price {
  background: var(--accent-soft);
  margin: 4px -8px;
  padding: 12px 8px;
  border-radius: 6px;
  border-bottom: 0;
}
.aside-card .key-row.is-price + .key-row { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 14px; }
.aside-card .key-row.is-price span:last-child { color: var(--accent); font-weight: 700; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

/* Full-shell variant: spans from immediately after the hero through the FAQ,
   keeping the AT A GLANCE aside sticky alongside every content section. */
.detail-grid--full {
  padding: var(--s-3) 0 var(--s-3);
  align-items: start;
}
.detail-grid__main > section + section { margin-top: 56px; }
/* The first content sections in the shell (marquee, then non-marquee) bring
   their own internal padding; only zero the top padding for plain detail-sections. */
.detail-grid__main > .detail-section:not(.detail-section--marquee-inline):first-child { padding-top: 0; }

/* Inline Overview marquee: contained card inside the left column, not a full-bleed band */
.detail-section--marquee-inline {
  background: var(--bg-section-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}
.detail-section--marquee-inline h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 0 auto 28px;
}
.detail-section--marquee-inline .overview-tiles--three { max-width: 100%; }

/* Inline Curriculum band: dark contained panel with rounded corners, not full-bleed */
.curriculum-band--inline {
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.curriculum-band--inline h2 { font-size: clamp(26px, 3vw, 36px); }
.curriculum-band--inline .curriculum-band__head { margin-bottom: 36px; }

/* Closing CTA on detail, unified to #192C4D so it rhymes with the curriculum band */
.detail-close { padding: var(--s-3) 0 var(--s-4); }
.detail-close__inner {
  background: var(--curriculum-navy);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.detail-close h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #FFFFFF;
  font-family: var(--font-display);
}
.detail-close p { color: rgba(255, 255, 255, 0.72); margin: 0 auto 32px; max-width: 540px; line-height: 1.6; font-size: 16.5px; }
.detail-close .btn-primary { background: #FFFFFF; color: var(--curriculum-navy); }
.detail-close .btn-primary:hover { background: #F0F4FF; }

/* ------------ Modal (legacy markup, no longer rendered but keep styled cleanly) ------------ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 36, 63, 0.40);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 100;
  padding: 32px 16px;
  overflow-y: auto;
}
.modal.open { display: flex; }
.modal__inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin: 24px auto;
  box-shadow: 0 20px 60px rgba(20, 36, 63, 0.16), 0 4px 12px rgba(20, 36, 63, 0.08);
}
@keyframes pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-input); border: 1px solid var(--border-strong);
  width: 32px; height: 32px; border-radius: 50%;
  color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}
.modal__close:hover { color: var(--accent); border-color: var(--accent); }
.modal h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.015em; }
.modal p.sub { margin: 0 0 24px; color: var(--text-secondary); }
.modal .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .field-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; }
.field label .req { color: var(--accent); margin-left: 2px; }
.field input, .field select, .field textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring);
}
.modal__actions {
  margin-top: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
}
.modal__legal { font-size: 12px; color: var(--text-muted); flex: 1; min-width: 220px; }

.modal-success {
  text-align: center; padding: 16px 0;
}
.modal-success__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(45, 164, 78, 0.12);
  border: 1px solid rgba(45, 164, 78, 0.4);
  color: #5BD477;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800;
  margin-bottom: 16px;
}

/* ------------ Mobile sticky CTA on detail ------------ */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px; right: 16px;
  z-index: 70;
}
.sticky-cta-mobile .btn-primary {
  width: 100%; justify-content: center;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

/* ------------ Responsive ------------ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid--full { padding: var(--s-2) 0; }
  .detail-grid--full .detail-grid__main > section + section { margin-top: 40px; }
  .curriculum-band--inline { padding: 36px 24px; }
  .detail-section--marquee-inline { padding: 32px 24px; }
  .aside-stuck { position: static; }
  .detail-meta-row { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .intro-band__grid { grid-template-columns: 1fr; gap: 20px; }
  .stats__grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .method-block { grid-template-columns: 1fr; }
  .site-footer-min__inner { gap: 20px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .outcomes { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner__inner { flex-direction: column; align-items: flex-start; padding: 28px; }
  .cta-banner { padding: 64px 0 88px; }
  .modal__inner { padding: 24px; margin: 8px auto; }
  .modal .form-grid { grid-template-columns: 1fr; }
  .filters__inner { gap: 8px; }
  .filter-button { font-size: 12.5px; padding: 8px 12px; }

  /* ------------ Mobile filters drawer ------------ */
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    height: 44px;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  }
  .filter-search { flex: 1; min-width: 0; }

  .filters__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 36, 63, 0.45);
    z-index: 89;
    opacity: 0;
    transition: opacity 220ms var(--ease);
    pointer-events: none;
  }
  .filters__backdrop[hidden] { display: block; opacity: 0; pointer-events: none; }
  body.filters-open .filters__backdrop { opacity: 1; pointer-events: auto; }

  /* Drawer panel: bottom sheet that slides up */
  .filters__inner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 12vh;
    z-index: 90;
    background: var(--bg-base);
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
    box-shadow: 0 -12px 36px rgba(20, 36, 63, 0.18);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
    overflow: hidden;
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 280ms var(--ease), visibility 0s linear 280ms;
  }
  body.filters-open .filters__inner {
    transform: translateY(0);
    visibility: visible;
    transition: transform 280ms var(--ease), visibility 0s linear 0s;
  }
  body.filters-open { overflow: hidden; }

  .filters-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-base);
    flex: 0 0 auto;
  }
  .filters-drawer-head__title { font-size: 18px; font-weight: 700; color: var(--text-primary); }
  .filters-drawer-head__close {
    background: transparent; border: 0; padding: 4px 10px;
    font-size: 28px; line-height: 1; color: var(--text-secondary); cursor: pointer;
  }
  .filters-drawer-head__close:hover { color: var(--text-primary); }

  /* Filter groups inside the drawer: stacked, full-width rows */
  .filters__inner {
    overflow-y: auto;
  }
  .filters__inner .filter-group {
    width: 100%;
    border-bottom: 1px solid var(--border);
    position: static;
  }
  .filters__inner .filter-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    height: auto;
  }
  .filters__inner .filter-button:hover { background: var(--bg-soft); }
  .filters__inner .filter-popover {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-soft);
    padding: 8px 12px 16px;
    max-height: none;
    overflow-y: visible;
    min-width: 0;
    z-index: auto;
  }
  .filters__inner .filter-group.open .filter-popover { display: block; }
  .filters__inner .filter-option { font-size: 15px; padding: 10px 12px; }
  .filters__inner .filter-option input { width: 18px; height: 18px; }

  .filters__inner .filter-clear {
    display: block;
    margin: 0;
    padding: 16px 20px;
    text-align: left;
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    border: 0;
    border-bottom: 1px solid var(--border);
  }

  .filters-drawer-foot {
    display: flex;
    gap: 12px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--bg-base);
    flex: 0 0 auto;
  }
  .filters-drawer-apply { flex: 1; width: 100%; }

  .detail-meta-row { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0; }
  .sticky-cta-mobile { display: block; }
  .detail-hero__cta { display: none; }
  .site-footer-min__inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 64px 0 40px; }
  .grid-section { padding: 24px 0 8px; }
  .filters { top: 60px; }
  .site-header__inner { height: 60px; }
}

/* Card entry: quiet fade on filter re-renders, no stagger. */
@keyframes card-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.card { animation: card-in 180ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #C7D2E8; border-radius: 8px; border: 3px solid var(--bg-base); }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }

/* Visually hidden */
.sr-only { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px; left: 8px; z-index: 200;
  padding: 8px 14px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 8px; outline: 2px solid #FFFFFF; outline-offset: 2px; }

/* Global focus-visible: a single, consistent ring across all interactive elements */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
.btn:focus-visible, .nav-cta:focus-visible {
  outline-offset: 3px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;  /* the inputs already render their own ring via :focus rules */
}

/* Selection */
::selection { background: var(--brand-royal-soft); color: var(--brand-royal); }

/* =====================================================================
   Dark Hero — 100vh, glassy, brand-aligned with coded.kw
   Scoped under .hero--dark so the rest of the page stays light.
   ===================================================================== */

/* Onyx + Platinum palette tokens, scoped to the executive hero. */
.hero--dark {
  --onyx-0:        #050507;
  --onyx-1:        #0A0A0E;
  --onyx-2:        #101016;
  --platinum-100:  #F5F7FA;
  --platinum-200:  #DDE1EA;
  --platinum-300:  #C9CEDB;
  --platinum-400:  #A0A6B5;
  --platinum-500:  #8B8F9B;
  --platinum-glow: rgba(201, 206, 219, 0.18);

  position: relative;
  min-height: 100vh;
  /* Pull behind the sticky header so the visual fills the viewport. */
  margin-top: -68px;
  padding: 0;
  border-bottom: 0;
  background:
    radial-gradient(80% 60% at 50% 110%, rgba(201, 206, 219, 0.07) 0%, transparent 60%),
    radial-gradient(50% 40% at 12% 18%, rgba(221, 225, 234, 0.05) 0%, transparent 65%),
    radial-gradient(60% 50% at 88% 12%, rgba(245, 247, 250, 0.04) 0%, transparent 65%),
    linear-gradient(180deg, var(--onyx-0) 0%, var(--onyx-1) 55%, var(--onyx-2) 100%);
  color: #FFFFFF;
  isolation: isolate;
  overflow: hidden;
}
@media (max-width: 720px) {
  .hero--dark { margin-top: -60px; }
}

.hero--dark .hero__inner {
  max-width: 1080px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Account for the header that we pulled up under */
  padding: calc(68px + 24px) var(--container-pad) 80px;
  text-align: center;
  z-index: 2;
}
@media (max-width: 720px) {
  .hero--dark .hero__inner { padding: calc(60px + 16px) var(--container-pad) 96px; min-height: 100svh; }
}

/* Background layers (orbs + grid) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 206, 219, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 206, 219, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0) 80%);
  opacity: 0.55;
}

/* Luxury film-grain noise — SVG turbulence baked into a data URL so no
 * extra asset request. Sits over the gradient + grid for premium texture. */
.hero-bg__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' seed='6' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.22 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 280px 280px;
}

/* Soft platinum studio lights — two warm-cool washes that mimic a
 * key + fill rig and add quiet directional lighting to the scene. */
.hero-bg__lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 18% 12%, rgba(245, 247, 250, 0.10) 0%, rgba(245, 247, 250, 0) 60%),
    radial-gradient(55% 40% at 82% 18%, rgba(201, 206, 219, 0.08) 0%, rgba(201, 206, 219, 0) 60%),
    radial-gradient(80% 50% at 50% 110%, rgba(160, 166, 181, 0.10) 0%, rgba(160, 166, 181, 0) 70%);
  filter: blur(2px);
}
.hero-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}
.hero-bg__orb--a {
  width: 540px; height: 540px;
  left: -160px; top: -100px;
  background: radial-gradient(circle, rgba(221, 225, 234, 0.22) 0%, rgba(221, 225, 234, 0) 70%);
  animation: orbDrift 22s ease-in-out infinite;
}
.hero-bg__orb--b {
  width: 620px; height: 620px;
  right: -180px; top: 8%;
  background: radial-gradient(circle, rgba(160, 166, 181, 0.22) 0%, rgba(160, 166, 181, 0) 70%);
  animation: orbDrift 26s ease-in-out -8s infinite reverse;
}
.hero-bg__orb--c {
  width: 760px; height: 760px;
  left: 50%; bottom: -300px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 247, 250, 0.12) 0%, rgba(245, 247, 250, 0) 65%);
  opacity: 0.4;
  animation: orbPulse 14s ease-in-out infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(40px, 28px); }
}
@keyframes orbPulse {
  0%, 100% { transform: translateX(-50%) scale(1);   opacity: 0.55; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 0.75; }
}

/* Faint platinum aura SVG, very low opacity */
.hero--dark .hero-circles {
  width: clamp(420px, 70vw, 900px);
  opacity: 0;
  animation: heroCirclesFadeInDark 2s var(--ease) 0.3s forwards;
  filter: grayscale(1) brightness(1.6) contrast(0.85);
}
@keyframes heroCirclesFadeInDark {
  from { opacity: 0; }
  to   { opacity: 0.10; }
}

/* Brackets — sit close to the edge so they never crowd the headline.
 * On wide displays they're pinned ~32-72px from each side; on smaller
 * tablet/laptop widths a few percent in. */
.hero--dark .hero-bracket-wrap--left  { left: clamp(8px, 3%, 72px); }
.hero--dark .hero-bracket-wrap--right { right: clamp(8px, 3%, 72px); }
.hero--dark .hero-bracket {
  /* Source is the polished-obsidian render (bracket-onyx.png) already.
   * Just add cast shadow + a faint white halo so it lifts off the onyx
   * ground without recolouring the asset. */
  filter:
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.80))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.18))
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.10));
  opacity: 1;
}

/* Eyebrow on dark — no brackets, refined letter-spacing */
.hero--dark .eyebrow,
.eyebrow--light {
  color: rgba(221, 225, 234, 0.62);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
/* Strip the [ ] pseudo-element brackets — only on the dark hero. */
.hero--dark .eyebrow::before,
.hero--dark .eyebrow::after,
.eyebrow--light::before,
.eyebrow--light::after {
  content: none;
}

/* Headline: bigger, bolder on dark */
.hero--dark h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #FFFFFF;
  margin: 22px auto 18px;
  /* Stay inside the central column so the brackets on either side keep
   * their breathing room. "Companies" / "Enterprises" are the longest
   * cycling words — 11-13 ch fits them on a single line at this size. */
  max-width: 13ch;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
  text-wrap: balance;
}
/* Platinum gradient on the accented word ("For Companies"). */
.hero--dark h1 .accent-soft {
  color: var(--platinum-200);
  background: linear-gradient(180deg, #F8FAFD 0%, var(--platinum-300) 55%, var(--platinum-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px rgba(201, 206, 219, 0.18));
}
.hero--dark h1 .hero-cycle {
  display: inline-block;
  min-width: 4ch;        /* stop layout from collapsing when erased */
}
.hero--dark h1 .hero-cycle-caret {
  display: inline-block;
  width: 4px;
  height: 0.95em;
  background: linear-gradient(180deg, #F8FAFD 0%, #C9CEDB 100%);
  margin-left: 8px;
  vertical-align: -0.05em;
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(245, 247, 250, 0.55);
  animation: heroCaretBlink 1s steps(2, end) infinite;
}
@keyframes heroCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Lede on dark — minimal, single line */
.hero--dark p.lede,
.lede--light {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(221, 225, 234, 0.78);
  max-width: 620px;
  margin: 0 auto 44px;
  font-weight: 400;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

/* ------------ Hero prompt: minimal single-pill concierge ------------
   A small label that cross-fades between 4 quick questions, sitting above
   a pill input. The whole thing reads as one component — no heavy panel. */
.hero-prompt {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.06) 0%, rgba(245, 247, 250, 0.02) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(221, 225, 234, 0.16);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(245, 247, 250, 0.06);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.hero-prompt:focus-within {
  border-color: rgba(221, 225, 234, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(201, 206, 219, 0.16), inset 0 1px 0 rgba(245, 247, 250, 0.10);
}
.hero-prompt__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: rgba(231, 238, 255, 0.82);
  transition: opacity 150ms var(--ease), transform 200ms var(--ease);
  pointer-events: none;
}
.hero-prompt__label.is-fading  { opacity: 0; transform: translate(-50%, -4px); }
.hero-prompt__label.is-error   { color: #FCA5A5; }
.hero-prompt__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  color: #FFFFFF;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.hero-prompt__input::placeholder { color: rgba(231, 238, 255, 0.38); }
.hero-prompt__input:disabled     { color: rgba(231, 238, 255, 0.55); cursor: default; }
.hero-prompt__send {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 250, 0.35);
  background: linear-gradient(180deg, #F5F7FA 0%, #C9CEDB 60%, #8B8F9B 100%);
  color: #0A0A0E;
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), filter var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.hero-prompt__send:hover  { filter: brightness(1.08); transform: translateY(-1px); }
.hero-prompt__send:active { transform: translateY(0); }
.hero-prompt--done .hero-prompt__send { opacity: 0.4; pointer-events: none; }

.hero-prompt__steps {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  transform: translateX(-50%);
  display: inline-flex;
  gap: 6px;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}
.hero-prompt__steps.is-hidden { opacity: 0; }
.hero-prompt__steps .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(221, 225, 234, 0.18);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hero-prompt__steps .dot.is-active {
  background: var(--platinum-200);
  transform: scale(1.15);
}

/* Subtle category tag row, below the pill */
.hero-tags {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(221, 225, 234, 0.45);
  letter-spacing: 0.02em;
}
.hero-tag {
  font-size: 11px;
  font-weight: 600;
  color: rgba(221, 225, 234, 0.78);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 247, 250, 0.04);
  border: 1px solid rgba(221, 225, 234, 0.10);
}

/* ── Tablet (722px – 1024px) ──────────────────────────────────────
 * Mid-range viewports get a bolder headline + visible brackets at
 * proportional scale. Sits between mobile and desktop.
 */
@media (min-width: 722px) and (max-width: 1024px) {
  .hero--dark h1 {
    font-size: clamp(78px, 12.5vw, 128px);
    max-width: 11ch;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.034em;
    line-height: 0.96;
  }
  .hero--dark p.lede,
  .lede--light {
    font-size: 19px;
    max-width: 560px;
    margin-top: 6px;
  }
  .hero--dark .hero-bracket-wrap--left  { left: 2%; }
  .hero--dark .hero-bracket-wrap--right { right: 2%; }
  .hero--dark .hero-bracket {
    height: clamp(150px, 20vw, 220px);
    opacity: 0.92;
  }
  .hero-prompt { max-width: 520px; }
  .hero-prompt__input { font-size: 16px; height: 46px; }
}

/* ── Mobile (≤720px) ──────────────────────────────────────────────
 * The headline is the hero. Push it BIG, give it room, let "For ⟨X⟩"
 * wrap to its own line. Brackets fade into the background as ambient
 * decor so the type can breathe.
 */
@media (max-width: 720px) {
  .hero-prompt { max-width: 100%; padding: 6px 6px 6px 20px; }
  .hero-prompt__label { font-size: 13px; bottom: calc(100% + 12px); }
  .hero-prompt__input { font-size: 15px; height: 44px; }
  .hero-prompt__send  { width: 38px; height: 38px; }
  .hero-prompt__steps { top: calc(100% + 12px); }
  .hero-tags { margin-top: 36px; gap: 8px; font-size: 11.5px; }
  .hero-tag  { font-size: 11.5px; padding: 5px 11px; }
  /* Hide the secondary scroll cue on mobile — the user can scroll naturally */
  .hero--dark .hero-scroll { display: none; }
  /* Big confident headline on small screens */
  .hero--dark .eyebrow { font-size: 11.5px; }
  .hero--dark h1 {
    font-size: clamp(60px, 16vw, 92px);
    margin: 22px auto 16px;
    line-height: 0.98;
    letter-spacing: -0.034em;
    max-width: 9ch;
    text-wrap: balance;
    font-weight: 800;
  }
  /* The cycle word can wrap to its own line on the narrowest phones
   * — gives "Enterprises" room without shrinking the rest of the H1. */
  .hero--dark h1 .hero-cycle {
    display: inline-block;
    min-width: 0;
  }
  .hero--dark h1 .hero-cycle-caret {
    width: 3px;
    height: 0.9em;
    margin-left: 6px;
  }
  .hero--dark p.lede,
  .lede--light  {
    font-size: 15.5px;
    line-height: 1.55;
    margin: 0 auto 26px;
    max-width: 380px;
    color: rgba(231, 238, 255, 0.94);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  }
  /* Brackets go off-canvas on mobile — too cramped to read. Hidden entirely. */
  .hero--dark .hero-bracket-wrap,
  .hero--dark .hero-bracket-wrap--left,
  .hero--dark .hero-bracket-wrap--right { display: none; }
  .hero--dark .hero-circles { width: 320px; opacity: 0.07 !important; animation: none; }
  .hero--dark .hero__inner {
    padding-top: calc(60px + 24px);
    padding-bottom: 36px;
    /* Center on mobile too so the H1 sits in the visual sweet spot */
    justify-content: center;
    gap: 0;
    min-height: 100svh;
  }
}

/* ── Tiny phones (≤400px) ────────────────────────────────────────
 * Final taper for ultra-narrow viewports.
 */
@media (max-width: 400px) {
  .hero--dark h1 { font-size: clamp(48px, 15vw, 64px); max-width: 8ch; }
  .hero--dark p.lede, .lede--light { font-size: 15.5px; max-width: 320px; }
  .hero-tags { margin-top: 28px; }
}

/* Hero scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: heroScrollBob 2.6s ease-in-out infinite;
}
.hero-scroll:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.32); }
@keyframes heroScrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* Headline entrance */
.hero--dark .eyebrow,
.hero--dark h1,
.hero--dark .lede,
.hero--dark .hero-prompt,
.hero--dark .hero-tags {
  animation: heroEnterUp 900ms var(--ease-out) both;
}
.hero--dark .eyebrow     { animation-delay: 120ms; }
.hero--dark h1           { animation-delay: 200ms; }
.hero--dark .lede        { animation-delay: 360ms; }
.hero--dark .hero-prompt { animation-delay: 520ms; }
.hero--dark .hero-tags   { animation-delay: 680ms; }
@keyframes heroEnterUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Client logo wall — ambient social proof under the hero.
   Uses styled text wordmarks today; swap each .client-logo span
   for an <img class="client-logo" src="…"> once real brand
   assets are in. The row will keep its current alignment / fade
   behaviour automatically.
   ============================================================ */
.client-logos {
  background: linear-gradient(180deg, #050507 0%, #0A0A0E 100%);
  padding: 36px 0 32px;
  position: relative;
  color: rgba(221, 225, 234, 0.62);
  overflow: hidden;
}
.client-logos::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 247, 250, 0.18) 50%, transparent 100%);
}
.client-logos__label {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(221, 225, 234, 0.50);
}
.client-logos__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
/* Each wordmark — uniform monochrome, slight letter-spacing,
 * 0.75 opacity so the brand list reads as ambient rather than loud. */
.client-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(245, 247, 250, 0.78);
  opacity: 0.82;
  transition: opacity var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.client-logo:hover { opacity: 1; color: #FFFFFF; }
.client-logo img {
  height: 28px;
  width: auto;
  display: block;
  filter: grayscale(1) brightness(1.4);
  opacity: 0.85;
}

@media (max-width: 720px) {
  .client-logos { padding: 28px 0 24px; }
  .client-logos__row { gap: 10px 28px; }
  .client-logo { font-size: 18px; }
}

/* ============================================================
   Featured rotator — single card under the search bar that auto-
   cycles through the top picks. One card visible at a time;
   others stacked absolutely with opacity 0. Topic accent via
   inline --c-from / --c-to CSS vars.
   ============================================================ */
.featured-rotator {
  background: var(--bg-soft);
  padding: 18px 0 28px;
}
.featured-rotator__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.featured-rotator__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.featured-rotator__pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: feat-pulse 2s ease-in-out infinite;
}
@keyframes feat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
.featured-rotator__dots {
  display: inline-flex;
  gap: 6px;
}
.featured-rotator__dot {
  width: 22px;
  height: 4px;
  border-radius: 3px;
  border: 0;
  background: rgba(20, 36, 63, 0.18);
  padding: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
.featured-rotator__dot:hover  { background: rgba(20, 36, 63, 0.32); }
.featured-rotator__dot:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}
.featured-rotator__dot[aria-selected="true"] {
  background: var(--brand-royal);
  width: 36px;
}

.featured-rotator__viewport {
  position: relative;
  min-height: 132px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}
.featured-rotator__card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
    linear-gradient(135deg, var(--c-from) 0%, var(--c-to) 100%);
  color: #FFFFFF;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 520ms var(--ease),
    transform 520ms var(--ease);
}
.featured-rotator__card[data-active="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.featured-rotator__card:hover { filter: brightness(1.06); }
.featured-rotator__card:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -4px;
}

.featured-rotator__rank {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.featured-rotator__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.featured-rotator__topic {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}
.featured-rotator__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.featured-rotator__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.featured-rotator__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.featured-rotator__card:hover .featured-rotator__arrow {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 640px) {
  .featured-rotator__viewport { min-height: 148px; }
  .featured-rotator__card {
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px 18px;
  }
  .featured-rotator__name { font-size: 16px; white-space: normal; }
  .featured-rotator__arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-rotator__card { transition: none; }
  .featured-rotator__pulse { animation: none; }
}

/* ============================================================
   Top courses marquee — dead code, kept for easy revert.
   Live UI uses .featured-rotator above.
   ============================================================ */
.top-courses {
  position: relative;
  background: linear-gradient(180deg, #050507 0%, #0A0A0E 100%);
  padding: 40px 0 56px;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.top-courses::before {
  /* Hairline platinum divider at the very top */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 247, 250, 0.22) 50%, transparent 100%);
}
.top-courses__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.top-courses__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(221, 225, 234, 0.62);
}
.top-courses__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F5F7FA;
  box-shadow: 0 0 0 0 rgba(245, 247, 250, 0.55);
  animation: countdownPulse 2.2s ease-in-out infinite;
}
.top-courses__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--platinum-100, #F5F7FA);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(221, 225, 234, 0.20);
  background: rgba(245, 247, 250, 0.04);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.top-courses__cta:hover {
  background: rgba(245, 247, 250, 0.10);
  border-color: rgba(221, 225, 234, 0.40);
  transform: translateY(-1px);
}

/* Marquee track: two identical sets sliding left forever, hover-pauseable. */
.top-courses__marquee {
  position: relative;
  display: flex;
  gap: 16px;
  width: max-content;
  animation: topCoursesScroll 38s linear infinite;
  will-change: transform;
}
.top-courses__marquee[data-paused="true"] { animation-play-state: paused; }
.top-courses:hover .top-courses__marquee { animation-play-state: paused; }
.top-courses__set {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
@keyframes topCoursesScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .top-courses__marquee { animation: none; }
}
/* Soft fade-out at the edges so cards melt into the background. */
.top-courses .container {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.top-course-card {
  --c-from: #1F2937;
  --c-to:   #0B0B0F;
  flex-shrink: 0;
  position: relative;
  width: 300px;
  min-height: 132px;
  padding: 18px 20px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--c-from) 0%, var(--c-to) 100%);
  border: 1px solid rgba(245, 247, 250, 0.08);
  color: #FFFFFF;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 4px;
  isolation: isolate;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease), box-shadow 220ms var(--ease-out);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.55);
}
.top-course-card::before {
  /* Subtle radial highlight in the top-left corner */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 0% 0%, rgba(255, 255, 255, 0.14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.top-course-card::after {
  /* Hairline top edge highlight */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.30) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.top-course-card > * { position: relative; z-index: 2; }
.top-course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 247, 250, 0.25);
  box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.70);
}
.top-course-card__rank {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}
.top-course-card__topic {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}
.top-course-card__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 8px;
  color: #FFFFFF;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.top-course-card__meta {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 12px;
  line-height: 1.4;
}
.top-course-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  z-index: 3;
}
.top-course-card:hover .top-course-card__arrow {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(2px);
}

@media (max-width: 720px) {
  .top-courses { padding: 32px 0 44px; }
  .top-courses__head { margin-bottom: 18px; }
  .top-course-card { width: 260px; min-height: 120px; padding: 16px 18px 18px; }
  .top-course-card__name { font-size: 16px; }
  .top-courses__marquee { animation-duration: 30s; }
}

/* Header sits on top of the dark hero — invert it until the user scrolls */
body:has(.hero--dark) .site-header:not(.is-scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
body:has(.hero--dark) .site-header:not(.is-scrolled) .brand img {
  /* SVG is brand-navy by default — invert to pure white on the dark hero. */
  filter: brightness(0) invert(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg__orb,
  .hero-scroll,
  .hero--dark .eyebrow,
  .hero--dark h1,
  .hero--dark .lede,
  .hero--dark .hero-prompt,
  .hero--dark .hero-tags {
    animation: none !important;
  }
}

/* ============================================================
   Enterprise inquiry page (/#/enterprise)
   ============================================================ */

.ent-hero {
  position: relative;
  background: var(--curriculum-navy);
  color: #fff;
  padding: 96px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.ent-hero__bg {
  position: absolute; inset: 0; z-index: -1;
}
.ent-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
}
.ent-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.ent-hero__orb--a {
  width: 420px; height: 420px;
  top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(1, 40, 145, 0.85), transparent 60%);
}
.ent-hero__orb--b {
  width: 360px; height: 360px;
  bottom: -120px; right: -60px;
  background: radial-gradient(circle, rgba(26, 64, 176, 0.65), transparent 60%);
}
.ent-hero__inner {
  position: relative;
  max-width: 880px;
}
.ent-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 14px 0 18px;
  font-weight: 600;
}
.ent-hero h1 .accent-soft {
  color: #B7C3DA;
  font-weight: 500;
}
.ent-hero .lede--light {
  max-width: 640px;
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.6;
}
.breadcrumb--light {
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.breadcrumb--light a {
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.breadcrumb--light a:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.4);
}
.breadcrumb--light span {
  margin: 0 8px;
  opacity: 0.5;
}

.ent-form-wrap {
  background: var(--bg-soft);
  padding: var(--s-3) 0 var(--s-4);
  border-top: 1px solid var(--border);
}
.ent-form-wrap__inner {
  max-width: 920px;
}
.ent-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ent-section {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 0;
}
.ent-section__head {
  margin-bottom: 22px;
}
.ent-section__head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0 6px;
  color: var(--text-primary);
}
.ent-section__sub {
  margin: 6px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.ent-grid {
  display: grid;
  gap: 16px 18px;
}
.ent-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ent-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.ent-field--full { grid-column: 1 / -1; }
.ent-field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.ent-field > span em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
  margin-left: 2px;
}
.ent-field input,
.ent-field select,
.ent-field textarea {
  width: 100%;
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  outline: none;
}
.ent-field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}
.ent-field input:focus,
.ent-field select:focus,
.ent-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.ent-field input::placeholder,
.ent-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Program selection grid */
.ent-prog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ent-prog {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px 16px 16px 14px;
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.ent-prog:hover {
  border-color: var(--border-strong);
  background: #FAFCFE;
}
.ent-prog input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ent-prog__check {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--bg-base);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  margin-top: 1px;
  flex-shrink: 0;
}
.ent-prog.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.ent-prog.is-on .ent-prog__check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ent-prog__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ent-prog__topic {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
}
.ent-prog__topic--ghost {
  color: var(--text-muted);
  background: #EEF2F7;
}
.ent-prog__name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-primary);
  line-height: 1.35;
}
.ent-prog__meta {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.ent-prog--special {
  border-style: dashed;
}
.ent-prog--special.is-on {
  border-style: solid;
}

/* Chip-style radios (Number of participants, schedule, language, delivery) */
.ent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ent-chips--stacked {
  flex-direction: column;
  gap: 8px;
}
.ent-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ent-chip:hover { border-color: var(--border-strong); }
.ent-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ent-chip.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.ent-chip--lg {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: left;
}
.ent-chip--lg .ent-chip__main {
  font-weight: 600;
  font-size: 14.5px;
}
.ent-chip--lg .ent-chip__hint {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
}
.ent-chip--lg.is-on .ent-chip__hint { color: rgba(255,255,255,0.75); }

/* Submit block */
.ent-submit {
  padding: 6px 4px 0;
}
.ent-submit__note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.ent-submit__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ent-form__status {
  font-size: 13.5px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 0;
}
.ent-form__status[data-tone="ok"]    { color: #166534; }
.ent-form__status[data-tone="error"] { color: #B91C1C; }

/* Success state */
.ent-success {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}
.ent-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ent-success h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.ent-success__sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 28px;
}
.ent-success__steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 560px;
  text-align: left;
}
.ent-success__steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  border-top: 1px solid var(--border);
}
.ent-success__steps li:first-child { border-top: 0; }
.ent-success__steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px; top: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ent-success__steps strong {
  color: var(--text-primary);
}
.ent-success__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .ent-hero { padding: 64px 0 48px; }
  .ent-form-wrap { padding: 48px 0 64px; }
  .ent-section { padding: 24px 20px; border-radius: 12px; }
  .ent-section__head h2 { font-size: 21px; }
  .ent-grid--2 { grid-template-columns: 1fr; }
  .ent-prog-grid { grid-template-columns: 1fr; }
  .ent-chip--lg {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .ent-chip--lg .ent-chip__hint { text-align: left; }
  .ent-submit__row { flex-direction: column-reverse; align-items: stretch; }
  .ent-submit__row .btn { width: 100%; justify-content: center; }
  .ent-success { padding: 36px 24px; }
  .ent-success__steps li { padding-left: 48px; }
}

/* =====================================================
   Landing sections (B2B), mirrors coded.kw/companies
   ===================================================== */

/* ------------ Trusted-by strip (marquee) ------------ */
.trusted-strip {
  position: relative;
  background: linear-gradient(180deg, #0C1B33 0%, #14243F 100%);
  color: #FFFFFF;
  padding: 36px 0 28px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trusted-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 240px at 50% -40%, rgba(1, 40, 145, 0.55), transparent 70%);
  pointer-events: none;
}
.trusted-strip__label {
  position: relative;
  text-align: center;
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.trusted-strip__label strong {
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.trusted-strip__viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trusted-strip__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: trustedMarquee 42s linear infinite;
}
.trusted-strip:hover .trusted-strip__track { animation-play-state: paused; }
/* Logo tile, expects an <img> with src="assets/brand/clients/<slug>.svg".
 * If the image fails to load, JS adds .trusted-logo--fallback and the
 * styled wordmark inside takes over — strip never looks broken. */
.trusted-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 120px;
  padding: 0 12px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.trusted-logo:hover { opacity: 1; }
.trusted-logo img {
  max-height: 36px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.trusted-logo__fallback {
  display: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.trusted-logo--fallback .trusted-logo__fallback { display: inline-flex; }
@keyframes trustedMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trusted-strip__track { animation: none; }
}

/* ------------ Intro band: enhanced ------------ */
.intro-band__circles {
  position: absolute;
  top: -180px;
  right: -200px;
  width: 540px;
  height: auto;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.intro-band__inner { position: relative; z-index: 1; }
.intro-band__head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.intro-band__head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(1, 40, 145, 0.08);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(1, 40, 145, 0.10);
}
.intro-band__head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}
.intro-band__head h2 em {
  font-style: normal;
  color: var(--accent);
  font-family: inherit;
}
.intro-band__head p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.intro-band .intro-band__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.intro-card {
  position: relative;
  padding: 28px 26px 30px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.intro-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 40, 145, 0.22);
  box-shadow: 0 18px 40px -28px rgba(1, 40, 145, 0.35);
}
.intro-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(1, 40, 145, 0.10), rgba(1, 40, 145, 0.04));
  color: var(--accent);
  margin-bottom: 18px;
}
.intro-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
}
.intro-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ------------ Impact band (navy stats) ------------ */
.impact-band {
  position: relative;
  padding: var(--s-3) 0;
  background: linear-gradient(180deg, #0F1E36 0%, #14243F 55%, #0C1B33 100%);
  color: #FFFFFF;
  overflow: hidden;
}
.impact-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.impact-band__circles {
  position: absolute;
  top: -120px;
  left: -180px;
  width: 620px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
}
.impact-band__dots {
  position: absolute;
  right: -40px;
  top: 40px;
  width: 240px;
  opacity: 0.18;
  pointer-events: none;
}
.impact-band__lines {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 280px;
  opacity: 0.18;
  pointer-events: none;
}
.impact-band__inner { position: relative; z-index: 1; }
.impact-band__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.impact-band__head .eyebrow--light {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.impact-band__head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #FFFFFF;
}
.impact-band__head h2 em {
  font-style: normal;
  color: #8FA3D1;
  font-family: inherit;
}
.impact-band__head p {
  margin: 0 auto;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.65;
}
.impact-band__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.impact-stat {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), transform var(--t-med) var(--ease-out);
  overflow: hidden;
}
.impact-stat::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(143, 163, 209, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
  z-index: 0;
}
.impact-stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.impact-stat:hover::before { opacity: 1; }
.impact-stat > * { position: relative; z-index: 1; }
.impact-stat__num {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #FFFFFF;
}
.impact-stat__plus {
  font-style: normal;
  color: #8FA3D1;
  font-size: 0.55em;
  font-weight: 500;
  margin-left: 2px;
}
.impact-stat__label {
  display: block;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.005em;
}
.impact-stat__hint {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ------------ Enterprise offerings ------------ */
.offerings {
  padding: var(--s-3) 0;
  background: var(--bg-base);
  position: relative;
}
.offerings__head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.offerings__head .eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(1, 40, 145, 0.08);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(1, 40, 145, 0.10);
}
.offerings__head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}
.offerings__head p {
  margin: 0 auto;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}
.offerings__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.offering-card {
  position: relative;
  padding: 30px 28px 28px;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid var(--border);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.offering-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1, 40, 145, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.offering-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 40, 145, 0.25);
  box-shadow: 0 22px 50px -30px rgba(1, 40, 145, 0.35);
}
.offering-card:hover::before { opacity: 1; }
.offering-card > * { position: relative; }
.offering-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--curriculum-navy);
  color: #FFFFFF;
  margin-bottom: 20px;
}
.offering-card--b .offering-card__icon { background: #B91C1C; }
.offering-card--c .offering-card__icon { background: #6D28D9; }
.offering-card--d .offering-card__icon { background: #047857; }
.offering-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.offering-card > p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}
.offering-card__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.offering-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.offering-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.offering-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  align-self: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.offering-card__link svg { transition: transform var(--t-fast) var(--ease); }
.offering-card__link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}
.offering-card__link:hover svg { transform: translateX(3px); }

/* ------------ FAQ section ------------ */
.faq-section {
  padding: var(--s-3) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.faq-section__inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}
.faq-section__aside {
  position: sticky;
  top: 96px;
}
.faq-section__aside .eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(1, 40, 145, 0.08);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  border: 1px solid rgba(1, 40, 145, 0.10);
}
.faq-section__aside h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
}
.faq-section__aside p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}
.faq-section__aside .btn {
  background: #FFFFFF;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.faq-section__aside .btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.faq--landing details {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 10px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.faq--landing details:hover { border-color: var(--border-strong); }
.faq--landing details[open] {
  border-color: rgba(1, 40, 145, 0.25);
  box-shadow: 0 12px 32px -24px rgba(1, 40, 145, 0.3);
}
.faq--landing details:last-of-type { border-bottom: 1px solid var(--border); }
.faq--landing details[open]:last-of-type { border-bottom-color: rgba(1, 40, 145, 0.25); }
.faq--landing summary {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.faq--landing summary::after { font-size: 22px; }
.faq--landing details p {
  margin-top: 14px;
  font-size: 14.5px;
}

/* Final CTA enhancements */
.cta-banner--final { padding-top: var(--s-3); }
.cta-banner--final .cta-banner__inner { padding: 56px 56px; align-items: flex-end; }
.cta-banner--final .eyebrow--light {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.cta-banner--final h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  max-width: 680px;
}

/* ------------ Responsive ------------ */
@media (max-width: 1024px) {
  .offerings__grid { grid-template-columns: repeat(2, 1fr); }
  .faq-section__inner { grid-template-columns: 1fr; gap: 36px; }
  .faq-section__aside { position: static; }
  .impact-band__stats { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .trusted-strip { padding: 28px 0 22px; }
  .trusted-chip { height: 38px; padding: 0 16px; font-size: 13px; }
  .intro-band, .impact-band, .offerings, .faq-section { padding: 64px 0; }
  .intro-band .intro-band__grid { grid-template-columns: 1fr; }
  .offerings__grid { grid-template-columns: 1fr; }
  .impact-stat { padding: 26px 22px; }
  .impact-stat__num { font-size: 56px; }
  .cta-banner--final .cta-banner__inner { padding: 32px 28px; }
}

/* ------------ Catalog header (above the filter bar) ------------ */
.catalog-header {
  padding: 88px 0 32px;
  background: var(--bg-base);
}
.catalog-header__inner {
  /* Left-aligned heading, sits inside the standard container. */
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
}
.catalog-header__inner h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.0;
  color: var(--text-primary);
}
.catalog-header__inner p {
  margin: 0;
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}
@media (max-width: 720px) {
  .catalog-header { padding: 56px 0 24px; }
  .catalog-header__inner h2 { font-size: clamp(40px, 11vw, 64px); margin-bottom: 14px; }
  .catalog-header__inner p { font-size: 15.5px; }
}

/* ------------ Centered filters ------------ */
.filters--centered .filter-search-row { justify-content: center; }
.filters--centered .filter-search { max-width: 640px; width: 100%; }
.filters--centered .quick-filters { justify-content: center; }
.filters--centered .active-chips { justify-content: center; }

/* ------------ Simplified results header (no inline view toggle) ------------ */
.results-header--simple {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------ Make program cards & schedule rows fully clickable ------------
 * The original .card__hit was position:absolute inset:0 (true overlay), but
 * .card--program > * later forces every child to position:relative, which
 * collapses the overlay to zero height. Restore absolute positioning and
 * make sure pointer events route through it. */
.card--program .card__hit,
.cal-row > .cal-row__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  border-radius: inherit;
}
.card--program > *:not(.card__hit),
.cal-row > *:not(.cal-row__hit) {
  pointer-events: none;
}
.card--program .card__inquire,
.cal-row .cal-row__inquire {
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
