/* =====================================================================
   About page  (loaded after Bootstrap 5; layout uses Bootstrap's grid)
   Markup: website/about.xml      Behaviour: ../js/about.js
   Sections: 1 Base  2 Shared bits  3 Hero  4 Intro  5 Vision  6 Values
             7 Office cards  8 Call-to-action band  9 Scroll reveal
   ===================================================================== */

/* ---------- 1. Base ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ab-navy: #0A2540;
  --ab-blue: #0066FF;
  --ab-cyan: #00C2FF;
  --ab-teal: #00D1B2;
  --ab-soft: #EEF4F9;
  --ab-text: #3b4f63;
  --ab-ease: cubic-bezier(.22, 1, .36, 1);

  /* values that about.js / the markup set per element; declared here so editors know them and the defaults are explicit */
  --d: 0s;

  /* reveal delay */
  --i: 0;

  /* hero letter index */
  --py: 0px;

  /* parallax offset */
  --sp: 0;

  /* scroll progress */
  --sec-bg: #fff;

  /* colour the heading caption uses to "cut" the frame */
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ab-navy);
  font-family: 'Montserrat', 'Cairo', sans-serif;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* ---------- 2. Shared bits ---------- */
.ab-section {
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

.ab-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}

.ab-tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ab-teal);
}

.ab-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.25;
}

/* buttons: same look as the home page "More About" button */
.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .77rem 1.6rem;
  border: 1px solid #00515b;
  border-radius: 12px;
  background: #11728b;
  color: #fff;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ab-ease), box-shadow .4s var(--ab-ease);
}

.ab-btn .arr {
  font-weight: 700;
  transition: transform .4s var(--ab-ease);
}

