/*
  About us (DM-6) — Figma About us / 1440px (4894:172051) and About Us / Mobile
  (4894:172304). Loaded only by company/about_us.html; every rule is scoped under
  .about-page. Mobile frame values first, desktop frame from 768px up; the values
  carousel turns into a grid from 768px, the regulators one from 992px. No !important.
*/

.about-page {
  --about-card-bg: #181818;
  --about-text-secondary: #818181;
  background-color: #000;
  color: #fff;
}

/* Section heading block ("Tittle_text") */
.about-page .about-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 32px;
  text-align: center;
}
.about-page .about-head--hero { padding: 0 12px; margin-bottom: 40px; }
.about-page .about-label {
  display: inline-flex;
  padding: 12px;
  border-radius: 12px;
  background-color: var(--about-card-bg);
  color: #fff;
  font-family: var(--al-font-monospace);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 1.68px;
  text-transform: uppercase;
  white-space: nowrap;
}
.about-page .about-hero__title,
.about-page .about-title {
  margin: 0;
  color: #fff;
  font-family: Onest, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.64px;
}
/* The Figma H1 text box uses balanced wrapping. */
.about-page .about-hero__title { text-wrap: balance; }
.about-page .about-hero__text,
.about-page .about-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

/* Sections */
.about-page .about-hero { padding: 40px 0; }
.about-page .about-section { padding: 40px 0; }
.about-page .about-hero__media {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}
.about-page .about-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}
/* The <picture> is the poster, cropped per width; the video stays clear until
   it can play, also under reduced motion, where it never loads. */
.about-page .about-hero__media .bg-video:not(.is-ready) { opacity: 0; }

.about-page .about-mission {
  padding: 200px 0;
  background: linear-gradient(180deg, #181818 0%, #000 100%);
}
.about-page .about-head--mission { margin-bottom: 0; }
.about-page .about-mission__text {
  margin: 0;
  font-family: Onest, sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.52px;
}

/* Cards (mobile: icon row 24/20/20, body 24/20) */
.about-page .about-card {
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  background-color: var(--about-card-bg);
  color: #fff;
}
.about-page .about-card__icon { display: flex; padding: 24px 20px 20px; }
.about-page .about-card__icon img { display: block; }
.about-page .about-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
}
.about-page .about-card__title {
  margin: 0;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.about-page .about-card__desc {
  margin: 0;
  color: var(--about-text-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
/* A note on its own line under an entity's licence: paragraph-spacing/8 of the Body
   text styles (Altery Brand [Route], 6 Nov 2026), on every width. */
.about-page .about-card__note { display: block; margin-top: 8px; }

.about-page .about-history__text {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.about-page .about-history .about-card__icon img { width: 32px; height: 32px; }

.about-page .about-value .about-card__icon img { width: 32px; height: 32px; }
.about-page .about-value .about-card__title {
  font-family: Onest, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.42px;
}
.about-page .about-standard .about-card__icon { height: 114px; align-items: flex-start; }

.about-page .about-grid { display: grid; gap: 16px; }

/* What we value: carousel below 768px, one card per view, all as tall as the tallest */
.about-page .about-values .swiper-wrapper { display: flex; gap: 0; align-items: stretch; }
.about-page .about-value { height: auto; }

/* Where we are now */
.about-page .about-big-cards { display: grid; gap: 16px; }
.about-page .about-big-card {
  position: relative;
  overflow: hidden;
  height: 420px;
  border-radius: 32px;
  background-color: var(--about-card-bg);
}
.about-page .about-big-card picture { display: contents; }
.about-page .about-big-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-page .about-big-card--platform::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(156.48deg, rgba(247, 32, 1, 0.5) 1.17%, rgba(247, 32, 1, 0.3) 18.31%, rgba(247, 32, 1, 0) 44.75%);
  pointer-events: none;
}
.about-page .about-big-card__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 20px;
}
.about-page .about-big-card__title {
  margin: 0;
  color: #fff;
  font-family: Onest, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.42px;
}
.about-page .about-big-card__desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

/* Trusted, licensed and regulated: carousel, two cards per view */
.about-page .about-regulators .swiper-wrapper { align-items: stretch; }
.about-page .about-reg-card { height: auto; min-height: 420px; }
/* Below 576px the header is only the logo and the menu icon: one card per view, as in
   Figma About Us / Mobile v2 05.11; cards share the tallest card's height. */
@media (max-width: 575.98px) {
  .about-page .about-reg-card { min-height: 0; }
  .about-page .about-reg-card--spacer { display: none; }
}
.about-page .about-reg-card__flag { width: 48px; height: 48px; }
.about-page .about-logo { position: relative; display: block; width: 137.143px; height: 48px; }
.about-page .about-logo--visa img { width: 68.515px; height: 21.943px; margin-top: 8.229px; }
.about-page .about-logo--mastercard img { width: 53.486px; height: 32.914px; margin-top: 5.486px; }
.about-page .about-logo--unionpay img {
  position: absolute;
  left: 1.81%;
  top: 6.43%;
  width: 41.13%;
  height: 72.24%;
}
.about-page .about-regulators__pagination,
.about-page .about-values__pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 12px;
}
.about-page .about-regulators__pagination .swiper-pagination-bullet,
.about-page .about-values__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50px;
  background: #818181;
  opacity: 0.3;
}
.about-page .about-regulators__pagination .swiper-pagination-bullet-active,
.about-page .about-values__pagination .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
}

