/* fonts.css */
/* GENERATED by `npm run build:fonts` (scripts/build-fonts.mjs). Edit the script, not this file. */

/* Brand fonts, self-hosted from public/fonts. The latin files are preloaded in views/partials/head.ejs. */

/* Space Grotesk, latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin.woff2?v=bVdgttlW-s) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk, latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin-ext.woff2?v=adYHRBX1mh) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2?v=LSBwldNg7V) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2?v=HDiST54u5p) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallbacks: local Arial resized to each web font's metrics, so the swap barely shifts
   the layout. Devices without Arial (most Android phones) skip these and use the system font (Roboto). */

@font-face {
  font-family: 'Space Grotesk Fallback';
  src: local('Arial'), local('ArialMT');
  font-weight: 400;
  size-adjust: 109.69%;
  ascent-override: 89.71%;
  descent-override: 26.62%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Space Grotesk Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  font-weight: 700;
  size-adjust: 109.69%;
  ascent-override: 89.71%;
  descent-override: 26.62%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('ArialMT');
  font-weight: 400;
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial Bold'), local('Arial-BoldMT');
  font-weight: 700;
  size-adjust: 107.12%;
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
}

/* tokens.css */
/* Design tokens. Contrast pairs are verified by `npm run check:contrast`. */

/* Fonts: Space Grotesk (display: headings, buttons, eyebrows) + Inter (body), self-hosted with
   font-display: swap (public/css/fonts.css, generated by `npm run build:fonts`). Until they arrive, text
   renders immediately in the metric-matched "… Fallback" faces, so the swap barely moves the layout.
   Bengali text uses the device's own Bengali font (nothing downloaded): Noto Sans Bengali on Android,
   Nirmala UI / Vrinda on Windows, Kohinoor Bangla / Bangla Sangam MN on Apple devices. */

:root {
  /* Surfaces */
  --c-cream: #fff8f1;
  --c-cream-deep: #ffefdf;
  --c-tint: #ffebd6;
  --c-white: #ffffff;

  /* Text */
  --c-ink: #1c1917;
  --c-ink-soft: #44403c;
  --c-ink-muted: #5f5852;

  /* Brand. --c-brand is the AA-safe text/button colour; --c-orange is decorative or paired with dark ink. */
  --c-brand: #b93a0a;
  --c-brand-hover: #9a3412;
  --c-orange: #f7931e;
  --c-flame: #e8501a;
  --gradient-brand: linear-gradient(135deg, #f7931e 0%, #e8501a 100%);

  /* Lines */
  --c-line: #eadbcb; /* decorative dividers only */
  --c-border: #8c7b6b; /* form-control borders, >= 3:1 on cream and white */

  /* Dark surfaces */
  --c-dark: #1c1917;
  --c-dark-2: #2a2522;
  --c-on-dark: #faf5ef;
  --c-on-dark-muted: #d6cfc7;
  --c-accent-on-dark: #ff9a3d;

  /* Status + focus */
  --c-error: #b42318;
  --c-success: #0b6b3a;
  --c-focus: #1d4ed8;
  --c-focus-on-dark: #ffd59a;

  /* Messaging brands (white icon/text on each is >= 4.5:1) */
  --c-whatsapp: #0e7c4a;
  --c-messenger: #0866ff;

  /* Floating "Contact us" button (white headset / close icon on it is >= 4.5:1) */
  --c-fab: #dc2626;
  --c-fab-hover: #b91c1c;

  /* Type */
  --font-bengali: 'Noto Sans Bengali', 'Nirmala UI', 'Kohinoor Bangla', 'Bangla Sangam MN', Vrinda;
  --font-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Space Grotesk Fallback', var(--font-bengali), var(--font-system);
  --font-body: 'Inter', 'Inter Fallback', var(--font-bengali), var(--font-system);
  --font-mono: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.3vw, 3.1rem);
  --fs-hero: clamp(2.5rem, 1.7rem + 4.3vw, 4.6rem);

  /* Shape + depth */
  --r-sm: 0.5rem;
  --r-md: 0.875rem;
  --r-lg: 1.5rem;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06), 0 2px 8px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 2px 4px rgba(28, 25, 23, 0.05), 0 12px 32px -8px rgba(28, 25, 23, 0.14);
  --shadow-lg: 0 8px 16px rgba(28, 25, 23, 0.08), 0 32px 64px -16px rgba(185, 58, 10, 0.28);

  /* Layout */
  --container: 72rem;
  --gutter: 1rem;
  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }
}

/* Large screens: everything is sized in rem, so a slightly larger root size scales type, spacing and
   cards together, and the content column widens. Media queries resolve rem against the browser
   default (16px), so these breakpoints do not move when the root size changes.
   Below 90rem (1440px) nothing changes. */
@media (min-width: 90rem) {
  :root {
    font-size: 106.25%; /* 17px */
    --container: 80rem;
    --gutter: 2rem;
  }
}
@media (min-width: 112.5rem) {
  :root {
    font-size: 112.5%; /* 18px: 21-27" 1080p/1440p monitors; also the cap for ultra-wide screens */
    --container: 84rem;
  }
}

/* Per-program accent colours (decorative gradients only) */
.accent-orange {
  --accent-a: #f7931e;
  --accent-b: #e8501a;
}
.accent-red {
  --accent-a: #e8501a;
  --accent-b: #b93a0a;
}
.accent-amber {
  --accent-a: #fbbf24;
  --accent-b: #f7931e;
}

/* base.css */
/* Reset, typography, layout primitives and shared components (buttons, badges, chips…). */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  font-optical-sizing: auto;
  font-synthesis-weight: none; /* every weight used is a real one: never fake bold */
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: var(--c-brand);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--c-brand-hover);
}

button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.footer :focus-visible,
.cta__card :focus-visible,
.lightbox :focus-visible,
.module-preview :focus-visible {
  outline-color: var(--c-focus-on-dark);
}

address {
  font-style: normal;
}

/* ---------- utilities ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--c-ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
  outline: 3px solid var(--c-focus-on-dark);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
@media (min-width: 90rem) {
  /* big monitors: the 8vw curve would otherwise leave ~230px between sections */
  .section {
    padding-block: 4.5rem;
  }
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* long words may wrap instead of widening the page (large text sizes) */
  gap: 0.75rem;
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
/* Layout grids that are one column on phones: an implicit "auto" column grows to its widest child's
   minimum width and pushes the whole page sideways. minmax(0, 1fr) lets the content shrink and wrap.
   (Wider layouts set their own columns later in each section's stylesheet.) */
.hero__grid,
.hero__copy,
.finder__grid,
.finder__side,
.faq__grid,
.faq__list,
.footer__grid,
.cta__card,
.cta__copy,
.steps,
.partner-cards,
.program,
.program__intro,
.program__body,
.contact__info {
  grid-template-columns: minmax(0, 1fr);
}

.section__title,
.hero__title,
.program__title,
.cta__title,
.page__title {
  overflow-wrap: anywhere; /* a very long word wraps rather than widening the page at large text sizes */
}
.section__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.025em;
}
.section__lead {
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
  max-width: 40rem;
}
.section__head--center .section__lead {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
}
.section__head--center .eyebrow {
  justify-content: center;
}
.eyebrow--light {
  color: var(--c-accent-on-dark);
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}
.btn--lg {
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}
.btn--block {
  display: flex;
  width: 100%;
}

