/* ============ Fonts ============ */
/* Avenir Next: Latin subsets of the licensed OTFs kept in design-source/ (git-ignored). */
@font-face {
  font-family: "Avenir Next";
  src: url("../assets/fonts/avenir-next-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("../assets/fonts/avenir-next-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("../assets/fonts/avenir-next-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("../assets/fonts/avenir-next-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Avenir Next";
  src: url("../assets/fonts/avenir-next-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Text";
  src: url("../assets/fonts/crimson-text-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ms Madi";
  src: url("../assets/fonts/ms-madi.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens (from Figma: Partner Poster - SEWA Ahmedabad) ============ */
:root {
  --ink: #1c1972;          /* display headlines */
  --purple: #412287;       /* body, tabs, tags, buttons */
  --violet: #4900a3;       /* script accent */
  --coral: #f93725;        /* inline emphasis */
  --yellow: #fcaf1f;       /* sparkles, swoosh, banner highlight */
  --teal: #5fd0b6;
  --glow: #f8b39e;         /* blurred peach glow */
  --blob: #e6dae6;         /* lavender blob behind cut-outs */
  --cream: #fcf3ee;
  --lav: #f7eefc;
  --grey: #9f9f9f;
  --line: rgba(65, 34, 135, 0.2);
  --lilac: #8f73cf;        /* dotted connector paths */
  --coral-tint: #fff1ec;   /* Fellowship card and menu hover */
  --text-soft: rgba(65, 34, 135, 0.75);   /* secondary text on light backgrounds */

  /* Dark sections (landing, AI, footer) */
  --night: #0e0a33;
  --night-2: #160f4a;
  --night-3: #1d1460;
  --night-glow: #3a2296;
  --night-violet: #2b1a7a;
  /* "How AI runs Nimaya" look: violet glow on night, under a faint blueprint grid */
  --ai-bg: radial-gradient(120% 90% at 78% 42%, var(--night-violet) 0%, var(--night-2) 48%, var(--night) 100%);
  --ai-grid: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  --shade: 18 12 64;       /* rgb channels for dark overlays and shadows: rgb(var(--shade) / 0.5) */
  --on-dark: rgba(255, 255, 255, 0.8);         /* secondary text on dark */
  --on-dark-faint: rgba(255, 255, 255, 0.5);   /* captions and meta on dark */
  --on-dark-line: rgba(255, 255, 255, 0.24);   /* rules and borders on dark */
  --ai-lilac: #c9b6ff;
  --ai-lilac-rgb: 201 182 255;
  --ai-mist: #e9e3ff;
  --ai-mist-rgb: 233 227 255;

  /* India map fills */
  --map-land: #ece4f9;
  --map-active: #cdb9f1;
  --map-new: #dfd2f6;
  --wash: linear-gradient(160deg, var(--cream) 47%, var(--lav) 100%);

  --shadow-card: -16px 16px 40px rgb(var(--shade) / 0.1);
  --shadow-lift: -16px 22px 44px rgb(var(--shade) / 0.16);   /* photo cards on hover */
  --shadow-pop: 0 14px 36px rgb(var(--shade) / 0.18), 0 2px 8px rgb(var(--shade) / 0.08);   /* popups */
  --shadow-tag: -2px 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-tile: 3px 4px 0 rgba(65, 34, 135, 0.1);

  /* Corner radii: five sizes plus pill */
  --r-xs: 6px;     /* tags, focus rings */
  --r-sm: 10px;    /* small frames, inner photos */
  --r-md: 14px;    /* tiles, list rows, popups */
  --r-card: 16px;  /* cards and media */
  --r-lg: 22px;    /* large panels and framed photos */
  --r-pill: 999px; /* buttons, chips */
  --r-tab: 20px 30px 30px 0;
  --r-banner: var(--r-lg) var(--r-lg) 0 0;

  --serif: "Crimson Text", Georgia, serif;
  --serif-tracking: -0.015em;   /* letter-spacing for every Crimson title; tweak here */
  --caps-tracking: 0.1em;
  --person-fade: linear-gradient(180deg, #000 85%, transparent 100%);   /* people cut-outs fade out at the bottom */       /* letter-spacing for small capitals labels */
  --sans: "Avenir Next", "Avenir", system-ui, sans-serif;
  --script: "Ms Madi", cursive;

  /* Type scale: six steps, the only font sizes used on the site.
     1 page and hero titles / 2 section titles / 3 sub-headings, card titles, lead lines
     4 body copy and item titles / 5 labels, nav, meta / 6 micro: credits, legends, captions
     Steps 1-2 scale smoothly with the viewport; 3-5 step down at the tablet and phone
     breakpoints (see Responsive). Exceptions, kept on purpose: the landing tagline and
     text inside SVG diagrams (map, AI network), which is sized in the drawing's units. */
  --fs-1: clamp(44px, 5vw + 8px, 72px);
  --fs-2: clamp(36px, 3.6vw + 8px, 56px);
  --fs-3: 24px;
  --fs-4: 18px;
  --fs-5: 15px;
  --fs-6: 12px;

  --section-pad: 96px;
  --title-gap: 32px;     /* section title -> content */

  /* Motion: one slow-out curve and three durations for every transition on the page */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-1: 0.6s;   /* small things: hovers, badges, nav */
  --t-2: 1s;     /* text and block reveals */
  --t-3: 1.4s;   /* images, writing, paths */

  --nav-h: 68px;
  --gutter: 60px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--purple);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }

.wrap { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; overflow: clip; padding-block: var(--section-pad); }
/* Sections alternate: gradient wash, then plain white */
main > section:nth-of-type(odd) { --section-bg: var(--cream); background: var(--wash); }
main > section:nth-of-type(even) { --section-bg: #fff; background: #fff; }
main > section, .footer { isolation: isolate; }
/* Printed-paper grain over the wash backgrounds */
main > section:nth-of-type(odd)::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.13 0 0 0 0 0.53 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.22;
  pointer-events: none;
}
/* Each section fades into the colour the next one starts with */
main > section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(160px, var(--section-pad));
  z-index: -1;
  pointer-events: none;
}
main > section:nth-of-type(odd)::after { background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); }
main > section:nth-of-type(even)::after { background: linear-gradient(to bottom, rgba(252, 243, 238, 0), var(--cream)); }

/* Serif titles: family, weight and tracking; each sets its own size */
.display,
.hero__title,
.reach__num,
.hero__num,
.news__outlet,
.story__name,
.press__title,
.callout__title,
.reach-card__place,
.values__lead {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: var(--serif-tracking);
}
.display {
  font-size: var(--fs-1);
  line-height: 1;
  color: var(--ink);
}
.line { display: block; }
.balance { text-wrap: balance; }
.body { font-size: var(--fs-4); line-height: 1.64; }
.em { color: var(--coral); font-weight: 700; }
.caption { font-size: var(--fs-5); line-height: 1; color: var(--grey); letter-spacing: 0.02em; }

/* Script accent: always the trailing word(s) of a title ("Ready" in the poster).
   Ms Madi, tilted, stroked in its own colour to thicken it, yellow swish below + earmarks top-right. */
.script {
  position: relative;
  display: inline-block;
  margin-left: 0.04em;
  padding: 0 0.08em;
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: normal;
  font-size: var(--fs-1);
  line-height: 1;
  color: var(--violet);
  -webkit-text-stroke: 0.022em currentColor;
  paint-order: stroke fill;
  transform: rotate(-7deg);
  transform-origin: 0 78%;   /* pivot on the first letter's baseline so it sits on the line */
  white-space: nowrap;
}
.display .script { margin-bottom: 0.2em; }
/* Long words tilt less so they don't climb too far */
.milestones__title .script,
.programs .display .script,
.script--wide { transform: rotate(-4deg); }
.hero .script { transform: rotate(-3.5deg); }
.script__swish {
  position: absolute;
  z-index: -1;
  left: 8%;
  top: 80%;
  width: 79%;
  aspect-ratio: 89 / 17;
  background: var(--yellow);
  -webkit-mask: url("../assets/Motifs/slash.svg") center / 100% 100% no-repeat;
  mask: url("../assets/Motifs/slash.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.script--long .script__swish {
  left: 4%;
  width: 92%;
  aspect-ratio: 159 / 9;
  -webkit-mask-image: url("../assets/Motifs/slash-2.svg");
  mask-image: url("../assets/Motifs/slash-2.svg");
}
.milestones__title .script__swish,
.programs .display .script__swish,
.script--wide .script__swish {
  left: 4%;
  width: 92%;
  aspect-ratio: 235 / 12;
  -webkit-mask-image: url("../assets/Motifs/slash-3.svg");
  mask-image: url("../assets/Motifs/slash-3.svg");
}
.script__end { position: relative; }
.script__end--tall .script__earmarks { top: calc(0.02em + var(--em-y, 0em)); }   /* last letter has an ascender (k) */
/* --em-x / --em-y nudge the marks clear of a last letter whose tail runs long (set inline per title) */
.script__earmarks {
  position: absolute;
  left: calc(100% - 0.02em + var(--em-x, 0em));
  top: calc(0.34em + var(--em-y, 0em));   /* just above x-height of the last letter */
  width: 0.4em;
  height: auto;
  pointer-events: none;
}

/* Purple number highlight ("10,000+") */
.pill-hl {
  display: inline-block;
  padding: 0.1em 0.4em;
  border-radius: var(--r-xs);
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

/* Decorations */

.glow {
  position: absolute;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(120px);
  opacity: 0.8;
  pointer-events: none;
}
.blob {
  position: absolute;
  background: var(--blob);
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  pointer-events: none;
}

/* Motifs: decorative pieces from the poster kit. Each one is absolutely placed by its
   section rule, sized with --w and tilted with --rot; --py is the scroll parallax offset. */
.motif {
  position: absolute;
  z-index: var(--z, 0);
  display: block;
  width: calc(var(--w, 24px) * var(--ws, 1));
  height: auto;
  rotate: var(--rot, 0deg);
  transform: translateY(var(--py, 0px));
  pointer-events: none;
  user-select: none;
}
/* Glows, blobs and sparkles drift with scroll too (translate keeps their own transforms intact) */
[data-parallax]:not(.motif) { translate: 0 var(--py, 0px); }
/* Black source SVGs recoloured through a mask; --c sets the colour */
.m-mask {
  background: var(--c, var(--yellow));
  -webkit-mask: var(--src) center / contain no-repeat;
  mask: var(--src) center / contain no-repeat;
}
.m-star { --src: url("../assets/Motifs/star-01.svg"); aspect-ratio: 13 / 14; }
.m-star2 { --src: url("../assets/Motifs/star-02.svg"); aspect-ratio: 21 / 25; --c: var(--purple); }

.m-shape { --src: url("../assets/Motifs/bg-shape-01.svg"); aspect-ratio: 340 / 349; --c: var(--purple); opacity: 0.06; }
/* Dotted trail drawn as a stretchable stroke (dots keep their shape at any width) */
.m-trail {
  height: 40px;
  overflow: visible;
  fill: none;
  stroke: var(--lilac);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.5 9;
  opacity: 0.6;
}

/* White card with a purple folder-tab header ("Your Beneficiaries will ✦") */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.card--tabbed { margin-top: 26px; border-top-left-radius: 0; }
.card__tab {
  position: absolute;
  left: -1px;
  bottom: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: var(--r-tab);
  background: var(--purple);
  color: #fff;
  font-size: var(--fs-4);
  font-weight: 600;
  line-height: 1.64;
  white-space: nowrap;
}
.card__tab img { width: 20px; height: auto; }
.card__body { padding: 24px; }

/* White card with a full-width purple banner ("40 Hour learning journey…") */
.card--banner { border-radius: var(--r-banner); border-bottom-left-radius: var(--r-card); border-bottom-right-radius: var(--r-card); overflow: hidden; }
.card__banner { padding: 14px 24px; background: var(--purple); color: #fff; text-align: center; }

/* Tilted tile with offset shadow (Claude / ChatGPT cards) */
.tile {
  display: block;
  padding: 12px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-tile);
}

/* Filled circle badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-3);
  line-height: 1;
  color: #fff;
}
.badge--purple { background: var(--purple); }
.badge--yellow { background: var(--yellow); color: var(--purple); }
.badge--teal { background: var(--teal); color: var(--purple); }
.badge--coral { background: var(--coral); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: var(--fs-5);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: transform var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease), translate var(--t-1) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--filled { background: var(--purple); color: #fff; box-shadow: var(--shadow-tag); }
.btn--outline { color: var(--purple); border: 1.5px solid var(--purple); }

.lottie { position: absolute; inset: 0; }
.lottie svg { display: block; }

/* ============ Navigation ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: var(--on-dark);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
  transition: height var(--t-1) var(--ease), background-color var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
@media (min-width: 901px) {
  .nav.is-scrolled { height: 56px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 28px rgb(var(--shade) / 0.06); }
  .nav.is-scrolled .nav__logo img { scale: 0.86; }
}
.nav__inner {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo img { width: auto; height: 37px; transform-origin: 0 50%; transition: scale var(--t-1) var(--ease); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: var(--fs-5); line-height: 1; color: var(--purple); white-space: nowrap; }
.nav__links a:hover { color: var(--coral); }
.nav__links a.is-active { color: var(--coral); font-weight: 600; }

main { padding-top: var(--nav-h); }

/* ============ Landing ============ */
.hero { padding-block: 64px 72px; }
.hero__glow { left: -140px; top: -120px; width: 420px; height: 420px; opacity: 0.6; }
.hero__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 640px;
}
.hero__info { position: relative; }
.hero__title {
  font-size: var(--fs-2);
  line-height: 1;
  color: var(--ink);
}
.hero__naari { font-size: var(--fs-1); }
.hero__title .line + .line { margin-top: 0.16em; }
.hero__sub {
  margin-top: 24px;
  font-size: var(--fs-4);
  font-weight: 600;
  line-height: 1.4;
  color: var(--purple);
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__watch { gap: 10px; }

/* ============ Our Why ============ */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}
.why__media { position: relative; }

.why__info .display { margin-bottom: var(--title-gap); }
.why__lead {
  margin-top: var(--title-gap);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--coral);
}
.why__lead + .body { margin-top: 6px; }

/* ============ Milestones ============ */
.milestones__title { text-align: center; }
.milestones { position: relative; }
.milestones__intro { max-width: 560px; margin: 14px auto 0; text-align: center; }
/* Journey progress: one dot per milestone, filled as it reaches the centre */

.stat {
  flex: 0 0 var(--item);
  width: var(--item);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.stat__media {
  position: relative;
  width: 100%;
  height: 230px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat__media > img { height: 210px; width: auto; object-fit: contain; }

.stat__title { font-size: var(--fs-3); font-weight: 600; line-height: 1.25; color: var(--ink);; transition: color var(--t-1) var(--ease); }

.stat__title .pill-hl { font-size: var(--fs-4); }
.stat__desc { font-size: var(--fs-5); line-height: 1.5; color: var(--purple); white-space: pre-wrap; }

/* ============ Partners ============ */
.partners__title { text-align: center; font-size: var(--fs-4); font-weight: 700; color: var(--purple); }
.ticker {
  margin-top: 24px;
  height: 104px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%);
}
.ticker__list {
  display: flex;
  align-items: center;
  gap: 72px;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.ticker__list li { position: relative; flex: none; }
.ticker__list li::after {
  content: "";
  position: absolute;
  right: -36px;
  top: 50%;
  height: 64px;
  margin-top: -32px;
  border-right: 1px solid rgba(159, 159, 159, 0.5);
}
.ticker__list img { height: 73px; width: auto; object-fit: cover; }
.ticker__list img[height="72"] { height: 72px; }

/* ============ Our Programs ============ */
.programs__head { max-width: 640px; }
.programs__head .body { margin-top: var(--title-gap); }
.programs__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: var(--title-gap);
}
.programs__cards > div { display: flex; }
.program { display: flex; flex-direction: column; width: 100%; }

.program__name { font-size: var(--fs-3); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.program .card__body { --pad: 28px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 0 var(--pad) 32px; }
/* Photo runs edge to edge under the banner; 16:9 so the people in the photos aren't cut off at the head or hands (was a 2.75:1 strip) */
.program__img { width: calc(100% + 2 * var(--pad)); margin-inline: calc(-1 * var(--pad)); aspect-ratio: 16 / 9; overflow: hidden; }
/* Photos that fill their frame */
.program__img img,
.work__img img,
.photo img,
.pillar__media img,
.frame img,
.landing__panel img,
.icard__photo img,
.carousel__item img,
.seg__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.program .btn { margin-top: auto; }

/* ============ How We Work ============ */
.work__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--title-gap);
}
.work__step { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.work__step .badge { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--section-bg, #fff); }
.work__text { margin-top: 18px; min-height: 96px; }
.work__text h3 { font-size: var(--fs-4); font-weight: 600; line-height: 1.24; color: var(--purple); }
.work__text p { margin-top: 6px; font-size: var(--fs-5); line-height: 1.4; color: var(--text-soft); }
.work__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  margin-top: 12px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

/* ============ Watch Us In Action ============ */

.watch__thumb { width: 100%; max-width: 600px; }
/* The source thumbnails carry the old chamfered gradient frame; crop it away */
.watch__frame { display: block; aspect-ratio: 803 / 516; border-radius: var(--r-sm); overflow: hidden; }

.watch__thumb:hover { --tilt-base: 0deg; }
.watch__frame img { transition: scale var(--t-3) var(--ease); width: 100%; height: 100%; object-fit: cover; transform: scale(1.24); }
.watch__thumb:hover .watch__frame img { scale: 1.05; }

/* ============ Listen to our Naaris ============ */
.voices { text-align: center; }
.voices__intro { max-width: 640px; margin: 16px auto 0; }
.voices__row { display: flex; justify-content: center; gap: 32px; margin-top: var(--title-gap); }
.voices__card { position: relative; width: 280px; }
.voices__card:nth-child(odd) .voices__thumb { --tilt-base: -2deg; }
.voices__card:nth-child(even) .voices__thumb { --tilt-base: 2deg; }
.voices__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 439 / 719;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card);
}
/* The poster and its hover preview share one framing, so the switch to video doesn't jump */
.voices__thumb img,
.voices__preview { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transform-origin: 35% 65%; }
.voices__thumb:hover { --tilt-base: 0deg; }
.voices__thumb:hover .voices__preview { scale: 1.05; }   /* matches the poster's hover zoom */
.voices__thumb::after {
  content: "";
  position: absolute;
  inset: 62% 0 0;
  background: linear-gradient(180deg, rgb(var(--shade) / 0) 0%, rgb(var(--shade) / 0.9) 100%);
  pointer-events: none;
}
/* Name sits outside the thumbnail so it overhangs the card edge */
.voices__name {
  position: absolute;
  left: -0.1em;
  bottom: -0.3em;
  z-index: 2;
  pointer-events: none;
  /* Inverts what is behind it: light over the photo, dark over the page */
  mix-blend-mode: difference;
  font-family: var(--script);
  font-size: var(--fs-1);
  line-height: 1;
  color: #fff;
  -webkit-text-stroke: 0.022em currentColor;
  paint-order: stroke fill;
  white-space: nowrap;
  transform: rotate(-7deg);
  transform-origin: 0 100%;
}

/* ============ Footer ============ */

.footer__copy { margin-top: 20px; max-width: 560px; font-size: var(--fs-5); line-height: 1.5; color: var(--text-soft); }
.footer__legal { margin-top: 14px; display: flex; gap: 20px; }
.footer__legal a { font-size: var(--fs-5); font-weight: 600; line-height: 1.5; color: var(--purple); }
.footer__social a { display: block; transition: color 0.2s ease; }
.footer__social svg { display: block; width: var(--fs-3); height: var(--fs-3); }
.footer__legal a:hover, .footer__social a:hover { color: var(--coral); }
.footer__social { display: flex; gap: 24px; }

/* ============ Motif placements ============ */
/* One large, faint star per section that drifts with scroll */
.m-big { --c: var(--purple); --w: 240px; opacity: 0.06; }
.why__big { right: 2%; top: -90px; --rot: 12deg; }
.milestones__big { left: 4%; top: -70px; --rot: -10deg; --w: 200px; }
.work__big { right: 3%; top: -80px; --rot: 8deg; }
.watch__big { left: 3%; top: -90px; --rot: -14deg; }

/* Partners: kept quiet, one star either side of the label */
.partners__title { display: flex; align-items: center; justify-content: center; gap: 14px; letter-spacing: var(--caps-tracking); text-transform: uppercase; }
.partners__star { display: block; width: 16px; }

/* Programs */
.programs__shape { left: -60px; bottom: -80px; --w: 360px; --rot: 160deg; }
.programs__head, .programs__cards { position: relative; z-index: 1; }

.programs__cards > div { position: relative; }

/* How We Work: dotted curves between the badges, a star on each badge */
.work__trail { left: 28px; top: 8px; --w: calc((100% + 20px) * 5 / 6); }
.work__step .badge::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 16px;
  aspect-ratio: 13 / 14;
  background: var(--yellow);
  -webkit-mask: url("../assets/Motifs/star-01.svg") center / contain no-repeat;
  mask: url("../assets/Motifs/star-01.svg") center / contain no-repeat;
  animation: motif-twinkle 3s ease-in-out infinite;
}
.work__step .badge--yellow::after { background: var(--purple); }
.work__step:nth-child(3n + 1) .badge::after { animation-delay: -1s; animation-duration: 3.6s; }
.work__step:nth-child(3n + 2) .badge::after { animation-delay: -2.2s; animation-duration: 2.7s; }

/* Listen to our Naaris */
.voices__row { position: relative; }
.voices__blob { left: calc(50% - 330px); top: 14%; width: 660px; height: 76%; opacity: 0.45; }
.voices__quote { left: calc(50% - 360px); top: -44px; --w: 124px; --rot: -6deg; }
/* Closing mark: the same glyph turned upside down */
.voices__quote--end { left: auto; top: auto; right: calc(50% - 360px); bottom: -44px; --rot: 174deg; }
.voices__star { --z: 2; right: -12px; top: -16px; --w: 30px; --rot: 8deg; }

/* Footer */
.footer { position: relative; overflow: clip; }

/* ============ Splash ============ */
.splash { display: none; }
.js .splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.splash.is-done { opacity: 0; visibility: hidden; }
.splash__logo { width: min(52vw, 260px); aspect-ratio: 185 / 170; }

/* ============ Nav: Programs dropdown ============ */
.nav__drop { position: relative; }
.nav__drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-5);
  line-height: 1;
  color: var(--purple);
  white-space: nowrap;
}
.nav__drop-btn svg { width: 10px; height: 10px; transition: rotate var(--t-1) var(--ease); }
.nav__drop-btn:hover, .nav__drop-btn.is-active { color: var(--coral); }
.nav__drop-btn.is-active { font-weight: 600; }
.nav__menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 20px);
  width: 320px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  translate: -50% 8px;
  transition: opacity var(--t-1) var(--ease), translate var(--t-1) var(--ease), visibility 0s linear var(--t-1);
}
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22px; }   /* hover bridge */
.nav__drop:hover .nav__menu,
.nav__drop:focus-within .nav__menu,
.nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
.nav__drop:hover .nav__drop-btn svg,
.nav__drop.is-open .nav__drop-btn svg { rotate: 180deg; }
.nav__links .nav__menu a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  white-space: normal;
  line-height: 1.3;
  transition: background-color var(--t-1) var(--ease);
}
.nav__menu span { color: var(--text-soft); }
/* Each program keeps its colour from the home Programs cards: GenAI purple, Fellowship coral */
.nav__menu a[href*="genai-ready-naari"] { --prog: var(--purple); --prog-tint: var(--lav); }
.nav__menu a[href*="future-naari-fellowship"] { --prog: var(--coral); --prog-tint: var(--coral-tint); }
.nav__menu b { color: var(--prog, var(--ink)); font-weight: 700; }
.nav__links .nav__menu a:hover,
.nav__links .nav__menu a.is-active { background: var(--prog-tint, var(--lav)); color: var(--purple); }
.nav__short { display: none; font-style: normal; color: var(--prog, inherit); }

