/* ==========================================================================
   PhiphyMak Rehabilitation Home Uganda
   Design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand */
  --emerald: #0F5C4C;
  --emerald-deep: #0A3F34;
  --emerald-soft: #E4EDE9;
  --terracotta: #C45C26;
  --gold: #D4A017;
  --gold-wash: #F4E9CE;
  --ivory: #F8F4EC;
  --ivory-deep: #F1EBDF;
  --charcoal: #1C1C1C;
  --sage: #7A9B8E;

  /* Derived neutrals */
  --ink-70: rgba(28, 28, 28, 0.72);
  --ink-55: rgba(28, 28, 28, 0.56);
  --rule: rgba(28, 28, 28, 0.14);
  --rule-light: rgba(28, 28, 28, 0.08);
  --rule-on-dark: rgba(248, 244, 236, 0.22);

  /* Type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.92rem);
  --step-0: clamp(1.02rem, 0.99rem + 0.16vw, 1.14rem);
  --step-1: clamp(1.18rem, 1.11rem + 0.32vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.26rem + 0.66vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.48rem + 1.3vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.66rem + 2.6vw, 3.9rem);
  --step-5: clamp(2.6rem, 1.7rem + 4.2vw, 5.2rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --max: 1240px;
  --measure: 62ch;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Contains the off-canvas mobile nav without creating a scroll container,
     so position: sticky on the masthead keeps working. */
  overflow-x: clip;
}
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure, blockquote { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; max-width: var(--measure); }

a { color: inherit; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold-wash); color: var(--charcoal); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 200;
  background: var(--emerald);
  color: var(--ivory);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }

.section--ruled { padding-top: 0; }

.section--emerald {
  background: var(--emerald);
  color: var(--ivory);
}
.section--emerald p { color: rgba(248, 244, 236, 0.86); }

.section--ivory-deep { background: var(--ivory-deep); }

/* Eyebrow label */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.6rem;
}
.section--emerald .eyebrow { color: var(--gold); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-70);
}
.section--emerald .lead { color: rgba(248, 244, 236, 0.9); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  background: var(--emerald);
  color: var(--ivory);
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn:hover { background: var(--emerald-deep); }

.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); background: transparent; }

.btn--light {
  background: var(--ivory);
  color: var(--emerald);
}
.btn--light:hover { background: #fff; }

.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn--gold:hover { background: #C29315; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

/* Text link with underline that grows */
.link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--emerald);
  border-bottom: 1px solid rgba(15, 92, 76, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.22s ease;
}
.link:hover { border-color: var(--emerald); }

/* --------------------------------------------------------------------------
   5. Announcement bar
   -------------------------------------------------------------------------- */

.announce {
  background: var(--gold-wash);
  border-bottom: 1px solid rgba(212, 160, 23, 0.32);
  font-size: 0.82rem;
  line-height: 1.45;
}
.announce__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  padding-block: 0.7rem;
  text-align: center;
}
.announce__primary {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6E5307;
}
.announce__secondary { color: rgba(28, 28, 28, 0.62); max-width: none; }

@media (max-width: 640px) {
  .announce { font-size: 0.74rem; }
  .announce__inner { gap: 0.25rem 0.8rem; padding-block: 0.6rem; }
}

/* --------------------------------------------------------------------------
   6. Masthead and navigation
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid rather than translucent. A backdrop-filter here would make the
     masthead a containing block for the position: fixed mobile nav panel. */
  background: var(--ivory);
  border-bottom: 1px solid var(--rule-light);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  line-height: 1;
}
.wordmark__mark {
  width: 46px;
  height: 46px;
  flex: none;
}
.wordmark__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--emerald);
}
.wordmark__sub {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  list-style: none;
}
.nav__link {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-70);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__link:hover { color: var(--charcoal); }
.nav__link[aria-current="page"] {
  color: var(--emerald);
  border-bottom-color: var(--gold);
}

.nav__cta { padding: 0.7rem 1.3rem; font-size: 0.88rem; flex: none; }