.btn--primary {
  background: var(--c-brand);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(185, 58, 10, 0.7);
}
.btn--primary:hover {
  background: var(--c-brand-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--ghost:hover {
  background: var(--c-ink);
  color: #fff;
}

.btn--accent {
  background: var(--c-orange);
  color: var(--c-ink);
}
.btn--accent:hover {
  background: #ffa94d;
  color: var(--c-ink);
}

.btn--outline-light {
  background: transparent;
  color: var(--c-on-dark);
  border-color: rgba(250, 245, 239, 0.55);
}
.btn--outline-light:hover {
  background: var(--c-on-dark);
  color: var(--c-ink);
}

.btn .spinner {
  display: none;
  width: 1.1em;
  height: 1.1em;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
.btn[data-loading] .spinner {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .btn[data-loading] .spinner {
    animation: spin 0.7s linear infinite;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- small components ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--c-tint);
  color: var(--c-brand-hover);
  font-size: 0.8125rem;
  font-weight: 700;
}
.badge--flagship {
  background: var(--c-ink);
  color: #fff;
}
.badge--sample {
  background: var(--c-cream-deep);
  color: var(--c-ink-soft);
  border: 1px dashed var(--c-border);
}

.notice {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  max-width: 40rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  background: var(--c-tint);
  color: var(--c-ink);
  font-size: var(--fs-sm);
}
.notice .icon {
  margin-top: 0.15rem;
  color: var(--c-brand);
}

.fineprint {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
}

.chip {
  min-height: 2.5rem;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-white);
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover {
  border-color: var(--c-ink);
}
.chip[aria-pressed='true'] {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-white);
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover {
  background: var(--c-ink);
  color: #fff;
}

/* Scroll-reveal (applied by reveal.js only to elements that start below the fold) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* Lock page scroll while a modal dialog is open */
html.is-locked {
  overflow: hidden;
}

/* Touch screens: controls get a full 44px target (desktop keeps the denser sizes). */
@media (pointer: coarse) {
  .chip,
  .btn--sm {
    min-height: 2.75rem;
  }
}

/* nav.css */
/* Sticky navigation with scroll-spy + mobile menu */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 241, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.is-stuck {
  border-color: var(--c-line);
  box-shadow: 0 8px 24px -20px rgba(28, 25, 23, 0.6);
}

.nav__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 2.75rem;
  border-radius: var(--r-sm);
}
.nav__logo img {
  width: auto;
  height: 2.6rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
}
.nav__link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover {
  background: var(--c-tint);
  color: var(--c-ink);
}
.nav__link[aria-current='true'],
.nav__link[aria-current='page'] {
  background: var(--c-tint);
  color: var(--c-brand-hover);
}

.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1.5px solid var(--c-border);
  border-radius: 50%;
  background: var(--c-white);
}
.nav__toggle-icons {
  display: grid;
}
.nav__icon-close,
.nav[data-open] .nav__icon-open {
  display: none;
}
.nav[data-open] .nav__icon-close {
  display: block;
}

/* ----- mobile / tablet: dropdown panel ----- */
@media (max-width: 74.99rem) {
  .nav__menu {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100dvh - var(--nav-h));
    padding: 0.75rem var(--gutter) 1.25rem;
    overflow-y: auto;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 24px 40px -24px rgba(28, 25, 23, 0.45);
  }
  .nav[data-open] .nav__menu {
    display: flex;
  }
  .nav__cta {
    width: 100%;
  }
}
@media (max-width: 74.99rem) and (prefers-reduced-motion: no-preference) {
  .nav[data-open] .nav__menu {
    animation: nav-drop 0.22s var(--ease);
  }
  @keyframes nav-drop {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
}

/* Landscape phones: two columns so "Enroll now" fits without scrolling the menu. */
@media (max-width: 74.99rem) and (max-height: 32rem) {
  .nav__menu {
    gap: 0.4rem;
    padding-bottom: 0.75rem;
  }
  .nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
  .nav__link {
    min-height: 2.75rem;
  }
}

/* ----- desktop: inline links ----- */
@media (min-width: 75rem) {
  .nav__toggle {
    display: none;
  }
  .nav__menu {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .nav__list {
    flex-direction: row;
    gap: 0.15rem;
  }
  .nav__link {
    min-height: 2.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    white-space: nowrap; /* one line each: "Find your track" never breaks */
  }
  .nav__cta {
    white-space: nowrap;
  }
}
/* 1200-1440px: nine links and "Enroll now" share the bar, so the spacing is a little tighter (everything stays on one line). */
@media (min-width: 75rem) and (max-width: 89.99rem) {
  .nav__bar {
    gap: 0.75rem;
  }
  .nav__menu {
    gap: 0.6rem;
  }
  .nav__list {
    gap: 0;
  }
  .nav__link {
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
  }
  .nav__cta {
    padding-inline: 0.95rem;
  }
}

/* ----- scripting unavailable: show links in a scrollable strip under the logo -----
   Keyed on @media (scripting: none) rather than a JS-added class, so browsers that DO run
   scripts start with the collapsed menu on first paint and the header never changes height. */
@media (scripting: none) {
  .nav__toggle {
    display: none;
  }
}
@media (scripting: none) and (max-width: 74.99rem) {
  .nav__bar {
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
  }
  .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-basis: 100%;
    max-height: none;
    padding: 0;
    overflow-x: auto;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__list {
    flex-direction: row;
  }
  .nav__link {
    white-space: nowrap;
  }
  .nav__cta {
    width: auto;
    flex: none;
  }
}

/* hero.css */
/* Hero + animated circuit illustration */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* full screen on phones and laptops, but never a tall empty band on big monitors */
  min-height: min(calc(100svh - var(--nav-h)), 40rem);
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2.25rem);
  overflow: clip;
  background:
    radial-gradient(52rem 34rem at 88% 8%, rgba(247, 147, 30, 0.2), transparent 62%),
    radial-gradient(36rem 28rem at -5% 100%, rgba(232, 80, 26, 0.1), transparent 62%),
    var(--c-cream);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(100% - 2 * var(--gutter), var(--container));
}
@media (min-width: 62rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 3rem;
  }
}
@media (min-width: 90rem) {
  /* wide screens: the video becomes the main visual */
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.hero__copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.hero__title {
  font-size: var(--fs-hero);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.hero__accent {
  color: var(--c-brand);
  background: linear-gradient(transparent 66%, rgba(247, 147, 30, 0.38) 66%);
}

.hero__lead {
  max-width: 34rem;
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
}
.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__points .icon {
  padding: 0.12rem;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  stroke-width: 3;
}

/* ----- video (replaces the old illustration; same grid cell) ----- */
.hero__media {
  width: 100%;
  min-width: 0;
}
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(247, 147, 30, 0.45), transparent 70%),
    linear-gradient(135deg, #2a1c12, #6b3210);
  box-shadow: var(--shadow-lg);
}
.video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
/* The self-hosted poster comes wrapped in <picture>: take the wrapper out of the grid too, so the play
   button is the only grid item and sits in the exact centre of the video. */
.video__play > picture {
  position: absolute;
  inset: 0;
}
.video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.video__play:hover .video__poster {
  transform: scale(1.03);
}
.video__play::after {
  /* soft vignette so the play button stays readable on any thumbnail */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(28, 25, 23, 0.45));
}
.video__button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(3.75rem, 14%, 5.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  box-shadow: 0 0 0 0.5rem rgba(255, 248, 241, 0.35), 0 16px 40px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.video__button .icon {
  margin-left: 0.12em; /* optically centre the triangle */
}
.video__play:hover .video__button {
  background: var(--c-brand-hover);
  transform: scale(1.08);
}
.video__play:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: -6px;
}
.video__button--idle {
  background: rgba(255, 248, 241, 0.16);
  color: var(--c-on-dark);
  box-shadow: 0 0 0 0.5rem rgba(255, 248, 241, 0.1);
}
.video__soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
}
.video__soon-text {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-on-dark);
}
.video__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .video__play:not(:hover) .video__button {
    animation: video-pulse 2.6s ease-in-out infinite;
  }
  @keyframes video-pulse {
    50% {
      transform: scale(1.06);
    }
  }
}

/* ----- phones (portrait) ----- */
@media (max-width: 29.99rem) {
  .hero {
    padding-top: 1.5rem;
  }
  .hero__copy {
    gap: 1rem;
  }
  .hero .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.08em; /* keeps "Development Innovation Platform" on one line */
  }
  .hero__title {
    font-size: clamp(2.15rem, 1.1rem + 5.4vw, 2.75rem);
  }
  .hero__lead {
    font-size: 1.02rem;
  }
  /* equal, full-width, thumb-friendly buttons instead of three ragged widths */
  .hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 0.6rem;
  }
  .hero__actions .btn {
    justify-content: center;
    min-height: 3rem;
    padding-block: 0.7rem;
  }
}

/* ----- landscape phones: size the heading by screen height, not width ----- */
@media (max-height: 32rem) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding-block: 1.25rem 1.75rem;
  }
  .hero__title {
    font-size: clamp(2rem, 10vh, 3rem);
  }
  .hero__copy {
    gap: 0.8rem;
  }
}

