/* ===========================================================
   Harmony × AppsFlyer — Editorial Cinematic Edition
   Hebrew primary, Arabic toggle. RTL.
   Approach: photo-led layouts, magazine typography,
   AppsFlyer brand moment, less "card UI" patterns.
   =========================================================== */

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

/* -----------------------------------------------------------
   FULL-BLEED — defeat theme container, hide page title
   ----------------------------------------------------------- */
*:has(> #haf-app),
*:has(> * > #haf-app),
*:has(> * > * > #haf-app),
*:has(> * > * > * > #haf-app),
*:has(> * > * > * > * > #haf-app),
*:has(> * > * > * > * > * > #haf-app) {
  overflow: visible !important;
  max-width: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body:has(.haf) .entry-header,
body:has(.haf) .page-header,
body:has(.haf) .post-header,
body:has(.haf) .page-title-wrap,
body:has(.haf) .ast-page-header,
body:has(.haf) .elementor-page-title,
body:has(.haf) .et_pb_page_title,
body:has(.haf) .breadcrumbs,
body:has(.haf) h1.entry-title,
body:has(.haf) h1.page-title { display: none !important; }
html:has(#haf-app), body:has(#haf-app) { overflow-x: clip; }
/* Ensure no theme dark-green leaks through between our sections */
body:has(#haf-app) { background-color: #FFFEF9 !important; }

.haf {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: clip;

  /* === Palette — calibrated to harmony-network.org's actual theme === */
  --green-1000:#003E29;    /* deeper than theme */
  --green-900: #016D47;    /* THEME color — matches body bg */
  --green-800: #017C53;
  --green-700: #0A8056;
  --green-600: #16A06D;
  --green-500: #16A06D;
  --green-300: #6FC7A0;
  --green-100: #D6EBDE;
  --green-50:  #ECF6EF;

  --af-green:    #7BC242;
  --af-green-d:  #54A823;
  --af-blue:     #2EB4F2;
  --af-blue-d:   #1A7BC2;
  --af-gradient: linear-gradient(135deg, #7BC242 0%, #2EB4F2 100%);
  --af-gradient-soft: linear-gradient(135deg, rgba(123,194,66,.92) 0%, rgba(46,180,242,.92) 100%);

  --sand-700: #8C6E3B;
  --sand-500: #B89866;
  --sand-300: #D5BB8B;
  --sand-100: #F1E5CC;
  --sand-50:  #FAF5E8;
  --cream:    #F4ECD8;
  --cream-soft:#FAF4E4;
  --paper:    #FFFEF9;

  --ink-1000:#0B100D;
  --ink-900: #15201C;
  --ink-700: #28332C;
  --ink-500: #4F5C53;
  --ink-400: #6B7670;
  --ink-300: #9CA3A0;
  --ink-200: #E2E5DF;
  --ink-100: #F1F3EE;
  --ink-50:  #F8F9F5;
  --white:   #FFFFFF;

  --radius:18px;
  --radius-lg:26px;
  --radius-pill:999px;

  --shadow:0 18px 50px -20px rgba(11,40,28,.18), 0 4px 12px rgba(11,40,28,.06);
  --shadow-lg:0 40px 80px -30px rgba(11,40,28,.30);

  --duration:.4s;
  --ease:cubic-bezier(.22,.61,.36,1);

  /* Theme-native font stack: Bahij first (the harmony-network.org theme uses it),
     then Tajawal/Heebo as Google fallbacks, then system. */
  font-family: "Bahij", "Tajawal", "Heebo", "Niloofar", "Segoe UI", arial, sans-serif;
  direction: rtl;
  color: var(--ink-700);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.haf.lang-ar { font-family: "Tajawal", "Bahij", "Niloofar", arial, sans-serif; }
/* Latin tokens — keep Inter for English brand wordmarks only */
.haf [lang="en"], .haf .haf-hero__partner-name { font-family: "Inter", "Bahij", sans-serif; font-weight: 800; }

.haf img { max-width: 100%; height: auto; display: block; }
.haf a { color: var(--green-700); text-decoration: none; transition: color var(--duration) var(--ease); }
.haf a:hover { color: var(--green-900); }
.haf h1, .haf h2, .haf h3, .haf h4 {
  color: var(--ink-1000);
  font-weight: 900;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.haf p { margin: 0; }
.haf ul, .haf ol { margin: 0; padding: 0; list-style: none; }
.haf em { font-style: italic; color: var(--green-700); }

.haf-container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* Language visibility */
.haf.lang-he [data-ar] { display: none !important; }
.haf.lang-ar [data-he] { display: none !important; }

/* Language toggle bar */
.haf-langbar {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 40;
  display: inline-flex;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(11,40,28,.08);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
  box-shadow: 0 8px 28px -8px rgba(0,0,0,.18);
}
.haf-lang-btn {
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--ink-500);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  min-height: 40px;
}
.haf-lang-btn.is-active { background: var(--ink-1000); color: #fff; }
.haf-lang-btn:hover:not(.is-active) { background: var(--ink-50); color: var(--ink-1000); }

/* Eyebrows */
.haf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--ink-700);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.haf-eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.haf-eyebrow--green { color: var(--green-700); }
.haf-eyebrow--af { color: var(--af-blue-d); }
.haf-eyebrow--ghost { color: rgba(255,255,255,.85); }

.haf-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}
.haf-pill__dot {
  width: 8px; height: 8px;
  background: var(--af-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--af-green);
  animation: haf-pulse 2s ease-in-out infinite;
}
@keyframes haf-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.3)} }

/* Section heads */
.haf-section-head { text-align: center; max-width: 880px; margin: 0 auto 72px; }
.haf-section-head__title { font-size: clamp(34px, 5vw, 60px); margin-bottom: 16px; }
.haf-section-head__lede { color: var(--ink-500); font-size: clamp(16px, 1.6vw, 19px); max-width: 720px; margin: 16px auto 0; line-height: 1.7; }
.haf-section-head--light .haf-section-head__title { color: #fff; }
.haf-section-head--light .haf-section-head__lede { color: rgba(255,255,255,.86); }

.haf-grad-af {
  background: var(--af-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* === Buttons === */
.haf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.haf-btn svg { width: 18px; height: 18px; stroke: currentColor; }
.haf-btn:hover { transform: translateY(-2px); }
.haf-btn:focus-visible { outline: 3px solid var(--af-blue); outline-offset: 4px; }
.haf-btn--lg { padding: 18px 36px; font-size: 17px; }

.haf a.haf-btn--primary,
.haf button.haf-btn--primary {
  background: var(--ink-1000) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
}
.haf a.haf-btn--primary:hover {
  background: var(--green-900) !important;
  box-shadow: 0 20px 36px -10px rgba(0,0,0,.6);
}
.haf .haf-btn--primary svg { stroke: #fff !important; }

/* ===========================================================
   HERO — full bleed photo + cinematic typography
   Critical text is NEVER hidden by animation — it's always
   visible on first paint. Subtle fade-in is a nice-to-have.
   =========================================================== */
.haf-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 64px 32px 32px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-color: var(--green-1000);  /* fallback while photo loads */
}
.haf-hero__media {
  position: absolute; inset: 0;
  background-color: var(--green-1000);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}
.haf-hero__veil {
  position: absolute; inset: 0;
  background:
    /* lighter top/middle so photo shows through; darker bottom for brand strip */
    linear-gradient(180deg, rgba(0,30,18,.35) 0%, rgba(0,30,18,.20) 35%, rgba(0,30,18,.55) 70%, rgba(0,30,18,.85) 100%),
    /* subtle radial vignette focused behind the title for legibility */
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(0,0,0,.35), transparent 75%);
  z-index: -1;
}
.haf-hero__header { display: flex; justify-content: center; }
.haf-hero__center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 0; }

/* Title: ALWAYS visible. Harmony beige for warmth + strong shadow for contrast on the photo. */
.haf-hero__title,
.haf .haf-hero__title,
.haf .haf-hero__title .haf-hero__word,
.haf .haf-hero__title span {
  font-size: clamp(54px, 9vw, 140px);
  font-weight: 900;
  line-height: .98;
  color: #EDE0C5 !important;          /* Harmony cream/beige — matches the logo badge text */
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
  text-shadow:
    0 2px 4px rgba(0,0,0,.6),
    0 8px 24px rgba(0,0,0,.55),
    0 0 1px rgba(0,0,0,.5);
  -webkit-text-fill-color: #EDE0C5;   /* defensive: prevent gradient text from going transparent */
}
.haf-hero__line { display: block; }
.haf-hero__word { display: inline-block; margin: 0 .12em; }

.haf-hero__sub {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,.94);
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.haf-hero__sub strong { color: #fff; font-weight: 800; }

/* Brand strip — compact, balanced, AppsFlyer prominent but contained */
.haf-hero__brandstrip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 28px auto 0;
  padding: 16px 24px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-lg);
  max-width: 100%;
  flex-wrap: wrap;
}
.haf-hero__partner { display: flex; align-items: center; gap: 12px; }
.haf-hero__partner-logo--harmony {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: 50%;
  padding: 5px;
  object-fit: contain;
  flex-shrink: 0;
}
.haf-hero__partner-name {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.haf-hero__cross {
  font-size: 28px;
  color: rgba(255,255,255,.5);
  font-weight: 300;
}
/* New AppsFlyer logo is white + transparent — no card needed on the dark hero bg */
.haf-hero__partner--af {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
}
.haf-hero__partner-logo--af {
  height: 40px !important;
  width: auto !important;
  max-width: 180px !important;
  max-height: 40px !important;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

/* Scroll indicator */
.haf-hero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin: 28px auto 0;
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.haf-hero__scroll:hover { color: #fff; }
.haf-hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.8));
  display: block;
  animation: haf-scroll-pulse 1.8s ease-in-out infinite;
}
@keyframes haf-scroll-pulse { 0%,100%{opacity:.5;transform:scaleY(.7)} 50%{opacity:1;transform:scaleY(1)} }

/* ===========================================================
   WHY — editorial statement
   =========================================================== */
.haf-why {
  background: var(--cream-soft);
  padding: 110px 0 100px;
  position: relative;
  overflow: hidden;
}
.haf-why::before {
  content: "“";
  position: absolute;
  font-family: Georgia, serif;
  font-size: 380px;
  color: var(--green-700);
  opacity: .08;
  top: 0px;
  inset-inline-start: 6%;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}
.haf-why__container { max-width: 980px; margin: 0 auto; padding: 0 32px; text-align: center; position: relative; }
.haf-why__statement {
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.5;
  color: var(--ink-1000);
  font-weight: 600;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.haf-why__statement strong { font-weight: 900; color: var(--green-900); }
.haf-why__statement em { font-style: normal; color: var(--green-700); font-weight: 700; }
/* Use box-decoration-break so the highlight stays clean across line breaks */
.haf-mark {
  background: linear-gradient(180deg, transparent 62%, rgba(123,194,66,.35) 62%);
  padding: 0 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 700;
  color: var(--green-1000);
}
.haf-why__sign {
  display: flex; justify-content: center;
  margin-top: 36px;
  color: var(--sand-500);
}
.haf-why__sign svg { width: 64px; height: 22px; }

/* ===========================================================
   SIDE SECTIONS — full-bleed alternating image + content
   =========================================================== */
.haf-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.haf-side__media {
  background: var(--ink-200) center/cover no-repeat;
  min-height: 480px;
  position: relative;
}
.haf-side__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,40,28,.05) 0%, transparent 60%);
}
.haf-side__content {
  padding: 100px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.haf-side--harmony { background: var(--cream); }
.haf-side--harmony .haf-side__title { color: var(--green-1000); }
.haf-side__title {
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.05;
  margin-bottom: 22px;
  letter-spacing: -.025em;
}
.haf-side__title-sub {
  display: block;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 500;
  color: var(--ink-500);
  margin-top: 14px;
  line-height: 1.5;
  letter-spacing: -.005em;
}
.haf-side__content p {
  font-size: 17px;
  color: var(--ink-500);
  line-height: 1.85;
  margin-bottom: 28px;
}
.haf-side__pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.haf-side__pill {
  background: rgba(255,255,255,.6);
  border: 1px solid var(--ink-200);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.haf-side__pill strong { color: var(--green-800); font-weight: 800; display: block; font-size: 15.5px; margin-bottom: 2px; }

/* ===========================================================
   APPSFLYER BRAND MOMENT — dedicated full-screen section
   =========================================================== */
.haf-af {
  position: relative;
  padding: 140px 32px;
  background: var(--ink-1000);
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.haf-af__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(123,194,66,.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(46,180,242,.22), transparent 55%);
  z-index: -1;
}
.haf-af::before, .haf-af::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.haf-af::before { top: 0; }
.haf-af::after  { bottom: 0; }
.haf-af__inner { max-width: 1100px; margin: 0 auto; }

.haf-af__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 24px 40px;
  border-radius: var(--radius-lg);
  margin: 18px 0 40px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6),
              0 0 0 1px rgba(255,255,255,.05);
  position: relative;
  max-width: min(420px, 90%);
}
.haf-af__logo-wrap::before {
  content: "";
  position: absolute; inset: -2px;
  background: var(--af-gradient);
  border-radius: inherit;
  z-index: -1;
  filter: blur(20px);
  opacity: .5;
}
.haf-af__logo {
  height: 56px !important;
  width: auto !important;
  max-width: 340px !important;
  max-height: 56px !important;
  display: block;
  object-fit: contain;
}

.haf .haf-af__title,
.haf-af .haf-af__title {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.15;
  max-width: 880px;
  margin: 0 auto 28px;
}
.haf-af__lede {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,.84);
  line-height: 1.8;
  max-width: 760px;
  margin: 0 auto 60px;
}
.haf-af__lede strong { color: #fff; }

.haf-af__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
.haf-af__stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.haf-af__stat:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.haf-af__num {
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  font-family: "Inter", "Bahij", sans-serif;
  /* Add an underline accent in gradient instead of gradient text */
  position: relative;
  display: inline-block;
}
.haf-af__num::after {
  content: "";
  position: absolute;
  inset-inline: 20%;
  bottom: -8px;
  height: 3px;
  background: var(--af-gradient);
  border-radius: 2px;
}
.haf-af__lbl { color: rgba(255,255,255,.85); font-size: 14.5px; font-weight: 600; line-height: 1.4; }

/* === Feature image of AppsFlyer leader speaking === */
.haf-af__feature {
  margin: 80px auto 0;
  max-width: 1080px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: stretch;
  text-align: start;
  position: relative;
}
.haf-af__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--af-gradient);
  border-radius: inherit;
  z-index: -1;
  filter: blur(40px);
  opacity: .25;
}
.haf-af__feature-img {
  background-color: #fff;
  background-size: cover;
  background-position: center;
  min-height: 380px;
  position: relative;
}
.haf-af__feature-img::after {
  /* subtle inner shadow to blend the photo into the dark card */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(11,40,28,.20));
  pointer-events: none;
}
.haf-af__feature-cap {
  padding: 44px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.haf-af__feature-eyebrow {
  display: block;
  color: var(--af-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.4;
}
.haf-af__feature-cap p {
  color: rgba(255,255,255,.94);
  font-size: 17px;
  line-height: 1.75;
}
.haf-af__feature-cap p strong { color: #fff; font-weight: 800; }

/* ===========================================================
   JOURNEY — three full-bleed chapters
   =========================================================== */
.haf-journey { padding: 140px 0 60px; background: var(--paper); }
.haf-journey .haf-section-head { margin-bottom: 80px; }

.haf-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--paper);
  margin-bottom: 80px;
  position: relative;
}
.haf-chapter--reverse { direction: ltr; }
.haf-chapter--reverse .haf-chapter__content { direction: rtl; }
.haf-chapter:last-child { margin-bottom: 0; }

.haf-chapter__media {
  background-color: var(--ink-200);
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
  overflow: hidden;
}
.haf-chapter__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,40,28,.10), transparent);
}
.haf-chapter__content {
  padding: 80px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--paper);
}
.haf-chapter__num {
  font-size: clamp(72px, 9vw, 120px);
  font-weight: 900;
  line-height: .9;
  color: var(--green-900);
  letter-spacing: -.05em;
  margin-bottom: 8px;
  display: inline-block;
  font-family: "Inter", "Bahij", sans-serif;
  /* subtle gradient accent via background-clip — works as enhancement only */
  background: linear-gradient(135deg, var(--green-900) 0%, var(--af-blue-d) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}
.haf-chapter__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--af-blue-d);
  background: rgba(46,180,242,.10);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.haf .haf-chapter__title {
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--green-1000);
  margin-bottom: 18px;
  line-height: 1.1;
}
.haf-chapter__body {
  color: var(--ink-500);
  font-size: 16.5px;
  line-height: 1.85;
  margin-bottom: 24px;
}
.haf-chapter__highlights { display: grid; gap: 10px; }
.haf-chapter__highlights li {
  padding-inline-start: 28px;
  position: relative;
  color: var(--ink-700);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
}
.haf-chapter__highlights li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  width: 16px; height: 2px;
  background: var(--af-gradient);
  border-radius: 2px;
}

