/* About Us (ab-). Concept: the presentation folder, on a light hero. Shared pieces live in base.css and system.css. */

/* ---------- Hero (light): copy beside the folder ---------- */
.ab-hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(124px, 16vh, 164px) 0 clamp(72px, 8vw, 120px);
  background: radial-gradient(60% 70% at 80% 40%, #fff 0%, rgba(255, 255, 255, 0) 70%), var(--paper-soft); }
/* a large faint lozenge behind the folder, the brand's slant */
.ab-hero::before { content: ""; position: absolute; z-index: -1; inset-block: 12% 18%; inset-inline-end: -6%; width: 46%; border-radius: 48px; background: linear-gradient(160deg, rgba(128, 188, 0, .16), rgba(128, 188, 0, 0) 70%); transform: skewX(-24deg); }
.ab-hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ab-hero__copy { display: grid; gap: 16px; justify-items: start; }
.ab-hero__copy .t-display { font-size: clamp(2.25rem, min(4.2vw, 8vh), 3.75rem); }
.ab-hero__copy .t-lead { max-width: 54ch; }
.ab-hero__copy .t-body { max-width: 56ch; color: var(--ink-body); }
.ab-hero__copy .btn { margin-top: 8px; }
.on-light .w--hl { color: var(--lime-strong); }

/* ---------- The folder ---------- */
.ab-folder { position: relative; aspect-ratio: 1.15 / 1; perspective: 2000px; margin-inline-end: 56px; }
.ab-back { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 0; padding: 22px; border-radius: 24px; background: url("../img/pattern-lozenge.svg") 0 0 / 300px auto, linear-gradient(140deg, #0B3A6E 0%, #041E3D 100%); box-shadow: 0 50px 90px -40px rgba(6, 43, 85, .7), 0 20px 40px -20px rgba(6, 43, 85, .4); }
.ab-pages { position: relative; }
.ab-page { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; gap: 14px; padding: 28px 30px; border-radius: 16px; background: #fff; color: var(--ink-body); box-shadow: 0 1px 0 var(--line), 0 18px 40px -20px rgba(0, 0, 0, .6); translate: 10px 10px; rotate: 1.2deg; transition: translate .6s var(--ease-out), rotate .6s var(--ease-out); }
.ab-page > * { opacity: 0; transition: opacity .3s; }
.ab-page.is-on { z-index: 2; translate: 0 0; rotate: 0deg; animation: ab-front .6s var(--ease-out); }
.ab-page.is-on > * { opacity: 1; transition-delay: .15s; }
@keyframes ab-front { from { translate: 0 40px; } }
.ab-page:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.ab-page__ph { justify-self: end; width: 46%; aspect-ratio: 3 / 2; margin-inline-end: 22px; border-radius: 14px; box-shadow: var(--shadow-2); }
.ab-page__big { max-width: 24ch; font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 800; line-height: 1.3; letter-spacing: -.02em; color: var(--navy); }
.ab-page__t { display: flex; align-items: center; gap: 18px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--navy); }
.ab-page__t .card__ic { flex: none; margin-inline-start: 8px; }
.ab-page__b { max-width: 40ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--ink-soft); }
/* index tabs stick out of the folder's edge */
.ab-tabs { display: grid; align-content: start; gap: 6px; width: 0; padding-top: 22px; }
.ab-tabs button { display: flex; align-items: center; justify-content: center; width: 52px; height: 46px; margin-inline-start: 22px; border-radius: 0 12px 12px 0; background: var(--navy); color: #fff; font-size: .875rem; font-weight: 800; box-shadow: 0 10px 20px -10px rgba(6, 43, 85, .7); transition: width .3s var(--ease-out), background-color .3s, color .3s; }
[dir="rtl"] .ab-tabs button { border-radius: 12px 0 0 12px; }
.ab-tabs button:hover { background: var(--navy-raise); }
.ab-tabs button[aria-selected="true"] { width: 64px; background: var(--lime); color: var(--navy); }
.ab-tabs .ic { width: 20px; height: 20px; }
.ab-folder__hint { position: absolute; inset-inline-end: -50px; bottom: -40px; display: flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; color: var(--ink-mute); }
.ab-folder__hint .ic { color: var(--lime-strong); }
/* the cover opens once, like a folder on a desk: it turns edge-on and fades, never sweeping over the copy */
.ab-cover { position: absolute; inset: 0; z-index: 5; transform-origin: left center; transform-style: preserve-3d; pointer-events: none; transition: transform 1.5s var(--ease-in-out), opacity .6s ease 1s; }
[dir="rtl"] .ab-cover { transform-origin: right center; }
.ab-folder.is-open .ab-cover { transform: rotateY(-96deg); opacity: 0; }
[dir="rtl"] .ab-folder.is-open .ab-cover { transform: rotateY(96deg); }
.ab-cover__front, .ab-cover__inside { position: absolute; inset: 0; border-radius: 24px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; }
.ab-cover__front { display: grid; place-content: center; justify-items: center; gap: 18px; background: url("../img/pattern-lozenge.svg") 0 0 / 280px auto, linear-gradient(135deg, #0B3A6E, #041E3D); box-shadow: 0 50px 90px -40px rgba(6, 43, 85, .8); }
.ab-cover__front img { width: 46%; height: auto; }
.ab-cover__front span { font-size: .8125rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--lime-glow); }
.ab-cover__inside { transform: rotateY(180deg); background: var(--navy); }
.ab-cover__inside .duo { position: absolute; inset: 0; }
.calm .ab-cover, .calm .ab-page { transition: none; animation: none; }

/* ---------- Who we are (white, by request; the closing band rises over its foot) ---------- */
.ab-who { overflow-x: clip; padding-bottom: calc(var(--section-y) + clamp(48px, 7vw, 104px)); }
.ab-who__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ab-who__head > div { display: grid; gap: 18px; justify-items: start; }
.ab-say { max-width: 30ch; font-size: clamp(1.5rem, 2.7vw, 2.375rem); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.ab-who__ph { aspect-ratio: 4 / 3.2; margin-inline: 12%; border-radius: 26px; box-shadow: var(--shadow-3); }
.ab-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(36px, 5vw, 64px); }
/* a white card and a navy one: 36+ years, then the Kingdom */
.ab-fact { display: grid; gap: 12px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: 28px; }
.ab-fact.card { background: var(--paper-soft); border-color: transparent; box-shadow: none; }
.ab-fact > p:last-child { color: var(--ink-soft); }
.ab-fact__fig { display: flex; align-items: baseline; gap: 14px; font-size: clamp(3.5rem, 6vw, 5.5rem); font-weight: 800; line-height: .95; letter-spacing: -.04em; color: var(--navy); }
.ab-fact__fig span { max-width: 22ch; font-size: .9375rem; font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.ab-fact h3 { color: var(--navy); }
/* the Kingdom in small, on navy: its 13 regions light one by one, once */
.ab-fact--map { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; color: #fff; background: radial-gradient(90% 80% at 80% 0%, #0D427C 0%, transparent 70%) var(--deep); box-shadow: var(--shadow-3); }
.ab-fact--map .ab-fact__fig { color: var(--lime); }
.ab-fact--map .ab-fact__fig span { color: #fff; }
.ab-fact--map > p:last-child { color: var(--ink-on-dark-soft); }
.ab-map { position: relative; grid-row: 1 / 3; aspect-ratio: 1.1 / 1; }
.ab-fact--map .ab-fact__fig { flex-direction: column; align-items: flex-start; gap: 10px; align-self: end; }
.ab-fact--map > p:last-child { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .ab-hero__grid, .ab-who__head, .ab-facts { grid-template-columns: minmax(0, 1fr); }
  .ab-folder { width: calc(100% - 56px); max-width: 620px; }
  .ab-who__ph { max-width: 420px; width: 76%; margin-inline: 12%; }
}
@media (max-width: 760px) {
  .ab-hero { padding-top: 100px; }
  .ab-hero__copy .t-display { font-size: clamp(1.875rem, 8.4vw, 2.375rem); }
  .ab-hero__copy .btn { width: 100%; }
  .ab-folder { aspect-ratio: .82 / 1; width: calc(100% - 48px); margin-inline-end: 48px; }
  .ab-back { padding: 14px; }
  .ab-page { padding: 20px; gap: 10px; }
  .ab-page__ph { width: 60%; margin-inline-end: 12px; }
  .ab-page__t { font-size: 1.625rem; gap: 14px; }
  .ab-page__b { font-size: 1rem; }
  .ab-tabs { padding-top: 14px; }
  .ab-tabs button { width: 44px; height: 42px; margin-inline-start: 14px; }
  .ab-tabs button[aria-selected="true"] { width: 52px; }
  .ab-folder__hint { display: none; }
  .ab-fact--map { grid-template-columns: minmax(0, 1fr); }
  .ab-map { grid-row: auto; }
}
