/* About Digitrade — redesigned page (Nov 2026), scoped to .pg-ab */

/* 1. Hero: photo background, text on the light sky side */
.pg-ab .ab-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 560px; padding: 32px 0 clamp(72px, 8vw, 110px); background: #f4f6f8 url("../img/about-hero.webp") right center / cover no-repeat; }
.pg-ab .ab-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(246, 248, 250, .92) 0%, rgba(246, 248, 250, .75) 38%, rgba(246, 248, 250, 0) 62%); }
.pg-ab .ab-hero__body { max-width: 640px; margin-top: 48px; }
.pg-ab .ab-hero .h-page { text-wrap: wrap; }
.pg-ab .ab-hero .txt { margin-top: 28px; font-size: 20px; line-height: 1.45; color: var(--ink-2); }
.pg-ab .ab-hero .btn-row { margin-top: 32px; align-items: center; }
[dir="rtl"] .pg-ab .ab-hero { background-position: left center; }
[dir="rtl"] .pg-ab .ab-hero::before { background: linear-gradient(-90deg, rgba(246, 248, 250, .92) 0%, rgba(246, 248, 250, .75) 38%, rgba(246, 248, 250, 0) 62%); }
@media (max-width: 900px) {
  .pg-ab .ab-hero { min-height: 0; background-position: 70% center; }
  .pg-ab .ab-hero::before { background: rgba(246, 248, 250, .82); }
  [dir="rtl"] .pg-ab .ab-hero::before { background: rgba(246, 248, 250, .82); }
}

