/* =========================================================
   About Us page  (Figma 431:19869)
   ========================================================= */
.page-about { --ab-green: #009e8a; }

/* ---------- Hero (431:19871) ---------- */
.page-about .ab-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: clamp(560px, 45.625vw, 876px);
  background: #d9f1ea;
}
.page-about .ab-hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-about .ab-hero__bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 100%;
}
.page-about .ab-hero__inner { flex: 1; display: flex; align-items: center; padding-block: clamp(40px, 6vw, 96px); }
.page-about .ab-hero__content { width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 3vw, 44px); }
.page-about .ab-hero__text { display: flex; flex-direction: column; gap: 16px; color: var(--neutral-1000); }
.page-about .ab-hero__text h1 { text-transform: capitalize; font-feature-settings: "lnum" 1, "pnum" 1; }
.page-about .ab-hero__band { background: var(--neutral-950); color: var(--neutral-0); padding: 20px var(--gutter); text-align: center; text-wrap: balance; }
.page-about .ab-hero__band span { opacity: .9; }

/* tablet + mobile: copy on top, artwork (devices side of the image) below */
@media (max-width: 900px) {
  .page-about .ab-hero { min-height: 0; background: linear-gradient(180deg, #d7f0ea 0%, #e3f5f0 60%, #dff3ee 100%); }
  .page-about .ab-hero__bg { position: relative; z-index: 0; order: 2; inset: auto; height: auto; aspect-ratio: 16 / 9; object-position: 85% 72%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
  .page-about .ab-hero__inner { order: 1; padding-top: 48px; padding-bottom: 0; position: relative; z-index: 1; }
  .page-about .ab-hero__bg { margin-top: -6%; }
  .page-about .ab-hero__band { order: 3; padding-block: 16px; }
}
@media (max-width: 560px) {
  .page-about .ab-hero__bg { aspect-ratio: 375 / 290; object-position: 80% 72%; margin-top: -8%; }
  .page-about .ab-hero__inner { padding-top: 36px; }
}

/* ---------- Values (488:26602) ---------- */
.page-about .ab-values { background: var(--neutral-0); padding-top: var(--section-y); overflow: hidden; }
.page-about .ab-values__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.page-about .ab-value { background: var(--neutral-50); border-radius: var(--radius-md); padding: 40px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.page-about .ab-value__sticker { width: 140px; height: 140px; flex-shrink: 0; }
.page-about .ab-value__head { display: flex; flex-direction: column; gap: 8px; }
.page-about .ab-value__head h2 { color: var(--neutral-950); }
.page-about .ab-value__head p { color: var(--neutral-800); }
.page-about .ab-value__body { color: var(--neutral-600); }

.page-about .ab-marquee { margin-top: clamp(40px, 6.1vw, 88px); height: clamp(44px, 5vw, 72px); overflow: hidden; display: flex; align-items: center; }
.page-about .ab-marquee__track { display: flex; width: max-content; animation: ab-marquee 48s linear infinite; }
.page-about .ab-marquee__track span {
  font-weight: 600; font-size: clamp(32px, 3.75vw, 54px); line-height: clamp(44px, 5vw, 72px); white-space: nowrap;
  /* white fill painted over a 2px stroke hides the font's overlapping contours, leaving a clean 1px outline */
  color: var(--neutral-0); -webkit-text-stroke: 2px var(--neutral-950); paint-order: stroke fill; letter-spacing: 0;
}
.page-about .ab-marquee:hover .ab-marquee__track { animation-play-state: paused; }
@keyframes ab-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (min-width: 768px) and (max-width: 900px) {
  .page-about .ab-values__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .page-about .ab-value { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 28px; row-gap: 12px; padding: 28px; align-items: center; }
  .page-about .ab-value__sticker { width: 120px; height: 120px; grid-row: 1 / span 2; }
  .page-about .ab-value__head, .page-about .ab-value__body { grid-column: 2; }
  .page-about .ab-value__head { align-self: end; }
  .page-about .ab-value__body { align-self: start; }
}
/* mobile: swipeable carousel (h-scroll) */
@media (max-width: 767px) {
  .page-about .ab-values__grid { padding-top: 6px; padding-bottom: 10px; }
  .page-about .ab-value { padding: 24px; gap: 12px; }
  .page-about .ab-value__sticker { width: 112px; height: 112px; }
  .page-about .ab-values .h-dots { margin-top: 10px; }
}

/* ---------- Impact (462:25809) ---------- */
.page-about .ab-impact { background: var(--neutral-50); padding-block: var(--section-y); }
.page-about .ab-impact .container { display: flex; flex-direction: column; gap: 24px; }
.page-about .ab-impact__head { display: flex; flex-direction: column; gap: 16px; }
.page-about .ab-impact__head h2 { color: var(--neutral-950); text-transform: capitalize; }
.page-about .ab-impact__head p { color: var(--neutral-800); }
.page-about .ab-impact__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 380fr) minmax(0, 320fr);
  gap: 20px; aspect-ratio: 1280 / 720; margin-bottom: -9px; /* Mission Visuals 462:25813: 720 tall, 380 / 320 split */
}
.page-about .ab-impact__card {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--neutral-0);
  padding: 28px 24px; text-align: center; color: var(--neutral-950); isolation: isolate;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.page-about .ab-impact__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(15,15,15,.3); }
.page-about .ab-impact__card img {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none;
  object-fit: cover; transition: transform 1.2s var(--ease-out);
}
.page-about .ab-impact__card:hover img { transform: scale(1.04); }
.page-about .ab-impact__card p { position: relative; }
.page-about .ab-impact__card em { font-style: normal; color: var(--ab-green); }
.page-about .ab-impact__card sup { font-size: .496em; line-height: 0; vertical-align: .9em; }
.page-about .ab-impact__card sub { font-size: .645em; line-height: 0; vertical-align: -.2em; }
.page-about .ab-impact__card--water { grid-row: 1 / span 2; }
.page-about .ab-impact__card--water img { object-position: 50% 100%; }
.page-about .ab-impact__card--raw img { object-position: 50% 43%; }
.page-about .ab-impact__card--co2 img { object-position: 50% 56%; }
.page-about .ab-impact__refs { color: var(--neutral-1000); overflow-wrap: anywhere; }
.page-about .ab-impact__refs p:first-child { margin-bottom: 14px; }
.page-about .ab-impact__refs a { text-decoration: underline; text-underline-offset: 2px; transition: color var(--dur-fast) ease; }
.page-about .ab-impact__refs a:hover { color: var(--primary); }

/* tablet + mobile: swipeable carousel (h-scroll-md); uniform cards, copy on top, art below */
@media (max-width: 1023px) {
  .page-about .ab-impact__grid { aspect-ratio: auto; margin-bottom: 0; padding-top: 6px; padding-bottom: 10px; align-items: stretch; }
  .page-about .ab-impact__card { aspect-ratio: 340 / 372; padding: 20px 20px 0; display: flex; flex-direction: column; gap: 8px; }
  .page-about .ab-impact__card img { position: relative; inset: auto; z-index: 0; order: 2; flex: 1 1 0; min-height: 0;
    width: calc(100% + 40px); height: auto; margin: 0 -20px; object-fit: contain; object-position: 50% 100% !important; }
  .page-about .ab-impact__card--water img { object-fit: cover; }
  .page-about .ab-impact__card p { z-index: 1; }
  .page-about .ab-impact .h-dots { margin-top: 2px; }
}
@media (max-width: 767px) {
  .page-about .ab-impact__card { aspect-ratio: 300 / 372; padding: 18px 16px 0; }
  .page-about .ab-impact__card img { width: calc(100% + 32px); margin: 0 -16px; }
}

/* ---------- History timeline (431:19933 / 496:27197) ---------- */
.page-about .ab-history { background: var(--neutral-0); padding-block: clamp(56px, 8.4vw, 120px); overflow: hidden; }
.page-about .ab-history h2 { color: var(--neutral-950); text-transform: capitalize; }
.page-about .ab-timeline {
  --tl-pad: max(var(--gutter), calc((100% - var(--container)) / 2));
  position: relative; margin-top: clamp(28px, 3vw, 44px);
}
/* side fades (488:27188 / 488:27190) */
.page-about .ab-timeline::before, .page-about .ab-timeline::after {
  content: ""; position: absolute; top: -60px; bottom: 56px; width: max(56px, var(--tl-pad)); z-index: 2; pointer-events: none;
  transition: opacity var(--dur) ease;
}
.page-about .ab-timeline::before { left: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%); }
.page-about .ab-timeline::after { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 100%); }
.page-about .ab-timeline.at-start::before, .page-about .ab-timeline.at-end::after { opacity: 0; }

