/* Homepage: animated quotations, purpose, organisation story and impact. */
.quote-banner {
  position: relative;
  background: var(--deep);
  color: white;
  isolation: isolate;
}

.quote-slide {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 510px;
  padding: 72px 0 92px;
  overflow: hidden;
}

.quote-slide[hidden],
.quote-controls[hidden] {
  display: none;
}

.quote-slide.is-entering {
  position: absolute;
  inset: 0;
  z-index: 2;
  animation: quote-fade .5s ease both;
}

.quote-slide > img,
.quote-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.quote-slide > img {
  object-fit: cover;
  object-position: center 42%;
}

.quote-slide.is-active > img,
.quote-slide.is-entering > img {
  animation: quote-zoom 4.5s ease-out both;
}

.quote-banner.is-paused .quote-slide > img {
  animation-play-state: paused;
}

.quote-overlay {
  background: linear-gradient(0deg, rgba(22, 15, 35, .28), transparent 65%);
}

.quote-content {
  position: relative;
  z-index: 1;
}

.quote-content blockquote {
  max-width: 440px;
  margin: 0;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-left: 4px solid #e091bd;
  border-radius: 8px;
  background: rgba(39, 33, 60, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  color: #fffaf4;
  font-size: 16.6px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
  letter-spacing: 0;
  text-wrap: pretty;
}

.quote-slide:nth-child(2) blockquote {
  background: rgba(42, 32, 35, .68);
  border-left-color: #dfa96d;
  color: #fff9fd;
}

.quote-controls {
  position: absolute;
  inset-inline: 0;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote-dots {
  display: flex;
  gap: 4px;
}

.quote-dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quote-dot::after {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid white;
  border-radius: 50%;
}

.quote-dot[aria-pressed='true']::after {
  background: white;
}

.quote-pause {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #ffffff80;
  border-radius: 4px;
  background: #21152b66;
  color: white;
  font-size: 14px;
  cursor: pointer;
}

.purpose-section {
  padding-block: 64px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
}

.purpose-grid article + article {
  border-left: 1px solid #d5cbd9;
  padding-left: 64px;
}

.purpose-grid h2 {
  margin-bottom: 18px;
  color: var(--magenta);
  font-size: 27.6px;
}

.purpose-grid p {
  margin: 0;
  font-size: 16.6px;
  line-height: 1.8;
}

.landing-story-heading {
  max-width: 1050px;
  margin-bottom: 48px;
}

.landing-story h1 {
  font-size: clamp(29.4px, 3.22vw, 44.2px);
  line-height: 1.22;
}

.landing-story h1 span {
  color: var(--magenta);
}

.landing-story-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 56px;
}

.landing-story-grid > img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  border-radius: 8px;
}

.landing-story-grid h2 {
  margin: 32px 0 16px;
  font-size: 23.9px;
}

.landing-stats {
  padding-block: 40px 20px;
  background: var(--purple);
  color: white;
}

.stats-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #a99fbf transparent;
}

.stats-track {
  display: flex;
  width: max-content;
}

.landing-stats-grid {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.landing-stats-grid > div {
  display: flex;
  flex: 0 0 280px;
  width: 280px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid #ffffff35;
}

.landing-stats-grid dt {
  max-width: 230px;
  color: #eee7f2;
  font-size: 14px;
  line-height: 1.6;
}

.landing-stats-grid dd {
  order: -1;
  margin: 0 0 12px;
  font-size: 33.1px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.stats-ready .stats-track {
  animation: stats-scroll 40s linear infinite;
}

.stats-ready .stats-viewport:not(:focus) {
  overflow-x: hidden;
}

.stats-paused .stats-track,
.landing-stats:hover .stats-track,
.landing-stats:focus-within .stats-track {
  animation-play-state: paused;
}

.stats-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.stats-pause {
  min-height: 44px;
  padding: 8px 16px;
  color: white;
  background: transparent;
  border: 1px solid #ffffff80;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.stats-pause[hidden] {
  display: none;
}

@keyframes stats-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes quote-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes quote-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

@media (max-width: 800px) {
  .quote-slide { min-height: 460px; }
  .purpose-grid { gap: 32px; }
  .purpose-grid article + article { padding-left: 32px; }
  .landing-story-grid { grid-template-columns: 1fr; gap: 32px; }
  .landing-story-grid > img { height: 360px; min-height: 0; }
}

@media (max-width: 520px) {
  .quote-slide { min-height: 450px; padding-block: 56px 88px; }
  .quote-content blockquote { max-width: 100%; padding: 18px 20px; font-size: 16px; line-height: 1.6; }
  .quote-overlay { background: linear-gradient(0deg, rgba(22, 15, 35, .25), transparent); }
  .purpose-section { padding-block: 40px; }
  .purpose-grid { grid-template-columns: 1fr; }
  .purpose-grid article + article { border-left: 0; border-top: 1px solid #d5cbd9; padding: 28px 0 0; }
  .purpose-grid p { font-size: 16px; }
  .landing-story-heading { margin-bottom: 28px; }
  .landing-story-grid > img { height: 280px; }
  .landing-stats { padding-block: 40px; }
  .landing-stats-grid > div { flex-basis: 240px; width: 240px; padding-inline: 20px; }
  .landing-stats-grid dt { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-slide.is-entering,
  .quote-slide.is-active > img,
  .quote-slide.is-entering > img { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .stats-ready .stats-track { animation: none; }
  .stats-copy { display: none; }
  .stats-ready .stats-viewport:not(:focus) { overflow-x: auto; }
}