/* ----- glassmorphism around the hero video -----
   A frosted-glass frame (translucent white, blurred backdrop, light rim) floating over two soft
   colour glows, plus a frosted-glass play button. Browsers without backdrop-filter get a solid
   translucent frame instead, which still looks intentional. */
.hero__media {
  position: relative;
  isolation: isolate;
}
.hero__media::before,
.hero__media::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(36px);
  pointer-events: none;
}
.hero__media::before {
  inset: -6% auto auto -6%;
  width: 46%;
  aspect-ratio: 1;
  background: rgba(247, 147, 30, 0.55);
}
.hero__media::after {
  inset: auto -5% -10% auto;
  width: 40%;
  aspect-ratio: 1;
  background: rgba(232, 80, 26, 0.4);
}
.video-glass {
  padding: clamp(0.3rem, 0.6vw, 0.45rem); /* a slim glass rim around the video */
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(var(--r-lg) + 0.35rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  box-shadow:
    0 24px 60px -24px rgba(185, 58, 10, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .video-glass {
    background: rgba(255, 248, 241, 0.85);
  }
}
.video-glass .video {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px -12px rgba(28, 25, 23, 0.55);
}

/* frosted-glass play button */
.video__play .video__button {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
}
.video__play:hover .video__button,
.video__play:focus-visible .video__button {
  border-color: rgba(255, 255, 255, 0.8);
  background: var(--c-brand);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .video__play .video__button {
    background: var(--c-brand);
  }
}

/* programs.css */
/* Programs: landing-page cards, course pages (/programs/<id>), module grid + preview */

.programs {
  background: var(--c-cream);
  padding-top: clamp(1.25rem, 3vw, 2.5rem); /* sits right under the hero: keep the gap small */
}

/* ----- program cards (landing page + "Other programs") ----- */
.program-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
@media (min-width: 36rem) {
  .program-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 62rem) {
  .programs .program-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.program-cards > li {
  display: flex;
  min-width: 0;
}
.program-card {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  container-type: inline-size; /* the footer adapts to the card's own width */
  flex-direction: column;
  overflow: clip;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.program-card:hover,
.program-card:focus-within {
  border-color: var(--c-ink-muted);
  box-shadow: var(--shadow-md);
}

/* banner: dark brand panel with a glow in the programme's accent colour */
.program-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 15%, color-mix(in srgb, var(--accent-a) 55%, transparent), transparent 70%),
    radial-gradient(60% 80% at 10% 100%, color-mix(in srgb, var(--accent-b) 40%, transparent), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #1c1917, #3a2416);
}
.program-card__tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.4rem;
  background: var(--c-success);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* course artwork (assest_images/Course_card, 3:2 with the course title printed in it): shown whole, so the
   frame takes the artwork's own 3:2 shape instead of the 16:9 used for the drawn banner */
.program-card__media.has-image {
  aspect-ratio: 3 / 2;
  background: var(--c-cream-deep);
}
.program-card__media picture {
  position: absolute;
  inset: 0;
}
.program-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .program-card:hover .program-card__img {
    transform: scale(1.04);
  }
}
/* The artwork prints "DIP FOUNDATION" and the course title along the top (left-aligned or centred); its
   bottom-right corner is only decorative shapes, so the level tag sits there instead of covering text. */
.program-card__media.has-image .program-card__tag {
  z-index: 1;
  top: auto;
  right: 0.75rem;
  bottom: 0.75rem;
  left: auto;
}
.program-card__art {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem 0.75rem;
  text-align: center;
}
.program-card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--c-accent-on-dark);
  font-size: 1.5rem;
}
.program-card__art-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.program-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem 1.1rem;
}
.program-card__name {
  font-size: 1.05rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.program-card__link {
  color: var(--c-ink);
  text-decoration: none;
}
/* the title link covers the whole card, so clicking anywhere opens the course */
.program-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
.program-card__link:focus-visible {
  outline: none;
}
.program-card:has(.program-card__link:focus-visible) {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
.program-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 0.875rem;
  color: var(--c-ink-soft);
}
.program-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.program-card__chips li {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--c-line);
  border-radius: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-ink-soft);
}
.program-card__chips .program-card__chip--mode {
  border-color: transparent;
  background: #dcf3e5;
  color: var(--c-success);
}
.program-card__foot {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-line);
}
.program-card__fee {
  display: grid;
  flex: 1;
  min-width: 0;
}
.program-card__fee-label {
  font-size: 0.75rem;
  color: var(--c-ink-muted);
}
.program-card__fee strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  white-space: nowrap;
}
.program-card__discount {
  position: relative;
  z-index: 1; /* above the stretched title link */
  display: inline-grid;
  place-items: center;
  min-height: 2.75rem;
  border-radius: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.program-card__discount {
  padding: 0 0.85rem;
  background: var(--c-tint);
  color: var(--c-brand);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.program-card__discount:hover {
  background: var(--c-brand);
  color: #fff;
}
/* narrow cards (four across, or small phones): fee on its own line, the two buttons below it */
@container (max-width: 19rem) {
  .program-card__foot {
    flex-wrap: wrap;
  }
  .program-card__fee {
    flex: 1 0 100%;
  }
  .program-card__discount {
    flex: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .program-card:hover {
    transform: translateY(-3px);
  }
}

/* ----- course page ----- */
.course-page {
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(3rem, 6vw, 5rem);
}
.course-page .breadcrumb {
  margin-bottom: 1.25rem;
}
@media (pointer: coarse) {
  .course-page .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}
.course-page .program__title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
}
@media (min-width: 62rem) {
  /* three "other programs" sit in one row */
  .course-page__others .program-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.course-page__others {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.course-page__others-title {
  margin-bottom: 1.25rem;
  font-size: var(--fs-xl);
}

/* ----- course panel ----- */
.program {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  overflow: clip;
}
.program::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}
@media (min-width: 62rem) {
  .program {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
  }
}

.program__intro {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1rem;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.program__title {
  font-size: var(--fs-xl);
  letter-spacing: -0.025em;
}
.program__summary {
  color: var(--c-ink-soft);
  font-size: var(--fs-md);
}
.program__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem 1.25rem;
  width: 100%;
  padding-block: 1rem;
  border-block: 1px solid var(--c-line);
}
.program__facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
.program__facts dd {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

.modules__title {
  margin-bottom: 1rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

/* ----- module grid ----- */
.modules__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 48rem) {
  .modules__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 21rem) {
  /* ~320px phones: two columns would be only ~115px each */
  .modules__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.modules__grid > li {
  display: flex;
  min-width: 0;
}
.module {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-cream);
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.2s;
}
.module:hover {
  border-color: var(--c-ink-muted);
  transform: translateY(-2px);
}
.module[aria-pressed='true'] {
  border-color: var(--c-brand);
  background: var(--c-tint);
  box-shadow: 0 0 0 3px rgba(185, 58, 10, 0.16);
}
.module__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: var(--c-ink);
  color: var(--c-accent-on-dark);
}
.module__num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-ink-muted);
}
.module__name {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}
.module__desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--c-ink-soft);
}
html:not(.js-ready) .module {
  cursor: default;
}
html:not(.js-ready) .module:hover {
  transform: none;
}

/* ----- module preview ----- */
.module-preview {
  margin-top: 1rem;
}
.module-detail {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-radius: var(--r-md);
  background: var(--c-ink);
  color: var(--c-on-dark);
}
.module-detail + .module-detail {
  margin-top: 0.75rem;
}
/* With scripting, all previews share one grid cell and cross-fade, so switching is quick and never
   jumps in height. Keyed on @media (scripting) rather than a JS-added class so the very first paint
   already shows just the first module (no flash of six stacked previews, no layout shift). */
