/* ------------------------------------------------------------------ */
/* Brand watermark — subtle fixed logo on every page                  */
/* ------------------------------------------------------------------ */

.brand-watermark {
  position: fixed;
  right: -80px;
  bottom: -80px;
  width: 360px;
  height: 360px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
}
.brand-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app > nav,
.app > .page,
.app > .site-footer,
.app > footer,
.tweaks-panel {
  position: relative;
  z-index: 2;
}

@media (max-width: 820px) {
  .brand-watermark {
    width: 220px;
    height: 220px;
    right: -50px;
    bottom: -50px;
    opacity: 0.05;
  }
}

@media print {
  .brand-watermark { opacity: 0.08; }
}

/* ------------------------------------------------------------------ */
/* Donate — Impact Giving Levels (cards + pips)                       */
/* ------------------------------------------------------------------ */

.impact-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.impact-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 16px 0 20px;
}
.impact-title em { font-style: italic; }
.impact-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}

/* Override the original impact-row layout from styles.css */
.impact .impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.impact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 36px 36px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  transition: background 0.3s var(--ease);
  position: relative;
}
.impact-card:hover { background: rgba(0,0,0,0.02); }

/* Make the last card span both columns when there are 5 items */
.impact-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.impact-card .impact-amt {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin: 0;
}

.impact-pips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  max-width: 100%;
}
.impact-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  display: block;
}
.impact-pip-more {
  font-family: var(--mono);
  font-size: 12px;
  margin-left: 4px;
  color: var(--mute);
}

.impact-card .impact-l {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: 460px;
}

.impact-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), gap 0.25s var(--ease);
}
.impact-cta:hover {
  background: var(--ink);
  color: var(--paper);
  gap: 18px;
}
.impact-arrow { font-family: var(--serif); font-size: 14px; }

.impact-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 56px 24px;
  border: 1px solid var(--rule);
  border-top: 0;
  text-align: center;
}
.impact-foot .donate-note { color: var(--mute); }

@media (max-width: 760px) {
  .impact .impact-grid { grid-template-columns: 1fr; }
  .impact-card { padding: 32px 24px 28px; }
  .impact-card:last-child:nth-child(odd) { grid-column: auto; }
}


.world-players {
  margin-bottom: 120px;
  border-top: 1px solid var(--rule);
  padding-top: 56px;
}
.world-players-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.world-players-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 16px 0 20px;
}
.world-players-title em { font-style: italic; }
.world-players-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  margin: 0;
}

.wp-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.wp-card:last-child { border-bottom: 1px solid var(--rule); }

.wp-photo {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}
.wp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05);
}
.wp-photo-ph {
  position: absolute;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wp-photo-mark {
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  letter-spacing: -0.02em;
  opacity: 0.85;
}

.wp-body { padding-top: 8px; }
.wp-name {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.wp-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 6px;
  margin-bottom: 24px;
}
.wp-quote {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}
.wp-quote p { margin: 0 0 14px; }
.wp-quote p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .wp-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0;
  }
  .wp-photo {
    width: 140px;
    height: 140px;
  }
  .wp-quote {
    font-size: 17px;
    padding-left: 18px;
  }
}


.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.about-hero-text .page-head { margin-bottom: 0; }
.about-hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}
.about-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05);
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 48px; margin-bottom: 56px; }
  .about-hero-photo { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------------ */
/* Chapters — photo above content                                     */
/* ------------------------------------------------------------------ */

.chapter-with-photo {
  grid-template-columns: 1fr !important;
  gap: 32px !important;
}
.chapter-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  margin-bottom: 8px;
}
.chapter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.7s var(--ease);
}
.chapter-photo:hover img { transform: scale(1.03); }

