.site-footer {
  background: var(--ink);
  color: #c4d4c8;
  padding: 64px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 38px;
}

.footer-brand img {
  width: min(290px, 100%);
  height: auto;
}

/* The real logo's colours (dark green wordmark, blue tagline) read fine on
   the light header but disappear on this dark footer — brightness(0)
   invert(1) was meant to make a plain white silhouette instead, but with
   several distinct colours in the source art it just crushed everything to
   an indistinct white blob. A white card behind the real, uninverted logo
   keeps it legible instead. */
.footer-lockup {
  background: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  width: fit-content;
}

.footer-lockup img {
  filter: none !important;
}

.footer-brand p {
  max-width: 310px;
  margin: 24px 0 16px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-brand span,
.footer-base {
  color: #829c8c;
  font-size: 10px;
  letter-spacing: .04em;
}

.footer-grid h2 {
  margin: 0 0 17px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--yellow);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ffffff1c;
  margin-top: 44px;
  padding-top: 20px;
}

.pending-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.pending-layout h2 {
  font: 400 clamp(2.5rem, 4vw, 4.4rem)/.98 var(--serif);
  letter-spacing: -.03em;
  margin: 0;
}

.pending-layout h2 em {
  color: var(--blue);
  font-style: normal;
}

.pending-layout p {
  color: #61766b;
  font-size: 16px;
  margin-top: 0;
}

.pending-checklist {
  border-top: 1px solid var(--line);
  margin: 27px 0 32px;
}

.pending-checklist span {
  display: block;
  border-bottom: 1px solid var(--line);
  color: #49665a;
  font-size: 13px;
  padding: 11px 0;
}

.programme-facts {
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.programme-facts span {
  border-bottom: 1px solid var(--line);
  color: #49665a;
  display: block;
  font-size: 13px;
  padding: 13px 0;
}

.programme-facts b {
  color: var(--ink);
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 2px;
}

.demo-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: start;
}

.demo-content h3 {
  font: 400 clamp(2.2rem, 3.5vw, 3.7rem)/1 var(--serif);
  grid-column: 1;
  letter-spacing: -.02em;
  margin: 0;
}

.demo-content > p {
  color: #49665a;
  font-size: 15px;
  grid-column: 1;
  margin: -35px 0 0;
}