/* shared */
.pg-ab .h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 500; }
.pg-ab .ab-head { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; }
.pg-ab .ab-head__txt { display: grid; gap: 14px; padding-top: 6px; }
.pg-ab .ab-head__txt .txt { padding-bottom: 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.pg-ab .on-dark .ab-head__txt .txt { color: rgba(255, 255, 255, .92); }

/* 2. Who we are */
.pg-ab .ab-who .center-head .txt { max-width: 1000px; margin-inline: auto; font-size: 18px; line-height: 1.55; text-wrap: balance; }
.pg-ab .ab-found { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.pg-ab .ab-found li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.pg-ab .ab-found__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #98e567; color: var(--green-800); }
.pg-ab .ab-found__ic .ico { width: 28px; height: 28px; }
.pg-ab .ab-found h3 { font-size: 20px; font-weight: 500; color: #fff; }
.pg-ab .ab-found p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .88); }

/* 3. Our story + evolution timeline */
.pg-ab .ab-tl { margin-top: 64px; padding: 40px 40px 44px; border-radius: 28px; background: var(--gray-50); }
.pg-ab .ab-tl__title { font-size: 20px; font-weight: 500; color: var(--green-800); }
.pg-ab .ab-tl__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 28px; }
.pg-ab .ab-tl__list li { position: relative; }
.pg-ab .ab-tl__mark { position: relative; z-index: 1; display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; border: 3px solid var(--green-500); background: var(--gray-50); font-size: 13px; font-weight: 600; color: #fff; }
.pg-ab .is-first .ab-tl__mark { padding: 0 12px; border: 0; height: 28px; background: var(--green-800); }
.pg-ab .is-next .ab-tl__mark { border-color: #c4e3ad; }
.pg-ab .ab-tl__list li::after { content: ""; position: absolute; top: 12px; inset-inline-start: 34px; inset-inline-end: -26px; height: 2px; background: var(--green-500); }
.pg-ab .ab-tl__list li.is-first::after { inset-inline-start: 72px; top: 13px; }
.pg-ab .ab-tl__list li.is-next::after { background: repeating-linear-gradient(90deg, var(--green-500) 0 8px, transparent 8px 14px); inset-inline-end: 0; }
.pg-ab .ab-tl h4 { margin-top: 28px; font-size: 18px; font-weight: 500; color: var(--ink); }
.pg-ab .ab-tl p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* 4. Principles */
.pg-ab .ab-princ__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.pg-ab .ab-princ__head .txt { margin-top: 24px; font-size: 18px; line-height: 1.55; color: var(--muted); }
.pg-ab .ab-princ__list { display: grid; gap: 44px; padding-top: 8px; }
.pg-ab .ab-princ__list li { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; align-items: start; }
.pg-ab .ab-princ__n { font-size: 44px; line-height: 1; font-weight: 500; color: var(--green-500); }
.pg-ab .ab-princ__list h3 { font-size: 20px; font-weight: 500; color: var(--ink); }
.pg-ab .ab-princ__list p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* 6. CTA: mint panel with rounded top corners */
.pg-ab .ab-cta { padding-block: clamp(64px, 7vw, 88px); border-radius: 48px 48px 0 0; background: var(--green-100); text-align: center; }
.pg-ab .ab-cta .h-cta { color: var(--green-800); }
.pg-ab .ab-cta p { max-width: 860px; margin: 24px auto 0; font-size: 18px; line-height: 1.5; color: var(--green-900, #123620); }
.pg-ab .ab-cta .btn-row { justify-content: center; align-items: center; margin-top: 32px; }

@media (max-width: 1100px) {
  .pg-ab .ab-head, .pg-ab .ab-princ__grid { grid-template-columns: minmax(0, 1fr); }
  .pg-ab .ab-tl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .pg-ab .ab-tl__list li::after { display: none; }
}
@media (max-width: 760px) {
  .pg-ab .ab-found { grid-template-columns: minmax(0, 1fr); }
  .pg-ab .ab-tl { padding: 28px 22px; }
  .pg-ab .ab-tl__list { grid-template-columns: minmax(0, 1fr); }
  .pg-ab .ab-hero .txt, .pg-ab .ab-head__txt .txt, .pg-ab .ab-princ__head .txt { font-size: 17px; }
  .pg-ab .ab-princ__list li { grid-template-columns: 48px 1fr; }
  .pg-ab .ab-princ__n { font-size: 34px; }
  .pg-ab .ab-cta { border-radius: 28px 28px 0 0; }
}
.pg-ab .ab-cta .h-cta { max-width: 900px; margin-inline: auto; }
/* timeline cards: tighter heading-to-text spacing */
.pg-ab .ab-tl h4 { margin-bottom: 0; }
.pg-ab .ab-tl p { margin-top: 8px; }
/* RTL hero: mirrored photo so the building sits opposite the text */
[dir="rtl"] .pg-ab .ab-hero { background-image: url("../img/about-hero-rtl.webp"); }
.pg-ab .ab-princ__n { color: var(--green-text-lg, #4a9a15); }
/* CTA corners sit on the dark Vision band (no white showing behind the curve) */
.pg-ab .ab-cta { position: relative; isolation: isolate; background: transparent; }
.pg-ab .ab-cta::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--green-800); }
.pg-ab .ab-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--green-100); }

/* ===== Designer pass 2 (Nov 2026) ===== */
.pg-ab .ab-hero { background-size: cover; image-rendering: auto; }
/* section rhythm: 96px top/bottom instead of 128px */
.pg-ab .section { padding-block: 96px; }
/* section headings: 52/500 */
.pg-ab .h2 { font-size: 52px; line-height: 1.15; font-weight: 500; }
/* who we are: wider description */
.pg-ab .ab-who .center-head { max-width: none; }
.pg-ab .ab-who .center-head .txt { max-width: 1160px; text-wrap: pretty; }
/* our story: wider heading column ("B2B" moves to line two), timeline without fill */
.pg-ab .ab-story .ab-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 48px; }
.pg-ab .ab-tl { padding: 0; border-radius: 0; background: none; }
.pg-ab .ab-tl__mark { background: #fff; }
.pg-ab .is-first .ab-tl__mark { background: var(--green-800); }
/* CTA: wider heading (two lines), 100px top corners */
.pg-ab .ab-cta .h-cta { max-width: 1100px; }
.pg-ab .ab-cta { border-radius: 100px 100px 0 0; }
@media (max-width: 1100px) { .pg-ab .ab-story .ab-head { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .pg-ab .section { padding-block: 64px; }
  .pg-ab .h2 { font-size: 34px; }
  .pg-ab .ab-cta { border-radius: 40px 40px 0 0; }
}

/* Transparent header over the hero photo; the normal background returns on hover, open menu, or scroll */
.page--clear .site-header { position: absolute; left: 0; right: 0; top: 0; }
.page--clear .site-header::before { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .25s; }
.page--clear .site-header.is-scrolled { position: fixed; }
.page--clear .site-header:hover::before,
.page--clear .site-header:focus-within::before,
.page--clear .site-header:has(.main-nav .has-menu.is-open)::before,
.page--clear .site-header.is-scrolled::before { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
/* hero now sits under the header */
.pg-ab .ab-hero { padding-top: 112px; min-height: 640px; background-position: right top; }
[dir="rtl"] .pg-ab .ab-hero { background-position: left top; }
.pg-ab .ab-hero::before { background: linear-gradient(90deg, rgba(240, 246, 252, .55) 0%, rgba(240, 246, 252, .25) 40%, rgba(240, 246, 252, 0) 60%); }
[dir="rtl"] .pg-ab .ab-hero::before { background: linear-gradient(-90deg, rgba(240, 246, 252, .55) 0%, rgba(240, 246, 252, .25) 40%, rgba(240, 246, 252, 0) 60%); }
@media (max-width: 900px) {
  .pg-ab .ab-hero { padding-top: 96px; min-height: 0; background-position: 70% top; }
  .pg-ab .ab-hero::before, [dir="rtl"] .pg-ab .ab-hero::before { background: rgba(240, 246, 252, .78); }
}
/* Nov 2026: soft hazy overlay on the desktop hero photo (mirrors the mobile treatment, lighter) */
@media (min-width: 901px) {
  .pg-ab .ab-hero::before { background: linear-gradient(90deg, rgba(240, 246, 252, .72) 0%, rgba(240, 246, 252, .5) 42%, rgba(240, 246, 252, .34) 100%); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
  [dir="rtl"] .pg-ab .ab-hero::before { background: linear-gradient(-90deg, rgba(240, 246, 252, .72) 0%, rgba(240, 246, 252, .5) 42%, rgba(240, 246, 252, .34) 100%); }
}
/* Mobile timeline: vertical connector from the 2015 pill through each circle */
@media (max-width: 760px) {
  .pg-ab .ab-tl__list { gap: 0; }
  .pg-ab .ab-tl__list li { padding-bottom: 36px; }
  .pg-ab .ab-tl__list li:last-child { padding-bottom: 0; }
  .pg-ab .ab-tl__list li::after { display: block; top: 26px; bottom: -2px; inset-inline-start: 11px; inset-inline-end: auto; width: 2px; height: auto; background: var(--green-500); }
  .pg-ab .ab-tl__list li.is-first::after { top: 28px; inset-inline-start: 11px; }
  .pg-ab .ab-tl__list li:nth-child(3)::after { background: repeating-linear-gradient(180deg, var(--green-500) 0 8px, transparent 8px 14px); }
  .pg-ab .ab-tl__list li.is-next::after { display: none; }
  .pg-ab .ab-tl h4, .pg-ab .ab-tl p { margin-inline-start: 40px; }
  .pg-ab .ab-tl h4 { margin-top: 16px; }
}
