/* Ingrid Hope — Gates Foundation–inspired homepage */

:root {
  --yellow: #f5c400;
  --yellow-deep: #e6b800;
  --ink: #1a1d23;
  --color-ink: var(--ink);
  --charcoal: #2d323a;
  --slate: #333a45;
  --blue: #00558c;
  --blue-deep: #0a3d66;
  --muted: #5c6570;
  --paper: #ffffff;
  --sand: #f3f1eb;
  --tint: #eef3f7;
  --gold-bar: #e8d48a;
  --radius-hero: 56px;
  --radius-lg: 40px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --header-h: 72px;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --shadow-soft: 0 12px 40px rgba(26, 29, 35, 0.08);
  /* Site-wide title scale — keep module headings consistent */
  --title-page: clamp(2.25rem, 4.5vw, 3.25rem);
  --title-section: clamp(1.75rem, 3vw, 2.25rem);
  --title-chapter: clamp(1.4rem, 2.3vw, 1.75rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

iframe,
embed,
object {
  max-width: 100%;
}

body.nav-open,
body.mega-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

a,
button,
input,
select,
textarea,
label,
summary {
  touch-action: manipulation;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  isolation: isolate;
}

/* Homepage only: orange nav; hide on scroll like inner pages */
.page-home .site-header {
  background: var(--yellow);
  transition: transform 0.28s ease;
}

.page-home.home-scrolled .site-header {
  transform: translateY(-110%);
  pointer-events: none;
}

.header-bar {
  height: var(--header-h);
  position: relative;
  z-index: 2;
  background: inherit;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-left: auto;
  height: 100%;
}

.nav-item-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
}

.nav-item-wrap + .nav-item-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  border-left: 1px dotted rgba(0, 0, 0, 0.35);
  opacity: 0;
}

.nav-item-wrap:has(.nav-item.is-active) + .nav-item-wrap::before,
.nav-item-wrap:has(+ .nav-item-wrap .nav-item.is-active)::after {
  opacity: 1;
}

.nav-item-wrap:has(+ .nav-item-wrap .nav-item.is-active)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  border-right: 1px dotted rgba(0, 0, 0, 0.35);
}

.nav-item {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  position: relative;
  height: 100%;
}

.nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-item.is-active {
  font-weight: 600;
}

.nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 3px;
  background: var(--ink);
}

.nav-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-item.is-active .nav-chevron {
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Mega menus ---------- */
.mega-panels {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1;
  background: #fff;
  box-shadow: 0 18px 40px rgba(26, 29, 35, 0.14);
}

.site-header.is-mega-open .mega-panels {
  display: block;
}

.page-home .mega-panels {
  background: var(--yellow);
}

.mega-panel {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-panel[hidden] {
  display: none !important;
}

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 40px 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 40px;
}

.mega-inner--ideas {
  grid-template-columns: 1fr 1fr 1fr 1.15fr;
}

.mega-intro h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--ink);
}

.mega-intro p {
  margin: 0 0 18px;
  color: #2a2f36;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 28ch;
}

.mega-cta {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 3px;
}

.mega-cta:hover {
  opacity: 0.75;
}

.mega-col h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.mega-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-col a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.35;
}

.mega-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-view-all {
  display: inline-block;
  margin-top: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mega-view-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-col--border {
  border-right: 1px solid rgba(0, 0, 0, 0.18);
  padding-right: 28px;
}

.mega-feature-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  max-width: min(320px, 100%);
}

.mega-feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #111;
}

.mega-feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.mega-feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #2a2f36;
  line-height: 1.45;
}

.mega-feature-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.mega-open::before,
body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 90;
  pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero-wrap {
  --reveal-duration: 1.35s;
  --reveal-ease: cubic-bezier(0.77, 0, 0.175, 1);
  --hero-max: 1600px;
  background: var(--yellow);
  padding: 0 12px 28px;
  position: relative;
}

/* Yellow panels: closed like a painting, then open left / right */
.hero-reveal {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  bottom: 28px;
  z-index: 5;
  display: flex;
  pointer-events: none;
  max-width: var(--hero-max);
  margin: 0 auto;
  border-radius: var(--radius-hero);
  overflow: hidden;
}

.hero-reveal-panel {
  flex: 1 1 50%;
  background: var(--yellow);
  transform: translateX(0);
  transition: transform var(--reveal-duration) var(--reveal-ease);
  will-change: transform;
}