@media (scripting: enabled) {
  .module-preview {
    display: grid;
  }
  .module-detail,
  .module-detail + .module-detail {
    grid-area: 1 / 1;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
  }
  .module-detail.is-active {
    opacity: 1;
    visibility: visible;
  }
}
/* Fades only once programs.js is running, i.e. for clicks, never on page load. */
@media (prefers-reduced-motion: no-preference) {
  .modules.is-ready .module-detail {
    transition: opacity 0.18s ease, visibility 0s 0.18s;
  }
  .modules.is-ready .module-detail.is-active {
    transition: opacity 0.18s ease 0.04s, visibility 0s;
  }
}
.module-detail__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-on-dark);
}
.module-detail__title {
  font-size: var(--fs-lg);
}
.module-detail p:not(.module-detail__kicker) {
  color: var(--c-on-dark-muted);
}
.module-detail__topics {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.module-detail__topics li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.module-detail__topics .icon {
  margin-top: 0.2rem;
  color: var(--c-accent-on-dark);
}

/* ----- kids curriculum ----- */
.curriculum__list {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 40rem) {
  .curriculum__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.curriculum__item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-cream);
}
.curriculum__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 700;
}
.curriculum__item p {
  padding-top: 0.2rem;
  font-weight: 600;
}

/* course page: "Enroll in this track" + "Ask on WhatsApp" side by side, stacked full-width on phones */
.program__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 29.99rem) {
  .program__actions {
    display: grid;
    width: 100%;
  }
  .program__actions .btn {
    justify-content: center;
  }
}

/* finder.css */
/* Age-based track finder */

.finder {
  background: var(--c-cream-deep);
}
.finder__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 62rem) {
  .finder__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 3.5rem;
  }
}
.finder__side {
  display: grid;
  gap: 0.9rem;
}

/* The age input needs JS; without it the full list below is the finder. */
html:not(.js-ready) .finder__control {
  display: none;
}
.finder__control {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.finder__label {
  font-weight: 700;
}

.stepper {
  display: inline-flex;
  max-width: 100%;
  align-items: stretch;
  width: fit-content;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-white);
  overflow: hidden;
}
.stepper:focus-within {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
.stepper__btn {
  display: grid;
  place-items: center;
  width: 3.25rem;
  min-height: 3.25rem;
  border: 0;
  background: transparent;
  transition: background-color 0.2s;
}
.stepper__btn:hover {
  background: var(--c-tint);
}
.stepper__input {
  flex: 1 1 6rem;
  min-width: 0;
  width: 6rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input:focus-visible {
  outline: none;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.finder__status {
  min-height: 1.6em;
  font-weight: 600;
  color: var(--c-ink-soft);
}

.finder__results {
  display: grid;
  gap: 0.75rem;
}
.result {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem 1rem 1.4rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  overflow: clip;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.2s;
}
.result::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent-a), var(--accent-b));
}
.result:hover {
  border-color: var(--c-ink-muted);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}
.result__name {
  font-size: 1.1rem;
}
.result__meta {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
}
.result__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  font-weight: 700;
  text-decoration: none;
}
.result__link:hover {
  text-decoration: underline;
}
.result.is-match {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(185, 58, 10, 0.14);
}

/* ----- live age slider ----- */
.slider {
  display: grid;
  gap: 0.2rem;
  width: min(100%, 22rem);
  margin-top: 0.4rem;
}
.slider__input {
  --fill: 0%;
  width: 100%;
  height: 2.75rem; /* touch-friendly hit area; the visible track is drawn below */
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.slider__input:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-pill);
}
.slider__input::-webkit-slider-runnable-track {
  height: 0.6rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-brand) var(--fill), var(--c-border) var(--fill));
}
.slider__input::-moz-range-track {
  height: 0.6rem;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-brand) var(--fill), var(--c-border) var(--fill));
}
.slider__input::-webkit-slider-thumb {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.575rem;
  border: 4px solid var(--c-brand);
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s var(--ease);
}
.slider__input::-moz-range-thumb {
  width: 1.2rem;
  height: 1.2rem;
  border: 4px solid var(--c-brand);
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}
.slider__input:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
.slider__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--c-ink-muted);
}
.finder__reset {
  justify-self: start;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: var(--c-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.finder__reset:hover {
  color: var(--c-brand-hover);
}
.finder__reset[hidden] {
  display: none;
}
.slider__input.is-idle::-webkit-slider-runnable-track {
  background: var(--c-line);
}
.slider__input.is-idle::-moz-range-track {
  background: var(--c-line);
}
.slider__input.is-idle::-webkit-slider-thumb {
  border-color: var(--c-ink-muted);
}
.slider__input.is-idle::-moz-range-thumb {
  border-color: var(--c-ink-muted);
}

@media (min-width: 90rem) {
  .slider {
    width: min(100%, 28rem);
  }
}

/* how.css */
/* How it works — four steps */

.how {
  background: var(--c-cream);
}

.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.step__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--gradient-brand);
  color: var(--c-ink);
  font-size: 1.15rem;
}
.step__num {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-tint);
  -webkit-text-stroke: 1.5px var(--c-line);
}
.step__title {
  margin-top: 0.4rem;
  font-size: var(--fs-lg);
}
.step__body {
  color: var(--c-ink-soft);
}

/* Connector line between steps on wide screens */
@media (min-width: 64rem) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 3.25rem;
    left: calc(100% + 0.1rem);
    width: 1.05rem;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient-brand);
  }
}

/* gallery.css */
/* Photo gallery + lightbox */

.gallery {
  background: var(--c-white);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
html:not(.js-ready) .filters {
  display: none;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 40rem) {
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 64rem) {
  .gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: var(--c-tint);
  overflow: hidden;
}
.gallery__item picture {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover .gallery__img {
  transform: scale(1.06);
}
.gallery__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 2rem 0.8rem 0.7rem;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.82));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-visible .gallery__caption {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .gallery__caption {
    opacity: 1;
    transform: none;
  }
}

/* ----- lightbox (native <dialog>) ----- */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop {
  background: rgba(16, 13, 11, 0.94);
}
.lightbox[open] {
  display: grid;
}
.lightbox__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 3.5rem 0.75rem 4rem;
}
@media (min-width: 48rem) {
  .lightbox__inner {
    padding: 3.5rem 5rem 4.5rem;
  }
}
.lightbox__figure {
  touch-action: pan-y; /* horizontal swipes change photo; vertical gestures still scroll */
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100dvh - 11rem);
  width: auto;
  height: auto;
  border-radius: var(--r-sm);
  background: var(--c-dark-2);
  object-fit: contain;
}
.lightbox__caption {
  display: grid;
  gap: 0.15rem;
  text-align: center;
  font-weight: 600;
}
.lightbox__note {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--c-on-dark-muted);
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgba(250, 245, 239, 0.5);
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.7);
  color: #fff;
  transition: background-color 0.2s, color 0.2s;
}
.lightbox__btn:hover {
  background: #fff;
  color: var(--c-ink);
}
.lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  translate: 0 -50%;
}
.lightbox__prev {
  left: 0.5rem;
}
.lightbox__next {
  right: 0.5rem;
}
@media (max-width: 47.99rem) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 0.75rem;
    translate: none;
  }
  .lightbox__prev {
    left: calc(50% - 4rem);
  }
  .lightbox__next {
    right: calc(50% - 4rem);
  }
}
/* Landscape phones are short: give the photo the height and move the arrows back to the sides. */
@media (max-height: 32rem) and (orientation: landscape) {
  .lightbox__inner {
    padding: 0.5rem 4rem 2.25rem;
  }
  .lightbox__img {
    max-height: calc(100dvh - 4.25rem);
  }
  .lightbox__caption {
    font-size: var(--fs-sm);
  }
  .lightbox__prev,
  .lightbox__next {
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
  }
  .lightbox__prev {
    left: 0.5rem;
    right: auto;
  }
  .lightbox__next {
    left: auto;
    right: 0.5rem;
  }
  .lightbox__close {
    top: 0.5rem;
  }
}
.lightbox__count {
  position: absolute;
  top: 1.2rem;
  left: 1rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-on-dark-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox__img {
    animation: lb-in 0.3s var(--ease);
  }
  @keyframes lb-in {
    from {
      opacity: 0;
      transform: scale(0.97);
    }
  }
}

.gallery__more {
  display: grid;
  justify-items: center;
  margin-top: 1.75rem;
}
.gallery__more [hidden] {
  display: none;
}
.gallery__more-count {
  font-weight: 500;
  color: var(--c-ink-muted);
}

/* Without scripting there is no "Show more" button, so list every photo. */
@media (scripting: none) {
  .gallery__cell[hidden] {
    display: block !important;
  }
}

