/*
Theme Name: Moroccan Sahrawi Signature V5.0
Author: OpenAI
Description: Premium multilingual civic platform for Moroccan Sahrawi Association in Finland.
Version: 5.0.3
*/

:root {
  --ink: #071211;
  --ink-2: #0e2421;
  --emerald: #0a806f;
  --emerald-2: #14b89e;
  --gold: #d6ad5b;
  --sand: #f4eadb;
  --paper: #fbf7ef;
  --white: #ffffff;
  --muted: #62706e;
  --line: rgba(7, 18, 17, 0.1);
  --glass: rgba(255, 255, 255, 0.74);
  --shadow: 0 32px 90px rgba(3, 14, 13, 0.22);
  --radius: 28px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 10% -10%, rgba(214, 173, 91, 0.22), transparent 34%), linear-gradient(180deg, #fbf7ef 0%, #efe5d5 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: linear-gradient(rgba(7,18,17,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(7,18,17,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 999px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform .3s ease, top .3s ease;
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 24px;
  background: rgba(8, 25, 23, .72);
  color: #fff;
  box-shadow: 0 22px 80px rgba(0,0,0,.24);
  backdrop-filter: blur(22px);
}

.is-scrolled .nav-shell { background: rgba(8, 25, 23, .72); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.brand img { width: 58px; height: 58px; border-radius: 18px; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.brand strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.brand small { display: block; color: rgba(255,255,255,.66); font-size: 12px; margin-top: 2px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.main-nav a {
  padding: 12px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  font-weight: 750;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; padding: 5px; gap: 2px; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; }
.lang-switch { direction: ltr; }
.lang-switch a { padding: 8px 9px; border-radius: 12px; color: rgba(255,255,255,.78); font-weight: 850; font-size: 12px; }
.lang-switch a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-cta, .footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #f3d58d);
  color: #0b1514;
  font-weight: 900;
  box-shadow: 0 15px 35px rgba(214,173,91,.28);
}
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; color: #fff; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; border-radius: 99px; }

.hero-platform {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #061413;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.08); }
.hero-platform::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 74% 28%, rgba(20,184,158,.22), transparent 28%), linear-gradient(90deg, rgba(4,13,17,.94), rgba(4,13,17,.55) 46%, rgba(4,13,17,.88));
}
.hero-platform::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -1px;
  height: 190px;
  background: linear-gradient(0deg, var(--paper), transparent);
}
.hero-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 72px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
}
.hero-copy h1, .page-hero h1, .project-hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .92;
  letter-spacing: -.075em;
}
.hero-copy p:not(.eyebrow), .page-hero p, .project-hero p {
  max-width: 760px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(18px, 1.8vw, 23px);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 950;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #071211; background: linear-gradient(135deg, #24e0bf, #d6ad5b); box-shadow: 0 24px 48px rgba(20,184,158,.25); }
.button.ghost { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.button.secondary { background: var(--ink); color: #fff; }
.button.light { background: #fff; color: var(--ink); }
.hero-panel {
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.hero-panel span { color: rgba(255,255,255,.68); text-transform: uppercase; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.hero-panel strong { display: block; color: var(--gold); font-size: 80px; line-height: 1; letter-spacing: -.06em; margin: 8px 0 12px; }
.hero-panel p { color: rgba(255,255,255,.8); margin: 0 0 24px; }
.mini-grid { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.mini-grid b { color: #fff; font-size: 28px; }
.mini-grid small { color: rgba(255,255,255,.68); }

.signal-strip {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: -70px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(20px);
}
.signal-strip span { padding: 24px 14px; text-align: center; font-weight: 950; color: var(--ink-2); background: rgba(255,255,255,.62); }

.section { width: min(1240px, calc(100% - 32px)); margin: 82px auto; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head h2, .feature-copy h2, .cta-band h2, .article-prose h2, .timeline-section h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
}
.section-head p:not(.eyebrow), .feature-copy p, .article-prose p { color: var(--muted); font-size: 18px; max-width: 780px; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-card, .value-card, .os-card, .activity-card, .team-card, .contact-card, .map-card {
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--radius);
  background: rgba(255,255,255,.74);
  box-shadow: 0 20px 70px rgba(7,18,17,.1);
  backdrop-filter: blur(18px);
}
.impact-card { min-height: 190px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.impact-card strong { font-size: clamp(48px, 6vw, 78px); line-height: .9; color: var(--emerald); letter-spacing: -.07em; }
.impact-card span { color: var(--muted); font-weight: 850; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }

.story-feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: stretch;
}
.feature-media { min-height: 620px; border-radius: 42px; overflow: hidden; box-shadow: var(--shadow); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: clamp(34px, 5vw, 72px); border-radius: 42px; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.feature-copy p { color: rgba(255,255,255,.74); }
.text-link { color: var(--gold); font-weight: 950; margin-top: 18px; display: inline-flex; }

.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.story-grid.wide { grid-template-columns: repeat(3, 1fr); }
.story-card {
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 80px rgba(7,18,17,.11);
  transition: transform .25s ease, box-shadow .25s ease;
}
.story-card:hover { transform: translateY(-8px); box-shadow: 0 34px 100px rgba(7,18,17,.18); }
.story-card a { display: grid; grid-template-rows: 230px 1fr; height: 100%; }
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-card div { padding: 26px; }
.story-card span { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 950; }
.story-card h3 { margin: 12px 0; font-size: 25px; line-height: 1.05; letter-spacing: -.035em; }
.story-card p { margin: 0; color: var(--muted); }

.operating-system { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.os-card { padding: 34px; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55)); }
.os-card span { color: var(--gold); font-weight: 950; }
.os-card h3 { font-size: 30px; margin: 18px 0 10px; letter-spacing: -.04em; }
.os-card p { color: var(--muted); margin: 0; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(34px, 5vw, 70px);
  border-radius: 42px;
  background: radial-gradient(circle at 80% 20%, rgba(214,173,91,.24), transparent 32%), linear-gradient(135deg, #061413, #0d342e);
  color: #fff;
  box-shadow: var(--shadow);
}

.page-hero, .project-hero {
  min-height: 650px;
  padding: 190px 16px 90px;
  display: grid;
  align-items: center;
  color: #fff;
  background: radial-gradient(circle at 80% 15%, rgba(20,184,158,.24), transparent 30%), linear-gradient(135deg, #071211, #14352f);
}
.page-hero.compact { min-height: 520px; }
.page-hero > div, .project-hero > div { width: min(1120px, 100%); margin: 0 auto; }
.project-hero { position: relative; isolation: isolate; background-image: linear-gradient(90deg, rgba(5,15,14,.92), rgba(5,15,14,.58)), var(--hero); background-size: cover; background-position: center; }

.project-body { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; align-items: start; }
.article-prose, .metric-panel {
  padding: clamp(30px, 4vw, 56px);
  border-radius: 34px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 22px 70px rgba(7,18,17,.09);
}
.article-prose p { font-size: 20px; }
.metric-panel { display: grid; gap: 20px; }
.metric-panel div { display: grid; gap: 7px; }
.metric-panel strong { font-size: 46px; color: var(--emerald); letter-spacing: -.05em; line-height: 1; }
.metric-panel span { color: var(--muted); font-weight: 900; }
.metric-panel i { display: block; height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--emerald), var(--gold)); transform-origin: left; transform: scaleX(.18); transition: transform 1s ease; }
.metric-panel i.is-visible { transform: scaleX(1); width: var(--w); }
.immersive-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.before-after { position: relative; min-height: 620px; overflow: hidden; border-radius: 38px; box-shadow: var(--shadow); background: var(--ink); }
.before-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.before-after input { position: absolute; left: 8%; right: 8%; bottom: 28px; width: 84%; z-index: 2; accent-color: var(--gold); }
.project-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-gallery img { width: 100%; height: 303px; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 50px rgba(7,18,17,.12); }
.timeline-section { padding: clamp(34px, 5vw, 60px); border-radius: 42px; background: var(--ink); color: #fff; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.timeline div { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.timeline span { color: var(--gold); font-weight: 950; }
.timeline strong { display: block; margin: 12px 0 8px; font-size: 20px; }
.timeline p { margin: 0; color: rgba(255,255,255,.68); }

.values-grid, .activity-grid, .team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { padding: 30px; }
.activity-card { overflow: hidden; padding: 0; }
.activity-card img { width: 100%; height: 190px; object-fit: cover; }
.activity-card div { padding: 24px; }
.value-card h3, .activity-card h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.value-card p, .activity-card p { color: var(--muted); margin: 0; }
.activity-card span { color: var(--gold); font-weight: 950; }
.team-grid { grid-template-columns: repeat(3, 1fr); }
.team-card { overflow: hidden; background: #fff; }
.team-card img { width: 100%; height: 340px; object-fit: cover; filter: saturate(.95); }
.team-card h2, .team-card p, .team-card span { margin-left: 24px; margin-right: 24px; }
.team-card h2 { margin-top: 22px; margin-bottom: 4px; font-size: 25px; letter-spacing: -.035em; }
.team-card p { margin-top: 0; color: var(--emerald); font-weight: 900; }
.team-card span { display: block; margin-bottom: 26px; color: var(--muted); font-size: 14px; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; align-items: stretch; }
.contact-card, .map-card { padding: clamp(28px, 4vw, 46px); }
.contact-card h2, .map-card h2 { margin-top: 0; font-size: 36px; letter-spacing: -.04em; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); font-weight: 850; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 15px 16px;
}
.invalid { border-color: #b23b3b; box-shadow: 0 0 0 4px rgba(178,59,59,.09); }
.success { color: var(--emerald); font-weight: 900; }
.map-card { display: grid; grid-template-rows: 420px auto; gap: 24px; }
.map-card iframe { width: 100%; height: 100%; border: 0; border-radius: 24px; filter: saturate(.82) contrast(1.05); }

.site-footer {
  margin-top: 120px;
  padding: 72px 0 26px;
  background: radial-gradient(circle at 85% 10%, rgba(214,173,91,.16), transparent 30%), #061413;
  color: #fff;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16c36b;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(22, 195, 107, .35);
  border: 2px solid rgba(255,255,255,.75);
}
.footer-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr 1fr;
  gap: 44px;
}
.footer-brand img { border-radius: 20px; margin-bottom: 20px; }
.footer-brand h2 { font-size: 34px; line-height: 1; letter-spacing: -.05em; max-width: 460px; }
.footer-brand p, .site-footer p { color: rgba(255,255,255,.66); }
.site-footer h3 { color: var(--gold); margin: 0 0 18px; }
.site-footer a { display: block; color: rgba(255,255,255,.74); margin: 10px 0; }
.site-footer a:hover { color: #fff; }
.footer-button { color: var(--ink) !important; margin-top: 18px !important; width: fit-content; }
.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.58);
}
.footer-bottom a { display: inline; margin: 0; }

.reveal, .story-card, .activity-card, .team-card { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s ease; }
.is-visible, .story-card.is-visible, .activity-card.is-visible, .team-card.is-visible { opacity: 1; transform: translateY(0); }

[dir="rtl"] body { text-align: right; }
[dir="rtl"] .main-nav, [dir="rtl"] .nav-actions, [dir="rtl"] .hero-actions { flex-direction: row-reverse; }
[dir="rtl"] .brand, [dir="rtl"] .footer-bottom { direction: rtl; }

.ht-ctc, .ht-ctc-chat, .joinchat, .call-now-button, .hustle-ui, .whatsapp-button, [class*="whatsapp_float"], [class*="call-now"], [id*="notificationx"], .nx-bar {
  display: none !important;
}

@media (max-width: 1100px) {
  .nav-shell { grid-template-columns: auto auto; }
  .menu-toggle { display: block; justify-self: end; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .main-nav.is-open { display: flex; }
  .nav-actions { grid-column: 1 / -1; justify-content: space-between; }
  .hero-shell, .story-feature, .project-body, .immersive-grid, .contact-layout { grid-template-columns: 1fr; }
  .impact-grid, .values-grid, .activity-grid { grid-template-columns: repeat(2, 1fr); }
  .story-grid, .story-grid.wide, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .site-header { top: 8px; }
  .nav-shell { width: calc(100% - 16px); border-radius: 20px; gap: 12px; }
  .brand { min-width: 0; }
  .brand img { width: 46px; height: 46px; border-radius: 14px; }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 10px; }
  .nav-actions { align-items: stretch; flex-direction: column; }
  .nav-cta { width: 100%; }
  .hero-platform { min-height: 700px; }
  .hero-shell { padding-top: 132px; gap: 20px; }
  .hero-copy h1, .page-hero h1, .project-hero h1 { font-size: clamp(38px, 13vw, 56px); }
  .hero-copy p:not(.eyebrow), .page-hero p, .project-hero p { font-size: 17px; }
  .hero-panel { padding: 24px; }
  .hero-panel strong { font-size: 58px; }
  .signal-strip { grid-template-columns: 1fr; margin-top: -36px; }
  .section { margin: 46px auto; }
  .section-head { grid-template-columns: 1fr; }
  .impact-grid, .story-grid, .story-grid.wide, .operating-system, .values-grid, .activity-grid, .timeline { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .team-card img { height: 190px; }
  .team-card h2, .team-card p, .team-card span { margin-left: 14px; margin-right: 14px; }
  .team-card h2 { font-size: 17px; }
  .activity-card img { height: 150px; }
  .activity-card div { padding: 18px; }
  .feature-media, .before-after { min-height: 430px; border-radius: 28px; }
  .feature-copy, .cta-band, .timeline-section { border-radius: 28px; padding: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery img { height: 260px; }
  .page-hero, .project-hero { min-height: 470px; padding-top: 145px; }
  .map-card { grid-template-rows: 300px auto; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .wa-float { width: 46px; height: 46px; right: 12px; bottom: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .story-card, .activity-card, .team-card { opacity: 1; transform: none; }
}

/* Impact RTL premium section - scoped redesign */
.impact-section {
  position: relative;
  isolation: isolate;
  direction: rtl;
  width: min(1240px, calc(100% - 32px));
  margin: clamp(54px, 7vw, 92px) auto;
  padding: clamp(28px, 5.2vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(10, 128, 111, 0.13);
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 8% 18%, rgba(20, 184, 158, 0.16), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(214, 173, 91, 0.20), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(251, 247, 239, 0.90));
  box-shadow: 0 34px 110px rgba(7, 18, 17, 0.13);
  font-family: "Cairo", "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

.impact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(10, 128, 111, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 128, 111, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.impact-section::after {
  content: "";
  position: absolute;
  inset-inline-start: -12%;
  inset-block-end: -34%;
  width: 52%;
  height: 58%;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(10, 128, 111, 0.14), rgba(214, 173, 91, 0.10));
  filter: blur(48px);
}

.impact-section .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.62fr);
  grid-template-areas:
    "title copy"
    "title copy";
  gap: clamp(22px, 4vw, 58px);
  align-items: stretch;
  margin: 0 0 clamp(24px, 4vw, 42px);
  text-align: right;
}

.impact-section .eyebrow {
  grid-area: title;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(214, 173, 91, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--emerald);
  box-shadow: 0 12px 34px rgba(7, 18, 17, 0.07);
  letter-spacing: 0;
  line-height: 1.2;
}

.impact-section .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(214, 173, 91, 0.16);
}

.impact-section .section-head h2 {
  grid-area: title;
  align-self: end;
  max-width: 860px;
  margin: 46px 0 0;
  color: var(--ink);
  font-size: clamp(38px, 5.1vw, 82px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.impact-section .section-head > p:not(.eyebrow) {
  grid-area: copy;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-2);
  box-shadow: 0 20px 70px rgba(7, 18, 17, 0.10);
  backdrop-filter: blur(18px);
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.95;
  text-align: right;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.impact-section .impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
  position: relative;
  z-index: 1;
}

.impact-section .impact-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(10, 128, 111, 0.08), rgba(214, 173, 91, 0.08));
  box-shadow: 0 22px 70px rgba(7, 18, 17, 0.10);
  backdrop-filter: blur(18px);
  text-align: right;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.impact-section .impact-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(10, 128, 111, 0.88), rgba(20, 184, 158, 0.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 32px rgba(10,128,111,.20);
}

.impact-section .impact-card::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 37px;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 11px 0 0 -5px rgba(255, 255, 255, 0.86), 0 11px 0 -5px rgba(255, 255, 255, 0.86);
}

.impact-section .impact-card strong {
  position: relative;
  display: block;
  width: 100%;
  color: var(--emerald);
  font-size: clamp(42px, 4.6vw, 70px);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.025em;
  direction: ltr;
  text-align: right;
}

.impact-section .impact-card span {
  position: relative;
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 850;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.impact-section .impact-card span::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 0 0 12px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--emerald-2));
}

.impact-section .impact-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 128, 111, 0.24);
  box-shadow: 0 30px 90px rgba(7, 18, 17, 0.15);
}

@media (max-width: 980px) {
  .impact-section {
    padding: clamp(24px, 6vw, 44px);
  }

  .impact-section .section-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "copy";
  }

  .impact-section .eyebrow,
  .impact-section .section-head h2 {
    max-width: 760px;
  }

  .impact-section .section-head h2 {
    margin-top: 44px;
  }

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

@media (max-width: 620px) {
  .impact-section {
    width: min(100% - 20px, 1240px);
    margin: 38px auto;
    padding: 22px;
    border-radius: 28px;
  }

  .impact-section .section-head {
    gap: 18px;
  }

  .impact-section .eyebrow {
    margin-bottom: 14px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .impact-section .section-head h2 {
    margin-top: 40px;
    font-size: clamp(32px, 10vw, 48px);
    line-height: 1.14;
  }

  .impact-section .section-head > p:not(.eyebrow) {
    padding: 20px;
    border-radius: 22px;
    font-size: 16px;
    line-height: 1.85;
  }

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

  .impact-section .impact-card {
    min-height: 138px;
    padding: 18px;
    border-radius: 22px;
    gap: 12px;
  }

  .impact-section .impact-card::before {
    left: 16px;
    top: 16px;
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }

  .impact-section .impact-card::after {
    left: 27px;
    top: 27px;
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 420px) {
  .impact-section .impact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .impact-section .impact-card {
    transition: none;
  }

  .impact-section .impact-card:hover {
    transform: none;
  }
}
/* End Impact RTL premium section */

/* Hero CTA click target fix - scoped */
.hero-platform::before,
.hero-platform::after {
  pointer-events: none;
}

.hero-shell,
.hero-copy,
.hero-actions {
  position: relative;
  z-index: 2;
}

.hero-actions .button {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
/* End Hero CTA click target fix */