.hero-reveal-panel--left {
  transform-origin: left center;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.04);
}

.hero-reveal-panel--right {
  transform-origin: right center;
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.04);
}

.hero-wrap.is-revealed .hero-reveal-panel--left {
  transform: translateX(-105%);
}

.hero-wrap.is-revealed .hero-reveal-panel--right {
  transform: translateX(105%);
}

.hero-wrap.is-revealed .hero-reveal {
  pointer-events: none;
}

.hero-wrap.is-reveal-done .hero-reveal {
  display: none;
}

.hero {
  position: relative;
  max-width: var(--hero-max);
  margin: 0 auto;
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 9;
  min-height: 500px;
  max-height: min(88vh, 900px);
  box-shadow: var(--shadow-soft);
  clip-path: inset(0 50% 0 50% round var(--radius-hero));
  transform: scale(0.985);
  transition:
    clip-path var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.hero-wrap.is-revealed .hero {
  clip-path: inset(0 0 0 0 round var(--radius-hero));
  transform: scale(1);
}

.hero-wrap:not(.is-revealed) .hero-content,
.hero-wrap:not(.is-revealed) .hero-controls,
.hero-wrap:not(.is-revealed) .hero-pause {
  opacity: 0;
}

.hero-wrap.is-revealed .hero-content {
  animation: copyRise 0.85s 0.35s ease both;
}

.hero-wrap.is-revealed .hero-controls,
.hero-wrap.is-revealed .hero-pause {
  animation: copyRise 0.6s 0.55s ease both;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 14, 20, 0.72) 0%,
    rgba(10, 14, 20, 0.35) 42%,
    rgba(10, 14, 20, 0.12) 70%,
    transparent 100%
  );
}

.hero-content {
  position: absolute;
  left: clamp(28px, 5vw, 72px);
  bottom: clamp(36px, 8vw, 80px);
  z-index: 2;
  max-width: 520px;
  color: #fff;
}

@keyframes copyRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-content h1 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-content p {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  max-width: 28ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-yellow:hover {
  background: #ffd84a;
}

.btn-dark {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}

.btn-dark:hover {
  background: #1f242c;
}

.btn-outline {
  background: transparent;
  color: var(--blue-deep);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: rgba(0, 85, 140, 0.06);
}

.hero-controls {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-dots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.dot.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
}

.hero-arrows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-arrows button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.65rem;
  cursor: pointer;
  padding: 4px;
  opacity: 0.9;
}

.hero-pause {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.hero-pause .icon-play {
  display: none;
}

.hero-pause[data-paused="true"] .icon-pause {
  display: none;
}

.hero-pause[data-paused="true"] .icon-play {
  display: block;
}

/* ---------- Mission ---------- */
.mission {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 28px 72px;
  text-align: center;
}

.mission-text {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.35;
  color: #2a2f36;
}

.accent-script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
  font-size: 1.18em;
}

/* ---------- Split cards ---------- */
.split-cards {
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.split-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.split-card--tint {
  background: var(--tint);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}

.split-card--tint::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 5px;
  background: var(--gold-bar);
  border-radius: 3px;
}

.split-card-body h2 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  color: var(--blue-deep);
  font-weight: 400;
}

.split-card-body h2 strong {
  font-family: var(--font-sans);
  font-weight: 700;
}

.split-card-body h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.split-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.98rem;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--blue-deep);
}

/* ---------- Partners ---------- */
.partners {
  max-width: 1280px;
  margin: 20px auto 100px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.partners-media {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle 88px at 100% 50%, transparent 87px, #000 88px);
  mask-image: radial-gradient(circle 88px at 100% 50%, transparent 87px, #000 88px);
}

.partners-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.partners-copy {
  text-align: center;
  padding: 20px 12px;
}

.partners-title {
  margin: 0 0 22px;
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: #2a2f36;
}

.partners-copy p {
  margin: 0 auto 28px;
  max-width: 36ch;
  font-family: var(--font-serif);
  color: #4a515a;
  font-size: 1.05rem;
}

/* ---------- Ideas ---------- */
.ideas {
  background: var(--charcoal);
  color: #fff;
  padding: 72px 0 80px;
}

.ideas-header,
.ideas-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.ideas-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
}

.ideas-header h2 {
  margin: 0;
  font-size: var(--title-section);
  letter-spacing: 0.04em;
}

.ideas-more {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.ideas-more:hover {
  text-decoration: underline;
}

.ideas-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
}

.ideas-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ideas-cats button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ideas-cats button.is-active,
.ideas-cats button:hover {
  color: #fff;
}

.ideas-carousel {
  position: relative;
  min-width: 0;
}

.ideas-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 48px 12px;
  scrollbar-width: none;
}