.ab-btn:hover {
  background: var(--ab-navy);
  border-color: var(--ab-navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px rgba(10,37,64,.6);
}

.ab-btn:hover .arr {
  transform: translateX(6px);
}

html[dir="rtl"] .ab-btn .arr {
  transform: scaleX(-1);
}

html[dir="rtl"] .ab-btn:hover .arr {
  transform: scaleX(-1) translateX(6px);
}

/* ---------- Section headings: framed title with a spaced caption sitting on the border (same as the home page) ---------- */
.sec-head {
  border-radius: 12px;
  --frame: var(--ab-teal);
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: 1.9rem clamp(1.2rem, 3vw, 2.6rem) 1.3rem;
  border: 2px solid var(--frame);
  text-align: center;
}

.sec-head--start {
  margin-inline: 0;
  text-align: start;
  margin-bottom: 1.8rem;
}

.sec-sub {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  padding: 0 1rem;
  white-space: nowrap;
  background: var(--sec-bg, #fff);
  color: var(--ab-navy);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .36em;
  text-transform: uppercase;
}

html[dir="rtl"] .sec-sub {
  left: auto;
  right: 50%;
  translate: 50% -50%;
}

.sec-head--start .sec-sub {
  left: 1.6rem;
  translate: 0 -50%;
  padding: 0 .9rem;
}

html[dir="rtl"] .sec-head--start .sec-sub {
  left: auto;
  right: 1.6rem;
  translate: 0 -50%;
}

html[data-lang="ar"] .sec-sub {
  letter-spacing: .08em;
  text-transform: none;
  font-size: .95rem;
}

.sec-h {
  margin: 0;
  color: var(--ab-navy);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.3;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

/* same size as the home page */
.ab-intro .sec-h {
  max-width: none;
}

html[data-lang="ar"] .sec-h {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

.sec-head--dark .sec-h {
  color: #fff;
}

.sec-head--dark {
  --frame: rgba(0, 209, 178, .85);
}

.ab-values-head,
.ab-cta-head {
  display: flex;
  justify-content: center;
}

.ab-cta-head {
  margin-bottom: 1.4rem;
}

@media (max-width: 575.98px) {
  .sec-sub {
    letter-spacing: .2em;
    font-size: .75rem;
  }

  .sec-head {
    padding-inline: 1rem;
  }

  .sec-h {
    overflow-wrap: anywhere;
  }
}

/* ---------- 3. Hero (giant title behind, people rising from the bottom) ---------- */
.ab-hero {
  --gfs: clamp(4.5rem, 23vw, 21rem);
  --gtop: clamp(1.2rem, 4vh, 3rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(520px, 42vw, 820px);
  background: #e9f4fb;
}

html[data-lang="ar"] .ab-hero {
  --gfs: clamp(4.5rem, 19vw, 18rem);
}

.ab-hero-bg {
  position: absolute;
  inset: -3%;
  z-index: -3;
  background: linear-gradient(rgba(0, 0, 0, .03), rgba(0, 0, 0, .03)), url(../src/opt/about-bg.webp) center / cover no-repeat;   /* the 3% black is the old brightness(.97): a filter here would be redone on every breathing frame */
}

/* slow "breathing" with a light veil (opacity is cheap, animating filter repainted the whole photo every frame) */
.ab-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .08);
  opacity: 0;
  animation: ab-breath 14s ease-in-out infinite alternate;
}

html[dir="rtl"] .ab-hero-bg {
  transform: scaleX(-1);
}

.ab-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(255,255,255,.55), transparent 28%), linear-gradient(90deg, rgba(255,255,255,.55), transparent 45%);
}

html[dir="rtl"] .ab-hero::after {
  background: linear-gradient(0deg, rgba(255,255,255,.55), transparent 28%), linear-gradient(270deg, rgba(255,255,255,.55), transparent 45%);
}

.ab-giant {
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: var(--gtop);
  display: flex;
  justify-content: center;
  gap: .22em;
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  font-size: var(--gfs);
  line-height: .9;
  letter-spacing: .11em;
  white-space: nowrap;
  text-transform: uppercase;
  user-select: none;
}

html[data-lang="ar"] .ab-giant {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

@media (min-width: 992px) {
  html[data-lang="ar"] .ab-giant {
    top: -33px;
  }
}

.ab-giant-word {
  display: inline-flex;
  overflow: hidden;
  padding-top: .04em;
}

html[data-lang="ar"] .ab-giant-word {
  padding: .12em .06em .3em;
}

.ab-giant-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  background: linear-gradient(180deg, rgba(10,37,64,.92), rgba(10,37,64,.7) 45%, rgba(0,150,200,.28));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ab-char-up 1.3s var(--ab-ease) forwards;
  animation-delay: calc(.25s + var(--i) * .07s);
}

.ab-hero-people {
  position: absolute;
  z-index: 2;
  bottom: -58px;
  inset-inline-end: -5%;
  width: min(66vw, 1120px);
  pointer-events: none;
  animation: ab-rise 2s cubic-bezier(.16, 1, .3, 1) .35s both;
}

.ab-hero-people img {
  display: block;
  width: 100%;
  height: auto;
}

.ab-hero-lead {
  position: absolute;
  z-index: 3;
  max-width: min(27rem, 38vw);
  top: calc(var(--gtop) + var(--gfs) * .9 + clamp(1rem, 2.6vw, 2.4rem));
  inset-inline-start: calc(50% - var(--gfs) * 1.875);
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 600;
  line-height: 1.8;
  animation: ab-in 1.1s var(--ab-ease) 1.1s both;
}

html[data-lang="ar"] .ab-hero-lead {
  max-width: min(20rem, 30vw);
  top: calc(var(--gtop) + var(--gfs) * 1.3 + clamp(1rem, 2.6vw, 2.4rem));
  inset-inline-start: calc(50% - var(--gfs) * 1.32);
}

@keyframes ab-breath {
  to {
    opacity: 1;
  }
}

@keyframes ab-char-up {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ab-rise {
  from {
    transform: translateY(100%);
  }
}

@keyframes ab-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@media (max-width: 991.98px) {
  /* tablet & phone: title, text, then the people */
  .ab-hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .ab-giant,
  .ab-hero-lead,
  html[data-lang="ar"] .ab-hero-lead {
    position: relative;
    inset: auto;
    top: auto;
  }

  .ab-giant {
    order: 1;
    margin-top: clamp(1.2rem, 4vh, 2rem);
    font-size: clamp(3.6rem, 24vw, 10rem);
  }

  html[data-lang="ar"] .ab-giant {
    font-size: clamp(3.6rem, 23vw, 10rem);
  }

  .ab-hero-lead,
  html[data-lang="ar"] .ab-hero-lead {
    order: 2;
    max-width: none;
    padding: 1rem 1.2rem 0;
    text-align: center;
  }

  .ab-hero-people {
    order: 3;
    position: relative;
    inset: auto;
    width: 112%;
    margin: .4rem -6% 0;
  }
}

/* ---------- 4. Intro: big title + text, portrait photo card with drawn rings ---------- */
.ab-intro {
  position: relative;
  overflow: hidden;
}

.ab-intro .ab-tag {
  margin-bottom: 1.1rem;
  font-size: .95rem;
  letter-spacing: .04em;
}

.ab-intro p {
  max-width: 36rem;
  margin-bottom: 1.1rem;
  font-size: 1.06rem;
  line-height: 2;
  color: var(--ab-text);
}

.ab-intro p:first-of-type {
  padding-inline-start: 1.1rem;
  border-inline-start: 3px solid var(--ab-teal);
}

.ab-dot {
  position: absolute;
  display: block;
  pointer-events: none;
}

.ab-dot--square {
  top: 26px;
  inset-inline-start: clamp(14px, 3vw, 40px);
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--ab-teal);
  box-shadow: 22px 12px 0 -4px rgba(0,194,255,.45);
}

.ab-dot--line {
  bottom: 30px;
  inset-inline-end: clamp(14px, 3vw, 40px);
  width: 90px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ab-teal), transparent);
}