/* ============ Page heroes (inner pages) ============ */

/* Key facts under a page title ("40 Hours · Hybrid") */
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-tile);
}
.fact b { font-size: var(--fs-4); font-weight: 700; line-height: 1.2; color: var(--ink); }
.fact span { font-size: var(--fs-5); line-height: 1.3; color: var(--text-soft); }

/* ============ Shared section pieces ============ */
.head { position: relative; z-index: 1; max-width: 760px; }
.head--center { margin-inline: auto; text-align: center; }
.head .body { margin-top: var(--title-gap); }
.head + * { margin-top: calc(var(--title-gap) * 1.5); }
/* Line break kept only on wide screens */
@media (max-width: 900px) { .br-wide { display: none; } }
/* Title and intro with a column of key facts beside them */
.head-row { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 32px 56px; }
.head-row + * { margin-top: calc(var(--title-gap) * 1.5); }
.facts--stack { flex: none; flex-direction: column; gap: 0; min-width: 220px; margin-top: 0; }
/* Plain figures split by a hairline instead of cards */
.facts--stack .fact { padding: 10px 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.facts--stack .fact + .fact { border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .head-row { flex-direction: column; align-items: stretch; }
  .facts--stack { flex-direction: row; min-width: 0; row-gap: 12px; }
  .facts--stack .fact { padding: 2px 20px; }
  .facts--stack .fact:first-child { padding-left: 0; }
  .facts--stack .fact + .fact { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .facts--stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts--stack .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
}
.sub-title { font-size: var(--fs-3); font-weight: 700; line-height: 1.3; color: var(--ink); }
.muted { color: var(--text-soft); }
.note { font-size: var(--fs-5); line-height: 1.5; font-style: italic; color: var(--text-soft); }

/* Two-column split: text beside a picture */
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.split--flip > .split__text { order: 2; }
.split__text > * + * { margin-top: 16px; }
.split__text .display { margin-bottom: calc(var(--title-gap) - 16px); }
.split__media { position: relative; display: flex; justify-content: center; }
.split__media .blob { left: 8%; top: 4%; width: 88%; height: 96%; }
.photo {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #fff;
}

/* Icon cards in a grid ("Who is this for", "Your superpowers") */
.grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.icard { position: relative; padding: 28px 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.icard__icon { width: 64px; height: 64px; margin-bottom: 18px; object-fit: contain; }

.icard h3 { font-size: var(--fs-4); font-weight: 700; line-height: 1.3; color: var(--ink); }
.icard p { margin-top: 8px; font-size: var(--fs-5); line-height: 1.55; color: var(--text-soft); }
.icard--num { padding-top: 34px; }
.icard--num .badge { position: absolute; top: -24px; width: 48px; height: 48px; font-size: var(--fs-4); }

/* Tabs: pill buttons over a panel (curriculum segments, program switch) */
.tabs__list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.tabs__btn {
  padding: 12px 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: var(--fs-5);
  font-weight: 600;
  line-height: 1.2;
  color: var(--purple);
  transition: background-color var(--t-1) var(--ease), color var(--t-1) var(--ease), border-color var(--t-1) var(--ease);
}
.tabs__btn:hover { border-color: var(--tone, var(--purple)); }
.tabs__btn[aria-selected="true"] { background: var(--tone, var(--purple)); border-color: var(--tone, var(--purple)); color: var(--tone-ink, #fff); box-shadow: var(--shadow-tag); }
/* Track colours (curriculum tabs and titles, timetable) */
.tone-purple { --tone: var(--purple); --tone-ink: #fff; }
.tone-yellow { --tone: var(--yellow); --tone-ink: var(--purple); }
.tone-teal { --tone: var(--teal); --tone-ink: var(--purple); }
.tabs__panel { position: relative; z-index: 1; margin-top: 28px; }
.tabs__panel[hidden] { display: none; }
.js .tabs__panel:not([hidden]) { animation: panel-in var(--t-2) var(--ease); }
@keyframes panel-in { from { opacity: 0; translate: 0 16px; } }
/* Big two-way switch (Impact) */
.switch { justify-content: center; }
.switch .tabs__list {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: var(--shadow-tile);
}
.switch .tabs__list::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 6px;
  width: calc(50% - 6px);
  border-radius: var(--r-pill);
  background: var(--purple);
  box-shadow: var(--shadow-tag);
  translate: calc(var(--tab-i, 0) * 100%) 0;
  transition: translate var(--t-1) var(--ease);
}
.switch .tabs__btn { position: relative; padding: 14px 28px; border: 0; background: none; font-size: var(--fs-4); }
.switch .tabs__btn[aria-selected="true"] { background: none; box-shadow: none; }
.switch__bar { display: flex; justify-content: center; }
/* Proof of change: intro, switch and figures sit close together */
.proof .head .body { margin-top: 14px; }
.proof .head + .tabs { margin-top: 28px; }
.proof .tabs__panel { margin-top: 36px; }

/* Numbered module list */
.modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: m; }
.modules li {
  counter-increment: m;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-5);
  line-height: 1.45;
  color: var(--text-soft);
}
.modules li::before {
  content: counter(m, decimal-leading-zero);
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lav);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--purple);
}
.modules b { display: block; margin-bottom: 2px; font-size: var(--fs-4); font-weight: 700; color: var(--ink); }
.seg { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.seg__intro .sub-title { margin-top: 18px; }
/* Track title in its track colour, like the selected tab */
.seg__intro .seg__title,
.seg-card > .seg__title { margin-top: 0; color: var(--tone); }
.seg__intro .body { margin-top: 10px; }

/* People (team, advisors, mentors) */
.people { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 44px 28px; }
.person { position: relative; text-align: left; }
/* Cut-outs on the page itself: no frame or backdrop, just a soft fade at the bottom */
.person__photo {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  mask-image: var(--person-fade);
}
.person__photo img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* every cut-out fills its frame, so all heads sit at the same height */
  object-position: 50% 0;
}
.person__name { margin-top: 16px; font-size: var(--fs-4); font-weight: 700; line-height: 1.3; color: var(--ink); }
.person__role { margin-top: 4px; font-size: var(--fs-5); line-height: 1.45; color: var(--text-soft); }
/* Small portraits (mentors, masterclass experts) */
.people--sm { --cols: 5; gap: 32px 20px; }
.people--sm .person { text-align: center; }
.people--sm .person__photo { width: 140px; max-width: 100%; margin-inline: auto; aspect-ratio: 1; }
.people--sm .person__name { font-size: var(--fs-5); }

/* Before / after testimonial cards */
.quotes { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px; }
.quote { display: flex; flex-direction: column; padding: 24px; }
.quote__who { display: flex; align-items: center; gap: 14px; }
/* Cut-out with no frame, fading out in an arc: the top edge is the arc's centre, the bottom its rim */
.quote__photo {
  flex: none;
  width: 72px;
  height: 72px;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000 80%, transparent 100%);
  mask-image: radial-gradient(100% 100% at 50% 0%, #000 80%, transparent 100%);
}
.quote__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.quote__name { font-size: var(--fs-4); font-weight: 700; line-height: 1.25; color: var(--ink); }
.quote__place { margin-top: 2px; font-size: var(--fs-5); color: var(--coral); font-weight: 600; }
/* Small capitals labels */
.quote__label,
.press__outlet,
.job__team,
.footer__head,
.programs__accredit .caption {
  font-weight: 700;
  letter-spacing: var(--caps-tracking);
  text-transform: uppercase;
}
.quote__label {
  margin-top: 20px;
  font-size: var(--fs-5);
  color: var(--grey);
}
.quote__label--after { color: var(--purple); }
.quote__before { margin-top: 6px; font-size: var(--fs-5); line-height: 1.55; font-style: italic; color: var(--text-soft); }
.quote__after { margin-top: 6px; font-size: var(--fs-5); line-height: 1.6; color: var(--purple); }
.quote__after::before { content: ""; display: block; width: 28px; height: 21px; margin-bottom: 8px; background: var(--yellow); -webkit-mask: url("../assets/Motifs/quotemarks.svg") left / contain no-repeat; mask: url("../assets/Motifs/quotemarks.svg") left / contain no-repeat; }

/* Stories of change: cut-out portrait on a blob + outcome */
.stories { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.story { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; padding: 28px 28px 0; overflow: hidden; }
.story__photo { position: relative; align-self: end; height: 330px; }
.story__photo img { mask-image: var(--person-fade); position: relative; height: 100%; width: auto; max-width: none; margin-inline: auto; object-fit: contain; }
.story__text { padding-bottom: 28px; }
.story__name { font-size: var(--fs-3); line-height: 1.1; color: var(--ink); }
.story__role { margin-top: 10px; font-size: var(--fs-5); line-height: 1.5; color: var(--text-soft); }
.story__logo { height: 26px; width: auto; margin-top: 10px; }
.story__pay { margin-top: 14px; font-size: var(--fs-5); }
.story__quote { margin-top: 16px; font-size: var(--fs-4); line-height: 1.5; font-weight: 600; color: var(--purple); }

/* Logo wall (employers, exposures, partners) */
.logos { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 16px; }
.logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  padding: 0 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-tile);
  font-size: var(--fs-4);
  font-weight: 700;
  color: var(--ink);
}
.logos__item img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.logos__item small { display: block; margin-top: 4px; font-size: var(--fs-5); font-weight: 500; color: var(--text-soft); }
.logos__item--text { flex-direction: column; align-items: flex-start; height: auto; min-height: 88px; padding: 16px 24px; }

/* FAQ */
.faqs { position: relative; z-index: 1; max-width: 880px; margin-inline: auto; display: grid; gap: 14px; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-tile); }
.faq summary {
  position: relative;
  padding: 20px 64px 20px 24px;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-4);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat;
  transition: rotate var(--t-1) var(--ease);
}
.faq[open] summary::after { rotate: 45deg; }
.faq__body { padding: 0 24px 22px; font-size: var(--fs-5); line-height: 1.65; color: var(--text-soft); }
.faq__body > * + * { margin-top: 10px; }
.faq__body ul { list-style: disc; padding-left: 20px; }

