:root {
  --aa-purple: #6436C4;
  --aa-purple-2: #9C79E4;
  --aa-red: #CC0000;
  --ink: #1E1A25;
  --ink-2: #332B40;
  --muted: #665E72;
  --line: #E7E0EE;
  --paper: #FFFFFF;
  --soft: #F7F3FB;
  --rose: #E3D5D5;
  --green: #0F766E;
  --shadow: 0 18px 48px rgba(30, 26, 37, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--aa-purple);
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 92vh;
  color: var(--paper);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__image,
.hero__wash {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("../images/field-hampers-courtyard.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero__wash {
  background:
    linear-gradient(90deg, rgba(24, 15, 34, 0.96), rgba(32, 19, 50, 0.82) 46%, rgba(100, 54, 196, 0.28)),
    linear-gradient(0deg, rgba(30, 26, 37, 0.88), rgba(30, 26, 37, 0.1) 54%);
}

.topbar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--paper);
  text-decoration: none;
  font-weight: 800;
}

.brand-lockup__marks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand-lockup__marks img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 6px;
}

.brand-lockup span {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__actions,
.hero__actions,
.cta__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar__actions {
  flex-shrink: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--aa-purple);
  outline: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 124px 16px 72px;
}

.partner-logos {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.partner-logos img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 8px;
}

.partner-logos span {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.28);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--aa-purple);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--rose);
}

.section-kicker--light {
  color: var(--rose);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: 3.35rem;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: 2rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  overflow-wrap: break-word;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 0 0 28px;
}

.hero__stats div,
.metric,
.community-grid article,
.finance-table,
.response-panel,
.allocation,
.letter {
  border-radius: 8px;
}