@media (min-width: 112.5rem) {
  .gallery__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ----- "All": four rows of photos scrolling in alternating directions -----
   gallery.js puts each row's photos in twice; moving the track by half its width loops without a seam.
   Spacing is padding on each cell (not flex gap) so both halves are exactly the same width. */
.marquee {
  --marquee-h: clamp(6.5rem, 4.5rem + 8vw, 11rem);
  --marquee-gap: clamp(0.5rem, 1.2vw, 0.9rem);
  display: grid;
  gap: 1rem;
}
.marquee__rows {
  display: grid;
  gap: var(--marquee-gap);
}
.marquee__row {
  overflow: hidden;
  /* soft fade at both ends */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-to-left var(--marquee-duration, 60s) linear infinite;
}
.marquee__row[data-direction='right'] .marquee__track {
  animation-name: marquee-to-right;
}
.marquee__cell {
  flex: none;
  padding-inline-end: var(--marquee-gap);
}
.marquee__cell .gallery__item {
  width: auto;
  height: var(--marquee-h);
}
.marquee__cell .gallery__caption {
  display: none; /* too small to read while moving; the lightbox shows it */
}
@keyframes marquee-to-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes marquee-to-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}
/* paused: by the button, while a row is hovered, while a photo has keyboard focus, or while off screen */
.marquee.is-paused .marquee__track,
.marquee.is-offscreen .marquee__track,
.marquee__row:hover .marquee__track,
.marquee__rows:focus-within .marquee__track {
  animation-play-state: paused;
}
.marquee__bar {
  display: flex;
  justify-content: center;
}
.marquee__toggle .icon {
  font-size: 0.9em;
}
.marquee__toggle[aria-pressed='true'] .marquee__toggle-pause,
.marquee__toggle[aria-pressed='false'] .marquee__toggle-play {
  display: none;
}
.marquee__toggle-pause,
.marquee__toggle-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
/* Reduced motion: still rows the visitor scrolls sideways themselves, without the loop copies. */
@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
  .marquee__row {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee__cell[aria-hidden='true'],
  .marquee__bar {
    display: none;
  }
}

/* partners.css */
/* Collaboration partners */

.partners {
  background: var(--c-cream);
}
.partner-cards {
  display: grid;
  gap: 1.25rem;
  max-width: 56rem;
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .partner-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.partner-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.partner-card__logo {
  display: grid;
  place-items: center;
  height: 8.5rem;
  margin-bottom: 0.5rem;
  padding: 1rem;
  border-radius: var(--r-md);
  background: var(--c-cream);
}
.partner-card__img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 6.5rem;
  object-fit: contain;
}
.partner-card__name {
  font-size: var(--fs-lg);
}
.partner-card__desc {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-brand-hover);
}
.partner-card__text {
  color: var(--c-ink-soft);
}
.partners .fineprint {
  margin-top: 1.5rem;
  text-align: center;
}

/* Collaboration scope badge: International (Armath) / National (ICT Division) */
.partner-card__scope {
  justify-self: start;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-on-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 90rem) {
  .partner-cards {
    max-width: 64rem;
  }
}

/* Laptops and up: logo beside the text, tighter spacing, so the whole section fits on one screen
   (about 650px of visible height on 1280x720 and 1366x768 laptops) when "Collaboration" is clicked. */
@media (min-width: 62rem) {
  .partners.section {
    padding-block: 3rem;
  }
  .partners .section__head {
    margin-bottom: 1.5rem;
  }
  .partner-cards {
    max-width: 66rem;
  }
  .partner-card {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 0.4rem;
    align-items: start;
    padding: 1.25rem;
  }
  .partner-card__logo {
    grid-row: 1 / span 4;
    height: 8.5rem;
    margin-bottom: 0;
    padding: 0.75rem;
  }
  .partner-card__img {
    max-height: 6.5rem;
  }
  .partners .fineprint {
    margin-top: 1rem;
  }
}

/* testimonials.css */
/* Stories carousel of video cards (scroll-snap; buttons + dots are an enhancement) */

.testimonials {
  background: var(--c-cream-deep);
}

.carousel__track {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0 1rem;
  overflow-x: auto;
  overflow-y: hidden; /* a 2px rounding overflow used to show a stray vertical scrollbar */
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; /* without JS the scrollbar is the only way to reach the other quotes */
  border-radius: var(--r-md);
}
/* With JS the arrows, dots and swipe do that job, so the bar goes away. */
.js-ready .carousel__track {
  scrollbar-width: none;
}
.js-ready .carousel__track::-webkit-scrollbar {
  display: none;
}
/* Story card: a video (the hero's click-to-play facade, see hero.css) with a label and title below */
.story {
  display: grid;
  flex: 0 0 min(100%, 40rem);
  align-content: start;
  gap: 1rem;
  padding: clamp(0.75rem, 2vw, 1rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}
/* two side by side from tablet width up */
@media (min-width: 48rem) {
  .story {
    flex-basis: calc((100% - 1rem) / 2);
  }
}
.story__video {
  border-radius: var(--r-md);
  box-shadow: none;
}
.story__body {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.35rem 0.4rem;
}
.story__label {
  color: var(--c-brand);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.story__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.4;
}

.carousel__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
html:not(.js-ready) .carousel__controls {
  display: none;
}
.dots {
  display: flex;
  gap: 0.15rem;
}
/* 44px hit area around a small visual dot */
.dot {
  position: relative;
  width: 2.25rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
}
.dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--c-border);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), background-color 0.3s;
}
.dot[aria-current='true']::before {
  width: 1.75rem;
  border-radius: var(--r-pill);
  background: var(--c-brand);
}

@media (pointer: coarse) {
  .dot {
    width: 2.75rem;
  }
}

/* faq.css */
/* FAQ accordion. Without JS every answer is visible; faq.js upgrades headings into buttons. */

.faq {
  background: var(--c-white);
}
.faq__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 62rem) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 4rem;
  }
  .faq .section__head {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
    margin-bottom: 0;
  }
}

.faq__list {
  display: grid;
  gap: 0.75rem;
}
.faq__item {
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-cream);
  transition: border-color 0.2s, background-color 0.2s;
}
.faq__item.is-open {
  border-color: var(--c-ink);
  background: var(--c-white);
}

.faq__q {
  padding: 1.1rem 1.25rem;
  font-size: 1.05rem;
}
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 3rem;
  padding: 1.1rem 1.25rem;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}
.faq__q:has(.faq__trigger) {
  padding: 0;
}
.faq__trigger .icon {
  transition: transform 0.3s var(--ease);
}
.faq__trigger[aria-expanded='true'] .icon {
  transform: rotate(180deg);
}

.faq__a-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--c-ink-soft);
}
.js-ready .faq__a {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.3s var(--ease), visibility 0s 0.3s;
}
.js-ready .faq__a-inner {
  min-height: 0;
  overflow: hidden;
}
.js-ready .faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.3s var(--ease), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .faq__a,
  .js-ready .faq__item.is-open .faq__a {
    transition: none;
  }
}

/* cta.css */
/* Closing call to action */

.cta {
  background: var(--c-cream);
}
.cta__card {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(30rem 20rem at 100% 0%, rgba(247, 147, 30, 0.3), transparent 65%),
    radial-gradient(24rem 16rem at 0% 100%, rgba(232, 80, 26, 0.22), transparent 65%),
    var(--c-dark);
  color: var(--c-on-dark);
  box-shadow: var(--shadow-lg);
  overflow: clip;
}
@media (min-width: 62rem) {
  .cta__card {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: 3rem;
  }
}
.cta__copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.cta__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.025em;
}
.cta__lead {
  max-width: 32rem;
  color: var(--c-on-dark-muted);
  font-size: var(--fs-md);
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.cta__contacts {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(250, 245, 239, 0.18);
  border-radius: var(--r-md);
  background: rgba(250, 245, 239, 0.06);
}
.cta__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  overflow-wrap: anywhere;
}
.cta__contacts .icon {
  margin-top: 0.15rem;
  color: var(--c-accent-on-dark);
}
.cta__contacts a {
  color: var(--c-on-dark);
}
.cta__contacts a:hover {
  color: var(--c-accent-on-dark);
}
.cta__contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}

/* associates.css */
/* "Working with" logo row, above the footer */

.associates {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--c-line);
  background: var(--c-white);
  text-align: center;
}
.associates__title {
  margin-bottom: 1.5rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}