.page-about .ab-timeline__scroller {
  overflow-x: auto; overflow-y: hidden; padding-inline: var(--tl-pad); padding-bottom: 8px;
  scroll-snap-type: x proximity; scroll-padding-inline: var(--tl-pad); scrollbar-width: none; cursor: grab;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.page-about .ab-timeline__scroller::-webkit-scrollbar { display: none; }
.page-about .ab-timeline__scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.page-about .ab-timeline__scroller:focus-visible { outline-offset: -2px; }
.page-about .ab-timeline__list { position: relative; display: flex; gap: 44px; width: max-content; }
/* the connecting line (488:26962) */
.page-about .ab-timeline__list::before {
  content: ""; position: absolute; left: 10px; right: 270px; top: 10px; height: 2px; background: var(--neutral-950);
  transform-origin: left center;
}
.page-about .ab-tl-item { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; scroll-snap-align: start; position: relative; }
.page-about .ab-tl-item__dot { width: 36px; height: 36px; margin: -8px; max-width: none; position: relative; z-index: 1; }
.page-about .ab-tl-item__body { display: flex; flex-direction: column; gap: 4px; color: var(--neutral-950); }
.page-about .ab-tl-item__body b { font-weight: 700; }
.page-about .ab-tl-logo { position: relative; display: block; height: 20px; overflow: hidden; flex-shrink: 0; }
.page-about .ab-tl-logo--reglobe { width: 77.045px; }
.page-about .ab-tl-logo--reglobe img { position: absolute; left: 0; top: 0; width: 87.95%; height: 87.95%; }
.page-about .ab-tl-logo--cashify { width: 79.337px; }
.page-about .ab-tl-logo--cashify img { position: absolute; left: 0; top: 0; width: 79.337px; height: 19.9901px; }
.page-about .ab-tl-logo--cashify img.mark { left: 6.67%; top: 26.18%; width: 11.9%; height: 47.2%; }

/* sequenced reveal */
.js .page-about .ab-timeline__list::before { transform: scaleX(0); transition: transform 2.2s var(--ease-out) .1s; }
.js .page-about .ab-tl-item__dot { transform: scale(0); transition: transform 520ms cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 120ms + 150ms); }
.js .page-about .ab-tl-item__body { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 260ms); }
.js .page-about .ab-timeline.is-in .ab-timeline__list::before { transform: none; }
.js .page-about .ab-timeline.is-in .ab-tl-item__dot { transform: none; }
.js .page-about .ab-timeline.is-in .ab-tl-item__body { opacity: 1; transform: none; }
.page-about .ab-tl-item:hover .ab-tl-item__dot { transform: scale(1.25); transition-delay: 0s; }
.page-about .ab-tl-item h3 { transition: color var(--dur-fast) ease; }
.page-about .ab-tl-item:hover h3 { color: var(--primary); }