html[dir="rtl"] .ab-dot--line {
  background: linear-gradient(270deg, var(--ab-teal), transparent);
}

.ab-fig {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}

.ab-fig img {
  position: absolute;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 26px 50px -26px rgba(10,37,64,.55);
}

.ab-fig-main {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 26px !important;
}

.ab-fig-top {
  z-index: 2;
  top: -6%;
  inset-inline-end: -14%;
  width: 50%;
  aspect-ratio: 16 / 9;
  border: 5px solid #fff;
}

.ab-fig-bottom {
  z-index: 2;
  bottom: -5%;
  inset-inline-start: -14%;
  width: 52%;
  aspect-ratio: 4 / 3;
  border: 5px solid #fff;
}

.ab-rings {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 128%;
  max-width: none;
  translate: -50% -50%;
  animation: ab-spin 60s linear infinite;
  pointer-events: none;
}

@keyframes ab-spin {
  to {
    rotate: 360deg;
  }
}

@media (max-width: 991.98px) {
  .ab-fig {
    width: min(78%, 380px);
  }

  .ab-fig-top {
    inset-inline-end: -8%;
  }

  .ab-fig-bottom {
    inset-inline-start: -8%;
  }
}

/* ---------- 5. Vision & mission: dark band + photo card + two colour-changing cards ---------- */
.ab-vis {
  --cw: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* Bootstrap container widths, so the navy band can reach the screen edge and stop inside the first column */
@media (min-width: 576px) {
  .ab-vis {
    --cw: 540px;
  }
}

@media (min-width: 768px) {
  .ab-vis {
    --cw: 720px;
  }
}

@media (min-width: 992px) {
  .ab-vis {
    --cw: 960px;
  }
}

@media (min-width: 1200px) {
  .ab-vis {
    --cw: 1140px;
  }
}

@media (min-width: 1400px) {
  .ab-vis {
    --cw: 1320px;
  }
}

.ab-vis::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  background: var(--ab-navy);
  width: calc((100% - var(--cw)) / 2 + clamp(110px, 12vw, 190px));
}

.ab-vis-media {
  position: relative;
  height: 100%;
  min-height: 380px;
  margin: 0;
  border-radius: 28px;
  background: #cfd6dd;
  box-shadow: 0 24px 50px -28px rgba(10,37,64,.55);
}

.ab-vis-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: 32% center;
  filter: grayscale(1) contrast(1.05);
  transition: filter .6s ease;
}

