/**
 * Everyday Refugees theme — design tokens + layout (ported from Next.js globals).
 */

html {
  scrollbar-gutter: stable;
}

html {
  color-scheme: light;
}

:root {
  --background: #ffffff;
  --foreground: #171717;
  --design-accent: #2150af;
  --design-accent-foreground: #ffffff;
  --design-muted: #babbbb;
  --design-black: #000000;
  --design-page-bg: #fafafa;
  --brand-blue: #2150af;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-base: 0.25rem;
  --radius-lg: calc(var(--radius-base) * 4);
  --radius-2xl: calc(var(--radius-base) * 6);
  --radius-full: 9999px;
}

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

body {
  margin: 0;
  background: var(--design-page-bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.er-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.er-site__main {
  flex: 1;
  width: 100%;
}

/* —— Buttons —— */
.btn-accent-filled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-full);
  background: var(--design-accent);
  color: var(--design-accent-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-accent-filled:hover {
  opacity: 0.92;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid currentColor;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.05);
}


.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background: rgba(9, 9, 11, 0.82);
  transition: transform 0.3s ease-out;
}

.site-header.is-menu-open {
  background: #09090b;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.site-header__shell {
  margin: 0;
  width: 100%;
  max-width: none;
}

.site-header__bar {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 640px) {
  .site-header__bar {
    padding: 1rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .site-header__bar {
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 2rem;
  }
}

.site-header.is-menu-open .site-header__bar {
  border-radius: 0;
}

.site-logo {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  display: inline-block;
}

.site-logo img {
  height: 1.75rem;
  width: auto;
}

@media (min-width: 640px) {
  .site-logo img {
    height: 2rem;
  }
}

.nav-desktop {
  display: none;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a,
.nav-desktop span {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: opacity 0.15s ease;
}

@media (min-width: 1024px) {
  .nav-desktop a,
  .nav-desktop span {
    font-size: 1rem;
  }
}

.nav-desktop a:hover {
  opacity: 0.8;
}

.nav-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 9999px;
  background: var(--design-accent);
  flex-shrink: 0;
}

.header-actions {
  display: none;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

.header-mobile-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .header-mobile-actions {
    display: none;
  }
}

.menu-toggle {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.4);
}

.mobile-backdrop.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-backdrop {
    display: none !important;
  }
}

.mobile-drawer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.3s ease-out;
}

.mobile-drawer.is-open {
  grid-template-rows: 1fr;
}

@media (min-width: 1024px) {
  .mobile-drawer {
    display: none;
  }
}

.mobile-drawer__inner {
  min-height: 0;
}

.mobile-drawer__panel {
  overflow: hidden;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #09090b;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
}

.mobile-nav a,
.mobile-nav span {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-nav .btn-accent-filled {
  width: 100%;
  margin-top: 0.5rem;
  height: 2.75rem;
}

/* —— Hero —— */
/* Outer shell gets scroll padding (Next.js motion padding 0→24px). */
.er-hero {
  position: relative;
  width: 100%;
  padding: 0;
  background: transparent;
}

.er-hero__frame {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  background: #09090b;
  border-radius: 0;
}

.er-hero--home .er-hero__frame {
  height: min(92vh, 860px);
  min-height: 520px;
}

.er-hero__media {
  position: absolute;
  inset: 0;
}

.er-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.er-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%);
  pointer-events: none;
}

.er-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
  height: 100%;
  padding: 6.5rem 1.5rem 4.5rem;
  color: #fff;
}

@media (min-width: 640px) {
  .er-hero__content {
    padding: 7rem 2rem 5rem;
  }
}

@media (min-width: 1024px) {
  .er-hero__content {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 8rem 2.5rem 5rem;
  }
}

.er-hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

@media (min-width: 640px) {
  .er-hero__scroll {
    bottom: 2rem;
  }
}

.er-hero__scroll:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.er-hero__scroll svg {
  transform: translateY(1px);
}

.er-hero__copy {
  max-width: 40rem;
}

.er-hero__copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
  color: #fff;
}

.er-hero__copy p {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.er-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.er-hero__feature {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  max-width: 20rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.er-hero__feature-media {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(33, 80, 175, 0.55), rgba(0, 0, 0, 0.2)),
    #3f3f46;
}

.er-hero__feature-text span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--design-accent);
}

.er-hero__feature-text p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #fff;
}

/* —— Content —— */
.er-container {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .er-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.er-home-main {
  padding-top: 3rem;
  padding-bottom: 5rem;
}

@media (min-width: 640px) {
  .er-home-main {
    padding-top: 4rem;
  }
}

.er-home-main h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
  color: #09090b;
}


@media (min-width: 640px) {
  .er-home-main h1 {
    font-size: 3rem;
  }
}

.er-lead {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #09090b;
}


.er-section {
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .er-section {
    margin-top: 3.5rem;
  }
}

.er-section h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #09090b;
}


@media (min-width: 640px) {
  .er-section h2.er-section__title-lg {
    font-size: 1.875rem;
  }
}

.er-section p {
  margin: 1.25rem 0 0;
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #09090b;
}


.er-panel {
  border-radius: var(--radius-2xl);
  background: #f4f4f5;
  padding: 3rem 1.5rem;
}


@media (min-width: 640px) {
  .er-panel {
    padding: 4rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .er-panel {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.er-two-col {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .er-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.er-two-col h2 {
  font-size: 1.5rem;
}

.er-two-col p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: none;
}

.er-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.er-section-head a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3f3f46;
  white-space: nowrap;
}


.er-section-head a:hover {
  color: #09090b;
}


.er-posts {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .er-posts {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .er-posts {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.er-post-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e4e7;
  transition: box-shadow 0.2s ease;
}


.er-post-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.er-post-card__img {
  aspect-ratio: 16 / 10;
  background: #e4e4e7;
  overflow: hidden;
}

.er-post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-post-card__body {
  padding: 1rem 1.25rem 1.25rem;
}

.er-post-card__body h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.er-donate-cta {
  margin: 3rem 0;
  padding: 4rem 1.5rem;
  background: #000;
  color: #fff;
  text-align: center;
}

.er-donate-cta h2 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
  color: #fff;
}

.er-donate-cta p {
  margin: 1rem auto 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.8);
}

.er-donate-cta .btn-accent-filled {
  margin-top: 1.5rem;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
  background: #000;
  color: #fff;
  padding: 4rem 0;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .site-footer {
    padding: 5rem 0;
  }
}

.site-footer__grid {
  display: grid;
  gap: 3rem;
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .site-footer__grid {
    grid-template-columns: 1fr 2fr;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer__brand img {
  height: 2.25rem;
  width: auto;
}

.site-footer__brand p {
  margin: 0;
}

.site-footer__brand a:hover,
.site-footer__links a:hover {
  color: var(--design-accent);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__social a {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid var(--design-accent);
  color: var(--design-accent);
  transition: background 0.15s ease, color 0.15s ease;
}

.site-footer__social a:hover {
  background: var(--design-accent);
  color: #fff;
}

.site-footer__social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
  }
}

@media (min-width: 1280px) {
  .site-footer__cols {
    grid-template-columns: max-content max-content 1fr;
    column-gap: 7rem;
  }
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__partners span {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer__partners {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .site-footer__partners {
    grid-column: span 2;
    justify-self: start;
  }
}

@media (min-width: 1280px) {
  .site-footer__partners {
    grid-column: span 1;
    justify-self: center;
  }
}

.site-footer__partners a {
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  align-items: center;
  transition: opacity 0.15s ease;
}

.site-footer__partners a:hover {
  opacity: 0.9;
}

.site-footer__partners img {
  display: block;
  width: auto;
  height: 3rem;
  max-width: none;
}

@media (min-width: 640px) {
  .site-footer__partners img {
    height: 3.5rem;
  }
}

/* —— Shared page —— */
.er-page-main {
  padding-bottom: 5rem;
  padding-top: 3rem;
}

.er-page-main--pad-top {
  padding-top: 7rem;
}

@media (min-width: 640px) {
  .er-page-main {
    padding-top: 4rem;
  }
  .er-page-main--pad-top {
    padding-top: 8rem;
  }
}

.er-container--narrow {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.er-page-main h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .er-page-main h1 {
    font-size: 3rem;
  }
}

.er-muted {
  color: #71717a;
}


.er-breadcrumbs {
  margin-bottom: 1.5rem;
}

.er-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #71717a;
}

.er-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  opacity: 0.6;
}

.er-breadcrumbs a:hover {
  color: #09090b;
}


.er-breadcrumbs--dark,
.er-breadcrumbs--dark a,
.er-breadcrumbs--dark span {
  color: rgba(255, 255, 255, 0.85);
}

.er-breadcrumbs--dark a:hover {
  color: #fff;
}

.text-accent {
  color: var(--design-accent);
}

.er-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  color: #52525b;
}


.er-list li {
  margin-bottom: 0.5rem;
}

/* —— About —— */
.er-about-intro {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .er-about-intro {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }
}

.er-about-intro__text {
  flex: 1;
}

.er-about-intro__text p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: #52525b;
}


.er-about-intro__media {
  width: 100%;
  max-width: 340px;
  flex-shrink: 0;
}

.er-about-intro__media img {
  width: 100%;
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.er-mission-cards {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

.er-mission-cards article {
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid #e4e4e7;
  background: #fafafa;
}


.er-mission-cards h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.er-mission-cards p {
  margin-top: 1rem;
  color: #52525b;
  line-height: 1.7;
}


.er-panel--bordered {
  border: 1px solid #e4e4e7;
}


.er-anbi {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.er-anbi img {
  height: 3.5rem;
  width: auto;
}

.er-anbi a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.er-partners__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .er-partners__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .er-partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.er-partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  transition: background 0.15s ease, border-color 0.15s ease;
}


.er-partner-card:hover {
  background: #fafafa;
  border-color: #d4d4d8;
}


.er-partner-card img {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

.er-partner-card__name {
  margin: 0;
  font-weight: 600;
  text-align: center;
}

/* —— Projects —— */
.er-post-featured {
  display: block;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  min-height: 40vh;
  background: #18181b;
  color: #fff;
}

@media (min-width: 1024px) {
  .er-post-featured {
    min-height: 50vh;
  }
}

.er-post-featured img {
  width: 100%;
  height: 100%;
  min-height: 40vh;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.7s ease;
}

.er-post-featured:hover img {
  transform: scale(1.03);
}

.er-post-featured__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2) 45%, transparent);
}

@media (min-width: 640px) {
  .er-post-featured__body {
    padding: 2rem 2.5rem;
  }
}

.er-post-featured__body p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.er-post-featured__body h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

.er-year-group {
  margin-top: 4rem;
}

.er-year-group__title {
  margin: 0 0 1.5rem;
  font-size: clamp(4.5rem, 11vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #d4d4d8;
}

.er-year-group__title span {
  color: var(--design-accent);
}

.er-single-hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  overflow: hidden;
  background: #18181b;
}

.er-single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-single-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3) 45%, transparent);
}

.er-single-hero__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
}

@media (min-width: 640px) {
  .er-single-hero__copy {
    padding: 3rem 2rem 4rem;
  }
}

.er-single-hero__copy p {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.er-single-hero__copy h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.er-single__header {
  margin-bottom: 2rem;
}

.er-single__hero {
  margin-bottom: 2rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.er-single__hero img {
  width: 100%;
  height: auto;
}

.er-board-grid {
  display: grid;
  gap: 2.5rem 3rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .er-board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .er-board-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.er-board-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #e4e4e7;
}

.er-board-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-board-card__media span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  font-weight: 600;
  color: #a1a1aa;
}

.er-board-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -0.02em;
}

.er-board-card p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #71717a;
}

.er-board-card__role {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  background: #18181b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.er-board-card__bio {
  margin-top: 0.65rem;
  line-height: 1.6;
  color: #52525b;
}

.er-board-card__link {
  display: inline-block;
  margin-top: 0.85rem;
  color: #18181b;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.er-page-instagram {
  position: relative;
  z-index: 10;
  background: #f4f4f5;
}

.er-single__content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #3f3f46;
}


.er-single__content p {
  margin: 0 0 1.25rem;
}

/* —— Get involved —— */
.er-hero--involved .er-hero__frame {
  height: min(88vh, 780px);
  min-height: 520px;
}

.er-hero--involved .er-hero__content {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 5.5rem;
}

.er-hero--involved .er-hero__copy {
  max-width: 38rem;
}

.er-hero--involved .er-hero__copy h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
}

.er-involved-page {
  background: #fff;
  color: #18181b;
}

.er-involved-page [id] {
  scroll-margin-top: 6rem;
}

.er-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.5rem;
  border: 1.5px solid #3f3f46;
  border-radius: var(--radius-full);
  background: transparent;
  color: #18181b;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.er-btn-outline-dark:hover {
  background: #18181b;
  color: #fff;
}

.er-involved-jump {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1.5rem;
}

.er-involved-jump a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: #3f3f46;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.er-involved-jump svg {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--design-accent);
}