/* controls */
.page-about .ab-timeline__nav { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.page-about .ab-timeline__progress { flex: 1; height: 2px; background: var(--neutral-200); border-radius: 2px; overflow: hidden; margin-right: 12px; }
.page-about .ab-timeline__progress span { display: block; height: 100%; background: var(--primary); transform-origin: left; transform: scaleX(.06); transition: transform 200ms linear; }
.page-about .ab-timeline__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--neutral-950); color: var(--neutral-950);
  display: grid; place-items: center; transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.page-about .ab-timeline__btn:hover:not(:disabled) { background: var(--neutral-950); color: var(--neutral-0); transform: translateY(-2px); }
.page-about .ab-timeline__btn:disabled { opacity: .3; cursor: default; }

@media (max-width: 767px) {
  .page-about .ab-timeline::before, .page-about .ab-timeline::after, .page-about .ab-timeline__nav { display: none; }
  .page-about .ab-timeline__scroller { overflow: visible; cursor: auto; padding-bottom: 0; }
  .page-about .ab-timeline__list { flex-direction: column; width: auto; gap: 24px; }
  .page-about .ab-timeline__list::before { left: 9px; right: auto; top: 10px; bottom: 40px; width: 2px; height: auto; transform-origin: center top; }
  .js .page-about .ab-timeline__list::before { transform: scaleY(0); }
  .page-about .ab-tl-item { width: auto; flex-direction: row; gap: 16px; }
  .page-about .ab-tl-item__dot { flex-shrink: 0; margin: -4px -8px -8px; }
  .page-about .ab-tl-item__body { padding-left: 8px; }
}