/*
 * Wrapping row of equal cards: --cols per row, and an incomplete last row is centred
 * instead of stranded on the left, whatever the number of logos.
 */
.associates__row {
  --cols: 2;
  --gap: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  max-width: 60rem;
  margin-inline: auto;
}
@media (min-width: 40rem) {
  .associates__row {
    --cols: 3;
  }
}
@media (min-width: 64rem) {
  .associates__row {
    --cols: 5;
  }
}
.associates__item {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  min-width: 0;
}
.associates__item {
  display: grid;
  place-items: center;
  height: 7.5rem;
  padding: 1rem 1.25rem;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.associates__item:hover {
  border-color: var(--c-ink-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
/* The logo box is the card's inner area; every logo is scaled to fit inside it, whatever its shape. */
.associates__item picture {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.associates__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.associates .fineprint {
  margin-top: 1.25rem;
}

@media (min-width: 90rem) {
  .associates__item {
    height: 8.5rem;
  }
}

/* contact.css */
/* Contact section + Google Map */

.contact {
  background: var(--c-white);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* without this the map's min-height/aspect-ratio widens the column past the screen */
  gap: 2rem;
  align-items: stretch;
}
@media (min-width: 62rem) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 3.5rem;
  }
}
.contact__info {
  display: grid;
  align-content: start;
  gap: 1.5rem;
}
.contact__info .section__head {
  margin-bottom: 0;
}

.contact__list {
  display: grid;
  gap: 1rem;
}
.contact__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.contact__list .icon {
  flex: none;
  box-sizing: content-box;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.55rem;
  border-radius: 50%;
  background: var(--c-tint);
  color: var(--c-brand);
}
.contact__list a {
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (pointer: coarse) {
  .contact__list a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
}
.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.btn--whatsapp,
.btn--messenger {
  color: #fff;
}
.btn--whatsapp {
  background: var(--c-whatsapp);
}
.btn--messenger {
  background: var(--c-messenger);
}
.btn--whatsapp:hover,
.btn--messenger:hover {
  color: #fff;
  filter: brightness(0.92);
}

/* ----- map ----- */
.map {
  position: relative;
  min-width: 0;
  height: clamp(18rem, 75vw, 28rem);
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-cream-deep);
  box-shadow: var(--shadow-md);
}
@media (min-width: 62rem) {
  .map {
    height: auto;
    min-height: 28rem;
  }
}
.map__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: 1.5rem;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(28, 25, 23, 0.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(28, 25, 23, 0.05) 39px 40px),
    var(--c-cream-deep);
}
.map__placeholder > .icon {
  box-sizing: content-box;
  width: 2rem;
  height: 2rem;
  padding: 0.9rem;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
}
.map__frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 90rem) {
  .map {
    min-height: 32rem;
  }
}

/* leadership.css */
/* Leadership page (/leadership) */

.leaders {
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2.5rem, 5vw, 4rem);
  background: var(--c-cream);
}
.leaders .breadcrumb {
  margin-bottom: 1.25rem;
}

/* Founder first, Chairperson below: one full-width card per row at every width. On desktop each card
   puts a large portrait on the left and the text on the right (see the end of this file). */
.leaders__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}
@media (min-width: 48rem) {
  .leaders__grid {
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.leader {
  display: grid;
  overflow: clip;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}
.leader__photo {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--c-tint), var(--c-cream-deep));
}
.leader__photo picture,
.leader__photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.leader__photo img {
  object-fit: cover;
  object-position: top; /* keep faces in frame */
}
.leader__initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 700;
  color: var(--c-brand);
  letter-spacing: 0.04em;
}

.leader__body {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.leader__role {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-brand);
}
.leader__name {
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.leader__short {
  color: var(--c-ink-soft);
}

/* "Read full bio": native <details>, so it works by keyboard and without JavaScript */
.leader__bio {
  border-block: 1px solid var(--c-line);
}
.leader__bio summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding-block: 0.5rem;
  font-weight: 700;
  color: var(--c-brand);
  list-style: none;
  cursor: pointer;
}
.leader__bio summary::-webkit-details-marker {
  display: none;
}
.leader__bio summary:hover {
  color: var(--c-brand-hover);
}
.leader__bio summary:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.leader__bio summary .icon {
  transition: transform 0.25s var(--ease);
}
.leader__bio[open] summary .icon {
  transform: rotate(180deg);
}
.leader__bio-text {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1rem;
  color: var(--c-ink-soft);
}

.leader__quote {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 4px solid var(--c-orange);
  border-radius: var(--r-md);
  background: var(--c-cream);
}
.leader__quote p {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.5;
}
.leader__quote footer {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-muted);
}

/* "Join our mission" */
.leaders-cta {
  padding-block: 0 clamp(3rem, 6vw, 5rem);
  background: var(--c-cream);
}
.leaders-cta__card {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(247, 147, 30, 0.28), transparent 60%),
    var(--c-ink);
  color: var(--c-on-dark);
}
.leaders-cta__title {
  font-size: var(--fs-2xl);
  color: #fff;
}
.leaders-cta__text {
  max-width: 40rem;
  font-size: var(--fs-md);
  color: var(--c-on-dark-muted);
}

/* Desktop and tablets: a smaller portrait beside the role and name, so both leaders - photo and
   name - are on screen as soon as the page opens. The short bio, full bio and quote run full width. */
@media (min-width: 48rem) and (min-height: 32.01rem) {
  .leader {
    grid-template-columns: clamp(7.5rem, 34%, 12rem) minmax(0, 1fr);
    column-gap: clamp(1rem, 2.5vw, 1.75rem);
    row-gap: 0.9rem;
    align-items: end;
    padding: clamp(1.25rem, 2.5vw, 2rem);
  }
  .leader__body {
    display: contents;
  }
  .leader__photo {
    grid-row: 1 / span 2;
    align-self: start;
    overflow: clip;
    border-radius: var(--r-md);
  }
  .leader__initials {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
  }
  .leader__role,
  .leader__name {
    grid-column: 2;
  }
  .leader__role {
    align-self: end;
  }
  .leader__name {
    align-self: start;
  }
  .leader__short,
  .leader__bio,
  .leader__quote {
    grid-column: 1 / -1;
    align-self: start;
  }
}

/* Wide single-column screens (large phones in landscape, small tablets) and short landscape screens:
   photo beside the text, so a portrait never fills the whole screen. */
@media (min-width: 34rem) and (max-width: 47.99rem), (max-height: 32rem) and (orientation: landscape) {
  .leaders__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .leader {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
  }
  .leader__photo {
    position: sticky;
    top: calc(var(--nav-h) + 0.5rem);
  }
}
/* phones: a slightly shorter portrait keeps the name in view */
@media (max-width: 33.99rem) {
  .leader__photo {
    aspect-ratio: 5 / 4;
  }
}

/* Desktop: the whole of both cards is visible when the page opens at 100% zoom (from 1366x768 up),
   so the header is one compact row (title left, intro right) and the cards are a little tighter. */
@media (min-width: 62rem) {
  .leaders {
    padding-top: 0.75rem;
  }
  .leaders .breadcrumb {
    margin-bottom: 0.5rem;
  }
  .leaders .section__head {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'kicker kicker' 'title intro';
    align-items: end;
    column-gap: clamp(2rem, 5vw, 4rem);
    row-gap: 0.3rem;
    max-width: none;
    margin-bottom: 1.25rem;
  }
  .leaders .section__head .eyebrow {
    grid-area: kicker;
  }
  .leaders .section__title {
    grid-area: title;
    font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem);
  }
  .leaders .section__lead {
    grid-area: intro;
    max-width: 40rem;
    font-size: 1rem;
  }
}
@media (min-width: 48rem) and (min-height: 32.01rem) {
  .leader {
    row-gap: 0.75rem;
    padding: clamp(1.1rem, 2vw, 1.6rem);
    grid-template-columns: clamp(7rem, 30%, 10.5rem) minmax(0, 1fr);
  }
  .leader__name {
    font-size: clamp(1.4rem, 1rem + 1.1vw, 1.9rem);
  }
  .leader__short {
    font-size: 0.95rem;
  }
  .leader__bio summary {
    min-height: 2.5rem;
    padding-block: 0.3rem;
  }
  .leader__quote {
    gap: 0.4rem;
    padding: 0.9rem 1rem 0.9rem 1.25rem;
  }
  .leader__quote p {
    font-size: 1rem;
  }
}
@media (min-width: 48rem) {
  .leaders__grid {
    align-items: stretch; /* both cards the same height */
  }
}

