@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --primary: #276ac9;
  --primary-deep: #16447f;
  --primary-soft: #eaf2ff;
  --accent: #e59f30;
  --accent-soft: #fff4dd;
  --green: #2d9b73;
  --ink: #0d1b2f;
  --text: #32445c;
  --muted: #6b7c91;
  --surface: #ffffff;
  --surface-soft: #f6f9fd;
  --surface-blue: #eef5ff;
  --line: rgba(20, 54, 96, 0.12);
  --line-strong: rgba(20, 54, 96, 0.22);
  --shadow-soft: 0 18px 42px rgba(13, 27, 47, 0.08);
  --shadow-strong: 0 26px 70px rgba(13, 27, 47, 0.16);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --font-headings: Outfit, Inter, Arial, sans-serif;
  --font-body: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background-image: url("../assets/images/african-scientist-woman-looking-tomato-while-her-collegue-typing-dna-test-computer-background.jpg");
  background-position: right 70px top 120px;
  background-repeat: no-repeat;
  background-size: 420px auto;
  content: "";
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

body::after {
  background:
    transparent;
  border: 1px solid rgba(39, 106, 201, 0.08);
  content: "";
  height: 520px;
  position: fixed;
  right: -260px;
  top: 18vh;
  transform: rotate(22deg);
  width: 520px;
  z-index: -1;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.container {
  margin: 0 auto;
  max-width: var(--container);
  width: min(90%, var(--container));
}

.header-nav {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  left: 0;
  padding: 18px 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: padding 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  z-index: 100;
}

.header-nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 36px rgba(13, 27, 47, 0.08);
  padding: 10px 0;
}

.nav-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container);
  width: min(90%, var(--container));
}

.logo {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.logo img {
  background: var(--surface);
  object-fit: contain;
  /* padding: 5px; */
  width: 70px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text strong,
.footer-logo span {
  color: var(--primary-deep);
  font-family: var(--font-headings);
  font-size: 1.42rem;
  font-weight: 900;
  letter-spacing: 0;
}

.logo-text small {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 4px;
  text-transform: uppercase;
}

.nav-menu {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-link {
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-headings);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 14px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--primary-deep);
  color: #ffffff;
}

.menu-toggle {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: none;
  height: 44px;
  padding: 9px;
  position: relative;
  width: 44px;
  z-index: 120;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
  width: 100%;
}

.home-hero,
.page-hero {
  background: var(--surface-soft);
  min-height: 92vh;
  overflow: hidden;
  padding: 136px 0 70px;
  position: relative;
}

.page-hero {
  min-height: 74vh;
}

.home-hero::before,
.page-hero::before {
  background: var(--surface-blue);
  border: 1px solid rgba(39, 106, 201, 0.12);
  border-radius: 40px;
  content: "";
  height: 380px;
  position: absolute;
  right: -110px;
  top: 110px;
  transform: rotate(12deg);
  width: 440px;
}

.home-hero::after,
.page-hero::after {
  background: var(--accent-soft);
  border: 1px solid rgba(229, 159, 48, 0.18);
  border-radius: 999px;
  bottom: -130px;
  content: "";
  height: 300px;
  left: -120px;
  position: absolute;
  width: 300px;
}

.home-grid,
.page-hero-grid {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  position: relative;
  z-index: 1;
}

.home-grid > *,
.page-hero-grid > * {
  min-width: 0;
}

.badge {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(13, 27, 47, 0.06);
  color: var(--primary-deep);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0;
  margin-bottom: 20px;
  padding: 8px 13px;
  text-transform: uppercase;
}

.badge::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

h1,
h2,
h3 {
  font-family: var(--font-headings);
  letter-spacing: 0;
}

h1 {
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 24px;
  max-width: 850px;
  overflow-wrap: anywhere;
  color: var(--primary-deep);
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  font-weight: 850;
  line-height: 1.08;
}

h3 {
  color: var(--ink);
  font-weight: 800;
}

p {
  color: var(--text);
}

.home-hero p,
.page-hero p {
  font-size: 1.12rem;
  max-width: 680px;
}


.hero-photo-welcome {
  /* height: auto; */
  /* max-height: min(58vh, 520px); */
  object-fit: cover;
  position: relative;
  transform: rotate(1.5deg);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  max-width: none !important;
  z-index: 2;
}

.hero-orbit {
  border: 1px solid rgba(39, 106, 201, 0.16);
  border-radius: 50%;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.hero-orbit-one {
  animation: driftCircle 12s ease-in-out infinite;
  height: 230px;
  right: 18%;
  top: 10%;
  width: 230px;
}

.hero-orbit-two {
  animation: driftCircle 16s ease-in-out infinite reverse;
  bottom: 8%;
  height: 160px;
  right: 4%;
  width: 160px;
}

.hero-floating-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  color: var(--primary-deep);
  display: flex;
  font-family: var(--font-headings);
  font-weight: 900;
  height: 58px;
  justify-content: center;
  position: absolute;
  width: 72px;
  z-index: 3;
}

.hero-floating-card-one {
  animation: floatCard 5.6s ease-in-out infinite;
  right: 37%;
  top: 25%;
}

.hero-floating-card-two {
  animation: floatCard 6.4s ease-in-out infinite 0.8s;
  right: 5%;
  top: 35%;
}

.hero-floating-card-three {
  animation: floatCard 7s ease-in-out infinite 1.4s;
  bottom: 17%;
  right: 29%;
}

.hero-photo {
  aspect-ratio: 4 / 3;
  border: 10px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: cover;
  position: relative;
  transform: rotate(1.5deg);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
  width: 100%;
}

.hero-photo:hover {
  box-shadow: 0 32px 86px rgba(13, 27, 47, 0.2);
  transform: rotate(0deg) translateY(-6px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn-primary,
.btn-secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--font-headings);
  font-size: 0.98rem;
  font-weight: 850;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.btn-primary {
  background: var(--primary-deep);
  border: 1px solid var(--primary-deep);
  box-shadow: 0 16px 30px rgba(39, 106, 201, 0.22);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: 0 22px 38px rgba(39, 106, 201, 0.28);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--primary-soft);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.stats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}

.stats div {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  display: grid;
  min-height: 126px;
  padding: 22px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.stats div:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-5px);
}