/* ---------- Trust metrics (556:9711) ---------- */
.page-about .ab-metrics { background: var(--neutral-950); padding-block: 20px; }
.page-about .ab-metrics__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.page-about .ab-metric { background: transparent; border-radius: var(--radius-sm); padding: 24px 12px; display: flex; flex-direction: column; gap: 2px; text-align: center;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.page-about .ab-metric:hover { transform: translateY(-3px); background: rgba(255,255,255,.04); }
.page-about .ab-metric p:first-child { color: var(--neutral-0); font-variant-numeric: tabular-nums; }
.page-about .ab-metric p:last-child { color: var(--neutral-50); }
@media (max-width: 560px) {
  .page-about .ab-metrics { padding-block: 16px; }
  .page-about .ab-metrics__grid { gap: 8px; }
  .page-about .ab-metric { padding: 16px 4px; }
}

/* ---------- Founders (488:26693) ---------- */
.page-about .ab-team { background: var(--neutral-50); padding-top: var(--section-y); padding-bottom: clamp(150px, 14.6vw, 280px); overflow: hidden; position: relative; isolation: isolate; }
.page-about .ab-team .container { position: relative; z-index: 1; }
.page-about .ab-team .container { display: flex; flex-direction: column; gap: 24px; }
.page-about .ab-team h2 { color: var(--neutral-950); text-transform: capitalize; }
.page-about .ab-team__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.page-about .ab-person {
  background: var(--neutral-0); border-radius: var(--radius-xl); padding: 16px 16px 24px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: 0 0 10px rgba(0, 0, 0, .08);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.page-about .ab-person__photo { aspect-ratio: 915 / 1020; border-radius: var(--radius-md); overflow: hidden; background: #d9d9d9; }
.page-about .ab-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-about .ab-person__meta { display: flex; flex-direction: column; gap: 2px; color: var(--neutral-950); }
.page-about .ab-team__crowd {
  display: block; position: absolute; left: 50%; bottom: -1.05%; transform: translateX(-50%); z-index: 0; opacity: .4; pointer-events: none;
  width: max(100%, 900px); max-width: none; height: auto; margin: 0;
}
.js .page-about .ab-team__crowd[data-reveal] { transform: translateX(-50%); }
.js .page-about .ab-team__crowd[data-reveal].is-visible { transform: translateX(-50%); opacity: .4; }

@media (min-width: 1024px) and (max-width: 1180px) { .page-about .ab-team__grid { gap: 16px; } .page-about .ab-person { padding: 12px 12px 20px; } }
/* tablet + mobile: swipeable carousel (h-scroll-md) */
@media (max-width: 1023px) {
  .page-about .ab-team .container { gap: 16px; }
  .page-about .ab-team__grid { padding-top: 10px; padding-bottom: 14px; }
  .page-about .ab-team .h-dots { margin-top: 0; }
}
@media (max-width: 767px) {
  .page-about .ab-person { padding: 12px 12px 18px; border-radius: 20px; gap: 10px; }
  .page-about .ab-person__photo { border-radius: 10px; }
}

/* References: truncated with Read more (collapsed = one line per reference) */
.page-about .ab-impact__refs .refs-list { display: flex; flex-direction: column; gap: 2px; }
.page-about .ab-impact__refs:not(.is-open) .refs-list p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-about .ab-impact__refs:not(.is-open) .refs-list p:nth-child(n+2) { display: none; }
.page-about .refs-toggle { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 700; padding: 6px 0; }
.page-about .refs-toggle img { width: 10px; height: 5px; transition: transform var(--dur) var(--ease-out); }
.page-about .ab-impact__refs.is-open .refs-toggle img { transform: rotate(180deg); }
.page-about .refs-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-about .ab-impact__refs.is-open .refs-list p { animation: fadeIn 300ms ease both; }
.page-about .ab-impact__refs .refs-list p:first-child { margin-bottom: 0; }

/* ---- Mobile/tablet hero: devices group centred under the copy (devices span 53–98% of the artwork) ---- */
@media (max-width: 900px) {
  .page-about .ab-hero__media { position: relative; inset: auto; z-index: 0; order: 2; aspect-ratio: 870 / 600; margin-top: -4%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%); mask-image: linear-gradient(180deg, transparent 0, #000 18%); }
  .page-about .ab-hero__media .ab-hero__bg { position: absolute; inset: auto; left: -104%; bottom: 0; width: 203.9%; height: auto; aspect-ratio: 1774 / 887;
    margin: 0; object-fit: fill; -webkit-mask-image: none; mask-image: none; }
}
/* ---- Mobile: Passion / Promise / Principle stacked one after another ---- */
@media (max-width: 767px) {
  .page-about .ab-values__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0; margin: 0; overflow: visible; }
  .page-about .ab-value { padding: 24px; gap: 12px; }
  .page-about .ab-value__sticker { width: 96px; height: 96px; }
}