/* Join our team */
.about-page .about-banner-section { padding: 40px 0 60px; }
.about-page .about-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  aspect-ratio: 343 / 620;
  padding: 24px 24px 32px;
  border-radius: 32px;
  background-color: var(--about-card-bg);
}
.about-page .about-banner picture { display: contents; }
.about-page .about-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-page .about-banner__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
/* Mobile: the label's blur is baked into banner-mobile (no live backdrop-filter). */
.about-page .about-banner__label { background-color: rgba(255, 255, 255, 0.05); }
.about-page .about-banner__title {
  margin: 12px 0 0;
  color: #fff;
  font-family: Onest, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.64px;
}
.about-page .about-banner__desc {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.about-page .about-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 16px 24px;
  border-radius: 40px;
  background-color: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.about-page .about-banner__btn:hover,
.about-page .about-banner__btn:focus-visible { background-color: #eceae8; color: #000; }

/* ---------- Desktop frame (About us / 1440px) ---------- */
@media (min-width: 768px) {
  .about-page .about-head {
    gap: 16px;
    max-width: 856px;
    margin-bottom: 40px;
  }
  .about-page .about-head--hero { padding: 0; margin-bottom: 56px; }
  .about-page .about-label {
    font-size: 16px;
    letter-spacing: 1.92px;
  }
  .about-page .about-hero__title {
    font-size: 60px;
    line-height: 70px;
    letter-spacing: -0.6px;
  }
  .about-page .about-title {
    font-size: 52px;
    line-height: 60px;
    letter-spacing: -1.04px;
  }
  .about-page .about-hero__text {
    max-width: 720px;
    font-size: 20px;
    line-height: 30px;
  }
  .about-page .about-text {
    max-width: 720px;
    font-size: 18px;
    line-height: 24px;
  }

  .about-page .about-hero { padding: 48px 0 0; }
  .about-page .about-section { padding: 120px 0; }
  .about-page .about-hero__media,
  .about-page .about-hero__media img { border-radius: 40px; }

  .about-page .about-mission { padding: 160px 0; }
  .about-page .about-head--mission { max-width: 1076px; margin-bottom: 0; }
  /* 1076px in Figma; Figma sets Onest ~0.7% wider than browsers, so at 1076px
     "to operate" would still fit on line 1. 1068px keeps the design's breaks. */
  .about-page .about-mission__text {
    max-width: 1068px;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -0.64px;
  }

  .about-page .about-card { gap: 60px; padding: 32px; }
  .about-page .about-card__icon,
  .about-page .about-card__body { padding: 0; }
  .about-page .about-card__body { gap: 12px; }
  .about-page .about-card__title {
    font-family: Onest, sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.52px;
  }
  .about-page .about-card__desc {
    font-size: 16px;
    line-height: 22px;
  }

  .about-page .about-history { max-width: 856px; margin: 0 auto; }
  .about-page .about-history .about-card__icon img { width: 48px; height: 48px; }
  .about-page .about-history__text {
    font-family: Onest, sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.42px;
  }

  .about-page .about-value .about-card__icon img { width: 48px; height: 48px; }
  .about-page .about-value .about-card__title {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.52px;
  }
  .about-page .about-standard .about-card__icon { height: 70px; }

  .about-page .about-grid { gap: 24px; }

  /* Values grid from 768px: the Swiper is destroyed, the wrapper is the grid again. */
  .about-page .about-values { overflow: visible; }
  .about-page .about-values .swiper-wrapper { display: grid; gap: 24px; transform: none; }
  .about-page .about-value { width: auto; }
  .about-page .about-values__pagination { display: none; }
  .about-page .about-grid--2,
  .about-page .about-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about-page .about-big-cards { gap: 24px; }
  .about-page .about-big-card { height: auto; aspect-ratio: 636 / 720; }
  .about-page .about-big-card--platform::after {
    background-image: linear-gradient(158.08deg, rgba(247, 32, 1, 0.5) 1.17%, rgba(247, 32, 1, 0.3) 18.31%, rgba(247, 32, 1, 0) 44.75%);
  }
  .about-page .about-big-card__text { max-width: 480px; padding: 40px; }
  .about-page .about-big-card__title {
    font-size: 26px;
    line-height: 32px;
    letter-spacing: -0.52px;
  }
  .about-page .about-big-card__desc { font-size: 16px; line-height: 22px; }

  .about-page .about-reg-card { min-height: 0; }
  .about-page .about-reg-card .about-card__icon { height: 70px; }
  .about-page .about-reg-card .about-card__body { gap: 8px; }
  .about-page .about-reg-card .about-card__title {
    font-size: 21px;
    line-height: 28px;
    letter-spacing: -0.42px;
  }
  .about-page .about-reg-card__flag { width: 64px; height: 64px; }
  .about-page .about-logo { width: 200px; height: 70px; }
  .about-page .about-logo--visa img { width: 99.918px; height: 32px; margin-top: 12px; }
  .about-page .about-logo--mastercard img { width: 78px; height: 48px; margin-top: 8px; }

  .about-page .about-banner-section { padding: 40px 0 120px; }
  .about-page .about-banner {
    container-type: inline-size;
    justify-content: flex-end;
    aspect-ratio: auto;
    height: 600px;
    padding: 60px;
    border-radius: 40px;
  }
  .about-page .about-banner__text { width: 613px; max-width: 100%; }
  /* Desktop label: Figma backdrop blur 25 baked into a strip of the photo at the
     label's rows (y 260-304 of the 1296x600 banner). The photo is 1296px wide at
     600px high and centred, so the strip is shifted by half the cropped width. */
  .about-page .about-banner__label {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)),
      image-set(
        url("../img/about-us/photos/banner-label-blur.db0d78f7e15b.avif") type("image/avif"),
        url("../img/about-us/photos/banner-label-blur.6591126c70ac.webp") type("image/webp"),
        url("../img/about-us/photos/banner-label-blur.b76b39ccc639.jpg") type("image/jpeg")
      );
    background-repeat: no-repeat;
    background-size: auto, 1296px 44px;
    background-position: 0 0, calc((100cqw - 1296px) / 2) 0;
  }
  .about-page .about-banner__title {
    max-width: 437px;
    margin-top: 16px;
    font-size: 52px;
    line-height: 60px;
    letter-spacing: -1.04px;
  }
  .about-page .about-banner__desc {
    max-width: 460px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
  }
  .about-page .about-banner__btn {
    margin-top: 32px;
    padding: 20px 32px;
    font-size: 18px;
  }
}

@media (min-width: 992px) {
  .about-page .about-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-page .about-big-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Regulators grid: four entity cards, then the three card schemes. */
  .about-page .about-regulators { overflow: visible; }
  .about-page .about-regulators .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    transform: none;
  }
  .about-page .about-reg-card { grid-column: span 3; width: auto; }
  .about-page .about-reg-card--scheme {
    grid-column: span 4;
    order: var(--about-desktop-order);
  }
  /* Title and member entity: 12px apart in the scheme cards (Figma 4923:175802). */
  .about-page .about-reg-card--scheme .about-card__body { gap: 12px; }
  .about-page .about-regulators__pagination,
  .about-page .about-reg-card--spacer { display: none; }
}