/* ===========================================================
   IMPACT — huge numbers on photo background
   =========================================================== */
.haf-impact {
  position: relative;
  padding: 140px 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.haf-impact__media {
  position: absolute; inset: 0;
  background-color: var(--green-900);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}
.haf-impact__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(11,40,28,.85), rgba(11,40,28,.95));
  z-index: -1;
}
.haf-impact__inner { position: relative; }
.haf-impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block-start: 1px solid rgba(255,255,255,.14);
  border-block-end: 1px solid rgba(255,255,255,.14);
}
.haf-impact__stat {
  text-align: center;
  padding: 56px 24px;
  border-inline-end: 1px solid rgba(255,255,255,.10);
}
.haf-impact__stat:last-child { border-inline-end: 0; }
.haf-impact__num {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900;
  line-height: .9;
  color: #fff;
  letter-spacing: -.04em;
  margin-bottom: 14px;
  font-family: "Inter", "Bahij", sans-serif;
  direction: ltr;          /* keep ~300 / 100+ readable left-to-right */
  unicode-bidi: isolate;
}
.haf-impact__num strong { background: var(--af-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.haf-impact__lbl {
  color: rgba(255,255,255,.86);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.haf-impact__caption {
  text-align: center;
  margin-top: 60px;
  font-size: clamp(17px, 1.8vw, 22px);
  color: #fff;
  font-weight: 500;
}
.haf-impact__caption strong { color: var(--af-green); font-weight: 800; }

/* ===========================================================
   MOMENTS — photo + body cards
   =========================================================== */
.haf-moments { padding: 140px 0; background: var(--paper); }
.haf-moments__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.haf-moment {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ink-200);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.haf-moment:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green-300); }
.haf-moment__photo {
  background-color: var(--ink-200);
  background-size: cover;
  background-position: center;
}
.haf-moment__body { padding: 28px 30px; display: flex; flex-direction: column; justify-content: center; }
.haf-moment h4 { font-size: 19px; color: var(--green-1000); margin-bottom: 8px; }
.haf-moment p { color: var(--ink-500); font-size: 15px; line-height: 1.7; }
.haf-moment p strong { color: var(--ink-900); }

/* ===========================================================
   PHOTO WALL — editorial masonry
   =========================================================== */
.haf-wall { padding: 140px 0; background: var(--cream-soft); }
.haf-wall__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.haf-wall__tile {
  position: relative;
  border: 0; padding: 0;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-100);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.haf-wall__tile--wide { grid-column: span 2; }
.haf-wall__tile--tall { grid-row: span 2; }
.haf-wall__tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter var(--duration) var(--ease);
}
.haf-wall__tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,40,28,.40) 100%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}
.haf-wall__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.haf-wall__tile:hover img { transform: scale(1.05); }
.haf-wall__tile:hover::after { opacity: 1; }
.haf-wall__tile:focus-visible { outline: 3px solid var(--af-blue); outline-offset: 4px; }

