/* ==========================================================================
   GRIT — clean, white layout (inspired by academy.stoic.education)
   Content comes from the Figma frames Desktop 10–13.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --muted: #6b7068;
  --line: #e4e7e3;
  --accent: #1f4d2e; /* GRIT green: logo, hero title, divider lines */
  --accent-soft: rgba(31, 77, 46, 0.3);
  --bg: #ffffff;
  --bg-soft: #f6f8f5;
  --text: #2b2b2b; /* body copy */
  --tint: #e3efe4; /* soft green chips */
  --tint-gray: #f1f1ef;
  --header-bg: rgba(255, 255, 255, 0.94);
  --on-ink: #fff; /* text on var(--ink) buttons */
  --chart: #1a1a1a; /* bar color: near-black, like the printed report */
  --chart-track: #f0f0ee;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-display: "Cinzel", Georgia, serif;

  --max: 1352px;
  --gutter: 44px;
  --section-gap: 140px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

.section {
  padding-top: var(--section-gap);
}

/* Section heading: "Where we work", "Projects" … (Cinzel, like the hero) */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 44px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  font: 500 16px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--dark {
  background: var(--ink);
  color: var(--on-ink);
}
.btn--dark:hover {
  opacity: 0.88;
}
.btn--outline {
  background: transparent;
  color: var(--ink);
}
.btn--outline:hover {
  background: var(--ink);
  color: var(--on-ink);
}
.btn--small {
  min-width: 0;
  height: 36px;
  padding: 0 20px;
  font-size: 14px;
}
.btn--light {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn--light:hover {
  background: #fff;
  color: var(--ink);
}
.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.btn--white:hover {
  background: #eef3ec;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
}
.logo img {
  height: 46px;
  width: auto;
}
.logo__light {
  display: none;
}

/* Home page: transparent header over the hero photo, turns white on scroll */
.site-header--overlay {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 0.3s;
}
.site-header--overlay .site-header__inner {
  border-bottom-color: rgba(255, 255, 255, 0.25);
  transition: border-color 0.3s;
}
.site-header--overlay:not(.is-scrolled) .nav a,
.site-header--overlay:not(.is-scrolled) .nav a.is-disabled {
  color: #fff;
}
.site-header--overlay:not(.is-scrolled) .nav a.is-disabled {
  opacity: 0.6;
}
.site-header--overlay:not(.is-scrolled) .logo__light {
  display: block;
}
.site-header--overlay:not(.is-scrolled) .logo__dark {
  display: none;
}
.site-header--overlay:not(.is-scrolled) .header-cta {
  background: #fff;
  color: #0a0a0a;
}
.site-header--overlay:not(.is-scrolled) .nav-toggle span {
  background: #fff;
}
.site-header--overlay.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
.site-header--overlay.is-scrolled .site-header__inner {
  border-bottom-color: var(--line);
}
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--accent);
}
.nav a[aria-current="page"] {
  font-weight: 500;
}
.nav a.is-disabled {
  color: var(--muted);
  cursor: default;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  font-size: 15px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: 600 13px/1 var(--font-sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.pill-btn:hover {
  border-color: var(--ink);
}
.pill-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
.site-header--overlay:not(.is-scrolled) .pill-btn {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   Hero (home): full-width landscape photo, title + numbers on top
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(100vh, 860px);
  padding: 140px 0 110px;
  color: #fff;
  overflow: hidden;
  background: #4d5f45;
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 14, 6, 0.35) 0%, rgba(7, 14, 6, 0.15) 40%, rgba(7, 14, 6, 0.55) 100%);
}
.hero__content {
  position: relative;
}
.hero__content {
  margin-bottom: auto;
  padding-top: 12vh;
}
.hero__title {
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.15;
}
.hero__subtitle {
  max-width: 760px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.35;
  opacity: 0.92;
}
.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

/* Large centered statement under the hero */
.statement {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: 56px 64px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--bg-soft);
}
.statement::before {
  content: "“";
  position: absolute;
  top: -10px;
  right: 40px;
  font-family: var(--font-display);
  font-size: 160px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.15;
}
.statement .eyebrow {
  margin-bottom: 14px;
}
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}
.statement mark {
  padding: 0 4px;
  background: linear-gradient(transparent 58%, var(--tint) 58%);
  color: var(--accent);
}
@media (max-width: 900px) {
  .statement {
    padding: 36px 24px;
  }
  .statement::before {
    font-size: 110px;
    right: 16px;
  }
}

