/* ══════════════════════════════════════════════════════════════
   HOMEPAGE — ABOUT SECTION ("Our Story")
   Markup: index.php  <section class="ab-section" id="about">
   Behaviour (platform carousel): assets/index-about.js
   All classes are prefixed ab- so nothing here touches other sections.
   ══════════════════════════════════════════════════════════════ */
.ab-section {
  --ab-ink: #0f172a;
  --ab-text: #475569;
  --ab-muted: #64748b;
  --ab-blue: #2E2AFF;
  --ab-lime: #C8FF00;
  --ab-line: #e9e9f4;
  --ab-card: #ffffff;
  position: relative;
  background: #f6f6fc;
  padding: 72px 0 64px;
  color: var(--ab-ink);
  font-family: 'Manrope', sans-serif;
}
.ab-section *, .ab-section *::before, .ab-section *::after { box-sizing: border-box; }
.ab-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Heading row ── */
.ab-head { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; padding: 0 28px; margin-bottom: 26px; }
.ab-eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ab-text); }
.ab-eyebrow::before { content: ''; width: 46px; height: 2px; border-radius: 2px; background: #b9e600; flex-shrink: 0; }
.ab-title { margin: 0; font-size: clamp(27px, 2.95vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; color: var(--ab-ink); }
.ab-title span { color: var(--ab-blue); }
.ab-intro { margin: 34px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ab-text); }

/* ── Stats bar ── */
.ab-stats { list-style: none; margin: 0 0 12px; padding: 16px 0; display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(0, 1.24fr) minmax(0, .94fr) minmax(0, 1fr); background: var(--ab-card); border: 1px solid var(--ab-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 8px 24px rgba(30, 27, 120, .05); }
.ab-stat { display: flex; align-items: center; gap: 14px; padding: 0 20px 0 24px; min-width: 0; position: relative; }
.ab-stat + .ab-stat::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--ab-line); }
.ab-stat__icon { flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #efeffd; color: var(--ab-blue); font-size: 24px; }
.ab-stat__text { display: flex; flex-direction: column; min-width: 0; }
.ab-stat__text strong { font-size: 21px; font-weight: 800; line-height: 1.2; color: var(--ab-ink); letter-spacing: -.01em; }
.ab-stat__text span { font-size: 12.5px; line-height: 1.35; color: var(--ab-muted); }

/* ── Story card ── */
.ab-story { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 18px 26px 18px 28px; margin-bottom: 26px; background: var(--ab-card); border: 1px solid var(--ab-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 8px 24px rgba(30, 27, 120, .05); }
.ab-story__body { min-width: 0; padding: 6px 0; }
.ab-story__tag { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; }
.ab-story__tag::before { content: ''; width: 38px; height: 2px; border-radius: 2px; background: #b9e600; flex-shrink: 0; }
.ab-story__tag span { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #3f4a12; background: #effbc9; padding: 5px 13px; border-radius: 999px; }
.ab-story__title { margin: 0 0 12px; font-size: clamp(20px, 1.95vw, 24px); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ab-ink); }
.ab-story__body p.ab-story__text { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--ab-text); }
.ab-team { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.ab-team__avatars { display: flex; flex-shrink: 0; }
.ab-team__avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; box-shadow: 0 2px 6px rgba(15, 23, 42, .14); }
.ab-team__avatars span + span { margin-left: -10px; }
.ab-team__avatars span:nth-child(1) { background: linear-gradient(135deg, #2E2AFF, #6d63ff); }
.ab-team__avatars span:nth-child(2) { background: linear-gradient(135deg, #0f172a, #475569); }
.ab-team__avatars span:nth-child(3) { background: linear-gradient(135deg, #7c6cff, #b3a8ff); }
.ab-team__avatars span:nth-child(4) { background: linear-gradient(135deg, #5a7a00, #9ccc00); }
.ab-team__sign { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid var(--ab-line); min-width: 0; }
.ab-team__signature { font-family: 'Mrs Saint Delafield', 'Brush Script MT', cursive; font-size: 34px; line-height: .95; color: #334155; white-space: nowrap; }
.ab-team__caption { font-size: 9.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: #94a3b8; margin-top: 2px; }

/* brand panel (drawn with CSS + SVG, no image file) */
.ab-brand { position: relative; min-height: 222px; height: 100%; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px 40px; background: linear-gradient(140deg, #ecebff 0%, #dcd8ff 42%, #b9b2ff 100%); }
.ab-brand__waves { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-brand__logo { position: relative; display: flex; align-items: baseline; justify-content: center; font-size: clamp(30px, 3.1vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: #0f172a; }
.ab-brand__logo b { font-weight: 800; color: var(--ab-blue); }
.ab-brand__logo i { display: inline-block; width: .78em; height: .12em; margin-left: .22em; border-radius: 2px; background: #b9e600; }
.ab-brand__tag { position: relative; margin-top: 12px; font-size: 10.5px; font-weight: 600; letter-spacing: .36em; text-transform: uppercase; color: #334155; }

/* ── Platforms ── */
.ab-platforms { padding: 0 34px; }
.ab-platforms__title { margin: 0 0 4px; font-size: clamp(19px, 1.8vw, 22px); font-weight: 800; letter-spacing: -.01em; color: var(--ab-ink); }
.ab-platforms__sub { margin: 0 0 14px; font-size: 14px; color: var(--ab-text); }
.ab-car { position: relative; --ab-per: 8; --ab-gap: 12px; }
.ab-car__viewport { overflow: hidden; padding: 4px 0 6px; touch-action: pan-y; }
.ab-car__track { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--ab-gap); will-change: transform; }
.ab-plat { flex: 0 0 calc((100% - (var(--ab-per) - 1) * var(--ab-gap)) / var(--ab-per)); min-width: 0; }
.ab-plat__card { height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px 6px; background: var(--ab-card); border: 1px solid var(--ab-line); border-radius: 12px; text-decoration: none; color: var(--ab-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .03); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.ab-plat__card:hover { border-color: rgba(46, 42, 255, .35); box-shadow: 0 8px 20px rgba(30, 27, 120, .1); transform: translateY(-2px); }
a.ab-plat__card:focus-visible { outline: 2px solid var(--ab-blue); outline-offset: 2px; }
.ab-plat__pill { font-size: 10.5px; font-weight: 700; line-height: 1; padding: 4px 12px; border-radius: 6px; color: #1e293b; background: #e6ecff; white-space: nowrap; }
.ab-pill--green { background: #dff5e4; color: #14532d; }
.ab-pill--orange { background: #ffe8d4; color: #9a3412; }

/* wordmarks (text set in each platform's brand colour) */
.ab-logo { display: inline-flex; align-items: center; gap: 5px; height: 24px; font-size: 17px; font-weight: 800; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.ab-logo svg { flex-shrink: 0; display: block; }
.ab-logo--trustpilot { color: #191919; font-weight: 700; }
.ab-logo--clutch { color: #17313b; font-size: 18px; }
.ab-logo--clutch { gap: 0; }
.ab-logo--clutch .c { position: relative; display: inline-block; }
.ab-logo--clutch .c i { position: absolute; left: 56%; top: 52%; width: .27em; height: .27em; border-radius: 50%; background: #ff3d2e; transform: translate(-50%, -50%); }
.ab-logo--goodfirms { color: #3a7af3; font-size: 15px; font-weight: 700; }
.ab-logo--sortlist { color: #0b0b0b; font-size: 18px; text-transform: lowercase; }
.ab-logo--google { font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-family: 'Product Sans', 'Manrope', Arial, sans-serif; }
.ab-logo--google span:nth-child(1), .ab-logo--google span:nth-child(4) { color: #4285F4; }
.ab-logo--google span:nth-child(2), .ab-logo--google span:nth-child(6) { color: #EA4335; }
.ab-logo--google span:nth-child(3) { color: #FBBC05; }
.ab-logo--google span:nth-child(5) { color: #34A853; }
.ab-logo--google { gap: 0; }
.ab-logo--linkedin { color: #0A66C2; gap: 2px; }
.ab-logo--linkedin b { display: inline-flex; align-items: center; justify-content: center; font-size: .82em; font-weight: 800; color: #fff; background: #0A66C2; border-radius: 3px; padding: .12em .22em .16em; line-height: 1; }
.ab-logo--glassdoor { color: #0CAA41; text-transform: lowercase; }
.ab-logo--indeed { color: #2164f3; font-size: 19px; text-transform: lowercase; }

/* arrows + dots */
.ab-car__nav { position: absolute; top: 42px; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ab-line); background: #fff; color: #1e293b; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; padding: 0; box-shadow: 0 4px 14px rgba(15, 23, 42, .1); transition: background .2s ease, color .2s ease, border-color .2s ease; z-index: 2; }
.ab-car__nav:hover { background: var(--ab-blue); border-color: var(--ab-blue); color: #fff; }
.ab-car__nav:focus-visible { outline: 2px solid var(--ab-blue); outline-offset: 2px; }
.ab-car__nav--prev { left: -48px; }
.ab-car__nav--next { right: -48px; }
.ab-car__dots { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.ab-car__dot { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; background: #cfd3e6; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.ab-car__dot.is-active { background: var(--ab-blue); transform: scale(1.15); }
.ab-car__dot:focus-visible { outline: 2px solid var(--ab-blue); outline-offset: 3px; }

/* ── Responsive ── */
@media (max-width: 1320px) {
  .ab-platforms { padding: 0 46px; }
  .ab-car__nav--prev { left: -44px; }
  .ab-car__nav--next { right: -44px; }
}
@media (max-width: 1180px) {
  .ab-head { gap: 24px 40px; }
  .ab-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-stat { padding: 0 14px; gap: 10px; }
  .ab-stat__icon { width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
  .ab-stat__text strong { font-size: 19px; }
  .ab-car { --ab-per: 6; }
}
@media (max-width: 960px) {
  .ab-section { padding: 56px 0 52px; }
  .ab-head { grid-template-columns: 1fr; padding: 0 8px; gap: 14px; }
  .ab-intro { margin-top: 0; }
  .ab-stat { padding: 0 12px; gap: 10px; }
  .ab-stat__icon { width: 40px; height: 40px; font-size: 18px; }
  .ab-stat__text strong { font-size: 18px; }
  .ab-story { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .ab-brand { min-height: 200px; order: -1; }
  .ab-car { --ab-per: 4; }
}
@media (max-width: 640px) {
  .ab-section { padding: 44px 0 44px; }
  .ab-inner { padding: 0 16px; }
  .ab-head { padding: 0 4px; margin-bottom: 22px; }
  .ab-intro { font-size: 15px; }
  /* 2 x 2 grid: a line between the two columns and between the two rows */
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; padding: 0; border-radius: 16px; overflow: hidden; }
  .ab-stat { padding: 16px 14px; gap: 11px; align-items: center; }
  .ab-stat::before { display: none !important; }
  .ab-stat:nth-child(odd) { border-right: 1px solid var(--ab-line); }
  .ab-stat:nth-child(n+3) { border-top: 1px solid var(--ab-line); }
  /* an odd last stat (if a fifth is ever added) takes the full row */
  .ab-stat:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .ab-stat__icon { width: 42px; height: 42px; font-size: 19px; border-radius: 12px; }
  .ab-stat__text strong { font-size: 19px; }
  .ab-stat__text span { font-size: 12.5px; line-height: 1.3; }
  .ab-story { padding: 18px; border-radius: 16px; }
  .ab-brand { min-height: 170px; padding-bottom: 34px; }
  .ab-story__body p.ab-story__text { font-size: 14px; }
  .ab-team { gap: 12px; }
  .ab-team__avatars span { width: 32px; height: 32px; font-size: 14px; }
  .ab-team__sign { padding-left: 12px; }
  .ab-team__signature { font-size: 26px; }
  .ab-team__caption { font-size: 8.5px; letter-spacing: .22em; }
  .ab-platforms { padding: 0 4px; }
  .ab-platforms__sub { font-size: 13.5px; }
  .ab-car { --ab-per: 2; --ab-gap: 10px; padding: 0 38px; }
  .ab-car__nav { width: 32px; height: 32px; }
  .ab-car__nav--prev { left: 0; }
  .ab-car__nav--next { right: 0; }
}
@media (max-width: 360px) {
  .ab-stat { padding: 14px 10px; gap: 9px; }
  .ab-stat__icon { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .ab-stat__text strong { font-size: 17px; }
  .ab-stat__text span { font-size: 12px; }
  .ab-logo { font-size: 15px; }
  .ab-logo--google { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-car__track { transition: none !important; }
  .ab-plat__card, .ab-car__nav, .ab-car__dot { transition: none; }
}

/* ── Story video (YouTube) ───────────────────────────────────
   A 16:9 box the iframe fills exactly, so the whole video is visible at every width — nothing cropped,
   no black bars from a fixed 400×360 size. Rounded corners match the card. */
.ab-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 10px 30px rgba(30, 27, 120, .14);
  align-self: center;
}
.ab-video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
@supports not (aspect-ratio: 16 / 9) {
  .ab-video { height: 0; padding-top: 56.25%; }
}
@media (max-width: 960px) {
  .ab-video { order: -1; }          /* video above the story text on tablets and phones */
}
@media (max-width: 640px) {
  .ab-video { border-radius: 12px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  /* small laptops: give the video column more room so it isn't tiny */
  .ab-story:has(.ab-video) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
}