.stats strong {
  color: var(--primary-deep);
  font-family: var(--font-headings);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.stats span {
  align-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

section {
  padding: 86px 0;
  position: relative;
}

section:nth-of-type(even) {
  background: #fbfdff;
}

.section-head {
  margin-bottom: 38px;
  max-width: 820px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 16px;
}

.section-head p {
  font-size: 1.04rem;
}

.card-grid,
.two-col {
  padding: 0 5vw;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 32px;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.panel::before {
  background: var(--primary-deep);
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s ease;
}

.panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
  transform: translateY(-7px);
}

.panel:hover::before {
  transform: scaleX(1);
}

.panel h2,
.panel h3 {
  margin-bottom: 12px;
}

.about-racciram-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.about-racciram-media {
  position: relative;
}

.about-racciram-media::before {
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 34px;
  bottom: -18px;
  content: "";
  left: -18px;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 0;
}

.about-racciram-media img {
  /* aspect-ratio: 4 / 3; */
  border: 10px solid rgba(255, 255, 255, 0.86);
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.about-racciram-copy {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 36px;
}

.about-racciram-copy h2 {
  margin-bottom: 18px;
}

.about-racciram-copy p {
  font-size: 1.04rem;
  text-align: justify;
}

.center {
  margin-top: 30px;
  text-align: center;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-urgency {
  overflow: hidden;
}

.urgency-grid,
.pathway-grid,
.partner-pitch-grid {
  align-items: center;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.urgency-copy p,
.funding-panel p,
.partner-pitch p {
  font-size: 1.06rem;
}

.urgency-cards {
  display: grid;
  gap: 18px;
}

.urgency-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  padding: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.urgency-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateX(8px);
}

.urgency-card img {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  object-fit: cover;
  width: 100%;
}

.program-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.program-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  min-height: 300px;
  overflow: hidden;
  padding: 28px;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.program-card::after {
  border: 1px solid rgba(39, 106, 201, 0.13);
  border-radius: 50%;
  content: "";
  height: 150px;
  position: absolute;
  right: -56px;
  top: -56px;
  width: 150px;
}

.program-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-8px);
}

.program-icon {
  align-items: center;
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--primary-deep);
  display: inline-flex;
  font-size: 1.4rem;
  height: 56px;
  justify-content: center;
  margin-bottom: 22px;
  width: 56px;
}

.program-icon i {
  line-height: 1;
}

.program-card h3 {
  margin-bottom: 12px;
}

.pathway-media {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.88fr 1fr;
}

.pathway-media img {
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.84);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
}