.hero__stats div {
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero__stats strong,
.metric strong {
  display: block;
  line-height: 1;
  font-size: 2rem;
}

.hero__stats span,
.metric small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button--primary {
  color: var(--paper);
  background: var(--aa-red);
}

.button--ghost {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.button--light {
  color: var(--aa-purple);
  background: var(--paper);
}

.button--outline-light {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.48);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.bismillah {
  padding: 24px 16px;
  text-align: center;
  color: var(--aa-purple);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.bismillah p {
  margin: 0 0 4px;
  font-size: 1.65rem;
  font-weight: 800;
}

.bismillah span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

.section--intro {
  padding-top: 64px;
}

.section--soft {
  background: var(--soft);
}

.section--ink {
  color: var(--paper);
  background: var(--ink);
}

.intro-grid,
.response-grid,
.financial-grid,
.contents-grid,
.data-grid,
.cta__inner,
.footer__grid {
  display: grid;
  gap: 36px;
}

.intro-grid {
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
}

.prose p,
.section-copy {
  color: var(--muted);
  font-size: 1rem;
}

.prose p:last-child,
.section-copy:last-child {
  margin-bottom: 0;
}

.impact-band {
  padding: 56px 0;
  color: var(--paper);
  background: var(--aa-purple);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 140px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric span {
  display: block;
  margin-bottom: 18px;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.response-grid {
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
}

.section-heading h2 {
  max-width: 720px;
}

.section-heading--light h2 {
  color: var(--paper);
}

.response-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.response-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.response-panel > div {
  padding: 28px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: stretch;
}

.gallery__stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  min-height: 520px;
}

.gallery__stage img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.gallery__stage figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  color: var(--paper);
  background: rgba(30, 26, 37, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 700;
}

.gallery__thumbs {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 10px;
}

.thumb {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.thumb.is-active {
  border-color: var(--rose);
}

.thumb img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}

.section--video {
  background: var(--paper);
}

.video-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: center;
}

.video-frame {
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.community-grid article {
  min-height: 104px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.community-grid strong,
.community-grid span {
  display: block;
}

.community-grid span {
  margin-top: 8px;
  color: var(--aa-purple);
  font-weight: 800;
}

.financial-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.allocation {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 26px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.allocation__ring {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 56%, transparent 57%),
    conic-gradient(var(--aa-purple) 0 100%);
}

.allocation__ring span {
  color: var(--aa-purple);
  font-size: 1.45rem;
  font-weight: 900;
}

.allocation p {
  margin-bottom: 0;
  color: var(--muted);
}

.finance-table {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.finance-table {
  width: 100%;
  border-collapse: collapse;
}

.finance-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.finance-table tr {
  border-bottom: 1px solid var(--line);
}

.finance-table tr:last-child {
  border-bottom: 0;
}

.finance-table td {
  padding: 18px 20px;
}

.finance-table td:first-child {
  color: var(--muted);
}

.finance-table td:last-child {
  font-weight: 800;
  text-align: right;
}

.finance-table__total {
  color: var(--paper);
  background: var(--aa-purple);
}

.finance-table__total td:first-child {
  color: rgba(255, 255, 255, 0.82);
}

.contents-grid {
  grid-template-columns: 0.82fr 1.18fr;
}

.contents-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents-list li {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.data-grid {
  grid-template-columns: 0.78fr 1.22fr;
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.bar-chart .bar {
  position: relative;
  display: grid;
  grid-template-columns: 140px 1fr 48px;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  color: var(--ink);
}

.bar-chart .bar::before {
  content: "";
  height: 100%;
  width: var(--value);
  grid-column: 2;
  grid-row: 1;
  background: linear-gradient(90deg, var(--aa-purple), var(--aa-purple-2));
  border-radius: 6px;
}

.bar-chart span,
.bar-chart strong {
  position: relative;
  z-index: 1;
}

.bar--100 { --value: 100%; }
.bar--86 { --value: 86%; }
.bar--70 { --value: 70%; }
.bar--59 { --value: 59%; }
.bar--54 { --value: 54%; }
.bar--46 { --value: 46%; }
.bar--43 { --value: 43%; }
.bar--38 { --value: 38%; }

.bar-chart span {
  font-weight: 800;
}

.bar-chart strong {
  text-align: right;
}

.section--timeline {
  background: linear-gradient(180deg, var(--paper), var(--soft));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 208px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--aa-purple);
  border-radius: 8px;
}

.timeline time,
.timeline strong,
.timeline span {
  display: block;
}

.timeline time {
  margin-bottom: 14px;
  color: var(--aa-red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline strong {
  margin-bottom: 8px;
  font-size: 1rem;
}

.timeline span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section--letter {
  color: var(--paper);
  background:
    linear-gradient(rgba(30, 26, 37, 0.9), rgba(30, 26, 37, 0.9)),
    url("../images/beneficiary-smiling.jpg") center/cover;
}

.letter {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: start;
  padding: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.letter__logos {
  display: grid;
  gap: 10px;
}

.letter__logos img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 8px;
  padding: 6px;
}

.letter p {
  color: rgba(255, 255, 255, 0.84);
}

.signature {
  margin-bottom: 0;
}

.signature strong,
.signature span {
  display: block;
}

.signature strong {
  color: var(--paper);
}

.cta {
  padding: 54px 0;
  color: var(--paper);
  background: var(--aa-purple);
}

.cta__inner {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.cta h2 {
  margin-bottom: 0;
}

.footer {
  padding: 36px 0;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.footer__grid {
  grid-template-columns: 1.3fr 1fr 1.1fr 0.8fr;
  align-items: start;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer__logos img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 8px;
  padding: 4px;
}

.footer strong,
.footer span,
.footer a {
  display: block;
}

.footer strong {
  color: var(--paper);
  margin-bottom: 8px;
}

.footer a {
  color: var(--rose);
  text-decoration: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 300px;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .intro-grid,
  .response-grid,
  .financial-grid,
  .contents-grid,
  .data-grid,
  .video-grid,
  .cta__inner,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .response-panel {
    grid-template-columns: 1fr;
  }

  .response-panel img {
    min-height: 300px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .gallery__stage,
  .gallery__stage img {
    min-height: 430px;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .topbar {
    padding: 14px 12px;
  }

  .topbar__actions {
    display: none;
  }

  .brand-lockup__marks img {
    width: 34px;
    height: 34px;
  }

  .brand-lockup span {
    max-width: 136px;
    line-height: 1.2;
  }

  .hero {
    min-height: 760px;
  }

  .hero__content {
    padding-top: 110px;
  }

  .partner-logos {
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px;
  }

  .partner-logos img {
    width: 58px;
    height: 58px;
  }

  .partner-logos span {
    height: 42px;
  }

  h1 {
    font-size: 1.85rem;
    max-width: 342px;
  }

  h2 {
    font-size: 1.48rem;
  }

  .hero__lead {
    font-size: 0.98rem;
    max-width: 342px;
  }

  .hero__stats {
    max-width: 342px;
  }

  .bismillah span {
    display: block;
    max-width: 342px;
    margin: 0 auto;
  }

  .hero__stats,
  .impact-grid,
  .community-grid,
  .contents-list,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero__stats div,
  .metric {
    min-height: auto;
  }

  .section {
    padding: 52px 0;
  }

  .gallery__stage,
  .gallery__stage img {
    min-height: 330px;
  }

  .gallery__stage figcaption {
    position: static;
    border-radius: 0;
  }

  .gallery__thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .allocation {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .bar-chart .bar {
    grid-template-columns: 1fr 52px;
    gap: 8px;
  }

  .bar-chart .bar::before {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 10px;
  }

  .bar-chart strong {
    grid-column: 2;
    grid-row: 1;
  }

  .letter {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .letter__logos {
    grid-template-columns: repeat(2, 96px);
  }

  .letter__logos img {
    width: 96px;
    height: 96px;
  }

  .footer__logos img {
    width: 56px;
    height: 56px;
  }
}

@media print {
  html {
    scroll-behavior: auto;
  }

  body {
    color: #111;
    background: #fff;
  }

  .no-print,
  .hero__actions,
  .toast {
    display: none !important;
  }

  .hero,
  .impact-band,
  .section--ink,
  .section--letter,
  .cta,
  .footer {
    color: #111;
    background: #fff !important;
  }

  .hero {
    min-height: auto;
    padding: 36px 0;
  }

  .hero__image,
  .hero__wash {
    display: none;
  }

  .hero__content,
  .container {
    width: 100%;
  }

  .hero__stats,
  .impact-grid,
  .community-grid,
  .timeline,
  .contents-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__stats div,
  .metric,
  .community-grid article,
  .finance-table,
  .timeline li,
  .letter {
    color: #111;
    border: 1px solid #bbb;
    background: #fff;
    box-shadow: none;
  }

  a {
    text-decoration: none;
  }

  .section {
    break-inside: avoid;
    padding: 28px 0;
  }
}