.chapter-with-photo .chapter-index {
  padding-top: 0 !important;
}
.chapter-with-photo .chapter-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: start;
}
.chapter-with-photo .chapter-body > * { grid-column: 2; }
@media (max-width: 720px) {
  .chapter-with-photo .chapter-body { grid-template-columns: 1fr; gap: 12px; }
  .chapter-with-photo .chapter-body > * { grid-column: 1; }
}

/* Reuse the index column for the photo by laying it out manually */
.chapter-with-photo {
  display: grid !important;
  grid-template-columns: 160px 1fr !important;
  grid-template-areas:
    "idx photo"
    "idx body" !important;
  gap: 0 48px !important;
}
.chapter-with-photo .chapter-index { grid-area: idx; padding-top: 24px !important; }
.chapter-with-photo .chapter-photo { grid-area: photo; margin-bottom: 32px; }
.chapter-with-photo .chapter-body  { grid-area: body; display: block; }

@media (max-width: 720px) {
  .chapter-with-photo {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "photo"
      "idx"
      "body" !important;
    gap: 16px !important;
  }
  .chapter-with-photo .chapter-index { padding-top: 0 !important; }
}


.videos-section {
  margin-bottom: 120px;
  border-top: 1px solid var(--rule);
  padding-top: 48px;
}
.videos-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mute);
  max-width: 640px;
  margin: 0 0 48px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-feature {
  margin-bottom: 80px;
}
.video-feature .video-meta {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.video-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.video-caption {
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}

.testimonies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimony .video-meta {
  margin-top: 14px;
}
.testimony-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .testimonies-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ------------------------------------------------------------------ */
/* Events — Register button                                           */
/* ------------------------------------------------------------------ */

.event-cta {
  margin-top: 24px;
}
.event-register {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), letter-spacing 0.25s var(--ease);
}
.event-register:hover {
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.22em;
}

/* ------------------------------------------------------------------ */
/* Language toggle                                                    */
/* ------------------------------------------------------------------ */

.lang-toggle {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}
.lang-toggle span { opacity: 0.4; transition: opacity 0.2s var(--ease); }
.lang-toggle .lang-active { opacity: 1; }
.lang-toggle .lang-divider { opacity: 0.3; }

@media (max-width: 680px) {
  .lang-toggle { top: 12px; right: 16px; padding: 6px 10px; font-size: 10px; }
}


.home-photos {
  padding: 120px 28px;
  border-top: 1px solid var(--rule);
  max-width: var(--maxw);
  margin: 0 auto;
}
.home-photos-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.home-photos-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  text-align: right;
}
.home-photos-title em { font-style: italic; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}
.photo-cell {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
}
.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.7s var(--ease);
}
.photo-cell:hover img { transform: scale(1.04); }
.photo-cell.photo-color img { filter: none; }

.photo-tall { grid-column: span 2; aspect-ratio: 4 / 5; }
.photo-wide { grid-column: span 3; aspect-ratio: 4 / 3; }

.photo-cell:nth-child(1) { grid-column: span 2; aspect-ratio: 4 / 5; }
.photo-cell:nth-child(2) { grid-column: span 4; aspect-ratio: 16 / 11; }
.photo-cell:nth-child(3) { grid-column: span 3; aspect-ratio: 4 / 3; }
.photo-cell:nth-child(4) { grid-column: span 3; aspect-ratio: 4 / 3; }
.photo-cell:nth-child(5) { grid-column: span 6; aspect-ratio: 21 / 9; }

.photo-ph {
  position: absolute;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.photo-ph-mark {
  font-family: var(--mono);
  font-size: 32px;
  opacity: 0.4;
  font-weight: 200;
}
.photo-ph-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
}

@media (max-width: 820px) {
  .home-photos { padding: 80px 20px; }
  .home-photos-head { flex-direction: column; align-items: flex-start; }
  .home-photos-title { text-align: left; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-cell:nth-child(n) { grid-column: span 2; aspect-ratio: 4 / 3; }
  .photo-cell:first-child { aspect-ratio: 4 / 5; }
}