.pathway-media img:nth-child(2) {
  margin-top: 54px;
}

.pathway-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.pathway-list article {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 16px;
  padding: 18px;
}

.pathway-list strong {
  align-items: center;
  background: var(--primary-deep);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 44px;
  font-family: var(--font-headings);
  font-weight: 900;
  height: 44px;
  justify-content: center;
}

.funding-panel {
  align-items: center;
  background: #0b1b2f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  box-shadow: var(--shadow-strong);
  color: #ffffff;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  overflow: hidden;
  padding: 42px;
  position: relative;
}

.funding-panel::before,
.funding-panel::after {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  position: absolute;
}

.funding-panel::before {
  height: 260px;
  right: -110px;
  top: -110px;
  width: 260px;
}

.funding-panel::after {
  bottom: -80px;
  height: 190px;
  left: -80px;
  width: 190px;
}

.funding-panel h2,
.funding-panel p {
  color: #ffffff;
}

.funding-panel > * {
  position: relative;
  z-index: 1;
}

.funding-list {
  display: grid;
  gap: 12px;
}

.funding-list span {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  padding: 12px 16px;
}

.partner-pitch-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

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

.impact-photo-grid img {
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
}

.impact-photo-grid img:nth-child(2),
.impact-photo-grid img:nth-child(3) {
  transform: translateY(26px);
}

.evidence-strip {
  overflow: hidden;
}

.evidence-track {
  animation: evidenceScroll 28s linear infinite;
  display: flex;
  gap: 18px;
  width: max-content;
}

.evidence-track img {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  flex: 0 0 310px;
  object-fit: cover;
}

.evidence-track:hover {
  animation-play-state: paused;
}

.gallery-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.activity-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.activity-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-8px);
}

.activity-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.45s ease;
  width: 100%;
}

.activity-card:hover img {
  transform: scale(1.08);
}

.activity-card div {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--line);
  bottom: 0;
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
}

.activity-card span {
  color: var(--accent);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.activity-card h3 {
  font-size: 1.06rem;
  line-height: 1.25;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: -12px auto 34px;
  width: min(90%, var(--container));
}

.country-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: -12px auto 36px;
  width: min(90%, var(--container));
}

.country-tab {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(13, 27, 47, 0.05);
  color: var(--text);
  display: inline-flex;
  font-family: var(--font-headings);
  font-weight: 850;
  gap: 8px;
  padding: 12px 18px;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.country-tab span {
  font-size: 1.2rem;
}

.country-tab.active,
.country-tab:hover {
  background: var(--primary-deep);
  box-shadow: 0 14px 30px rgba(39, 106, 201, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.country-panel {
  display: none;
}

.country-panel.active {
  display: block;
}

.event-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, 1fr);
}

.event-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.event-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-7px);
}

.event-card img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

.event-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.event-meta span {
  background: var(--primary-soft);
  border-radius: 999px;
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 10px;
}

.event-body h3 {
  font-size: 1.22rem;
  line-height: 1.25;
}

.event-body .btn-secondary {
  align-self: flex-start;
  margin-top: auto;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-headings);
  font-weight: 850;
  padding: 11px 18px;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary-deep);
  box-shadow: 0 12px 26px rgba(39, 106, 201, 0.18);
  color: #ffffff;
  transform: translateY(-2px);
}

