:root {
  --blue: #0a7fd0;
  --blue-deep: #045a9a;
  --green: #2bbb55;
  --green-deep: #178a38;
  --ink: #071821;
  --ink-soft: #3d5566;
  --paper: #f4f9fc;
  --line: rgba(10, 127, 208, 0.16);
  --radius: 22px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-ar: "Cairo", sans-serif;
  --font-en: "Syne", "Cairo", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body[dir="ltr"] {
  font-family: var(--font-ar);
}

body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] .hero-brand-name,
body[dir="ltr"] .num {
  font-family: var(--font-en);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -120px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.skip-link:focus {
  top: 1rem;
}

/* Progress */
.progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform-origin: left center;
}

body[dir="rtl"] .progress i {
  transform-origin: right center;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 600px at 100% -5%, rgba(10, 127, 208, 0.16), transparent 55%),
    radial-gradient(800px 500px at -10% 40%, rgba(43, 187, 85, 0.12), transparent 50%),
    linear-gradient(180deg, #eef7fb, #f4f9fc 45%, #eaf5ef);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: fixed;
  top: 1rem;
  inset-inline: 1rem;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(244, 249, 252, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(244, 249, 252, 0.92);
  box-shadow: 0 16px 40px rgba(7, 24, 33, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue-deep);
  background: rgba(10, 127, 208, 0.08);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn,
.menu-btn {
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.menu-btn {
  width: 42px;
  padding: 0;
  display: none;
}

.lang-btn:hover,
.menu-btn:hover {
  background: rgba(10, 127, 208, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), filter 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.28);
}

.btn-nav {
  padding: 0.68rem 1.1rem;
  font-size: 0.86rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-mask {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
}

.hero-media img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 20, 32, 0.25) 0%, rgba(4, 20, 32, 0.15) 35%, rgba(4, 20, 32, 0.82) 100%),
    linear-gradient(100deg, rgba(4, 40, 70, 0.55), transparent 55%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: min(1200px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-logo {
  width: clamp(70px, 9vw, 110px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}

.hero-brand-name {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  padding-block: 0.05em 0.12em;
  background: linear-gradient(115deg, #fff 10%, #9de8ff 50%, #8dffb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: visible;
}

.hero-brand-name .char,
.hero-brand-name .word {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-kicker {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.7rem;
  max-width: 18ch;
  line-height: 1.3;
}

.lead {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  margin-bottom: 1.7rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-end: max(1.25rem, calc((100% - 1200px) / 2));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-scroll i {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--green), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: var(--blue-deep);
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

body[dir="ltr"] .marquee-track {
  animation-name: marqueeLtr;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@keyframes marqueeLtr {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
section {
  padding: 6rem 0;
  position: relative;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.section-head.centered {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  font-weight: 900;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.split-head .word,
.split-head .line {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

.split-head .char,
.split-line .word,
.split-line .line {
  display: inline-block;
  will-change: transform, opacity;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.quote {
  margin-top: 1.4rem;
  padding: 1.2rem 1.3rem;
  border-inline-start: 4px solid var(--green);
  background: linear-gradient(90deg, rgba(43, 187, 85, 0.1), transparent);
  font-weight: 800;
  font-size: 1.2rem;
}

.about-visual {
  position: relative;
  min-height: 480px;
}

.shot {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
}

.shot img {
  width: 100%;
  height: 125%;
  object-fit: cover;
  will-change: transform;
}

.shot-a {
  inset: 0 8% 12% 0;
  z-index: 1;
}

.shot-b {
  width: 46%;
  height: 46%;
  inset-inline-end: 0;
  bottom: 0;
  z-index: 2;
  outline: 10px solid var(--paper);
}

.about-badge {
  position: absolute;
  inset-inline-start: -8px;
  top: 12%;
  z-index: 3;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--blue), var(--green));
  color: #fff;
  box-shadow: 0 18px 40px rgba(10, 127, 208, 0.35);
}

.about-badge span {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.about-badge small {
  font-size: 0.75rem;
  font-weight: 700;
}

.clip-reveal {
  clip-path: inset(100% 0 0 0);
}

/* Impact */
.impact {
  padding: 0;
  background: linear-gradient(180deg, transparent, rgba(10, 127, 208, 0.06), transparent);
}

.impact-pin {
  padding: 5.5rem 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  padding: 1.8rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  text-align: center;
  transform-origin: center bottom;
}

.stat .num {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.45rem;
  background: linear-gradient(120deg, var(--blue-deep), var(--green-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Programs — stacked organized rows */
.programs-section {
  overflow: hidden;
}

.programs-list {
  display: grid;
  gap: 2.5rem;
}

.program-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.program-row:nth-child(even) {
  grid-template-columns: 1fr 1.05fr;
}

.program-row:nth-child(even) .program-media {
  order: 2;
}

body[dir="ltr"] .program-row:nth-child(even) .program-media {
  order: -1;
}

body[dir="rtl"] .program-row:nth-child(even) .program-media {
  order: -1;
}

.program-media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #d9eaf5;
}

.program-media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.program-copy {
  padding: 0.5rem 0.75rem;
}

.program-index {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.program-copy h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}

.program-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 127, 208, 0.08);
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid rgba(10, 127, 208, 0.12);
}

/* News */
.news[hidden] {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.nav-news[hidden],
.nav-news.hidden {
  display: none !important;
}

.news {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(43, 187, 85, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(10, 127, 208, 0.04), transparent);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.1rem;
}

.news-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: start;
  text-decoration: none;
  color: inherit;
  font: inherit;
  padding: 0;
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.35s;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 127, 208, 0.35);
  box-shadow: 0 22px 50px rgba(7, 24, 33, 0.1);
}

.news-card.featured {
  grid-row: span 2;
}

.news-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.news-card.featured .news-card-media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 280px;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.news-card:hover .news-card-media img {
  transform: scale(1.06);
}

.news-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
}

.news-card .cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 0.45rem;
}

.news-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  letter-spacing: -0.015em;
}

.news-card.featured h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.news-card .excerpt {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .more {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--green-deep);
}

/* Gallery strip */
.gallery-section {
  overflow: hidden;
  padding-bottom: 4rem;
}

.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 32vw);
  gap: 1rem;
  overflow-x: auto;
  padding-inline: max(1.25rem, calc((100vw - 1200px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.g-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
}

.g-item img {
  width: 100%;
  height: 115%;
  object-fit: cover;
}

.g-item figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(transparent, rgba(4, 20, 32, 0.75));
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  min-height: 190px;
  transition: border-color 0.25s, transform 0.3s var(--ease);
}

.value:hover {
  border-color: rgba(43, 187, 85, 0.45);
  transform: translateY(-4px);
}

.value .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(10, 127, 208, 0.12), rgba(43, 187, 85, 0.14));
  color: var(--blue-deep);
}

.value .icon svg {
  width: 22px;
  height: 22px;
}

.value h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.value p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Partners marquee — left → right, like top ticker */
.partners-section {
  padding-bottom: 4rem;
  overflow: hidden;
}

.partners-marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  background: linear-gradient(90deg, #0a3d5c 0%, #0b5f7a 45%, #0d6b4f 100%);
  border-block: none;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  direction: ltr;
  flex-direction: row;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.partners-track img {
  height: 92px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
  filter: brightness(1.05);
}

.footer-donate {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.footer-donate img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

.footer-donate .donate-account {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--ink);
  direction: ltr;
  unicode-bidi: isolate;
}

.footer-copy {
  display: inline-block;
  margin-top: 0.25rem;
  margin-inline-end: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-deep);
  cursor: pointer;
  transition: background 0.2s;
}

.footer-copy:hover {
  background: rgba(10, 127, 208, 0.08);
}

.footer-donate small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #eef6fa;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer .brand img {
  width: 56px;
  height: 56px;
}

.footer p {
  color: var(--ink-soft);
  margin-top: 0.85rem;
  max-width: 36ch;
}

.footer h4 {
  margin-bottom: 0.85rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.footer a {
  color: var(--ink-soft);
  font-weight: 700;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--blue-deep);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* Mobile panel */
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(4, 20, 32, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.mobile-panel.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sheet {
  position: absolute;
  top: calc(var(--nav-h) + 1.35rem);
  inset-inline: 1rem;
  background: #fff;
  border-radius: 20px;
  padding: 1.1rem;
  border: 1px solid var(--line);
  transform: translateY(-10px);
  transition: transform 0.3s var(--ease);
}

.mobile-panel.open .mobile-sheet {
  transform: none;
}

.mobile-sheet a {
  display: block;
  padding: 0.9rem 0.75rem;
  border-radius: 12px;
  font-weight: 800;
}

.mobile-sheet a:hover {
  background: rgba(10, 127, 208, 0.08);
}

/* Article modal */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.article-modal[hidden] {
  display: none;
}

.article-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 32, 0.62);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.article-sheet {
  position: relative;
  width: min(720px, 100%);
  max-height: min(90svh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transform-origin: center;
}

.article-close {
  position: sticky;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  float: inline-end;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  color: var(--ink);
}

.article-hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d7e8f3;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 1.5rem 1.6rem 2rem;
}

.article-meta {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

.article-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-body p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

/* SplitType helpers */
.line {
  overflow: hidden;
  display: block;
}

.word,
.char {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .partners-track,
  .hero-scroll i {
    animation: none !important;
  }

  .clip-reveal,
  .hero-mask {
    clip-path: none !important;
  }
}

@media (max-width: 980px) {
  .nav-links,
  .btn-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .about-grid,
  .footer-grid,
  .values-grid,
  .news-grid,
  .program-row,
  .program-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .program-row:nth-child(even) .program-media,
  body[dir="rtl"] .program-row:nth-child(even) .program-media,
  body[dir="ltr"] .program-row:nth-child(even) .program-media {
    order: 0;
  }

  .news-card.featured {
    grid-row: auto;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-visual {
    min-height: 380px;
  }

  .partners-track img {
    height: 72px;
    max-width: 110px;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-content {
    width: min(100% - 1.5rem, 1200px);
  }

  .nav {
    inset-inline: 0.6rem;
    top: 0.6rem;
  }

  .brand-text span {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    grid-auto-columns: minmax(240px, 78vw);
  }
}