/* --------------------------------------------------------------------------
   Numbers: four columns on a soft green band
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 56px 0;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.stat {
  padding: 8px 24px;
  text-align: center;
}
.stat + .stat {
  border-left: 1px solid var(--accent-soft);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}
.stat__label {
  margin-top: 10px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Cards with thin borders
   -------------------------------------------------------------------------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
  background: var(--bg);
}

/* Where we work */
.where {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.where__intro {
  font-size: 18px;
  margin-bottom: 28px;
}
.program {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.program__num {
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
.program__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
.program__meta {
  color: var(--muted);
  font-size: 15px;
}
.tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  vertical-align: middle;
}
.tag--done {
  background: var(--tint);
  color: var(--accent);
}
.tag--soon {
  background: var(--tint-gray);
  color: var(--muted);
}

.map {
  position: relative;
  width: 100%;
  aspect-ratio: 719 / 375;
}
.map__outline {
  width: 100%;
  height: 100%;
}
.map__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map__label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(7px, 0.75vw, 10px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.map__label--left {
  left: auto;
  right: 16px;
}
.map__pin {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(3px, 3px);
}
.map__pin--main {
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 77, 46, 0.45);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(31, 77, 46, 0);
  }
}

/* Projects: photo cards with the title on a dark gradient */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background: #2f3a2c;
}
.project__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(10, 20, 10, 0.78) 100%);
}
.project:hover .project__bg {
  transform: scale(1.05);
}
.project__body {
  position: relative;
  z-index: 1;
  padding: 36px;
}
.project__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}
.project__text {
  max-width: 420px;
  margin-top: 8px;
  font-size: 18px;
  opacity: 0.9;
}
.project__link {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.project__link span {
  transition: transform 0.3s;
}
.project:hover .project__link span {
  transform: translateX(4px);
}

/* Podcast */
.podcasts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.podcast__image {
  aspect-ratio: 414 / 256;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.podcast__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.podcast:hover .podcast__image img {
  transform: scale(1.04);
}
.podcast__title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
}
.podcast__meta {
  color: var(--muted);
  font-size: 15px;
}

/* Student success */
.success {
  flex: none;
  width: 288px;
  margin: 0;
}
.success__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.success__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.success:hover .success__photo img {
  transform: scale(1.04);
}
.success figcaption {
  padding-top: 16px;
}
.success__award {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 99px;
  background: var(--tint);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.success__name {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
}
.success__where {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

/* Speakers: same card shape as the team, school logo top-right */
.speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.speaker {
  width: 288px;
}
.speaker__photo {
  position: relative;
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.speaker__photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.speaker__school {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.4);
}
.speaker__school img {
  width: auto;
  height: 52px;
}
.speaker__name {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
}
.speaker__role {
  color: var(--muted);
  font-size: 15px;
}

/* Team */
.team__intro {
  max-width: 760px;
  margin-bottom: 48px;
  font-size: 18px;
  color: var(--muted);
}
.member {
  display: block;
  width: 288px;
  flex: none;
}
.member__photo {
  height: 360px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s;
}
a.member:hover .member__photo img {
  transform: scale(1.04);
}
.member__name {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
}
.member__school {
  color: var(--muted);
  font-size: 15px;
}

/* Photos in the moving rows */
.photo {
  flex: none;
  width: 300px;
  height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Sub pages
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: 90px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-hero__title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  color: var(--accent);
}
.page-hero__subtitle {
  margin-top: 16px;
  max-width: 620px;
  font-size: 20px;
  color: var(--muted);
}
.page-hero__image {
  margin-top: 56px;
  height: clamp(280px, 38vw, 520px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Two columns: heading left, text right */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 56px;
}
.split .section-title {
  margin-bottom: 0;
}
.prose {
  font-size: 17px;
  color: var(--text);
}
.prose p + p {
  margin-top: 16px;
}
.prose .btn {
  margin-top: 28px;
}

.impact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: center;
}
.impact__chart img {
  width: 100%;
  height: auto;
}
.impact__summary {
  margin-top: 40px;
  font-size: 17px;
  color: var(--text);
}

/* Member page */
.profile {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  padding-top: 90px;
}
.profile__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  color: var(--accent);
}
.profile__school {
  margin-top: 6px;
  font-size: 18px;
  color: var(--muted);
}
.profile__facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile__facts li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.profile__facts span {
  color: var(--muted);
}
.profile__back {
  margin-top: 36px;
}
.profile .section-title {
  margin: 48px 0 16px;
  font-size: 24px;
}

/* --------------------------------------------------------------------------
   Report content (GRIT EDU page)
   -------------------------------------------------------------------------- */
.section-lead {
  max-width: 760px;
  margin: -12px 0 40px;
  font-size: 17px;
  color: var(--text);
}

/* Key results: six numbers in a bordered grid */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.kpi {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kpi:nth-child(3n) {
  border-right: 0;
}
.kpi:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.kpi__value {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}
.kpi__label {
  margin-top: 8px;
  color: var(--muted);
}
.lead-quote {
  max-width: 820px;
  margin: 48px auto 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--accent);
}

/* Facts list */
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-weight: 600;
}
.facts dd {
  margin: 0;
  color: var(--text);
}

/* Team table */
.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.table th,
.table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.table thead th {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.table tbody th {
  font-weight: 600;
  white-space: nowrap;
}
.table td:last-child {
  color: var(--muted);
}

/* Curriculum tracks */
.tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.track {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.track:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.track__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 600;
}
.track__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: 15px;
}
.track p {
  color: var(--text);
}

/* Horizontal bar charts (single series: respondents out of 16) */
.charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.chart {
  margin: 0;
  padding: 28px;
}
.chart__title {
  font-size: 18px;
  font-weight: 600;
}
.chart__sub {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}
.chart__note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.bars {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.bar__label {
  color: var(--text);
}
.bar__track {
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: var(--chart-track);
}
.bar__fill {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--chart);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.js .chart:not(.is-visible) .bar__fill {
  width: 0;
}
.bar__value {
  font-weight: 600;
  text-align: right;
}
/* hover tooltip: "15 of 16 · 94%" */
.bar::after {
  content: attr(data-tip);
  position: absolute;
  right: 36px;
  bottom: calc(100% + 6px);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
  z-index: 2;
}
.bar:hover::after {
  opacity: 1;
  transform: none;
}
.bar:hover .bar__fill {
  opacity: 0.8;
}

/* Student quotes */
.quotes {
  columns: 2;
  column-gap: 24px;
}
.quote {
  break-inside: avoid;
  margin: 0 0 24px;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--bg-soft);
}
.quote p {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
}
.quote footer {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

/* Challenges and lessons */
.lessons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.lessons__title {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
}
.lessons--next {
  border-color: var(--accent-soft);
  background: var(--bg-soft);
}
.lessons__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lessons__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
}
.lessons__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.lessons__list strong {
  display: block;
  font-weight: 600;
}
.lessons__list--check li::before {
  content: "✓";
  top: 0;
  width: auto;
  height: auto;
  background: none;
  color: var(--accent);
  font-weight: 600;
}

/* Roadmap */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.step--next {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.step__when {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.step__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.step__meta {
  margin: 8px 0 18px;
  color: var(--text);
}
.step .tag {
  margin-left: 0;
}

/* Thanks */
.sponsors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.sponsor {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.sponsor__kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.sponsor__name {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
}
.sponsor__what {
  color: var(--muted);
  font-size: 15px;
}
.signoff {
  margin-top: 28px;
  font-weight: 600;
}
.signoff span {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact + footer
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
}
.contact__title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.contact__lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 420px;
}
.contact__list {
  margin: 36px 0 0;
  display: grid;
  gap: 22px;
}
.contact__list dd {
  margin: 2px 0 0;
}
.contact__list dt,
.form label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__list a {
  font-size: 17px;
  font-weight: 500;
}
.contact__list a:hover {
  color: var(--accent);
}

.form {
  display: grid;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 6px;
}
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: 16px/1.4 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea {
  min-height: 130px;
  resize: vertical;
}
.form .btn {
  width: 100%;
  height: 48px;
}

.site-footer {
  margin-top: var(--section-gap);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.site-footer img {
  height: 26px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Scroll reveal (js/main.js adds .js to <html> and .is-visible to elements)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Auto-scrolling rows (team, photos). js/main.js wraps the items in a
   .marquee__track and duplicates them so the loop is seamless.
   -------------------------------------------------------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
}
.marquee__track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  /* moved by js/main.js (auto-scroll + drag) */
  will-change: transform;
}
.marquee__track > * {
  margin-right: 24px;
}
@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

img.img-missing {
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav {
    gap: 22px;
  }
  .charts {
    grid-template-columns: minmax(0, 1fr);
  }
  .where,
  .split,
  .impact,
  .contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
    --section-gap: 96px;
  }
  .site-header__inner {
    height: 64px;
  }
  .logo img {
    height: 32px;
  }
  .nav-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 14px 24px;
    border-top: 1px solid var(--line);
  }

  .site-header__inner {
    padding: 0 16px;
  }
  .hero {
    min-height: 600px;
    padding: 100px 0 64px;
  }
  .hero__content {
    padding-top: 6vh;
  }
  .hero__actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .site-header--overlay:not(.is-scrolled) .nav.is-open a {
    color: var(--ink);
  }

  .card {
    padding: 24px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .kpi {
    padding: 22px 16px;
  }
  .kpi:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .kpi:nth-child(2n) {
    border-right: 0;
  }
  .kpi:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .kpi:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .kpi__label {
    font-size: 14px;
  }
  .facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .tracks,
  .lessons,
  .steps,
  .sponsors {
    grid-template-columns: minmax(0, 1fr);
  }
  .quotes {
    columns: 1;
  }
  .quote p {
    font-size: 19px;
  }
  .track,
  .chart {
    padding: 20px;
  }
  .bar {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 4px 10px;
  }
  .bar__label {
    grid-column: 1 / -1;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 12px 0;
  }
  .stat {
    padding: 28px 12px;
  }
  .stat + .stat {
    border-left: 0;
  }
  .stat:nth-child(even) {
    border-left: 1px solid var(--accent-soft);
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--accent-soft);
  }
  .stat__label {
    font-size: 14px;
  }
  .projects,
  .podcasts {
    grid-template-columns: minmax(0, 1fr);
  }
  .success {
    width: 230px;
  }
  .speakers {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }
  .success__name {
    font-size: 17px;
  }
  .success__where {
    font-size: 14px;
  }
  .success__award {
    font-size: 12px;
    padding: 2px 10px;
  }
  .speaker {
    width: calc(50% - 12px);
  }
  .speaker__photo {
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .project {
    min-height: 420px;
  }
  .project__body {
    padding: 24px;
  }

  .member {
    width: 230px;
  }
  .member__photo {
    height: 290px;
  }
  .photo {
    width: 240px;
    height: 300px;
  }
  .marquee__track > * {
    margin-right: 16px;
  }

  .profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 56px;
  }
  .profile__photo {
    max-width: 340px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Photo album + lightbox (EDU / Environment pages)
   -------------------------------------------------------------------------- */
.album__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.album__count {
  color: var(--muted);
}
.album {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 12px;
}
.album__item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.album__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.album__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.album__item:hover img {
  transform: scale(1.04);
}
.album__item.is-hidden {
  display: none;
}
.album__more {
  margin-top: 28px;
  text-align: center;
}
.album__note {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: rgba(10, 12, 10, 0.92);
}
.lightbox[hidden] {
  display: none;
}
.lightbox__figure {
  width: 100%;
  margin: 0;
  text-align: center;
}
.lightbox__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: var(--radius-sm);
  margin: 0 auto;
}
.lightbox__figure figcaption {
  margin-top: 12px;
  color: #ddd;
  font-size: 15px;
}
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox__close {
  top: 16px;
  right: 16px;
}
.lightbox__nav--prev {
  left: 16px;
}
.lightbox__nav--next {
  right: 16px;
}

@media (max-width: 900px) {
  .album {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 8px;
  }
  .lightbox {
    padding: 56px 12px;
  }
  .lightbox__nav {
    top: auto;
    bottom: 16px;
  }
}

/* Podcast: video player and "coming soon" placeholders */
.podcast__video {
  background: #000;
}
.podcast__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.podcast__soon {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0d3b7a url("../assets/img/podcast-soon.jpg") center / cover no-repeat;
}
.podcast__soon::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: inherit;
  filter: blur(2px);
}
.podcast__soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 35, 0.25);
}
.podcast__soon span {
  position: relative;
  z-index: 1;
}
.podcast__soon span {
  padding: 6px 16px;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Environment: process steps with photos */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.flow__step {
  margin: 0;
}
.flow__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
}
.flow__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flow__step figcaption {
  padding-top: 16px;
}
.flow__num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.flow__num::before {
  content: "0";
}
.flow__title {
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.flow__step p {
  color: var(--text);
  font-size: 15px;
}

/* Report placeholder */
.report-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-soft);
}
.report-note__title {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 600;
}
.report-note__text {
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .flow {
    gap: 24px 12px;
  }
  .flow__title {
    font-size: 19px;
  }
  .flow__step p {
    font-size: 14px;
  }
  .report-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Report flip-book (EDU page) */
.book-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.book {
  width: 100%;
  max-width: 1000px;
}
.book__page {
  background: #fff;
  overflow: hidden;
}
.book__page img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.book:not(.stf__parent) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.book-wrap:fullscreen {
  align-items: center;
  border-radius: 0;
  padding: 16px;
}
.book-wrap:fullscreen .book {
  max-width: calc((100vh - 32px) * 1.414);
}
.book__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.book__counter {
  min-width: 70px;
  text-align: center;
  font-weight: 600;
}
.book__hint {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .book-wrap {
    padding: 12px;
  }
}

/* --------------------------------------------------------------------------
   Night mode (html[data-theme="dark"], toggled by the moon/sun button)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ececea;
  --muted: #9aa39a;
  --line: #2b322c;
  --accent: #8cc79a;
  --accent-soft: rgba(140, 199, 154, 0.35);
  --bg: #101311;
  --bg-soft: #181d19;
  --text: #d6d9d4;
  --tint: #1f3325;
  --tint-gray: #24282a;
  --header-bg: rgba(16, 19, 17, 0.92);
  --on-ink: #101311;
  --chart: #e6e6e3;
  --chart-track: #262b27;
}
[data-theme="dark"] .logo__dark,
[data-theme="dark"] .logo img:only-child,
[data-theme="dark"] .site-footer img {
  filter: invert(1);
}
[data-theme="dark"] .map__outline {
  filter: grayscale(1) invert(0.85);
}
[data-theme="dark"] .speaker__photo svg {
  fill: #3a4a3d;
}
[data-theme="dark"] .fact,
[data-theme="dark"] .book__page {
  border-color: var(--line);
}
[data-theme="dark"] .bar::after {
  background: #ececea;
  color: #101311;
}
body,
.site-header,
.card,
.kpis,
.track,
.step,
.sponsor {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Research & articles */
.pubs {
  display: grid;
  gap: 20px;
}
.pub {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.3s;
}
a.pub:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.pub--soon {
  border-style: dashed;
  background: var(--bg-soft);
}
.pub__cover {
  aspect-ratio: 1 / 1.414;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
}
.pub__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pub__soon {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pub__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}
.pub__desc {
  margin-top: 8px;
  color: var(--text);
}
.pub__meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.pub .project__link {
  color: var(--ink);
  border-bottom-color: var(--line);
}
@media (max-width: 600px) {
  .pub {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
  }
  .pub__desc {
    font-size: 14px;
  }
}

/* Famous quotes (home) */
.famous {
  position: relative;
  display: grid;
  max-width: 980px;
  margin-inline: auto;
  padding: 64px 48px 48px;
  text-align: center;
}
.famous__item {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s, transform 0.8s;
  pointer-events: none;
}
.famous__item.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.famous blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
.famous figcaption {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.famous__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.famous__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background-color 0.3s, width 0.3s;
}
.famous__dot.is-active {
  width: 24px;
  border-radius: 99px;
  background: var(--accent);
}
@media (max-width: 900px) {
  .famous {
    padding: 32px 0;
  }
}

[hidden] {
  display: none !important;
}

/* Draggable rows + arrow buttons */
.marquee {
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.marquee.is-dragging {
  cursor: grabbing;
}
.marquee img {
  -webkit-user-drag: none;
}
.marquee__btn,
.famous__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, background-color 0.2s;
}
.marquee__btn:hover,
.famous__arrow:hover {
  transform: scale(1.08);
}
.marquee__btn {
  position: absolute;
  top: 40%;
  z-index: 2;
  opacity: 0.9;
}
.marquee__btn--prev {
  left: 16px;
}
.marquee__btn--next {
  right: 16px;
}
.famous__dots {
  align-items: center;
}
.famous__arrow {
  width: 36px;
  height: 36px;
  font-size: 22px;
  margin: 0 8px;
}
@media (max-width: 900px) {
  .marquee__btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
  .marquee__btn--prev {
    left: 8px;
  }
  .marquee__btn--next {
    right: 8px;
  }
}

.marquee .photo {
  cursor: zoom-in;
}

/* EDU: scholarships & certificates */
.scholar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.scholar__photo,
.cert {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
}
.scholar__photo img,
.cert img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.scholar__photo:hover img,
.cert:hover img {
  transform: scale(1.03);
}
.scholar__photo {
  aspect-ratio: 4 / 3;
}
.scholar__photo img {
  object-position: center 70%;
}
.cert img {
  object-position: center 65%;
}
.scholar .tag {
  margin-left: 0;
}
.scholar__title {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
}
.scholar__text p {
  color: var(--text);
}
.scholar__sub {
  margin: 48px 0 20px;
  color: var(--muted);
}
.certs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cert {
  aspect-ratio: 3 / 4;
}
@media (max-width: 900px) {
  .scholar {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .certs {
    gap: 8px;
  }
}

.book__license {
  margin-top: 6px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.book__license a,
.site-footer a {
  text-decoration: underline;
}

/* © notice in the corner of every photo */
.photo,
.member__photo,
.success__photo,
.album__item,
.flow__photo,
.project,
.page-hero__image,
.scholar__photo,
.cert,
.podcast__image:not(.podcast__soon),
.hero {
  position: relative;
}
.photo::after,
.member__photo::after,
.success__photo::after,
.album__item::after,
.flow__photo::after,
.page-hero__image::after,
.scholar__photo::after,
.cert::after,
.podcast__image:not(.podcast__soon)::after,
.speaker__photo::after,
.project::before {
  content: "© GRIT";
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  padding: 0;
  background: none;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  font: 400 10px/1.4 var(--font-sans);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.project::before {
  top: 12px;
  right: 12px;
  bottom: auto;
}
.podcast__image:not(.podcast__soon)::after {
  bottom: auto;
  top: 8px;
}
.speaker__photo {
  position: relative;
}
.speaker__photo::after {
  right: auto;
  left: 8px;
  bottom: 8px;
  font-size: 10px;
}
.speakers {
  justify-content: start;
}

.speaker__school--text {
  width: auto;
  padding: 0 10px;
  font: 800 12px/1 var(--font-sans);
  letter-spacing: 0.06em;
}

/* Instagram preview card */
.ig-card {
  display: block;
  max-width: 420px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--line, rgba(0,0,0,0.1));
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.ig-card:hover { transform: translateY(-2px); border-color: currentColor; }
.ig-card__head { display: flex; align-items: center; gap: 12px; }
.ig-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid rgba(0,0,0,0.1); }
.ig-card__id { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.ig-card__id strong { font-size: 15px; font-weight: 600; }
.ig-card__id small { font-size: 12px; opacity: 0.6; }
.ig-card__btn { padding: 7px 14px; border-radius: 8px; background: #0a0a0a; color: #fff; font-size: 13px; font-weight: 600; }
[data-theme="dark"] .ig-card__btn { background: #fff; color: #0a0a0a; }
.ig-card__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 14px; border-radius: 10px; overflow: hidden; }
.ig-card__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* Speaker hover pop */
.speaker__photo {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.speaker__photo > img { transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.speaker:hover .speaker__photo {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.35);
}
.speaker:hover .speaker__photo > img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .speaker:hover .speaker__photo, .speaker:hover .speaker__photo > img { transform: none; }
}

@media (max-width: 640px) {
  .speaker__school { top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 9px; }
  .speaker__school img { height: 30px; }
}

/* Podcast: swipeable row on phones (manual only, no autoplay) */
@media (max-width: 640px) {
  .podcasts {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin: 0 -16px;
    padding: 0 16px 6px;
    scroll-padding: 0 16px;
    scrollbar-width: none;
  }
  .podcasts::-webkit-scrollbar { display: none; }
  .podcast { scroll-snap-align: start; }
}

/* Speakers: one swipeable row (manual only, no autoplay) */
.speakers {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 8px 0 12px;
}
.speakers::-webkit-scrollbar { display: none; }
.speaker { flex: 0 0 288px; width: 288px; scroll-snap-align: start; }
.speaker__photo { height: 360px; aspect-ratio: auto; }
@media (max-width: 640px) {
  .speakers { gap: 14px; margin: 0 -16px; padding: 8px 16px 12px; scroll-padding: 0 16px; }
  .speaker { flex: 0 0 68%; width: auto; }
  .speaker__photo { height: auto; aspect-ratio: 4 / 5; }
}

/* ==========================================================================
   Refresh: modern, formal look — neutral zinc palette, Inter / Inter Tight
   ========================================================================== */
:root {
  --ink: #09090b;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #2f5d3a;
  --accent-soft: rgba(47, 93, 58, 0.25);
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --text: #3f3f46;
  --tint: #eaf1eb;
  --tint-gray: #f4f4f5;
  --header-bg: rgba(255, 255, 255, 0.86);
  --chart: #18181b;
  --chart-track: #f4f4f5;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --radius-md: 12px;
  --radius-lg: 16px;
}
[data-theme="dark"] {
  --ink: #fafafa;
  --muted: #a1a1aa;
  --line: #27272a;
  --accent: #9cc5a4;
  --accent-soft: rgba(156, 197, 164, 0.3);
  --bg: #09090b;
  --bg-soft: #111113;
  --text: #d4d4d8;
  --tint: #1b2a20;
  --tint-gray: #18181b;
  --header-bg: rgba(9, 9, 11, 0.82);
  --on-ink: #09090b;
  --chart: #e4e4e7;
  --chart-track: #1f1f23;
}
body {
  font-feature-settings: "cv11", "ss01";
  letter-spacing: 0;
}
.section-title,
.hero__title,
.hero__subtitle,
.statement__text,
.stat__value,
.project__title,
.kpi__value,
.step__title,
.flow__title,
.pub__title,
.scholar__title,
.page-hero__title,
.profile__name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  text-transform: none;
}
.hero__title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: -0.01em;
  opacity: 0.9;
}
.section-title { letter-spacing: -0.015em; }
.statement__text { font-weight: 500; line-height: 1.45; letter-spacing: -0.005em; }
.stat__value, .kpi__value { letter-spacing: -0.02em; }
.site-header { backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
.btn, .header-cta { letter-spacing: -0.005em; }
/* Hero copy and buttons sit a little lower */
.hero__content { padding-top: 22vh; }
@media (max-width: 900px) {
  .hero__content { padding-top: 12vh; }
}

/* ==========================================================================
   Modern sections: hero, statement, stats (dark-UI inspired)
   ========================================================================== */
.hero { justify-content: flex-end; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,9,11,0.35) 0%, rgba(9,9,11,0) 30%, rgba(9,9,11,0.15) 55%, rgba(9,9,11,0.7) 100%);
  pointer-events: none;
}
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 48px;
  margin-bottom: 0;
  margin-top: auto;
  padding-top: 0;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__dot { width: 6px; height: 6px; border-radius: 50%; background: #9cc5a4; box-shadow: 0 0 0 3px rgba(156,197,164,0.25); }
.hero__title { font-weight: 500; font-size: clamp(36px, 4.8vw, 64px); line-height: 1.05; }
.hero__subtitle { margin-top: 18px; max-width: 520px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; opacity: 0.78; }
.hero__actions { margin-top: 32px; gap: 10px; align-items: center; }
.hero .btn { min-width: 0; height: 42px; padding: 0 20px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.btn--ghost { border-color: transparent; background: transparent; color: #fff; gap: 8px; }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.hero__quote {
  position: relative;
  margin: 0;
  padding: 22px 24px;
  border: 1px dashed rgba(255,255,255,0.35);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
}
.hero__quote::before, .hero__quote::after {
  content: "";
  position: absolute;
  width: 5px; height: 5px;
  background: rgba(255,255,255,0.7);
}
.hero__quote::before { top: -3px; left: -3px; }
.hero__quote::after { bottom: -3px; right: -3px; }
.hero__quote blockquote { margin: 0; font-style: normal; }
.hero__quote figcaption {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.7);
}
.hero__quote figcaption::before { content: ""; width: 24px; height: 1px; background: currentColor; }
@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .hero__quote { display: none; }
}

/* Eyebrow: small, wide tracking */
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; color: var(--muted); }

/* Why we exist: bordered panel with grid texture */
.statement {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  max-width: none;
  padding: 48px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  background-color: var(--bg-soft);
  overflow: hidden;
}
.statement::before { display: none; }
.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, transparent 0%, var(--bg-soft) 70%);
  pointer-events: none;
}
.statement > * { position: relative; z-index: 1; }
.statement__head { display: flex; flex-direction: column; gap: 14px; }
.statement__index {
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.statement__text { font-size: clamp(22px, 2.3vw, 30px); color: var(--ink); }
.statement mark { padding: 0 2px; background: none; color: var(--accent); }
@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
}