/* Lightbox */
.haf-lightbox {
  position: fixed; inset: 0;
  background: rgba(11,15,12,.94);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  animation: haf-fade .25s var(--ease);
}
.haf-lightbox[hidden] { display: none; }
.haf-lightbox__img {
  max-width: 95%; max-height: 95vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.7);
  animation: haf-zoom .35s var(--ease);
}
.haf-lightbox__close {
  position: absolute; top: 22px; left: 22px;
  width: 52px; height: 52px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 30px; line-height: 1;
  border-radius: 50%;
  cursor: pointer;
}
.haf-lightbox__close:hover { background: rgba(255,255,255,.18); }
@keyframes haf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes haf-zoom { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===========================================================
   UPCOMING — featured event cards
   =========================================================== */
.haf-upcoming {
  position: relative;
  padding: 140px 0;
  background: var(--green-1000);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.haf-upcoming::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(46,180,242,.16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(123,194,66,.12), transparent 55%);
  pointer-events: none;
}
.haf-upcoming__cards {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: stretch;
}
.haf-upcoming__card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.haf-upcoming__card:hover { background: rgba(255,255,255,.06); border-color: var(--af-blue); transform: translateY(-4px); }
.haf-upcoming__card--flagship {
  background: rgba(255,255,255,.06);
  border: 2px solid transparent;
  background-image:
    linear-gradient(rgba(11,40,28,.92), rgba(11,40,28,.92)),
    var(--af-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.haf-upcoming__ribbon {
  position: absolute;
  top: 22px; inset-inline-end: 22px;
  background: var(--af-gradient);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 10px 24px -8px rgba(46,180,242,.6);
}
.haf-upcoming__photo {
  height: 240px;
  background-color: var(--ink-200);
  background-size: cover;
  background-position: center;
  position: relative;
}
.haf-upcoming__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11,40,28,.6));
}
.haf-upcoming__body { padding: 36px; position: relative; }
.haf-upcoming__datebox {
  display: inline-flex;
  flex-direction: column;
  background: var(--af-gradient);
  color: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  margin-top: -56px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  box-shadow: 0 14px 30px -8px rgba(46,180,242,.55);
}
.haf-upcoming__day { font-size: 46px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.haf-upcoming__mon { font-size: 13px; font-weight: 700; margin-top: 4px; opacity: .94; text-transform: uppercase; letter-spacing: .08em; }
.haf-upcoming__datebox--lg .haf-upcoming__day { font-size: 56px; }
.haf-upcoming__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--af-blue);
  background: rgba(46,180,242,.10);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.haf-upcoming__body h3 {
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
  margin-bottom: 14px;
  line-height: 1.2;
}
.haf-upcoming__body p {
  color: rgba(255,255,255,.86);
  font-size: 15.5px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.haf-upcoming__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.haf-upcoming__meta li {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: rgba(255,255,255,.92);
  font-weight: 600;
}

/* ===========================================================
   THANKS — cinematic closing
   =========================================================== */
.haf-thanks {
  position: relative;
  padding: 160px 32px;
  background: var(--cream);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.haf-thanks__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(123,194,66,.16), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(46,180,242,.14), transparent 60%);
  z-index: -1;
}
.haf-thanks__inner { max-width: 880px; margin: 0 auto; }

