/* About page: work-wall opening, turning prism, film-strip journey, leadership cards. Prefix ab-. */
:root { --ab-navy: #0c1f3a; --ab-blue: #1a6fd1; --ab-coral: #ff6a4d; --ab-gold: #f4b740; --ab-ink: #0d1a2e; --ab-muted: #556377; --ab-line: rgba(13, 26, 46, .12); --ab-soft: #f3f7fc; }

/* ---- Opening: wall of work ---- */
.ab-wall-sec { position: relative; overflow: hidden; padding: 70px 0 0; background: radial-gradient(900px 420px at 50% 0%, #e7f0fc 0%, transparent 70%), #fff; }
.ab-wall-copy { position: relative; z-index: 2; max-width: 900px; text-align: center; }
.ab-kicker { display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ab-line); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ab-blue); }
.ab-wall-copy h1 { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -.02em; color: var(--ab-ink); }
.ab-wall-copy h1 span { color: var(--ab-blue); background: linear-gradient(90deg, var(--ab-blue), var(--ab-coral)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ab-wall-text { max-width: 720px; margin: 20px auto 0; font-size: 17px; line-height: 1.7; color: var(--ab-muted); }
.ab-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; margin-top: 26px; padding: 0 26px; border-radius: 999px; background: var(--ab-navy); color: #fff !important; font-weight: 700; text-decoration: none; transition: background .2s, transform .2s; }
.ab-btn::after { content: "→"; transition: transform .2s; }
.ab-btn:hover { background: var(--ab-blue); }
.ab-btn:hover::after { transform: translateX(4px); }
.ab-wall { position: relative; height: 420px; margin-top: 30px; perspective: 1400px; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 75%, transparent); }
.ab-wall-plane { position: absolute; left: -10%; right: -10%; top: 20px; display: grid; gap: 18px; transform: rotateX(32deg) rotateZ(-6deg); transform-origin: 50% 0; }
.ab-row { display: flex; gap: 18px; width: max-content; animation: ab-slide 60s linear infinite; }
.ab-row.r1 { animation-direction: reverse; animation-duration: 70s; }
.ab-wall.paused .ab-row { animation-play-state: paused; }
@keyframes ab-slide { to { transform: translateX(-50%); } }
.ab-tile { position: relative; flex: none; width: 300px; margin: 0; border-radius: 16px; overflow: hidden; background: #dfe7f1; box-shadow: 0 24px 40px -26px rgba(13, 26, 46, .6); }
.ab-tile img { display: block; width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.ab-tile figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; color: var(--ab-ink); }
.ab-figures { position: relative; z-index: 2; list-style: none; margin: -70px auto 0; padding: 0 16px 50px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1000px; }
.ab-figures li { padding: 18px 16px; border-radius: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--ab-line); box-shadow: 0 20px 40px -28px rgba(13, 26, 46, .6); text-align: center; }
.ab-figures strong { display: block; font-size: 30px; line-height: 1.1; color: var(--ab-ink); }
.ab-figures span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--ab-muted); }

/* ---- Turning prism ---- */
.ab-prism-wrap { --n: 3; margin-top: 30px; display: grid; justify-items: center; }
.ab-prism-scene { width: min(560px, 100%); height: 300px; perspective: 1400px; }
.ab-prism { --r: 0deg; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: translateZ(-162px) rotateY(var(--r)); transition: transform 1s cubic-bezier(.3, .8, .3, 1); }
.ab-face { --c1: #1a6fd1; --c2: #0c1f3a; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 34px 40px; border-radius: 22px; color: #fff; background: radial-gradient(140% 120% at 0% 0%, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transform: rotateY(calc(var(--k) * 120deg)) translateZ(162px); backface-visibility: hidden; }
.ab-face.f1 { --c1: #ff6a4d; --c2: #7a1e2c; }
.ab-face.f2 { --c1: #2bb39a; --c2: #0b3b40; }
.ab-face small { font-size: 13px; font-weight: 700; letter-spacing: .14em; opacity: .7; }
.ab-face h3 { margin: 8px 0 12px; font-size: 30px; color: #fff; }
.ab-face p { margin: 0; font-size: 16.5px; line-height: 1.65; color: rgba(255, 255, 255, .9); }
.ab-prism-tabs { display: flex; gap: 8px; margin-top: 26px; padding: 6px; border-radius: 999px; background: var(--ab-soft); }
.ab-prism-tabs button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ab-muted); background: none; cursor: pointer; transition: background .25s, color .25s; }
.ab-prism-tabs button[aria-selected="true"] { background: var(--ab-navy); color: #fff; }

/* ---- Film-strip journey ---- */
.ab-film { margin-top: 26px; }
.ab-film-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ab-film-nav button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ab-line); background: #fff; color: var(--ab-ink); font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.ab-film-nav button:hover { background: var(--ab-navy); color: #fff; }
.ab-film-progress { flex: 1; height: 4px; border-radius: 2px; background: #e3e9f1; overflow: hidden; }
.ab-film-progress i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--ab-blue), var(--ab-coral)); transition: width .3s; }
.ab-reel { list-style: none; margin: 0; padding: 26px 18px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; cursor: grab; border-radius: 16px; background: #10151f; scrollbar-width: none;
  background-image: radial-gradient(circle, #f3f3f3 0 4px, transparent 5px), radial-gradient(circle, #f3f3f3 0 4px, transparent 5px); background-size: 26px 14px; background-repeat: repeat-x; background-position: 0 6px, 0 calc(100% - 6px); }
.ab-reel::-webkit-scrollbar { display: none; }
.ab-reel.dragging { cursor: grabbing; scroll-behavior: auto; }
.ab-reel:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 3px; }
.ab-frame { flex: 0 0 300px; scroll-snap-align: start; padding: 22px 22px 24px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--ab-line); }
.ab-year { display: inline-block; font-size: 34px; font-weight: 800; line-height: 1; background: linear-gradient(90deg, var(--ab-blue), var(--ab-coral)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ab-frame h3 { margin: 12px 0 8px; font-size: 18px; color: var(--ab-ink); }
.ab-frame p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ab-muted); }