@media (max-width: 560px) {
  .wordmark { gap: 0.55rem; }
  .wordmark__mark { width: 38px; height: 38px; }
  .wordmark__name { font-size: 1.14rem; }
  .wordmark__sub { font-size: 0.53rem; letter-spacing: 0.16em; }
}
@media (max-width: 380px) {
  .wordmark__sub { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  margin-inline: auto;
  background: var(--charcoal);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  /* Off-canvas panel. Opacity and visibility rather than an off-screen
     transform, so the closed panel never widens the document on small screens. */
  .nav {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    background: var(--ivory);
    border-left: 1px solid var(--rule-light);
    padding: 6.5rem var(--gutter) 2.5rem;
    overflow-y: auto;
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list li {
    border-bottom: 1px solid var(--rule-light);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav[data-open="true"] .nav__list li { opacity: 1; transform: none; }
  .nav[data-open="true"] .nav__list li:nth-child(1) { transition-delay: 0.04s; }
  .nav[data-open="true"] .nav__list li:nth-child(2) { transition-delay: 0.07s; }
  .nav[data-open="true"] .nav__list li:nth-child(3) { transition-delay: 0.10s; }
  .nav[data-open="true"] .nav__list li:nth-child(4) { transition-delay: 0.13s; }
  .nav[data-open="true"] .nav__list li:nth-child(5) { transition-delay: 0.16s; }
  .nav[data-open="true"] .nav__list li:nth-child(6) { transition-delay: 0.19s; }
  .nav__link {
    display: block;
    font-size: 1.15rem;
    padding-block: 1.05rem;
    border-bottom: none;
  }
  .nav__link[aria-current="page"] { border-bottom: none; }
  .nav__cta { margin: 1.75rem 0 0; width: 100%; justify-content: center; }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 28, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 90;
  }
  .nav-scrim[data-open="true"] { opacity: 1; visibility: visible; }
  body[data-nav-open="true"] { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 5.5vw, 5rem) 0; }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 0.98fr; }
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero__sub {
  margin-top: 1.9rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 34ch;
}

.hero__aside {
  padding-left: 0;
}
.hero__aside p { font-size: 0.98rem; color: var(--ink-70); }

.hero__figure { margin: clamp(3rem, 6vw, 5rem) 0 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center 42%;
}
.hero__caption {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-55);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   8. Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.page-head__title {
  font-size: var(--step-4);
  letter-spacing: -0.032em;
  max-width: 18ch;
}
.page-head__intro {
  margin-top: 1.8rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 56ch;
}

/* --------------------------------------------------------------------------
   9. Pillars
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 780px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 3.5vw, 4rem); }
}

.pillar { padding-top: 0; }
.pillar__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.4rem;
}
.pillar__title {
  font-size: var(--step-2);
  margin-bottom: 0.9rem;
}
.pillar p { color: var(--ink-70); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   10. Split blocks (text + image)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
  .split--flip .split__media { order: -1; }
}
.split--top { align-items: start; }
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__body h2 { font-size: var(--step-3); margin-bottom: 1.4rem; }
.split__body p + p { margin-top: 1.1rem; }
.split__body p { color: var(--ink-70); }

/* --------------------------------------------------------------------------
   11. Statement block
   -------------------------------------------------------------------------- */

.statement__title {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.statement__body {
  margin-top: 1.8rem;
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   12. Event card
   -------------------------------------------------------------------------- */

.event {
  border: 1px solid rgba(212, 160, 23, 0.42);
  background: var(--gold-wash);
  padding: clamp(2rem, 4.5vw, 3.5rem);
}
.event__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 820px) {
  .event__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.event__title { font-size: var(--step-3); margin-bottom: 0.6rem; }
.event__theme {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 34ch;
}
.event__partner {
  margin-top: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink-55);
  max-width: 40ch;
}

.detail-list { list-style: none; }
.detail-list li {
  display: grid;
  grid-template-columns: minmax(90px, 130px) 1fr;
  gap: 1rem;
  padding-block: 0.95rem;
  border-top: 1px solid rgba(212, 160, 23, 0.36);
  font-size: 0.98rem;
}
.detail-list li:last-child { border-bottom: 1px solid rgba(212, 160, 23, 0.36); }
.detail-list dt, .detail-list .detail-key {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 28, 28, 0.5);
  padding-top: 0.32rem;
}
.detail-list .detail-value { font-weight: 400; }

/* Dark variant for the events page */
.detail-list--dark li { border-color: var(--rule-on-dark); }
.detail-list--dark .detail-key { color: var(--gold); }
.detail-list--dark .detail-value { color: var(--ivory); }

/* --------------------------------------------------------------------------
   13. Work cards
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 760px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; }
.card__media { margin-bottom: 1.5rem; overflow: hidden; }
.card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}
.card:hover .card__media img { transform: scale(1.03); }
.card__index {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.card__title { font-size: var(--step-2); margin-bottom: 0.8rem; }
.card p { color: var(--ink-70); font-size: 0.98rem; }
.card p + p { margin-top: 0.9rem; }

/* --------------------------------------------------------------------------
   14. Values list
   -------------------------------------------------------------------------- */

.values {
  list-style: none;
  display: grid;
  gap: 0;
  margin-top: 2rem;
}
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 5rem); } }
.values li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding-block: 0.72rem;
  font-size: 1.02rem;
}
.values li::before {
  content: "";
  width: 5px; height: 5px;
  flex: none;
  background: var(--terracotta);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   15. Director block
   -------------------------------------------------------------------------- */

.director {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) { .director { grid-template-columns: 0.8fr 1.2fr; } }

.director__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
}
.director__meta { margin-top: 1.4rem; }
.director__name { font-size: var(--step-2); }
.director__role {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.director__body p { font-size: 1.06rem; line-height: 1.72; color: var(--ink-70); }
.director__body p + p { margin-top: 1.3rem; }
.director__body p:last-child {
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.3;
  color: var(--emerald);
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   16. Partners
   -------------------------------------------------------------------------- */

.partners { display: grid; gap: clamp(2.25rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 820px) { .partners { grid-template-columns: repeat(2, 1fr); } }

.partner { padding-top: 0; }
.partner__name { font-size: var(--step-2); margin-bottom: 0.9rem; }
.partner p { color: var(--ink-70); font-size: 0.98rem; }
.partner__media { margin-top: 1.75rem; }
.partner__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */

.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-list { list-style: none; }
.contact-list li { padding-block: 1.15rem; }
.contact-list .contact-key {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.55rem;
}
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--rule); transition: border-color 0.2s ease; }
.contact-list a:hover { border-color: var(--emerald); }
.contact-value { font-size: 1.08rem; line-height: 1.55; }

/* --------------------------------------------------------------------------
   18. Support options
   -------------------------------------------------------------------------- */

.ways { display: grid; gap: clamp(2.5rem, 4.5vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.way {
  display: grid;
  gap: 0.75rem 2.5rem;
}
@media (min-width: 820px) { .way { grid-template-columns: 0.4fr 1fr; } }
.way__title { font-size: var(--step-2); }
.way p { color: var(--ink-70); }

/* --------------------------------------------------------------------------
   19. Closing call
   -------------------------------------------------------------------------- */

.closing { text-align: left; }
.closing__title {
  font-size: var(--step-4);
  letter-spacing: -0.03em;
  max-width: 17ch;
}
.closing__body { margin-top: 1.6rem; font-size: var(--step-1); line-height: 1.55; max-width: 46ch; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--emerald-deep);
  color: rgba(248, 244, 236, 0.82);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2.25rem;
  font-size: 0.95rem;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--ivory); }

.footer__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.2fr 0.8fr 0.9fr; } }