.haf-thanks__af-mark {
  display: inline-block;
  background: #fff;
  padding: 18px 32px;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: 0 22px 50px -16px rgba(11,40,28,.20);
}
.haf-thanks__af-mark img { height: 42px; width: auto; display: block; }

.haf .haf-thanks__title,
.haf-thanks .haf-thanks__title {
  font-size: clamp(80px, 14vw, 200px);
  font-weight: 900;
  letter-spacing: -.045em;
  background: var(--af-gradient) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  line-height: .9;
  margin: 8px 0 48px;
}

.haf-thanks__body p {
  color: var(--ink-700);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.9;
  margin-bottom: 22px;
}
.haf-thanks__body p strong { color: var(--green-1000); }

.haf-thanks__signature {
  margin-top: 48px !important;
  font-weight: 600;
  color: var(--ink-500) !important;
  font-size: 16px !important;
}
.haf-thanks__signoff {
  font-size: clamp(28px, 3.6vw, 44px) !important;
  font-weight: 900;
  color: var(--green-1000) !important;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 14px !important;
}

.haf-thanks__cta { margin-top: 56px; }

/* === AppsFlyer team photo inside Thank You === */
.haf-thanks__team {
  margin: 56px auto 8px;
  max-width: 720px;
  text-align: center;
}
.haf-thanks__team-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--green-100);
  background-size: cover;
  background-position: center 28%;
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 60px -20px rgba(11,40,28,.30),
    0 0 0 8px rgba(255,255,255,.6),
    0 0 0 9px rgba(11,40,28,.08);
}
.haf-thanks__team figcaption {
  margin-top: 22px;
  color: var(--ink-500);
  font-size: 15.5px;
  font-style: italic;
  line-height: 1.55;
}
.haf-thanks__team figcaption strong {
  color: var(--green-900);
  font-style: normal;
  font-weight: 800;
}

