/* Styles for every shared section type rendered by /js/sections.js.
   Mobile first; breakpoints 700px and 1000px (plus 1200px for the densest rows). */

.section {
  padding-block: 40px;
}

.section[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* --section-bg lets a child draw a ring in the band's own colour (timeline nodes). */
.section {
  --section-bg: var(--cream);
}

.bg-tint {
  --section-bg: var(--tint);
  background: var(--tint);
}

.bg-paper {
  --section-bg: var(--paper);
  background: var(--paper);
}

.bg-warm {
  --section-bg: var(--warm);
  background: var(--warm);
}

.s-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.s-head .eyebrow {
  justify-content: center;
}

.s-title {
  font: 600 clamp(1.45rem, 3.6vw, 2rem) / 1.2 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.s-body-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.s-head .text-link {
  margin-top: 14px;
}

.s-more {
  margin-top: 20px;
  text-align: center;
}

.ph {
  overflow: hidden;
  border-radius: 12px;
  background: var(--tint);
}

.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* heading in a left column (timeline, gallery strip, any section with split: true) */
.is-split .s-head {
  margin-inline: 0;
  text-align: left;
}

.is-split .s-head .eyebrow {
  justify-content: flex-start;
}

@media (min-width: 700px) {
  .section {
    padding-block: 52px;
  }
}

@media (min-width: 1000px) {
  .section {
    padding-block: 60px;
  }

  .s-head {
    margin-bottom: 36px;
  }

  .is-split > .wrap {
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  .is-split .s-head {
    margin-bottom: 0;
  }
}

/* ------------------------------------------------------------------ hero */

.s-hero {
  position: relative;
  padding-block: 24px 36px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-title {
  font: 600 clamp(2.4rem, 10vw, 4.4rem) / 1.03 var(--serif);
  letter-spacing: -0.02em;
  color: var(--brand);
  text-wrap: balance;
}

.hero-sub {
  margin-top: 12px;
  font: 500 clamp(1.3rem, 4.6vw, 1.9rem) / 1.2 var(--serif);
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  max-width: 46ch;
  margin-top: 16px;
  color: #36455a;
  font-size: 1rem;
}

.hero-copy .actions {
  margin-top: 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 28px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-badges .icon {
  color: var(--brand-soft);
}

.hero-media {
  position: relative;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tint);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* soft brush-edge mask (default hero) */
.is-brush .hero-photo {
  -webkit-mask: var(--brush) center / 100% 100% no-repeat;
  mask: var(--brush) center / 100% 100% no-repeat;
  --brush: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M6.0 1.0L12.0 4.2L18.0 2.0L24.0 1.7L30.0 3.6L36.0 2.9L42.0 2.2L48.0 3.6L54.0 3.6L60.0 2.9L66.0 3.4L72.0 3.2L78.0 3.9L84.0 1.8L90.0 2.3L96.0 3.5L97.3 6.0L98.9 11.0L97.3 16.0L97.8 21.0L96.7 26.0L97.0 31.0L98.7 36.0L97.7 41.0L96.7 46.0L97.3 51.0L97.4 56.0L97.6 61.0L96.7 66.0L96.7 71.0L98.1 76.0L98.2 81.0L96.9 86.0L98.2 91.0L96.0 95.9L92.0 94.9L88.0 94.0L84.0 94.9L80.0 90.4L76.0 93.1L72.0 91.9L68.0 90.9L64.0 96.6L60.0 95.1L56.0 93.1L52.0 93.4L48.0 94.0L44.0 95.6L40.0 90.6L36.0 96.6L32.0 94.4L28.0 94.6L24.0 92.3L20.0 90.5L16.0 93.4L12.0 95.8L7.3 94.0L11.6 92.4L6.7 90.8L12.8 89.2L6.3 87.6L13.8 86.0L10.0 84.4L11.1 82.8L13.8 81.2L13.1 79.6L13.2 78.0L14.7 76.4L10.2 74.8L13.6 73.2L8.6 71.6L15.2 70.0L14.2 68.4L12.6 66.8L11.2 65.2L11.3 63.6L9.6 62.0L12.2 60.4L6.3 58.8L12.5 57.2L12.3 55.6L16.9 54.0L3.4 52.4L16.4 50.8L3.0 49.2L12.7 47.6L4.0 46.0L9.7 44.4L15.0 42.8L11.0 41.2L10.2 39.6L10.3 38.0L7.9 36.4L14.3 34.8L3.8 33.2L17.3 31.6L13.5 30.0L17.0 28.4L13.5 26.8L17.2 25.2L11.9 23.6L11.5 22.0L2.1 20.4L11.2 18.8L3.0 17.2L9.0 15.6L10.0 14.0L11.1 12.4L11.6 10.8L13.4 9.2L10.9 7.6L11.1 6.0Z%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
}

/* photo that bleeds to the right edge and fades into the page (Home) */
.is-fade .hero-title {
  font-size: clamp(2.2rem, 8.4vw, 3.5rem);
  line-height: 1.08;
}

.is-fade .hero-photo {
  border-radius: 20px;
}

.hero-aside {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.hero-aside-title {
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-aside ul {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

.hero-aside li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-aside.is-script {
  width: fit-content;
  padding: 10px 18px;
  border: 0;
  background: rgba(255, 253, 249, 0.92);
  color: var(--brand);
  font: 500 1.55rem / 1.25 var(--script);
  transform: rotate(-3deg);
}

.s-hero.no-image .hero-grid {
  max-width: 720px;
  padding-block: 32px;
}

@media (min-width: 1000px) {
  .s-hero {
    padding-block: 32px 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
  }

  .s-hero.no-image .hero-grid {
    grid-template-columns: 1fr;
    padding-block: 64px;
  }

  .hero-aside.is-script {
    position: absolute;
    top: 3%;
    right: 0;
    margin: 0;
  }

  .s-hero.is-fade {
    display: flex;
    align-items: center;
    min-height: 540px;
    padding-block: 48px 72px;
  }

  .is-fade .hero-grid {
    grid-template-columns: minmax(0, 470px);
  }

  .is-fade .hero-media {
    position: absolute;
    inset: 0 0 0 36%;
  }

  .is-fade .hero-photo {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36%), linear-gradient(to top, transparent 0, #000 16%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 36%), linear-gradient(to top, transparent 0, #000 16%);
    mask-composite: intersect;
  }
}

/* ----------------------------------------------------------------- about */

.about {
  display: grid;
  gap: 22px;
}

.about-head .s-title {
  font: 600 clamp(1.7rem, 4.6vw, 2.4rem) / 1.14 var(--serif);
  letter-spacing: -0.015em;
  color: var(--brand);
}

.about-image {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
}

.about-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy p {
  color: #36455a;
  font-size: 1rem;
  line-height: 1.7;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.about-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px 6px 9px;
  border: 1px solid #cddff1;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.bg-tint .about-badges li {
  background: var(--paper);
}

.about-badges .icon {
  width: 16px;
  height: 16px;
  color: var(--brand-soft);
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.about-facts div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}

.about-facts dd {
  color: var(--brand);
  font: 600 1.6rem / 1.1 var(--serif);
}

.about-facts dt {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.about-link {
  margin-top: 20px;
}

@media (min-width: 700px) {
  .about-facts {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (min-width: 1000px) {
  .about {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
  }
}

/* -------------------------------------------------------------- timeline */

.timeline {
  display: grid;
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 16px;
  align-items: start;
  padding-bottom: 22px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  border-left: 1.5px dashed #d3ccbb;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item:last-child::before {
  display: none;
}

.tl-item .icon-circle {
  width: 52px;
  height: 52px;
  grid-row: span 2;
}

.tl-item .icon-circle .icon {
  width: 24px;
  height: 24px;
}

.tl-year {
  font-size: 1rem;
  font-weight: 700;
}

.tl-item p {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.88rem;
}

.tl-item p strong {
  display: block;
  color: var(--ink);
}

@media (min-width: 700px) {
  .s-timeline:not(.is-feature) .timeline {
    grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
    gap: 0 10px;
  }

  .s-timeline:not(.is-feature) .tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-bottom: 0;
    text-align: center;
  }

  .s-timeline:not(.is-feature) .tl-item::before {
    left: 50%;
    top: 26px;
    bottom: auto;
    width: calc(100% + 10px);
    border-left: 0;
    border-top: 1.5px dashed #d3ccbb;
  }

  .s-timeline:not(.is-feature) .tl-item .icon-circle {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px var(--section-bg);
  }

  .s-timeline:not(.is-feature) .tl-year {
    margin-top: 6px;
  }

  .s-timeline:not(.is-feature) .tl-item p {
    font-size: 0.8rem;
    line-height: 1.45;
  }
}

/* feature: full width, large numerals on one solid line; vertical below 1000px, horizontal above */
.s-timeline.is-feature {
  --tl-line: #b9d0e8;
  padding-block: 52px;
}

.s-timeline.is-feature .s-title {
  font: 600 clamp(1.8rem, 5vw, 2.6rem) / 1.12 var(--serif);
  letter-spacing: -0.015em;
  color: var(--brand);
}

.s-timeline.is-feature .s-head {
  margin-bottom: 36px;
}

.is-feature .timeline {
  max-width: 600px;
  margin-inline: auto;
}

.is-feature .tl-item {
  grid-template-columns: 64px 1fr;
  column-gap: 20px;
  padding-bottom: 34px;
}

.is-feature .tl-item::before {
  left: 31px;
  top: 64px;
  border-left: 2px solid var(--tl-line);
}

.is-feature .tl-item .icon-circle {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
}

.is-feature .tl-item .icon-circle .icon {
  width: 30px;
  height: 30px;
}

.is-feature .tl-year {
  align-self: end;
  color: var(--brand);
  font: 600 2.1rem / 1.1 var(--serif);
  letter-spacing: -0.01em;
}

.is-feature .tl-item p {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.is-feature .tl-item p strong {
  font-size: 1.02rem;
}

/* the current year: filled node with an orange ring, larger numeral */
.is-feature .tl-item.is-current .icon-circle {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px var(--section-bg), 0 0 0 7px var(--orange);
}

.is-feature .tl-item.is-current .tl-year {
  font-size: 2.6rem;
}

@media (min-width: 1000px) {
  .s-timeline.is-feature {
    padding-block: 76px;
  }

  .s-timeline.is-feature .s-head {
    margin-bottom: 52px;
  }

  .is-feature .timeline {
    max-width: none;
    grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
    gap: 0 16px;
  }

  .is-feature .tl-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
    text-align: center;
  }

  .is-feature .tl-year {
    order: -1;
    align-self: center;
    display: flex;
    align-items: flex-end;
    height: 52px;
    margin-bottom: 18px;
    font-size: 2.3rem;
  }

  .is-feature .tl-item .icon-circle {
    width: 76px;
    height: 76px;
    box-shadow: 0 0 0 8px var(--section-bg);
  }

  .is-feature .tl-item .icon-circle .icon {
    width: 34px;
    height: 34px;
  }

  /* year (52) + gap (18) + half the node (38) */
  .is-feature .tl-item::before {
    left: 50%;
    top: 107px;
    bottom: auto;
    width: calc(100% + 16px);
    border-left: 0;
    border-top: 2px solid var(--tl-line);
  }

  .is-feature .tl-item p {
    margin-top: 20px;
    font-size: 0.9rem;
  }

  .is-feature .tl-item.is-current .icon-circle {
    box-shadow: 0 0 0 5px var(--section-bg), 0 0 0 8px var(--orange);
  }

  .is-feature .tl-item.is-current .tl-year {
    font-size: 3rem;
  }
}

/* --------------------------------------------------------------- pillars */

.pillars-layout {
  display: grid;
  gap: 32px;
}

.pillars-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
}

.pillar {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
}

.pillar h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.pillar p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.pillars-aside {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--tint);
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

.pillars-aside > .icon {
  width: 30px;
  height: 30px;
  color: var(--brand-soft);
}

.has-orbit .s-head {
  margin-inline: 0;
  text-align: left;
}

.has-orbit .s-head .eyebrow {
  justify-content: flex-start;
}

.has-orbit .pillars-aside {
  padding: 0;
  background: none;
  font-size: 1.1rem;
  line-height: 1.5;
}

.orbit {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.orbit-ring {
  position: absolute;
  inset: 9%;
  border: 1.5px dashed #bccde0;
  border-radius: 50%;
}

.orbit-centre {
  position: absolute;
  inset: 31%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.orbit-centre .icon {
  color: var(--brand-soft);
}

.orbit-node {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 92px;
  transform: translate(-50%, -38%);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.orbit-node .icon-circle {
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 5px var(--cream);
}

.orbit-node .icon-circle .icon {
  width: 22px;
  height: 22px;
}

/* compact: icon beside the text, in one tinted band */
.s-pillars.is-compact .pillars-layout {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--tint);
}

.is-compact .pillars-list {
  grid-template-columns: 1fr;
  gap: 18px;
}

.is-compact .pillar {
  grid-template-columns: auto 1fr;
  justify-items: start;
  text-align: left;
}

.is-compact .pillar .icon-circle {
  width: 40px;
  height: 40px;
  background: var(--paper);
}

.is-compact .pillar .icon-circle .icon {
  width: 22px;
  height: 22px;
}

@media (min-width: 700px) {
  .pillars-list,
  .is-compact .pillars-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .has-orbit .pillars-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .orbit-node {
    font-size: 0.78rem;
  }

  .orbit-node .icon-circle {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 1000px) {
  .s-pillars:not(.has-orbit):not(.is-compact) .pillars-list {
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  }

  .s-pillars.has-aside:not(.has-orbit) .pillars-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
  }

  .has-orbit .pillars-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 190px;
    gap: 40px;
    align-items: center;
  }

  .has-orbit .pillars-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .has-orbit .pillars-aside {
    justify-items: start;
    text-align: left;
  }

  .is-compact .pillars-list {
    grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--tone-bg);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media .icon-circle {
  position: absolute;
  left: 18px;
  bottom: -22px;
  width: 46px;
  height: 46px;
  border: 3px solid var(--paper);
}

.card-media .icon-circle .icon {
  width: 22px;
  height: 22px;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px 20px;
}

.card.has-image .card-body {
  padding-top: 32px;
}

.card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
}

.card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.card .text-link {
  margin-top: auto;
  padding-top: 10px;
  color: var(--tone-ink);
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  gap: 22px;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}

.step-icon {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 6px;
}

.step-icon .icon-circle {
  width: 60px;
  height: 60px;
}

.step-n {
  position: absolute;
  top: -4px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tone-ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  transform: translateX(-50%);
}

.step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.step p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.steps-note {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 780px;
  margin: 28px auto 0;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--tint);
  font-size: 0.92rem;
  font-weight: 500;
}

.steps-note .icon {
  width: 24px;
  height: 24px;
  color: var(--brand-soft);
}

.s-steps > .wrap > .actions {
  justify-content: center;
  margin-top: 28px;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 28px 16px;
  }

  .step {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    gap: 14px;
    text-align: center;
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  }

  /* dashed connector between consecutive circles */
  .step + .step::before {
    content: "";
    position: absolute;
    top: 36px;
    left: calc(-50% + 34px);
    right: calc(50% + 50px);
    border-top: 1.5px dashed #cdc5b3;
  }
}

/* ----------------------------------------------------------------- stats */

.s-stats {
  background: var(--tint);
}

.s-stats .s-head {
  margin-bottom: 24px;
}

.stats-band {
  display: grid;
  gap: 24px;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 14px;
}

.stats.is-odd .stat:last-child {
  grid-column: 1 / -1;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stat > .icon {
  width: 34px;
  height: 34px;
  color: var(--brand-soft);
}

.stat[class*="tone-"] > .icon {
  color: var(--tone-fg);
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.stats-quote {
  padding: 24px;
  border-radius: var(--radius);
  background: #ece4f6;
}

.stats-quote blockquote::before {
  content: "\201C";
  display: block;
  height: 26px;
  color: #7a57b5;
  font: 600 3rem / 1 var(--serif);
}

.stats-quote p {
  font-size: 1.02rem;
  font-weight: 500;
}

.stats-quote figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(var(--cols-mid, 3), minmax(0, 1fr));
  }

  .stats.is-odd .stat:last-child {
    grid-column: auto;
  }
}

@media (min-width: 1000px) {
  .stats-band:not(.has-quote) .stats {
    grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
    gap: 0;
  }

  /* seven or more on one row: icon above the figure so each column stays readable */
  .stats-band:not(.has-quote) .stats.is-dense .stat {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding-inline: 10px;
    text-align: center;
  }

  .stats-band:not(.has-quote) .stat {
    padding-inline: 16px;
  }

  .stats-band:not(.has-quote) .stat + .stat {
    border-left: 1px solid #c9d8e8;
  }

  .stats-band.has-quote {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 40px;
  }
}

/* ---------------------------------------------------------------- quotes */

.quotes-track {
  display: flex;
  gap: 16px;
  margin-inline: -4px;
  padding: 4px 4px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px; /* matches the padding, so the first card rests at scrollLeft 0 */
  scrollbar-width: thin;
}

.quote-card {
  flex: 0 0 min(84%, 330px);
  scroll-snap-align: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.quote-card:only-child {
  flex-basis: 100%;
}

.quote-card figure {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.quote-card blockquote::before {
  content: "\201C";
  display: block;
  height: 22px;
  color: var(--orange);
  font: 600 2.8rem / 1 var(--serif);
}

.quote-card blockquote p {
  font-size: 0.95rem;
}

.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  font-size: 0.84rem;
}

.quote-photo {
  width: 54px;
  height: 54px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tint);
}

.quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-by strong {
  display: block;
}

.quote-by span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--brand);
}

.carousel-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

/* banner: one large quote, optional image beside it */
.s-quotes.is-banner .quotes {
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--tint);
}

.s-quotes.is-banner .quotes-track {
  margin: 0;
  padding: 0;
}

.s-quotes.is-banner .quote-card {
  padding: 28px 24px;
  border: 0;
  background: none;
  box-shadow: none;
}

.s-quotes.is-banner .quote-card blockquote::before {
  color: var(--brand-soft);
}

.s-quotes.is-banner .quote-card blockquote p {
  font: 500 clamp(1.15rem, 3vw, 1.45rem) / 1.4 var(--serif);
}

.quotes-image {
  aspect-ratio: 16 / 9;
  background: var(--tint);
}

.quotes-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 700px) {
  .s-quotes.is-banner .quotes:has(.quotes-image) {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .s-quotes.is-banner .quotes-image {
    aspect-ratio: auto;
    min-height: 220px;
  }
}

@media (min-width: 1000px) {
  .quotes-track {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    overflow: visible;
  }

  .s-quotes.is-banner .quote-card {
    padding: 36px 40px;
  }
}

/* ----------------------------------------------------------------- logos */

.logos {
  --n: 3;
  --gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

.logo {
  flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.logo a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-more {
  border-style: dashed;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.s-logos.is-compact {
  padding-top: 0;
}

.s-logos.is-compact .s-head {
  margin-bottom: 14px;
}

.s-logos.is-compact .logo {
  flex-basis: 104px;
}

@media (min-width: 700px) {
  .logos {
    --n: 6;
    --gap: 12px;
  }

  .s-logos.is-compact .logo {
    flex-basis: 140px;
  }
}

/* 17 partner logos: 6 per row gives 6 + 6 + 5 (8 per row left one logo alone on a third row). */
@media (min-width: 1000px) {
  .logos {
    --n: 6;
    max-width: 1000px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------- gallery */

.gallery figure {
  position: relative;
}

.gallery figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.gallery-strip {
  display: flex;
  gap: 10px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.gallery-strip li {
  flex: 0 0 min(72%, 300px);
  scroll-snap-align: start;
}

.gallery-strip .ph,
.gallery-grid .ph {
  aspect-ratio: 4 / 3;
}

.gallery-tiles,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-tiles .ph {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
}

.gallery-tiles figure {
  overflow: hidden;
  border-radius: 14px;
}

.gallery-tiles figcaption {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(10, 30, 58, 0.82));
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
}

/* flex rather than grid so a short last row is centred instead of leaving one portrait alone on the left */
.gallery-wall {
  --wall-cols: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 12px;
}

.gallery-wall > li {
  width: calc((100% - (var(--wall-cols) - 1) * 12px) / var(--wall-cols));
}

.gallery-wall .ph {
  aspect-ratio: 1;
  border-radius: 50%;
}

.gallery-wall figcaption {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 700px) {
  .gallery-tiles,
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-wall {
    --wall-cols: 6;
  }
}

@media (min-width: 1000px) {
  .gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    padding-bottom: 0;
    overflow: visible;
  }

  .gallery-tiles {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-wall {
    --wall-cols: 9;
  }
}

/* ----------------------------------------------------------------- video */

.videos {
  display: grid;
  gap: 16px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0c2340;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: rgba(10, 30, 58, 0.28);
  color: #fff;
}

.video-play:hover {
  background: rgba(10, 30, 58, 0.4);
}

.video-play:focus-visible {
  outline-offset: -6px;
  border-radius: 14px;
}

.video-play .icon {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.video-tile.is-portrait {
  width: min(100%, 300px);
  margin-inline: auto;
}

.video-tile figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 700px) {
  .videos {
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------- youtube */

.yt-list {
  display: grid;
  gap: 22px 16px;
}

.yt-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #0c2340;
  box-shadow: var(--shadow);
}

.yt-frame > img,
.yt-frame > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.yt-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(rgba(10, 30, 58, 0.08), rgba(10, 30, 58, 0.34));
  color: #fff;
}

.yt-play-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 4px 16px rgba(10, 30, 58, 0.4);
  transition: background-color 0.15s, transform 0.15s;
}

.yt-play-icon .icon {
  width: 26px;
  height: 26px;
}

.yt-play:hover .yt-play-icon {
  background: var(--brand-soft);
  transform: scale(1.06);
}

.yt-play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
  border-radius: 14px;
}

.yt-play:focus-visible .yt-play-icon {
  box-shadow: 0 0 0 4px var(--orange);
}

.yt-tile figcaption {
  margin-top: 10px;
}

.yt-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.yt-tile figcaption p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* feature: one large player, the rest in a smaller row beneath */
.yt-lead {
  max-width: 900px;
  margin: 0 auto 28px;
}

.yt-lead .yt-frame {
  border-radius: 18px;
}

.yt-lead .yt-play-icon {
  width: 76px;
  height: 76px;
}

.yt-lead .yt-play-icon .icon {
  width: 32px;
  height: 32px;
}

.yt-lead .yt-title {
  font-size: 1.1rem;
}

@media (min-width: 600px) {
  .yt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .yt-list {
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    gap: 28px 20px;
  }

  .yt-lead {
    margin-bottom: 36px;
  }
}

/* ---------------------------------------------------------------- people */

.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
}

.person {
  text-align: center;
}

.person-photo {
  display: grid;
  place-items: center;
  width: min(160px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tone-bg);
}

.person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-initials {
  color: var(--tone-ink);
  font: 600 2rem var(--serif);
}

.person h3 {
  font-size: 1rem;
  font-weight: 700;
}

.person-role,
.person-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (min-width: 700px) {
  .people {
    grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------- list-feature */

.lf {
  display: grid;
  gap: 24px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.lf-intro .eyebrow .icon {
  width: 22px;
  height: 22px;
}

.lf-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.lf-body {
  margin: 8px 0 14px;
  color: #36455a;
  font-size: 0.95rem;
}

.lf-intro .actions,
.lf-intro > .text-link {
  margin-top: 16px;
}

.lf-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.lf-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
}

.lf-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 6px 12px 12px 6px;
  background: var(--tone-bg);
  box-shadow: 0 6px 14px rgba(22, 37, 58, 0.14);
}

.lf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lf-cover.is-drawn {
  display: grid;
  place-items: center;
  padding: 14px 12px 14px 18px;
  border-left: 7px solid var(--tone-fg);
  background: linear-gradient(160deg, var(--tone-bg) 30%, color-mix(in srgb, var(--tone-fg) 38%, var(--tone-bg)));
}

.lf-cover-title {
  color: var(--tone-ink);
  font: 600 1.1rem / 1.15 var(--serif);
  text-align: center;
}

.lf-cover .tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.lf-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
}

.lf-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.lf-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tint);
}

@media (min-width: 700px) {
  .lf-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .lf {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 36px;
    padding: 28px;
  }

  .lf.has-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .lf-items {
    grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- social */

.social-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.social-cards > li {
  flex: 1 1 280px;
  max-width: 440px;
  min-width: 0;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.social-card:hover {
  border-color: var(--tone-fg);
  transform: translateY(-2px);
}

.social-card .icon-circle {
  width: 56px;
  height: 56px;
}

.social-text {
  display: grid;
  min-width: 0;
}

.social-text strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.social-text span {
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.social-follow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--tone-ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.social-follow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.15s;
}

.social-card:hover .social-follow .icon {
  transform: translateX(3px);
}

@media (min-width: 700px) {
  .social-card {
    padding: 22px 24px;
  }

  .social-card .icon-circle {
    width: 64px;
    height: 64px;
  }
}

/* ---------------------------------------------------------------- donate */

.donate-grid {
  display: grid;
  gap: 20px;
}

.donate-main,
.donate-bank {
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.s-donate .s-head {
  margin: 0 0 18px;
  text-align: left;
}

.s-donate .s-head .eyebrow {
  justify-content: flex-start;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.amount {
  min-height: 46px;
  padding: 8px 6px;
  border: 1px solid #cfc8b8;
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
}

.amount:hover {
  border-color: var(--brand);
}

.amount.selected {
  border-color: var(--brand);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.donate-custom {
  margin: 16px 0 0;
}

.tiers {
  margin-top: 18px;
}

.donate-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 20px;
}

.donate-note {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.donate-note .icon {
  width: 26px;
  height: 26px;
  color: var(--brand-soft);
}

/* platform mode: fundraising card with one large external button */
.donate-main.is-platform {
  border-top: 4px solid var(--orange);
  background: var(--paper) radial-gradient(circle at 100% 0, #fdecd6 0, transparent 52%);
}

.donate-raised strong {
  display: block;
  color: var(--brand);
  font: 600 clamp(2.5rem, 10vw, 3.6rem) / 1 var(--serif);
  letter-spacing: -0.02em;
}

.donate-raised span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.donate-intro {
  max-width: 56ch;
  margin-top: 16px;
  color: #36455a;
}

.donate-platform .checks {
  margin-top: 16px;
}

.donate-platform .donate-submit {
  margin-top: 24px;
}

.donate-bank h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 700;
}

.donate-bank > p {
  color: var(--muted);
  font-size: 0.88rem;
}

.donate-bank-body {
  display: grid;
  gap: 18px;
  margin-top: 10px;
}

.bank-rows div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.bank-rows dt {
  color: var(--muted);
}

.bank-rows dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* The box takes the QR image's own ratio (set inline by the renderer); 260px keeps it scannable. */
.donate-upi {
  width: 100%;
  max-width: 260px;
}

.donate-upi .ph {
  background: #fff;
  border: 1px solid var(--line);
}

.donate-upi .ph img {
  object-fit: contain;
}

.donate-upi figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (min-width: 700px) {
  .donate-main,
  .donate-bank {
    padding: 28px;
  }

  .amounts {
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }
}

@media (min-width: 1000px) {
  .donate-grid.has-bank {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* ------------------------------------------------------------------- cta */

.cta-band {
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding: 32px 22px;
  border-radius: 24px;
  background: linear-gradient(105deg, #fdf0dc 0%, #fbe9d6 50%, #e4eef9 100%);
}

.cta-copy p:not(.eyebrow) {
  max-width: 46ch;
  margin-top: 10px;
  color: #36455a;
}

.cta-copy .actions {
  margin-top: 22px;
}

.cta-band .btn-soft {
  border-color: color-mix(in srgb, var(--tone-fg) 35%, transparent);
}

.cta-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1000px) {
  .cta-band {
    padding: 44px 48px;
  }

  .cta-band.has-image {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 40px;
  }
}

/* ----------------------------------------------------------------- prose */

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose .prose-title {
  margin-bottom: 20px;
  color: var(--brand);
  font: 600 clamp(2rem, 7vw, 3rem) / 1.1 var(--serif);
  letter-spacing: -0.015em;
}

.prose-updated {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.prose h2 {
  margin: 34px 0 10px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------- fixed-ratio media boxes */
/* The image is taken out of flow so its own proportions (or a missing file) can never resize the box. */

.ph,
.hero-photo,
.card-media,
.quote-photo,
.quotes-image,
.cta-image,
.lf-cover,
.lf-image,
.person-photo {
  position: relative;
}

.ph > img,
.hero-photo > img,
.card-media > img,
.quote-photo > img,
.quotes-image > img,
.cta-image > img,
.lf-cover > img,
.lf-image > img,
.person-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