.ideas-track::-webkit-scrollbar {
  display: none;
}

.idea-card {
  flex: 0 0 min(420px, 78%);
  scroll-snap-align: start;
  display: none;
}

.idea-card > a {
  color: inherit;
  text-decoration: none;
}

.idea-card > a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.idea-card.is-visible {
  display: block;
  animation: cardFade 0.45s ease both;
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.idea-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.idea-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.idea-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.ideas-nav {
  position: absolute;
  top: 28%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ideas-nav--prev {
  left: 0;
}

.ideas-nav--next {
  right: 0;
}

.ideas-nav:hover {
  background: #ffd84a;
}

/* ---------- Newsletter ---------- */
.newsletter-band {
  position: relative;
  padding: 0 20px;
  margin-top: 0;
}

.newsletter-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 88px;
  background: var(--charcoal);
  z-index: 0;
}

.newsletter {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow-soft);
}

.newsletter h2 {
  margin: 0 0 14px;
  font-size: var(--title-section);
  letter-spacing: 0.02em;
  color: var(--charcoal);
}

.newsletter > p {
  margin: 0 0 22px;
  max-width: 52ch;
  color: var(--charcoal);
}

.newsletter-form {
  display: flex;
  max-width: 560px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  outline: none;
  min-width: 0;
}

.newsletter-form .btn {
  border-radius: 0;
  min-width: 120px;
}

.newsletter-fine {
  margin: 14px 0 0;
  font-size: 0.72rem;
  color: rgba(45, 50, 58, 0.75);
  max-width: 62ch;
}

/* ---------- Videos ---------- */
.videos {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 28px 40px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0;
  font-size: var(--title-section);
  letter-spacing: 0.03em;
  color: var(--charcoal);
}

.section-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--charcoal);
}

.section-link:hover {
  text-decoration: underline;
}

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

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.video-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.video-card h3 a {
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-card h3 a:hover {
  color: var(--blue);
}

.video-card p {
  margin: 0;
  color: #3d4450;
  font-size: 0.95rem;
}

.byline {
  margin-top: 12px !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}

/* ---------- Facts ---------- */
.facts {
  max-width: 1240px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.facts-box {
  background: var(--sand);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}

.facts-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 36px;
}

.facts-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: var(--title-section);
  font-weight: 400;
  color: #2f343c;
}

.facts-caption {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.facts-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.facts-grid dt {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  color: #2f343c;
  margin-bottom: 6px;
}

.facts-grid dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- About more ---------- */
.about-more {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 28px 96px;
}

.about-more > h2 {
  margin: 0 0 32px;
  font-size: var(--title-section);
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}

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

.about-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.about-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--charcoal);
}

