:root {
  --p-bg: #f3f5ee; --p-surface: #e2e9d9; --p-ink: #16281c; --p-muted: #55645a;
  --p-accent: #c73c1b; --p-accent-ink: #ffffff; --p-action: #c73c1b; --p-action-ink: #ffffff;
  --p-inv-bg: #16281c; --p-inv-surface: #233428; --p-inv-ink: #f3f5ee; --p-inv-muted: #97a097;
  --p-inv-accent: #c73c1b; --p-inv-accent-ink: #ffffff; --p-inv-action: #c73c1b; --p-inv-action-ink: #ffffff;
  --font-display: "Gilroy", "Noto Sans Bengali", system-ui, sans-serif;
  --font-text: "Gilroy", "Noto Sans Bengali", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.025em;
  --display-tracking-xl: -0.03em;
}
.nav__logo img { display: block; height: 52px; width: auto; }
.footer .nav__logo img { height: 64px; }
.race { display: grid; gap: var(--s-3); align-content: start; }
.race .t-stat { color: var(--p-accent); }
.race .t-card { overflow-wrap: anywhere; }
#races .timeline-wrap + .frame, #reach .grid + .frame { margin-top: var(--s-6, 32px); }
/* races as a timeline: a track with a stop per year; past stops solid green, the line to 2026 dashed
   from green into the shield orange, and 2026 a glowing orange stop marked "Next race" */
.timeline { --stop: 16px; --track: #1f4a2a; --next: var(--p-accent);
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); }
.timeline > li { position: relative; padding-top: calc(var(--stop) + 28px); display: grid; gap: var(--s-2, 8px); align-content: start; }
.timeline > li::before { content: ""; position: absolute; top: 0; left: 0; width: var(--stop); height: var(--stop); border-radius: 50%;
  background: var(--track); box-shadow: 0 0 0 5px var(--p-surface); z-index: 1; }
.timeline > li::after { content: ""; position: absolute; top: calc(var(--stop) / 2 - 1.5px); left: calc(var(--stop) / 2);
  width: calc(100% + var(--gutter)); height: 3px; border-radius: 3px; background: var(--track); }