/* Ticked list */
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-size: var(--fs-4); line-height: 1.5; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' fill='none' stroke='%23412287' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Pillars: big numbered rows with a picture ("How do we open your mind?") */
.pillars { position: relative; z-index: 1; display: grid; gap: 28px; }
.pillar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 32px; }
.pillar:nth-child(even) > :first-child { order: 2; }
.pillar .body { margin-top: 10px; }
.pillar .people--sm { --cols: 3; margin-top: 24px; }
.pillar__media { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: var(--lav); }
/* Short pillars: text beside a row of logos or a small picture */
.pillar--compact { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); padding: 28px 32px; }
.pillar--compact .pillar__media { aspect-ratio: auto; }
.pillar--compact .pillar__media img { height: 300px; }
.pillar__logos { display: flex; align-items: center; justify-content: center; gap: 24px 48px; }
.pillar__logos img { height: 44px; width: auto; max-width: 42%; object-fit: contain; }

/* Callout band (IndiaAI, academic credit) */
.callout { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 32px 36px; border-radius: var(--r-lg); background: var(--purple); color: #fff; box-shadow: var(--shadow-card); overflow: hidden; }
.callout__img { width: 120px; height: 120px; object-fit: contain; border-radius: var(--r-card); background: #fff; padding: 10px; }
.callout__title { font-size: var(--fs-3); line-height: 1.2; }
.callout__title em { font-style: normal; color: var(--yellow); }
.callout p + p { margin-top: 8px; }
.callout .body { color: var(--on-dark); font-size: var(--fs-5); }
.callout + .callout { margin-top: 20px; }
.callout--light { background: #fff; color: var(--purple); border: 1px solid var(--line); }
.callout--light .body { color: var(--text-soft); }
.callout--light .callout__title em { color: var(--coral); }

/* Schedule as a timetable: one row per day, grouped by week and tinted by its track */
.timetable { position: relative; z-index: 1; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.timetable table { width: 100%; border-collapse: collapse; }
.timetable thead th { padding: 14px 24px; background: var(--lav); font-size: var(--fs-6); color: var(--text-soft); text-align: left; }
.timetable tbody th,
.timetable td { padding: 18px 24px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.timetable tbody tr + tr > * { border-top-style: dashed; }
.timetable__week { width: 230px; background: color-mix(in srgb, var(--tone) 12%, #fff); box-shadow: inset 4px 0 var(--tone); }
.timetable__week span { display: block; font-family: var(--serif); font-size: var(--fs-3); line-height: 1.1; color: var(--ink); }
.timetable__track { display: inline-block; padding: 5px 10px; border-radius: var(--r-pill); background: var(--tone); color: var(--tone-ink); font-size: var(--fs-6); font-weight: 700; line-height: 1.3; }
.timetable__week .timetable__track { margin-top: 10px; }
.timetable .timetable__format .timetable__track { display: inline-block; color: var(--tone-ink); font-size: var(--fs-6); line-height: 1.3; }
.timetable__day { width: 96px; font-size: var(--fs-5); font-weight: 700; color: var(--coral); white-space: nowrap; }
.timetable td b { display: block; font-size: var(--fs-5); font-weight: 700; line-height: 1.35; color: var(--ink); }
.timetable td span { display: block; margin-top: 3px; font-size: var(--fs-5); line-height: 1.45; color: var(--text-soft); }
.timetable--month .timetable__week,
.timetable--month .timetable__format { width: 180px; }
@media (max-width: 700px) {
  .timetable table, .timetable tbody, .timetable tr, .timetable tbody th, .timetable td { display: block; width: auto; }
  .timetable thead { display: none; }
  .timetable tbody + tbody { border-top: 1px solid var(--line); }
  .timetable tbody th, .timetable td { padding: 4px 20px; border-top: 0; }
  .timetable .timetable__week { width: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; box-shadow: inset 0 4px var(--tone); }
  .timetable__week .timetable__track { margin-top: 0; }
  .timetable .timetable__day, .timetable--month .timetable__format { width: auto; padding-top: 14px; }
  .timetable tr:last-child > :last-child { padding-bottom: 16px; }
}

/* Video slots (voices across cities) */
.cities { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
.city { position: relative; }
.city .voices__thumb { --tilt-base: 0deg; }

.city .voices__name { font-size: var(--fs-2); }

/* Press + media cards */
.press { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 24px; }
.press__card { display: flex; flex-direction: column; padding: 24px; transition: translate var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); }
/* Cards that lift on hover */
a.press__card:hover,
.news__cover:hover {
  translate: 0 -4px;
  box-shadow: var(--shadow-lift);
}
.press__outlet { font-size: var(--fs-5); color: var(--coral); }
.press__title { margin-top: 12px; font-size: var(--fs-3); line-height: 1.2; color: var(--ink); }
.press__more { margin-top: auto; padding-top: 24px; font-size: var(--fs-5); font-weight: 700; color: var(--purple); }


/* Careers */
.jobs { position: relative; z-index: 1; display: grid; gap: 16px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 28px; }
.job__team { font-size: var(--fs-5); }
.job__title { font-size: var(--fs-3); font-weight: 700; line-height: 1.25; color: var(--ink); }
.job__meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: var(--fs-5); color: var(--text-soft); }
.job__meta img { width: 20px; height: 20px; }

/* Contact */

.reasons .icard { display: flex; flex-direction: column; }
.reasons .icard .btn { margin-top: auto; }
.reasons .icard p { margin-bottom: 22px; }

/* ============ Reach: key stats + interactive India map ============ */
.reach__wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 48px; }
.reach__info { position: relative; z-index: 2; }
.reach__info .display { margin-bottom: var(--title-gap); }
.reach__stats { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.reach__stat {
  position: relative;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
}
.reach__stat--note { display: flex; flex-direction: column; justify-content: center; background: none; border: 1.5px dashed var(--line); box-shadow: none; }
.reach__stat--note .reach__label { margin-top: 0; color: var(--coral); }
.reach__stat--lead { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 20px; }
.reach__stat--lead .reach__icon { grid-row: span 2; width: 64px; height: 64px; margin: 0; }
.reach__icon { width: 40px; height: 40px; margin-bottom: 14px; }
/* Big stat numbers */
.reach__num,
.hero__num {
  font-size: var(--fs-2);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.reach__num {
  display: block;
}
.reach__stat--lead .reach__num { font-size: var(--fs-1); }
.reach__label { display: block; margin-top: 8px; font-size: var(--fs-5); font-weight: 700; line-height: 1.35; color: var(--purple); }
.reach__stat--lead .reach__label { margin-top: 0; font-size: var(--fs-4); }
.reach__sub { display: block; margin-top: 4px; font-size: var(--fs-5); line-height: 1.45; color: var(--text-soft); }
/* Italic coral notes */
.reach__live,
.reach-map__hint,
.reach-card__note {
  font-size: var(--fs-5);
  font-style: italic;
  font-weight: 600;
  color: var(--coral);
}
.reach__live { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }
/* Coral dot before a live label */
.reach__live::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.reach__live::before { animation: live-pulse 1.8s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.25; scale: 0.7; } }

.reach-map { position: relative; z-index: 1; width: 100%; max-width: min(640px, calc((100svh - var(--nav-h) - 110px) * 1000 / 1115)); margin-left: auto; }
.reach-map__glow { left: 18%; top: 30%; width: 60%; height: 40%; opacity: 0.45; }
.reach-map__box { position: relative; aspect-ratio: 1000 / 1115; }
.reach-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(-10px 14px 24px rgb(var(--shade) / 0.08)); }
.reach-map__state {
  fill: var(--map-land);
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: fill var(--t-2) var(--ease), opacity var(--t-2) var(--ease);
}
.reach-map__state.is-active { fill: var(--map-active); }
.reach-map__state.is-new { fill: var(--map-new); }
.reach-map__layer { position: absolute; inset: 0; }
.reach-map__legend { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: var(--fs-5); color: var(--text-soft); }
/* Legend rows: swatch then label */
.reach-map__legend li,
.ba__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reach-map__legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.reach-map__legend .is-new { background: var(--yellow); }
.reach-map__legend .is-soon { background: #fff; box-shadow: inset 0 0 0 2.5px var(--purple); }
.reach-map__credit { margin-top: 10px; text-align: center; font-size: var(--fs-6); color: var(--grey); }
.reach-map__credit a { text-decoration: underline; }
.reach-map__panel { display: none; }

.reach-pin {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.reach-pin:focus-visible { outline: 2px solid var(--purple); outline-offset: -6px; }
.reach-pin__dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  /* The middle ring is hidden until the pin opens; keeping the same shadow list in every state
     lets it grow and fade in smoothly instead of morphing out of the drop shadow */
  box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(65, 34, 135, 0), var(--shadow-tag);
  transition: scale var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.reach-pin--minor .reach-pin__dot { width: 10px; height: 10px; }
.reach-pin__dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--coral);
  animation: pin-pulse 2.6s ease-out infinite;
  animation-delay: calc(var(--pi, 0) * -0.37s);
}
@keyframes pin-pulse {
  0% { scale: 1; opacity: 0.8; }
  70%, 100% { scale: 2.9; opacity: 0; }
}
.reach-pin--new .reach-pin__dot { background: var(--yellow); }
.reach-pin--new .reach-pin__dot::after { border-color: var(--yellow); }
.reach-pin--soon .reach-pin__dot { background: #fff; box-shadow: inset 0 0 0 2.5px var(--purple), 0 0 0 3px #fff, 0 0 0 3px rgba(65, 34, 135, 0), var(--shadow-tag); }
.reach-pin--soon .reach-pin__dot::after { display: none; }
.reach-pin:hover .reach-pin__dot { scale: 1.3; }
.reach-pin[aria-expanded="true"] .reach-pin__dot { scale: 1.2; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--purple), var(--shadow-tag); }
.reach-pin--soon[aria-expanded="true"] .reach-pin__dot { box-shadow: inset 0 0 0 2.5px var(--purple), 0 0 0 3px #fff, 0 0 0 5px var(--purple), var(--shadow-tag); }
.reach-pin__tag {
  position: absolute;
  bottom: calc(100% - 6px);
  left: 50%;
  padding: 5px 10px;
  border-radius: var(--r-sm);
  background: var(--purple);
  color: #fff;
  font-size: var(--fs-5);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--shadow-tag);
  opacity: 0;
  translate: -50% 6px;
  pointer-events: none;
  transition: opacity var(--t-1) var(--ease), translate var(--t-1) var(--ease);
}
.reach-pin:hover .reach-pin__tag,
.reach-pin:focus-visible .reach-pin__tag { opacity: 1; translate: -50% 0; }
.reach-pin[aria-expanded="true"] .reach-pin__tag { display: none; }

.reach-card {
  --tail: 50%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 280px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  scale: 0.92;
  transition: opacity var(--t-1) var(--ease), scale var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease), visibility 0s linear var(--t-1);
}
.reach-card.is-open { opacity: 1; visibility: visible; scale: 1; transition-delay: 0s; }
.reach-card.is-hot { box-shadow: 0 0 0 2px var(--coral), var(--shadow-card); }
/* Tail pointing back at the pin */
.reach-card::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 0 solid var(--line);
  rotate: 45deg;
}
.reach-card[data-side^="right"]::before { left: -7px; top: calc(var(--tail) - 6px); border-width: 0 0 1px 1px; }
.reach-card[data-side^="left"]::before { right: -7px; top: calc(var(--tail) - 6px); border-width: 1px 1px 0 0; }
.reach-card[data-side^="bottom"]::before { top: -7px; left: calc(var(--tail) - 6px); border-width: 1px 0 0 1px; }
.reach-card[data-side^="top"]::before { bottom: -7px; left: calc(var(--tail) - 6px); border-width: 0 1px 1px 0; }
.reach-card__close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--purple);
  transition: background-color var(--t-1) var(--ease);
}
.reach-card__close:hover { background: var(--lav); }
.reach-card__place { padding-right: 28px; font-size: var(--fs-3); line-height: 1.1; color: var(--ink); }
.reach-card__place span { display: block; margin-top: 2px; font-family: var(--sans); font-size: var(--fs-5); font-weight: 600; letter-spacing: 0; color: var(--grey); }
.reach-card__lines { margin-top: 10px; display: grid; gap: 8px; }
.reach-card__lines li { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-5); line-height: 1.35; }
.reach-card__lines b { flex: none; padding: 1px 8px; border-radius: var(--r-xs); background: var(--purple); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.reach-card__note { margin-top: 8px; line-height: 1.4; }
.reach-card__logos { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.reach-card__logos img { height: 22px; width: auto; max-width: 96px; object-fit: contain; }

/* Map entrance: states settle in, operating states colour up, then pins pop by order */
.js .reach-map__state { opacity: 0; }
.js .reach-map__state.is-active,
.js .reach-map__state.is-new { fill: var(--map-land); }
.js .reach-map.is-in .reach-map__state { opacity: 1; transition-delay: calc(var(--i) * 14ms); }
.js .reach-map.is-in .reach-map__state.is-active { fill: var(--map-active); transition-delay: calc(0.5s + var(--o) * 0.12s); }
.js .reach-map.is-in .reach-map__state.is-new { fill: var(--map-new); transition-delay: calc(0.5s + var(--o) * 0.12s); }
.js .reach-pin { opacity: 0; scale: 0.3; }
.js .reach-map.is-in .reach-pin {
  opacity: 1;
  scale: 1;
  transition: opacity var(--t-1) var(--ease) calc(0.9s + var(--pi) * 0.07s), scale var(--t-2) cubic-bezier(0.34, 1.56, 0.64, 1) calc(0.9s + var(--pi) * 0.07s);
}

/* ============ Before / after chart ============ */
.ba { position: relative; }
.ba__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.ba__title { font-size: var(--fs-4); font-weight: 700; color: var(--ink); }
.ba__legend { display: flex; gap: 18px; font-size: var(--fs-5); color: var(--text-soft); }
.ba__key { width: 14px; height: 10px; border-radius: 0 3px 3px 0; }
.ba__key--before { background: var(--lilac); }
.ba__key--after { background: var(--coral); }
.ba__rows {
  position: relative;
  margin-top: 24px;
  display: grid;
  gap: 22px;
}
/* Recessive quarter gridlines behind the bar area */
.ba__rows::before {
  content: "";
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: var(--label-w);
  right: var(--delta-w);
  background: repeating-linear-gradient(to right, rgba(65, 34, 135, 0.08) 0 1px, transparent 1px 25%);
  border-right: 1px solid rgba(65, 34, 135, 0.08);
  pointer-events: none;
}
.ba { --label-w: 220px; --delta-w: 84px; z-index: 1; padding: 28px; }
.ba__row { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr) var(--delta-w); align-items: center; }
.ba__label { padding-right: 20px; font-size: var(--fs-5); font-weight: 600; line-height: 1.35; color: var(--purple); }
.ba__bars { display: grid; gap: 2px; }
.ba__bar {
  position: relative;
  height: 14px;
  width: calc(var(--v) * 1%);
  border-radius: 0 4px 4px 0;
  transform-origin: 0 50%;
  outline-offset: 2px;
}
.ba__bar--before { background: var(--lilac); }
.ba__bar--after { background: var(--coral); }
.ba__val { position: absolute; left: calc(100% + 8px); top: 50%; translate: 0 -50%; font-size: var(--fs-5); font-weight: 700; color: var(--ink); white-space: nowrap; }
.ba__delta { justify-self: end; font-size: var(--fs-5); font-weight: 700; color: var(--ink); white-space: nowrap; }
.ba__axis { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr) var(--delta-w); margin-top: 14px; font-size: var(--fs-6); color: var(--grey); }
.ba__axis span { display: flex; justify-content: space-between; }
.ba__note { margin-top: 18px; }
.ba__table { margin-top: 12px; font-size: var(--fs-5); }
.ba__table summary { cursor: pointer; font-weight: 600; color: var(--purple); }
.ba__table table { margin-top: 12px; width: 100%; border-collapse: collapse; }
.ba__table th, .ba__table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.ba__table td + td, .ba__table th + th { text-align: right; font-variant-numeric: tabular-nums; }
.ba__tip {
  position: absolute;
  z-index: 3;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-5);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  translate: -50% calc(-100% - 8px);
  transition: opacity 0.2s ease;
}
.ba__tip.is-on { opacity: 1; }
.js .ba__bar { scale: 0 1; transition: scale var(--t-3) var(--ease); }
.js .ba__bar--after { transition-delay: 0.15s; }
.js .ba__val { opacity: 0; transition: opacity var(--t-1) var(--ease) 0.9s; }
.js .ba.is-in .ba__bar { scale: 1 1; }
.js .ba.is-in .ba__val { opacity: 1; }

/* Stat row (Impact panels) */
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stats + .panel-block,
.panel-block + .panel-block { margin-top: 48px; }
.panel-split .sub-title + .logos { margin-top: 20px; }
.panel-split .logos--plain { gap: 20px 36px; }
.panel-split .logos--plain img { height: 34px; max-width: 150px; }
.panel-split .logos--plain img[src*="openai"] { height: 26px; }   /* a heavy wordmark: kept smaller so it reads the same size */
.panel-block > .sub-title { margin-bottom: 20px; }
.panel-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }

/* ============ Inner page details ============ */
/* One large faint star (and the odd shape) per section, as on Home */

.wrap > .head, .wrap > .split__text { position: relative; z-index: 1; }

.hero__cta { margin-top: 32px; }