.about-card p {
  margin: 0 0 14px;
  color: #4a515a;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate);
  color: #fff;
  padding: 72px 28px max(48px, env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  text-decoration: none;
  color: #fff;
  line-height: 1.15;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.footer-mission {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.45;
}

.footer-phone {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

.footer-phone a {
  color: #fff;
  text-decoration: none;
}

.footer-phone a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav,
.footer-secondary,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}

.footer-nav a,
.footer-secondary a,
.footer-legal a {
  color: #fff;
  text-underline-offset: 3px;
}

.footer-nav a,
.footer-secondary a {
  text-decoration: underline;
}

.footer-legal {
  font-size: 0.9rem;
  opacity: 0.92;
}

.footer-legal a {
  text-decoration: underline;
}

.footer-right hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  margin: 8px 0 20px;
}

.copyright {
  margin: 18px 0 0;
  font-size: 0.9rem;
  opacity: 0.8;
  font-family: var(--font-serif);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .split-cards,
  .partners,
  .ideas-layout,
  .facts-grid,
  .video-grid,
  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .split-card--tint {
    border-radius: var(--radius-lg);
  }

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

  .partners-media {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .ideas-cats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .footer-top-row {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .mega-inner,
  .mega-inner--ideas {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px;
  }

  .mega-col--border {
    border-right: 0;
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 8px 0 0;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    z-index: 3;
  }

  .page-home .primary-nav {
    background: var(--yellow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-item-wrap {
    flex-direction: column;
    width: 100%;
  }

  .nav-item-wrap + .nav-item-wrap::before,
  .nav-item-wrap:has(+ .nav-item-wrap .nav-item.is-active)::after {
    display: none;
  }

  .nav-item {
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 14px 18px;
    font-size: 1.05rem;
  }

  .nav-item.is-active::after {
    display: none;
  }

  .site-header.is-mega-open .mega-panels {
    top: var(--mega-top, var(--header-h));
  }

  .site-header.is-mega-open .primary-nav.is-open {
    box-shadow: none;
    border-bottom: 0;
  }

  .site-header.is-mega-open .mega-panel:not([hidden]) {
    max-height: calc(100dvh - var(--mega-top, var(--header-h)) - 8px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mega-inner,
  .mega-inner--ideas {
    grid-template-columns: 1fr;
    padding: 20px 18px 28px;
    gap: 24px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .hero {
    border-radius: 28px;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: min(78vh, 720px);
    clip-path: inset(0 50% 0 50% round 28px);
  }

  .hero-content {
    left: 16px;
    right: 16px;
    bottom: 20px;
    max-width: none;
  }

  .hero-wrap.is-revealed .hero {
    clip-path: inset(0 0 0 0 round 28px);
  }

  .hero-reveal {
    border-radius: 28px;
  }

  .hero-controls {
    right: 12px;
  }

  .mission {
    padding: 64px 22px 48px;
  }

  .facts-grid,
  .video-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .btn {
    min-height: 48px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .site-footer {
    padding: 48px 20px max(32px, env(safe-area-inset-bottom));
  }

  .footer-logo {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .mega-feature-card {
    max-width: none;
  }
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #f4f2ee;
  border-top: 1px solid rgba(45, 50, 58, 0.12);
  box-shadow: 0 -8px 32px rgba(26, 29, 35, 0.08);
  padding: 28px 32px max(28px, env(safe-area-inset-bottom));
  animation: cookieUp 0.35s ease both;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none !important;
}

@keyframes cookieUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.cookie-copy {
  flex: 1;
  min-width: 0;
  color: #2f343c;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-copy p {
  margin: 0 0 12px;
}

.cookie-copy p:last-child {
  margin-bottom: 0;
}

.cookie-copy a {
  color: inherit;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  align-items: center;
}

.cookie-btn {
  appearance: none;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-btn--outline {
  background: #fff;
  color: #2f343c;
  border: 1px solid #2f343c;
}

.cookie-btn--outline:hover {
  background: #f8f8f8;
}

.cookie-btn--solid {
  background: #2f343c;
  color: #fff;
  border: 1px solid #2f343c;
}

.cookie-btn--solid:hover {
  background: #1f242c;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(26, 29, 35, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
}

.cookie-modal-panel {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.cookie-modal-panel h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #2f343c;
}

.cookie-modal-panel > p {
  margin: 0 0 20px;
  color: #5c6570;
  font-size: 0.95rem;
}

.cookie-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #2f343c;
  cursor: pointer;
}

.cookie-option input {
  margin-top: 3px;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 860px) {
  .cookie-banner {
    padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

/* ========== Site-wide breadcrumb + language meta ========== */
.site-meta,
.pl-topmeta {
  background: #fff;
  border-bottom: 1px solid rgba(26, 29, 35, 0.07);
}

/* Places pages: crumb bar matches cream nav */
.page-places .site-meta,
.page-places .pl-topmeta {
  background: #f5f3ed;
}

/* Progress pages: crumb bar matches colored nav/banner */
.page-progress .site-meta,
.page-progress .pl-topmeta,
.page-progress .site-crumb,
.page-progress .pl-crumb {
  background: var(--pg-blue, #81c9f3);
}

.page-progress-infectious .site-meta,
.page-progress-infectious .pl-topmeta,
.page-progress-infectious .site-crumb,
.page-progress-infectious .pl-crumb {
  background: #ff9c75;
}

.page-progress-economic .site-meta,
.page-progress-economic .pl-topmeta,
.page-progress-economic .site-crumb,
.page-progress-economic .pl-crumb {
  background: #9cd9c5;
}

.page-progress-ai .site-meta,
.page-progress-ai .pl-topmeta,
.page-progress-ai .site-crumb,
.page-progress-ai .pl-crumb {
  background: #ebcb00;
}

.site-meta-inner,
.pl-topmeta-inner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}

@media (min-width: 800px) {
  .site-meta-inner,
  .pl-topmeta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .pl-topmeta .pl-crumb,
  .site-meta .site-crumb {
    order: 1;
    min-width: 0;
  }

  .pl-topmeta .pl-lang,
  .site-meta .site-lang {
    order: 2;
    flex-shrink: 0;
    text-align: right;
  }
}

.site-crumb,
.pl-crumb {
  width: 100%;
  margin: 0;
  padding: 0.95rem 0;
  background: #fff;
  box-sizing: border-box;
}

.page-places .site-crumb,
.page-places .pl-crumb {
  background: #f5f3ed;
}

.site-crumb ol,
.pl-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  width: var(--pl-width, min(1200px, 94vw));
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--pl-pad, clamp(16px, 3vw, 28px));
  list-style: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #8a9098;
  box-sizing: border-box;
}

.pl-topmeta .pl-crumb,
.pl-topmeta .site-crumb,
.site-meta .pl-crumb,
.site-meta .site-crumb {
  width: auto;
  padding: 0;
  background: transparent;
}

.pl-topmeta .pl-crumb ol,
.pl-topmeta .site-crumb ol,
.site-meta .pl-crumb ol,
.site-meta .site-crumb ol {
  width: auto;
  margin: 0;
  padding: 0;
}

.site-crumb li,
.pl-crumb li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-crumb li:not(:last-child)::after,
.pl-crumb li:not(:last-child)::after {
  content: "/";
  color: #c5c9cf;
  font-weight: 400;
  font-size: 0.85em;
  margin-right: 0.45rem;
}

.site-crumb a,
.pl-crumb a {
  color: #1a1d23;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s ease;
}

.site-crumb a:hover,
.pl-crumb a:hover {
  color: var(--blue, #00558c);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-bottom-color: transparent;
}

.site-crumb [aria-current="page"],
.pl-crumb [aria-current="page"] {
  color: #8a9098;
  font-weight: 400;
  pointer-events: none;
}

.site-lang,
.pl-lang {
  margin: 0;
  padding: 0;
  width: auto;
  max-width: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6a7078;
}

.site-lang a,
.pl-lang a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}

.site-lang a.is-active,
.site-lang a[aria-current="true"],
.pl-lang a.is-active,
.pl-lang a[aria-current="true"] {
  color: #1a1d23;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.site-lang-sep,
.pl-lang-sep {
  margin: 0 0.4rem;
  color: #b4b9c0;
}

main > .pl-lang,
main > .site-lang {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.95rem max(var(--pl-pad, clamp(16px, 3vw, 28px)), calc((100% - var(--pl-width, min(1200px, 94vw))) / 2 + var(--pl-pad, clamp(16px, 3vw, 28px))));
  background: #f5f3ed;
  border-bottom: 1px solid rgba(26, 29, 35, 0.07);
  box-sizing: border-box;
}

/* ========== Site-wide Optimist newsletter ========== */
:root {
  --subscribe-width: min(1200px, 94vw);
  --subscribe-pad: clamp(16px, 3vw, 28px);
}

.site-subscribe,
.pl-subscribe,
.pl-subscribe-inline,
.ow-subscribe,
.pg-subscribe {
  padding: 2.75rem 0;
  background: transparent;
}

.site-subscribe-shell,
.site-subscribe > .pl-shell,
.site-subscribe > .ow-shell,
.site-subscribe > .pg-shell,
.pl-subscribe > .pl-shell,
.pl-subscribe-inline > .pl-shell,
.ow-subscribe > .ow-shell,
.pg-subscribe > .pg-shell {
  width: var(--subscribe-width) !important;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--subscribe-pad);
  padding-right: var(--subscribe-pad);
  box-sizing: border-box;
}

.site-subscribe-card,
.pl-subscribe-card,
.pl-subscribe-inner,
.ow-subscribe-card,
.pg-subscribe-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.75rem 2.25rem;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 168px;
  margin: 0;
  padding: 2.25rem 2.5rem;
  border-radius: 22px;
  background: var(--yellow, #f5c400) !important;
  color: var(--ink, #1a1d23);
  box-sizing: border-box;
}

.pl-subscribe-card.pl-subscribe-inner {
  display: grid;
  min-height: 168px;
  padding: 2.25rem 2.5rem;
  border-radius: 22px;
  background: var(--yellow, #f5c400) !important;
}

.site-subscribe h2,
.pl-subscribe h2,
.ow-subscribe-card h2,
.pg-subscribe-card h2,
.site-subscribe-card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink, #1a1d23);
  line-height: 1.15;
}

.site-subscribe p,
.pl-subscribe p,
.ow-subscribe-card p,
.pg-subscribe-card p,
.site-subscribe-card p {
  margin: 0;
  max-width: 38ch;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #2a2f36;
}

.site-subscribe-form,
.pl-subscribe-form,
.ow-subscribe-form,
.pg-subscribe-form {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}

.site-subscribe-form input,
.pl-subscribe-form input,
.ow-subscribe-form input,
.pg-subscribe-form input {
  flex: 1 1 180px;
  min-height: 52px;
  border: 0 !important;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  background: #fff !important;
  color: var(--ink, #1a1d23);
  font-family: var(--font-sans);
  font-size: 1rem;
  box-sizing: border-box;
}

.site-subscribe-form input::placeholder,
.pl-subscribe-form input::placeholder,
.ow-subscribe-form input::placeholder,
.pg-subscribe-form input::placeholder {
  color: #8a9098;
}

.site-subscribe-form input:focus,
.pl-subscribe-form input:focus,
.ow-subscribe-form input:focus,
.pg-subscribe-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 29, 35, 0.25);
}

.site-subscribe-form button,
.pl-subscribe-form button,
.ow-subscribe-form button,
.pg-subscribe-form button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  padding: 0.7rem 1.35rem;
  background: #2a2f36 !important;
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  filter: none !important;
}

.site-subscribe-form button:hover,
.pl-subscribe-form button:hover,
.ow-subscribe-form button:hover,
.pg-subscribe-form button:hover {
  background: #111 !important;
  filter: none !important;
}

@media (max-width: 960px) {
  .site-subscribe-card,
  .pl-subscribe-card,
  .pl-subscribe-inner,
  .ow-subscribe-card,
  .pg-subscribe-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.75rem 1.5rem;
  }

  .site-subscribe p,
  .pl-subscribe p,
  .ow-subscribe-card p,
  .pg-subscribe-card p,
  .site-subscribe-card p {
    max-width: none;
  }

  .site-subscribe-form,
  .pl-subscribe-form,
  .ow-subscribe-form,
  .pg-subscribe-form {
    flex-direction: column;
  }

  .site-subscribe-form input,
  .pl-subscribe-form input,
  .ow-subscribe-form input,
  .pg-subscribe-form input,
  .site-subscribe-form button,
  .pl-subscribe-form button,
  .ow-subscribe-form button,
  .pg-subscribe-form button {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
    --title-page: clamp(1.7rem, 8vw, 2.25rem);
    --title-section: clamp(1.35rem, 5.5vw, 1.85rem);
    --radius-hero: 24px;
    --radius-lg: 24px;
  }

  .header-inner {
    padding: 0 12px;
    gap: 12px;
  }

  .logo {
    font-size: 1.28rem;
  }

  .hero-wrap {
    padding: 0 8px 20px;
  }

  .hero {
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    clip-path: inset(0 50% 0 50% round 20px);
  }

  .hero-wrap.is-revealed .hero {
    clip-path: inset(0 0 0 0 round 20px);
  }

  .hero-reveal {
    left: 8px;
    right: 8px;
    bottom: 20px;
    border-radius: 20px;
  }

  .hero-content h1 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .mission {
    padding: 48px 16px 36px;
  }

  .cookie-modal {
    padding: 12px;
    align-items: end;
  }

  .cookie-modal-panel {
    padding: 20px 16px;
    border-radius: 12px 12px 0 0;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

  .cookie-modal-actions .cookie-btn {
    width: 100%;
  }

  .site-subscribe-card,
  .pl-subscribe-card,
  .pl-subscribe-inner,
  .ow-subscribe-card,
  .pg-subscribe-card {
    padding: 1.35rem 1.1rem;
  }
}

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

  .hero-reveal {
    display: none !important;
  }

  .hero {
    clip-path: none !important;
    transform: none !important;
  }
}