.er-involved-block,
.er-involved-voice,
.er-involved-projects,
.er-involved-cta {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.er-involved-block {
  display: grid;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #ececec;
}

.er-involved-block__media {
  overflow: hidden;
  border-radius: 1.25rem;
  background: #e4e4e7;
  aspect-ratio: 4 / 3;
}

.er-involved-block--donate .er-involved-block__media {
  aspect-ratio: 5 / 4;
}

.er-involved-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-involved-block__copy h2,
.er-involved-voice__copy h2,
.er-involved-projects__intro h2,
.er-involved-cta h2 {
  margin: 0.75rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.er-involved-block__copy > p,
.er-involved-voice__copy > p,
.er-involved-projects__intro > p,
.er-involved-cta p {
  margin: 1.15rem 0 0;
  color: #52525b;
  font-size: 1.05rem;
  line-height: 1.75;
}

.er-involved-block__copy .btn-accent-filled,
.er-involved-block__copy .er-btn-outline-dark,
.er-involved-projects__intro .er-btn-outline-dark {
  margin-top: 1.75rem;
}

.er-involved-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.er-involved-chips li {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 0.8125rem;
  font-weight: 500;
}

.er-involved-voice {
  display: grid;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid #ececec;
}

.er-involved-voice__media {
  overflow: hidden;
  border-radius: 1.25rem;
  background: #e4e4e7;
  aspect-ratio: 16 / 10;
}

.er-involved-voice__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-involved-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.er-involved-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border: 1.5px solid #3f3f46;
  border-radius: 9999px;
  color: #18181b;
  font-size: 0.8125rem;
  font-weight: 500;
}

.er-involved-social a:hover {
  background: #18181b;
  color: #fff;
}

.er-involved-projects {
  display: grid;
  gap: 2rem;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

.er-involved-projects__list {
  display: grid;
  gap: 1rem;
}

.er-involved-projects__list a {
  display: block;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #f4f4f5;
  color: #18181b;
}

.er-involved-projects__list img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.er-involved-projects__list h3 {
  margin: 1rem 1.15rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.er-involved-projects__list span {
  display: block;
  margin: 0.5rem 1.15rem 1.15rem;
  color: var(--design-accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.er-involved-cta {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.er-involved-cta__inner {
  padding: 3rem 1.5rem;
  border-radius: 1.5rem;
  background: #f4f4f5;
  text-align: center;
}

.er-involved-cta .er-current-eyebrow {
  justify-content: center;
}

.er-involved-cta h2 {
  max-width: 16ch;
  margin-right: auto;
  margin-left: auto;
}

.er-involved-cta p {
  max-width: 36rem;
  margin-right: auto;
  margin-left: auto;
}

.er-involved-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 768px) {
  .er-involved-jump {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 3rem;
  }

  .er-involved-block,
  .er-involved-voice,
  .er-involved-projects {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .er-involved-projects__list {
    grid-template-columns: 1fr;
  }

  .er-involved-cta__inner {
    padding: 4rem 3rem;
  }
}

@media (min-width: 1024px) {
  .er-involved-jump,
  .er-involved-block,
  .er-involved-voice,
  .er-involved-projects,
  .er-involved-cta {
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

/* —— Overlay pages (donate / contact) —— */
.er-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.er-overlay-page {
  position: relative;
  z-index: 10;
  padding: 7rem 0 4rem;
  color: #fff;
}

.er-overlay-page__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 3rem;
}

.er-overlay-page__inner--narrow {
  max-width: 48rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.er-glass-card {
  margin-top: 1rem;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
  .er-glass-card {
    padding: 3rem 2.5rem;
  }
}

.er-glass-card h1,
.er-glass-card h2 {
  margin: 0;
  color: #fff;
}

.er-glass-card h1 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.er-glass-card > p,
.er-glass-card h3 {
  color: rgba(255, 255, 255, 0.9);
}

.er-contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .er-contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
  }
}

.er-contact-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.er-contact-meta h3 {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.er-contact-meta p {
  margin: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.er-contact-meta a {
  color: #fff;
}

.er-link-underline {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.er-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.er-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #fff;
}

.er-form input,
.er-form textarea {
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  font: inherit;
  color: #09090b;
  background: #fff;
}

.er-form-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.er-form-success {
  color: #bbf7d0;
}

.er-form-error {
  color: #fecaca;
}

/* —— Legal prose —— */
.er-prose {
  margin-top: 3rem;
}

.er-prose p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: #52525b;
}


.er-prose h2 {
  margin: 3rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.er-legal-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e4e4e7;
  font-size: 0.875rem;
  color: #71717a;
}


.er-legal-footer a {
  font-weight: 500;
  text-decoration: underline;
}

/* Overlay pages: keep footer above bg */
.er-overlay-page ~ .site-footer,
body:has(.er-page-bg) .site-footer {
  position: relative;
  z-index: 10;
}

/* —— Homepage redesign —— */
.er-home {
  background: #fff;
}


.er-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--design-accent);
}

.er-eyebrow--center {
  text-align: center;
}

.er-text-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3f3f46;
  white-space: nowrap;
}


.er-text-link:hover {
  color: #09090b;
}


.er-quote {
  padding: 5rem 0;
  background: #fff;
}


.er-container--quote {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.er-quote__text {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.45;
  color: #18181b;
  text-wrap: pretty;
}


.er-quote__accent {
  color: var(--design-accent);
  font-style: italic;
  font-weight: 600;
}

.er-stats {
  padding: 4.5rem 0;
  background: #f4f4f5;
}


.er-stats h2 {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.er-stats__grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .er-stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.er-stats__number {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #09090b;
}


.er-stats__label {
  margin: 0.75rem 0 0;
  max-width: 18rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #52525b;
}


.er-stats__source {
  margin: 2rem 0 0;
  font-size: 0.8125rem;
  color: #71717a;
}

.er-latest {
  padding: 5rem 0;
}

.er-latest .er-section-head {
  align-items: flex-end;
  margin-bottom: 2rem;
}

.er-latest h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.er-latest__grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .er-latest__grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.er-latest__featured {
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #18181b;
  color: #fff;
}

.er-latest__featured-media {
  flex: 1;
  min-height: 16rem;
  background: #27272a;
}

.er-latest__featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-latest__featured-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.er-latest__featured-body h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.er-latest__side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.er-latest__card {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: center;
  flex: 1;
  min-height: 8.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  background: #fff;
}


.er-latest__card-media {
  height: 100%;
  min-height: 8.5rem;
  background: #e4e4e7;
}


.er-latest__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.er-latest__card-body {
  padding-right: 1rem;
}

.er-latest__card-body h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.er-latest__card--placeholder {
  grid-template-columns: 1fr;
  padding: 1.25rem;
}

.er-latest__card--placeholder p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #71717a;
}

.er-donate-band {
  padding: 1.5rem 0 5rem;
}

.er-donate-band__inner {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 1.5rem;
  border-radius: 1.25rem;
  background: #f4f4f5;
}


@media (min-width: 640px) {
  .er-donate-band__inner {
    padding: 3rem;
  }
}

@media (min-width: 1024px) {
  .er-donate-band__inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
  }
}

.er-donate-band__copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.er-donate-band__copy > p:last-child {
  margin: 1rem 0 0;
  max-width: 32rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #52525b;
}


.er-donate-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}


.er-donate-card__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 9999px;
  background: #f4f4f5;
}


.er-donate-card__tabs button {
  height: 2.5rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: #52525b;
  cursor: pointer;
}

.er-donate-card__tabs button.is-active {
  background: #fff;
  color: #09090b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}


.er-donate-card__form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.er-donate-card__amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.er-donate-card__amounts label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid #e4e4e7;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}


.er-donate-card__amounts label.is-selected {
  border-color: var(--design-accent);
  background: rgba(33, 80, 175, 0.12);
}

.er-donate-card__amounts input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.er-donate-card__custom {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #71717a;
}

.er-donate-card__custom-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.75rem;
  padding: 0 0.875rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  background: #fff;
  color: #09090b;
}


.er-donate-card__custom-field input {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  outline: none;
}

.er-donate-card__submit {
  width: 100%;
  height: 3rem;
}

.er-donate-card__more {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #52525b;
}


.er-ways {
  padding: 2rem 0 5rem;
}

.er-ways__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.er-ways__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .er-ways__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.er-way-card {
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}


.er-way-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(33, 80, 175, 0.15);
  color: var(--design-accent);
}

.er-way-card h3 {
  margin: 1.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.er-way-card p {
  margin: 0.75rem 0 0;
  font-size: 0.975rem;
  line-height: 1.6;
  color: #52525b;
}


.er-way-card a {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #09090b;
}


.er-way-card a:hover {
  color: var(--design-accent);
}

.er-instagram {
  padding: 0 0 5rem;
}

.er-instagram .er-section-head {
  margin-bottom: 1.5rem;
}

.er-instagram h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
}

.er-instagram__feed {
  width: 100%;
  min-height: 14rem;
  border-radius: 1rem;
  background: #18181b;
}

@media (min-width: 768px) {
  .er-instagram__feed {
    min-height: 18rem;
  }
}

/* —— Homepage: direct counterpart of src/app/page.tsx —— */
body.home {
  background: var(--design-page-bg);
}

body.home .er-hero__frame,
body.home .er-hero--home .er-hero__frame {
  height: 60vh;
  min-height: 400px;
}

body.home .er-hero__scrim {
  background: linear-gradient(to top, rgba(9, 9, 11, 0.70), rgba(9, 9, 11, 0.30) 48%, transparent);
}

.er-home-content {
  width: 100%;
  padding: 3rem 1.5rem 5rem;
}

@media (min-width: 640px) {
  .er-home-content { padding: 4rem 2rem 5rem; }
}

.er-home-intro h1 {
  max-width: none;
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #09090b;
}

@media (min-width: 640px) {
  .er-home-intro h1 { font-size: 3rem; }
}

.er-home-intro p,
.er-home-panel p {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #09090b;
}

.er-home-intro__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .er-home-intro__actions { flex-direction: row; align-items: center; }
}

.er-home-latest,
.er-home-panel,
.er-home-mission { margin-top: 3rem; }

@media (min-width: 640px) {
  .er-home-latest,
  .er-home-panel,
  .er-home-mission { margin-top: 3.5rem; }
}

.er-home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.er-home-section-head h2,
.er-home-panel h2,
.er-home-mission h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #09090b;
}

.er-home-section-head > a:not(.btn-accent-filled) {
  flex: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3f3f46;
  white-space: nowrap;
}

.er-home-post {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #27272a;
  color: #fff;
}

.er-home-post--featured {
  margin-top: 2.5rem;
  aspect-ratio: 3 / 2;
}

@media (min-width: 640px) {
  .er-home-post--featured { aspect-ratio: 2.1 / 1; }
}

@media (min-width: 1024px) {
  .er-home-post--featured { aspect-ratio: 5 / 2; }
}

.er-home-post > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.er-home-post--featured > img { transition-duration: 0.7s; object-position: center 15%; }
.er-home-post:hover > img { transform: scale(1.05); }
.er-home-post--featured:hover > img { transform: scale(1.03); }

.er-home-post__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .2), transparent);
}

@media (min-width: 640px) {
  .er-home-post__overlay { padding: 1.5rem; }
}

.er-home-post--featured .er-home-post__overlay { padding: 1.5rem; }
@media (min-width: 640px) { .er-home-post--featured .er-home-post__overlay { padding: 2rem; } }
@media (min-width: 1024px) { .er-home-post--featured .er-home-post__overlay { padding: 2.5rem; } }

.er-home-post h3 {
  max-width: 42rem;
  margin: 0;
  color: #fff;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.375;
  letter-spacing: -0.025em;
}

.er-home-post--featured h3 { font-size: clamp(1.2rem, 2.8vw, 1.65rem); line-height: 1.25; }
.er-home-post span { display: inline-flex; gap: .375rem; margin-top: .75rem; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.9); }
.er-home-post b { font-size: 1rem; transition: transform .15s ease; }
.er-home-post:hover b { transform: translateX(.25rem); }