.ab-vis-media:hover img {
  filter: none;
}

.ab-vis-badge {
  position: absolute;
  z-index: 2;
  top: 14%;
  inset-inline-start: 0;
  translate: -50% 0;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #6df2cc, #a6f56b);
  box-shadow: 0 0 0 8px var(--ab-navy), 0 12px 28px -10px rgba(109,242,204,.8);
}

html[dir="rtl"] .ab-vis-badge {
  translate: 50% 0;
}

.ab-vis-badge svg {
  width: 34px;
  height: 34px;
}

/* each card has a base colour and a hover colour; a ::before layer fades between them */
.ab-vis-card {
  --bg: #eef1f6;
  --bg-hover: var(--ab-navy);
  --fg: var(--ab-navy);
  --fg-hover: #fff;
  --muted: rgba(10,37,64,.78);
  --muted-hover: rgba(255,255,255,.82);
  --ico-hover: #6df2cc;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  min-height: 360px;
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border-radius: 28px;
  background: var(--bg);
  color: var(--fg);
  transition: color .45s, transform .45s var(--ab-ease), box-shadow .45s;
}

.ab-vis-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bg-hover);
  opacity: 0;
  transition: opacity .45s ease;
}

.ab-vis-card--a {
  --bg: linear-gradient(180deg, #6df2cc, #8ef2a0);
  --bg-hover: var(--ab-navy);
}

.ab-vis-card--b {
  --bg: #eef1f6;
  --bg-hover: linear-gradient(135deg, #0a7f78, #0b9a82);
}

.ab-vis-card:hover {
  color: var(--fg-hover);
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -26px rgba(10,37,64,.55);
}

.ab-vis-card:hover::before {
  opacity: 1;
}

.ab-vis-card:hover .ab-vis-text {
  color: var(--muted-hover);
}

.ab-vis-card:hover .ab-vis-icon {
  stroke: var(--ico-hover);
  opacity: 1;
}

.ab-vis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-vis-num {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .06em;
}

.ab-vis-icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
  transition: stroke .45s, opacity .45s;
}

.ab-vis-card h3 {
  text-align: center;
  margin-bottom: .7rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.35;
}

.ab-vis-text {
  text-align: center;
  line-height: 1.9;
  font-size: .98rem;
  color: var(--muted);
  transition: color .45s;
}

.ab-vis-body {
  margin-top: 20px;
}

@media (max-width: 991.98px) {
  .ab-vis::before {
    width: 100%;
    height: calc(clamp(2.5rem, 6vw, 5rem) + 230px);
    bottom: auto;
  }

  .ab-vis-media {
    height: auto;
    min-height: 300px;
    aspect-ratio: 16 / 10;
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .ab-vis-badge {
    top: auto;
    bottom: 0;
    inset-inline-start: 50%;
    translate: -50% 50%;
    width: 60px;
    height: 60px;
  }

  html[dir="rtl"] .ab-vis-badge {
    translate: 50% 50%;
  }
}

@media (max-width: 767.98px) {
  .ab-vis-card {
    min-height: 0;
  }
}

/* ---------- 6. Values: four white cards (icon, title, line with a dot, text, corner arrow) ---------- */
.ab-values {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: var(--ab-soft);
}

.ab-values-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.ab-pill {
  --notch: 62px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  padding-bottom: calc(var(--notch) + .6rem);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 34px -22px rgba(10,37,64,.35);
  transition: transform .45s var(--ab-ease), box-shadow .45s;
}

.ab-pill:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 44px -24px rgba(10,37,64,.45);
}

.ab-pill-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  background: rgba(0,209,178,.12);
  color: var(--ab-teal);
  transition: background .35s, color .35s;
}

.ab-pill-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-pill:hover .ab-pill-icon {
  background: var(--ab-navy);
  color: var(--ab-teal);
}

.ab-pill h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

/* thin rule that ends in a dot, like the reference */
.ab-pill-line {
  position: relative;
  display: block;
  height: 1px;
  margin: 1rem 0 1.1rem;
  background: #e3e7ec;
}

.ab-pill-line::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c7ccd3;
  translate: 0 -50%;
  transition: background .35s;
}

