/* 300K for a Better Tomorrow. The children of Paomang school lead (owner), then the story, the run,
   how a pledge works, the trustees and the pledge form. Palette: the club's ground and ink, the logo
   gradient for the one action and the big numbers. */
.k-kicker { margin: 0 0 12px; font: 700 13px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #c93a1e; }
html:lang(bn) .k-kicker { letter-spacing: 0; text-transform: none; font-size: 15px; }
.k-sec { padding-block: clamp(56px, 8vw, 120px); }
.k-sec h2 { margin: 0 0 18px; font: 800 clamp(30px, 4vw, 52px)/1.08 var(--font-display); letter-spacing: -0.02em; color: var(--p-ink); }
html:lang(bn) .k-sec h2 { line-height: 1.3; letter-spacing: 0; }
.k-sec p { margin: 0 0 16px; color: #3c4a40; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; max-width: 62ch; }
html:lang(bn) .k-sec p { line-height: 1.85; }
.k-card { background: #fff; border-radius: 20px; padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 1px 0 rgb(22 40 28 / .05), 0 24px 50px -34px rgb(22 40 28 / .45); }
.k-card h3 { margin: 0 0 10px; font: 700 clamp(18px, 1.4vw, 21px)/1.3 var(--font-display); color: var(--p-ink); }
.k-card p + h3 { margin-top: 22px; }

/* Hero: full-bleed slideshow of the children, the campaign over a dark shade */
.k-hero { position: relative; min-height: clamp(560px, 92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: #10180f; color: #fff;
  padding: calc(var(--nav) + 40px) 0 clamp(28px, 4vw, 48px); }
.k-hero__slides { position: absolute; inset: 0; }
.k-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 6s ease-out; }
.k-hero__img.is-on { opacity: 1; transform: scale(1); }
.k-hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgb(10 16 12 / .55) 0%, rgb(10 16 12 / .05) 30%, rgb(10 16 12 / .35) 55%, rgb(10 16 12 / .88) 100%),
  linear-gradient(90deg, rgb(10 16 12 / .55), rgb(10 16 12 / 0) 65%); }
.k-hero__inner { position: relative; z-index: 2; display: grid; gap: 28px; width: min(100% - 2 * var(--gut), var(--container)); }
.k-hero__copy { max-width: 760px; }
.k-hero__kicker { margin: 0 0 14px; display: inline-flex; padding: 7px 14px; border-radius: 999px; background: rgb(255 255 255 / .14);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 14px/1.2 var(--font-text); color: #fff; }
.k-hero__title { margin: 0; font: 800 clamp(40px, 6.6vw, 92px)/.98 var(--font-display); letter-spacing: -0.035em; color: #fff; text-wrap: balance; }
.k-hero__300 { background: linear-gradient(100deg, #ff4d5e, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.k-hero__tag { margin: 14px 0 0; font: 600 clamp(19px, 2vw, 26px)/1.3 var(--font-display); color: #ffd9c2; }
.k-hero__lead { margin: 16px 0 0; max-width: 56ch; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; color: rgb(255 255 255 / .88); }
html:lang(bn) .k-hero__lead { line-height: 1.8; }
.k-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.k-hero__link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(255 255 255 / .5); }
.k-hero__link:hover { text-decoration-color: #fff; }
.k-hero__facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.k-hero__facts > div { display: flex; flex-direction: column-reverse; padding: 12px 18px; border-radius: 16px; background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.k-hero__facts dd { margin: 0; font: 800 clamp(20px, 2vw, 26px)/1.1 var(--font-display); color: #fff; }
.k-hero__facts dt { font-size: 13px; color: rgb(255 255 255 / .75); }
.k-hero__ctrl { display: flex; align-items: center; gap: 8px; }
.k-hero__btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3);
  background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; touch-action: manipulation; transition: background-color .2s ease; }
.k-hero__btn:hover { background: rgb(255 255 255 / .22); }
.k-hero__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.k-hero__btn .i-play { display: none; fill: currentColor; stroke: none; }
.k-hero.is-paused .k-hero__btn .i-play { display: block; }
.k-hero.is-paused .k-hero__btn .i-pause { display: none; }
.k-hero__dots { display: flex; gap: 6px; padding: 0 4px; }
.k-hero__dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.k-hero__dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgb(255 255 255 / .45); transition: width .3s ease, background-color .3s ease; }
.k-hero__dot[aria-current]::before { width: 22px; background: #fff; }
.k-hero :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 1024px) {
  .k-hero__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .k-hero__facts { flex-direction: column; }
  .k-hero__ctrl { grid-column: 1 / -1; }
}

/* the opening lines, set large */
.k-intro { padding-block: clamp(56px, 8vw, 120px) 0; }
.k-intro__text { margin: 0; max-width: 30ch; font: 700 clamp(26px, 3.4vw, 46px)/1.22 var(--font-display); letter-spacing: -0.015em; color: var(--p-ink); text-wrap: pretty; }
html:lang(bn) .k-intro__text { max-width: 34ch; line-height: 1.45; letter-spacing: 0; }

/* the school: words + badge, three classroom photos */
.k-school__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .k-school__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.k-school__badge { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.k-school__badge img { width: 84px; height: auto; flex: none; }
.k-mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 5 / 4; }
.k-mosaic__cell { border-radius: 18px; overflow: hidden; background: var(--p-surface); }
.k-mosaic__cell:first-child { grid-row: 1 / 3; }
.k-mosaic__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.k-mosaic__cell:hover img { transform: scale(1.03); }

/* the run */
.k-run { background: var(--p-surface); }
.k-run__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .k-run__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } .k-run__photo { position: sticky; top: calc(var(--nav) + 24px); } }
.k-run__photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; }
.k-run__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.k-own { margin-top: 26px; padding: 22px 24px; border-radius: 18px; background: #fff; border-left: 4px solid #d4143a; }
.k-own h3 { margin: 0 0 8px; font: 700 19px/1.3 var(--font-display); color: var(--p-ink); }
.k-own p { margin: 0; }

/* how a pledge works */
.k-how__head { max-width: 760px; }
.k-how__grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .k-how__grid { grid-template-columns: 1fr 1.3fr; } }
.k-tiers ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.k-tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--p-bg); }
.k-tiers li span { color: var(--p-muted); }
.k-tiers li strong { font: 800 20px/1 var(--font-display); color: #c93a1e; }

/* trustees */
.k-trust { padding-top: 0; }
.k-trust__lead { max-width: 62ch; }
.k-trust__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .k-trust__list { grid-template-columns: 1fr 1fr; } }
.k-trust__list li { display: grid; gap: 6px; }
.k-trust__list strong { font: 700 clamp(19px, 1.6vw, 23px)/1.25 var(--font-display); color: var(--p-ink); }
.k-trust__list span { color: var(--p-muted); }