/* Desktop: the card spans the full content width. A large portrait fills the left column (and stays in
   view while a long bio is open); role, name, short bio, full bio and quote run down the right column,
   which keeps lines at a readable length. The last row takes any spare height, so the text never spreads
   out to match a tall photo. */
@media (min-width: 62rem) and (min-height: 32.01rem) {
  .leader {
    grid-template-columns: clamp(13rem, 24%, 17rem) minmax(0, 1fr);
    grid-template-rows: repeat(4, auto) 1fr;
    column-gap: clamp(1.75rem, 3vw, 2.75rem);
    row-gap: 0.8rem;
    align-items: start;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
  }
  .leader__photo {
    grid-column: 1;
    grid-row: 1 / -1;
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
  }
  .leader__role,
  .leader__name,
  .leader__short,
  .leader__bio,
  .leader__quote {
    grid-column: 2;
  }
  .leader__role {
    align-self: start;
    margin-top: 0.25rem;
  }
  .leader__name {
    font-size: clamp(1.75rem, 1.1rem + 1.2vw, 2.4rem);
  }
  .leader__short {
    font-size: var(--fs-md);
  }
  .leader__initials {
    font-size: clamp(3.5rem, 6vw, 5rem);
  }
}

/* footer.css */
/* Footer */

.footer {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.footer a {
  color: var(--c-on-dark);
  text-underline-offset: 0.25em;
}
.footer a:hover {
  color: var(--c-accent-on-dark);
}

.footer__grid {
  display: grid;
  gap: 2.25rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 40rem) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }
}

.footer__logo {
  display: inline-block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--c-white);
}
.footer__logo-img {
  width: auto;
  height: 2.5rem;
}
.footer__tagline {
  max-width: 18rem;
  margin-top: 1rem;
  color: var(--c-on-dark-muted);
}

.footer__heading {
  margin-bottom: 0.9rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-on-dark);
}
.footer__list {
  display: grid;
  gap: 0.15rem;
}
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  text-decoration: none;
}
.footer__list a:hover {
  text-decoration: underline;
}

.footer__address {
  display: grid;
  gap: 0.75rem;
}
.footer__address p {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  overflow-wrap: anywhere;
}
.footer__address .icon {
  margin-top: 0.2rem;
  color: var(--c-accent-on-dark);
}

.footer__bar {
  border-top: 1px solid rgba(250, 245, 239, 0.14);
  padding-block: 1.25rem 2rem;
  font-size: var(--fs-sm);
  color: var(--c-on-dark-muted);
}
.footer__bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  text-align: center;
}

/* The floating buttons (back-to-top arrow + three contact buttons, about 14rem tall, bottom-right) must never sit on top of footer
   content at the end of the page. Wider than 80rem the page margin keeps them clear on their own. */
@media (max-width: 80rem) {
  .footer__bar {
    padding-bottom: 11.5rem; /* four stacked buttons (arrow + three contact buttons) */
  }
  /* Equal space both sides keeps the centred line clear of the buttons and truly centred. */
  .footer__bar-inner {
    padding-inline: 4.5rem;
  }
}

@media (pointer: coarse) {
  .footer__list a {
    display: flex; /* the whole row is the tap target, not just the word */
    min-height: 2.75rem;
  }
  .footer__address a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .footer__address p:has(> a) {
    align-items: center;
  }
}

/* modal.css */
/* Enrollment dialog + form controls (shared with the standalone /enroll page) */

.modal {
  width: min(32rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--c-white);
  color: var(--c-ink);
  box-shadow: 0 40px 80px -24px rgba(28, 25, 23, 0.55);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(28, 25, 23, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.25rem);
}
.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--c-cream-deep);
  transition: background-color 0.2s, color 0.2s;
}
.modal__close:hover {
  background: var(--c-ink);
  color: #fff;
}
.modal__head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-right: 3rem;
}
.modal__title {
  font-size: var(--fs-xl);
  letter-spacing: -0.025em;
}
.modal__desc {
  color: var(--c-ink-soft);
}

@media (max-width: 39.99rem) {
  .modal {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .modal[open] {
    animation: modal-in 0.3s var(--ease);
  }
  .modal[open]::backdrop {
    animation: fade-in 0.3s ease;
  }
  @keyframes modal-in {
    from {
      opacity: 0;
      transform: translateY(16px) scale(0.98);
    }
  }
  @keyframes fade-in {
    from {
      opacity: 0;
    }
  }
}

/* ----- form ----- */
.form {
  display: grid;
  gap: 1.1rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 700;
}
.field input,
.field select {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.65rem 0.95rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  font-size: 1rem; /* 16px: prevents iOS focus-zoom */
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover,
.field select:hover {
  border-color: var(--c-ink);
}
.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-color: var(--c-ink);
}
.field.has-error input,
.field.has-error select {
  border-color: var(--c-error);
  box-shadow: inset 0 0 0 1px var(--c-error);
}
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-error);
}
.field__error::before {
  content: '!';
  display: grid;
  flex: none;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--c-error);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.select {
  position: relative;
}
.select[hidden],
.locked[hidden] {
  display: none;
}

/* Program chosen from "Enroll in this track": name shown instead of the dropdown. */
.locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0.5rem 0.5rem 0.5rem 0.95rem;
  border: 1.5px solid var(--c-brand);
  border-radius: var(--r-md);
  background: var(--c-tint);
}
.locked__name {
  font-family: var(--font-display);
  line-height: 1.25;
}
.locked__change {
  flex: none;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--c-brand);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.locked__change:hover {
  background: var(--c-white);
  color: var(--c-brand-hover);
}
.select select {
  padding-right: 2.75rem;
  -webkit-appearance: none;
  appearance: none;
}
.select .icon {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  translate: 0 -50%;
  pointer-events: none;
}

.form__summary {
  padding: 0.9rem 1.1rem;
  border: 1.5px solid var(--c-error);
  border-radius: var(--r-md);
  background: #fff1ef;
  color: var(--c-ink);
}
.form__summary-title {
  margin-bottom: 0.35rem;
  font-weight: 700;
  color: var(--c-error);
}
.form__summary ul {
  display: grid;
  gap: 0.2rem;
  padding-left: 1.1rem;
  list-style: disc;
}
.form__summary a {
  color: var(--c-error);
  font-weight: 600;
}
.form__error {
  padding: 0.8rem 1rem;
  border-radius: var(--r-md);
  background: #fff1ef;
  color: var(--c-error);
  font-weight: 600;
}
.form__note {
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
  text-align: center;
}

/* Honeypot: kept out of sight and out of the tab order, but present in the DOM for bots. */
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ----- success state ----- */
.form-success {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding-block: 0.5rem;
}
.form-success__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--c-success);
  color: #fff;
  font-size: 1.5rem;
}
.form-success__icon .icon {
  stroke-width: 2.5;
}
.form-success__title {
  font-size: var(--fs-xl);
}
.form-success p {
  color: var(--c-ink-soft);
  overflow-wrap: anywhere;
}
.form-success:focus-visible {
  outline-offset: 6px;
}

/* contact-fab.css */
/* Floating "Contact us" button (bottom-right): one red headset button that fans out WhatsApp, Messenger and
   phone in a quarter arc (up, up-left, left) and turns into a close icon. Open state: .fab.is-open, set by
   fab.js (hover on mouse devices, tap/click, keyboard). Without JavaScript, hover and keyboard focus open it. */

.fab {
  --fab-main: 3.5rem; /* the red button */
  --fab-item: 3rem; /* each contact bubble */
  --fab-radius: 5.75rem; /* distance from the red button's centre to each bubble's centre */
  --fab-bottom: 2rem; /* distance from the bottom of the screen */
  position: fixed;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(var(--fab-bottom), calc(env(safe-area-inset-bottom) + 0.75rem));
  z-index: 60;
  display: grid;
  justify-items: end;
  gap: 0.6rem;
}
@media (max-width: 39.99rem) {
  .fab {
    --fab-main: 3.25rem;
    --fab-item: 2.75rem;
    --fab-radius: 5.25rem;
    --fab-bottom: 1.25rem;
    gap: 0.5rem;
  }
}

