@font-face {
  font-family: "Roca One";
  src: url("../fonts/RocaOne-Rg.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f0ebe7;
  --ink: #000;
  --muted: #515151;
  --white: #fff;
  --teal: #017272;
  --coral: #d16060;
  --gold: #efbd40;
  --action: #dd9933;
  --magenta: #9d3360;
  --blue: #3a5fcd;
  --violet: #6241eb;
  --max: 1311px;
  --header-h: 112px;
  --radius: 30px;
  --shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 19px;
  line-height: 28px;
  font-weight: 400;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, .display {
  font-family: "Roca One", "IBM Plex Sans", serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}
p { margin: 0 0 1em; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: #fff;
  padding: 8px 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.solid-header .site-header {
  position: sticky;
  top: 0;
  background: #0b0b0b;
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 42px;
  min-height: var(--header-h);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo img {
  height: 76px;
  width: auto;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  transition: opacity 0.3s ease;
}
.nav a:hover,
.nav a.is-active { color: #fff; opacity: 0.75; }

.search-btn,
.menu-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
}
.search-btn:hover,
.menu-btn:hover { background: rgba(0, 0, 0, 0.35); }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 22px;
  background: #fff;
  color: #111;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: background 0.7s ease, color 0.7s ease, transform 0.3s ease;
}
.btn:hover,
.btn:focus { background: #111; color: var(--cream); transform: scale(0.9); }
.btn:active { transform: scale(0.9); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: #111; color: var(--cream); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #111; color: var(--cream); }

/* Hero carousel */
.hero {
  position: relative;
  min-height: 100dvh;
  color: #fff;
  overflow: hidden;
  background: #111;
}
.hero-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-track {
  display: flex;
  height: 100%;
  transition: transform 500ms ease;
  will-change: transform;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 40%, rgba(0,0,0,0.45) 100%);
}
.hero-copy {
  position: absolute;
  z-index: 2;
  left: 56px;
  right: 56px;
  bottom: 56px;
  max-width: 920px;
}
.hero-copy h2 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 51px;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 28px;
  max-width: 16em;
}
.hero-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 88px;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-nav.prev { left: 0; }
.hero-nav.next { right: 0; }
.hero-nav:hover { background: #000; transform: translateY(-50%) scale(0.9); }

/* Videos */
.videos {
  background: #000;
  color: #fff;
  padding: 64px 0 80px;
}
.videos-head {
  max-width: var(--max);
  margin: 0 auto 28px;
  padding: 0 42px;
}
.videos-head .kicker {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 33px;
  font-weight: 400;
  line-height: 1.15;
}
.videos-head h2 {
  font-family: "Roca One", serif;
  font-size: 51px;
  line-height: 1.1;
  color: #fff;
}
.video-stage {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}
.video-viewport {
  overflow: hidden;
  padding: 0 56px;
}
.video-track {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  transition: transform 500ms ease;
  will-change: transform;
}
.video-card {
  flex: 0 0 78%;
  position: relative;
  opacity: 0.45;
  transition: opacity 500ms ease;
}
.video-card.is-active { opacity: 1; }
.video-card .media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}
.video-card iframe,
.video-card .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #111;
  display: block;
}
.video-card iframe[hidden] { display: none; }
.video-card h3 {
  margin: 16px 0 12px;
  color: #fff;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 25px;
  max-width: 90%;
}
.video-card .see { margin-top: 8px; }
.video-stage .hero-nav { height: 48px; width: 48px; background: transparent; font-size: 28px; }

/* News */
.news {
  padding: 72px 42px 80px;
  background: var(--cream);
}
.news-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
  align-items: start;
}
.story-card { color: inherit; display: block; }
.story-card:hover { color: inherit; }
.story-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e4ddd6;
  margin-bottom: 16px;
  transition: transform 0.7s ease;
}
.story-card a:hover .thumb { transform: scale(1.03); }
.story-card.no-img .thumb { display: none; }
.story-card h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-size: 33px;
  line-height: 1.12;
  margin-bottom: 16px;
}
.story-card h3 a { color: inherit; }
.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 500;
  background: #000;
  transition: transform 0.3s ease;
}
.chip:hover,
.chip:focus { transform: scale(0.9); color: #fff; }
.chip.agents-of-change { background: var(--gold); color: #1a1a1a; }
.chip.alma-in-action { background: var(--action); }
.chip.binational-agenda { background: var(--magenta); }
.chip.mexicans-in-us { background: var(--teal); }
.chip.politics,
.chip.culture { background: #000; }
.chip.americans-in-mx { background: var(--coral); }
.chip.economy { background: var(--blue); }
.chip.news { background: var(--violet); }
.byline {
  font-size: 13px;
  line-height: 1.3;
  color: #222;
  text-align: right;
  white-space: nowrap;
}
.news-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.news-more .btn { min-width: 120px; justify-content: center; }

/* Quote */
.quote {
  min-height: 520px;
  background: #5b4634 center / cover no-repeat;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 48px;
}
.quote blockquote {
  margin: 0;
  max-width: 1100px;
  font-family: "Roca One", serif;
  font-size: 41px;
  line-height: 1.2;
}
.quote cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: "Roca One", serif;
  font-size: 33px;
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  background: var(--cream);
}
.about-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-copy {
  padding: 72px 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-copy h2 {
  font-size: 51px;
  margin-bottom: 8px;
}
.about-copy .sub {
  font-family: "Roca One", serif;
  font-size: 41px;
  line-height: 1.1;
  margin-bottom: 28px;
}
.about-copy p {
  font-size: 19px;
  line-height: 28px;
  max-width: 52ch;
}
.about-copy .btn { align-self: flex-end; margin-top: 28px; }

/* Footer */
.site-footer {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 48px 48px 28px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -80px;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.16), transparent 68%);
  pointer-events: none;
}
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
  position: relative;
}
.footer-logo img { height: 92px; width: auto; }
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.footer-grid h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 25px;
  font-weight: 400;
  margin-bottom: 16px;
}
.footer-grid p { margin-bottom: 18px; }
.subscribe {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.subscribe input {
  flex: 1;
  min-width: 240px;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  padding: 12px 18px;
  outline: none;
}
.subscribe input::placeholder { color: rgba(255,255,255,0.7); }
.subscribe .btn { background: #fff; color: #111; box-shadow: none; }
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-list a {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.footer-list a::before {
  content: "i";
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-style: italic;
  font-family: Georgia, serif;
}
.socials {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.socials a {
  color: #fff;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.legal {
  text-align: center;
  color: #bbb;
  font-size: 13px;
  margin-top: 48px;
  position: relative;
}

/* Inner pages */
.page-hero {
  min-height: 52dvh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: #017272 center / cover no-repeat;
  padding: 140px 24px 72px;
  position: relative;
}
.page-hero.photo {
  background-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.28)), url("../img/Mex-usa.webp");
  min-height: 72dvh;
}
.page-hero.coral { background: var(--coral); }
.page-hero.teal { background: var(--teal); }
.page-hero.dark { background: #111; }
.page-hero h1 {
  font-size: 64px;
  color: #fff;
}
.page-hero p {
  max-width: 70ch;
  margin: 16px auto 0;
  font-size: 19px;
  line-height: 1.45;
}

.page-body {
  padding: 64px 48px 96px;
  max-width: 1100px;
  margin: 0 auto;
}
.page-body.wide { max-width: 1280px; }
.lede {
  text-align: center;
  font-size: 22px;
  line-height: 1.45;
  margin-bottom: 36px;
}

.values {
  background: #fff;
  text-align: center;
  padding: 56px 24px 72px;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 28px auto 0;
}
.value img { width: 140px; height: 140px; margin: 0 auto 12px; object-fit: contain; }
.value h3 { font-family: "Roca One", serif; font-size: 33px; }
.value.collaboration h3 { color: var(--teal); }
.value.equity h3 { color: var(--coral); }
.value.pride h3 { color: var(--blue); }

.banner-title {
  min-height: 420px;
  background: center / cover no-repeat;
  display: grid;
  place-items: end center;
  padding: 48px;
  color: #fff;
}
.banner-title h2 {
  font-size: 64px;
  color: #fff;
  text-align: center;
}

.prose {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  font-size: 19px;
  line-height: 1.55;
}
.prose p { margin-bottom: 1.1em; }
.cta-row { text-align: center; padding: 12px 24px 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 48px 80px;
}
.contact-grid h2 {
  font-family: "Roca One", serif;
  font-size: 33px;
  margin-bottom: 10px;
}
.contact-grid p { margin: 0; }

.form {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}
.form label { display: grid; gap: 8px; font-weight: 500; }
.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid #cfc8c2;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
}
.form input:focus,
.form select:focus,
.form textarea:focus { border-color: #111; }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { text-align: center; margin-bottom: 28px; }
.form .ok {
  display: none;
  background: #e7f3f1;
  border-radius: 12px;
  padding: 16px;
}
.form.is-sent .ok { display: block; }
.form.is-sent .fields { display: none; }

.people-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.people-tabs button {
  background: transparent;
  border: 0;
  padding: 8px 14px;
  font-size: 18px;
  color: #666;
}
.people-tabs button.is-on { color: #111; font-weight: 600; }
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.person {
  text-align: center;
}
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  background: #ddd;
}
.person h3 { font-family: "IBM Plex Sans", sans-serif; font-size: 22px; margin-bottom: 8px; }
.person p { font-size: 15px; line-height: 1.4; color: #333; }

.article {
  max-width: 860px;
  margin: 0 auto;
  padding: 160px 24px 80px;
}
.article .cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  margin: 24px 0 28px;
}
.article h1 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 41px;
  line-height: 1.15;
}
.article-body p { margin-bottom: 1em; }
.article-body img { margin: 20px 0; }

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  padding: 10vh 24px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-panel {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 16px;
  padding: 24px;
  transform: translate3d(0, 24px, 0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.search-overlay.is-open .search-panel {
  transform: none;
  opacity: 1;
}
.search-panel input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.search-results { display: grid; gap: 10px; max-height: 50vh; overflow: auto; }
.search-results a { color: #111; display: block; padding: 8px 0; border-bottom: 1px solid #ddd; }

.mobile-nav {
  display: grid;
  gap: 22px;
  align-content: start;
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #111;
  color: #fff;
  padding: 120px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a { color: #fff; font-size: 28px; }

@media (max-width: 1100px) {
  .news-grid, .people-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy h2, .videos-head h2, .about-copy h2 { font-size: 37px; }
  .about-split, .contact-grid { grid-template-columns: 1fr; }
  .about-split img { min-height: 360px; }
}

@media (max-width: 800px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .site-header { padding: 12px 16px; }
  .logo img { height: 52px; }
  .hero-copy { left: 20px; right: 20px; bottom: 28px; }
  .hero-copy h2 { font-size: 28px; }
  .news, .page-body, .contact-grid { padding-left: 16px; padding-right: 16px; }
  .news-grid, .people-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote blockquote { font-size: 26px; }
  .page-hero h1, .banner-title h2 { font-size: 36px; }
  .video-viewport { padding: 0 16px; }
  .video-card { flex-basis: 100%; }
  .video-stage { min-height: 280px; }
}

/* Elementor-matching entrance animations */
.will-anim { visibility: hidden; }
.animated {
  animation-duration: 1.25s;
  animation-fill-mode: both;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate3d(0, -40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-40px, 0, 0); }
  to { opacity: 1; transform: none; }
}
.fadeIn { animation-name: fadeIn; }
.fadeInUp { animation-name: fadeInUp; }
.fadeInDown { animation-name: fadeInDown; }
.fadeInLeft { animation-name: fadeInLeft; }

.socials a { transition: transform 0.3s ease, opacity 0.3s ease; }
.socials a:hover { transform: scale(0.9); }

.people-tabs button { transition: color 0.3s ease, transform 0.3s ease; }
.person img { transition: transform 0.7s ease; }
.person:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animated,
  .hero-track,
  .video-track,
  .video-card,
  .btn,
  .chip,
  .search-overlay,
  .search-panel,
  .mobile-nav,
  .story-card .thumb,
  .person img {
    animation: none !important;
    transition: none !important;
  }
  .will-anim { visibility: visible; }
  .btn:hover,
  .chip:hover { transform: none; }
}