.ab-pill:hover .ab-pill-line::after {
  background: var(--ab-teal);
}

.ab-pill p {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--ab-text);
}

/* arrow button sits in a notch cut out of the bottom corner */
.ab-pill-go {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: var(--notch);
  height: var(--notch);
  display: grid;
  place-items: center;
  border-radius: 26px 0 26px 0;
  background: var(--ab-soft);
}

html[dir="rtl"] .ab-pill-go {
  border-radius: 0 26px 0 26px;
}

.ab-pill-go::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 14px -6px rgba(10,37,64,.4);
  transition: background .35s;
}

.ab-pill-go svg {
  position: relative;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ab-navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .35s, transform .35s;
}

html[dir="rtl"] .ab-pill-go svg {
  transform: scaleX(-1);
}

.ab-pill:hover .ab-pill-go::before {
  background: var(--ab-navy);
}

.ab-pill:hover .ab-pill-go svg {
  stroke: var(--ab-teal);
}

/* ---------- 7. Story cards: mint section, one light card and one dark card ---------- */
.ab-story {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  background: #e7f7ef;
}

.ab-story-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-radius: 22px;
  box-shadow: 0 18px 40px -26px rgba(10,37,64,.45);
  transition: transform .45s var(--ab-ease), box-shadow .45s;
}

.ab-story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px -26px rgba(10,37,64,.55);
}

.ab-story-card--light {
  background: #fff;
  color: var(--ab-navy);
  --muted: var(--ab-text);
  --chip: rgba(0,209,178,.14);
  --ico: var(--ab-teal);
}

.ab-story-card--dark {
  background: var(--ab-navy);
  color: #fff;
  --muted: rgba(255,255,255,.78);
  --chip: rgba(0,209,178,.18);
  --ico: #6df2cc;
}

.ab-story-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.ab-story-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--chip);
  color: var(--ico);
}

.ab-story-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ab-story-num {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .6;
}

.ab-story-card h3 {
  margin-bottom: .8rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
}

.ab-story-card p {
  font-size: .96rem;
  line-height: 1.9;
  color: var(--muted);
}

/* ---------- 8. Call-to-action band ---------- */
.ab-cta {
  padding-block: clamp(3.5rem, 7vw, 5rem);
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--ab-navy), #124a7a);
}

.ab-cta p {
  max-width: 680px;
  margin: 0 auto 1.6rem;
  line-height: 2;
  opacity: .9;
}

/* ---------- 9. Scroll reveal (switched on by about.js; content stays visible without JS) ---------- */
.reveal-on [data-reveal] {
  opacity: 0;
  translate: 0 38px;
  transition: opacity 1.1s var(--ab-ease) var(--d, 0s), translate 1.1s var(--ab-ease) var(--d, 0s), scale 1.1s var(--ab-ease) var(--d, 0s), transform .3s ease, box-shadow .3s ease;
}

.reveal-on [data-reveal="img"] {
  translate: 0 24px;
  scale: .94;
}

.reveal-on [data-reveal="side"] {
  translate: -36px 0;
}

html[dir="rtl"].reveal-on [data-reveal="side"] {
  translate: 36px 0;
}

/* the RTL starting offset above is more specific than the finished state, so it must be cancelled explicitly or Arabic text stays shifted 36px (and overflows on phones) */
html[dir="rtl"].reveal-on [data-reveal="side"].is-in {
  translate: 0 0;
}

.reveal-on [data-reveal].is-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* pictures open up from a rounded window while they settle */
.reveal-on [data-reveal="img"] {
  translate: 0 30px;
  scale: 1.05;
  clip-path: inset(14% 10% 14% 10% round 28px);
  transition: opacity 1s var(--ab-ease) var(--d, 0s), translate 1.3s var(--ab-ease) var(--d, 0s), scale 1.6s var(--ab-ease) var(--d, 0s), clip-path 1.3s var(--ab-ease) var(--d, 0s), transform .3s ease, box-shadow .3s ease;
}

.reveal-on [data-reveal="img"].is-in {
  clip-path: inset(-80px round 28px);
}