/* the pledge */
.k-pledge { background: linear-gradient(180deg, var(--p-bg), var(--p-surface)); scroll-margin-top: var(--nav); }
.k-pledge__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 1024px) { .k-pledge__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); } .k-pledge__intro { position: sticky; top: calc(var(--nav) + 24px); } }
.k-pledge__img { display: block; width: 100%; height: auto; margin-top: 18px; border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 1023px) { .k-pledge__img { display: none; } }
.k-pledge__form { background: #fff; border-radius: 24px; padding: clamp(20px, 3vw, 40px); box-shadow: 0 30px 70px -40px rgb(22 40 28 / .5); }

/* the form */
.dform { display: grid; gap: 22px; }
.dform label { display: block; margin-bottom: 7px; font: 600 15px/1.35 var(--font-text); color: var(--p-ink); }
.dform input:not([type="range"]), .dform textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(22 40 28 / .18);
  background: #fbfcf9; color: var(--p-ink); font: 400 16px/1.4 var(--font-text); transition: border-color .2s ease, box-shadow .2s ease; }
.dform textarea { resize: vertical; }
.dform input:not([type="range"]):focus, .dform textarea:focus { outline: none; border-color: #c93a1e; box-shadow: 0 0 0 4px rgb(201 58 30 / .14); }
.dform [aria-invalid="true"] { border-color: #c4162a !important; }
.dform__err { margin: 6px 0 0; min-height: 0; color: #b3121f; font-size: 14px; }
.dform__err:empty { display: none; }
.dform__hint { margin: 6px 0 0; color: var(--p-muted); font-size: 14px; }
.dform__km { padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; background: linear-gradient(135deg, #fff4ee, #fdf1f2); border: 1px solid rgb(201 58 30 / .14); }
.dform__km-label { font-size: 16px !important; }
.dform__readout { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.dform__readout-km { font: 800 clamp(44px, 6vw, 64px)/1 var(--font-display); letter-spacing: -0.03em;
  background: linear-gradient(100deg, #d4143a, #d9482a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dform__readout-km small { margin-left: 6px; font-size: .38em; letter-spacing: 0; }
.dform__readout-tk { font: 700 18px/1.2 var(--font-display); color: var(--p-ink); }
.dform__range { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; cursor: pointer; touch-action: pan-y; margin: 0; }
.dform__range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #d4143a, #e2672e var(--pct), rgb(22 40 28 / .14) var(--pct)); }
.dform__range::-moz-range-track { height: 8px; border-radius: 99px; background: rgb(22 40 28 / .14); }
.dform__range::-moz-range-progress { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #d4143a, #e2672e); }
.dform__range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff;
  border: 3px solid #d4143a; box-shadow: 0 6px 16px -6px rgb(212 20 58 / .7); }
.dform__range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid #d4143a; }
.dform__range:focus-visible { outline: 2px solid #d4143a; outline-offset: 4px; border-radius: 8px; }
.dform__scale { display: flex; justify-content: space-between; margin-top: 2px; color: var(--p-muted); font-size: 12px; }
.dform__exact { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.dform__exact label { margin: 0; font-weight: 500; color: var(--p-muted); }
.dform__exact input { width: 92px !important; min-height: 40px !important; padding: 8px 10px !important; text-align: center; }
.dform__grid { display: grid; gap: 4px 16px; }
@media (min-width: 640px) { .dform__grid { grid-template-columns: 1fr 1fr; } .dform__field--name, .dform__field--address { grid-column: 1 / -1; } }
.dform__field { margin-bottom: 12px; }
.dform__summary { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--p-bg); color: var(--p-ink); font-size: 16px; line-height: 1.6; }
.dform__server { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fdecee; color: #a3101c; }
.dform__submit { width: 100%; height: 56px; justify-content: center; font-size: 17px; }
.dform__secure { margin: -8px 0 0; text-align: center; color: var(--p-muted); font-size: 13px; }

/* share */
.k-share { padding-block: clamp(64px, 9vw, 130px); text-align: center; background: #10180f; color: #fff; }
.k-share h2 { margin: 0 auto 18px; max-width: 20ch; font: 800 clamp(30px, 4.4vw, 60px)/1.05 var(--font-display); letter-spacing: -0.02em;
  background: linear-gradient(100deg, #ff6b6b, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.k-share p { margin: 0 auto 28px; max-width: 60ch; color: rgb(255 255 255 / .82); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.7; }
html:lang(bn) .k-share p { line-height: 1.9; }

/* thank-you page */
.thanks { max-width: 640px; padding-block: 8px 40px; }
.thanks__title { margin: 0 0 14px; font: 800 clamp(32px, 4vw, 52px)/1.1 var(--font-display); color: var(--p-ink); }
.thanks__body { margin: 0 0 12px; font-size: 18px; line-height: 1.65; color: #3c4a40; }

@media (prefers-reduced-motion: reduce) {
  .k-hero__img { transition: opacity .3s ease; transform: none !important; }
  .k-mosaic__cell img, .k-hero__dot::before { transition: none; }
}

/* the kit makes every section's .wrap a flex column; these wraps are grids */
main > section:is(.k-hero, .k-sec) > .wrap:is(.k-hero__inner, .k-school__grid, .k-run__grid, .k-pledge__grid):not(.grid) { display: grid; }
main > section.k-hero > .wrap { align-content: end; }
/* the header sits over a dark photograph here: give it its frosted ground from the start */
header.nav:not(.is-open) { background: rgb(243 245 238 / .9); box-shadow: 0 10px 30px -20px rgb(0 0 0 / .5); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.nav:not(.is-open) { background: rgb(243 245 238 / .72); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
}
/* every section here is as tall as its content (the kit's one-screen minimum left empty ground) */
main > section:is(.k-sec, .k-intro, .k-share):not(.hero):not(.section--hero) { height: auto; min-height: 0; }
main > section.k-hero:not(.hero):not(.section--hero) { height: auto; min-height: clamp(560px, 92vh, 860px); }
main > section.k-share > .wrap { align-items: center; }

/* Standalone site (hope.saidpurrunners.run): the club-style bar with the campaign's own text mark (no club
   logo), section links and a Donate button; a short footer */
.hope-mark { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--p-ink); white-space: nowrap; }
.hope-mark__k { font: 800 26px/1 var(--font-display); letter-spacing: -0.03em; background: linear-gradient(100deg, #d4143a, #e2672e);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hope-mark__rest { font: 700 14px/1 var(--font-display); }
@media (max-width: 1279px) { .hope-mark__rest { display: none; } }
html.hope main > section[id] { scroll-margin-top: var(--nav); }
html.hope .k-run__photo, html.hope .k-pledge__intro { top: calc(var(--nav) + 24px); }
@media (max-width: 639px) {
  /* phone bar: mark, language (globe), Donate, menu */
  html.hope header.nav:not(.is-open) .nav__actions .btn { display: inline-flex; height: 40px; padding-inline: 14px; }
  html.hope header.nav .lang-menu__current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  html.hope header.nav .nav__actions { gap: 4px; }
}
.hope-foot { position: relative; padding-block: clamp(48px, 7vw, 88px) calc(28px + env(safe-area-inset-bottom)); background: #0b120b; color: rgb(255 255 255 / .74); font-size: 15px; }
.hope-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #d4143a, #e2672e 55%, rgb(226 103 46 / 0)); }
.hope-foot p { margin: 0; }
.hope-foot__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(28px, 4vw, 44px); border-bottom: 1px solid rgb(255 255 255 / .1); }
.hope-foot__mark { font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--font-display); color: #fff; }
.hope-foot__mark .hope-mark__k { font-size: 1.5em; margin-right: 4px; }
.hope-foot__tag { margin-top: 10px !important; font: 600 17px/1.3 var(--font-display); color: #ffd9c2; }
.hope-foot__line { margin-top: 8px !important; max-width: 46ch; }
.hope-foot__cta { flex: none; }
.hope-foot__cols { display: grid; gap: 28px 40px; padding-block: clamp(28px, 4vw, 44px); }
@media (min-width: 720px) { .hope-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hope-foot__col h2 { margin: 0 0 14px; font: 700 13px/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .5); }
html:lang(bn) .hope-foot__col h2 { letter-spacing: 0; text-transform: none; font-size: 15px; }
.hope-foot__col .hope-foot__h2-next { margin-top: 24px; }
.hope-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hope-foot__people li { display: grid; gap: 2px; }
.hope-foot__people strong { color: #fff; font-weight: 600; }
.hope-foot__people span { font-size: 14px; }
.hope-foot a { color: #fff; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.hope-foot a:hover { background-size: 100% 1px; }
.hope-foot a.btn { background: linear-gradient(135deg, #d4143a, #c93a1e); }
.hope-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); color: rgb(255 255 255 / .5); font-size: 13px; }
.hope-thanks { padding-top: calc(var(--nav) + 32px); }
/* the campaign bar has room for Donate on a narrow desktop (the club bar hides its race button there) */
@media (min-width: 1024px) and (max-width: 1279px) { html.hope header.nav .nav__actions .btn { display: inline-flex; } }
/* the smallest phones (320-374): a tighter bar so mark, language, Donate and menu still fit one line */
@media (max-width: 374px) {
  html.hope .hope-mark__k { font-size: 20px; }
  html.hope header.nav .lang-menu__chev { display: none; }
  html.hope header.nav .lang-menu__btn { padding: 0 6px; }
  html.hope header.nav:not(.is-open) .nav__actions .btn { padding-inline: 8px; font-size: 14px; }
  html.hope header.nav .nav__toggle { margin-left: 2px; }
}
.hope-foot__credits { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.hope-foot__made { display: inline-flex; align-items: center; gap: 5px; }
.hope-foot__heart { width: 14px; height: 14px; fill: #e8344a; flex: none; animation: hope-beat 1.6s ease-in-out infinite; transform-origin: center; }
@keyframes hope-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } 48% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hope-foot__heart { animation: none; } }