.facts--row { margin-top: 0; margin-bottom: 28px; }
.head + .facts--row { margin-top: calc(var(--title-gap) * 1.5); }
.grid + .facts--row { margin-top: 32px; margin-bottom: 0; }

/* Curriculum */
.seg-card { padding: 32px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tools li { width: 48px; height: 48px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-tile); }
/* Logos and illustrations that fit inside their tile */
.tools img,
.milestones__grid .stat__media > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Beyond the classroom */
.callout { margin-top: 0; }
.head + .callout { margin-top: calc(var(--title-gap) * 1.5); }
/* Two callouts side by side */
.callouts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.callouts .callout { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: 24px; margin: 0; }
.callouts .callout__img { width: 120px; height: 120px; }
/* A banner runs edge to edge across the top of its callout */
.callout__banner { display: block; width: calc(100% + 72px); max-width: none; height: auto; margin: -32px -36px 0; }
@media (max-width: 600px) { .callout__banner { width: calc(100% + 48px); margin: -24px -24px 0; } }
.callout:not(.callout--light) .em { color: var(--yellow); }
@media (max-width: 900px) { .callouts { grid-template-columns: minmax(0, 1fr); } }
/* Logos straight on the page, no tiles */
.logos--plain { align-items: center; gap: 24px 48px; }
.logos--plain .logos__item { height: auto; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.split--support { margin-top: 72px; }
.split--support .sub-title + .body { margin-top: 8px; }
.split--support .body + .sub-title { margin-top: 32px; }
.split--support .logos { margin-top: 20px; }

.mentors { position: relative; z-index: 1; margin-top: 72px; text-align: center; }
/* Guest mentors: cut-outs with no backdrop, fading out at the bottom */
.people--mentors { --cols: 3; max-width: 840px; margin: 32px auto 0; gap: 32px 40px; }
.people--mentors .person { text-align: center; }
.people--mentors .person__photo { aspect-ratio: 4 / 5; }
.people--mentors .person__name { margin-top: 4px; }

/* Who is this for: a Naari in the middle with the traits either side */
.who { --who-panel: rgb(var(--ai-lilac-rgb) / 0.3); position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: 48px; }
.who__list { display: grid; gap: 20px; }
/* Each trait sits on a lilac panel that is solid beside the Naari and fades away from her */
.who__trait { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: start; padding: 18px 22px; border-radius: var(--r-card); background: linear-gradient(to right, var(--who-panel) 0%, transparent 100%); }
.who__list:first-child .who__trait { background: linear-gradient(to left, var(--who-panel) 0%, transparent 100%); }
.who__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px; color: var(--purple); }
.who__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.who__trait h3 { font-size: var(--fs-4); font-weight: 700; line-height: 1.3; color: var(--ink); }
.who__trait p { margin-top: 6px; font-size: var(--fs-5); line-height: 1.55; color: var(--text-soft); }
.who__list:first-child .who__trait { grid-template-columns: minmax(0, 1fr) 56px; text-align: right; }
.who__list:first-child .who__icon { grid-column: 2; }
.who__list:first-child .who__trait > :not(.who__icon) { grid-column: 1; }
.who__figure { position: relative; isolation: isolate; display: flex; justify-content: center; margin: 0; }
.who__figure::before { content: ""; position: absolute; left: 50%; bottom: 4%; z-index: -1; width: 112%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, var(--blob) 0%, color-mix(in srgb, var(--blob) 60%, transparent) 48%, transparent 71%); }
.who__figure img { width: 100%; max-width: 340px; height: auto; mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
@media (max-width: 900px) {
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .who__figure { grid-column: 1 / -1; order: -1; }
  .who__figure img { max-width: 260px; }
  .who__list { gap: 16px; }
  .who__list:first-child .who__trait { background: linear-gradient(to right, var(--who-panel) 0%, transparent 100%); }
  .who__list:first-child .who__trait { grid-template-columns: 56px minmax(0, 1fr); text-align: left; }
  .who__list:first-child .who__icon { grid-column: 1; }
  .who__list:first-child .who__trait > :not(.who__icon) { grid-column: 2; }
}
@media (max-width: 600px) {
  .who { grid-template-columns: minmax(0, 1fr); }
  .who__icon { width: 48px; height: 48px; }
  .who__icon svg { width: 34px; height: 34px; }
  .who__trait, .who__list:first-child .who__trait { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; }
  .mentors .people--mentors { --cols: 3; gap: 20px 12px; }
  .people--mentors .person__name { font-size: var(--fs-5); }
  .people--mentors .person__role { font-size: var(--fs-6); }
}

/* How Naaris learn: larger icons */
.grid--learn .icard__icon { width: 84px; height: 84px; }

/* What Naaris gain: the certificate sits in its own card, two rows tall */
@media (max-width: 600px) { .grid--gain .icard--cert { order: 1; } }
.icard__cert { display: block; width: 100%; height: auto; margin-bottom: 20px; rotate: -2deg; filter: drop-shadow(0 10px 14px rgb(var(--shade) / 0.16)); }
@media (min-width: 1101px) {
  .grid--gain .icard--cert { grid-column: 4; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .grid--gain .icard--cert { order: 1; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); column-gap: 28px; align-items: center; text-align: left; }
  .grid--gain .icard__cert { grid-row: 1 / span 2; margin: 0; }
  .grid--gain .icard--cert h3 { align-self: end; }
  .grid--gain .icard--cert p { align-self: start; }
}


.btn--light { background: #fff; color: var(--purple); box-shadow: var(--shadow-tag); }

/* Fellowship */
.designed { margin-top: 26px; }
.designed .card__body { padding: 28px 24px 24px; }
.designed .people--sm { gap: 20px 12px; }
.designed .people--sm .person__photo { width: 100%; }
.pillar__media { aspect-ratio: 4 / 3; }
.pillar__media--plain { border: 0; background: none; }
.pillar__media--plain img { object-fit: contain; }
/* What fellows gain: three illustrated benefits, then two smaller ones */
.gains { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.gain { text-align: center; }
.gain__img { width: 100%; height: auto; aspect-ratio: 1068 / 770; object-fit: contain; }
.gain h3 { margin-top: 8px; font-size: var(--fs-4); font-weight: 700; line-height: 1.3; color: var(--ink); }
.gain p { max-width: 320px; margin: 6px auto 0; font-size: var(--fs-5); line-height: 1.55; color: var(--text-soft); }
.grid--pair { --cols: 2; max-width: 880px; margin: 40px auto 0; }
.icard.icard--row { display: flex; align-items: center; gap: 20px; text-align: left; }
.icard--row .icard__glyph { flex: none; margin: 0; }
.icard--row p { margin-top: 4px; }
@media (max-width: 600px) {
  .gains { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin-inline: auto; }
}
.split__text .ticks { margin-top: 24px; }

/* About */
.values { width: 100%; max-width: 520px; margin-top: 26px; z-index: 1; }

.values__lead { font-size: var(--fs-3); line-height: 1.25; color: var(--ink); margin-bottom: 20px; }
.advisors { --cols: 6; }
.team { --cols: 6; }
.press li { display: flex; }
.press__card { width: 100%; }

/* Careers + Contact */
.jobs__more { margin-top: 40px; }
.contact__note { position: relative; z-index: 1; margin-top: 32px; }
.contact__note a { color: var(--coral); }
.reasons .btn { white-space: normal; text-align: center; line-height: 1.2; height: auto; min-height: 48px; padding-block: 12px; }

/* Impact */
.model .icard__icon { margin-top: 6px; }
.ba__axis i { font-style: normal; }
/* Plain figures split by hairlines, no cards */
.stats { gap: 0; }
.stats .reach__stat { padding: 4px 24px; background: none; border: 0; border-radius: 0; box-shadow: none; }
.stats .reach__stat + .reach__stat { border-left: 1px solid var(--line); }

/* ============ Media overlay ============ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgb(var(--shade) / 0.9);
  user-select: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.overlay.is-open { opacity: 1; }
.overlay__frame {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  z-index: 21;
  overflow: hidden;
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.overlay__frame.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.overlay__frame--youtube { width: 80%; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: #000; }
.overlay__frame--video { height: 80%; aspect-ratio: 0.5778 / 1; border-radius: var(--r-card); background: #000; }
.overlay__frame iframe,
.overlay__frame video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
/* Job description sheet: role facts on the left, the description scrolling on the right */
.overlay__frame--sheet { width: min(1120px, calc(100% - 32px)); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-pop); user-select: text; }
.jd { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); height: min(780px, calc(100svh - 64px)); }
.jd__side { display: flex; flex-direction: column; align-items: flex-start; padding: 48px 40px; background: var(--lav); border-right: 1px solid var(--line); }
.jd__team { font-size: var(--fs-5); font-weight: 600; color: var(--coral); }
.jd__title { margin-top: 10px; font-family: var(--serif); font-size: var(--fs-3); font-weight: 700; line-height: 1.2; letter-spacing: var(--serif-tracking); color: var(--ink); }
.jd__meta { display: grid; gap: 18px; margin: 32px 0; }
.jd__meta li { display: flex; align-items: flex-start; gap: 12px; }
.jd__meta svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--coral); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jd__meta span { font-size: var(--fs-5); line-height: 1.4; color: var(--text-soft); }
.jd__meta b { display: block; font-weight: 700; color: var(--ink); }
.jd__side .btn { margin-top: auto; }
.jd__body { overflow-y: auto; overscroll-behavior: contain; padding: 48px 48px 40px; font-size: var(--fs-5); line-height: 1.65; color: var(--text-soft); }
.jd__body > * + * { margin-top: 12px; }
.jd__body .jd__h { margin-top: 32px; font-size: var(--fs-4); font-weight: 700; line-height: 1.3; color: var(--ink); }
.jd__body .jd__h:first-child { margin-top: 0; }
.jd__body .jd__sub { margin-top: 18px; color: var(--ink); font-weight: 700; }
.jd__body strong { font-weight: 700; color: var(--purple); }
.jd__body ul, .jd__body ol { padding-left: 1.3em; }
.jd__body ul { list-style: disc; }
.jd__body ol { list-style: decimal; }
.jd__body li + li { margin-top: 6px; }
.jd__body li::marker { color: var(--coral); }
.jd__body a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.jd__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--purple); }
.jd__close:hover { border-color: var(--purple); }
.jd__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.job__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) {
  .jd { display: block; overflow-y: auto; height: calc(100svh - 32px); }
  .jd__side { padding: 32px 24px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .jd__meta { margin: 20px 0; }
  .jd__body { overflow: visible; padding: 28px 24px 32px; }
}
html.is-locked { overflow: hidden; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  :root { --section-pad: 84px; --gutter: 40px; --fs-3: 22px; }
  .nav__links { gap: 18px; }
  .work__trail { display: none; }
  .work__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
}

@media (max-width: 900px) {
  .nav__inner { gap: 10px; }
  .nav__links::-webkit-scrollbar { display: none; }

.hero__wrap, .why { grid-template-columns: minmax(0, 1fr); }
  .hero__wrap { min-height: 0; }

.why__media { order: 2; }
  .programs__cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  :root { --section-pad: 44px; --title-gap: 24px; --gutter: 16px; --fs-3: 20px; --fs-4: 16px; --fs-5: 14px; }
  .hero__wrap { padding-top: 32px; }
  .hero__sub { margin-top: 24px; }
  /* Hotspot offsets are in collage pixels, so drop them once the collage scales down */

.card__body { padding: 20px; }
  .program .card__body { --pad: 20px; padding: 0 20px 20px; }

  .voices__row { gap: 16px; }
  .voices__card { width: calc(50% - 8px); }

/* Motifs: connectors and shapes off, a couple of sparkles per section, cards at 70% */
  .m-trail, .m-shape { display: none; }
  .m-big { --w: 150px; }

.voices__quote { left: -6px; top: -14px; --w: 60px; }
  .voices__quote--end { left: auto; top: auto; right: -6px; bottom: -14px; }
  .voices__blob { left: -10%; width: 120%; }
}

/* Inner pages + reach map */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .people { --cols: 3; }
  .people--sm { --cols: 4; }
  .quotes, .press { --cols: 2; }
  .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stats .reach__stat:nth-child(odd) { border-left: 0; }
  .story { grid-template-columns: 150px minmax(0, 1fr); }
  .story__photo { height: 260px; }
  .reach__wrap { gap: 32px; }
  .ba { --label-w: 180px; }
}

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__drop, .nav__menu { display: contents; }
  .nav__menu { visibility: visible; opacity: 1; translate: none; }
  .nav__drop-btn, .nav__menu::before, .nav__menu b, .nav__menu span { display: none; }
  .nav__links .nav__menu a { padding: 0; border-radius: 0; flex-direction: row; white-space: nowrap; }
  .nav__links .nav__menu a:hover, .nav__links .nav__menu a.is-active { background: none; color: var(--coral); }
  .nav__links .nav__menu a.is-active { font-weight: 600; }
  .nav__short { display: inline; }

.split, .seg, .pillar, .panel-split, .stories { grid-template-columns: minmax(0, 1fr); }
  .split--flip > .split__text, .pillar:nth-child(even) > :first-child { order: 0; }
  .split { gap: 40px; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .reach__wrap { grid-template-columns: minmax(0, 1fr); }
  .reach-map { margin-inline: auto; }
  .callout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 700px) {
  /* Map: cards leave the map and show one at a time underneath */
  .reach-map__panel { position: relative; margin-top: 14px; }
  .reach-map__panel:not(:has(.is-open))::before { content: "Tap a pin to see what's happening there"; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--r-md); font-size: var(--fs-5); color: var(--text-soft); }
  .reach-map__panel .reach-card { width: 100%; }
  .reach-map__panel .reach-card::before { display: none; }
  .reach-pin__tag { display: none; }
}

@media (max-width: 600px) {
  .seg-card { padding: 22px; }

.grid, .quotes, .press { --cols: 1; grid-template-columns: minmax(0, 1fr); }
  .stats .reach__stat { padding: 4px 16px; }
  .stats .reach__num { font-size: var(--fs-2); }
  .logos { gap: 12px; }
  .logos__item { height: 64px; padding: 0 18px; }
  .logos__item img { height: 28px; max-width: 130px; }
  .people { --cols: 2; gap: 28px 16px; }
  .people--sm { --cols: 2; }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach__stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .reach__stat { padding: 16px; }
  .reach__stat--lead .reach__icon { width: 48px; height: 48px; }
  .story { grid-template-columns: minmax(0, 1fr); padding: 24px 24px 0; }
  .story__photo { order: 2; height: 240px; }
  .story__text { padding-bottom: 0; }
  .pillar { padding: 22px; gap: 24px; }
  .pillar .people--sm { --cols: 2; }
  .job { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .job .btn { justify-self: start; }
  .ba { --label-w: minmax(0, 1fr); --delta-w: auto; padding: 20px; }
  .ba__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .ba__label { grid-column: 1 / -1; padding: 0; }
  .ba__rows::before, .ba__axis { display: none; }
  .ba__bars { padding-right: 40px; }
  .switch .tabs__btn { padding: 12px 16px; font-size: var(--fs-5); }

.callout { padding: 24px; }
}

/* ============ Motion (hidden states only apply when JS runs) ============ */
/* Blocks: soft fade-up */
.js [data-reveal] {
  opacity: 0;
  translate: 0 32px;
  transition: opacity var(--t-2) var(--ease) var(--d, 0s), translate var(--t-2) var(--ease) var(--d, 0s);
}
.js [data-reveal="fade"] { translate: none; }
.js [data-reveal="left"] { translate: -48px 0; }
.js [data-reveal="right"] { translate: 48px 0; }
.js [data-reveal].is-in { opacity: 1; translate: none; }

/* Titles: each line rises from behind its own baseline. The clip lifts once the
   rise has finished so swishes and earmarks can overhang again. */
.rise, .rise__in { display: block; }
/* Hero lines stay hidden until main.js wraps them, so nothing shows at rest before the entrance */
.js .hero__title .line { visibility: hidden; }
.js .hero__title .line > .rise { visibility: visible; }
.js .rise { clip-path: inset(-50% -50% -0.14em -50%); }
.js .rise__in { translate: 0 125%; }
.js .is-risen .rise { animation: rise-unclip var(--t-2) linear var(--d, 0s) forwards; }
.js .is-risen .rise__in { translate: none; transition: translate var(--t-2) var(--ease) var(--d, 0s); }
@keyframes rise-unclip {
  0%, 99% { clip-path: inset(-50% -50% -0.14em -50%); }
  100% { clip-path: none; }
}

/* Images: the photo opens out of a smaller window and settles from a slight zoom */
.js [data-unmask] img {
  clip-path: inset(10% 8% round 16px);
  scale: 1.12;
  transition: clip-path var(--t-3) var(--ease) var(--d, 0s), scale var(--t-3) var(--ease) var(--d, 0s);
}
.js [data-unmask].is-in img { clip-path: inset(0 round 0); scale: 1; }
.js [data-unmask] .lottie,
.js .voices__thumb[data-unmask]::after { opacity: 0; transition: opacity var(--t-2) var(--ease) calc(var(--d, 0s) + 0.6s); }
.js [data-unmask].is-in .lottie,
.js .voices__thumb[data-unmask].is-in::after { opacity: 1; }
.js .watch__thumb:hover .watch__frame.is-in img,
.js .voices__thumb:hover.is-in img { scale: 1.05; }

/* Hero entrance: headline rises, photo opens, the word is written, cards pop in, paths draw */

.hero .script { --write-delay: 0.4s; }
.js .hero__glow { opacity: 0; scale: 0.92; transition: opacity var(--t-3) var(--ease) 0.2s, scale var(--t-3) var(--ease) 0.2s; }

.js .hero.is-in .hero__glow { opacity: 0.6; scale: 1; }

/* Cards lean toward the cursor (main.js sets --rx/--ry on fine pointers) */
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--tilt-base, 0deg));
  transition: transform var(--t-1) var(--ease);
}