.timeline > li:nth-last-child(2)::after { background: repeating-linear-gradient(90deg, currentColor 0 10px, transparent 10px 16px); color: var(--next); }
.timeline > li:last-child::after { display: none; }
.timeline > .is-done .t-stat { color: var(--track); }
.timeline > .is-next .t-stat { color: var(--next); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.timeline > .is-next::before { background: var(--next); box-shadow: 0 0 0 5px var(--p-surface), 0 0 0 9px color-mix(in oklab, var(--next) 22%, transparent); }
.timeline__next { font: 600 12px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--next);
  padding: 6px 10px; border-radius: 999px; background: color-mix(in oklab, var(--next) 12%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .timeline > .is-next::before { animation: stop-pulse 2.4s ease-out infinite; }
  @keyframes stop-pulse { 0% { box-shadow: 0 0 0 5px var(--p-surface), 0 0 0 5px color-mix(in oklab, var(--next) 45%, transparent); }
    70%, 100% { box-shadow: 0 0 0 5px var(--p-surface), 0 0 0 16px color-mix(in oklab, var(--next) 0%, transparent); } }
}
/* below 900px the timeline turns vertical: the track runs down the left edge */
@media (max-width: 899px) {
  .timeline { grid-template-columns: 1fr; row-gap: var(--s-6, 28px); }
  .timeline > li { padding-top: 0; padding-left: calc(var(--stop) + 22px); }
  .timeline > li::before { top: 6px; }
  .timeline > li::after { top: calc(6px + var(--stop) / 2); left: calc(var(--stop) / 2 - 1.5px); width: 3px; height: calc(100% + var(--s-6, 28px)); }
  .timeline > li:nth-last-child(2)::after { background: repeating-linear-gradient(180deg, currentColor 0 10px, transparent 10px 16px); }
}

/* GSAP wraps the pinned section in a .pin-spacer, so the kit's "main > section" layout no longer reaches it:
   the races section carries its own column layout, pinned or not */
#races > .wrap { display: flex; flex-direction: column; height: 100%; }
#races > .wrap > .race-stage { flex: 1 1 0; min-height: 220px; }
/* races media stage: one layer per year, cross-faded by the scroll timeline (static = 2024 shown) */
.race-stage { position: relative; overflow: hidden; background: #1f4a2a; }
.frame.race-stage > .race-stage__layer { position: absolute; inset: 0; max-width: none; width: 100%; height: 100%; opacity: 0; transform: scale(1.04);
  transition: opacity .6s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.frame.race-stage > .race-stage__layer.is-on { opacity: 1; transform: none; }
img.race-stage__layer { object-fit: cover; }
.race-stage__panel { display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s-3, 12px); padding: var(--s-6, 32px);
  color: #f3f5ee; background: radial-gradient(120% 90% at 50% 110%, #2f6b3c 0%, #1f4a2a 55%, #16281c 100%); }
.race-stage__year { margin: 0; font: 800 clamp(64px, 9vw, 140px)/.9 var(--font-display); letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff, rgb(255 255 255 / .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.race-stage__name { margin: 0; font: 700 clamp(22px, 2vw, 30px)/1.15 var(--font-display); }
.race-stage__note { margin: 0; color: rgb(243 245 238 / .78); font-size: 17px; }
.race-stage__panel--next { background: radial-gradient(120% 90% at 50% 0%, #fff7ef 0%, #f3f5ee 60%, #e2e9d9 100%); color: var(--p-ink); }
.race-stage__panel--next .race-stage__note { color: var(--p-muted); }
.race-stage__logo { width: min(460px, 70%); height: auto; }
.race-stage__link { font-weight: 600; font-size: 17px; }

.race-stage__photo { overflow: hidden; }
.race-stage__photo::before { content: ""; position: absolute; inset: -40px; background: var(--img) center / cover no-repeat;
  filter: blur(28px) saturate(1.2) brightness(.82); }
.race-stage__img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 899px) {
  #races > .wrap > .race-stage { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
}
/* scroll-driven timeline: a pale base track and a fill that grows stop by stop (desktop, motion allowed) */
.timeline-wrap { position: relative; }
.timeline__track, .timeline__fill { display: none; position: absolute; top: calc(var(--stop, 16px) / 2 - 1.5px); left: 8px; height: 3px; border-radius: 3px;
  width: calc((100% + var(--gutter)) * .75); }
.timeline__track { background: color-mix(in oklab, #1f4a2a 18%, transparent); }
.timeline__fill { background: linear-gradient(90deg, #1f4a2a 0 66.6%, var(--p-accent) 100%); transform-origin: left center; clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); }
.timeline-wrap.is-scrub .timeline__track, .timeline-wrap.is-scrub .timeline__fill { display: block; }
.timeline-wrap.is-scrub .timeline > li::after { display: none; }
.timeline-wrap.is-scrub .timeline > li { transition: opacity .35s ease; }
.timeline-wrap.is-scrub .timeline > li:not(.is-reached) { opacity: .42; }
.timeline-wrap.is-scrub .timeline > li:not(.is-reached)::before { background: var(--p-surface); box-shadow: 0 0 0 5px var(--p-surface), inset 0 0 0 3px color-mix(in oklab, #1f4a2a 35%, transparent); animation: none; }
.timeline-wrap.is-scrub .timeline > li.is-active .t-card { color: var(--p-ink); }
.timeline-wrap.is-scrub .timeline > li::before { transition: background-color .3s ease, box-shadow .3s ease; }

/* questions: an accordion of cards (native details/summary), the photo and an ask-the-club card beside it */
.faq-title { margin: 0 0 var(--s-7, 40px); }
.faq-layout { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.faq-side { display: flex; flex-direction: column; gap: 12px; }
.faq-side__photo { flex: 1 1 auto; min-height: 240px; }
.ask { padding: var(--s-5, 24px); border-radius: var(--r-lg, 20px); background: #1f4a2a; color: #f3f5ee; display: grid; gap: 6px; }
.ask__title { margin: 0; font: 700 20px/1.2 var(--font-display); }
.ask__text { margin: 0; color: rgb(243 245 238 / .78); }
.ask__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ask__link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: #16281c; background: #f3f5ee; text-decoration: none; overflow-wrap: anywhere; transition: background-color .2s ease, transform .2s ease; }
.ask__link:hover { background: #fff; transform: translateY(-1px); }
.faq-list { display: grid; gap: 12px; align-content: start; }
.qa { border-radius: 16px; background: rgb(255 255 255 / .72); border: 1px solid color-mix(in oklab, var(--p-ink) 8%, transparent);
  transition: background-color .25s ease, box-shadow .25s ease; }
.qa[open] { background: #fff; box-shadow: 0 18px 40px -28px rgb(22 40 28 / .4); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; min-height: 44px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { margin: 0; font: 600 clamp(17px, 1.3vw, 20px)/1.3 var(--font-display); letter-spacing: -0.01em; }
.qa summary:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; border-radius: 16px; }
.qa__icon { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: #e2e9d9; transition: background-color .25s ease, transform .3s ease; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #1f4a2a; transition: transform .3s ease; }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { background: #1f4a2a; transform: rotate(180deg); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: #f3f5ee; }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 24px 22px; color: var(--p-muted); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.qa__a p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .qa, .qa__icon, .qa__icon::before, .qa__icon::after { transition: none; } }
@media (max-width: 899px) { .faq-layout { grid-template-columns: 1fr; } .faq-side { order: 2; } .faq-side__photo { flex: none; min-height: 0; aspect-ratio: 4 / 3; } }

/* closing: the Northern Marathon card with a live days-to-race-day count */
.finale { padding: clamp(56px, 8vw, 112px) 0; background: var(--p-bg); }
.finale__card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6, 32px); align-items: center;
  padding: clamp(32px, 5vw, 72px); border-radius: 28px; color: #f3f5ee;
  background: radial-gradient(90% 140% at 100% 0%, #2f6b3c 0%, #1f4a2a 45%, #16281c 100%); }
.finale__card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, #e2342b, #f58220 55%, rgb(245 130 32 / 0)); }
.finale__text h2 { margin: 0; color: #fff; max-width: 16ch; }
.finale__text > p { margin: 14px 0 0; color: rgb(243 245 238 / .8); font-size: 18px; }
.finale__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 28px; }
.finale__actions .btn { border-radius: 999px; }
.finale__link { color: #f3f5ee; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgb(243 245 238 / .4); min-height: 44px; display: inline-flex; align-items: center; }
.finale__link:hover { text-decoration-color: #f58220; }
.finale__count { text-align: center; padding: 28px 36px; border-radius: 22px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.finale__num { margin: 0; font: 800 clamp(64px, 8vw, 112px)/.9 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #fff; }
.finale__label { margin: 10px 0 0; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; color: #f7a46b; }
@media (max-width: 767px) { .finale__card { grid-template-columns: 1fr; } .finale__count { justify-self: start; } }

/* footer: dark green, the light logo, Run for Health, links and the club's contact details */
.site-foot { position: relative; background: #16281c; color: rgb(243 245 238 / .78); padding: clamp(48px, 7vw, 88px) 0 28px; }
.site-foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #e2342b, #f58220 55%, rgb(245 130 32 / 0)); }
.site-foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: clamp(28px, 4vw, 56px); }
.site-foot__logo img { height: 56px; width: auto; display: block; }
.site-foot__motto { margin: 18px 0 0; font: 700 24px/1.1 var(--font-display); color: #fff; }
.site-foot__about { margin: 8px 0 0; max-width: 30ch; }
.site-foot__col h3 { margin: 0 0 14px; font: 600 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #f7a46b; }
.site-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot__col li { overflow-wrap: anywhere; line-height: 1.5; }
.site-foot__col a { color: rgb(243 245 238 / .86); text-decoration: none; display: inline-block; padding: 6px 0; transition: color .2s ease; }
.site-foot__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-foot__legal { margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid rgb(243 245 238 / .12); font-size: 14px; color: rgb(243 245 238 / .55); }
@media (max-width: 899px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .site-foot__grid { grid-template-columns: 1fr; } }
/* what we do: two feature cards, each with its own photograph */
.what-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-6, 32px); align-items: end; }
.what-head h2 { margin: 0; }
.mantra { margin: 0; font-size: 18px; line-height: 1.5; color: var(--p-muted); display: flex; gap: 14px; align-items: flex-start; }
.mantra strong { color: var(--p-ink); font-weight: 600; }
.mantra__mark { flex: none; width: 4px; align-self: stretch; border-radius: 4px; background: linear-gradient(180deg, #e2342b, #f58220); }
.what-cards { flex: 1 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--s-7, 48px); }
.what-card { display: flex; flex-direction: column; border-radius: var(--r-lg, 20px); overflow: hidden;
  background: #fff; border: 1px solid color-mix(in oklab, var(--p-ink) 8%, transparent);
  box-shadow: 0 20px 44px -30px rgb(22 40 28 / .35); transition: transform .25s ease, box-shadow .25s ease; }
.what-card:hover { transform: translateY(-2px); box-shadow: 0 26px 52px -30px rgb(22 40 28 / .45); }
.what-card__photo { flex: 1 1 auto; min-height: 220px; border-radius: 0; }
.what-card__body { padding: var(--s-6, 28px); display: grid; gap: var(--s-2, 8px); }
.what-card__body h3 { margin: 0; font-size: clamp(22px, 1.6vw, 28px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; }
.what-card__body p { margin: 0; color: var(--p-muted); font-size: 17px; line-height: 1.5; }
@media (max-width: 899px) { .what-head { grid-template-columns: 1fr; } .what-cards { grid-template-columns: 1fr; } .what-card__photo { min-height: 0; aspect-ratio: 16 / 10; flex: none; } }
a, button, [tabindex] { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in oklab, var(--p-accent) 18%, transparent); }
:is(a, button, [tabindex]):focus-visible { scroll-margin-top: 96px; scroll-margin-bottom: 24px; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
/* header: full width and transparent over the hero; once the page scrolls it turns into full-width frosted
   glass with a soft shadow and a thin line in the shield's red-to-orange */
header.nav { background: transparent; border-bottom: 0; transition: background-color .3s ease, box-shadow .3s ease; }
/* a morning-mist fade at the top of the hero keeps the logo and links readable over any part of the photo */
.hero--photo::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgb(243 245 238 / .72), rgb(243 245 238 / 0)); }
.hero--photo > .wrap { position: relative; z-index: 2; }
header.nav::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(90deg, #e2342b, #f58220 55%, rgb(245 130 32 / 0)); }
header.nav.is-scrolled { background: rgb(243 245 238 / .94); box-shadow: 0 14px 40px -22px rgb(22 40 28 / .4); }
header.nav.is-scrolled::after { opacity: 1; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.nav.is-scrolled { background: rgb(243 245 238 / .66); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
}
@media (prefers-reduced-transparency: reduce) { header.nav.is-scrolled { background: rgb(243 245 238 / .97); -webkit-backdrop-filter: none; backdrop-filter: none; } }
header.nav .nav__bar { gap: var(--s-6); }
header.nav .nav__logo img { height: 44px; }
header.nav .nav__link { font-weight: 500; font-size: 15px; letter-spacing: .005em; color: var(--p-ink); }
header.nav .nav__actions .btn { border-radius: 999px; height: 46px; padding-inline: 22px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 8px 20px -10px rgb(199 60 27 / .75); }
header.nav .nav__toggle { border-radius: 999px; background: rgb(255 255 255 / .55); }
/* the phone menu sheet keeps the kit's full-screen solid layout */
header.nav.is-open { background: var(--p-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
header.nav.is-open::after { opacity: 0; }
@media (max-width: 639px) { header.nav .nav__logo img { height: 36px; } }
/* on a phone the bar holds the logo and the menu button only; the race link is in the menu sheet and the hero */
@media (max-width: 639px) { header.nav:not(.is-open) .nav__actions { display: none; } header.nav .nav__toggle { margin-left: auto; } }

/* the hero is never tied to the window height (owner: no 100vh): a fixed minimum per screen size that
   grows with its words, the card centred in it */
/* (owner, 2026-11-18) the card sits in the middle: the same room above it (under the header) as below it */
main > section.hero.hero--photo { --hero-gap: clamp(28px, 6vw, 96px); height: auto; min-height: 720px; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav) + var(--hero-gap)) 0 var(--hero-gap); }
main > section.hero.hero--photo > .wrap { height: auto; width: min(100% - 2 * var(--gut), var(--container)); }
/* tablet and phone: the kit puts the photo above the words; its height follows the screen width, not
   the window height, and the words sit right under it */
@media (max-width: 1023px) { main > section.hero.hero--photo { min-height: 620px; justify-content: flex-start; --photo: clamp(240px, 52vw, 440px); } }
@media (max-width: 639px) { main > section.hero.hero--photo { min-height: 560px; --photo: clamp(200px, 60vw, 280px); } }
/* the kit lets sections grow past their screens only from 640 to 1279px; a wide but short window
   (a laptop with DevTools open) needs the same, or a section's photographs lie over the next one */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.hero), footer.closing {
    height: auto; min-height: calc(var(--h, 1) * 100svh); display: flex; flex-direction: column;
  }
  main > :is(section, .section):not(.hero) > .wrap, footer.closing > .wrap { flex: 1 0 auto; height: auto; min-height: 0; }
}
/* on a short window a block of text never shrinks under its words, and a photograph keeps a real height */
main > section > .wrap > .grid.fill { flex: 1 0 auto; }
main > section > .wrap > .frame.fill { min-height: 220px; }
.hero--photo > .wrap > .hero-text { height: auto; min-height: 0; }
/* the club's name in the hero heading, in the shield's crimson-to-orange (logo colours, a touch deeper so
   they keep 3:1 on the light glass card); solid crimson where background-clip text is not supported */
/* the kit's entrance splits the h1 into word boxes (.m-w__in, inline-block) while it plays; a gradient clipped
   to the outer span does not paint through them, so each word box carries the same gradient itself */
.brand-grad, .brand-grad .m-w__in { color: #d4143a; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand-grad, .brand-grad .m-w__in { background: linear-gradient(100deg, #d4143a 0%, #e0263a 35%, #d9482a 100%); -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .brand-grad:has(.m-w__in) { background: none; }
}
@media (forced-colors: active) { .brand-grad, .brand-grad .m-w__in { background: none; color: CanvasText; } }
/* every filled button on the club site carries the logo's crimson-to-orange (orange end deepened so white
   text keeps 4.5:1); hover deepens it. The race site under /northern-marathon/ has its own buttons. */
html .btn.btn--primary, html .ask__link {
  background: linear-gradient(100deg, #d4143a 0%, #c93a1e 100%); color: #fff; border-color: transparent;
}
html .btn.btn--primary:hover, html .btn.btn--primary:focus-visible, html .ask__link:hover, html .ask__link:focus-visible {
  background: linear-gradient(100deg, #b90f32 0%, #ad3119 100%); color: #fff;
}
html .ask__link:hover { transform: translateY(-1px); }
header.nav .nav__actions .btn { box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 20px -10px rgb(212 20 58 / .7); }
/* frosted-glass hero card: the dawn field shows through, blurred; solid fallback where backdrop-filter is missing */
.hero--photo:not([data-box="none"]) .hero__text {
  background: rgb(243 245 238 / .94);
  border: 1px solid rgb(255 255 255 / .55);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 24px 60px -24px rgb(22 40 28 / .35);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero--photo:not([data-box="none"]) .hero__text {
    background: rgb(243 245 238 / .58);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .hero--photo:not([data-box="none"]) .hero__text { background: rgb(243 245 238 / .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.statement__grid { flex: 1; display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8, 64px); align-items: center; }
.statement__grid .mo-wh__text { max-width: none; }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 12.5vw, 190px); gap: var(--s-3, 12px); }
.wall .frame { height: 100%; }
.wall__a { grid-column: span 7; grid-row: span 2; }
.wall__b { grid-column: span 5; grid-row: span 2; }
.wall__c { grid-column: span 4; }
.wall__d { grid-column: span 4; }
.wall__e { grid-column: span 4; }
@media (max-width: 767px) {
  .statement__grid { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .wall__a { grid-column: span 2; grid-row: span 1; }
  .wall__b { grid-column: span 1; grid-row: span 2; }
  .wall__c, .wall__d { grid-column: span 1; }
  .wall__e { grid-column: span 2; }
}

/* inner pages (about, contact, 300K, not found): a plain page head and content that sets its own height */
html main > section.section.page-sec { height: auto; min-height: 0; display: block; padding-top: calc(var(--nav, 72px) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(56px, 8vw, 112px); }
html main > section.section.page-sec > .wrap { height: auto; min-height: 0; display: block; }
.page-kicker { margin: 0 0 var(--s-3, 12px); font: 600 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--p-accent); }
.page-title { margin: 0; max-width: 18ch; }
.page-lead { margin: var(--s-4, 16px) 0 0; max-width: 60ch; font-size: 19px; line-height: 1.55; color: var(--p-muted); }
.page-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: var(--s-7, 48px); }
.prose { display: grid; gap: var(--s-4, 18px); font-size: 18px; line-height: 1.65; max-width: 68ch; }
.prose p { margin: 0; }
.prose a { color: var(--p-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.page-aside { display: grid; gap: var(--s-4, 16px); position: sticky; top: calc(var(--nav, 72px) + 24px); }
.page-aside .frame { aspect-ratio: 4 / 3; }
.events-card { padding: var(--s-6, 28px); border-radius: var(--r-lg, 20px); background: #1f4a2a; color: #f3f5ee; }
.events-card h2 { margin: 0; font: 700 clamp(22px, 1.6vw, 28px)/1.15 var(--font-display); color: #fff; }
.events-card ul { list-style: none; margin: var(--s-4, 16px) 0 0; padding: 0; display: grid; gap: 0; }
.events-card li { padding: 14px 0; border-top: 1px solid rgb(243 245 238 / .16); font-size: 17px; line-height: 1.45; }
.events-card li:first-child { border-top: 0; padding-top: 0; }
.events-card li strong { display: block; font-weight: 700; color: #f7a46b; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
@media (max-width: 899px) { .page-grid { grid-template-columns: 1fr; } .page-aside { position: static; } }

/* contact page */
.contact-cards { display: grid; gap: var(--s-4, 16px); align-content: start; }
.contact-card { display: grid; gap: 6px; padding: var(--s-5, 24px); border-radius: var(--r-lg, 20px); background: #fff; border: 1px solid color-mix(in oklab, var(--p-ink) 8%, transparent);
  box-shadow: 0 20px 44px -34px rgb(22 40 28 / .35); }
.contact-card .t-small { margin: 0; }
.contact-card p { margin: 0; overflow-wrap: anywhere; }
.cform { display: grid; gap: var(--s-4, 16px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg, 20px); background: #1f4a2a; color: #f3f5ee; }
.cform__field { display: grid; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.cform__field :is(input, textarea) { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgb(243 245 238 / .3); background: #fff; color: var(--p-ink);
  font: 400 17px/1.4 var(--font-text); letter-spacing: 0; text-transform: none; }
.cform__field textarea { min-height: 140px; resize: vertical; }
.cform__field :is(input, textarea):focus-visible { outline: 3px solid #f7a46b; outline-offset: 2px; }
.cform__error { margin: 0; padding: 10px 14px; border-radius: 12px; background: #fff; color: #b42318; font-weight: 600; font-size: 15px; }
.cform__submit { justify-self: start; }
.cform__submit:disabled { opacity: .6; cursor: not-allowed; }
.cform--sent { gap: 6px; }
.cform--sent h2 { margin: 0; color: #fff; font: 700 clamp(24px, 2vw, 32px)/1.15 var(--font-display); }
.cform--sent p { margin: 0; color: rgb(243 245 238 / .85); font-size: 18px; }
.cform__turnstile-error { margin: 0; color: #fff; font-weight: 600; font-size: 15px; }

.page-actions { margin-top: var(--s-6, 32px); display: flex; flex-wrap: wrap; gap: 12px; }

/* Language menu: a globe dropdown (<details>) beside the race button; each item links to this page in that language.
   The bar is logo | menu words | actions, so the words only ever use the room left between the two. */
@media (min-width: 1024px) {
  header.nav .nav__bar { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--s-6); }
  header.nav .nav__links { justify-self: center; }
}
header.nav .nav__actions { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu__btn { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 12px; border-radius: 999px; list-style: none;
  color: var(--p-ink); font: 600 14px/1 var(--font-text); white-space: nowrap; cursor: pointer; user-select: none; touch-action: manipulation;
  transition: background-color .2s ease; }
.lang-menu__btn::-webkit-details-marker { display: none; }
.lang-menu__btn:hover, .lang-menu[open] .lang-menu__btn { background: rgb(22 40 28 / .06); }
.lang-menu__btn:focus-visible { outline: 2px solid #d4143a; outline-offset: 2px; }
.lang-menu__current:lang(bn), .lang-menu__list a:lang(bn) { font-family: "Noto Sans Bengali", var(--font-text); }
.lang-menu__globe { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lang-menu__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.lang-menu[open] .lang-menu__chev { transform: rotate(180deg); }
.lang-menu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid rgb(22 40 28 / .1); border-radius: 14px; box-shadow: 0 18px 40px -16px rgb(22 40 28 / .35); }
.lang-menu__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 9px;
  color: var(--p-ink); text-decoration: none; font: 500 15px/1 var(--font-text); }
.lang-menu__list a:hover { background: rgb(22 40 28 / .06); }
.lang-menu__list a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 99px; background: linear-gradient(135deg, #d4143a, #c93a1e); }
.lang-menu__list a:focus-visible { outline: 2px solid #d4143a; outline-offset: -2px; }
/* a narrow desktop (1024-1279): the globe drops its label and the race button (also in the hero and the
   closing card) leaves the bar, so the menu words keep their room */
@media (min-width: 1024px) and (max-width: 1279px) {
  header.nav .lang-menu__current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  header.nav .nav__actions .btn { display: none; }
}
/* tablet and phone: the kit keeps only the main button in the bar; the language menu stays too */
@media (max-width: 1023px) {
  header.nav:not(.is-open) .nav__actions > .lang-menu { display: block; }
  header.nav.is-open .nav__actions > .lang-menu { display: none; }
}
@media (max-width: 639px) {
  /* phone bar: logo, language, menu. The race button lives in the menu sheet. */
  header.nav:not(.is-open) .nav__actions { display: flex; margin-left: auto; }
  header.nav:not(.is-open) .nav__actions .btn { display: none; }
  header.nav .lang-menu__btn { height: 42px; padding: 0 10px; }
  header.nav .nav__toggle { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .lang-menu__chev, .lang-menu__btn { transition: none; } }

/* Bangla pages: Bangla glyphs come from Noto Sans Bengali (Gilroy has none); conjuncts need more room. */
html:lang(bn) body { line-height: 1.7; }
html:lang(bn) :is(h1, h2, h3, .t-card, .page-title, .hero__lead) { line-height: 1.3; letter-spacing: 0; }
html:lang(bn) .nav__link { letter-spacing: 0; }

/* Film: the club's Saidpur 10K video (click to load), the old site's two numbers and a member's words. */
.film__grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) { .film__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.film__lead { margin: 16px 0 0; color: var(--p-muted); font-size: clamp(16px, 1.2vw, 18px); max-width: 46ch; }
.film__stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 32px 0 0; }
.film__stat { display: flex; flex-direction: column-reverse; gap: 6px; margin: 0; }
.film__stat dd { margin: 0; font: 800 clamp(48px, 5vw, 72px)/.95 var(--font-display); letter-spacing: -0.03em;
  background: linear-gradient(100deg, #d4143a, #d9482a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.film__stat dt { color: var(--p-muted); font-size: 15px; }
.film__quote { margin: 36px 0 0; padding: 22px 0 0 28px; border-top: 1px solid rgb(22 40 28 / .12); position: relative; }
.film__quote::before { content: "“"; position: absolute; left: 0; top: 10px; font: 800 48px/1 var(--font-display); color: #d4143a; }
.film__quote blockquote { margin: 0; }
.film__quote p { margin: 0; font: 600 clamp(18px, 1.5vw, 22px)/1.4 var(--font-display); color: var(--p-ink); }
.film__quote figcaption { margin-top: 10px; color: var(--p-muted); font-size: 14px; }
.film__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg, 20px); overflow: hidden; background: #0b0f0c;
  box-shadow: 0 30px 60px -30px rgb(22 40 28 / .5); }
.film__play { position: absolute; inset: 0; display: block; color: #fff; touch-action: manipulation; }
.film__poster { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .3s ease; }
.film__play:hover .film__poster { transform: scale(1.025); filter: brightness(.9); }
.film__btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 999px;
  display: grid; place-items: center; background: linear-gradient(135deg, #d4143a, #c93a1e);
  box-shadow: 0 0 0 10px rgb(255 255 255 / .18), 0 16px 34px -10px rgb(0 0 0 / .6); transition: transform .25s ease; }
.film__btn svg { width: 30px; height: 30px; margin-left: 4px; }
.film__play:hover .film__btn { transform: scale(1.06); }
.film__play:active .film__btn { transform: scale(.97); }
.film__play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.film__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .film__poster, .film__btn { transition: none; } }

.wall__more { margin: clamp(24px, 3vw, 40px) 0 0; display: flex; justify-content: center; }

/* Photos page: album chips, a masonry-like column grid, and a full-screen viewer (<dialog>). */
.gal__msg { margin: 32px 0; color: var(--p-muted); }
.gal__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.gal__chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgb(22 40 28 / .18); background: #fff;
  color: var(--p-ink); font: 600 14px/1 var(--font-text); cursor: pointer; touch-action: manipulation; transition: background-color .2s ease, color .2s ease; }
.gal__chip:hover { border-color: rgb(22 40 28 / .35); }
.gal__chip[aria-pressed="true"] { background: linear-gradient(90deg, #d4143a, #c93a1e); color: #fff; border-color: transparent; }
.gal__grid { list-style: none; margin: 24px 0 0; padding: 0; columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .gal__grid { columns: 2; } }
@media (min-width: 1024px) { .gal__grid { columns: 3; } }
.gal__item { break-inside: avoid; margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: var(--p-surface); }
.gal__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gal__open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.gal__open:hover img { transform: scale(1.025); }
.gal__open:focus-visible { outline: 3px solid #d4143a; outline-offset: -3px; }
.gal__viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 12 9 / .96); color: #fff; }
.gal__viewer::backdrop { background: rgb(8 12 9 / .9); }
.gal__viewer[open] { display: grid; place-items: center; }
.gal__big { max-width: min(100vw - 32px, 1600px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.gal__count { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; font-size: 14px; color: rgb(255 255 255 / .8); }
.gal__nav, .gal__close { position: absolute; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .12);
  color: #fff; font: 400 30px/1 var(--font-text); cursor: pointer; display: grid; place-items: center; touch-action: manipulation; }
.gal__nav:hover, .gal__close:hover { background: rgb(255 255 255 / .24); }
.gal__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gal__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.gal__close { right: 16px; top: max(16px, env(safe-area-inset-top)); }
@media (prefers-reduced-motion: reduce) { .gal__open img, .gal__chip { transition: none; } }
/* the smallest phones (320-374): the globe alone, so logo, language and menu still fit one line */
@media (max-width: 374px) {
  header.nav .lang-menu__current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Phones and tablets (owner, 2026-11-18: "unnecessary space in mobile"): a section is as tall as its content.
   The kit's one-or-two-screens minimum stretched short sections (the two "what we do" cards, the photo wall)
   into empty ground. Frames that filled the screen height take a fixed shape instead. */
@media (max-width: 1279px) {
  main > :is(section, .section):not(.hero, .section--hero), footer.closing { min-height: 0; }
  main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container) { flex: none; }
  .what-cards { flex: none; }
  .what-card { height: auto; }
  main > section > .wrap > .frame.fill { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  #races > .wrap > .race-stage { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
}

/* Hero on tablets and phones (owner, 2026-11-18): the card sits ON the photograph, as on a desktop, with room
   inside it. The kit's default puts the photo in a band above and the words bare on the page ground. */
@media (max-width: 1023px) {
  main > section.hero.hero--photo { --photo: 0px; min-height: 0; justify-content: center;
    padding: calc(var(--nav) + var(--hero-gap)) 0 var(--hero-gap); background: #1b1b1b; }
  main > section.hero.hero--photo > .hero__bg { top: 0; bottom: 0; height: 100%; object-position: 50% 62%; }
  .hero--photo .hero__text, .hero--photo:not([data-box="none"]) .hero__text {
    padding: clamp(22px, 5vw, 36px); border-radius: var(--r-lg, 20px); }
  .hero--photo:not([data-box="none"]) .hero__text { background: rgb(243 245 238 / .94); }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero--photo:not([data-box="none"]) .hero__text { background: rgb(243 245 238 / .72); }
  }
  .hero--photo h1 { font-size: clamp(32px, 8.4vw, 52px); }
}
