/* Childreach Nepal: site styles */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --paper: #f6f4ee;
  --paper-2: #eeebe2;
  --card: #fffdf8;
  --ink: #17201a;
  --ink-2: #3a443e;
  --muted: #6a726c;
  --line: #ddd8cc;
  --green: #84c23c;        /* brand green (logo) */
  --green-btn: #4a8519;    /* brand green, deepened so white text passes AA (4.5:1) */
  --green-hover: #3f7410;
  --green-press: #376710;
  --green-deep: #3f7410;   /* green for small text on paper (AA) */
  --blue: #2a80bd;         /* brand blue (logo) */
  --blue-btn: #1f71ab;     /* brand blue, a touch deeper so white text passes AA */
  --blue-hover: #2a80bd;
  --blue-press: #185d8e;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --serif: var(--sans);
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue-btn); }
:focus-visible { outline: 2px solid var(--blue-btn); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* eyebrow / labels */
.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 1.25rem; display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.eyebrow.center { display: flex; justify-content: center; }
.num { font: 500 .8rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.section-label { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; background: var(--blue-btn); color: #fff; font: 600 .95rem/1 var(--sans); text-decoration: none; border: 1px solid var(--blue-btn); box-shadow: 0 1px 0 rgba(23, 32, 26, .04); transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(31, 113, 171, .55); }
.btn:active { background: var(--blue-press); border-color: var(--blue-press); transform: translateY(0); box-shadow: none; transition-duration: .08s; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--blue-btn); border-color: color-mix(in srgb, var(--blue-btn) 45%, transparent); }
.btn-ghost:hover { background: var(--blue-btn); border-color: var(--blue-btn); color: #fff; }
.btn-green { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }
.btn-green:hover { background: var(--green-hover); border-color: var(--green-hover); color: #fff; box-shadow: 0 10px 22px -12px rgba(74, 133, 25, .6); }
.btn-green:active { background: var(--green-press); border-color: var(--green-press); }
.btn-light { background: var(--green-btn); color: #fff; border-color: var(--green-btn); }
.btn-light:hover { background: var(--green-hover); color: #fff; border-color: var(--green-hover); }
.btn-small { padding: .65em 1.1em; font-size: .88rem; }
.arrow-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
a:hover .arrow-link svg, .arrow-link:hover svg { transform: translateX(4px); }
a:hover > .arrow-link, .arrow-link:hover { color: var(--blue-btn); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > ul > li > a { display: inline-flex; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav > ul > li > a i { display: inline-flex; width: 16px; height: 16px; opacity: .55; }
.nav > ul > li > a:hover, .nav li.is-active > a { color: var(--ink); }
.nav li.is-active > a::after { transform: scaleX(1); }
.nav .sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(23, 32, 26, .25); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.nav .sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.nav li[data-has-sub]:hover .sub, .nav li[data-has-sub]:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; color: var(--ink-2); }
.nav .sub a:hover, .nav .sub a[aria-current] { background: var(--paper); color: var(--ink); }
.menu-btn { display: none; }

/* page head */
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { max-width: 22ch; text-wrap: balance; }
.head-natural { margin-bottom: 0; }
.head-natural img { max-height: min(72vh, 680px); }

/* news article: one centred reading column */
.post-col { max-width: calc(880px + var(--gutter) * 2); }
.post-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(28px, 4vw, 44px); }
.post-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.post-head .crumbs { margin-bottom: 1.5rem; }
.post-head > * { animation: rise .8s var(--ease) both; }
.post-cover { margin: 0 0 clamp(36px, 5vw, 56px); display: flex; justify-content: center; background: var(--paper-2); border-radius: 12px; overflow: hidden; animation: rise .9s var(--ease) .12s both; }
.post-cover img { width: auto; max-width: 100%; height: auto; max-height: min(78vh, 760px); }
.post-body > .prose { font-size: 1.12rem; }
.post-body { padding-bottom: var(--section); }
.masonry.post-gallery { columns: 2; margin-bottom: 0; }
.post-gallery .g-item img { aspect-ratio: auto; }
.page-head .lede { max-width: 62ch; margin-top: 1.75rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink-2); }
.page-head .lede p:last-child { margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 .4em; opacity: .5; }
.head-img { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.head-img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* hero (full-bleed photo with overlaid header and bottom band) */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(100svh, 900px); display: flex; flex-direction: column; margin-top: -80px; background: #1b2620; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14, 22, 18, .78) 0%, rgba(14, 22, 18, .5) 38%, rgba(14, 22, 18, .08) 70%),
  linear-gradient(0deg, rgba(14, 22, 18, .55) 0%, rgba(14, 22, 18, 0) 34%),
  linear-gradient(180deg, rgba(14, 22, 18, .45) 0%, rgba(14, 22, 18, 0) 22%); }
.hero-inner { flex: 1; display: flex; align-items: center; padding-top: calc(80px + clamp(32px, 6vh, 72px)); padding-bottom: clamp(40px, 7vh, 88px); }
.hero-text { max-width: 640px; }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero .eyebrow::before { background: var(--green); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; color: #fff; }
.hero h1 em { font-style: normal; color: #a7d86a; }
.hero-lede { color: rgba(255, 255, 255, .88); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 44ch; margin: 1.4rem 0 0; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }

/* hero bottom band: programme slider + arrows + stats */
.hero-band { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: grid; grid-template-columns: minmax(0, 1.05fr) 88px minmax(0, 1fr); align-items: stretch; width: 100%; }
.hb-panel { background: var(--card); color: var(--ink); overflow: hidden; padding-left: var(--edge); }
.hb-track { display: flex; transition: transform .6s var(--ease); }
.hb-item { flex: 0 0 50%; display: flex; gap: 12px; padding: clamp(24px, 3vw, 36px) clamp(20px, 2.4vw, 32px) clamp(24px, 3vw, 36px) 0; text-decoration: none; color: var(--ink); }
.hb-item:hover { color: var(--ink); }
.hb-item:hover strong { color: var(--blue-btn); }
.hb-num { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.hb-body strong { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; transition: color .25s; }
.hb-body span { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.hb-arrows { display: grid; grid-template-rows: 1fr 1fr; }
.hb-arrows button { border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; transition: background-color .25s; }
.hb-arrows svg { width: 22px; height: 22px; }
.hb-next { background: var(--green-btn); }
.hb-next:hover { background: var(--green-hover); }
.hb-prev { background: color-mix(in srgb, var(--green-btn) 78%, #fff); }
.hb-prev:hover { background: var(--green-btn); }
.hb-prev svg { transform: rotate(180deg); }
.hb-stats { display: flex; justify-content: space-between; align-items: flex-start; gap: clamp(16px, 2.4vw, 40px); padding: clamp(24px, 3vw, 36px) var(--edge) clamp(24px, 3vw, 36px) clamp(24px, 3vw, 48px); }
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat .stat-n { font: 600 clamp(2rem, 3.4vw, 3rem)/1 var(--sans); letter-spacing: -.04em; color: #fff; }
.hstat .stat-l { color: rgba(255, 255, 255, .85); font-size: .9rem; line-height: 1.35; white-space: nowrap; }

@media (max-width: 1200px) and (min-width: 901px) {
  .hb-item { flex-basis: 100%; }
  .hb-stats { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; align-content: center; gap: 18px clamp(24px, 4vw, 48px); padding-top: 24px; padding-bottom: 24px; }
  .hstat .stat-n { font-size: clamp(1.8rem, 3vw, 2.4rem); }
}

/* header over the hero (home only, until scrolled) */
.logo-white { display: none; width: 132px; height: auto; }
.home .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .site-header:not(.scrolled) .logo-color { display: none; }
.home .site-header:not(.scrolled) .logo-white { display: block; }
.home .site-header:not(.scrolled) .nav > ul > li > a { color: rgba(255, 255, 255, .92); }
.home .site-header:not(.scrolled) .nav > ul > li > a:hover, .home .site-header:not(.scrolled) .nav li.is-active > a { color: #fff; }
.home .site-header:not(.scrolled) .nav > ul > li > a::after { background: #fff; }
.home .site-header:not(.scrolled) .menu-btn { color: #fff; }

/* stats */
.stats-band { padding: clamp(40px, 5vw, 64px) 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 24px 28px 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-n { font: 600 clamp(2.4rem, 4.6vw, 3.6rem)/1 var(--sans); letter-spacing: -.04em; }
.stat-l { color: var(--muted); font-size: .95rem; }

/* sections */
.section { padding: var(--section) 0; }
.section-flush { padding-top: 0; }
.wrap:has(.head-img) + .section-post { padding-top: clamp(40px, 5vw, 64px); }
.section-tint { background: var(--paper-2); }
.section + .section:not(.section-tint):not(.section-flush) { padding-top: 0; }
.section.section-tint + .section, .cta + .section { padding-top: var(--section); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-top { align-items: start; grid-template-columns: 5fr 7fr; }
.split-top h2 { max-width: 18ch; }
.prose { color: var(--ink-2); max-width: 68ch; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--blue-btn); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose + .arrow-link { margin-top: 1.75rem; }
.split-text .arrow-link { margin-top: 1.75rem; }
.split-text h2 { margin-bottom: 1.5rem; }

/* programmes */
.programs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.program { text-decoration: none; display: flex; flex-direction: column; color: var(--ink); }
.program:hover { color: var(--ink); }
.program-img { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 20px; }
.program-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.program:hover .program-img img { transform: scale(1.04); }
.program-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.program-tag { font-weight: 500; font-size: 1rem; line-height: 1.4; color: var(--ink-2); margin-bottom: .5em; }
.program p:not(.program-tag) { color: var(--muted); font-size: .98rem; }
.program .arrow-link { margin-top: auto; padding-top: 8px; }

/* video */
.video { margin: 0; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform .6s var(--ease), opacity .3s; }
.yt:hover img { transform: scale(1.03); opacity: .9; }
.play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(246, 244, 238, .92); transition: transform .3s var(--ease); }
.play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent var(--ink); }
.yt:hover .play { transform: scale(1.08); }
.video figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink-2); }
.video-big .play { width: 72px; height: 72px; margin: 0; left: 24px; top: auto; bottom: 24px; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .45); }
.video-big .play::after { left: 29px; top: 23px; border-width: 13px 0 13px 19px; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin-bottom: clamp(48px, 6vw, 80px); }

/* news */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 150px 1fr 1fr 32px; gap: 24px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
.news-list a:hover { padding-left: 10px; color: var(--ink); }
.news-list a:hover .n-title { color: var(--blue-btn); }
.n-title { transition: color .25s; }
.n-meta { display: flex; flex-direction: column; gap: 6px; }
.news-list a { grid-template-columns: 112px 150px 1fr 1fr 32px; }
.n-thumb { display: block; width: 112px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--paper-2); align-self: center; }
.n-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.n-thumb-empty { background: var(--paper-2) url('/favicon.png') center / 34% no-repeat; }
.news-list a:hover .n-thumb img { transform: scale(1.05); }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.news-card:hover { color: var(--ink); }
.news-card-img { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.news-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card .n-meta { flex-direction: row; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.news-card h3 { font-size: 1.25rem; margin-bottom: 8px; transition: color .25s; }
.news-card:hover h3 { color: var(--blue-btn); }
.news-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.news-list time { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.n-tag { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-deep); }
.n-title { font: 600 1.35rem/1.25 var(--sans); }
.n-ex { color: var(--muted); font-size: .95rem; }
.news-list i { width: 22px; height: 22px; align-self: center; transition: transform .3s var(--ease); }
.news-list a:hover i { transform: translateX(4px); color: var(--blue-btn); }

/* partners */
.partners-sec { padding-top: 0; }
.center-head { margin-left: auto; margin-right: auto; text-align: center; }
.center-head .eyebrow { justify-content: center; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.partners li { flex: 0 0 calc((100% - 5 * 12px) / 6); height: 128px; }
.partners a { display: grid; place-items: center; width: 100%; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.partners a:hover { border-color: #cfc9bb; box-shadow: 0 10px 30px -18px rgba(23, 32, 26, .3); transform: translateY(-2px); }
.partners img { max-width: 100%; height: auto; }

/* CTA */
.cta { background: var(--paper-2); padding: var(--section) 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-img { border-radius: var(--radius); overflow: hidden; }
.cta-img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.cta-text h2 { margin-bottom: 1.25rem; max-width: 16ch; }
.cta-text p:not(.eyebrow) { color: var(--ink-2); max-width: 44ch; margin-bottom: 2rem; }

/* program page */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.project { text-decoration: none; background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.project:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(23, 32, 26, .35); }
.project-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.65rem; margin-bottom: .6rem; }
.project-body p { color: var(--muted); font-size: .98rem; }
.project-body .arrow-link { margin-top: auto; }
.next { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.next-card { display: flex; align-items: center; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 1.3rem/1.25 var(--sans); padding-right: 24px; }
.next-card svg { width: 22px; height: 22px; margin-left: auto; flex: none; transition: transform .3s var(--ease); }
.next-card:hover svg { transform: translateX(5px); }
.next-card .num { font-family: var(--sans); }

/* generic content */
.content > * + * { margin-top: clamp(32px, 4vw, 56px); }
.content > .prose { font-size: 1.1rem; }
.content > h2 { max-width: 24ch; }
.content > .eyebrow + h2, .content > .eyebrow + .prose { margin-top: 0; }
.narrow { max-width: 780px; }
.grid-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.grid-text.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-text.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-text { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.grid-text > .card-text:not(:first-child) { padding-left: 0; }
.card-text h3 { margin: 18px 0 12px; }
.card-text p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (min-width: 901px) {
  .grid-text > .card-text { padding-right: 36px; }
  .grid-text:not(.grid-2):not(.grid-4) > .card-text:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
  .grid-2 > .card-text:nth-child(2n) { padding-left: 40px; border-left: 1px solid var(--line); }
  .grid-4 > .card-text:not(:nth-child(4n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
}
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.duo div { border-radius: var(--radius); overflow: hidden; }
.duo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.plain { list-style: none; padding: 0; margin: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .6em; }
.quote { margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--green); }
.quote p { font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.35 var(--sans); letter-spacing: -.015em; color: var(--ink); margin: 0 0 12px; }
.quote cite { font-style: normal; color: var(--muted); font-size: .92rem; }
.source { padding-top: 24px; border-top: 1px solid var(--line); }
.fb-box { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.fb-box h2 { margin-bottom: .5rem; }
.fb-box .muted { margin: 0; }
.fb-box .btn svg { width: 18px; height: 18px; }

/* galleries */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.gallery[data-count="1"] { grid-template-columns: 1fr; }
.gallery[data-count="2"], .gallery[data-count="4"] { grid-template-columns: repeat(2, 1fr); }
.g-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.g-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease), opacity .3s; }
.g-item:hover img { transform: scale(1.035); }
.masonry { display: block; columns: 3; column-gap: clamp(8px, 1.2vw, 16px); margin-bottom: clamp(48px, 6vw, 80px); }
.masonry .g-item { break-inside: avoid; margin-bottom: clamp(8px, 1.2vw, 16px); }
.masonry .g-item img { aspect-ratio: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); }
.chip { padding: .55em 1.1em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; background: var(--card); display: inline-flex; align-items: center; gap: .4em; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip svg { width: 16px; height: 16px; }
.chip-ghost { background: transparent; }

/* people */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 24px; margin-bottom: clamp(56px, 7vw, 96px); }
.person { margin: 0; }
.person-img { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); margin-bottom: 14px; }
.person-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: grayscale(.25); transition: filter .4s, transform .7s var(--ease); }
.person:hover .person-img img { filter: none; transform: scale(1.03); }
.person figcaption strong { display: block; font: 600 1.2rem/1.25 var(--sans); }
.person figcaption span { color: var(--muted); font-size: .92rem; }

/* students / contact */
.apply { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(36px, 5vw, 64px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.apply h2 { margin-bottom: .75rem; }
.apply .muted { margin: 0; max-width: 52ch; }
.apply-box { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-list div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.contact-list dt { color: var(--muted); font-size: .9rem; padding-top: .25em; }
.contact-list dd { margin: 0; font: 600 1.25rem/1.3 var(--sans); }
.contact-list a { text-decoration: none; }
.map { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; opacity: .8; }
.social a:hover { opacity: 1; }
.social svg { width: 18px; height: 18px; }

/* reports */
.reports { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.report { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 4vw, 48px); min-height: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.report:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-3px); }
.report-year { font: 500 clamp(3rem, 7vw, 5.5rem)/1 var(--sans); letter-spacing: -.04em; color: var(--green-deep); }
.report-title { font: 600 1.4rem/1.2 var(--sans); margin-top: auto; }
.pdf-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 24px; }
.pdf { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); height: min(85vh, 1000px); }
.pdf iframe { width: 100%; height: 100%; border: 0; }

/* footer */
.site-footer { background: var(--ink); color: #e9e6dc; padding: clamp(64px, 8vw, 112px) 0 32px; }
.site-footer a { color: #e9e6dc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.f-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.f-claim { font: 500 clamp(1.8rem, 3.6vw, 3rem)/1.12 var(--sans); letter-spacing: -.02em; max-width: 22ch; margin: 0; color: #fff; }
.f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; }
.f-cols h2 { font: 600 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9aa39c; margin-bottom: 18px; }
.f-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-cols .social { margin-top: 20px; }
.f-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #9aa39c; }
.f-bottom a { color: #c9cec8; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: #fff; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(14, 19, 16, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; height: auto; border-radius: 4px; }
.lightbox button { position: fixed; background: rgba(246, 244, 238, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(246, 244, 238, .25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.lb-next { right: 20px; top: 50%; margin-top: -24px; }

/* motion: page-load entrance */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: none; } }
.hero-text > *, .page-head .wrap > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .06s; }
.hero-text > :nth-child(3) { animation-delay: .12s; }
.hero-text > :nth-child(4) { animation-delay: .18s; }
.page-head .wrap > :nth-child(2) { animation-delay: .06s; }
.page-head .wrap > :nth-child(3) { animation-delay: .12s; }
.page-head .wrap > :nth-child(4) { animation-delay: .18s; }
.head-img { animation: rise .9s var(--ease) .15s both; }
.head-img img, .hero-media img { animation: settle 1.8s var(--ease) both; }
.hero-band { animation: rise .9s var(--ease) .3s both; }

/* motion: reveal on scroll (only when JS is running), staggered via --d */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* motion: nav underline */
.nav > ul > li > a { position: relative; }
.nav > ul > li > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; border-radius: 2px; background: var(--blue-btn); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current]::after { transform: scaleX(1); }
.nav > ul > li[data-has-sub] > a::after { right: 28px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-text > *, .page-head .wrap > *, .head-img, .head-img img, .hero-media img, .hero-band { animation: none; }
  @view-transition { navigation: none; }
}

/* responsive */
@media (max-width: 1080px) {
  .nav { gap: 12px; }
  .nav > ul > li > a { padding: 8px 9px; font-size: .92rem; }
  .partners li { flex-basis: calc((100% - 3 * 12px) / 4); }
  .grid-text.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 > .card-text:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
  .grid-4 > .card-text:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .menu-open .home .site-header .menu-btn, .menu-open .site-header .menu-btn { color: var(--ink); }
  .menu-open .home .site-header .logo-white { display: none !important; }
  .menu-open .home .site-header .logo-color { display: block !important; }
  .menu-btn { display: block; position: relative; z-index: 60; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
  @media (hover: hover) { .menu-btn:hover { background: var(--paper-2); } }
  .menu-btn .bars, .menu-btn .bars::before, .menu-btn .bars::after { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease); }
  .menu-btn .bars { top: 21px; }
  .menu-btn .bars::before, .menu-btn .bars::after { content: ""; left: 0; }
  .menu-btn .bars::before { top: -7px; }
  .menu-btn .bars::after { top: 7px; }
  .menu-open .menu-btn .bars { background: transparent; }
  .menu-open .menu-btn .bars::before { top: 0; transform: rotate(45deg); background: var(--ink); }
  .menu-open .menu-btn .bars::after { top: 0; transform: rotate(-45deg); background: var(--ink); }
  .nav { position: fixed; inset: 0; z-index: 55; background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 104px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { font: 600 1.6rem/1.2 var(--sans); letter-spacing: -.02em; padding: 16px 0; border-radius: 0; background: none !important; color: var(--ink); }
  .nav > ul > li > a i { display: none; }
  .nav > ul > li > a::after { display: none; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 14px; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
  .nav .sub a { padding: 4px 16px 4px 0; color: var(--muted); }
  .nav .btn { align-self: flex-start; margin-top: 28px; }
  .brand { position: relative; z-index: 60; }
  .hero-grid, .split, .split-top, .cta-grid, .apply, .contact { grid-template-columns: 1fr; }
  .hero { min-height: 0; margin-top: -68px; }
  .hero-inner { padding-top: calc(68px + 56px); padding-bottom: 40px; min-height: 64svh; align-items: flex-end; }
  .hero-media img { object-position: 60% 50%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(14, 22, 18, .85) 0%, rgba(14, 22, 18, .45) 55%, rgba(14, 22, 18, .25) 100%); }
  .hero-band { grid-template-columns: 1fr; padding: 0; }
  .hb-stats { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 0 var(--gutter) 28px; }
  .hstat .stat-n { font-size: 2rem; }
  .hstat .stat-l { font-size: .85rem; }
  .hb-panel { border-radius: 0; margin: 0; padding: 0; }
  .hb-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; }
  .hb-track::-webkit-scrollbar { display: none; }
  .hb-item { flex: 0 0 82%; scroll-snap-align: start; padding: 24px 16px 24px var(--gutter); }
  .hb-arrows { display: none; }
  .menu-open .home .site-header .nav > ul > li > a { color: var(--ink) !important; }
  .menu-open .home .site-header .nav .sub a { color: var(--muted) !important; }
  .head-img img { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px 22px 0; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .programs, .projects, .reports { grid-template-columns: 1fr; }
  .programs { gap: 56px; }
  .videos { grid-template-columns: repeat(2, 1fr); }
  .people { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .grid-text, .grid-text.grid-2 { grid-template-columns: 1fr; }
  .grid-2 > .card-text:nth-child(2n), .grid-4 > .card-text:nth-child(2n) { padding-left: 0; border-left: 0; }
  .grid-text.grid-4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .news-list a { grid-template-columns: 88px 1fr 24px; gap: 6px 16px; }
  .n-thumb { width: 88px; grid-row: 1 / 4; align-self: start; }
  .news-cards { grid-template-columns: 1fr; gap: 40px; }
  .n-meta { grid-column: 2; flex-direction: row; gap: 12px; align-items: baseline; }
  .n-title { grid-column: 2; }
  .n-ex { grid-column: 2; }
  .news-list i { grid-column: 3; grid-row: 1 / 4; }
  .partners li { flex-basis: calc((100% - 2 * 12px) / 3); height: 112px; }
  .partners a { padding: 16px; }
  .f-top { flex-direction: column; align-items: flex-start; }
  .f-cols { grid-template-columns: 1fr 1fr; }
  .f-cols > div:last-child { grid-column: 1 / -1; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .bar { height: 68px; }
  .brand img { width: 112px; }
  .videos { grid-template-columns: 1fr; }
  .partners { gap: 8px; }
  .partners li { flex-basis: calc((100% - 8px) / 2); height: 100px; }
  .partners a { padding: 14px; }
  .contact-list div { grid-template-columns: 1fr; gap: 4px; }
  .duo { grid-template-columns: 1fr; }
  .pdf { height: 70vh; }
}