.people-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  width: min(90%, var(--container));
}

.person-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.person-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-8px);
}

.person-card img {
  aspect-ratio: 1 / 1;
  background: var(--surface-blue);
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
  width: 100%;
}

.person-card:hover img {
  transform: scale(1.06);
}

.person-card div {
  padding: 18px;
}

.person-card h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 5px;
}

.person-card p {
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.person-links {
  align-items: center;
  background: rgba(13, 27, 47, 0.64);
  bottom: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  left: 12px;
  margin-top: 0;
  opacity: 0;
  padding: 10px;
  position: absolute;
  right: 12px;
  top: 12px;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  visibility: hidden;
  z-index: 2;
}

.person-card:hover .person-links,
.person-card:focus-within .person-links {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.person-links a {
  align-items: center;
  background: var(--primary-deep);
  border: 1px solid var(--primary-deep);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--font-headings);
  font-size: 0.78rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  line-height: 1;
  text-transform: uppercase;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  width: 34px;
}

.person-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-3px);
}

.org-wrap {
  margin: 0 auto 34px;
  width: min(90%, 980px);
}

.org-wrap img {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  padding: 14px;
  width: 100%;
}

.executive-grid {
  margin-top: 18px;
}

.split-title {
  margin: 54px auto 20px;
}

.publications-list {
  display: grid;
  gap: 22px;
}

.pub-card a {
  color: var(--primary-deep);
  font-weight: 800;
  margin-left: 18px;
  word-break: break-word;
}

.partners-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
}

.partner-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 220px;
  padding: 32px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.partner-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-7px) scale(1.02);
}

.partner-card img {
  max-height: 100px;
  object-fit: contain;
}

.flyers-section {
  overflow: hidden;
}

.flyer-marquee {
  overflow: hidden;
  width: 100%;
}

.flyer-track {
  animation: flyerScroll 34s linear infinite;
  display: flex;
  gap: 24px;
  width: max-content;
}

.flyer-marquee:hover .flyer-track {
  animation-play-state: paused;
}

.flyer-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  flex: 0 0 260px;
  overflow: hidden;
}

.flyer-card img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.flyer-card figcaption {
  color: var(--ink);
  font-family: var(--font-headings);
  font-weight: 800;
  padding: 14px 16px;
}

@keyframes flyerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 12px));
  }
}

@keyframes evidenceScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% + 24px));
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

@keyframes driftCircle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(22px, -18px) scale(1.05);
  }
}

.pub-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 30px;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pub-card::before {
  background: var(--primary-deep);
  border-radius: 999px;
  content: "";
  height: calc(100% - 48px);
  left: 18px;
  position: absolute;
  top: 24px;
  width: 5px;
}

.pub-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateX(6px);
}

.pub-card span,
.pub-card h2,
.pub-card p {
  display: block;
  margin-left: 18px;
}

.pub-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 9px;
  text-transform: uppercase;
}

.pub-card h2 {
  font-size: 1.28rem;
  line-height: 1.35;
  margin-bottom: 10px;
}

.contact-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 0.85fr 1.15fr;
}

.contact-info p {
  margin-top: 12px;
}

.contact-info a {
  color: var(--primary-deep);
  font-weight: 800;
}

.map-wrap iframe {
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.social-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-family: var(--font-headings);
  font-size: 0.86rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  text-transform: uppercase;
  transition: background 0.22s ease, transform 0.22s ease;
  width: 38px;
}

.social-link:hover {
  background: var(--accent);
  color: var(--ink);
  transform: translateY(-3px);
}

.contact-social .social-link {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  color: var(--ink);
  display: grid;
  font-family: var(--font-headings);
  font-weight: 800;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 48px;
  outline: 0;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-deep);
  box-shadow: 0 0 0 4px rgba(39, 106, 201, 0.11);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--primary-deep);
  font-weight: 800;
}

footer {
  background: #0b1b2f;
  color: #ffffff;
  overflow: hidden;
  padding: 66px 0 30px;
  position: relative;
}