/* open wider than the box so the badge and shadows are not cut */

/* headings: same entrance as the home page (rise + un-blur, then the frame draws, then the title settles) */
.reveal-on [data-reveal="head"] {
  translate: 0 40px;
  transition: opacity 1s var(--ab-ease) var(--d, 0s), translate 1.2s var(--ab-ease) var(--d, 0s);
}

.reveal-on [data-reveal="head"].is-in {
  translate: 0 0;
}

.reveal-on [data-reveal] .sec-head {
  clip-path: inset(-30px 100% -30px -30px);
  transition: clip-path 1.3s var(--ab-ease) calc(var(--d, 0s) + .2s);
}

html[dir="rtl"].reveal-on [data-reveal] .sec-head {
  clip-path: inset(-30px -30px -30px 100%);
}

.reveal-on [data-reveal].is-in .sec-head,
html[dir="rtl"].reveal-on [data-reveal].is-in .sec-head {
  clip-path: inset(-30px);
}

.reveal-on [data-reveal] .sec-h {
  translate: 0 14px;
  opacity: 0;
  transition: translate .9s var(--ab-ease) calc(var(--d, 0s) + .65s), opacity .9s ease calc(var(--d, 0s) + .65s);
}

.reveal-on [data-reveal].is-in .sec-h {
  translate: 0 0;
  opacity: 1;
}

/* the button pops in last; card icons pop after the card lands */
.reveal-on .ab-btn[data-reveal] {
  scale: .85;
}

.reveal-on .ab-btn[data-reveal].is-in {
  scale: 1;
  transition-delay: calc(var(--d, 0s) + .15s);
}

.reveal-on [data-reveal].is-in .ab-pill-icon,
.reveal-on [data-reveal].is-in .ab-story-icon {
  animation: ab-pop .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0s) + .5s) backwards;
}

@keyframes ab-pop {
  from {
    scale: .4;
    opacity: 0;
  }
}

/* parallax pieces (positions set by about.js) and the thin progress bar */
.ab-fig-top,
.ab-fig-bottom {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.ab-rings {
  margin-top: var(--py, 0px);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--ab-cyan), var(--ab-teal));
}

html[dir="rtl"] .scroll-progress {
  transform-origin: 100% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .ab-hero-bg,
  .ab-giant-char,
  .ab-hero-people,
  .ab-hero-lead,
  .ab-rings {
    animation: none !important;
  }

  .ab-giant-char {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive hero: the title is centred in the space between the (transparent) navbar and the people ---------- */
.ab-hero {
  --gtop: calc(var(--atd-nav-h, 57px) + clamp(1rem, 3vh, 2.2rem));
}

@media (max-width: 991.98px) {
  .ab-hero {
    justify-content: flex-start;
  }

  .ab-giant,
  html[data-lang="ar"] .ab-giant {
    margin: calc(var(--atd-nav-h, 57px) + 1.4rem) 0 clamp(1rem, 4vw, 2rem);
  }

  .ab-hero-people {
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  .ab-giant {
    font-size: clamp(3.4rem, 20vw, 8rem);
  }

  html[data-lang="ar"] .ab-giant {
    font-size: clamp(3.4rem, 19vw, 7.5rem);
  }
}

@media (max-width: 575.98px) {
  .ab-giant {
    font-size: clamp(3rem, 21vw, 5.8rem);
    letter-spacing: .06em;
    gap: .18em;
  }

  html[data-lang="ar"] .ab-giant {
    font-size: clamp(3rem, 20vw, 5.5rem);
    letter-spacing: 0;
  }
}

/* short landscape screens: keep the hero compact */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 991.98px) {
  .ab-giant {
    font-size: clamp(3rem, 12vw, 6rem);
  }
}

html[data-lang="ar"] body {
  font-family: 'Cairo', 'Montserrat', system-ui, sans-serif;
}

/* The Odoo website editor re-saves <img> tags with its own classes/styles (img-fluid, width/height:auto...). Keep these photos' sizes. */
html body .ab-vis-media img,
html body .ab-fig-main {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

html body .ab-hero-people img {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
}