/* ---- Leadership team ---- */
.ab-team { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ab-person { perspective: 1000px; }
.ab-person button { position: relative; display: block; width: 100%; height: 330px; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .8, .3, 1); }
.ab-person button[aria-expanded="true"] { transform: rotateY(180deg); }
.ab-person button:focus-visible { outline: 3px solid var(--ab-blue); outline-offset: 4px; border-radius: 20px; }
.ab-person-front, .ab-person-back { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 20px; backface-visibility: hidden; overflow: hidden; }
.ab-person-front { align-items: center; justify-content: center; gap: 6px; padding: 24px; background: #fff; border: 1px solid var(--ab-line); box-shadow: 0 20px 40px -32px rgba(13, 26, 46, .6); text-align: center; }
.ab-mono, .ab-person-front img { width: 120px; height: 120px; margin-bottom: 14px; border-radius: 50%; }
.ab-person-front img { object-fit: cover; }
.ab-mono { display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff; background: radial-gradient(circle at 30% 25%, var(--c1, #4f8fe0), var(--c2, #0c1f3a)); box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--ab-line); }
.c1 .ab-mono { --c1: #ff8a6b; --c2: #7a1e2c; } .c2 .ab-mono { --c1: #4fd1b4; --c2: #0b3b40; } .c3 .ab-mono { --c1: #f4c35a; --c2: #7a4a08; }
.ab-person-front b { font-size: 18px; color: var(--ab-ink); }
.ab-person-front small { font-size: 14px; font-weight: 700; color: var(--ab-blue); text-transform: uppercase; letter-spacing: .06em; }
.ab-more { margin-top: 10px; font-style: normal; font-size: 12.5px; color: var(--ab-muted); }
.ab-person-back { gap: 6px; padding: 24px; background: var(--ab-navy); color: #dbe6f5; transform: rotateY(180deg); }
.ab-person-back b { font-size: 18px; color: #fff; }
.ab-person-back small { font-size: 13px; font-weight: 700; color: var(--ab-gold); text-transform: uppercase; letter-spacing: .06em; }
.ab-person-back span { margin-top: 8px; font-size: 14.5px; line-height: 1.6; overflow: auto; }

@media (max-width: 1000px) {
    .ab-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ab-wall-sec { padding-top: 40px; }
    .ab-wall { height: 280px; }
    .ab-tile { width: 200px; }
    .ab-figures { margin-top: -50px; gap: 10px; padding-bottom: 36px; }
    .ab-figures strong { font-size: 24px; }
    .ab-prism-scene { height: 360px; }
    .ab-prism { transform: translateZ(-120px) rotateY(var(--r)); }
    .ab-face { padding: 26px 24px; transform: rotateY(calc(var(--k) * 120deg)) translateZ(120px); }
    .ab-face h3 { font-size: 24px; }
    .ab-face p { font-size: 15px; }
    .ab-prism-tabs button { padding: 0 14px; font-size: 14px; }
    .ab-frame { flex-basis: 250px; }
    .ab-team { grid-template-columns: minmax(0, 1fr); }
    .ab-person button { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .ab-row { animation: none; }
    .ab-prism, .ab-person button { transition: none; }
}
/* At rest the front face is drawn flat, so its text is sharp; it only goes 3D while turning. */
.ab-prism.rest { transition: none; transform: none; }
.ab-prism.rest .ab-face { transform: none; opacity: 0; }
.ab-prism.rest .ab-face.on { opacity: 1; }

/* Desktop: a 4-column card grid holding only 3 cards shows 3 even columns instead of an empty slot. */
@media (min-width: 1025px) {
  main .sv-icards.cols-4:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}
/* Desktop: contact heading sits above the form, both centred, instead of title-left / form-right. */
@media (min-width: 901px) {
  body:has(.ab-wall-sec) main .sv-contact { grid-template-columns: 1fr; gap: 28px; max-width: 760px; margin-inline: auto; }
  body:has(.ab-wall-sec) main .sv-contact > div:first-child { text-align: center; }
  body:has(.ab-wall-sec) main .sv-contact > div:first-child p { margin-inline: auto; max-width: 560px; }
  body:has(.ab-wall-sec) main .sv-contact-big { margin-bottom: 12px; }
}
/* Leadership cards: tall enough that the longest bio fits without being cut off. */
.ab-person button { height: 360px; }
.ab-person-back { padding: 22px; }
.ab-person-back span { font-size: 14px; line-height: 1.55; }
@media (max-width: 600px) { .ab-person button { height: 350px; } }