.fab__hub {
  position: relative;
  width: var(--fab-main);
  height: var(--fab-main);
}

/* ----- the red button ----- */
.fab__toggle {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-fab);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.18), 0 10px 24px -8px rgba(185, 28, 28, 0.7);
  transition: background-color 0.2s, box-shadow 0.2s;
}
.fab__toggle:hover {
  background: var(--c-fab-hover);
}
.fab__toggle:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 5px;
}
/* headset and close icon share one cell and swap with a quarter turn */
.fab__toggle .icon {
  grid-area: 1 / 1;
  stroke-width: 2;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.fab__toggle-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

/* ----- contact bubbles: stacked behind the button when closed, out on the arc when open ----- */
.fab__menu {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fab__menu > li {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--fab-item);
  height: var(--fab-item);
  margin: calc(var(--fab-item) / -2) 0 0 calc(var(--fab-item) / -2);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.4);
  transition: transform 0.25s var(--ease), opacity 0.15s, visibility 0s 0.25s;
}
.fab__menu > li:nth-child(1) {
  --x: 0rem;
  --y: calc(var(--fab-radius) * -1);
}
.fab__menu > li:nth-child(2) {
  --x: calc(var(--fab-radius) * -0.7071);
  --y: calc(var(--fab-radius) * -0.7071);
  --delay: 40ms;
}
.fab__menu > li:nth-child(3) {
  --x: calc(var(--fab-radius) * -1);
  --y: 0rem;
  --delay: 80ms;
}

.fab__item {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--fab-color, var(--c-ink));
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 8px 22px -8px rgba(28, 25, 23, 0.45), 0 0 0 1px var(--c-line);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.fab__item .icon {
  stroke-width: 2;
}
/* Full-colour brand logo (WhatsApp): its colours are part of the artwork, so it is drawn larger, filling the bubble. */
.fab__item .fab__logo {
  width: 72%;
  height: 72%;
}
.fab__item--whatsapp {
  --fab-color: var(--c-whatsapp);
}
.fab__item--messenger {
  --fab-color: var(--c-messenger);
}
.fab__item--phone {
  --fab-color: var(--c-ink);
}
.fab__item:hover {
  color: var(--fab-color, var(--c-ink)); /* keep the brand colour over the site-wide link hover colour */
  box-shadow: 0 10px 26px -8px rgba(28, 25, 23, 0.55), 0 0 0 1px var(--c-ink-muted);
}
.fab__item:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

/* Label pill to the left of each bubble, on hover or keyboard focus. It is also the link's accessible name. */
.fab__tip {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.5rem);
  padding: 0.35rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  color: var(--c-on-dark);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  transform: translate(0.25rem, -50%);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.2s var(--ease);
}
.fab__item:hover .fab__tip,
.fab__item:focus-visible .fab__tip {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ----- open ----- */
.fab.is-open .fab__menu > li {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--x), var(--y));
  transition: transform 0.35s var(--ease) var(--delay, 0s), opacity 0.2s var(--delay, 0s), visibility 0s;
}
.fab.is-open .fab__toggle-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
.fab.is-open .fab__toggle-close {
  opacity: 1;
  transform: none;
}
/* While open, an invisible quarter-disc behind the bubbles keeps the mouse "inside" the menu as it travels
   from the button to a bubble, so the menu does not close in the gaps. */
.fab.is-open .fab__hub::before {
  content: '';
  position: absolute;
  right: -0.75rem;
  bottom: -0.75rem;
  width: calc(var(--fab-radius) + (var(--fab-main) + var(--fab-item)) / 2 + 1.5rem);
  height: calc(var(--fab-radius) + (var(--fab-main) + var(--fab-item)) / 2 + 1.5rem);
  border-top-left-radius: 100%;
}
/* The back-to-top arrow sits where the WhatsApp bubble opens, so it steps aside while the menu is open. */
.fab.is-open .to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Without JavaScript: hover or keyboard focus opens the same menu. */
@media (scripting: none) {
  .fab__hub:is(:hover, :focus-within) .fab__menu > li {
    opacity: 1;
    visibility: visible;
    transform: translate(var(--x), var(--y));
    transition: transform 0.35s var(--ease) var(--delay, 0s), opacity 0.2s var(--delay, 0s), visibility 0s;
  }
  .fab__hub:is(:hover, :focus-within) .fab__toggle-open {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
  }
  .fab__hub:is(:hover, :focus-within) .fab__toggle-close {
    opacity: 1;
    transform: none;
  }
  .fab__hub:is(:hover, :focus-within)::before {
    content: '';
    position: absolute;
    right: -0.75rem;
    bottom: -0.75rem;
    width: calc(var(--fab-radius) + (var(--fab-main) + var(--fab-item)) / 2 + 1.5rem);
    height: calc(var(--fab-radius) + (var(--fab-main) + var(--fab-item)) / 2 + 1.5rem);
    border-top-left-radius: 100%;
  }
  .fab:has(.fab__hub:is(:hover, :focus-within)) .to-top {
    opacity: 0;
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fab__item:hover {
    transform: scale(1.08);
  }
  /* a soft ring pulses out of the closed button now and then, so it reads as tappable */
  .fab__toggle::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--c-fab);
    animation: fab-ring 3s ease-out 1.5s infinite;
  }
  .fab.is-open .fab__toggle::after {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fab__menu > li,
  .fab.is-open .fab__menu > li,
  .fab__toggle .icon {
    transition: opacity 0.15s, visibility 0s;
  }
}
@keyframes fab-ring {
  0% {
    opacity: 0.35;
    transform: scale(1);
  }
  60%,
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* Phones: while someone is typing in a form the floating button would sit on top of the fields and the keyboard. */
@media (max-width: 47.99rem) {
  body:has(.form :is(input, select, textarea):focus) .fab {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0s 0.15s;
  }
}

/* ----- back to top: an up arrow above the contact button ----- */
.to-top {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-right: calc((var(--fab-main) - 3rem) / 2); /* centred over the red button */
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 8px 24px -8px rgba(28, 25, 23, 0.5), 0 0 0 3px rgba(255, 248, 241, 0.9);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s, background-color 0.2s;
}
.to-top:hover {
  background: var(--c-brand-hover);
  color: #fff;
}
.to-top:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}
/* With scripting it appears once you have scrolled down; without it, it is always there. */
@media (scripting: enabled) {
  .to-top:not(.is-visible) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    pointer-events: none;
  }
  .to-top.is-visible {
    transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s, background-color 0.2s;
  }
}
@media (max-width: 39.99rem) {
  .to-top {
    width: 2.75rem;
    height: 2.75rem;
    margin-right: calc((var(--fab-main) - 2.75rem) / 2);
  }
}
@media (max-width: 47.99rem) {
  body:has(.form :is(input, select, textarea):focus) .to-top {
    opacity: 0;
    visibility: hidden;
  }
}

/* pages.css */
/* Flash banner + standalone pages (/enroll, 404, errors) */

.flash {
  background: var(--c-success);
  color: #fff;
}
.flash__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding-block: 0.8rem;
}
.flash__inner p {
  flex: 1 1 16rem;
}
.flash__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.flash a,
.flash a:hover {
  color: #fff;
  font-weight: 700;
}
.flash :focus-visible {
  outline-color: #fff;
}

.page {
  min-height: calc(100svh - var(--nav-h));
  padding-block: clamp(2rem, 6vw, 4.5rem);
  background:
    radial-gradient(44rem 26rem at 90% 0%, rgba(247, 147, 30, 0.16), transparent 62%),
    var(--c-cream);
}
.page__narrow {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}
.page__center {
  justify-items: center;
  text-align: center;
}
.page__head {
  display: grid;
  gap: 0.75rem;
}
.page__title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.025em;
}
.page__lead {
  font-size: var(--fs-md);
  color: var(--c-ink-soft);
}
.page__alt {
  color: var(--c-ink-soft);
}
.page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.card {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-muted);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-tint);
  -webkit-text-stroke: 3px var(--c-orange);
}

.page-simple .footer__bar {
  padding-bottom: 5.5rem;
}