.er-home-post-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) { .er-home-post-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .er-home-post-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.er-home-panel {
  padding: 3rem 1.5rem;
  border-radius: var(--radius-2xl);
  background: #f4f4f5;
}

@media (min-width: 640px) { .er-home-panel { padding: 4rem 2.5rem; } }
@media (min-width: 1024px) { .er-home-panel { padding-right: 3rem; padding-left: 3rem; } }

.er-home-panel p { max-width: 48rem; margin-top: 1.25rem; }

.er-home-mission {
  display: grid;
  gap: 3rem;
  padding: 0 1.5rem;
}

@media (min-width: 640px) { .er-home-mission { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .er-home-mission { grid-template-columns: 1fr 1fr; gap: 4rem; padding-right: 3rem; padding-left: 3rem; } }
.er-home-mission p { max-width: none; margin: 1rem 0 0; color: #09090b; }

.er-home-donate {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

@media (min-width: 768px) { .er-home-donate { aspect-ratio: auto; min-height: 100vh; } }
.er-home-donate__grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
.er-home-donate__grid > div { overflow: hidden; background: #27272a; }
.er-home-donate__grid img { width: 100%; height: 100%; object-fit: cover; }
.er-home-donate__grid::after { position: absolute; inset: 0; content: ""; background: rgba(0,0,0,.5); }
.er-home-donate__overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; color: #fff; }
.er-home-donate__overlay h2 { margin: 0; font-size: 3rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: #fff; }
@media (min-width: 640px) { .er-home-donate__overlay h2 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .er-home-donate__overlay h2 { font-size: 4.5rem; } }
.er-home-donate__overlay em { color: var(--design-accent); font-style: normal; }
.er-home-donate__overlay p { max-width: 36rem; margin: 1.5rem 0 0; font-size: 1.5rem; line-height: 1.5; color: rgba(255,255,255,.95); }
@media (min-width: 640px) { .er-home-donate__overlay p { font-size: 1.875rem; } }
.er-home-donate__overlay > div { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .er-home-donate__overlay > div { flex-direction: row; gap: 1rem; } }
.er-home-donate__overlay .btn-accent-filled,
.er-home-donate__overlay .btn-outline-light { height: 3rem; padding: 0 2rem; font-weight: 600; }

.er-home-instagram { padding: 3rem 1.5rem 5rem; }
@media (min-width: 640px) { .er-home-instagram { padding: 4rem 2rem 5rem; } }
.er-home-instagram .er-home-section-head p { margin: .5rem 0 0; color: #52525b; }
.er-home-instagram .btn-accent-filled { flex: none; }
.er-home-instagram__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 1024px) { .er-home-instagram__grid { grid-template-columns: repeat(4, 1fr); } }
.er-home-instagram__grid a { display: block; aspect-ratio: 1; overflow: hidden; background: #f4f4f5; }
.er-home-instagram__grid img { width: 100%; height: 100%; object-fit: cover; }

/* —— Footer: direct counterpart of the live dev Next.js footer —— */
.site-footer {
  margin-top: auto;
  padding: 4rem 0 2rem;
  background: #000;
  color: #fff;
  font-size: 1rem;
}

@media (min-width: 640px) { .site-footer { padding: 5rem 0 2.5rem; } }

.site-footer__top {
  display: grid;
  width: 100%;
  gap: 3rem;
  padding: 0 1.5rem;
}

@media (min-width: 640px) { .site-footer__top { padding: 0 2rem; } }
@media (min-width: 1280px) { .site-footer__top { grid-template-columns: 1.15fr 1.85fr; gap: 5rem; } }

.site-footer__intro {
  display: flex;
  max-width: 28rem;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer__logo { display: inline-block; width: fit-content; }
.site-footer__logo img { display: block; width: auto; height: 2.25rem; }
@media (min-width: 640px) { .site-footer__logo img { height: 2.5rem; } }
.site-footer__intro p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 1.1rem; line-height: 2rem; }

.site-footer__nav {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 2.5rem;
}

@media (min-width: 640px) { .site-footer__nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .site-footer__nav { grid-template-columns: repeat(3, 1fr); column-gap: 5rem; } }

.site-footer__links,
.site-footer__partner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer__links > p,
.site-footer__partner > p {
  margin: 0 0 .25rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer__links a { color: rgba(255,255,255,.62); transition: color .15s ease; }
.site-footer__links a:hover { color: #fff; }
.site-footer__partner { grid-column: span 1; }
@media (min-width: 640px) { .site-footer__partner { grid-column: span 2; } }
@media (min-width: 1280px) { .site-footer__partner { grid-column: span 1; justify-self: start; } }
.site-footer__partner a { display: inline-flex; width: fit-content; align-items: center; opacity: .8; transition: opacity .15s ease; }
.site-footer__partner a:hover { opacity: 1; }
.site-footer__partner img { display: block; width: auto; height: 3.5rem; max-width: none; }

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.12);
}

@media (min-width: 640px) { .site-footer__bottom { padding-right: 2rem; padding-left: 2rem; } }
@media (min-width: 1024px) { .site-footer__bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.site-footer__bottom > p { margin: 0; color: rgba(255,255,255,.62); }
.site-footer__social { display: flex; align-items: center; gap: 1rem; }
.site-footer__social a { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 9999px; color: #fff; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.site-footer__social a:hover { border-color: var(--design-accent); background: var(--design-accent); color: #fff; }
.site-footer__social svg { width: 1.25rem; height: 1.25rem; }

/* —— Current dev homepage counterpart —— */
body.home .er-hero--current .er-hero__frame { height: 100vh; min-height: 400px; }
.er-hero__media--carousel .er-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.er-hero__media--carousel .er-hero__slide.is-active { opacity: 1; }
.er-current-home { background: var(--design-page-bg); color: #241f1b; }
.er-current-inner { width: 100%; max-width: 80rem; margin: 0 auto; }
.er-current-intro { padding: 6rem 1.5rem 0; }
.er-current-intro > div { max-width: 72rem; margin: 0 auto; text-align: center; }
.er-current-intro p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.22; letter-spacing: -.03em; }
.er-current-intro em { color: var(--design-accent); }
.er-current-stats { margin-top: 5rem; padding: 4.5rem 1.5rem 5rem; background: #241f1b; color: #fff; }
.er-current-eyebrow { display: inline-flex; align-items: center; gap: .75rem; margin: 0; color: var(--design-accent); font-size: .75rem; font-weight: 600; letter-spacing: .22em; line-height: 1; text-transform: uppercase; }
.er-current-eyebrow::before { width: 1.75rem; height: 1px; content: ""; background: currentColor; }
.er-current-stats h2, .er-current-latest-head h2, .er-current-donate h2, .er-current-ways-head h2, .er-current-instagram-head h2 { margin: 1rem 0 0; font-size: clamp(1.875rem, 4vw, 3.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
.er-current-stats h2 { max-width: 56rem; color: #fff; }
.er-current-stats__lead { max-width: 48rem; margin: 1.25rem 0 0; color: #d7cfc8; font-size: 1.125rem; line-height: 2rem; }
.er-current-stats__grid { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
.er-current-stats__grid > div { padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); }
.er-current-stats__grid strong { font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -.025em; }
.er-current-stats__grid p { max-width: 18rem; margin: 1rem 0 0; color: #d4d4d8; line-height: 1.75rem; }
.er-current-section { padding: 5rem 1.5rem; }
.er-current-section--compact { padding-top: 0; }
.er-current-latest-head { display: flex; flex-direction: column; gap: 1.5rem; }
.er-current-latest-head h2 { max-width: 50rem; }
.er-current-latest-head > a { color: #6a5f55; font-size: 1.125rem; }
.er-current-posts { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.er-current-post { display: block; color: #241f1b; }
.er-current-post > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.er-current-post:hover > img { transform: scale(1.03); }
.er-current-post > div { margin-top: 1rem; }
.er-current-post h3 { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.er-current-post--featured h3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); }
.er-current-post span { display: inline-block; margin-top: .5rem; color: #6a5f55; font-size: 1rem; font-weight: 500; }
.er-current-donate { display: grid; gap: 2.5rem; max-width: 80rem; margin: 0 auto; padding: 2.5rem 1.5rem; border-radius: 2.25rem; background: #eeeae6; box-shadow: 0 28px 80px -52px rgba(36,31,27,.45); }
.er-current-donate > div:first-child > p:last-child { margin: 1.5rem 0 0; color: #6a5f55; font-size: 1.125rem; line-height: 2rem; }
.er-current-donate__card { padding: 1.5rem; border: 1px solid #d7cfc8; border-radius: 2rem; background: #fff; box-shadow: 0 26px 70px -46px rgba(36,31,27,.35); }
.er-current-tabs { display: inline-flex; padding: .25rem; border-radius: 9999px; background: #eeeae6; }
.er-current-tabs span { padding: .75rem 1.75rem; color: #71717a; font-size: .875rem; font-weight: 600; }
.er-current-tabs span:first-child { border-radius: 9999px; background: #fff; color: #09090b; box-shadow: 0 1px 6px rgba(36,31,27,.12); }
.er-current-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 2rem; }
.er-current-amounts span { padding: 1.25rem .5rem; border: 1px solid #d7cfc8; border-radius: 1.25rem; text-align: center; font-size: 1.4rem; font-weight: 600; }
.er-current-donate__card > p { margin: 2rem 0; padding: 1.25rem; border-radius: 1.5rem; background: #eeeae6; color: #6a5f55; line-height: 2rem; }
.er-current-donate__card a { width: 100%; height: 3.5rem; margin-top: 1rem; font-size: 1rem; }
.er-current-donate__card .btn-outline { border-color: #5f5a54; }
.er-current-ways-head { max-width: 48rem; margin: 0 auto; text-align: center; }
.er-current-ways { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.er-current-ways a { display: flex; min-height: 22rem; flex-direction: column; padding: 2rem 1.75rem; border: 1px solid #d7cfc8; border-radius: 2rem; background: #fff; color: #241f1b; transition: border-color .15s ease; }
.er-current-ways a:hover { border-color: var(--design-accent); }
.er-current-ways i { display: flex; width: 3.5rem; height: 3.5rem; align-items: center; justify-content: center; margin-bottom: 2rem; border-radius: 1rem; background: #eeeae6; color: var(--design-accent); font-size: 1.75rem; font-style: normal; }
.er-current-ways h3 { margin: 0; font-size: 1.5rem; }
.er-current-ways p { margin: 1rem 0 0; color: #6a5f55; font-size: 1.125rem; line-height: 2rem; }
.er-current-ways span { margin-top: auto; padding-top: 2rem; color: var(--design-accent); font-size: 1.125rem; }
.er-current-instagram { padding-bottom: 5rem; }
.er-current-instagram-head { display: flex; flex-direction: column; gap: 1rem; }
.er-current-instagram-head p { margin: 0.5rem 0 0; color: #52525b; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.er-current-instagram-head .btn-accent-filled { width: fit-content; height: 3rem; font-weight: 600; }
.er-current-instagram-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem; }
.er-current-instagram-grid a,
.er-current-instagram-grid button { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; background: #f4f4f5; cursor: pointer; }
.er-current-instagram-grid img,
.er-current-instagram-grid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.er-current-empty { margin-top: 2.5rem; padding: 1.7rem; border: 1px solid #e4e4e7; border-radius: .5rem; color: #52525b; text-align: center; }
.er-current-empty p { max-width: 34rem; margin: 0 auto; }
.er-current-empty a { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--brand-blue); font-size: .82rem; font-weight: 700; }
.er-current-empty a span { transition: transform .2s ease; }
.er-current-empty a:hover span { transform: translateX(.2rem); }
@media (min-width: 640px) { .er-current-intro { padding-right: 2rem; padding-left: 2rem; } .er-current-stats, .er-current-section { padding-right: 2rem; padding-left: 2rem; } .er-current-stats { padding-top: 5rem; } .er-current-eyebrow { font-size: .875rem; } .er-current-donate { padding: 3rem 2.5rem; } }
@media (min-width: 768px) { .er-current-stats__grid { grid-template-columns: repeat(3, 1fr); } .er-current-stats__grid > div { padding-top: 0; border-top: 0; } }
@media (min-width: 1024px) { .er-current-latest-head, .er-current-instagram-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } .er-current-posts { grid-template-columns: 1.55fr 1fr 1fr; gap: 2rem; } .er-current-donate { grid-template-columns: 1.08fr .92fr; gap: 4rem; padding-right: 4rem; padding-left: 4rem; } .er-current-ways { grid-template-columns: repeat(3, 1fr); } .er-current-instagram-grid { grid-template-columns: repeat(4, 1fr); } }

/* —— Donate page —— */
.er-hero--donate .er-hero__frame {
  height: min(88vh, 780px);
  min-height: 520px;
}

.er-hero--donate .er-hero__content {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 6rem;
}

.er-hero--donate .er-hero__copy {
  max-width: 38rem;
}

.er-hero--donate .er-hero__copy h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}

.er-hero__kicker {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.er-donate-page {
  background: #fff;
  color: #18181b;
}

.er-donate-page__main {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}

@media (min-width: 640px) {
  .er-donate-page__main {
    padding: 5.5rem 2rem 2.5rem;
  }
}

#gift {
  scroll-margin-top: 5.5rem;
}

.er-donate-page__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .er-donate-page__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4.5rem;
    align-items: start;
  }
}

.er-donate-page__copy h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #18181b;
}

.er-donate-page__copy > p {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #3f3f46;
}

.er-donate-focus {
  margin: 2.5rem 0 0;
}

.er-donate-focus > div {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid #e4e4e7;
}

@media (min-width: 640px) {
  .er-donate-focus > div {
    grid-template-columns: 11rem 1fr;
    gap: 1.75rem;
    align-items: baseline;
  }
}

.er-donate-focus dt {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--design-accent);
}

.er-donate-focus dd {
  margin: 0;
  color: #3f3f46;
  font-size: 1rem;
  line-height: 1.65;
}

.er-donate-page__form {
  min-width: 0;
}

@media (min-width: 1024px) {
  .er-donate-page__form {
    position: sticky;
    top: 5.5rem;
  }
}

.er-donate-card--page {
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid #ece7e1;
  box-shadow: 0 24px 60px -28px rgba(24, 24, 27, 0.28);
}

@media (min-width: 640px) {
  .er-donate-card--page {
    padding: 2rem 1.75rem 1.75rem;
  }
}

.er-donate-card--page h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #18181b;
}

.er-donate-card--page > p {
  margin: 0.65rem 0 0;
  color: #52525b;
  font-size: 0.975rem;
  line-height: 1.6;
}

.er-donate-card--page .er-donate-card__form {
  margin-top: 1.5rem;
  gap: 1.15rem;
}

.er-donate-card--page .er-donate-card__amounts {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .er-donate-card--page .er-donate-card__amounts {
    grid-template-columns: repeat(4, 1fr);
  }
}

.er-donate-card--page .er-donate-card__amounts label {
  height: 3.15rem;
  border-radius: 0.65rem;
  font-size: 1.05rem;
}

.er-donate-card--page .er-donate-card__amounts label.is-selected {
  border-color: var(--design-accent);
  background: var(--design-accent);
  color: var(--design-accent-foreground);
}

.er-donate-card--page .er-donate-card__custom {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #71717a;
}

.er-donate-card--page .er-donate-card__custom-field {
  height: 3.15rem;
  margin-top: 0.4rem;
  border-radius: 0.65rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.er-donate-card__impact {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.er-donate-card__impact::before {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.4rem;
  border-radius: 9999px;
  background: var(--design-accent);
}

.er-donate-card--page .er-donate-card__submit {
  height: 3.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.er-donate-card__or {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.15rem 0 0;
  color: #a1a1aa;
  font-size: 0.8125rem;
}

.er-donate-card__or::before,
.er-donate-card__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4e4e7;
}

.er-donate-info {
  display: grid;
  gap: 1rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .er-donate-info {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.er-donate-info article {
  padding: 1.5rem 1.6rem;
  border-radius: 1rem;
  background: #f4f4f5;
}

.er-donate-info h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #18181b;
}

.er-donate-info p {
  margin: 0.35rem 0 0;
  color: #3f3f46;
  font-size: 0.975rem;
  line-height: 1.6;
}

.er-donate-info p:first-of-type {
  margin-top: 0;
}

.er-donate-info span {
  color: #71717a;
}

.er-donate-info a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #18181b;
}

.er-donate-info a:hover {
  color: var(--design-accent);
}

.er-donate-ig-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  margin-top: 2.5rem;
  border-radius: 1rem;
  background: #18181b;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

@media (min-width: 768px) {
  .er-donate-ig-empty {
    min-height: 18rem;
  }
}

.er-donate-card__error {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.875rem;
}

.er-donate-card__notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #f4f4f5;
  color: #3f3f46;
  font-size: 0.875rem;
}

.er-donate-card__currency {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #71717a;
}

.er-donate-card__currency select {
  height: 3.15rem;
  padding: 0 0.875rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.65rem;
  background: #fff;
  color: #18181b;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.er-donate-paypal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.er-donate-paypal[hidden] {
  display: none;
}

.er-paypal-subscribe {
  width: 100%;
  height: 3rem;
  border: 0;
  border-radius: 0.5rem;
  background: #ffc439;
  color: #003087;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.er-donate-success {
  padding: 3rem 1.5rem;
  border: 1px solid #e4e4e7;
  border-radius: 1.5rem;
  background: #fff;
  text-align: center;
}

.er-donate-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  border-radius: 9999px;
  background: #dcfce7;
  color: #16a34a;
}

.er-donate-success h1 {
  margin: 0;
  font-size: 1.875rem;
}

.er-donate-success > p {
  margin: 1rem 0 0;
  font-size: 1.125rem;
}

.er-donate-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.er-ig-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
}

.er-ig-lightbox[hidden] {
  display: none;
}

.er-ig-lightbox__close,
.er-ig-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.er-ig-lightbox__close:hover,
.er-ig-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.er-ig-lightbox__close {
  top: 1rem;
  right: 1rem;
}

.er-ig-lightbox__nav--prev {
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
}

.er-ig-lightbox__nav--next {
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
}

.er-ig-lightbox__body {
  display: flex;
  max-width: 72rem;
  max-height: 90vh;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.er-ig-lightbox__media {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.er-ig-lightbox__media img,
.er-ig-lightbox__media video {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.er-ig-lightbox__meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
}

.er-ig-lightbox__meta p {
  margin: 0;
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.er-ig-lightbox__meta a {
  align-self: flex-start;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-underline-offset: 2px;
}

.er-ig-lightbox__meta a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .er-ig-lightbox__nav--prev { left: 1rem; }
  .er-ig-lightbox__nav--next { right: 1rem; }
  .er-ig-lightbox__body { flex-direction: row; gap: 2rem; }
  .er-ig-lightbox__meta {
    width: 18rem;
    flex-shrink: 0;
    padding: 0;
  }
  .er-ig-lightbox__meta p {
    display: block;
    max-height: 70vh;
    overflow: auto;
    -webkit-line-clamp: unset;
  }
}

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

/* —— About page —— */
.er-hero--about .er-hero__frame {
  height: min(88vh, 820px);
  min-height: 520px;
}

.er-hero--about .er-hero__content {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 4.5rem;
}

.er-hero--about .er-hero__copy {
  max-width: 20ch;
}

.er-hero--about .er-hero__copy h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
}

.er-about-page {
  background: #fff;
  color: #18181b;
}

.er-about-lede {
  padding: 5rem 1.5rem 2rem;
}

.er-about-lede__inner {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
}

.er-about-lede__title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.er-about-lede__title em {
  color: var(--design-accent);
  font-style: normal;
}

.er-about-lede__inner > p + p {
  margin: 1.5rem 0 0;
  color: #52525b;
  font-size: 1.05rem;
  line-height: 1.75;
}

.er-about-story,
.er-about-mission,
.er-about-panel,
.er-about-spotlights,
.er-about-page .er-board--council,
.er-about-cta {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.er-about-story {
  display: grid;
  gap: 2.5rem;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.er-about-story__media img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
}

.er-about-story__copy h2,
.er-about-mission__copy h2,
.er-about-panel h2,
.er-about-page .er-board--council h2,
.er-about-cta h2 {
  margin: 0.75rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.er-about-story__copy p,
.er-about-mission__copy p,
.er-about-panel p {
  margin: 1.15rem 0 0;
  color: #52525b;
  font-size: 1.05rem;
  line-height: 1.75;
}

.er-about-mission {
  display: grid;
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.er-about-mission__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 0.65rem;
  background: #18181b;
  color: #fff;
  font-weight: 600;
}

.er-about-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.er-about-checks li {
  position: relative;
  padding: 1.15rem 0 1.15rem 2.5rem;
  border-top: 1px solid #ececec;
  color: #3f3f46;
  line-height: 1.55;
}

.er-about-checks li:last-child {
  border-bottom: 1px solid #ececec;
}

.er-about-checks li::before {
  position: absolute;
  top: 1.35rem;
  left: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  background: var(--design-accent);
  content: "";
}

.er-about-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: #f4f4f5;
}

.er-about-spotlights {
  padding-top: 3rem;
}

.er-about-page .er-board--spotlight {
  margin-top: 0;
}

.er-about-page .er-board--council {
  margin-top: 4rem;
  text-align: center;
}

.er-about-page .er-board--council .er-board-grid {
  text-align: left;
}

.er-board-grid--spotlight {
  grid-template-columns: 1fr;
}

.er-board-grid--council {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.er-board-grid--council .er-board-card {
  width: min(100%, 20rem);
}

.er-about-page .er-board-card p,
.er-about-page .er-section p.er-board-card__bio,
.er-about-page .er-section p.er-board-card__role {
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

.er-about-partners {
  margin-top: 5rem;
  padding: 4rem 1.5rem;
  background: #f4f4f5;
}

.er-about-partners__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.er-about-partners h2 {
  max-width: 28rem;
  margin: 0 0 2rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
}

.er-about-partners__grid {
  display: grid;
  gap: 1rem;
}

.er-about-partners__grid a {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #fff;
  color: #18181b;
}

.er-about-partners__grid img {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}

.er-about-partners__grid p {
  margin: 1.5rem 0 0;
  font-weight: 600;
  line-height: 1.4;
}

.er-about-cta {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.er-about-cta p {
  margin: 1rem 0 0;
  color: #52525b;
}

.er-about-cta > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.er-about-cta__text {
  color: #18181b;
  font-weight: 600;
}

.er-about-find {
  padding: 0 1.5rem 5rem;
}

.er-about-find__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background: #18181b;
  color: #fff;
}

.er-about-find p {
  margin: 0;
  font-weight: 600;
}

.er-about-find form {
  display: flex;
  gap: 0.6rem;
}

.er-about-find input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.55rem;
  background: #2a2a2e;
  color: #fff;
}

.er-about-find button {
  height: 2.75rem;
}

@media (min-width: 768px) {
  .er-about-story,
  .er-about-mission,
  .er-about-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
  }

  .er-board-grid--spotlight {
    grid-template-columns: 1fr 1fr;
  }

  .er-about-partners__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .er-about-find__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 1rem 1.5rem;
  }

  .er-about-find form {
    width: min(28rem, 50%);
  }
}

@media (min-width: 1024px) {
  .er-about-lede,
  .er-about-story,
  .er-about-mission,
  .er-about-spotlights,
  .er-about-page .er-board--council,
  .er-about-cta,
  .er-about-find,
  .er-about-partners {
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

/* —— Contact page —— */
.er-hero--contact .er-hero__frame {
  height: min(88vh, 780px);
  min-height: 520px;
}

.er-hero--contact .er-hero__content {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 6rem;
}

.er-hero--contact .er-hero__copy {
  max-width: 36rem;
}

.er-hero--contact .er-breadcrumbs {
  margin-bottom: 1rem;
}

.er-hero--contact .er-hero__copy h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.er-contact-page {
  background: #fff;
  color: #18181b;
}

.er-contact-page__main {
  display: grid;
  gap: 3rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 2rem;
}

#contact {
  scroll-margin-top: 5.5rem;
}

.er-contact-page__copy h2,
.er-contact-card h2 {
  margin: 0.85rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #18181b;
}

.er-contact-page__copy > p,
.er-contact-card > p {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: #52525b;
  font-size: 1.05rem;
  line-height: 1.75;
}

.er-contact-list {
  margin: 2.25rem 0 0;
}

.er-contact-list > div {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 0;
  border-top: 1px solid #ececec;
}

.er-contact-list > div:last-child {
  border-bottom: 1px solid #ececec;
}

.er-contact-list dt {
  color: var(--design-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.er-contact-list dd {
  margin: 0;
  color: #18181b;
  font-weight: 500;
  line-height: 1.55;
}

.er-contact-list a {
  color: inherit;
}

.er-contact-list a:hover {
  color: var(--design-accent);
}

.er-contact-anbi {
  display: inline-block;
  margin-top: 1.5rem;
  color: #18181b;
  font-weight: 600;
}

.er-contact-anbi:hover {
  color: var(--design-accent);
}

.er-contact-card {
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #ece7e1;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(24, 24, 27, 0.28);
}

.er-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.er-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.er-contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.er-contact-form span {
  color: #71717a;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.er-contact-form input,
.er-contact-form textarea {
  width: 100%;
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: #18181b;
  background: #fff;
}

.er-contact-form input:focus,
.er-contact-form textarea:focus {
  outline: none;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, 0.08);
}

.er-contact-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.er-contact-form .btn-accent-filled {
  width: 100%;
  height: 3rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

.er-contact-form__note {
  margin: 1rem 0 0;
  color: #71717a;
  font-size: 0.875rem;
  text-align: center;
}

.er-contact-card .er-form-success,
.er-contact-card .er-form-error {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.er-contact-card .er-form-success {
  background: #ecfdf3;
  color: #166534;
}

.er-contact-card .er-form-error {
  background: #fef2f2;
  color: #991b1b;
}

@media (min-width: 640px) {
  .er-contact-page__main {
    padding: 5.5rem 2rem 2.5rem;
  }

  .er-contact-card {
    padding: 2.15rem 1.85rem 1.85rem;
  }

  .er-contact-list > div {
    grid-template-columns: 8.5rem 1fr;
    gap: 1.25rem;
    align-items: baseline;
  }
}

@media (min-width: 1024px) {
  .er-contact-page__main {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4.5rem;
    align-items: start;
  }

  .er-contact-page__form {
    position: sticky;
    top: 5.5rem;
  }
}

/* —— 2026 editorial homepage —— */
.er-reference-home {
  --er-blue: #1667a8;
  --er-ink: #171717;
  background: #fff;
  color: var(--er-ink);
}

.er-reference-shell {
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
}

.er-reference-home h2,
.er-hero--reference h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

.er-reference-kicker {
  margin: 0;
  color: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.er-text-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--er-blue);
  font-size: .82rem;
  font-weight: 600;
}

.er-text-link span { transition: transform .2s ease; }
.er-text-link:hover span { transform: translateX(.2rem); }

.er-pill-button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 0 1.8rem;
  border: 1px solid var(--er-blue);
  border-radius: 999px;
  background: var(--er-blue);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.er-pill-button:hover { background: #0e568f; border-color: #0e568f; }

body.home .site-header {
  position: absolute;
  background: linear-gradient(to bottom, rgba(0,0,0,.48), transparent);
}

body.home .site-header__bar {
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
  padding: 1.25rem 0;
}

body.home .site-logo img { height: 2.6rem; }
body.home .nav-desktop { gap: 1.8rem; }
body.home .nav-desktop a,
body.home .nav-desktop span { font-size: .76rem; font-weight: 400; }
.er-header-donate {
  display: inline-flex;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.75rem;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  color: #fff;
  font-size: .76rem;
}
.er-header-search { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; color: #fff; }
.er-header-search svg { width: 1.2rem; height: 1.2rem; }

body.home .er-hero--reference .er-hero__frame {
  height: min(76vw, 50rem);
  min-height: 43rem;
}

.er-hero--reference .er-hero__scrim {
  background: linear-gradient(90deg, rgba(4,8,11,.83) 0%, rgba(4,8,11,.55) 43%, rgba(4,8,11,.18) 72%, rgba(4,8,11,.34) 100%), linear-gradient(to top, rgba(0,0,0,.34), transparent 52%);
}

.er-hero-reference__content {
  position: relative;
  z-index: 2;
  height: 100%;
  color: #fff;
}

.er-hero-reference__copy {
  position: absolute;
  top: 29%;
  left: 0;
  width: min(42rem, 58%);
}

.er-hero-reference__copy h1 {
  margin: 1.1rem 0 0;
  color: #fff;
  font-size: clamp(3.1rem, 5.15vw, 5.1rem);
  line-height: 1.03;
}

.er-hero-reference__copy > p:last-of-type {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  line-height: 1.65;
}

.er-hero-reference__actions { display: flex; gap: 1rem; margin-top: 2.2rem; }
.er-hero-reference__actions .er-pill-button { min-width: 9.4rem; }
.er-pill-button--ghost { border-color: rgba(255,255,255,.78); background: transparent; }
.er-pill-button--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.er-hero-reference__promise {
  position: absolute;
  bottom: 4.1rem;
  left: 0;
  margin: 0;
  padding-left: 2.1rem;
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.65;
  text-transform: uppercase;
}
.er-hero-reference__promise::before { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; content: ""; background: #fff; }
.er-hero-reference__credit { position: absolute; right: 0; bottom: 3.7rem; margin: 0; color: rgba(255,255,255,.74); font-size: .62rem; line-height: 1.5; }

.er-impact { padding: 3.25rem 0; background: #fff; }
.er-impact__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.er-impact__grid > div { padding: .4rem 2rem; text-align: center; }
.er-impact__grid > div + div { border-left: 1px solid #d7d7d7; }
.er-impact strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 500; line-height: 1; }
.er-impact span { display: block; max-width: 12rem; margin: .9rem auto 0; font-size: .63rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }

.er-purpose { display: grid; min-height: 34rem; grid-template-columns: 1fr 1fr; background: #fbfbfb; }
.er-purpose__image { min-height: 34rem; overflow: hidden; }
.er-purpose__image img { width: 100%; height: 100%; object-fit: cover; }
.er-purpose__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 39rem; padding: 4.5rem clamp(3rem, 7vw, 7.5rem); }
.er-purpose__copy h2 { margin: 1rem 0 0; font-size: clamp(3rem, 5vw, 4.8rem); line-height: .98; }
.er-purpose__copy > p:not(.er-reference-kicker) { margin: 1.6rem 0 0; font-size: .98rem; line-height: 1.65; }
.er-purpose__copy .er-text-link { margin-top: 1.6rem; }

.er-project-showcase { padding: 5.8rem 0 5.5rem; background: #fff; }
.er-reference-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.er-reference-heading h2 { margin: .85rem 0 0; font-size: clamp(2.8rem, 4.25vw, 4.2rem); line-height: 1.02; }
.er-reference-heading > .er-text-link { margin-bottom: .9rem; }
.er-project-showcase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.7rem; }
.er-project-card__media { position: relative; display: block; aspect-ratio: 1.22; overflow: hidden; background: #d7d5d1; }
.er-project-card__media::after { position: absolute; inset: 30% 0 0; content: ""; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.er-project-card__media img,
.er-project-card__fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.er-project-card__fallback { display: block; background: linear-gradient(135deg,#72787a,#23282a); }
.er-project-card:hover .er-project-card__media img { transform: scale(1.035); }
.er-project-card h3 { position: absolute; right: 1.35rem; bottom: 1.2rem; left: 1.35rem; z-index: 1; margin: 0; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 500; line-height: .98; }
.er-project-card > p { min-height: 3.2em; margin: 1.2rem 1rem .8rem; color: #3f3f3f; font-size: .78rem; line-height: 1.55; }
.er-project-card > .er-text-link { margin-left: 1rem; }

.er-vision { position: relative; min-height: 29rem; overflow: hidden; background: #dfe5e7; }
.er-vision__background { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(230,237,239,.95) 0%, rgba(230,237,239,.68) 54%, rgba(255,255,255,.9) 100%), url("https://media.everydayrefugees.org/2020/05/HOMEPAGE-04-1.jpg") center 58% / cover no-repeat; }
.er-vision__inner { position: relative; z-index: 1; display: grid; min-height: 29rem; grid-template-columns: 1fr 1fr; align-items: center; gap: 7rem; }
.er-vision blockquote { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.35rem, 2.15vw, 2.1rem); line-height: 1.35; }
.er-vision cite { display: block; margin-top: 1.35rem; font-family: var(--font-sans); font-size: .63rem; font-style: normal; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.er-vision__copy { padding-left: 3.7rem; border-left: 1px solid #777; }
.er-vision__copy h2 { margin: 1rem 0 0; font-size: clamp(2.6rem, 3.8vw, 3.7rem); line-height: 1.05; }
.er-vision__copy > p:not(.er-reference-kicker) { margin: 1.1rem 0 0; font-size: .86rem; line-height: 1.6; }
.er-vision__copy .er-text-link { margin-top: 1.25rem; }

.er-involvement { padding: 5rem 0 4.7rem; background: #fff; }
.er-involvement__heading { display: grid; grid-template-columns: 1.15fr .95fr auto; align-items: end; gap: 4rem; }
.er-involvement__heading h2 { margin: .75rem 0 0; font-size: clamp(2.7rem, 4vw, 4rem); line-height: 1; }
.er-involvement__heading > p { margin: 0 0 .25rem; font-size: .82rem; line-height: 1.65; }
.er-involvement__heading .er-pill-button { min-height: 2.75rem; margin-bottom: .2rem; }
.er-involvement__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem; }
.er-involvement__grid > a { min-height: 10.5rem; padding: 0 2.4rem; }
.er-involvement__grid > a:first-child { padding-left: 0; }
.er-involvement__grid > a + a { border-left: 1px solid #ddd; }
.er-involvement__grid svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: var(--er-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.er-involvement__grid h3 { margin: 1rem 0 .35rem; font-size: .93rem; }
.er-involvement__grid p { max-width: 12rem; margin: 0; color: #555; font-size: .72rem; line-height: 1.55; }

.er-reference-home .er-current-instagram { padding: 3.5rem 0 4.2rem; border-top: 1px solid #eee; background: #fff; }
.er-reference-home .er-current-instagram .er-current-inner { width: min(100% - 3rem, 78rem); }
.er-reference-home .er-current-instagram-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.er-reference-home .er-current-instagram-head h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.3rem, 3.4vw, 3.3rem); font-weight: 500; letter-spacing: -.03em; }
.er-reference-home .er-current-instagram-head p { margin-top: .4rem; font-size: .78rem; }
.er-reference-home .er-current-instagram-grid { grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-top: 1.7rem; }

.site-footer { padding: 4.5rem 0 0; }
.site-footer__top { width: min(100% - 3rem, 78rem); margin-inline: auto; padding: 0; grid-template-columns: 1.25fr 2fr; gap: 6rem; }
.site-footer__intro { gap: 1.5rem; }
.site-footer__intro p { font-size: .75rem; line-height: 1.7; }
.site-footer__nav { grid-template-columns: .75fr 1fr 1.4fr; gap: 3rem; }
.site-footer__links { gap: .6rem; }
.site-footer__links a { font-size: .76rem; }
.site-footer__partner { grid-column: auto; padding-left: 3rem; border-left: 1px solid rgba(255,255,255,.26); }
.site-footer__partner > p { margin-bottom: 1rem; font-size: .6rem; }
.site-footer__partner small { margin-top: 1.4rem; color: rgba(255,255,255,.48); font-size: .6rem; }
.site-footer__bottom { width: min(100% - 3rem, 78rem); margin: 2.8rem auto 0; padding: 1.7rem 0 2.5rem; }
.site-footer__bottom > p { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__social a { width: 2.2rem; height: 2.2rem; }
.site-footer__social svg { width: 1rem; height: 1rem; }

@media (max-width: 1023px) {
  body.home .site-header__bar { width: min(100% - 2rem, 78rem); }
  body.home .site-logo img { height: 2.1rem; }
  body.home .er-hero--reference .er-hero__frame { height: 46rem; min-height: 46rem; }
  .er-hero-reference__copy { top: 25%; width: min(37rem, 78%); }
  .er-purpose__copy { padding: 4rem 2.5rem; }
  .er-vision__inner { gap: 3rem; }
  .er-involvement__heading { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .er-involvement__heading .er-pill-button { justify-self: start; }
  .site-footer__top { grid-template-columns: 1fr; gap: 3.5rem; }
}

@media (max-width: 767px) {
  .er-reference-shell { width: min(100% - 2.5rem, 78rem); }
  body.home .er-hero--reference .er-hero__frame { height: 43rem; min-height: 43rem; }
  .er-hero--reference .er-hero__media img { object-position: 62% center; }
  .er-hero-reference__copy { top: 20%; width: 100%; }
  .er-hero-reference__copy h1 { font-size: clamp(2.55rem, 11vw, 3.8rem); }
  .er-hero-reference__copy > p:last-of-type { max-width: 24rem; font-size: .88rem; }
  .er-hero-reference__actions { margin-top: 1.6rem; }
  .er-hero-reference__actions .er-pill-button { min-width: auto; min-height: 2.85rem; padding: 0 1.25rem; }
  .er-hero-reference__promise { bottom: 2.5rem; }
  .er-hero-reference__credit { display: none; }
  .er-impact { padding: 2.5rem 0; }
  .er-impact__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .er-impact__grid > div { padding-inline: 1rem; }
  .er-impact__grid > div:nth-child(3) { border-left: 0; }
  .er-purpose { grid-template-columns: 1fr; }
  .er-purpose__image { min-height: 28rem; }
  .er-purpose__copy { padding: 3.5rem 1.25rem 4rem; }
  .er-purpose__copy h2 { font-size: 3.1rem; }
  .er-project-showcase { padding: 4rem 0; }
  .er-reference-heading { align-items: flex-start; flex-direction: column; }
  .er-project-showcase__grid { grid-template-columns: 1fr; }
  .er-project-card__media { aspect-ratio: 1.35; }
  .er-project-card > p { min-height: 0; }
  .er-vision__inner { grid-template-columns: 1fr; gap: 3rem; padding-block: 4rem; }
  .er-vision__copy { padding-left: 1.5rem; }
  .er-involvement { padding-block: 4rem; }
  .er-involvement__heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .er-involvement__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .er-involvement__grid > a { min-height: 9rem; padding: 0 1rem; }
  .er-involvement__grid > a:nth-child(3) { padding-left: 0; border-left: 0; }
  .er-reference-home .er-current-instagram { padding-inline: 1.25rem; }
  .er-reference-home .er-current-instagram .er-current-inner { width: 100%; }
  .er-reference-home .er-current-instagram-head { align-items: flex-start; flex-direction: column; }
  .er-reference-home .er-current-instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .er-reference-home .er-current-instagram-grid > :last-child { grid-column: span 2; aspect-ratio: 2 / 1; }
  .site-footer__top { width: min(100% - 2.5rem, 78rem); }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .site-footer__partner { grid-column: span 2; padding: 2rem 0 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
  .site-footer__bottom { width: min(100% - 2.5rem, 78rem); }
}

/* —— About page: 2026 editorial design —— */
.site-header--overlay {
  position: absolute;
  background: linear-gradient(to bottom, rgba(0,0,0,.48), transparent);
}
.site-header--overlay .site-header__bar {
  width: min(100% - 3rem, 78rem);
  margin-inline: auto;
  padding: 1.25rem 0;
}
.site-header--overlay .site-logo img { height: 2.6rem; }
.site-header--overlay .nav-desktop { gap: 1.8rem; }
.site-header--overlay .nav-desktop a,
.site-header--overlay .nav-desktop span { font-size: .76rem; font-weight: 400; }

.er-about-reference {
  --er-blue: #1667a8;
  background: #fff;
  color: #171717;
}
.er-about-reference h2,
.er-about-reference__hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
.er-about-reference__hero {
  position: relative;
  height: min(74vw, 44rem);
  min-height: 42rem;
  overflow: hidden;
  background: #111820;
  color: #fff;
}
.er-about-reference__hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.er-about-reference__hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,12,17,.92) 0%, rgba(7,12,17,.64) 42%, rgba(7,12,17,.14) 75%, rgba(7,12,17,.3) 100%), linear-gradient(to top, rgba(0,0,0,.36), transparent 50%); }
.er-about-reference__hero-inner { position: absolute; inset: 0; }
.er-about-reference__hero-copy { position: absolute; top: 25%; left: 0; width: min(34rem, 48%); }
.er-about-reference__hero-copy h1 { margin: .9rem 0 0; color: #fff; font-size: clamp(3.2rem, 5vw, 5.2rem); line-height: .98; }
.er-about-reference__hero-copy > p:last-child { margin: 1.4rem 0 0; color: rgba(255,255,255,.92); font-size: .98rem; line-height: 1.62; }
.er-about-reference__scroll { position: absolute; bottom: 2.2rem; left: 0; display: inline-flex; align-items: center; gap: .8rem; color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.er-about-reference__scroll span { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; font-size: 1rem; }
.er-about-reference__credit { position: absolute; right: 0; bottom: 2.3rem; margin: 0; color: rgba(255,255,255,.8); font-size: .62rem; line-height: 1.5; }

.er-about-reference__mission { padding: 3.8rem 0 2.8rem; }
.er-about-reference__mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.er-about-reference__mission-grid article { padding: 0 5.5rem 1.8rem 0; }
.er-about-reference__mission-grid article + article { padding-right: 0; padding-left: 5.5rem; border-left: 1px solid #9e9e9e; }
.er-about-reference__mission-grid h2 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; }
.er-about-reference__mission-grid p { max-width: 31rem; margin: 1rem 0 1.2rem; color: #595959; font-size: .91rem; line-height: 1.65; }
.er-about-reference__stats { padding-top: 2.3rem; border-top: 1px solid #d7d7d7; }

.er-about-reference__story { display: grid; min-height: 32rem; grid-template-columns: 1fr 1fr; background: #fbfbfb; }
.er-about-reference__story-image { min-height: 32rem; overflow: hidden; }
.er-about-reference__story-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.er-about-reference__story-copy { display: flex; max-width: 39rem; flex-direction: column; align-items: flex-start; justify-content: center; padding: 4rem clamp(3rem, 6.5vw, 7rem); }
.er-about-reference__story-copy .er-reference-kicker { color: #55758e; }
.er-about-reference__story-copy h2 { margin: 1rem 0 0; font-size: clamp(2.8rem, 4.4vw, 4.3rem); line-height: 1.01; }
.er-about-reference__story-copy > p:not(.er-reference-kicker) { margin: 1.25rem 0 0; font-size: .88rem; line-height: 1.65; }
.er-about-reference__story-copy .er-text-link { margin-top: 1.4rem; }

.er-about-reference__people { padding: 3.4rem 0 2.2rem; }
.er-about-reference__people--advisors { padding-top: 2rem; }
.er-about-reference__section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.7rem; }
.er-about-reference__section-head h2 { margin: 0; font-size: clamp(1.7rem, 2.5vw, 2.5rem); line-height: 1.1; }
.er-about-reference__section-head p { margin: .45rem 0 0; color: #696969; font-size: .73rem; line-height: 1.5; }
.er-about-reference__executive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem; }
.er-about-reference__advisors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2rem; }
.er-about-reference__person-image { display: block; height: 18.5rem; overflow: hidden; border-radius: .45rem; background: #e6e7e8; }
.er-about-reference__advisors-grid .er-about-reference__person-image { height: 14rem; }
.er-about-reference__person-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.er-about-reference__person-image > span { display: flex; height: 100%; align-items: center; justify-content: center; color: #8b8b8b; font-family: "Playfair Display", Georgia, serif; font-size: 4rem; }
.er-about-reference__person:hover .er-about-reference__person-image img { transform: scale(1.025); }
.er-about-reference__person h3 { margin: .75rem 0 .1rem; font-size: .83rem; font-weight: 700; line-height: 1.3; }
.er-about-reference__role { margin: 0; font-size: .68rem; font-style: italic; line-height: 1.4; }
.er-about-reference__bio { min-height: 3.8em; margin: .35rem 0 .6rem; color: #666; font-size: .69rem; line-height: 1.5; }
.er-about-reference__person > .er-text-link { margin-top: .55rem; font-size: .66rem; }

.er-about-reference__partners { padding: 2.5rem 0 4.5rem; }
.er-about-reference__partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.er-about-reference__partners-grid > a { display: flex; height: 8.5rem; align-items: center; justify-content: center; padding: 1.4rem; border: 1px solid #dedede; border-radius: .5rem; background: #fff; }
.er-about-reference__partners-grid img { max-width: 82%; max-height: 5rem; object-fit: contain; }
.er-about-reference__partner-name { max-width: 12rem; text-align: center; font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; font-weight: 500; line-height: 1.15; }
.er-about-reference__partner-more { flex-direction: column; gap: .5rem; color: #5d6870; font-size: .72rem; }
.er-about-reference__partner-more strong { color: #6e8ba0; font-size: 2rem; font-weight: 300; line-height: 1; }

.er-about-reference__cta { position: relative; min-height: 28rem; background: linear-gradient(90deg, rgba(3,8,12,.94) 0%, rgba(3,8,12,.78) 42%, rgba(3,8,12,.16) 78%), var(--er-about-cta-image) center / cover no-repeat; color: #fff; }
.er-about-reference__cta .er-reference-shell { position: relative; min-height: 28rem; }
.er-about-reference__cta-copy { position: absolute; top: 50%; left: 0; width: min(33rem, 50%); transform: translateY(-50%); }
.er-about-reference__cta-copy h2 { margin: .9rem 0 0; color: #fff; font-size: clamp(3rem, 4.7vw, 4.6rem); line-height: .98; }
.er-about-reference__cta-copy > p:not(.er-reference-kicker) { max-width: 30rem; margin: 1.25rem 0 0; color: rgba(255,255,255,.9); font-size: .9rem; line-height: 1.6; }
.er-about-reference__cta-copy > div { display: flex; gap: 1rem; margin-top: 1.8rem; }
.er-about-reference__cta-copy .er-pill-button { min-width: 9rem; min-height: 2.9rem; }

@media (max-width: 1023px) {
  .site-header--overlay .site-header__bar { width: min(100% - 2rem, 78rem); }
  .site-header--overlay .site-logo img { height: 2.1rem; }
  .er-about-reference__hero-copy { width: 60%; }
  .er-about-reference__mission-grid article { padding-right: 3rem; }
  .er-about-reference__mission-grid article + article { padding-left: 3rem; }
  .er-about-reference__story-copy { padding: 3rem; }
  .er-about-reference__person-image { height: 15rem; }
  .er-about-reference__advisors-grid { grid-template-columns: repeat(3, 1fr); }
  .er-about-reference__advisors-grid .er-about-reference__person-image { height: 16rem; }
}

@media (max-width: 767px) {
  .er-about-reference__hero { height: 43rem; min-height: 43rem; }
  .er-about-reference__hero > img { object-position: 62% center; }
  .er-about-reference__hero-copy { top: 20%; width: 100%; }
  .er-about-reference__hero-copy h1 { font-size: clamp(3rem, 13vw, 4.2rem); }
  .er-about-reference__hero-copy > p:last-child { max-width: 25rem; font-size: .84rem; }
  .er-about-reference__credit { display: none; }
  .er-about-reference__mission { padding-top: 3rem; }
  .er-about-reference__mission-grid { grid-template-columns: 1fr; }
  .er-about-reference__mission-grid article { padding: 0 0 2rem; }
  .er-about-reference__mission-grid article + article { padding: 2rem 0; border-top: 1px solid #d7d7d7; border-left: 0; }
  .er-about-reference__stats { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .er-about-reference__stats > div:nth-child(3) { border-left: 0; }
  .er-about-reference__story { grid-template-columns: 1fr; }
  .er-about-reference__story-image { min-height: 29rem; }
  .er-about-reference__story-copy { padding: 3.5rem 1.25rem; }
  .er-about-reference__section-head { align-items: flex-start; flex-direction: column; gap: .6rem; }
  .er-about-reference__executive-grid { grid-template-columns: 1fr; }
  .er-about-reference__person-image { height: min(105vw, 28rem); }
  .er-about-reference__advisors-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .er-about-reference__advisors-grid .er-about-reference__person-image { height: 13rem; }
  .er-about-reference__partners-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .er-about-reference__partners-grid > a { height: 7.5rem; }
  .er-about-reference__cta { min-height: 31rem; background-position: 65% center; }
  .er-about-reference__cta .er-reference-shell { min-height: 31rem; }
  .er-about-reference__cta-copy { width: 100%; }
  .er-about-reference__cta-copy h2 { font-size: 3.15rem; }
}

/* —— Projects archive: 2026 editorial design —— */
.er-projects-reference {
  --er-blue: #1667a8;
  background: #fff;
  color: #171717;
}
.er-projects-reference h2,
.er-projects-reference__hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.03em;
}
.er-projects-reference__hero {
  position: relative;
  height: min(57vw, 39rem);
  min-height: 35rem;
  overflow: hidden;
  background: #0d151c;
  color: #fff;
}
.er-projects-reference__hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.er-projects-reference__hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,9,14,.8) 0%, rgba(4,9,14,.48) 43%, rgba(4,9,14,.08) 75%), linear-gradient(to top, rgba(0,0,0,.72), transparent 58%); }
.er-projects-reference__hero-inner { position: absolute; inset: 0; }
.er-projects-reference__hero-inner > div { position: absolute; bottom: 3.8rem; left: 0; width: min(34rem, 48%); }
.er-projects-reference__hero h1 { margin: .85rem 0 0; color: #fff; font-size: clamp(3.2rem, 5vw, 5rem); line-height: .98; }
.er-projects-reference__hero-inner > div > p:last-child { margin: 1.3rem 0 0; color: rgba(255,255,255,.92); font-size: .98rem; line-height: 1.65; }

.er-projects-reference__archive { padding: 3.7rem 0 5.5rem; }
.er-projects-reference__toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.er-projects-reference__toolbar nav { display: flex; flex-wrap: wrap; gap: 0 2.25rem; }
.er-projects-reference__toolbar nav a { position: relative; padding: .25rem 0 1rem; color: #4b4b4b; font-size: .77rem; white-space: nowrap; }
.er-projects-reference__toolbar nav a.is-active { color: #111; font-weight: 700; }
.er-projects-reference__toolbar nav a.is-active::after { position: absolute; right: 0; bottom: 0; left: 0; height: 1px; content: ""; background: #111; }
.er-projects-reference__toolbar form { display: flex; flex: 0 0 14rem; align-items: center; gap: .7rem; padding: .15rem 0 .85rem; border-bottom: 1px solid #bfbfbf; color: #434343; }
.er-projects-reference__toolbar form svg { width: 1.15rem; height: 1.15rem; flex: none; }
.er-projects-reference__toolbar input[type="search"] { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #171717; font: inherit; font-size: .72rem; }

.er-projects-reference__featured { position: relative; display: block; min-height: 20rem; overflow: hidden; border-radius: .5rem; background: #10171d; color: #fff; }
.er-projects-reference__featured::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(5,10,14,.88), rgba(5,10,14,.38) 55%, rgba(5,10,14,.04)); }
.er-projects-reference__featured > img,
.er-projects-reference__featured > .er-projects-reference__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.er-projects-reference__featured:hover > img { transform: scale(1.02); }
.er-projects-reference__featured > div { position: relative; z-index: 1; display: flex; width: min(32rem, 55%); min-height: 20rem; flex-direction: column; justify-content: center; padding: 2.7rem; }
.er-projects-reference__featured > div > p { margin: 0; color: #9eb4c6; font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.er-projects-reference__featured h2 { margin: .8rem 0 0; color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.03; }
.er-projects-reference__featured > div > span { max-width: 23rem; margin-top: 1rem; color: rgba(255,255,255,.9); font-size: .82rem; line-height: 1.55; }
.er-projects-reference__featured > div > strong { margin-top: 1rem; font-size: .72rem; font-weight: 600; }

.er-projects-reference__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; margin-top: 2.1rem; }
.er-projects-reference__card-image { display: block; height: 12.7rem; overflow: hidden; border-radius: .45rem; background: #d8d8d8; }
.er-projects-reference__card-image img,
.er-projects-reference__card-image .er-projects-reference__fallback { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.er-projects-reference__fallback { background: linear-gradient(135deg,#66747b,#182027); }
.er-projects-reference__card:hover .er-projects-reference__card-image img { transform: scale(1.035); }
.er-projects-reference__category { margin: .85rem 0 0; color: #54748d; font-size: .62rem; font-weight: 700; letter-spacing: .13em; line-height: 1.4; text-transform: uppercase; }
.er-projects-reference__card h2 { margin: .42rem 0 0; font-size: 1.35rem; line-height: 1.1; }
.er-projects-reference__card h2 a { color: inherit; }
.er-projects-reference__card > p:not(.er-projects-reference__category) { max-width: 18rem; min-height: 3em; margin: .5rem 0 0; color: #646464; font-size: .72rem; line-height: 1.45; }
.er-projects-reference__read { display: inline-block; margin-top: .55rem; font-size: .66rem; font-weight: 600; }
.er-projects-reference__empty { padding: 5rem 0; text-align: center; }
.er-projects-reference__empty h2 { margin: 0; font-size: 2.5rem; }
.er-projects-reference__empty p { color: #666; }

.er-projects-reference__cta { position: relative; min-height: 25rem; background: linear-gradient(90deg, rgba(5,8,10,.95) 0%, rgba(5,8,10,.78) 45%, rgba(5,8,10,.22) 78%), var(--er-projects-cta-image) center 44% / cover no-repeat; color: #fff; }
.er-projects-reference__cta .er-reference-shell { display: flex; min-height: 25rem; align-items: center; }
.er-projects-reference__cta .er-reference-shell > div { width: min(34rem, 52%); }
.er-projects-reference__cta h2 { margin: .8rem 0 0; color: #fff; font-size: clamp(2.7rem, 4.2vw, 4.2rem); line-height: 1.05; }
.er-projects-reference__cta .er-reference-shell > div > p:not(.er-reference-kicker) { margin: 1.1rem 0 0; color: rgba(255,255,255,.9); font-size: .9rem; line-height: 1.6; }
.er-projects-reference__cta-actions { display: flex; gap: 1rem; margin-top: 1.7rem; }
.er-projects-reference__cta-actions .er-pill-button { min-width: 9.5rem; min-height: 2.9rem; }

@media (max-width: 1023px) {
  .er-projects-reference__toolbar { flex-direction: column; }
  .er-projects-reference__toolbar form { width: 100%; flex-basis: auto; }
  .er-projects-reference__card-image { height: 10rem; }
}

@media (max-width: 767px) {
  .er-projects-reference__hero { height: 39rem; min-height: 39rem; }
  .er-projects-reference__hero > img { object-position: 65% center; }
  .er-projects-reference__hero-inner > div { bottom: 3rem; width: 100%; }
  .er-projects-reference__hero h1 { font-size: clamp(3rem, 13vw, 4.2rem); }
  .er-projects-reference__archive { padding-top: 2.5rem; }
  .er-projects-reference__toolbar nav { flex-wrap: nowrap; width: calc(100vw - 1.25rem); gap: 1.8rem; overflow-x: auto; padding-right: 1.25rem; }
  .er-projects-reference__featured { min-height: 28rem; }
  .er-projects-reference__featured::after { background: linear-gradient(to top, rgba(5,10,14,.92), rgba(5,10,14,.16)); }
  .er-projects-reference__featured > div { width: 100%; min-height: 28rem; justify-content: flex-end; padding: 1.6rem; }
  .er-projects-reference__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .er-projects-reference__card-image { height: min(62vw, 19rem); }
  .er-projects-reference__card > p:not(.er-projects-reference__category) { max-width: 25rem; min-height: 0; }
  .er-projects-reference__cta { min-height: 29rem; background-position: 58% center; }
  .er-projects-reference__cta .er-reference-shell { min-height: 29rem; }
  .er-projects-reference__cta .er-reference-shell > div { width: 100%; }
  .er-projects-reference__cta h2 { font-size: 3rem; }
}

/* —— Contact page: 2026 editorial design —— */
.er-contact-reference {
  --er-blue: #1667a8;
  background: #fbfaf7;
  color: #171717;
}
.er-contact-reference h2,
.er-contact-reference__hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
.er-contact-reference__hero {
  position: relative;
  height: min(62vw, 48rem);
  min-height: 42rem;
  overflow: hidden;
  background: #111820;
  color: #fff;
}
.er-contact-reference__hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.er-contact-reference__hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,15,.9) 0%, rgba(5,10,15,.58) 42%, rgba(5,10,15,.08) 78%), linear-gradient(to top, rgba(0,0,0,.42), transparent 54%); }
.er-contact-reference__hero-inner { position: absolute; inset: 0; }
.er-contact-reference__hero-inner > div { position: absolute; top: 30%; left: 0; width: min(42rem, 56%); }
.er-contact-reference__hero h1 { margin: 1rem 0 0; color: #fff; font-size: clamp(3.8rem, 5.7vw, 6rem); line-height: .96; }
.er-contact-reference__hero-inner > div > p:last-child { max-width: 34rem; margin: 1.55rem 0 0; color: rgba(255,255,255,.92); font-size: 1.0625rem; line-height: 1.65; }
.er-contact-reference__scroll { position: absolute; bottom: 2.75rem; left: 0; display: inline-flex; align-items: center; gap: .9rem; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.er-contact-reference__scroll span { display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; font-size: 1rem; }

.er-contact-reference__main { padding: 6rem 0 6.5rem; scroll-margin-top: 2rem; }
.er-contact-reference__intro { display: grid; grid-template-columns: .72fr 1.28fr; align-items: end; gap: 6rem; padding-bottom: 4rem; }
.er-contact-reference__intro .er-reference-kicker { align-self: start; color: #55758e; }
.er-contact-reference__intro h2 { grid-column: 1; margin: -2.2rem 0 0; font-size: clamp(3rem, 4.7vw, 5rem); line-height: .98; }
.er-contact-reference__intro > p:last-child { grid-column: 2; grid-row: 1 / span 2; max-width: 38rem; margin: 0 0 .35rem; color: #555; font-size: 1.125rem; line-height: 1.7; }
.er-contact-reference__layout { display: grid; grid-template-columns: minmax(14rem, .72fr) minmax(29rem, 1.35fr) minmax(15rem, .65fr); gap: clamp(1.5rem, 2.8vw, 3rem); align-items: stretch; padding-top: 1rem; }
.er-contact-reference__details { padding: 2rem 1rem 1rem 0; }
.er-contact-reference__detail { padding: 0 0 1.8rem; }
.er-contact-reference__detail + .er-contact-reference__detail { padding-top: .3rem; }
.er-contact-reference__detail > span { color: #55758e; font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.er-contact-reference__detail h3 { margin: .55rem 0 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.35rem, 1.6vw, 1.8rem); font-weight: 500; line-height: 1.25; }
.er-contact-reference__detail h3 a { color: inherit; overflow-wrap: anywhere; }
.er-contact-reference__detail > p { margin: .55rem 0 0; color: #676767; font-size: .95rem; line-height: 1.6; }
.er-contact-reference__registration { margin-top: .35rem; padding: 1.35rem; border-radius: .65rem; background: #ecefeb; }
.er-contact-reference__registration p { margin: 0; color: #555; font-size: .875rem; line-height: 1.65; }
.er-contact-reference__registration strong { color: #171717; font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.er-contact-reference__registration .er-text-link { margin-top: .9rem; font-size: .8rem; }

.er-contact-reference__form-wrap { padding: clamp(2.5rem, 3.6vw, 4rem); border-radius: .8rem; background: #f5f4f0; box-shadow: 0 1.5rem 4rem rgba(36,42,45,.07); }
.er-contact-reference__form-wrap > .er-reference-kicker { color: #55758e; }
.er-contact-reference__form-wrap > h2 { margin: .8rem 0 0; font-size: clamp(2.4rem, 3.6vw, 3.6rem); line-height: 1.02; }
.er-contact-reference__form-wrap > p { margin: 1rem 0 0; color: #626262; font-size: 1rem; line-height: 1.65; }
.er-contact-reference__form { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2rem; }
.er-contact-reference__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.er-contact-reference__form label { display: flex; flex-direction: column; gap: .55rem; }
.er-contact-reference__form label > span { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.er-contact-reference__form input,
.er-contact-reference__form select,
.er-contact-reference__form textarea { width: 100%; padding: 1rem 1.05rem; border: 1px solid rgba(40,48,53,.14); border-radius: .45rem; outline: 0; background: rgba(255,255,255,.82); color: #171717; font: inherit; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.er-contact-reference__form input:focus,
.er-contact-reference__form select:focus,
.er-contact-reference__form textarea:focus { border-color: var(--er-blue); box-shadow: 0 0 0 3px rgba(22,103,168,.1); }
.er-contact-reference__form select { appearance: auto; }
.er-contact-reference__form textarea { min-height: 9rem; resize: vertical; }
.er-contact-reference__submit { display: flex; align-items: center; gap: 1.5rem; margin-top: .4rem; }
.er-contact-reference__submit .er-pill-button { min-width: 10.5rem; min-height: 2.9rem; }
.er-contact-reference__submit > p { margin: 0; color: #737373; font-size: .78rem; line-height: 1.55; }
.er-contact-reference__notice { margin-top: 1.3rem; padding: .9rem 1rem; border-left: 3px solid; font-size: .76rem; line-height: 1.5; }
.er-contact-reference__notice--success { border-color: #208b57; background: #edf8f2; color: #175d3d; }
.er-contact-reference__notice--error { border-color: #aa3e3e; background: #fff0f0; color: #7c2727; }
.er-contact-reference__photo { position: relative; min-height: 100%; margin: 0; border-radius: .8rem; overflow: hidden; background: #d8d5cf; box-shadow: 0 1.5rem 4rem rgba(36,42,45,.08); }
.er-contact-reference__photo img { width: 100%; height: 100%; min-height: 39rem; object-fit: cover; object-position: 58% center; }
.er-contact-reference__photo figcaption { position: absolute; right: 1.25rem; bottom: 1.25rem; left: 1.25rem; padding: .9rem 1rem; border-radius: .45rem; background: rgba(7,12,15,.72); color: #fff; font-size: .75rem; line-height: 1.45; backdrop-filter: blur(8px); }

.er-contact-reference__paths { padding: 5.5rem 0 6rem; background: #eef1f2; }
.er-contact-reference__paths-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.er-contact-reference__paths-head .er-reference-kicker { color: #55758e; }
.er-contact-reference__paths-head h2 { margin: 0; font-size: clamp(2.5rem, 4vw, 4rem); line-height: 1.04; }
.er-contact-reference__paths-head > .er-text-link { flex: none; margin-bottom: .35rem; font-size: .875rem; }
.er-contact-reference__paths-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.er-contact-reference__paths-grid article { display: flex; min-height: 30rem; flex-direction: column; border-radius: .65rem; overflow: hidden; background: rgba(255,255,255,.9); box-shadow: 0 .8rem 2.5rem rgba(37,47,53,.055); }
.er-contact-reference__path-image { display: block; height: 14rem; overflow: hidden; background: #c8c7c2; }
.er-contact-reference__path-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.er-contact-reference__paths-grid article:hover .er-contact-reference__path-image img { transform: scale(1.035); }
.er-contact-reference__paths-grid h3 { margin: 1.35rem 1.35rem 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.15; }
.er-contact-reference__paths-grid p { margin: .75rem 1.35rem 0; color: #5e5e5e; font-size: .98rem; line-height: 1.58; }
.er-contact-reference__paths-grid article > .er-text-link { margin: auto 1.35rem 1.45rem; padding-top: 1.2rem; font-size: .84rem; }

.er-contact-reference__cta { min-height: 27rem; background: linear-gradient(90deg, rgba(4,8,11,.95), rgba(4,8,11,.76) 46%, rgba(4,8,11,.14) 80%), var(--er-contact-cta-image) center / cover no-repeat; color: #fff; }
.er-contact-reference__cta .er-reference-shell { display: flex; min-height: 27rem; align-items: center; }
.er-contact-reference__cta .er-reference-shell > div { width: min(36rem, 54%); }
.er-contact-reference__cta h2 { margin: .85rem 0 0; color: #fff; font-size: clamp(3rem, 4.7vw, 4.7rem); line-height: .99; }
.er-contact-reference__cta .er-reference-shell > div > p:not(.er-reference-kicker) { margin: 1.2rem 0 0; color: rgba(255,255,255,.9); font-size: 1.0625rem; line-height: 1.6; }
.er-contact-reference__cta .er-reference-shell > div > div { display: flex; gap: 1rem; margin-top: 1.8rem; }
.er-contact-reference__cta .er-pill-button { min-width: 9.5rem; min-height: 2.9rem; }

@media (max-width: 1023px) {
  .er-contact-reference__layout { grid-template-columns: minmax(15rem, .75fr) minmax(28rem, 1.25fr); gap: 2rem; }
  .er-contact-reference__photo { grid-column: 1 / -1; min-height: 26rem; }
  .er-contact-reference__photo img { min-height: 26rem; object-position: center 38%; }
  .er-contact-reference__form-wrap { padding: 2.5rem 2rem; }
  .er-contact-reference__paths-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .er-contact-reference__hero { height: 40rem; min-height: 40rem; }
  .er-contact-reference__hero > img { object-position: 62% center; }
  .er-contact-reference__hero-inner > div { top: 24%; width: 100%; }
  .er-contact-reference__hero h1 { font-size: clamp(3rem, 13vw, 4.2rem); }
  .er-contact-reference__main { padding: 4rem 0; }
  .er-contact-reference__intro { grid-template-columns: 1fr; gap: .9rem; padding-bottom: 2.8rem; }
  .er-contact-reference__intro h2 { grid-column: auto; margin: .2rem 0 0; }
  .er-contact-reference__intro > p:last-child { grid-column: auto; grid-row: auto; }
  .er-contact-reference__layout { grid-template-columns: 1fr; gap: 2rem; }
  .er-contact-reference__details { padding: .5rem 0; }
  .er-contact-reference__form-wrap { padding: 2.2rem 1.25rem; }
  .er-contact-reference__form-row { grid-template-columns: 1fr; }
  .er-contact-reference__submit { align-items: flex-start; flex-direction: column; }
  .er-contact-reference__paths { padding: 4rem 0; }
  .er-contact-reference__paths-head { align-items: flex-start; flex-direction: column; }
  .er-contact-reference__paths-grid { grid-template-columns: 1fr; }
  .er-contact-reference__paths-grid article { min-height: 29rem; }
  .er-contact-reference__path-image { height: 16rem; }
  .er-contact-reference__cta { min-height: 30rem; background-position: 58% center; }
  .er-contact-reference__cta .er-reference-shell { min-height: 30rem; }
  .er-contact-reference__cta .er-reference-shell > div { width: 100%; }
  .er-contact-reference__cta h2 { font-size: 3.15rem; }
}

/* Shared selected-page navigation treatment. */
.nav-desktop a { position: relative; }
.nav-desktop a.is-active { color: #fff; }
.nav-desktop a.is-active::after { position: absolute; right: 0; bottom: -.55rem; left: 0; height: 2px; content: ""; background: var(--brand-blue); }
.mobile-nav a.is-active { color: #fff; text-decoration: underline; text-decoration-color: var(--brand-blue); text-decoration-thickness: 2px; text-underline-offset: .42rem; }

/* —— Get involved page: 2026 editorial design —— */
.er-involved-reference {
  --er-blue: #0872bf;
  background: #fff;
  color: #171717;
}
.er-involved-reference h2,
.er-involved-reference__hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}
.er-involved-reference__hero {
  position: relative;
  height: min(65vw, 44rem);
  min-height: 40rem;
  overflow: hidden;
  background: #111820;
  color: #fff;
}
.er-involved-reference__hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.er-involved-reference__hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,8,12,.9) 0%, rgba(4,8,12,.58) 43%, rgba(4,8,12,.08) 78%), linear-gradient(to top, rgba(0,0,0,.38), transparent 52%); }
.er-involved-reference__hero-inner { position: absolute; inset: 0; }
.er-involved-reference__hero-copy { position: absolute; top: 31%; left: 0; width: min(41rem, 56%); }
.er-involved-reference__hero h1 { margin: 1rem 0 0; color: #fff; font-size: clamp(3.4rem, 5.5vw, 5.6rem); line-height: .98; }
.er-involved-reference__hero-copy > p:last-child { max-width: 34rem; margin: 1.5rem 0 0; color: rgba(255,255,255,.92); font-size: 1rem; line-height: 1.62; }
.er-involved-reference__scroll { position: absolute; bottom: 2.5rem; left: 0; display: inline-flex; align-items: center; gap: 1rem; color: #fff; font-size: .61rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.er-involved-reference__scroll span { display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; font-size: 1rem; }
.er-involved-reference__promise { position: absolute; right: 0; bottom: 4.3rem; margin: 0; padding-left: 1.8rem; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .2em; line-height: 1.8; text-transform: uppercase; }
.er-involved-reference__promise::before { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; content: ""; background: rgba(255,255,255,.85); }

.er-involved-reference__ways { padding: 4.3rem 0 4.8rem; scroll-margin-top: 1rem; }
.er-involved-reference__ways-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 5rem; }
.er-involved-reference__ways-head .er-reference-kicker { color: #687985; }
.er-involved-reference__ways-head h2 { margin: .85rem 0 0; font-size: clamp(3rem, 4.6vw, 4.6rem); line-height: 1; }
.er-involved-reference__ways-head > p { max-width: 34rem; margin: 0 0 .35rem; color: #565656; font-size: 1.0625rem; line-height: 1.65; }
.er-involved-reference__cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.7rem; margin-top: 2.8rem; }
.er-involved-reference__cards article { display: flex; min-height: 29rem; flex-direction: column; padding-bottom: 1.5rem; border: 1px solid #dedede; border-radius: .5rem; overflow: hidden; }
.er-involved-reference__card-image { display: block; height: 15rem; overflow: hidden; background: #d8d8d8; }
.er-involved-reference__card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.er-involved-reference__cards article:hover img { transform: scale(1.035); }
.er-involved-reference__cards h3 { margin: 1.15rem 1.2rem 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; font-weight: 500; line-height: 1.12; }
.er-involved-reference__cards article > p { margin: .75rem 1.2rem 0; color: #555; font-size: 1rem; line-height: 1.6; }
.er-involved-reference__cards article > .er-text-link { margin: auto 1.2rem 0; padding-top: 1rem; font-size: .875rem; }

.er-involved-reference__quote { display: grid; min-height: 29rem; grid-template-columns: 1fr 1fr; background: #172737; color: #fff; }
.er-involved-reference__quote-image { min-height: 29rem; overflow: hidden; }
.er-involved-reference__quote-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 36%; }
.er-involved-reference__quote blockquote { display: flex; max-width: 37rem; flex-direction: column; justify-content: center; margin: 0; padding: 4rem clamp(3rem, 7vw, 7rem); font-family: "Playfair Display", Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.08; }
.er-involved-reference__quote blockquote > span { height: 2.2rem; font-size: 4.2rem; line-height: 1; }
.er-involved-reference__quote cite { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.5); font-family: var(--font-sans); font-size: .6rem; font-style: normal; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

.er-involved-reference__impact { padding: 3.2rem 0; }
.er-involved-reference__impact .er-reference-shell { display: grid; grid-template-columns: repeat(4, 1fr); }
.er-involved-reference__impact .er-reference-shell > div { min-height: 9.5rem; padding: 0 2.5rem; }
.er-involved-reference__impact .er-reference-shell > div:first-child { padding-left: 0; }
.er-involved-reference__impact .er-reference-shell > div + div { border-left: 1px solid #d6d6d6; }
.er-involved-reference__impact svg { width: 2.35rem; height: 2.35rem; fill: none; stroke: var(--er-blue); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.er-involved-reference__impact strong { display: block; margin-top: .8rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.er-involved-reference__impact p { max-width: 14rem; margin: .55rem 0 0; color: #5c5c5c; font-size: .9375rem; line-height: 1.55; }

.er-involved-reference__action { padding: 0 0 3.3rem; }
.er-involved-reference__action .er-reference-shell { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 24rem; padding: 0; overflow: hidden; border-radius: .45rem; background: #f2f4f5; }
.er-involved-reference__action-image { min-height: 24rem; overflow: hidden; }
.er-involved-reference__action-image img { width: 100%; height: 100%; object-fit: cover; }
.er-involved-reference__action-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 3rem 4.2rem; }
.er-involved-reference__action-copy .er-reference-kicker { color: #71818c; }
.er-involved-reference__action-copy h2 { margin: .9rem 0 0; font-size: clamp(2.5rem, 3.7vw, 3.7rem); line-height: 1.02; }
.er-involved-reference__action-copy > p:not(.er-reference-kicker) { margin: 1rem 0 0; color: #565656; font-size: 1rem; line-height: 1.65; }
.er-involved-reference__action-copy > div { display: flex; gap: 1rem; margin-top: 1.7rem; }
.er-involved-reference__action-copy .er-pill-button { min-width: 9rem; min-height: 2.8rem; }
.er-pill-button--outline-dark { border-color: #2c2c2c; background: transparent; color: #202020; }
.er-pill-button--outline-dark:hover { border-color: #202020; background: #202020; color: #fff; }

.er-involved-reference .er-current-instagram { padding: 1.2rem 0 3.5rem; background: #fff; }
.er-involved-reference .er-current-instagram .er-current-inner { width: min(100% - 3rem, 78rem); }
.er-involved-reference .er-current-instagram-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
.er-involved-reference .er-current-instagram-head h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(2.25rem, 3.4vw, 3.25rem); font-weight: 500; letter-spacing: -.03em; }
.er-involved-reference .er-current-instagram-head p { margin-top: .4rem; font-size: .9375rem; line-height: 1.55; }
.er-involved-reference .er-current-instagram-grid { grid-template-columns: repeat(5, 1fr); gap: .8rem; margin-top: 1.5rem; }

@media (max-width: 1023px) {
  .er-involved-reference__cards { grid-template-columns: repeat(2, 1fr); }
  .er-involved-reference__cards article { min-height: 26rem; }
  .er-involved-reference__quote blockquote { padding: 3rem; }
  .er-involved-reference__impact .er-reference-shell > div { padding-inline: 1.5rem; }
  .er-involved-reference__action-copy { padding: 2.5rem; }
}

@media (max-width: 767px) {
  .er-involved-reference__hero { height: 43rem; min-height: 43rem; }
  .er-involved-reference__hero > img { object-position: 64% center; }
  .er-involved-reference__hero-copy { top: 23%; width: 100%; }
  .er-involved-reference__hero h1 { font-size: clamp(3rem, 13vw, 4.3rem); }
  .er-involved-reference__hero-copy > p:last-child { max-width: 25rem; font-size: 1rem; }
  .er-involved-reference__promise { display: none; }
  .er-involved-reference__ways { padding: 3.8rem 0; }
  .er-involved-reference__ways-head { grid-template-columns: 1fr; gap: 1.3rem; }
  .er-involved-reference__cards { grid-template-columns: 1fr; }
  .er-involved-reference__cards article { min-height: 29rem; }
  .er-involved-reference__card-image { height: min(68vw, 21rem); }
  .er-involved-reference__quote { grid-template-columns: 1fr; }
  .er-involved-reference__quote-image { min-height: 27rem; }
  .er-involved-reference__quote blockquote { padding: 3.5rem 1.25rem; }
  .er-involved-reference__impact .er-reference-shell { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .er-involved-reference__impact .er-reference-shell > div { padding-inline: 1rem; }
  .er-involved-reference__impact .er-reference-shell > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .er-involved-reference__action .er-reference-shell { width: min(100% - 2.5rem, 78rem); grid-template-columns: 1fr; }
  .er-involved-reference__action-image { min-height: 22rem; }
  .er-involved-reference__action-copy { padding: 3rem 1.25rem; }
  .er-involved-reference__action-copy > div { flex-wrap: wrap; }
  .er-involved-reference .er-current-instagram { padding-inline: 1.25rem; }
  .er-involved-reference .er-current-instagram .er-current-inner { width: 100%; }
  .er-involved-reference .er-current-instagram-head { align-items: flex-start; flex-direction: column; }
  .er-involved-reference .er-current-instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .er-involved-reference .er-current-instagram-grid > :last-child { grid-column: span 2; aspect-ratio: 2 / 1; }
}

/* —— Legal pages and consent preferences —— */
.er-legal-hero {
  padding: 10rem 0 5rem;
  background: radial-gradient(circle at 82% 12%, rgba(33,80,175,.5), transparent 34%), #101b2a;
  color: #fff;
}
.er-legal-hero h1 { margin: 1rem 0 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(3.2rem, 6vw, 5.7rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.er-legal-hero p:not(.er-reference-kicker) { max-width: 42rem; margin: 1.4rem 0 0; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.7; }
.er-legal-hero > div > span { display: block; margin-top: 2.2rem; color: rgba(255,255,255,.58); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.er-legal-page { padding: 5rem 0 6rem; background: #fff; }
.er-legal-page__layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); justify-content: space-between; gap: clamp(3rem, 8vw, 8rem); }
.er-legal-page__nav { position: sticky; top: 7rem; display: flex; height: fit-content; flex-direction: column; gap: .25rem; padding-top: .2rem; }
.er-legal-page__nav p { margin: 0 0 .8rem; color: #777; font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.er-legal-page__nav a { padding: .75rem .9rem; border-left: 2px solid #dedede; color: #656565; font-size: .8rem; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.er-legal-page__nav a:hover { color: #171717; }
.er-legal-page__nav a.is-current { border-color: var(--brand-blue); background: rgba(33,80,175,.06); color: var(--brand-blue); font-weight: 700; }
.er-legal-page__content.er-prose { margin-top: 0; }
.er-legal-page__content .er-legal-page__lead { margin: 0 0 3.5rem; color: #252525; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.55rem, 2.4vw, 2.15rem); line-height: 1.35; }
.er-legal-page__content h2 { margin: 3.2rem 0 1rem; font-family: "Playfair Display", Georgia, serif; font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; }
.er-legal-page__content p, .er-legal-page__content li { color: #555; font-size: .88rem; line-height: 1.8; }
.er-legal-page__content ul { margin: 1.2rem 0; padding-left: 1.25rem; }
.er-legal-page__content li + li { margin-top: .55rem; }
.er-legal-page__content a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.er-legal-page__contact { margin-top: 4rem; padding: 2rem; border-left: 3px solid var(--brand-blue); background: #f3f5f8; }
.er-legal-page__contact h2 { margin-top: 0; }
.er-cookie-table { margin: 1.4rem 0 2rem; border-top: 1px solid #dfe2e5; }
.er-cookie-table__row { display: grid; grid-template-columns: 10rem 1fr; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid #dfe2e5; }
.er-cookie-table__row > div { display: flex; flex-direction: column; gap: .25rem; }
.er-cookie-table__row strong { font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.er-cookie-table__row span { color: var(--brand-blue); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.er-cookie-table__row p { margin: 0; }
.er-cookie-settings-link { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--brand-blue); font: inherit; font-weight: 700; cursor: pointer; }
.site-footer__links button { width: fit-content; padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.62); font: inherit; font-size: .76rem; text-align: left; cursor: pointer; }
.site-footer__links button:hover { color: #fff; }

.er-cookie-consent[hidden], .er-cookie-consent [hidden] { display: none !important; }
.er-cookie-consent { position: fixed; right: 1rem; bottom: 1rem; left: 1rem; z-index: 250; width: min(calc(100% - 2rem), 70rem); max-height: calc(100vh - 2rem); margin-inline: auto; padding: 1.6rem; overflow-y: auto; border: 1px solid #d9dde3; border-top: 3px solid var(--brand-blue); border-radius: .6rem; background: #fff; color: #171717; box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.er-cookie-consent__summary { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.er-cookie-consent h2 { margin: .4rem 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.65rem; font-weight: 500; letter-spacing: -.02em; }
.er-cookie-consent p:not(.er-reference-kicker) { max-width: 44rem; margin: .6rem 0 0; color: #5e5e5e; font-size: .76rem; line-height: 1.6; }
.er-cookie-consent p a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.er-cookie-consent__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .65rem; }
.er-cookie-consent .er-pill-button { min-height: 2.65rem; padding: 0 1.2rem; border-color: var(--brand-blue); background: var(--brand-blue); font-size: .72rem; cursor: pointer; }
.er-cookie-consent .er-pill-button--ghost { background: #fff; color: var(--brand-blue); }
.er-cookie-manage { min-height: 2.65rem; padding: 0 .45rem; border: 0; background: transparent; color: #424242; font-size: .72rem; font-weight: 600; cursor: pointer; }
.er-cookie-consent__preferences { display: grid; gap: 1rem; }
.er-cookie-consent__preferences > label { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .9rem 0; border-top: 1px solid #e6e6e6; cursor: pointer; }
.er-cookie-consent__preferences label span { display: flex; flex-direction: column; }
.er-cookie-consent__preferences label strong { font-size: .82rem; }
.er-cookie-consent__preferences label small { margin-top: .2rem; color: #686868; font-size: .68rem; }
.er-cookie-consent__preferences input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; accent-color: var(--brand-blue); }

@media (max-width: 767px) {
  .er-legal-hero { padding: 8.5rem 0 4rem; }
  .er-legal-hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
  .er-legal-page { padding: 3.5rem 0 4.5rem; }
  .er-legal-page__layout { grid-template-columns: 1fr; gap: 3rem; }
  .er-legal-page__nav { position: static; }
  .er-legal-page__content .er-legal-page__lead { margin-bottom: 2.5rem; }
  .er-cookie-table__row { grid-template-columns: 1fr; gap: .7rem; }
  .er-cookie-consent { right: .65rem; bottom: .65rem; left: .65rem; width: auto; max-height: calc(100vh - 1.3rem); padding: 1.25rem; }
  .er-cookie-consent__summary { grid-template-columns: 1fr; gap: 1.2rem; }
  .er-cookie-consent__actions { justify-content: stretch; }
  .er-cookie-consent__actions > * { flex: 1 1 8rem; }
}