.demo-content-image {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.demo-content-image img {
  display: block;
  height: 330px;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}

.demo-content-image span {
  color: #61766b;
  display: block;
  font-size: 10px;
  letter-spacing: .05em;
  margin-top: 9px;
  text-transform: uppercase;
}

.donation-band {
  background: var(--blue);
  color: #fff;
  padding: 76px 0;
}

.donation-band-inner,
.donation-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.donation-band .section-kicker {
  color: var(--yellow);
}

.donation-band h2,
.donation-note h2 {
  font: 400 clamp(2.8rem, 4.8vw, 5rem)/.96 var(--serif);
  letter-spacing: -.03em;
  margin: 0;
}

.donation-band h2 em {
  color: var(--yellow);
  font-style: normal;
}

.donation-band p {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 460px;
}

.donation-note p {
  color: #61766b;
  font-size: 16px;
  line-height: 1.6;
}

.payment-panel {
  background: var(--ink);
  color: #fff;
  padding: 29px;
}

.payment-panel-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payment-panel-heading .section-kicker {
  color: var(--yellow);
}

.payment-panel-heading .preview-tag {
  color: #e8bd73;
}

.payment-rows {
  border-top: 1px solid #ffffff2c;
  margin-top: 16px;
}

.payment-rows div {
  border-bottom: 1px solid #ffffff2c;
  display: flex;
  font-size: 12px;
  gap: 20px;
  justify-content: space-between;
  padding: 12px 0;
}

.payment-rows span {
  color: #b5c9ba;
}

.payment-rows b {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

.qr-placeholder {
  align-items: center;
  border: 1px dashed #ffffff70;
  display: flex;
  gap: 16px;
  margin-top: 21px;
  padding: 17px;
}

.qr-placeholder span {
  align-items: center;
  background: #fff;
  color: var(--ink);
  display: flex;
  font: 700 13px var(--sans);
  height: 72px;
  justify-content: center;
  letter-spacing: .1em;
  width: 72px;
}

.qr-placeholder p,
.payment-caution {
  color: #c6d8ca;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.payment-caution {
  margin-top: 18px;
}

.belong-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.belong-card {
  background: #fff;
  color: var(--ink);
  display: flex;
  grid-column: span 4;
  min-height: 310px;
  overflow: hidden;
  padding: 25px;
  position: relative;
}

.belong-card img {
  filter: saturate(.78);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  transition: transform .45s ease;
  width: 100%;
}

.belong-card:hover img {
  transform: scale(1.04);
}

.belong-card:has(img)::after {
  background: linear-gradient(180deg, #12312a08 25%, #12312add 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.belong-card > div,
.belong-card > ul,
.belong-card > .card-label {
  position: relative;
  z-index: 1;
}

.belong-card:has(img) > div {
  align-self: end;
  color: #fff;
}

.belong-card .card-label {
  color: var(--green);
}

.belong-card:has(img) .card-label {
  color: var(--yellow);
}

.belong-card h3 {
  font: 400 34px/1.03 var(--serif);
  letter-spacing: -.02em;
  margin: 15px 0 9px;
}

.belong-card p,
.belong-card li {
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
}

.belong-card .card-arrow {
  bottom: 22px;
  color: var(--yellow);
  position: absolute;
  right: 24px;
  z-index: 2;
}

.belong-sport {
  grid-column: span 7;
  min-height: 430px;
}

.belong-sport h3 {
  font-size: 52px;
}

.belong-kala {
  grid-column: span 5;
  min-height: 430px;
}

.belong-service {
  background: var(--ink);
  color: #fff;
  flex-direction: column;
  grid-column: span 5;
}

.belong-service .card-label {
  color: var(--yellow);
}

.belong-service ul {
  border-top: 1px solid #ffffff33;
  list-style: none;
  margin: 23px 0 0;
  padding: 0;
}

.belong-service li {
  border-bottom: 1px solid #ffffff33;
  color: #d5e2d8;
  padding: 10px 0;
}

.belong-winter {
  grid-column: span 4;
}

.belong-archive {
  grid-column: span 3;
}

.belong-member {
  background: var(--yellow);
  grid-column: span 5;
}

.belong-member > div {
  align-self: end;
}

.belong-member .card-arrow {
  color: var(--ink);
}

.belong-watermark {
  color: var(--ink);
  opacity: .13;
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
}

.belong-card {
  transition: box-shadow .25s ease, transform .25s ease;
}

.belong-card:hover {
  box-shadow: 0 24px 48px -20px rgba(18, 49, 42, .35);
  transform: translateY(-3px);
}

.people-records {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.people-records article,
.people-records figure {
  background: var(--mint);
  margin: 0;
  padding: 28px;
}

.people-records h3 {
  font: 400 31px/1 var(--serif);
  margin: 0 0 18px;
}

.people-records p {
  color: #49665a;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.people-records small,
.people-records figcaption,
.kalakendra-source figcaption {
  display: block;
  color: #61766b;
  font-size: 11px;
  line-height: 1.5;
  margin-top: 17px;
}

.people-records .memorial {
  background: var(--ink);
  color: #fff;
}

.people-records .memorial p {
  color: #d5e2d8;
}

.people-records figure {
  padding: 0;
}

.people-records figure img {
  display: block;
  max-height: 460px;
  object-fit: cover;
  width: 100%;
}

.people-records figure figcaption {
  padding: 0 22px 20px;
}

.kalakendra-source {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: center;
}

.kalakendra-source figure {
  margin: 0;
}

.kalakendra-source figure img {
  display: block;
  max-height: 600px;
  object-fit: cover;
  width: 100%;
}

.form-layout > div > img {
  border: 1px solid var(--line);
  display: block;
  margin: 24px 0 4px;
  max-height: 440px;
  object-fit: cover;
  object-position: top;
  width: min(100%, 340px);
}

.record-page h2,
.discipline-page h2 {
  font: 400 clamp(2.5rem, 4vw, 4.4rem)/.98 var(--serif);
  letter-spacing: -.03em;
  margin: 0 0 36px;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.name-grid span,
.role-list span {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 14px 10px 14px 0;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 35px;
}

.role-list span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.role-list b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  text-align: right;
}

.memorial-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.memorial-page article {
  background: var(--ink);
  color: #fff;
  min-height: 220px;
  padding: 28px;
}

.memorial-page span {
  display: block;
  font: 400 32px/1.05 var(--serif);
}

.memorial-page small {
  color: var(--yellow);
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  margin-top: 48px;
}

.scan-page figure {
  background: var(--mint);
  margin: 0 auto;
  max-width: 670px;
  padding: 20px;
}

.scan-page img {
  display: block;
  max-height: 760px;
  object-fit: contain;
  width: 100%;
}

.scan-image {
  height: auto;
  max-width: 100%;
}

.scan-page figcaption {
  color: #61766b;
  font-size: 12px;
  margin-top: 15px;
}

.discipline-page {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 100px;
  align-items: start;
}

@media (max-width: 900px) {
  .footer-grid,
  .pending-layout,
  .kalakendra-source,
  .discipline-page,
  .donation-band-inner,
  .donation-layout {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }

  .belong-sport,
  .belong-kala,
  .belong-service,
  .belong-winter,
  .belong-archive,
  .belong-member {
    grid-column: span 6;
  }

  .demo-content {
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding-top: 48px;
  }

  .footer-grid,
  .pending-layout,
  .kalakendra-source,
  .people-records,
  .discipline-page,
  .memorial-page,
  .donation-band-inner,
  .donation-layout {
    grid-template-columns: 1fr;
  }

  .name-grid,
  .role-list {
    grid-template-columns: 1fr;
  }

  .belong-sport,
  .belong-kala,
  .belong-service,
  .belong-winter,
  .belong-archive,
  .belong-member {
    grid-column: span 12;
    min-height: 285px;
  }

  .demo-content {
    grid-template-columns: 1fr;
  }

  .demo-content > p,
  .demo-content-image {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
  }

  .demo-content-image img {
    height: 230px;
  }

  .belong-sport h3 {
    font-size: 43px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-base {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
  }
}