/* Stats: separate bordered cards */
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  background: none;
}
.stat {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  text-align: left;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat__value { font-weight: 600; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: var(--ink); }
.stat__label {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__index {
  position: absolute;
  top: 18px; right: 20px;
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  opacity: 0.7;
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 22px 18px 18px; }
  .stat + .stat { border-top: 1px solid var(--line); }
}
.btn--white, [data-theme="dark"] .btn--white { color: #09090b; }
.stat__value { white-space: nowrap; }
@media (max-width: 640px) {
  .stat__value { font-size: 32px; }
  .stat__label { letter-spacing: 0.14em; }
}

/* Quotes: dark feature panel */
.famous {
  max-width: none;
  margin: 0;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 88px) clamp(32px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  text-align: left;
  overflow: hidden;
  color: #fafafa;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(156,197,164,0.18), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(47,93,58,0.35), transparent 60%),
    #0c0f0d;
}
.famous::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 80% at 70% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.famous::after {
  content: "“";
  position: absolute;
  top: -40px;
  right: clamp(16px, 5vw, 72px);
  font: 400 clamp(180px, 22vw, 300px)/1 var(--font-serif);
  color: rgba(156,197,164,0.14);
  pointer-events: none;
}
.famous > * { position: relative; z-index: 1; }
.famous blockquote {
  max-width: 900px;
  color: #fafafa;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.15;
  text-wrap: balance;
}
.famous figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(250,250,250,0.7);
}
.famous figcaption::before { content: ""; width: 32px; height: 1px; background: #9cc5a4; }
.famous__dots { justify-content: flex-start; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.famous__dot { background: rgba(255,255,255,0.22); }
.famous__dot.is-active { background: #9cc5a4; }
.famous__arrow {
  width: 38px; height: 38px;
  border-color: rgba(255,255,255,0.16);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #fafafa;
  font-size: 20px;
  box-shadow: none;
}
.famous__arrow:hover { background: rgba(255,255,255,0.1); transform: none; }

/* Where we work: map on grid, programs as rows */
.where {
  padding: 0;
  overflow: hidden;
  gap: 0;
  border-radius: 20px;
  align-items: stretch;
}
.where .map {
  align-self: center;
  margin: 32px;
  width: auto;
}
.where > .map { position: relative; }
.where::before {
  content: "";
  grid-area: 1 / 1;
  background-color: var(--bg-soft);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(90% 90% at 50% 50%, #000 40%, transparent 100%);
}
.where > .map { grid-area: 1 / 1; }
.where > div:last-child {
  padding: 44px 40px;
  border-left: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.where__eyebrow { margin-bottom: 14px; }
.where__intro { font-size: 20px; line-height: 1.5; color: var(--ink); letter-spacing: -0.01em; }
.program {
  gap: 16px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  transition: border-color 0.2s, transform 0.2s;
}
.program:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
.program__num { font: 500 12px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; }
.program__name { font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.program__name .tag { margin-left: 0; }
.program__meta { margin-top: 4px; font-size: 14px; line-height: 1.55; }
.tag { padding: 3px 10px; border: 1px solid transparent; font-size: 11px; letter-spacing: 0.04em; }
.tag--done { border-color: var(--accent-soft); }
.tag--soon { border-color: var(--line); }
@media (max-width: 900px) {
  .where { grid-template-columns: 1fr; }
  .where::before, .where > .map { grid-area: auto; }
  .where::before { display: none; }
  .where .map { margin: 20px; }
  .where > div:last-child { padding: 24px 20px; border-left: 0; border-top: 1px solid var(--line); }
}
.famous { grid-template-rows: auto 1fr auto; }
.famous__eyebrow {
  grid-area: 1 / 1;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9cc5a4;
}
.famous__item { grid-area: 2 / 1; align-self: center; }
.famous__dots { grid-area: 3 / 1; }
.famous::after { top: 8px; line-height: 0.8; }

/* Quotes panel — light theme variant */
:root:not([data-theme="dark"]) .famous {
  color: var(--ink);
  border-color: var(--line);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(156,197,164,0.28), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(47,93,58,0.10), transparent 60%),
    #f6f8f6;
}
:root:not([data-theme="dark"]) .famous::before {
  background-image:
    linear-gradient(to right, rgba(9,9,11,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9,9,11,0.06) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .famous::after { color: rgba(47,93,58,0.12); }
:root:not([data-theme="dark"]) .famous blockquote { color: var(--ink); }
:root:not([data-theme="dark"]) .famous figcaption { color: var(--muted); }
:root:not([data-theme="dark"]) .famous figcaption::before { background: var(--accent); }
:root:not([data-theme="dark"]) .famous__eyebrow { color: var(--accent); }
:root:not([data-theme="dark"]) .famous__dots { border-top-color: var(--line); }
:root:not([data-theme="dark"]) .famous__dot { background: rgba(9,9,11,0.15); }
:root:not([data-theme="dark"]) .famous__dot.is-active { background: var(--accent); }
:root:not([data-theme="dark"]) .famous__arrow { border-color: var(--line); background: #fff; color: var(--ink); }
:root:not([data-theme="dark"]) .famous__arrow:hover { background: var(--tint-gray); }

/* Program photos: green glow appears on hover */
.photos-glow .marquee { padding: 32px 0 40px; }
.photos-glow .photo {
  border-radius: 14px;
  box-shadow: 0 0 0 0 rgba(47, 93, 58, 0);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.photos-glow .photo img { border-radius: 14px; }
.photos-glow .photo:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px rgba(47, 93, 58, 0.4),
    0 16px 38px -10px rgba(47, 93, 58, 0.7),
    0 0 40px -2px rgba(120, 185, 135, 0.85);
}
[data-theme="dark"] .photos-glow .photo:hover {
  box-shadow:
    0 0 0 2px rgba(156, 197, 164, 0.45),
    0 16px 38px -10px rgba(0, 0, 0, 0.75),
    0 0 42px -2px rgba(156, 197, 164, 0.6);
}

/* Inner page hero: neutral title, accent details, tinted photo */
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
}
.page-hero .eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.page-hero__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.page-hero__subtitle { font-size: 19px; }
.page-hero__image {
  position: relative;
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 24px 50px -24px rgba(47, 93, 58, 0.55);
}
.page-hero__image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(47, 93, 58, 0) 45%, rgba(47, 93, 58, 0.35) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ==========================================================================
   GRIT EDU page — web-native layout (less "slide deck")
   ========================================================================== */
.page-edu main { counter-reset: sec; }
.page-edu main > .section:not(.contact) .section-title { counter-increment: sec; }
.page-edu main > .section:not(.contact) .section-title::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.page-edu .split .section-title { position: sticky; top: 110px; align-self: start; }
.page-edu .section-lead { max-width: 680px; font-size: 17px; color: var(--muted); }

/* KPIs: dark feature panel */
.page-edu .kpis {
  position: relative;
  gap: 1px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
}
.page-edu .kpi {
  position: relative;
  padding: 36px 32px;
  border: 0;
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(156,197,164,0.12), transparent 60%),
    #0c0f0d;
}
.page-edu .kpi__value { font-weight: 600; letter-spacing: -0.03em; color: #fafafa; }
.page-edu .kpi__label {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
  color: rgba(250,250,250,0.6);
}
.page-edu .kpi:nth-child(1) .kpi__value,
.page-edu .kpi:nth-child(2) .kpi__value { color: #9cc5a4; }

/* Lead quote: left-aligned with accent rule */
.page-edu .lead-quote {
  max-width: 900px;
  margin: 56px 0 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--accent);
  text-align: left;
  font-size: clamp(22px, 2.3vw, 30px);
  color: var(--ink);
}

/* At a glance: tiles */
.page-edu .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 0;
}
.page-edu .facts > div {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}
.page-edu .facts > div:nth-child(5) { grid-column: 1 / -1; }
.page-edu .facts dt {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.page-edu .facts dd { color: var(--ink); line-height: 1.55; }

/* Team table inside a card */
.page-edu .table-wrap {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.page-edu .table th, .page-edu .table td { padding: 14px 18px; }
.page-edu .table thead th { background: var(--bg-soft); }
.page-edu .table tbody tr { transition: background-color 0.2s; }
.page-edu .table tbody tr:hover { background: var(--bg-soft); }

/* Tracks: interactive cards */
.page-edu .track {
  border-radius: 16px;
  background: var(--bg);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.page-edu .track:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 18px 40px -24px rgba(47,93,58,0.45);
}
.page-edu .track__num {
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  border-radius: 6px;
}

/* Charts: soft cards, green bars */
.page-edu .chart { border-radius: 16px; background: var(--bg-soft); }
.page-edu .bar__track { border-radius: 99px; background: var(--line); }
.page-edu .bar__fill {
  border-radius: 99px;
  background: linear-gradient(90deg, #2f5d3a, #6f9f7a);
}
[data-theme="dark"] .page-edu .bar__fill { background: linear-gradient(90deg, #4f7f5b, #9cc5a4); }

@media (max-width: 900px) {
  .page-edu .split .section-title { position: static; }
  .page-edu .facts { grid-template-columns: 1fr; }
  .page-edu .kpi { padding: 26px 22px; }
}

/* Same hover glow for success, speakers and team photos */
.success__photo,
.speaker__photo,
.member__photo {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.success:hover .success__photo,
.speaker:hover .speaker__photo,
.member:hover .member__photo {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px rgba(47, 93, 58, 0.4),
    0 16px 38px -10px rgba(47, 93, 58, 0.7),
    0 0 40px -2px rgba(120, 185, 135, 0.85);
}
[data-theme="dark"] .success:hover .success__photo,
[data-theme="dark"] .speaker:hover .speaker__photo,
[data-theme="dark"] .member:hover .member__photo {
  box-shadow:
    0 0 0 2px rgba(156, 197, 164, 0.45),
    0 16px 38px -10px rgba(0, 0, 0, 0.75),
    0 0 42px -2px rgba(156, 197, 164, 0.6);
}
/* room so the glow is not clipped by the scrolling rows */
#success .marquee, #team .marquee { padding: 28px 0 36px; }
.speakers { padding: 28px 4px 36px; }
@media (max-width: 640px) {
  .speakers { padding: 24px 0 32px; }
}

/* Clickable stats, team rows and the next-step card */
.stat { cursor: pointer; transition: border-color 0.2s, transform 0.2s; user-select: none; }
.stat:hover { border-color: var(--accent-soft); transform: translateY(-2px); }
tr[data-href] { cursor: pointer; }
tr[data-href] a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
tr[data-href]:hover a { color: var(--accent); text-decoration-color: currentColor; }
.step--link { display: block; color: inherit; text-decoration: none; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.step--link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(47,93,58,0.5); }
.step__arrow { display: inline-block; transition: transform 0.2s; color: var(--accent); }
.step--link:hover .step__arrow { transform: translateX(4px); }

/* Speakers: auto-scrolling row like the photo rows */
.speakers-row { padding: 28px 0 36px; }
.speakers-row .speaker { flex: none; width: 288px; scroll-snap-align: none; }
.speakers-row .speaker__photo { height: 360px; aspect-ratio: auto; }
@media (max-width: 640px) {
  .speakers-row .speaker { width: 220px; }
  .speakers-row .speaker__photo { height: 275px; }
}

/* Mongolian: Cyrillic-friendly serif for quotes */
[data-lang="mn"] { --font-serif: "PT Serif", Georgia, "Times New Roman", serif; }
/* Mongolian nav labels are longer: keep them clear of the header buttons */
[data-lang="mn"] .nav { gap: 24px; }
@media (min-width: 1181px) and (max-width: 1360px) {
  [data-lang="mn"] .nav { position: static; transform: none; margin: 0 auto; gap: 16px; }
  [data-lang="mn"] .nav a { font-size: 14px; white-space: nowrap; }
}
/* Below 1180px the Mongolian menu folds into the burger, like on phones */
@media (min-width: 901px) and (max-width: 1180px) {
  [data-lang="mn"] .nav-toggle { display: block; }
  [data-lang="mn"] .header-actions { margin-left: auto; margin-right: 16px; }
  [data-lang="mn"] .nav {
    position: absolute; top: 100%; left: 0; right: 0; transform: none;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); display: none;
  }
  [data-lang="mn"] .nav.is-open { display: flex; }
  [data-lang="mn"] .nav a { padding: 14px 24px; border-top: 1px solid var(--line); color: var(--ink); }
}
.speaker__school--fill { overflow: hidden; padding: 0; background: none; }
.speaker__school--fill img { width: 100%; height: 100%; object-fit: cover; }

/* Mongolian cloud motif in empty section heads */
#success, #team, #speakers, #podcast, #where { position: relative; }
#success::before, #team::before, #speakers::before, #podcast::before, #where::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -10px; right: max(16px, calc(50% - 680px)); width: min(62vw, 460px); aspect-ratio: 520/220;
  background: url(../assets/img/cloud.svg) no-repeat center/contain; opacity: .32; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
#team::before, #podcast::before { right: auto; left: max(40%, calc(50% - 100px)); top: 30px; transform: scaleX(-1); }
:root:not([data-theme="dark"]) #success::before, :root:not([data-theme="dark"]) #team::before,
:root:not([data-theme="dark"]) #speakers::before, :root:not([data-theme="dark"]) #podcast::before,
:root:not([data-theme="dark"]) #where::before { filter: brightness(.5) saturate(.8); opacity: .22; }
#success > *, #team > *, #speakers > *, #podcast > *, #where > * { position: relative; z-index: 1; }

/* Cloud motif around the program photo row */
.photos-glow { position: relative; }
.photos-glow::before, .photos-glow::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(62vw, 460px); aspect-ratio: 520/220;
  background: url(../assets/img/cloud.svg) no-repeat center/contain; opacity: .32;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.photos-glow::before { top: -40px; left: max(16px, calc(50% - 640px)); }
.photos-glow::after { bottom: -110px; right: max(16px, calc(50% - 640px)); transform: scaleX(-1); }
:root:not([data-theme="dark"]) .photos-glow::before, :root:not([data-theme="dark"]) .photos-glow::after { filter: brightness(.5) saturate(.8); opacity: .22; }
.photos-glow > * { position: relative; z-index: 1; }
/* no decorative section numbers */
.page-edu main > .section:not(.contact) .section-title::before { content: none; display: none; }