.footer__wordmark {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.footer__wordmark .wordmark__name { color: var(--ivory); font-size: 1.35rem; }
.footer__wordmark .wordmark__sub { color: rgba(248, 244, 236, 0.55); }
.footer__tagline { margin-top: 1.4rem; color: rgba(248, 244, 236, 0.7); max-width: 32ch; font-size: 0.95rem; }

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer__list { list-style: none; display: grid; gap: 0.65rem; }
.footer__list a { border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color 0.2s ease; }
.footer__list a:hover { border-bottom-color: rgba(248, 244, 236, 0.5); }

.footer address { font-style: normal; display: grid; gap: 0.6rem; }

.footer__base {
  margin-top: clamp(3rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  justify-content: space-between;
  font-size: 0.83rem;
  color: rgba(248, 244, 236, 0.55);
}
.footer__base p { max-width: none; }

/* --------------------------------------------------------------------------
   21. Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   22. Hero quote (Home right column)
   -------------------------------------------------------------------------- */

.hero__quote { max-width: none; }
.hero__quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  max-width: 17em;
  font-size: clamp(1.35rem, 1.02rem + 1.32vw, 2.15rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.58;
  letter-spacing: -0.012em;
  color: var(--emerald);
  /* Hang the opening quotation mark so the first line aligns optically */
  text-indent: -0.42em;
}
.hero__quote figcaption {
  margin-top: 1.9rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}

/* --------------------------------------------------------------------------
   23. Project galleries
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.5rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.gallery--portrait img { aspect-ratio: 3 / 4; }

.gallery__wide { grid-column: 1 / -1; }
.gallery__wide img { aspect-ratio: 16 / 9; }

/* Speaker cards on the events page */
.speakers {
  display: grid;
  gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 780px) {
  .speakers { grid-template-columns: repeat(3, 1fr); }
}
.speakers img { width: 100%; }

/* --------------------------------------------------------------------------
   24. Giving details
   -------------------------------------------------------------------------- */

.give {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 800px) { .give { grid-template-columns: repeat(2, 1fr); } }

.give__panel {
  background: var(--ivory);
  border: 1px solid var(--rule-light);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
}
.section--ivory-deep .give__panel { background: var(--ivory); }
.give__title { font-size: var(--step-2); margin-bottom: 1.5rem; }
.give__row { display: grid; gap: 0.25rem; padding-block: 0.8rem; }
.give__key {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}
.give__value {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.give__note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--ink-55); }

/* --------------------------------------------------------------------------
   25. Leadership page
   -------------------------------------------------------------------------- */

.leader {
  display: grid;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .leader { grid-template-columns: 0.72fr 1.28fr; }
}
.leader__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}
.leader__name { font-size: var(--step-4); letter-spacing: -0.03em; }
.leader__role {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.leader__body { margin-top: 2.6rem; }
.leader__body p { font-size: 1.08rem; line-height: 1.75; color: var(--ink-70); max-width: 60ch; }
.leader__body p + p { margin-top: 1.4rem; }
.leader__body p:last-child {
  margin-top: 2.4rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--emerald);
}

/* Card titles that link through to a project page */
.card__link { text-decoration: none; }
.card__link:hover { color: var(--emerald); }
.card__media { display: block; }

/* Single-column prose block on project pages */
.prose p {
  font-size: var(--step-1);
  line-height: 1.68;
  color: var(--ink-70);
  max-width: 58ch;
}
.prose p + p { margin-top: 1.3rem; }

/* Uniform poster boxes without cropping the artwork */
.speakers figure { background: var(--ivory); }
.speakers img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
}
