:root {
  --brand: #1f2464;
  --brand-dark: #131742;
  --brand-mid: #2f3889;
  --ink: #15202b;
  --text: #344253;
  --muted: #f3f5f7;
  --line: #dfe5eb;
  --white: #ffffff;
  --gold: #d7a83a;
  --shadow: 0 18px 60px rgba(9, 22, 36, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  background: var(--white);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 229, 235, 0.85);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: #697789;
  font-size: 12px;
  line-height: 1.25;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
  color: var(--brand);
  border-color: var(--gold);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -5px;
}

.menu-lines::after {
  top: 5px;
}

.mobile-nav {
  display: none;
}

.lang-toggle {
  width: 48px;
  height: 38px;
  color: var(--ink);
  font-weight: 800;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0f1720;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 18, 28, 0.88), rgba(10, 18, 28, 0.54) 48%, rgba(10, 18, 28, 0.18)),
    linear-gradient(0deg, rgba(10, 18, 28, 0.72), rgba(10, 18, 28, 0.02) 45%);
}

.hero-content {
  position: relative;
  width: min(820px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 78px) clamp(52px, 11vh, 112px);
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  width: min(690px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--brand);
}

.button.primary:hover {
  background: var(--brand-mid);
}

.button.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--brand-dark);
  color: var(--white);
}

.stats-band div {
  min-height: 128px;
  padding: 26px clamp(18px, 3vw, 40px);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-band strong {
  display: block;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.stats-band span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 70px);
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section p {
  font-size: 17px;
}

.split,
.international,
.join {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 760px;
}

.image-pair {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 16px;
  align-items: end;
}

.image-pair img,
.wide-photo img,
.inline-photo,
.org img,
.capability-grid article img {
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-pair img:first-child {
  height: 410px;
}

.image-pair img:last-child {
  height: 300px;
}

.muted {
  background: var(--muted);
}

.directory {
  background: var(--white);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.directory-grid a {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.directory-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 36, 100, 0.32);
  box-shadow: var(--shadow);
}

.directory-grid span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--gold);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.directory-grid strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.directory-grid p {
  margin: 10px 0 0;
  font-size: 15px;
}

.section-heading {
  max-width: 940px;
  margin-bottom: 34px;
}

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

.capability-grid article {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capability-grid article img {
  width: 100%;
  height: 230px;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.capability-grid h3 {
  margin: 20px 20px 8px;
  color: var(--ink);
  font-size: 22px;
}

.capability-grid p {
  margin: 0 20px 24px;
}

.international {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.wide-photo img {
  width: 100%;
  height: min(62vw, 620px);
}

.inline-photo {
  width: 100%;
  height: 210px;
  margin-top: 18px;
}

.impact {
  background: var(--brand-dark);
}

.impact h2 {
  color: var(--white);
}

.impact .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.74);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline article {
  min-height: 250px;
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.timeline span {
  display: block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.timeline p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.org {
  text-align: center;
}

.org .section-heading {
  margin-inline: auto;
}

.org img {
  width: min(1100px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
}

.join {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(19, 23, 66, 0.94), rgba(31, 36, 100, 0.84)),
    url("assets/community-1.jpg") center / cover;
}

.join h2,
.join .eyebrow {
  color: var(--white);
}

.join p {
  color: rgba(255, 255, 255, 0.86);
}

.contact-panel {
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel h3 {
  margin: 0 0 20px;
  font-size: 26px;
}

.contact-panel p {
  display: grid;
  gap: 4px;
  margin: 18px 0;
  color: var(--text);
}

.contact-panel strong {
  color: #697789;
  font-size: 13px;
}

.contact-panel a {
  color: var(--brand);
  font-size: 22px;
  font-weight: 900;
}

.site-footer {
  color: rgba(255, 255, 255, 0.74);
  background: #0d131a;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(150px, 0.8fr) minmax(160px, 0.7fr) minmax(180px, 0.8fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(42px, 7vw, 72px) clamp(18px, 5vw, 70px);
}

.footer-brand img {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  line-height: 1.25;
}

.footer-brand p {
  margin: 8px 0 16px;
}

.footer-brand a,
.footer-menu a,
.back-top {
  color: var(--white);
  font-weight: 800;
}

.footer-brand a:hover,
.footer-menu a:hover,
.back-top:hover {
  color: var(--gold);
}

.footer-menu,
.footer-social,
.footer-qr {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-menu h2,
.footer-social h2,
.footer-qr h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 16px;
}

.footer-menu a {
  width: fit-content;
  color: rgba(255, 255, 255, 0.74);
}

.footer-qr img {
  width: 148px;
  height: 148px;
  padding: 8px;
  background: var(--white);
  border-radius: 8px;
  object-fit: contain;
}

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

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.social-links a:hover {
  color: var(--brand-dark);
  background: var(--gold);
  border-color: var(--gold);
}

.back-top {
  width: fit-content;
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 5vw, 70px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 0 clamp(18px, 5vw, 70px) clamp(44px, 7vw, 76px);
  overflow: hidden;
  color: var(--white);
  background: var(--brand-dark);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 23, 66, 0.9), rgba(19, 23, 66, 0.48));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--white);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.1;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 780px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.subnav {
  position: sticky;
  top: 74px;
  z-index: 12;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px clamp(18px, 5vw, 70px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.subnav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.subnav a:hover {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

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

.info-card,
.mission-card,
.honor-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.info-card h3,
.mission-card h3,
.honor-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 23px;
}

.info-card p,
.mission-card p,
.honor-card p {
  margin: 0;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--muted);
}

.profile-block {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
}

.profile-block img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.page-photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.source-note {
  padding: 18px 20px;
  color: #607086;
  font-size: 14px;
  background: var(--muted);
  border-radius: 8px;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

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

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: clamp(18px, 4vw, 56px);
    left: clamp(18px, 4vw, 56px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-height: 0;
    padding: 0 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    border: 0 solid var(--line);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 40px rgba(9, 22, 36, 0.14);
    transition:
      max-height 180ms ease,
      padding 180ms ease,
      border-width 180ms ease;
  }

  .site-header.menu-open .mobile-nav {
    max-height: 260px;
    padding: 12px;
    border-width: 1px;
  }

  .mobile-nav a {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    border-radius: 8px;
    background: var(--muted);
  }

  .mobile-nav a:hover {
    color: var(--white);
    background: var(--brand);
  }

  .stats-band,
  .capability-grid,
  .timeline,
  .directory-grid,
  .content-grid,
  .page-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .international,
  .join,
  .profile-block {
    grid-template-columns: 1fr;
  }

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

  .wide-photo img {
    height: 440px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .mobile-menu-toggle {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .mobile-menu-toggle span[data-i18n] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .mobile-nav {
    left: 0;
    right: 0;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    min-height: calc(100vh - 66px);
  }

  .hero-content {
    margin-bottom: 42px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .button {
    width: 100%;
  }

  .stats-band,
  .capability-grid,
  .timeline,
  .directory-grid,
  .content-grid,
  .page-photo-grid {
    grid-template-columns: 1fr;
  }

  .subnav {
    top: 66px;
  }

  .stats-band div {
    min-height: 108px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .image-pair {
    grid-template-columns: 1fr;
  }

  .image-pair img:first-child,
  .image-pair img:last-child,
  .wide-photo img,
  .inline-photo {
    height: 280px;
  }

  .timeline article {
    min-height: auto;
  }

  .site-footer {
    display: block;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}