/* ===========================================================
   FOOTER
   =========================================================== */
.haf-footer { background: var(--ink-1000); color: rgba(255,255,255,.78); padding: 56px 0; }
.haf-footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.haf-footer__logos { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.haf-footer__logos img { width: 52px; height: 52px; background: #fff; border-radius: 12px; padding: 6px; object-fit: contain; }
/* White AppsFlyer logo sits transparently on the dark green footer — no tile */
.haf-footer__af {
  width: auto !important;
  height: 44px !important;
  max-width: 200px !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.haf-footer__x { font-size: 22px; color: rgba(255,255,255,.4); font-weight: 300; }
.haf-footer__brand p { font-size: 14.5px; max-width: 440px; line-height: 1.7; }
.haf-footer__copy { font-size: 13px; color: rgba(255,255,255,.5); }

/* ===========================================================
   FAB
   =========================================================== */
.haf-fab {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9998;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: var(--af-gradient) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 34px -10px rgba(46,180,242,.55), 0 4px 12px rgba(0,0,0,.18);
  font-weight: 800;
  font-size: 15.5px;
  text-decoration: none !important;
  white-space: nowrap;
  pointer-events: none;
  transform: translateY(160%) scale(.92);
  opacity: 0;
  transition: transform .55s var(--ease), opacity .35s var(--ease), box-shadow .3s var(--ease);
}
.haf-fab.is-visible { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.haf-fab:hover { transform: translateY(-3px) scale(1.02); }
.haf-fab svg { width: 20px; height: 20px; stroke: #fff !important; }
.haf-fab__label { color: #fff !important; }
.haf-fab__pulse { position: absolute; inset: 0; border-radius: inherit; background: var(--af-blue); opacity: 0; z-index: -1; }
.haf-fab.is-visible .haf-fab__pulse { animation: haf-fab-pulse 2.4s ease-out 2; }
@keyframes haf-fab-pulse { 0%{transform:scale(1);opacity:.6} 100%{transform:scale(1.5);opacity:0} }

/* ===========================================================
   SCROLL REVEAL
   =========================================================== */
.haf [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.haf [data-reveal].is-visible { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1100px) {
  .haf-side { grid-template-columns: 1fr; }
  .haf-side__content { padding: 64px 36px; }
  .haf-side__media { min-height: 420px; }
  .haf-chapter { grid-template-columns: 1fr; }
  .haf-chapter--reverse { direction: rtl; }
  .haf-chapter__content { padding: 56px 36px; }
  .haf-chapter__media { min-height: 360px; }
  .haf-impact__grid { grid-template-columns: repeat(2, 1fr); }
  .haf-impact__stat:nth-child(2n) { border-inline-end: 0; }
  .haf-impact__stat:nth-child(1), .haf-impact__stat:nth-child(2) { border-block-end: 1px solid rgba(255,255,255,.10); }
  .haf-wall__grid { grid-template-columns: repeat(3, 1fr); }
  .haf-moments__grid { grid-template-columns: 1fr; }
  .haf-af__stats { grid-template-columns: 1fr; gap: 12px; max-width: 480px; }
  .haf-upcoming__cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .haf-container { padding: 0 18px; }
  .haf-langbar { top: 12px; left: 12px; padding: 3px; }
  .haf-lang-btn { padding: 7px 14px; font-size: 12.5px; min-height: 36px; }

  .haf-hero { padding: 72px 18px 28px; min-height: 90vh; }
  .haf-hero__title { font-size: clamp(48px, 14vw, 80px); }
  .haf-hero__sub { font-size: 15px; padding: 0 4px; }
  .haf-hero__brandstrip { gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
  .haf-hero__partner-logo--harmony { width: 52px; height: 52px; }
  .haf-hero__partner-name { font-size: 18px; }
  .haf-hero__cross { font-size: 28px; }
  .haf-hero__partner--af { padding: 12px 16px; }
  .haf-hero__partner-logo--af { height: 38px; }

  .haf-why { padding: 90px 0 80px; }
  .haf-why__statement { font-size: 19px; line-height: 1.5; }
  .haf-why::before { font-size: 240px; }

  .haf-side__content { padding: 56px 22px; }
  .haf-side__media { min-height: 340px; }
  .haf-side__pills { grid-template-columns: 1fr; }

  .haf-af { padding: 88px 22px; }
  .haf-af__logo-wrap { padding: 24px 36px; margin: 14px 0 28px; }
  .haf-af__logo { height: 54px; }
  .haf-af__title { font-size: clamp(26px, 7vw, 36px); }
  .haf-af__lede { margin-bottom: 40px; font-size: 15.5px; }
  .haf-af__stat { padding: 28px 18px; }
  .haf-af__num { font-size: clamp(40px, 11vw, 56px); }

  .haf-journey { padding: 80px 0 40px; }
  .haf-chapter__content { padding: 48px 22px; }
  .haf-chapter__media { min-height: 280px; }
  .haf-chapter__num { font-size: clamp(64px, 18vw, 100px); }
  .haf-chapter__title { font-size: clamp(24px, 7vw, 32px); }
  .haf-chapter__body { font-size: 15.5px; }
  .haf-chapter { margin-bottom: 40px; }

  .haf-impact { padding: 80px 0; }
  .haf-impact__media { background-attachment: scroll; }
  .haf-impact__stat { padding: 36px 14px; }
  .haf-impact__num { font-size: clamp(44px, 14vw, 64px); }
  .haf-impact__lbl { font-size: 13px; }

  .haf-moments { padding: 80px 0; }
  .haf-moment { grid-template-columns: 100px 1fr; }
  .haf-moment__body { padding: 18px 20px; }
  .haf-moment h4 { font-size: 17px; }
  .haf-moment p { font-size: 14px; }

  .haf-wall { padding: 80px 0; }
  .haf-wall__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .haf-wall__tile--wide, .haf-wall__tile--tall { grid-column: auto; grid-row: auto; }

  .haf-upcoming { padding: 80px 0; }
  .haf-upcoming__photo { height: 180px; }
  .haf-upcoming__body { padding: 26px 22px; }
  .haf-upcoming__datebox { margin-top: -44px; padding: 10px 18px; }
  .haf-upcoming__day { font-size: 38px; }
  .haf-upcoming__ribbon { top: 14px; inset-inline-end: 14px; font-size: 10.5px; padding: 6px 14px; }

  .haf-thanks { padding: 100px 22px; }
  .haf-thanks__af-mark { padding: 14px 24px; margin-bottom: 24px; }
  .haf-thanks__af-mark img { height: 30px; }
  .haf-thanks__title { font-size: clamp(70px, 22vw, 110px); margin-bottom: 32px; }
  .haf-thanks__signoff { font-size: clamp(24px, 6vw, 32px) !important; }
  .haf-thanks__team { margin: 40px auto 4px; }
  .haf-thanks__team-img { aspect-ratio: 4 / 3; box-shadow: 0 18px 36px -16px rgba(11,40,28,.30), 0 0 0 6px rgba(255,255,255,.7); }
  .haf-thanks__team figcaption { font-size: 14px; margin-top: 16px; }

  .haf-af__feature { grid-template-columns: 1fr; margin-top: 56px; }
  .haf-af__feature-img { min-height: 280px; }
  .haf-af__feature-cap { padding: 28px 22px; }
  .haf-af__feature-cap p { font-size: 15.5px; }

  .haf-footer__inner { flex-direction: column; align-items: flex-start; }
  .haf-fab { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 18px; padding: 13px 20px; font-size: 14px; }
}

@media (max-width: 480px) {
  .haf-wall__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .haf-hero__title { font-size: clamp(40px, 16vw, 64px); }
}

/* Touch ergonomics */
@media (hover: none) and (pointer: coarse) {
  .haf-btn { min-height: 48px; }
  .haf-wall__tile { cursor: pointer; }
  .haf-moment:hover, .haf-upcoming__card:hover, .haf-af__stat:hover { transform: none; }
  .haf-impact__media { background-attachment: scroll; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .haf *, .haf *::before, .haf *::after { transition: none !important; animation: none !important; }
  .haf [data-reveal] { opacity: 1 !important; transform: none !important; }
  .haf-hero__word, .haf-hero__sub, .haf-hero__brandstrip, .haf-hero__scroll { opacity: 1 !important; }
  .haf-hero__media { transform: none !important; }
}

/* Focus rings */
.haf *:focus-visible { outline: 3px solid var(--af-blue); outline-offset: 4px; border-radius: 6px; }