footer::before,
footer::after {
  animation: footerBubbleRise var(--bubble-speed, 22s) linear infinite;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  bottom: -90px;
  box-shadow:
    120px -40px 0 -8px rgba(255, 255, 255, 0.1),
    260px 30px 0 12px rgba(39, 106, 201, 0.12),
    430px -70px 0 -2px rgba(229, 159, 48, 0.1),
    640px 10px 0 18px rgba(255, 255, 255, 0.08),
    820px -55px 0 -14px rgba(39, 106, 201, 0.11),
    1040px 22px 0 6px rgba(255, 255, 255, 0.09);
  content: "";
  height: 58px;
  left: 4%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 58px;
  z-index: 0;
}

footer::before {
  --bubble-speed: 24s;
}

footer::after {
  --bubble-speed: 31s;
  animation-delay: -12s;
  box-shadow:
    90px 10px 0 16px rgba(255, 255, 255, 0.07),
    220px -45px 0 -10px rgba(229, 159, 48, 0.1),
    380px 35px 0 3px rgba(255, 255, 255, 0.11),
    590px -20px 0 22px rgba(39, 106, 201, 0.1),
    760px 48px 0 -4px rgba(255, 255, 255, 0.09),
    980px -62px 0 10px rgba(229, 159, 48, 0.08),
    1160px 0 0 -12px rgba(255, 255, 255, 0.12);
  height: 42px;
  left: 10%;
  width: 42px;
}

footer p,
footer a {
  color: #cfdae8;
}

footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.35fr 1fr 1fr;
  position: relative;
  z-index: 1;
}