/* Video hover preview (testimonials) */
.voices__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--t-1) var(--ease), scale var(--t-3) var(--ease);
}
.voices__thumb.is-previewing .voices__preview { opacity: 1; }

/* "Play" cursor over videos */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 15;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: var(--fs-5);
  font-weight: 700;
  box-shadow: var(--shadow-tag);
  pointer-events: none;
  opacity: 0;
  scale: 0.3;
  transition: opacity var(--t-1) var(--ease), scale var(--t-1) var(--ease);
}
.cursor.is-on { opacity: 1; scale: 1; }
.has-cursor [data-youtube],
.has-cursor [data-video] { cursor: none; }

/* Script draw-in: the word is "written" left to right along its tilt (clip-path wipe, in the
   element's own rotated space), then the swish draws, then the earmarks pop. Negative insets
   keep the swish and earmarks, which sit outside the word's box, inside the visible area.
   In a rising title the word starts with the rise (is-risen), not on its own later trigger,
   so it is written while the serif words are still settling. */
.js .script,
.js .voices__name {
  clip-path: inset(-60% 100% -60% -20%);
  transition: clip-path 0.9s var(--ease) var(--write-delay, 0.25s);
}
.js .script.is-drawn,
.js .is-risen .script,
.js .voices__name.is-drawn { clip-path: inset(-60% -60% -60% -20%); }
.js .script__swish {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s var(--ease) calc(var(--write-delay, 0.25s) + 0.45s);
}
.js .is-drawn .script__swish,
.js .is-risen .script__swish { clip-path: inset(0 0 0 0); }
.js .script__earmarks {
  opacity: 0;
  transform: scale(0.4);
  transform-origin: 0 100%;
  transition: opacity 0.4s var(--ease) calc(var(--write-delay, 0.25s) + 0.7s), transform 0.5s var(--ease) calc(var(--write-delay, 0.25s) + 0.7s);
}
.js .is-drawn .script__earmarks,
.js .is-risen .script__earmarks { opacity: 1; transform: none; }

/* Sparkles: slow looping swing around their resting tilt */
@keyframes sparkle-swing {
  from { rotate: calc(var(--rot, 0deg) - 14deg); }
  to { rotate: calc(var(--rot, 0deg) + 14deg); }
}
/* Stars twinkle; main.js gives each its own --dur/--delay so they never pulse together */
@keyframes motif-twinkle {
  0%, 100% { scale: 1; opacity: 1; }
  50% { scale: 0.85; opacity: 0.5; }
}
[data-twinkle] {
  animation:
    sparkle-swing 3s ease-in-out var(--delay, 0s) infinite alternate,
    motif-twinkle var(--dur, 3.2s) ease-in-out var(--delay, 0s) infinite;
}
/* Cards and stickers bob gently */
@keyframes motif-float {
  from { translate: 0 -5px; rotate: calc(var(--rot, 0deg) - 2deg); }
  to { translate: 0 5px; rotate: calc(var(--rot, 0deg) + 2deg); }
}
[data-float] { animation: motif-float var(--dur, 5s) ease-in-out var(--delay, 0s) infinite alternate; }
/* Dotted paths draw in once they scroll into view */
.js [data-draw] {
  clip-path: inset(-20% 100% -20% -20%);
  transition: clip-path var(--t-3) var(--ease) 0.2s;
}
.js [data-draw="down"] { clip-path: inset(-20% -20% 100% -20%); }
.js [data-draw].is-drawn { clip-path: inset(-20%); }
.js .hero [data-draw] { transition-delay: 1.25s; }
/* The arced milestone trail bows well outside its 40px box */

.card__tab img { animation: sparkle-swing 2.8s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
   .card__tab img,
  [data-twinkle], [data-float], .work__step .badge::after { animation: none; }
  .js [data-draw] { transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; translate: none !important; }
  .js .rise { clip-path: none; }
  .js .rise__in { translate: none; }
  .js [data-unmask] img { clip-path: none; scale: 1; }
   .js .hero__glow { opacity: 1; scale: 1; }
  .btn, [data-tilt], .nav, .cursor { transition: none; }
  .js .script, .js .voices__name, .js .script__swish, .js .script__earmarks { transition: none !important; }
  .reach-pin__dot::after, .reach__live::before, .js .tabs__panel:not([hidden]) { animation: none; }
  .js .reach-map__state, .js .reach-pin, .js .ba__bar, .js .ba__val, .reach-card { transition: none !important; }
}

/* ============ Home: hero with the India map ============ */
.hero--home { padding-block: 40px 64px; }
.hero--home .hero__wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; min-height: 0; }

.reach-map--hero { max-width: max(420px, min(600px, calc((100svh - var(--nav-h) - 170px) * 1000 / 1115))); margin-inline: auto 0; }
/* The layer stacks nothing of its own, so photos can sit between its pins (below) and its cards (above) */
.reach-map__layer { z-index: auto; pointer-events: none; }
.reach-pin, .reach-card { pointer-events: auto; }
.reach-map__links {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.5;
  stroke-dasharray: 1 5;
  stroke-linecap: round;
  stroke-opacity: 0.55;
}
/* Photos pinned to their city */
.reach-photo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 3;
  width: 36%;
  margin: 0;
  padding: 6px 6px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: scale var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.reach-photo:hover { scale: 1.04; box-shadow: var(--shadow-lift); }
.reach-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }
.reach-photo--tall { width: 25%; }
.reach-photo--tall img { aspect-ratio: 3 / 4; }
/* Photo captions with a place name */
.reach-photo figcaption,
.carousel__place {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.reach-photo figcaption { padding: 7px 4px 8px; letter-spacing: 0.02em; }
.reach-map__foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.reach-map__foot .reach-map__legend { margin-top: 0; }
.js .reach-photo { opacity: 0; translate: 0 14px; transition: opacity var(--t-2) var(--ease) calc(1.1s + var(--k) * 0.14s), translate var(--t-2) var(--ease) calc(1.1s + var(--k) * 0.14s), scale var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease); }
.js .reach-map.is-in .reach-photo { opacity: 1; translate: none; }
.js .reach-map__links { opacity: 0; transition: opacity var(--t-2) var(--ease) 1.6s; }
.js .reach-map.is-in .reach-map__links { opacity: 1; }
/* Photos that step aside while the pointer explores the map */
.reach-map__links path { transition: opacity var(--t-1) var(--ease); }
.reach-map__links path.is-hidden { opacity: 0; }
.js .reach-map.is-in .reach-photo.is-hidden,
.reach-photo.is-hidden { opacity: 0; scale: 0.94; pointer-events: none; transition-delay: 0s; }
.js .reach-map.is-settled .reach-photo { transition-delay: 0s; }

/* Home hero map: light fills inside thin solid borders that a band of electric pink runs along */
.reach-map--hero .reach-map__svg { filter: none; }
.reach-map--hero .reach-map__state { stroke: none; }   /* the hero map draws its own borders */
.reach-map__edge { fill: none; stroke-linejoin: round; pointer-events: none; }
.reach-map__edge--outline { stroke-width: 1.8; }
.reach-map__edge--lines { stroke-width: 0.75; }
.js .reach-map__edge { opacity: 0; transition: opacity 0.8s var(--ease) 0.6s; }
.js .reach-map.is-in .reach-map__edge { opacity: 1; }
/* A faint hollow copy of the silhouette, offset down and to the right */
.reach-map__ghost { fill: var(--purple); opacity: 0.14; pointer-events: none; }
.js .reach-map__ghost { opacity: 0; transition: opacity 0.8s var(--ease) 0.9s; }
.js .reach-map.is-in .reach-map__ghost { opacity: 0.14; }

/* Map motion (data-motion): pinging cities, pulses along the route, floating photos
   and cursor depth (--mx / --my run -1..1, eased in JS) */
.reach-map--hero .reach-pin__dot::after { display: block; animation-duration: 3.2s; }
.reach-map--hero :is(.reach-pin--minor, .reach-pin--soon) .reach-pin__dot::after { display: none; }
.reach-map__routes path { fill: none; stroke: var(--purple); stroke-opacity: 0.28; stroke-width: 1; stroke-dasharray: 2 4; stroke-linecap: round; }
.reach-map__routes circle { fill: #ff7bbd; }
.js .reach-map__routes { opacity: 0; transition: opacity 1s var(--ease) 1.2s; }
.js .reach-map.is-in .reach-map__routes { opacity: 1; }
.reach-map[data-motion] .reach-photo { animation: photo-float calc(6s + var(--k) * 0.9s) ease-in-out calc(var(--k) * -1.6s) infinite; }
@keyframes photo-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2px, -6px) rotate(-0.7deg); }
  66% { transform: translate(-2px, -3px) rotate(0.5deg); }
}
.reach-map[data-motion] .reach-map__box { translate: calc(var(--mx, 0) * 6px) calc(var(--my, 0) * 6px); }
.reach-map[data-motion] .reach-map__ghost { transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -14px)); }
.js .reach-map[data-motion].is-settled .reach-photo {
  translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 10px);
  /* translate is eased in JS, so it isn't transitioned here */
  transition: opacity var(--t-1) var(--ease), scale var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reach-map[data-motion] .reach-photo { animation: none; }
  .reach-map--hero .reach-pin__dot::after { display: none; }
}

/* Hero map popups: no border or highlight ring, just a soft dark shadow */
.reach-map--hero .reach-card { border: 0; box-shadow: var(--shadow-pop); }
.reach-map--hero .reach-card.is-hot { box-shadow: var(--shadow-pop); }
.reach-map--hero .reach-card::before { border: 0; }
/* Auto-tour countdown: a thin bar along the card's foot fills until the next place opens.
   The timer covers the whole card and clips to its rounded shape, so the bar follows the corners. */
.reach-card__timer { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.reach-card__timer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
}
.reach-card.is-touring .reach-card__timer::after { animation: tour-timer var(--tour-ms, 3.4s) linear forwards; }
@keyframes tour-timer { to { transform: scaleX(1); } }

/* Map credit: level with the map, set vertically against the right edge of the screen
   (the map's right edge sits one gutter, plus any centring margin, in from it) */
.hero__credit {
  position: absolute;
  top: 50%;
  right: calc(12px - var(--gutter) - max(0px, (100vw - 1400px) / 2));
  translate: 0 -50%;
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: var(--fs-6);
  line-height: 1;
  color: var(--grey);
}
.hero__credit a { text-decoration: underline; }

/* Hover maps: a card or photo the pointer has left goes quickly */
.reach-map[data-hover] .reach-card:not(.is-open) { transition-duration: 0.12s, 0.12s, 0.12s, 0s; transition-delay: 0s, 0s, 0s, 0.12s; }
.js .reach-map[data-hover].is-settled .reach-photo.is-hidden { transition-duration: 0.12s; }

/* Legend sits just above the hover hint, both centred */
.reach-map--hero .reach-map__foot { flex-direction: column; justify-content: flex-start; gap: 6px; }
.reach-map--hero .reach-map__foot .reach-map__legend { order: -1; }
.reach-map--hero .reach-map__legend { gap: 6px 16px; font-size: var(--fs-6); }
.reach-map--hero .reach-map__legend i { width: 10px; height: 10px; }
/* Quick numbers under the hero */
.hero__stats {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.hero__stats li { display: flex; flex-direction: column; gap: 8px; padding: 22px 28px; }
.hero__stats li + li { border-left: 1px solid var(--line); }
.hero__stat-label { font-size: var(--fs-5); font-weight: 600; line-height: 1.4; color: var(--purple); }
/* Home: the numbers sit under the intro line as a plain 2 x 2, not a card */
.hero__info .hero__stats,
.hero__info .hero__stats li { background: none; border: 0; border-radius: 0; box-shadow: none; }
.hero__info .hero__stats { margin-top: 36px; max-width: 520px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.hero__info .hero__stats li { padding: 14px 0 0; border-top: 1px solid var(--line); }

/* ============ How AI runs Nimaya ============ */
.ai {
  --section-bg: var(--night-2);
  --ai-line: rgb(var(--ai-lilac-rgb) / 0.2);
  color: var(--ai-mist);
}
main > section.ai { background: var(--ai-bg); }
/* Faint blueprint grid instead of the paper grain */
main > section.ai::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--ai-grid);
  background-size: 44px 44px;
  opacity: 1;
}
main > section.ai::after,
main > section:has(+ .ai)::after { display: none; }
.ai__wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }

.ai .display { color: #fff; }
.ai .script { color: var(--ai-lilac); }
.ai__lead { margin-top: var(--title-gap); max-width: 540px; color: rgb(var(--ai-mist-rgb) / 0.85); }
.ai__steps { margin-top: 32px; display: grid; gap: 12px; }
.ai__steps li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; border: 1px solid var(--ai-line); border-radius: var(--r-md); background: rgba(255, 255, 255, 0.04); }
.ai__badge { flex: none; padding-top: 2px; font-size: var(--fs-5); font-weight: 700; color: var(--teal); font-variant-numeric: tabular-nums; }
.ai__steps h3 { font-size: var(--fs-4); font-weight: 700; line-height: 1.3; color: #fff; }
.ai__steps p { margin-top: 4px; font-size: var(--fs-5); line-height: 1.5; color: rgb(var(--ai-mist-rgb) / 0.75); }
.ai__viz { position: relative; }
.ai-net { display: block; width: 100%; height: auto; overflow: visible; }
.ai-net__ring { fill: none; stroke: rgb(var(--ai-lilac-rgb) / 0.24); stroke-width: 1; stroke-dasharray: 2 6; }
.ai-net__ring--outer { stroke: rgb(var(--ai-lilac-rgb) / 0.1); stroke-dasharray: none; }
.ai-net__crowd { fill: var(--ai-lilac); opacity: 0.45; animation: ai-crowd 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -0.21s); }
@keyframes ai-crowd { 50% { opacity: 0.12; } }
.ai-net__link { fill: none; stroke: rgb(var(--ai-lilac-rgb) / 0.38); stroke-width: 1.4; stroke-dasharray: 3 5; animation: ai-flow 1.6s linear infinite; }
.ai-net__link--core { stroke: rgba(95, 208, 182, 0.55); stroke-width: 1.8; }
.ai-net__link--loop { stroke: rgba(252, 175, 31, 0.5); stroke-width: 1.6; }
@keyframes ai-flow { to { stroke-dashoffset: -16; } }
.ai-net__packet { fill: #fff; filter: drop-shadow(0 0 4px var(--on-dark)); }
.ai-net__packet--core { fill: var(--teal); filter: drop-shadow(0 0 6px var(--teal)); }
.ai-net__packet--loop { fill: var(--yellow); filter: drop-shadow(0 0 6px var(--yellow)); }
.ai-net__halo { fill: rgba(107, 63, 209, 0.3); transform-box: fill-box; transform-origin: center; animation: ai-halo 3s ease-in-out infinite; }
@keyframes ai-halo { 50% { scale: 1.14; opacity: 0.45; } }
.ai-net__core { fill: url(#ai-core-fill); stroke: rgb(var(--ai-lilac-rgb) / 0.6); stroke-width: 1.5; }
.ai-net__core-name { font-family: var(--serif); font-weight: 700; font-size: 26px; fill: #fff; }
.ai-net__core-sub { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: var(--caps-tracking); text-transform: uppercase; fill: var(--teal); }
.ai-net__agent circle { fill: var(--night-3); stroke: var(--teal); stroke-width: 1.5; }
.ai-net__icon { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ai-net__agent text { font-family: var(--sans); font-size: 15px; font-weight: 700; fill: #fff; }
.ai-net__face-ring { fill: var(--night-3); stroke: var(--on-dark); stroke-width: 1.5; }
/* Terminal-style feed of what the agents are doing */
.ai__feed {
  max-width: 470px;
  min-height: 46px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--ai-line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.25);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: var(--fs-6);
  line-height: 1.4;
  color: #d9d0ff;
}
.ai__feed-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.ai__feed-text::before { content: "> "; color: var(--teal); }
.ai__feed-text::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--teal); animation: ai-caret 1s steps(2) infinite; }
@keyframes ai-caret { 50% { opacity: 0; } }

/* ============ Nimaya in the News ============ */
.news__title { text-align: center; }
.news__grid { display: grid; margin-top: var(--title-gap); }
.news__item { position: relative; display: flex; flex-direction: column; }

.news__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 803 / 516;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: translate var(--t-1) var(--ease), box-shadow var(--t-1) var(--ease);
}
.news__cover .watch__frame { height: 100%; border-radius: 0; }
.news__cover--article { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; background: radial-gradient(90% 120% at 85% 100%, #6b3fd1 0%, var(--purple) 45%, var(--ink) 100%); color: #fff; }
.news__outlet { font-size: var(--fs-3); line-height: 1; }
.news__people { position: absolute; display: flex; }
.news__people img { border: 4px solid #fff; border-radius: 50%; object-fit: cover; object-position: top; background: var(--cream); }
.news__read { display: inline-flex; gap: 8px; border-radius: var(--r-pill); background: #fff; color: var(--purple); font-weight: 700; }
.news__name { font-weight: 600; color: var(--ink); }
.news__desc { margin-top: 10px; }
.news__more { margin-top: 48px; text-align: center; }

/* ============ Our Why (photo + quote) ============ */
.frame { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
/* Viewfinder corners over the photo */
.frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  --c: var(--on-dark);
  background:
    linear-gradient(var(--c), var(--c)) left top / 26px 2px,
    linear-gradient(var(--c), var(--c)) left top / 2px 26px,
    linear-gradient(var(--c), var(--c)) right top / 26px 2px,
    linear-gradient(var(--c), var(--c)) right top / 2px 26px,
    linear-gradient(var(--c), var(--c)) left bottom / 26px 2px,
    linear-gradient(var(--c), var(--c)) left bottom / 2px 26px,
    linear-gradient(var(--c), var(--c)) right bottom / 26px 2px,
    linear-gradient(var(--c), var(--c)) right bottom / 2px 26px;
  background-repeat: no-repeat;
}
.why__photo { width: 100%; aspect-ratio: 1 / 1.05; }
.why__photo img { object-position: 50% 40%; }
/* The quote sits between two dashed rules; its mark (flipped into a closing mark)
   follows the first line inline, so it takes no height of its own */
.why__quote-big {
  margin: 0 0 28px;
  padding: 28px 0;
  border-block: 1.5px dashed var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--serif);
  font-size: var(--fs-3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--serif-tracking);
  color: var(--coral);
}
.why__quote-text { margin: 0; text-wrap: balance; }

/* ============ Milestones (static) ============ */
.milestones__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.milestones__grid .stat { width: auto; flex: none; }

.milestones__grid .stat__title { font-size: var(--fs-4); line-height: 1.3; }

/* ============ Programs: key facts as icons, a colour per program ============ */
.program__facts { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.program__facts li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 14px; border-radius: var(--r-md); background: var(--lav); }
/* Round icon badges: line icon on a solid circle; each sets size and colours */
.program__icon,
.programs__seal,
.icard__glyph,
.fact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.program__icon { width: 42px; height: 42px; margin-bottom: 4px; background: var(--purple); color: #fff; }
/* Line icons inside the badges */
.program__icon svg,
.programs__seal svg,
.icard__glyph svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.program__icon svg { width: 22px; height: 22px; }
.program__facts b { font-size: var(--fs-4); line-height: 1.2; color: var(--ink); }
.program__facts li > span:last-child { font-size: var(--fs-6); line-height: 1.4; color: var(--text-soft); }
.program--alt .card__banner { background: var(--coral); }

.program--alt .program__icon,
.program--alt .btn--filled { background: var(--coral); }
.program--alt .program__facts li { background: var(--coral-tint); }

/* How We Work: portrait photo sits on the wash */

@media (max-width: 1100px) {
  .ai__wrap { grid-template-columns: minmax(0, 1fr); }
  .ai__viz { max-width: 560px; margin-inline: auto; }
  .milestones__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stats li:nth-child(3) { border-left: 0; }
  .hero__stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .program__facts { grid-template-columns: minmax(0, 1fr); }
  .program__facts li { flex-direction: row; align-items: center; gap: 12px; }
  .program__facts li > span:last-child { margin-left: auto; text-align: right; }
  .program__icon { margin-bottom: 0; flex: none; }
}
@media (max-width: 900px) {
  .hero--home .hero__wrap { grid-template-columns: minmax(0, 1fr); }
  .reach-map--hero { margin-inline: auto; max-width: 560px; }
  .news__grid { grid-template-columns: minmax(0, 1fr); }
  .why__photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .reach-map--hero .reach-map__box { margin-inline: 7%; }
  .reach-photo { padding: 4px 4px 0; border-radius: var(--r-sm); }
  .reach-photo img { border-radius: var(--r-xs); }
  .reach-photo figcaption { padding: 5px 2px 6px; font-size: var(--fs-6); }
  .news__people img { width: 84px; height: 84px; }
  .news__cover--article { padding: 20px; }
  .ai__feed { font-size: var(--fs-6); }
}
@media (prefers-reduced-motion: reduce) {
  .ai-net__crowd, .ai-net__link, .ai-net__halo, .ai__feed-text::after { animation: none; }
  .js .reach-photo, .js .reach-map__links { opacity: 1; translate: none; transition: none; }
}
/* The fellowship photo has a soft vignette baked in; crop past it */

@media (max-width: 700px) { .reach-map__hint { display: none; } .reach-map__foot { justify-content: center; } }

/* ============ Polish pass ============ */
/* Calmer, more grown-up surface: the giant faint stars, dotted doodles and background
   shapes read as clip-art next to real photography, so they go. Sparkles on titles stay. */
.m-big, .programs__shape { display: none; }
::selection { background: var(--yellow); color: var(--ink); }
/* One visible focus ring for every interactive element */
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: var(--r-xs); }
/* Anchored sections land below the fixed bar */
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* Milestones: every picture sits in the same tile, so a logo, a photo and an
   illustration read as one set */
.milestones__grid .stat__media { height: auto; padding: 16px; border-radius: var(--r-card); }

/* GenAI page: the stories we have, centred (no empty slots) */
.cities--few { display: flex; flex-wrap: wrap; justify-content: center; }
.cities--few .city { width: 220px; }
/* Play badge for thumbnails that don't have one in the image itself */
.voices__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 46px; height: 46px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgb(var(--shade) / 0.25); pointer-events: none; transition: opacity var(--t-1) var(--ease); }
.voices__play::before { content: ""; position: absolute; left: 54%; top: 50%; width: 14px; height: 16px; translate: -50% -50%; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.voices__thumb.is-previewing .voices__play { opacity: 0; }

/* ============ Footer: closing call to action + sitemap ============ */
.footer {
  color: rgb(var(--ai-mist-rgb) / 0.78);
  background: radial-gradient(90% 120% at 85% 0%, var(--night-glow) 0%, var(--ink) 42%, var(--night) 100%);
  border-top: 0;
}
.footer::before { opacity: 0.1; }
.footer__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 56px;
  padding-top: 88px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgb(var(--ai-lilac-rgb) / 0.18);
}

.footer__title { margin-top: 14px; font-family: var(--serif); font-size: var(--fs-2); font-weight: 700; line-height: 1.02; letter-spacing: var(--serif-tracking); color: #fff; }
.footer__title em { font-style: normal; color: var(--yellow); }
.footer__lead { max-width: 560px; margin-top: 14px; font-size: var(--fs-4); line-height: 1.6; }
.footer__cta-text { flex: 1 1 420px; }
.footer__cta-btns { flex: none; display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { color: #fff; border: 1.5px solid var(--on-dark-faint); transition: transform var(--t-1) var(--ease), border-color var(--t-1) var(--ease), translate var(--t-1) var(--ease); }
.btn--ghost:hover { border-color: #fff; }
.footer__main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer--plain .footer__main { padding-top: 80px; }
.footer__logo img { width: 168px; height: auto; filter: brightness(0) invert(1); }
.footer__tag { max-width: 300px; margin-top: 16px; font-size: var(--fs-5); line-height: 1.6; }
.footer__brand .footer__social { margin-top: 24px; }
.footer__social a { color: var(--on-dark); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
/* With the CTA band above, contact links aren't repeated: two columns */
.footer:not(.footer--plain) .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__head { margin-bottom: 4px; font-size: var(--fs-6); color: var(--on-dark-faint); }
.footer__col a { font-size: var(--fs-5); font-weight: 600; line-height: 1.4; color: #fff; transition: color var(--t-1) var(--ease); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgb(var(--ai-lilac-rgb) / 0.14);
}
.footer__bottom .footer__copy { max-width: none; margin: 0; font-size: var(--fs-6); color: rgb(var(--ai-mist-rgb) / 0.6); }
.footer__bottom .footer__legal { margin: 0; }
.footer__bottom .footer__legal a { font-size: var(--fs-6); color: var(--on-dark); }
.footer__col a:hover,
.footer__bottom .footer__legal a:hover,
.footer__social a:hover { color: var(--yellow); }

/* ============ Mobile menu ============ */
.nav__toggle { display: none; }
@media (max-width: 900px) {
  .nav { height: var(--nav-h); }
  .nav__inner { flex-direction: row; align-items: center; padding-top: 0; padding-bottom: 0; }
  main { padding-top: var(--nav-h); }

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0 11px;
  }
  .nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--purple); transition: translate var(--t-1) var(--ease), rotate var(--t-1) var(--ease); }
  .nav.is-open .nav__toggle span:first-child { translate: 0 4px; rotate: 45deg; }
  .nav.is-open .nav__toggle span:last-child { translate: 0 -4px; rotate: -45deg; }
  /* The bar's backdrop-filter makes it the containing block, so the sheet hangs from it */
  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    height: calc(100svh - var(--nav-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 40px;
    overflow: hidden auto;
    background: #fff;
    -webkit-mask-image: none;
    mask-image: none;
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: opacity var(--t-1) var(--ease), translate var(--t-1) var(--ease), visibility 0s linear var(--t-1);
    scrollbar-width: none;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; translate: none; transition-delay: 0s; }
  /* The program links must hide with the closed sheet, or they stay tappable through it */
  .nav__menu { visibility: inherit; transition: none; }
  .nav__links a,
  .nav__links .nav__menu a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: var(--fs-3);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: var(--serif-tracking);
    color: var(--ink);
  }
  .nav__links a:last-child { padding-right: 0; }
  .nav__links a.is-active, .nav__links .nav__menu a.is-active { color: var(--coral); }
  .nav__short { font-style: normal; }
  .footer__main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
  .footer__cta { padding-top: 64px; padding-bottom: 48px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer--plain .footer__cols .footer__col:last-child { grid-column: 1 / -1; }
  .footer__cta-btns, .footer__cta-btns .btn { width: 100%; }
  /* Diagram labels are in SVG units; scale them up so they stay readable on a phone */
  .ai-net__agent text { font-size: 24px; }
  .ai-net__core-name { font-size: 34px; }
  .ai-net__core-sub { font-size: 15px; }
  .voices__name { font-size: var(--fs-2); }
  .cities--few .city { width: calc(50% - 10px); }
}
@media (max-width: 600px) {
  /* Photos may not hang past the screen edge on phones */
  .reach-map--hero .reach-photo { left: max(var(--x), -6%); }
  .milestones__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Home hero: the positioning line carries the most weight after the headline */
.hero--home .hero__title, .hero--home .hero__title .script { font-size: var(--fs-1); }
.hero--home .hero__sub { max-width: 560px; font-size: var(--fs-3); font-weight: 600; line-height: 1.4; color: var(--ink); text-wrap: balance; }

/* ============ Our Programs: accreditation panel ============ */
/* Accreditation, Home: a credential panel beside the Our Programs intro, above the cards */
.programs__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 380px);
  justify-content: space-between;
  align-items: end;
  gap: 32px 48px;
}
.programs__accredit { display: grid; gap: 16px; }
.programs__accredit-head { display: flex; align-items: center; gap: 14px; }
.programs__seal { width: 52px; height: 52px; flex: none; background: var(--purple); color: var(--yellow); }
.programs__seal svg { width: 28px; height: 28px; }
.programs__accredit .caption { font-size: var(--fs-6); color: var(--grey); }
.programs__accredit-title { font-size: var(--fs-3); font-weight: 700; line-height: 1.2; color: var(--ink); }
.programs__accredit-text { font-size: var(--fs-5); line-height: 1.5; color: var(--purple); text-wrap: balance; }
.programs__accredit-text b { color: var(--ink); }
.programs__accredit-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.programs__accredit-foot img { height: 40px; width: auto; }
/* Desktop: right-aligned against the edge of the section, seal on the outside */
@media (min-width: 901px) {
  .programs__accredit { text-align: right; justify-items: end; }
  .programs__accredit-head { flex-direction: row-reverse; }
  .programs__accredit-foot { justify-content: flex-end; width: 100%; }
}
@media (max-width: 900px) {
  .programs__top { grid-template-columns: minmax(0, 1fr); }
  .programs__accredit { max-width: 480px; }
}

/* ============ Landing (Home): the name, one line, three photos ============ */
/* Full-bleed photos under an ink shade, white type; the bar turns transparent over it. */
.landing {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100svh;
  min-height: 640px;
  margin-top: calc(-1 * var(--nav-h));
  padding-block: 0;
  overflow: clip;
  background: var(--ink);
}
.landing__panels {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.landing__panel { margin: 0; overflow: hidden; background: var(--ink); }
.landing__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    /* Dark band under the transparent bar, so its white logo reads on bright photos */
    linear-gradient(180deg, rgb(var(--shade) / 0.75) 0%, rgb(var(--shade) / 0) calc(var(--nav-h) + 160px)),
    radial-gradient(120% 70% at 50% 100%, rgb(var(--shade) / 0.95) 0%, rgb(var(--shade) / 0.82) 55%, rgb(var(--shade) / 0) 100%),
    linear-gradient(180deg, rgb(var(--shade) / 0.8) 0%, rgb(var(--shade) / 0.6) 35%, rgb(var(--shade) / 0.72) 100%);
}
.landing__content { padding-bottom: clamp(72px, 13vh, 132px); text-align: center; }
.landing .hero__title { color: #fff; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; }
.landing__brand { display: flex; justify-content: center; }
.landing__logo { width: clamp(200px, min(30vw, 36svh * 1.11), 400px); height: auto; filter: drop-shadow(0 6px 24px rgb(var(--shade) / 0.35)); }
.landing .hero__title .line + .line { margin-top: 0.34em; }
.landing .landing__line .script { font-size: 1.7em; color: #fff; }
.landing .script__earmarks { filter: brightness(0) invert(1); }
.landing__cta { justify-content: center; margin-top: clamp(28px, 4.5vh, 44px); }
.landing__btn { background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgb(var(--shade) / 0.3); }
.landing__btn--ghost { gap: 10px; background: transparent; color: #fff; border: 1.5px solid var(--on-dark-faint); box-shadow: none; }
.landing__btn--ghost:hover { border-color: #fff; }
/* Scroll cue: a short line with a dot running down it */
.landing__cue { position: absolute; left: 50%; bottom: 22px; width: 2px; height: 40px; translate: -50% 0; background: var(--on-dark-line); border-radius: 2px; overflow: hidden; }
.landing__cue span { position: absolute; left: 0; top: 0; width: 100%; height: 14px; border-radius: 2px; background: #fff; animation: landing-cue 2.2s var(--ease) infinite; }
@keyframes landing-cue { 0% { translate: 0 -100%; } 100% { translate: 0 300%; } }

/* Entrance: the panels open upward one after another and settle from a zoom, then the name rises */
.js .landing__panel { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease) calc(var(--i) * 0.16s); }
.js .landing.is-in .landing__panel { clip-path: inset(0); }
.js .landing__panel img { scale: 1.16; transition: scale 3s var(--ease) calc(var(--i) * 0.16s); }
.js .landing.is-in .landing__panel img { scale: 1.02; }
.js .landing__shade { opacity: 0; transition: opacity 1.6s var(--ease) 0.3s; }
.js .landing.is-in .landing__shade { opacity: 1; }
.js .landing .is-risen .rise { animation-delay: calc(var(--d, 0s) + 0.55s); }
.js .landing .is-risen .rise__in { transition-delay: calc(var(--d, 0s) + 0.55s); }
.landing .script { --write-delay: 0.8s; }

/* Transparent bar over the dark landing until the page scrolls past it */
.has-dark-landing .nav:not(.is-scrolled):not(.is-open) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-dark-landing .nav:not(.is-scrolled):not(.is-open) .nav__logo img { filter: brightness(0) invert(1); }
.has-dark-landing .nav:not(.is-scrolled):not(.is-open) .nav__links > a,
.has-dark-landing .nav:not(.is-scrolled):not(.is-open) .nav__drop-btn { color: #fff; }
.has-dark-landing .nav:not(.is-scrolled):not(.is-open) .nav__links a.is-active { color: var(--yellow); }
.has-dark-landing .nav:not(.is-scrolled):not(.is-open) .nav__toggle span { background: #fff; }

/* Phones: one photo at a time, cross-fading */
@media (max-width: 700px) {
  /* Grows past the screen rather than clipping, and always clears the bar */
  .landing { height: auto; min-height: 100svh; padding-top: calc(var(--nav-h) + 16px); }
  .landing__panels { grid-template-columns: minmax(0, 1fr); }
  .landing__panel { grid-area: 1 / 1; animation: landing-cycle 15s linear calc(var(--i) * 5s - 15s) infinite; }
  /* Sized by the screen's height too, so short phones keep it all in view */
  .landing__logo { width: min(62vw, 260px, 26svh * 1.11); transform-origin: 0 0; will-change: translate, scale; }
  /* The bar's logo waits for the landing logo to arrive (see initLogoHandoff) */
  .has-dark-landing .nav__logo { opacity: var(--logo-in, 1); }
  .has-dark-landing .nav.is-open .nav__logo { opacity: 1; }
  .landing .hero__title { font-size: 26px; }
}
@keyframes landing-cycle {
  0%, 33.3% { opacity: 1; }
  40%, 93.3% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .landing__panel { animation: none; }
  .landing__cue span { animation: none; }
}

/* ============ Our Why: photos take turns ============ */
.why__photo[data-fade] img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease), clip-path var(--t-3) var(--ease) var(--d, 0s), scale var(--t-3) var(--ease) var(--d, 0s); }
.why__photo[data-fade] img.is-on { opacity: 1; }

/* ============ Home: phone pass ============ */
/* Our Why: breathing room between the body paragraphs */
.why__info .body + .body { margin-top: 12px; }

/* How AI runs Nimaya, stacked: the network sits right under the intro, steps follow */
@media (max-width: 1100px) {
  .ai__wrap { row-gap: 0; }
  .ai__info { display: contents; }

.ai__info .display { order: 2; }
  .ai__lead { order: 3; }
  .ai__viz { order: 4; width: 100%; margin-top: 32px; }
  .ai__steps { order: 5; }
}

/* Map, phones: the panel under the map holds every card in one cell, so the tour
   swaps cards without the page below jumping */
@media (max-width: 700px) {
  .reach-map__panel { display: grid; }
  .reach-map__panel::before,
  .reach-map__panel .reach-card { grid-area: 1 / 1; }
  .reach-map__panel .reach-card { align-self: start; position: relative; }
  .reach-map__panel .reach-card:not(.is-open) { display: block; }
}

@media (max-width: 600px) {
  /* Partners: logos scaled to the screen */
  .ticker { height: 72px; }
  .ticker__list { gap: 40px; }
  .ticker__list img, .ticker__list img[height="72"] { height: 44px; }
  .ticker__list li::after { right: -20px; height: 40px; margin-top: -20px; }

  /* AI steps: a tight list instead of four tall cards */
  .ai__steps { gap: 0; }
  .ai__steps li { padding: 14px 0; gap: 14px; border: 0; border-top: 1px solid var(--ai-line); border-radius: 0; background: none; }
  .ai__steps li:last-child { border-bottom: 1px solid var(--ai-line); }
  .ai__steps p { margin-top: 2px; }

  /* Milestones: one wide tile at a time, the next peeking in, swiped sideways */
  .milestones__grid {
    display: flex;
    gap: 16px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .milestones__grid::-webkit-scrollbar { display: none; }
  .milestones__grid .stat { flex: 0 0 80%; scroll-snap-align: start; }
  .milestones__grid .stat__media { padding: 14px; border-radius: var(--r-card); }
  .milestones__grid .stat__desc { font-size: var(--fs-5); }

  /* Program facts: compact rows that keep their one-line descriptions */
  .program__facts { gap: 8px; }
  .program__facts li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; row-gap: 1px; align-items: center; padding: 10px 14px; }
  .program__facts .program__icon { grid-row: span 2; width: 36px; height: 36px; }
  .program__facts .program__icon svg { width: 19px; height: 19px; }
  .program__facts li > span:last-child { display: block; margin-left: 0; text-align: left; }

  /* How We Work: a vertical timeline, the dotted trail running badge to badge */
  .work__list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .work__step { display: grid; grid-template-columns: 56px minmax(0, 1fr) 96px; column-gap: 16px; align-items: start; }
  .work__step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: -28px;
    border-left: 2px dotted var(--lilac);
  }
  .work__text { min-height: 0; margin-top: 4px; }
  .work__img { margin-top: 0; border-radius: var(--r-md); }
}

/* ============ Home: visual pass fixes ============ */
/* Milestones: every tile keeps its 4:3 shape, so titles line up across a row */
.milestones__grid .stat__media { overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-tile); }
/* Short last lines instead of one stray word */
.ai__steps p { text-wrap: pretty; }

/* Map, phones: with no city open, the hint sits in the middle of the reserved space */
@media (max-width: 700px) {
  .reach-map__panel:not(:has(.is-open))::before { display: grid; place-items: center; text-align: center; }
}

/* Tablet: the news pair sits side by side, the AI steps in two columns, a bigger quote */
@media (min-width: 701px) and (max-width: 900px) {
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
/* Half-width article card: smaller portraits so they clear the outlet name and button */
@media (min-width: 701px) and (max-width: 1100px) {
  .news__cover--article { padding: 20px; }
  .news__people { right: 20px; bottom: 20px; }
  .news__people img { width: 84px; height: 84px; }
  .news__people img + img { margin-left: -20px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .ai__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .programs__cards { margin-top: 40px; }
}

@media (max-width: 600px) {
  /* AI: the diagram's empty outer ring already gives room above the steps */
  .ai__viz { margin-top: 24px; }
  .ai__steps { margin-top: 4px; }
  .hero--home .hero__sub { text-wrap: pretty; }
}

/* ============ Inner pages: Home's look ============ */
/* Hero: Home's dark photo landing with one full-bleed photo, at about 70% of the screen */
.landing.page-hero { height: 72svh; min-height: 540px; max-height: 880px; }
.page-hero__photo { position: absolute; inset: 0; z-index: -2; margin: 0; overflow: hidden; background: var(--ink); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.page-hero__photo--flip img { transform: scaleX(-1); }
/* Darker towards the bottom-left, where the title sits */
.page-hero .landing__shade {
  background:
    linear-gradient(180deg, rgb(var(--shade) / 0.6) 0%, rgb(var(--shade) / 0) calc(var(--nav-h) + 80px)),
    linear-gradient(0deg, rgb(var(--shade) / 0.94) 0%, rgb(var(--shade) / 0.6) 42%, rgb(var(--shade) / 0.18) 100%),
    linear-gradient(90deg, rgb(var(--shade) / 0.45) 0%, rgb(var(--shade) / 0) 70%);
}
.page-hero__content { padding-bottom: clamp(48px, 9vh, 96px); }
.landing.page-hero .hero__title { max-width: 920px; font-size: var(--fs-1); line-height: 1.04; color: #fff; }
.page-hero .hero__title .line + .line { margin-top: 0.08em; }
.page-hero .hero__title .hero__naari { font-size: inherit; }
.page-hero .hero__title .script { font-size: 1.2em; color: #fff; }
.page-hero .script__earmarks { filter: brightness(0) invert(1); }
.page-hero__sub { max-width: 640px; margin-top: 22px; font-size: var(--fs-4); font-weight: 500; line-height: 1.6; color: var(--on-dark); }
.page-hero__sub .em { color: #fff; }
.page-hero__cta { margin-top: 28px; }
/* Program facts as a quiet row of white figures on the photo */
.page-hero__facts { margin-top: 28px; }
.page-hero__facts .fact { padding: 2px 22px; background: none; border: 0; border-left: 1px solid var(--on-dark-line); border-radius: 0; box-shadow: none; }
.page-hero__facts .fact:first-child { padding-left: 0; border-left: 0; }
.page-hero__facts .fact b { color: #fff; }
.page-hero__facts .fact span { color: var(--on-dark); }
/* Entrance: the photo opens upward and settles, like Home's panels */
.js .page-hero__photo { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease); }
.js .landing.is-in .page-hero__photo { clip-path: inset(0); }
.js .page-hero__photo img { scale: 1.12; transition: scale 3s var(--ease); }
.js .landing.is-in .page-hero__photo img { scale: 1.02; }
@media (max-width: 700px) {
  .landing.page-hero { height: 78svh; min-height: 520px; }
  .page-hero__sub { margin-top: 16px; font-size: var(--fs-5); }
  .page-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero__facts .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .page-hero__cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .js .page-hero__photo { clip-path: none; transition: none; }
  .js .page-hero__photo img { scale: 1; transition: none; }
}

/* Line icons in purple circles (as on Home's program cards), in place of 3D clip-art */
.icard__glyph { width: 52px; height: 52px; margin-bottom: 18px; background: var(--purple); color: #fff; }
.icard__glyph svg { width: 24px; height: 24px; }

/* Cards that open with a real photo, edge to edge */
.icard__photo { margin: -28px -24px 22px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; }
.reasons--photo .icard { display: flex; flex-direction: column; overflow: hidden; }
.reasons--photo .icard .btn { margin-top: auto; }
.reasons--photo .icard p { margin-bottom: 20px; }

/* Callouts: Home's deep ink panel; photos fill their tile */
/* Dark callout in the "How AI runs Nimaya" look, its grid fading out towards the edges */
.callout:not(.callout--light) { background: var(--ai-bg); }
.callout:not(.callout--light)::before { content: ""; position: absolute; inset: 0; background-image: var(--ai-grid); background-size: 44px 44px; -webkit-mask-image: radial-gradient(farthest-side at 70% 40%, #000 20%, transparent 100%); mask-image: radial-gradient(farthest-side at 70% 40%, #000 20%, transparent 100%); pointer-events: none; }
.callout > * { position: relative; }
.callout__img--photo { width: 150px; height: 150px; padding: 0; object-fit: cover; background: none; }

/* Careers: the team sits under the role title as plain meta, not an eyebrow above it */
.job__title { margin-top: 0; }
.job__team { margin-top: 6px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-soft); }

/* No eyebrow above the footer title any more */
.footer__cta-text > .footer__title:first-child { margin-top: 0; }

/* Milestones: real photos fill their tile edge to edge */
.milestones__grid .stat__media--photo { padding: 0; }
.milestones__grid .stat__media--photo > img { object-fit: cover; }

/* ============ Press in the map section ============
   One card under the partners (above the map on phones); the headlines take turns, a bar per headline
   filling as its time runs out. Not clickable: it just shows we're covered (the full list lives on About). */
.newsbox { position: relative; z-index: 3; display: grid; max-width: 520px; margin-top: 32px; padding: 16px 16px 14px; border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-pop); }
.newsbox__item { grid-area: 1 / 1; margin: 0; display: flex; align-items: center; gap: 14px; opacity: 0; translate: 0 10px; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); }
.newsbox__item.is-on { opacity: 1; translate: 0 0; }
.newsbox .fade-bars { grid-area: 2 / 1; display: flex; gap: 6px; margin-top: 14px; }
.fade-bars i { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.fade-bars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--coral); transform: scaleX(0); transform-origin: left; }
.fade-bars i.is-on::after { animation: fade-bar var(--fade-ms, 4s) linear forwards; }
.newsbox:not(.is-running) .fade-bars i.is-on::after { animation-play-state: paused; }
@keyframes fade-bar { to { transform: scaleX(1); } }
.newsbox__item figcaption { flex: 1; min-width: 0; }
.newsbox__thumb { flex: none; width: 76px; height: 76px; border-radius: var(--r-md); object-fit: cover; }
/* Outlet logos share one height; the very wide ones are capped by width instead */
.newsbox__logo { display: block; width: auto; height: 28px; max-width: 190px; object-fit: contain; object-position: left center; }
.newsbox__headline { display: block; margin-top: 8px; font-size: var(--fs-5); line-height: 1.4; color: var(--text-soft); text-wrap: pretty; }
/* Phones and tablets: the card sits under the numbers */
@media (max-width: 900px) {
  .newsbox { max-width: none; }
}

/* ============ In the news: four pieces in one row ============ */
.news__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.news__grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news__cover--article { padding: 18px; }
.news__outlet { position: relative; z-index: 1; }
.news__people { right: 16px; bottom: 16px; }
.news__people img { width: 68px; height: 68px; border-width: 3px; }
.news__people img + img { margin-left: -16px; }
.news__read { position: relative; z-index: 1; padding: 8px 14px; font-size: var(--fs-6); }
.news__name { margin-top: 18px; font-size: var(--fs-4); line-height: 1.3; }
.news__desc { font-size: var(--fs-5); }
/* Articles with a photo: our own picture under a dark shade, the outlet in white */
.news__cover--photo { background: var(--ink); }
.news__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news__cover--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(var(--shade) / 0.82) 0%, rgb(var(--shade) / 0.35) 55%, rgb(var(--shade) / 0.7) 100%); }
@media (max-width: 1100px) {
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
}
@media (max-width: 700px) {
  .news__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ============ Hero facts as yellow icon chips (programs) ============ */
.page-hero__facts { gap: 10px; }
.page-hero__facts .fact,
.page-hero__facts .fact:first-child {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border: 1px solid var(--on-dark-line);
  border-radius: var(--r-pill);
  background: var(--night-3);
}
.fact__icon { flex: none; width: 34px; height: 34px; background: var(--yellow); color: var(--purple); }
/* The chips' white label colour must not reach the glyph: dark purple on yellow */
.page-hero__facts .fact .fact__icon { color: var(--purple); }
.fact__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.page-hero__facts .fact b { font-size: var(--fs-5); white-space: nowrap; }
.page-hero__facts .fact span:not(.fact__icon) { font-size: var(--fs-6); }
@media (max-width: 700px) {
  .page-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; }
  .page-hero__facts .fact,
  .page-hero__facts .fact:nth-child(odd) { padding: 5px 14px 5px 5px; border-left: 1px solid var(--on-dark-line); }
  .fact__icon { width: 28px; height: 28px; }
  .fact__icon svg { width: 15px; height: 15px; }
  .page-hero__facts .fact b { font-size: var(--fs-5); }
  .page-hero__facts .fact span:not(.fact__icon) { font-size: var(--fs-6); }
  /* The chips keep their labels on phones, so the hero grows to fit them */
  .landing.page-hero:has(.page-hero__facts) { height: auto; min-height: 78svh; padding-top: calc(var(--nav-h) + 48px); }
}

/* ============ Icon, title, byline: always centred ============ */
.icard { text-align: center; }
.icard__icon, .icard__glyph { margin-inline: auto; }
.icard--num .badge { left: 50%; translate: -50% 0; }
.reasons--photo .icard .btn { align-self: center; }
.reasons .icard { align-items: center; }
.reasons .icard .icard__photo { align-self: stretch; }
.reach__stat:not(.reach__stat--lead) { text-align: center; }
.reach__stat:not(.reach__stat--lead) .reach__icon { margin-inline: auto; }
@media (min-width: 1101px) {
  .program__facts li { align-items: center; text-align: center; }
}

/* ============ Photos through the program pages ============ */
/* Classrooms from every city drifting past like the partner ticker, each with its place on a pill */
.carousel { position: relative; z-index: 1; margin-bottom: 36px; overflow: hidden; padding-block: 4px 12px; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%); }
.carousel__track { display: flex; gap: 20px; width: max-content; will-change: transform; }
.carousel__item { position: relative; flex: none; width: clamp(260px, 28vw, 400px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); box-shadow: var(--shadow-tile); }
.carousel__place { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: var(--r-pill); background: #fff; }
@media (max-width: 600px) {
  .carousel { margin-inline: calc(-1 * var(--gutter)); -webkit-mask-image: none; mask-image: none; }
  .carousel__track { gap: 14px; }
}
/* One photo per curriculum track, under its intro */
.seg__photo { margin: 22px 0 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); }

/* About: every press card opens with the article's own image (ours where the article has none) */
.press__card { padding: 0 0 22px; overflow: hidden; }
.press__thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lav); }
.press__thumb img { width: 100%; height: 100%; object-fit: cover; }
.press__card .press__outlet { margin-top: 18px; }
.press__card .press__outlet, .press__card .press__title, .press__card .press__more { padding-inline: 22px; }
.press__date { color: rgba(65, 34, 135, 0.6); font-weight: 500; }

/* ============ Inner pages: phone fixes ============ */
@media (max-width: 700px) {
  /* Maps without a tour (Impact) don't need room held for every city card */
  .reach-map:not([data-motion]) .reach-map__panel .reach-card:not(.is-open) { display: none; }
  /* Callout photos span the card instead of sitting as a small square */
  .callout__img--photo { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  /* Wide photos with a soft edge baked in show at their own shape, no empty box around them */
  .pillar__media--plain { aspect-ratio: auto; }
  .pillar__media--plain img,
  .pillar--compact .pillar__media--plain img { width: 100%; height: auto; }
}
@media (max-width: 380px) {
  /* Smallest phones: the two job buttons stack full width instead of wrapping unevenly */
  .job__actions { flex-direction: column; }
  .job__actions .btn { width: 100%; }
}

/* ============ Home copy update (Nov 2026) ============ */
/* Landing: one supporting line under the two-line headline */
.landing__sub { max-width: 620px; margin: clamp(16px, 2.4vh, 24px) auto 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.45; color: rgb(255 255 255 / 0.88); }
.landing__sub + .landing__cta { margin-top: clamp(22px, 3.5vh, 36px); }
/* News: a line under the title */
.news__intro { max-width: 560px; margin: 14px auto 0; text-align: center; }
/* Programs: a short description above the three facts */
.program__desc { margin: 0; }
/* How We're Different: longer tile texts read in body colour */
.milestones__grid .stat__desc { white-space: normal; color: var(--text-soft); }
.milestones__title { max-width: 900px; margin-inline: auto; }
@media (max-width: 700px) {
  .landing__sub { font-size: 15px; max-width: 32ch; }
}
/* Longer descriptor beside the map: a step smaller and lighter so it doesn't outweigh the title */
.hero--home .hero__sub { font-size: var(--fs-4); font-weight: 500; line-height: 1.5; }
/* News: date sits under the outlet name, in the body face */
.news__date { display: block; margin-top: 8px; font-family: var(--sans); font-size: var(--fs-6); font-weight: 600; letter-spacing: 0; opacity: 0.85; }
/* Our Why: the opening question in ink, so only the lead is coral */
.why__question { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }

/* ============ Meet Maya ============ */
/* Intro on top, the diagram filling the section, one closing line under it */
.maya__head { max-width: 760px; margin-inline: auto; text-align: center; }
.maya__tagline { margin-top: var(--title-gap); font-size: var(--fs-4); font-weight: 600; line-height: 1.35; color: #fff; }
.maya__lead { margin-top: 14px; font-size: var(--fs-5); color: rgb(var(--ai-mist-rgb) / 0.82); }
.maya__lead .em { color: var(--yellow); }
.maya__close { max-width: 640px; margin: 32px auto 0; text-align: center; font-family: var(--serif); font-size: var(--fs-3); font-weight: 600; line-height: 1.25; color: #fff; }
.maya__hint { display: none; }

.maya__map { position: relative; margin-top: 48px; }
.maya__nodes, .maya__journey { list-style: none; margin: 0; padding: 0; }

/* Maya: the mascot floating on a soft glow, her name under her */
.maya__core { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 230px; margin-inline: auto; text-align: center; }
.maya__core::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 40%; width: 125%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--ai-lilac-rgb) / 0.32), rgb(var(--ai-lilac-rgb) / 0.1) 60%, transparent); pointer-events: none; }
.maya__bot { display: block; width: auto; height: 200px; filter: drop-shadow(0 18px 28px rgb(10 6 40 / 0.5)); animation: maya-float 4.5s ease-in-out infinite; }
@keyframes maya-float { 50% { translate: 0 -8px; } }
.maya__core-name { margin-top: 6px; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1; color: var(--yellow); }
.maya__core-sub { max-width: 240px; font-size: 12.5px; font-weight: 600; line-height: 1.3; text-wrap: balance; color: rgb(var(--ai-mist-rgb) / 0.8); }

/* Shared pieces: job icon with its journey number, the in/out lines, the journey step pill */
.maya__icon { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 6px rgb(249 55 37 / 0.16); color: #fff; }
.maya__node--memory .maya__icon { background: #7a55e0; box-shadow: 0 0 0 6px rgb(var(--ai-lilac-rgb) / 0.2), 0 0 26px rgb(var(--ai-lilac-rgb) / 0.55); }
.maya__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.maya__num { position: absolute; right: -9px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; color: var(--coral); }
.maya__name { font-weight: 700; color: #fff; }
.maya__flows { display: grid; gap: 6px; }
.maya__flow { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 7px; }
.maya__flow svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.maya__flow--out svg { stroke: var(--coral); }
.maya__stage { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border-radius: 999px; border: 1px solid rgb(249 55 37 / 0.75); background: var(--night-2); font-size: 13px; font-weight: 700; white-space: nowrap; color: #fff; }
.maya__stage i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); font-style: normal; font-size: 12px; font-weight: 800; }
.maya__again { font-size: 12.5px; font-weight: 600; font-style: italic; color: #ffb8a8; }
.maya__team { width: fit-content; padding: 6px 15px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.maya__team em { font-style: normal; font-weight: 600; color: #6b3fd1; }
.maya-svg { display: none; }

/* ---- Diagram (wide screens, once the script has placed everything) ---- */
@media (min-width: 1001px) {
  .maya__hint { display: block; max-width: 720px; margin: 36px auto 0; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.5; color: rgb(var(--ai-mist-rgb) / 0.75); }
  .maya__hint b { color: #fff; }
  .maya__hint-loop { color: #ff8a6b; }
  .maya__hint-lines { color: var(--ai-lilac); }
  .maya__map.is-live { width: min(100%, 1140px); aspect-ratio: 1200 / 840; margin: 8px auto 0; }
  .is-live .maya-svg { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .is-live .maya__journey-title { display: none; }

  /* Maya sits on a soft dark backing, so the lines stop at her and her name stays clean */
  .is-live .maya__core { position: absolute; left: 50%; top: 47.6%; width: 19%; translate: -50% -50%; gap: 0; }
  .is-live .maya__core::before { top: 52%; width: 150%; height: 122%; aspect-ratio: auto; background: radial-gradient(closest-side, #22176b 0%, #22176b 58%, rgb(34 23 107 / 0) 100%); }
  .is-live .maya__core-name { margin-top: 4px; }
  .is-live .maya__core-sub { margin-top: 5px; }

  /* Jobs: just an icon and a name */
  .is-live .maya__node { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 132px; translate: -50% -24px; text-align: center; cursor: pointer; outline: none; }
  .is-live .maya__node.is-up { flex-direction: column-reverse; translate: -50% calc(-100% + 24px); }
  .is-live .maya__node--memory { width: 176px; }
  .is-live .maya__name { font-size: 14px; line-height: 1.25; text-wrap: balance; }
  .is-live .maya__node:focus-visible .maya__icon { outline: 3px solid #fff; outline-offset: 2px; }

  /* Hover: a card sits right on the job with the copy, what Maya takes in and what she gives back */
  .is-live .maya__card { position: absolute; left: calc(50% + var(--dx, 0px)); top: calc(50% + var(--dy, 0px)); z-index: 5; width: 262px; padding: 14px 16px; translate: -50% -50%; scale: 0.94; border-radius: 14px; background: #fff; color: var(--ink); font-size: 13.5px; line-height: 1.45; text-align: left; box-shadow: 0 16px 40px rgb(10 6 40 / 0.5); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.22s var(--ease), scale 0.22s var(--ease), visibility 0s linear 0.22s; }
  .is-live .maya__card-name { display: block; margin-bottom: 3px; font-size: 14.5px; font-weight: 700; color: var(--coral); }
  .is-live .maya__text { display: block; }
  .is-live .maya__flows { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgb(28 25 114 / 0.14); font-size: 12.5px; line-height: 1.38; }
  .is-live .maya__flow--in svg { stroke: #1f9d80; }
  .is-live .maya__node.is-open { z-index: 6; }
  .is-live .maya__node.is-open .maya__card { opacity: 1; visibility: visible; scale: 1; pointer-events: auto; transition-delay: 0s; }

  /* Her journey on the outer loop, the note that closes the circle, and where memory goes */
  .is-live .maya__stage, .is-live .maya__again, .is-live .maya__team { position: absolute; left: var(--x); top: var(--y); z-index: 2; translate: -50% -50%; margin: 0; }
  .is-live .maya__stage { cursor: pointer; }
  .is-live .maya__stage.is-lit { z-index: 7; background: #4a1420; }
  .is-live .maya__again { padding: 4px 11px; border-radius: 999px; background: var(--night-2); white-space: nowrap; }

  .maya-svg__loop { fill: none; stroke: rgb(249 55 37 / 0.6); stroke-width: 1.6; }
  .maya-svg__arrow { fill: none; stroke: rgb(249 55 37 / 0.9); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .maya-svg__frame { fill: none; stroke: rgb(var(--ai-lilac-rgb) / 0.16); stroke-width: 1; }
  .maya-svg__spoke { fill: none; stroke: rgb(var(--ai-lilac-rgb) / 0.3); stroke-width: 1.3; stroke-linecap: round; }
  .maya-svg__flow { fill: none; stroke: var(--ai-lilac); stroke-width: 1.6; }
  .maya-svg__streak { mix-blend-mode: screen; }
  .maya-svg__dot { fill: #fff; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 14px var(--coral)); }

  /* Everything on the map fades with one transition; --d staggers the entrance and drops to 0 once it is done */
  .is-live .maya__core, .is-live .maya__node, .is-live .maya__stage, .is-live .maya__again, .is-live .maya__team,
  .is-live .maya-svg > * { transition: opacity 0.4s var(--ease) var(--d, 0s), scale 0.45s var(--ease) var(--d, 0s), background 0.3s var(--ease); }
  .is-live .maya__node { --d: calc(0.12s + var(--i) * 0.06s); }
  .is-live .maya-svg__frame, .is-live .maya-svg__spoke { --d: 0.55s; }
  .is-live .maya-svg__flow, .is-live .maya__team { --d: 0.75s; }
  .is-live .maya-svg__loop, .is-live .maya-svg__arrow, .is-live .maya__stage, .is-live .maya__again { --d: 0.9s; }
  .is-live .maya-svg__streak, .is-live .maya-svg__dot { --d: 1.1s; }
  .is-live.is-ready .maya__node, .is-live.is-ready .maya__stage, .is-live.is-ready .maya__again, .is-live.is-ready .maya__team,
  .is-live.is-ready .maya-svg > * { --d: 0s; transition-duration: 0.3s; }
  .js .is-live:not(.is-on) .maya__core { opacity: 0; scale: 0.85; }
  .js .is-live:not(.is-on) .maya__node { opacity: 0; scale: 0.7; }
  .js .is-live:not(.is-on) .maya__stage, .js .is-live:not(.is-on) .maya__again, .js .is-live:not(.is-on) .maya__team,
  .js .is-live:not(.is-on) .maya-svg > * { opacity: 0; }

  /* While a job is open, everything else steps back */
  .is-focus .maya__node:not(.is-open), .is-focus .maya__stage:not(.is-lit), .is-focus .maya__again, .is-focus .maya__team:not(.is-lit) { opacity: 0.3; }
  .is-focus .maya-svg__spoke, .is-focus .maya-svg__frame, .is-focus .maya-svg__streak, .is-focus .maya-svg__dot { opacity: 0.12; }
  .is-focus .maya-svg__loop, .is-focus .maya-svg__arrow, .is-focus .maya-svg__flow { opacity: 0.35; }
}

/* ---- Phones and tablets: Maya in the middle, her jobs as photo cards circling her ----
   The front card sits under Maya; the others go round behind her. Swipe, or tap a card or dot, to turn them.
   Without the script the cards simply stack. */
.maya__photo, .maya__dots, .maya__swipe { display: none; }
@media (max-width: 1000px) {
  .maya { overflow-x: clip; }
  .maya__map { max-width: 560px; margin-inline: auto; margin-top: 28px; }
  .maya__journey-title, .maya__journey, .maya__team, .maya__flows, .maya__icon, .maya__card-name { display: none; }
  .maya__core { z-index: 20; width: auto; gap: 0; pointer-events: none; }
  .maya__core::before { top: 62%; width: 300px; }
  .maya__core-name { order: -2; margin-top: 0; }
  .maya__core-sub { order: -1; margin-top: 6px; }
  .maya__bot { height: 230px; margin-top: 16px; }
  .maya__nodes { position: relative; display: grid; gap: 12px; margin-top: 24px; }
  .maya__node { display: flex; flex-direction: column; padding: 8px 8px 18px; border: 1px solid var(--ai-line); border-radius: var(--r-card); background: #1d1460; text-align: center; }
  .maya__photo { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--night-2); }
  .maya__photo img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
  .maya__name { padding: 14px 8px 0; font-family: var(--serif); font-size: var(--fs-3); line-height: 1.2; text-wrap: balance; }
  .maya__card { display: block; padding: 6px 8px 0; }
  .maya__text { display: block; font-size: var(--fs-5); line-height: 1.45; text-wrap: pretty; color: rgb(var(--ai-mist-rgb) / 0.85); }

  .is-deck .maya__nodes { display: block; margin-top: -22px; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
  .is-deck .maya__nodes:active { cursor: grabbing; }
  .is-deck .maya__node { position: absolute; left: 50%; top: 0; width: min(70%, 280px); transform-origin: 50% 0; will-change: transform; box-shadow: 0 18px 40px rgb(8 4 36 / 0.55); outline-offset: 3px; }
  .is-deck .maya__dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
  .maya__dot { position: relative; width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
  .maya__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; translate: -50% -50%; border-radius: 50%; background: rgb(var(--ai-lilac-rgb) / 0.35); transition: background var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
  .maya__dot.is-active::before { background: var(--yellow); scale: 1.35; }
  .is-deck .maya__swipe { display: block; margin-top: 6px; text-align: center; font-size: var(--fs-6); font-weight: 600; color: rgb(var(--ai-mist-rgb) / 0.7); }
  .maya__close { margin-top: 28px; }

  /* Behind Maya, the section's grid lights up in lilac. The lit patch drifts slowly around her.
     It is a second copy of the grid on the same box, so its lines sit exactly on the faint ones. */
  main > section.maya::after {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    height: auto;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgb(var(--ai-lilac-rgb) / 0.34) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--ai-lilac-rgb) / 0.34) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(closest-side, #000, rgb(0 0 0 / 0.45) 40%, transparent);
    mask-image: radial-gradient(closest-side, #000, rgb(0 0 0 / 0.45) 40%, transparent);
    -webkit-mask-size: 380px 380px;
    mask-size: 380px 380px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 50% calc(var(--maya-glow-y, 50%) - 190px);
    mask-position: 50% calc(var(--maya-glow-y, 50%) - 190px);
    animation: maya-grid-glow 11s ease-in-out infinite;
  }
}
@keyframes maya-grid-glow {
  0%, 100% { -webkit-mask-position: calc(50% - 46px) calc(var(--maya-glow-y, 50%) - 214px); mask-position: calc(50% - 46px) calc(var(--maya-glow-y, 50%) - 214px); opacity: 0.75; }
  35% { -webkit-mask-position: calc(50% + 52px) calc(var(--maya-glow-y, 50%) - 170px); mask-position: calc(50% + 52px) calc(var(--maya-glow-y, 50%) - 170px); opacity: 1; }
  70% { -webkit-mask-position: calc(50% + 8px) calc(var(--maya-glow-y, 50%) - 236px); mask-position: calc(50% + 8px) calc(var(--maya-glow-y, 50%) - 236px); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .maya__bot { animation: none; }
  main > section.maya::after { animation: none; }
}

/* ============ Home hero: the partner logos under the intro, their heading between two rules ============ */
.hero__partners { margin-top: 36px; min-width: 0; }
.hero__partners .partners__title { justify-content: center; }
.hero__partners .partners__title::before, .hero__partners .partners__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hero__partners .ticker { height: 64px; margin-top: 14px; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); }
.hero__partners .ticker__list { gap: 48px; }
.hero__partners .ticker__list img, .hero__partners .ticker__list img[height="72"] { height: 48px; }
.hero__partners .ticker__list li::after { right: -24px; height: 40px; margin-top: -20px; }
/* Phones and tablets: the map comes straight after the number, then the partners and the press card */
@media (max-width: 900px) {
  .hero--home .hero__wrap { gap: 0; }
  .hero--home .hero__info { display: contents; }
  .hero--home .hero__title { order: 1; }
  .hero--home .hero__sub { order: 2; }
  .hero--home .newsbox { order: 3; margin-top: 28px; }
  .hero--home .reach-map--hero { order: 4; margin-top: 28px; }
  .hero--home .hero__partners { order: 5; margin-top: 32px; }
}

/* Meet Maya on desktop: title and tagline on the left, the story on the right */
@media (min-width: 1001px) {
  .maya__head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: center; gap: 72px; max-width: none; text-align: left; }
  .maya__head-text { text-align: right; }
  .maya__head-text .maya__lead:first-child { margin-top: 0; }
}

/* ============ Swipe rail (phones): one card at a time, a pill per card above, dots below ============
   Used by the Not for profit tiles. Each card holds its photo, then the title and text under it. */
.rail__pills, .rail__dots { display: none; }
@media (max-width: 600px) {
  .rail__pills { display: flex; gap: 8px; margin: 28px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 14px; overflow-x: auto; scrollbar-width: none; }
  .rail__pills::-webkit-scrollbar { display: none; }
  .rail__pill { flex: none; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: var(--fs-5); font-weight: 600; white-space: nowrap; color: var(--purple); cursor: pointer; transition: background var(--t-1) var(--ease), color var(--t-1) var(--ease), border-color var(--t-1) var(--ease); }
  .rail__pill.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
  .milestones__grid[data-rail] { gap: 12px; margin-top: 0; padding: 4px var(--gutter) 6px; scroll-padding-inline: 0; overscroll-behavior-x: contain; }
  .milestones__grid[data-rail] .stat { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; align-items: stretch; gap: 0; padding: 14px 14px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-tile); text-align: left; opacity: 1; transform: none; }
  .milestones__grid[data-rail] .stat__media { aspect-ratio: 1 / 1; margin-bottom: 0; padding: 0; border: 0; border-radius: var(--r-md); box-shadow: none; }
  .milestones__grid[data-rail] .stat__title { margin-top: 16px; font-family: var(--serif); font-size: var(--fs-2); font-weight: 700; line-height: 1.15; text-wrap: balance; }
  .milestones__grid[data-rail] .stat__desc { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-4); line-height: 1.55; }
  .rail__dots { display: flex; justify-content: center; gap: 2px; margin-top: 12px; }
  .rail__dot { position: relative; width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
  .rail__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; translate: -50% -50%; border-radius: 50%; background: var(--line); transition: background var(--t-1) var(--ease), scale var(--t-1) var(--ease); }
  .rail__dot.is-active::before { background: var(--coral); scale: 1.35; }
}