.footer-grid::before {
  background: rgba(39, 106, 201, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  content: "";
  height: 260px;
  pointer-events: none;
  position: absolute;
  right: -80px;
  top: -146px;
  transform: rotate(16deg);
  width: 280px;
  z-index: -1;
}

.footer-grid > div {
  display: grid;
  gap: 10px;
}

.footer-grid h3 {
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
}

.footer-logo img {
  height: 44px;
  width: 50px;
}

.footer-logo span {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #cfdae8;
  margin: 42px auto 0;
  padding-top: 22px;
  position: relative;
  width: min(90%, var(--container));
  z-index: 1;
}

.language-float {
  background: var(--accent);
  border: 1px solid rgba(13, 27, 47, 0.12);
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 18px 40px rgba(13, 27, 47, 0.18);
  color: #fff;
  font-family: var(--font-headings);
  font-weight: 900;
  height: 58px;
  position: fixed;
  right: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  width: 58px;
  z-index: 120;
}

.language-float:hover {
  box-shadow: 0 24px 52px rgba(13, 27, 47, 0.24);
  transform: translateY(-4px) scale(1.04);
}

@keyframes footerBubbleRise {
  0% {
    opacity: 0;
    transform: translate3d(0, 90px, 0) scale(0.78);
  }
  12% {
    opacity: 0.72;
  }
  58% {
    opacity: 0.48;
    transform: translate3d(24px, -210px, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(-18px, -520px, 0) scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  footer::before,
  footer::after {
    animation: none;
    opacity: 0.28;
  }
}

.image-motion {
  scale: 1.025;
  transform-origin: center;
  will-change: translate;
}

.image-motion-active.image-motion-clockwise {
  animation: imageOrbitClockwise var(--motion-duration, 22s) linear var(--motion-delay, 0s) infinite;
}

.image-motion-active.image-motion-counter {
  animation: imageOrbitCounter var(--motion-duration, 24s) linear var(--motion-delay, 0s) infinite;
}

.image-motion-active:hover {
  animation-play-state: paused;
}

@keyframes imageOrbitClockwise {
  0%, 100% {
    translate: 0 0;
  }
  25% {
    translate: 7px -6px;
  }
  50% {
    translate: 0 -11px;
  }
  75% {
    translate: -7px -6px;
  }
}

@keyframes imageOrbitCounter {
  0%, 100% {
    translate: 0 0;
  }
  25% {
    translate: -6px 7px;
  }
  50% {
    translate: 0 12px;
  }
  75% {
    translate: 6px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-motion-active.image-motion-clockwise,
  .image-motion-active.image-motion-counter {
    animation: none;
  }
}

[hidden] {
  display: none !important;
}

.home-grid > *,
.page-hero-grid > *,
.panel,
.activity-card,
.person-card,
.pub-card {
  animation: riseIn 0.72s ease both;
}

.home-grid > :nth-child(2),
.page-hero-grid > :nth-child(2) {
  animation-delay: 0.08s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .home-hero,
  .page-hero {
    padding-top: 122px;
  }

  .home-grid,
  .page-hero-grid {
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  }

  h1 {
    font-size: clamp(2.35rem, 5.5vw, 4.4rem);
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    font-size: 0.86rem;
    padding: 9px 10px;
  }

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

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

}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid var(--line);
    bottom: 0;
    box-shadow: var(--shadow-strong);
    display: none;
    flex-direction: column;
    justify-content: center;
    padding: 72px 28px;
    position: fixed;
    right: 0;
    top: 0;
    width: min(84vw, 360px);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
    font-size: 1rem;
    padding: 13px 14px;
  }

  .home-grid,
  .page-hero-grid,
  .about-racciram-grid,
  .urgency-grid,
  .pathway-grid,
  .partner-pitch-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-grid,
  .page-hero-grid {
    gap: 34px;
  }

  .home-hero,
  .page-hero {
    min-height: auto;
    padding: 118px 0 58px;
  }

  .hero-photo {
    max-height: 420px;
    transform: none;
  }

  .hero-photo:hover {
    transform: translateY(-4px);
  }

  .hero-floating-card,
  .hero-orbit {
    display: none;
  }

  .about-racciram-copy {
    padding: 28px;
  }

  .card-grid,
  .gallery-grid,
  .people-grid,
  .event-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .funding-panel {
    grid-template-columns: 1fr;
    padding: 32px;
  }

}

@media (max-width: 640px) {
  body::before,
  body::after {
    display: none;
  }

  .home-hero,
  .page-hero {
    padding: 104px 0 46px;
  }

  .home-grid,
  .page-hero-grid {
    gap: 28px;
  }

  section {
    padding: 58px 0;
  }

  .logo-text small {
    display: none;
  }

  .logo img {
    height: 44px;
    width: 50px;
  }

  h1 {
    font-size: clamp(2.05rem, 11vw, 3.15rem);
    line-height: 1.03;
    margin-bottom: 18px;
  }

  .home-hero p,
  .page-hero p {
    font-size: 1rem;
  }

  .hero-photo {
    border-width: 6px;
    border-radius: 22px;
    max-height: 320px;
  }

  .about-racciram-grid {
    gap: 26px;
  }

  .about-racciram-media::before {
    border-radius: 24px;
    bottom: -10px;
    left: -10px;
    right: 10px;
    top: 10px;
  }

  .about-racciram-media img {
    border-width: 6px;
    border-radius: 22px;
  }

  .about-racciram-copy {
    border-radius: 22px;
    padding: 24px;
  }

  .about-racciram-copy p {
    font-size: 1rem;
    text-align: left;
  }

  .actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .stats,
  .card-grid,
  .gallery-grid,
  .people-grid,
  .event-grid,
  .program-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .urgency-card {
    grid-template-columns: 1fr;
  }

  .pathway-media,
  .impact-photo-grid {
    grid-template-columns: 1fr;
  }

  .pathway-media img:nth-child(2),
  .impact-photo-grid img:nth-child(2),
  .impact-photo-grid img:nth-child(3) {
    margin-top: 0;
    transform: none;
  }

  .funding-panel {
    border-radius: 24px;
    padding: 26px;
  }

  .evidence-track img {
    flex-basis: 240px;
  }

  .stats div {
    min-height: auto;
  }

  .activity-card div {
    position: static;
  }

  .language-float {
    bottom: 18px;
    height: 52px;
    right: 18px;
    width: 52px;
  }
}
