/* About page (/about), editorial layout. Numbered chapters with a label column on the left,
   big light type, hairlines instead of boxes, real photo and client logos, and the blue story
   illustrations (.xp-scene, css/expertise-stories.css) for the four promises.
   js/about.js: .is-in on .ab-reveal blocks as they scroll in, the hero headline and photo reveal,
   a slow parallax on the photo, and the count-up figures. Transitions carry !important so the
   global reduced-motion reset in styles.css does not freeze them (the owner wants motion). */

body[data-rhythm="about"] {
    --ab-ink: #111111;
    --ab-muted: #56677d;
    --ab-soft: #8a97ab;
    --ab-blue: #2563eb;
    --ab-line: #dfe6f0;
    --ab-ease: cubic-bezier(.16, 1, .3, 1);
}
.ab-hero, .ab-main { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ab-ink); text-align: left; }
.ab-main *, .ab-hero * { box-sizing: border-box; }
html body :is(.ab-hero h1, .ab-main h2, .ab-main h3)::after { display: none !important; }
html body :is(.ab-hero h1, .ab-main h2, .ab-main h3) { text-transform: none !important; text-align: left !important; padding: 0 !important; }
.ab-hero .container, .ab-main .container { max-width: 1240px; }

/* ---------- Reveal ---------- */
html.js-ready .ab-reveal { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s ease, transform 1s var(--ab-ease) !important; transition-delay: calc(var(--d, 0) * 90ms) !important; }
html.js-ready .ab-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Shared ---------- */
.ab-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
html body .ab-label { display: flex; align-items: baseline; gap: 14px; margin: 6px 0 0 !important; color: var(--ab-muted) !important; font-size: 12px !important; font-weight: 500 !important; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2 !important; }
.ab-label span { color: var(--ab-blue); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.ab-label::after { content: ""; flex: 1; max-width: 48px; height: 1px; background: var(--ab-line); transform: translateY(-3px); }
html body .ab-h2 { margin: 22px 0 0 !important; color: var(--ab-ink) !important; font-size: clamp(34px, 3.6vw, 52px) !important; font-weight: 300 !important; line-height: 1.04 !important; letter-spacing: -.045em !important; }
.ab-main em { font-style: normal; color: var(--ab-blue); }
html body .ab-sub { max-width: 34ch; margin: 18px 0 0 !important; color: var(--ab-muted) !important; font-size: 16px !important; line-height: 1.65 !important; }
.ab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
html body .ab-btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font-size: 15px; font-weight: 500 !important; line-height: 1; text-decoration: none; transition: background .25s ease, transform .35s var(--ab-ease), box-shadow .3s ease, border-color .25s ease, color .25s ease !important; }
html body .ab-btn-dark { background: var(--ab-ink); color: #fff !important; box-shadow: 0 14px 28px -16px #0f172a99; }
html body .ab-btn-dark:hover { background: var(--ab-blue); transform: translateY(-2px); box-shadow: 0 18px 32px -16px #2563ebb3; }
html body .ab-btn-dark span { transition: transform .3s var(--ab-ease) !important; }
html body .ab-btn-dark:hover span { transform: translateX(3px); }
html body .ab-btn-light { border: 1px solid #d5e0ef; background: #fff; color: var(--ab-ink) !important; }
html body .ab-btn-light:hover { border-color: #b5c9ea; transform: translateY(-2px); }
html body a.ab-link { display: inline-flex; gap: 8px; color: var(--ab-ink) !important; font-size: 14.5px; font-weight: 500 !important; text-decoration: none; border-bottom: 1px solid var(--ab-line); padding-bottom: 3px; transition: color .25s ease, border-color .25s ease !important; }
html body a.ab-link:hover { color: var(--ab-blue) !important; border-color: var(--ab-blue); }
.ab-section { position: relative; }

/* ---------- Hero ---------- */
.ab-hero { position: relative; padding: 48px 0 0; overflow: hidden; }
.ab-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; gap: 56px; }
html body .ab-kicker { display: inline-flex; align-items: center; gap: 10px; color: #33476a; font-size: 12px; font-weight: 500 !important; letter-spacing: .16em; text-transform: uppercase; line-height: 1; }
.ab-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--ab-blue); }
html body .ab-title { margin: 26px 0 0 !important; color: var(--ab-ink) !important; font-size: clamp(44px, 5.7vw, 84px) !important; font-weight: 300 !important; line-height: 1 !important; letter-spacing: -.05em !important; }
.ab-title .ab-line { display: block; padding-bottom: .04em; }
.ab-title .ab-line > span { display: inline-block; }
.ab-title .ab-blue { color: var(--ab-blue); }
html.js-ready .ab-title .ab-line > span { opacity: 0; transform: translate3d(0, .4em, 0); filter: blur(10px); transition: opacity .9s ease, transform 1.1s var(--ab-ease), filter .9s ease !important; }
html.js-ready .ab-title .ab-line:nth-child(2) > span { transition-delay: .09s !important; }
html.js-ready .ab-title .ab-line:nth-child(3) > span { transition-delay: .18s !important; }
html.js-ready .ab-title .ab-line:nth-child(4) > span { transition-delay: .27s !important; }
html.js-ready .ab-hero.is-ready .ab-title .ab-line > span { opacity: 1; transform: none; filter: blur(0); }
html body .ab-lead { margin: 0 0 26px !important; color: var(--ab-muted) !important; font-size: 17px !important; line-height: 1.65 !important; }

/* Photo: a wide frame that opens up as the page loads, with a slow parallax inside */
.ab-cover { margin: 64px 0 0; }
.ab-cover-frame { position: relative; aspect-ratio: 2.35 / 1; overflow: hidden; border-radius: 24px; background: #140707; }
.ab-cover-frame img { position: absolute; left: 0; top: -9%; display: block; width: 100%; height: 118%; object-fit: cover; object-position: 55% 45%; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); transition: transform 1.8s var(--ab-ease) !important; will-change: transform; }
html.js-ready .ab-cover-frame { clip-path: inset(10% 7% 10% 7% round 24px); transition: clip-path 1.4s var(--ab-ease) .25s !important; }
html.js-ready .ab-hero.is-ready .ab-cover-frame { clip-path: inset(0 0 0 0 round 24px); }
.ab-hero.is-ready .ab-cover-frame img { transform: translate3d(0, var(--py, 0px), 0) scale(1); }
.ab-hero.is-settled .ab-cover-frame img { transition: none !important; }
.ab-cover figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; font-size: 13.5px; color: var(--ab-muted); }
.ab-cover figcaption b { color: var(--ab-ink); font-weight: 500 !important; }

/* Facts: a hairline row, no boxes */
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ab-line); }
.ab-facts li { display: grid; gap: 8px; padding: 26px 24px 0; border-left: 1px solid var(--ab-line); }
.ab-facts li:first-child { padding-left: 0; border-left: 0; }
.ab-facts b { color: var(--ab-ink); font-size: clamp(36px, 3.6vw, 52px); font-weight: 300 !important; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ab-facts b i { margin-left: 4px; color: var(--ab-blue); font-size: .6em; font-style: normal; vertical-align: .3em; }
.ab-facts li > span { color: var(--ab-muted); font-size: 13.5px; line-height: 1.4; }
.ab-facts a { color: inherit; text-decoration: underline; text-decoration-color: #b5c9ea; text-underline-offset: 3px; }

/* ---------- 01 Why we exist ---------- */
.ab-story .ab-label { grid-column: 1 / span 3; }
.ab-story-body { grid-column: 4 / span 9; }
html body .ab-statement { margin: 0 !important; color: var(--ab-ink) !important; font-size: clamp(28px, 3.1vw, 44px) !important; font-weight: 300 !important; line-height: 1.2 !important; letter-spacing: -.032em !important; }
.ab-story-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 44px; }
html body .ab-story-cols p { margin: 0 !important; color: var(--ab-muted) !important; font-size: 16px !important; line-height: 1.7 !important; }
.ab-clients { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ab-line); }
html body .ab-clients > p { margin: 0 !important; color: var(--ab-soft) !important; font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4 !important; max-width: 12ch; }
.ab-clients ul { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin: 0; padding: 0; list-style: none; }
.ab-clients img { display: block; width: auto; max-width: 120px; filter: grayscale(1); opacity: .6; transition: filter .35s ease, opacity .35s ease !important; }
.ab-clients li:hover img { filter: none; opacity: 1; }

/* ---------- 02 How we work ---------- */
.ab-how-intro { grid-column: 1 / span 4; align-self: start; position: sticky; top: 120px; }
.ab-steps { grid-column: 6 / span 7; }
.ab-step { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px 0; border-top: 1px solid var(--ab-line); }
.ab-step:first-child { padding-top: 0; border-top: 0; }
.ab-scene { position: relative; margin: 0; overflow: hidden; border-radius: 18px; background: #2563eb; box-shadow: inset 0 0 0 1px #ffffff1f, 0 24px 44px -30px #2563eb99; }
.ab-scene svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.ab-step-n { display: block; margin-bottom: 14px; color: var(--ab-blue); font-size: 13px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
html body .ab-step h3 { margin: 0 0 10px !important; color: var(--ab-ink) !important; font-size: clamp(21px, 1.8vw, 26px) !important; font-weight: 500 !important; line-height: 1.2 !important; letter-spacing: -.025em !important; }
html body .ab-step p { margin: 0 !important; color: var(--ab-muted) !important; font-size: 15.5px !important; line-height: 1.65 !important; }

/* Illustration extras (the shared xp palette covers the rest) */
.ab-scene .ab-micro-d { font-size: 8.5px; letter-spacing: 1px; fill: #7b8db0 !important; }
.ab-scene .ab-row-t { font-size: 10.5px; font-weight: 500; fill: #1e3a6e !important; }
.ab-scene .ab-tag-t { font-size: 9px; font-weight: 700; letter-spacing: 1px; fill: #1d4ed8 !important; }
.ab-scene .ab-ln { font-size: 8.5px; letter-spacing: .6px; fill: #6d86b8 !important; }
.ab-green { fill: #1d4ed8; }
.ab-tick { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ab-pending { fill: none; stroke: #fff; stroke-opacity: .45; stroke-width: 1.4; stroke-dasharray: 3 3; }
.ab-code { fill: #0a1a40; stroke: #5b8cff; stroke-opacity: .35; }
.ab-syn { fill: #fff; fill-opacity: .45; }
.ab-sig { fill: none; stroke: #1d4ed8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ab-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s ease; }
.xp-scene.s4 .ab-draw-s4 { stroke-dashoffset: 0; }
.ab-ring-track { fill: none; stroke: #fff; stroke-opacity: .16; stroke-width: 7; }
.ab-ring { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 251.3; stroke-dashoffset: 251.3; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1); }
.xp-scene.s1 .ab-ring { stroke-dashoffset: 167.5; }
.xp-scene.s2 .ab-ring { stroke-dashoffset: 83.8; }
.xp-scene.s3 .ab-ring { stroke-dashoffset: 0; }
.ab-carry { opacity: 0; transform: translate(122px, 78px); transition: transform 1s cubic-bezier(.6, 0, .2, 1), opacity .4s ease; }
.xp-scene.s2 .ab-carry { opacity: 1; }
.xp-scene.s3 .ab-carry { transform: translate(245px, 64px); }
.xp-scene.s4 .ab-carry { opacity: 0; }
.ab-scan { fill: #e0f2fe; opacity: 0; }
.xp-scene.is-on .ab-scan-a { animation: abScanA 2.6s ease-in-out infinite; }
.xp-scene.is-on .ab-scan-b { animation: abScanB 2.6s ease-in-out .5s infinite; }


/* ---------- 03 The founder ---------- */
.ab-founder .ab-label { grid-column: 1 / span 3; }
.ab-founder-body { grid-column: 4 / span 9; }
html body .ab-name { margin: 0 !important; color: var(--ab-ink) !important; font-size: clamp(64px, 9vw, 136px) !important; font-weight: 300 !important; line-height: .92 !important; letter-spacing: -.06em !important; }
html body .ab-role { margin: 18px 0 0 !important; color: var(--ab-blue) !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: .16em; text-transform: uppercase; }
.ab-founder-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--ab-line); }
html body .ab-founder-cols p { margin: 0 0 16px !important; color: var(--ab-muted) !important; font-size: 16px !important; line-height: 1.72 !important; }
.ab-points { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.ab-points li { position: relative; padding-left: 32px; color: var(--ab-ink); font-size: 16px; line-height: 1.45; }
.ab-points li::before { content: ""; position: absolute; left: 0; top: 0; width: 21px; height: 21px; border-radius: 50%; background: #e8f0ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5.1 8.3 9 4' fill='none' stroke='%232563eb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ab-profiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
html body .ab-profiles a { padding: 7px 12px; border: 1px solid var(--ab-line); border-radius: 99px; color: #475569 !important; font-size: 12.5px; font-weight: 500 !important; text-decoration: none; transition: color .25s ease, border-color .25s ease !important; }
html body .ab-profiles a:hover { color: var(--ab-blue) !important; border-color: #bfd3fb; }

/* ---------- 04 What we build and 05 Family: index lists ---------- */
.ab-build-intro, .ab-family-intro { grid-column: 1 / span 4; align-self: start; }
.ab-index, .ab-family-list { grid-column: 6 / span 7; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--ab-line); }
.ab-index li, .ab-family-list li { border-top: 1px solid var(--ab-line); }
html body .ab-index a { position: relative; display: grid; grid-template-columns: 36px 236px minmax(0, 1fr) auto 18px; align-items: center; gap: 20px; padding: 24px 0; color: var(--ab-ink); text-decoration: none; }
html body :is(.ab-index a, a.ab-site)::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--ab-blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ab-ease) !important; }
html body :is(.ab-index a, a.ab-site):hover::before { transform: scaleX(1); }
.ab-idx-n { color: var(--ab-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.ab-index b { white-space: nowrap; font-size: clamp(19px, 1.7vw, 24px); font-weight: 400 !important; letter-spacing: -.025em; transition: color .25s ease, transform .45s var(--ab-ease) !important; }
.ab-idx-d { color: var(--ab-muted); font-size: 14.5px; line-height: 1.5; }
.ab-idx-p { color: #33476a; font-size: 13px; white-space: nowrap; }
.ab-idx-go, .ab-site-go { width: 16px; height: 16px; fill: none; stroke: #94a3b8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ab-ease), stroke .25s ease !important; }
html body .ab-index a:hover b { color: var(--ab-blue); transform: translateX(6px); }
html body .ab-index a:hover .ab-idx-go { stroke: var(--ab-blue); transform: translate(3px, -3px); }

html body a.ab-site { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.25fr) auto; align-items: center; gap: 4px 20px; padding: 20px 0; color: var(--ab-ink); text-decoration: none; }
.ab-site-ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 12px; border: 1px solid var(--ab-line); background: #fff; }
.ab-site-ico img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nav-sister-ck .ab-site-ico img { padding: 8px; object-fit: contain; }
html body a.ab-site b { grid-column: 2; font-size: 18px; font-weight: 500 !important; letter-spacing: -.02em; transition: color .25s ease !important; }
html body a.ab-site small { grid-column: 2; color: var(--ab-soft); font-size: 13px; }
.ab-site-d { grid-column: 3; grid-row: 1 / span 2; color: var(--ab-muted); font-size: 14.5px; line-height: 1.5; }
html body a.ab-site em { grid-column: 4; grid-row: 1 / span 2; padding: 7px 12px; border: 1px solid var(--ab-line); border-radius: 99px; color: #33476a; font-size: 12px; font-style: normal; font-weight: 500 !important; white-space: nowrap; transition: background .25s ease, color .25s ease, border-color .25s ease !important; }
html body a.ab-site:hover b { color: var(--ab-blue); }
html body a.ab-site:hover em { background: var(--ab-blue); border-color: var(--ab-blue); color: #fff; }
html body a.ab-site[aria-current="true"] em { color: var(--ab-blue); border-color: #cfe0fd; background: #eef4ff; }

/* ---------- CTA ---------- */
.ab-cta { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 56px; padding-top: 56px; border-top: 1px solid var(--ab-line); }
html body .ab-cta-title { margin: 0 !important; color: var(--ab-ink) !important; font-size: clamp(48px, 7vw, 108px) !important; font-weight: 300 !important; line-height: .95 !important; letter-spacing: -.055em !important; }
html body .ab-cta-side p { margin: 0 0 24px !important; color: var(--ab-muted) !important; font-size: 16.5px !important; line-height: 1.65 !important; }

/* ---------- Keyframes ---------- */
@keyframes abPulse { 0% { box-shadow: 0 0 0 0 #22c55e80; } 100% { box-shadow: 0 0 0 9px #22c55e00; } }
@keyframes abShine { from { background-position: 0% 0; } to { background-position: -220% 0; } }
@keyframes abDrift { from { transform: translate3d(-30px, 0, 0) scale(1); } to { transform: translate3d(30px, 20px, 0) scale(1.08); } }
@keyframes abFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes abOrbit1 { from { transform: rotate(0deg) translateX(85px); } to { transform: rotate(360deg) translateX(85px); } }
@keyframes abOrbit2 { from { transform: rotate(40deg) translateX(125px); } to { transform: rotate(400deg) translateX(125px); } }
@keyframes abOrbit3 { from { transform: rotate(200deg) translateX(170px); } to { transform: rotate(560deg) translateX(170px); } }
@keyframes abScanA { 0% { transform: translateY(0); opacity: 0; } 12%, 82% { opacity: .9; } 100% { transform: translateY(45px); opacity: 0; } }
@keyframes abScanB { 0% { transform: translateY(0); opacity: 0; } 12%, 82% { opacity: .9; } 100% { transform: translateY(41px); opacity: 0; } }


/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .ab-hero-top { grid-template-columns: 1fr; gap: 28px; }
    .ab-hero-side { max-width: 620px; }
    .ab-how-intro { position: static; grid-column: 1 / -1; margin-bottom: 40px; }
    .ab-steps { grid-column: 1 / -1; }
    .ab-build-intro, .ab-family-intro { grid-column: 1 / -1; margin-bottom: 32px; }
    .ab-index, .ab-family-list { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
    .ab-story .ab-label, .ab-founder .ab-label { grid-column: 1 / -1; margin-bottom: 28px !important; }
    .ab-story-body, .ab-founder-body { grid-column: 1 / -1; }
    .ab-cta { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
    .ab-grid { column-gap: 0; }
    .ab-hero { padding-top: 28px; }
    html body .ab-title { margin-top: 20px !important; font-size: 38px !important; }
    html body .ab-lead { font-size: 16px !important; }
    .ab-cover { margin-top: 36px; }
    .ab-cover-frame { aspect-ratio: 4 / 3; border-radius: 18px; }
    .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
    .ab-facts li { padding: 20px 16px 20px; }
    .ab-facts li:nth-child(odd) { padding-left: 0; border-left: 0; }
    .ab-facts li:nth-child(n+3) { border-top: 1px solid var(--ab-line); }
    .ab-facts b { font-size: 34px; }
    html body .ab-statement { font-size: 26px !important; }
    .ab-story-cols, .ab-founder-cols { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
    .ab-clients { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
    .ab-clients ul { gap: 18px 26px; }
    .ab-clients img { max-width: 96px; }
    .ab-step { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
    html body .ab-name { font-size: 34px !important; letter-spacing: -.04em !important; }
    .ab-index b { white-space: normal; }
    html body .ab-index a { grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 4px 12px; padding: 18px 0; }
    .ab-idx-n { grid-row: span 2; align-self: start; padding-top: 4px; }
    .ab-index b { grid-column: 2; }
    .ab-idx-d { grid-column: 2; font-size: 14px; }
    .ab-idx-p { grid-column: 2; }
    .ab-idx-go { grid-column: 3; grid-row: 1; }
    html body a.ab-site { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 16px 0; }
    .ab-site-d { display: none; }
    html body a.ab-site em { grid-column: 3; }
    html body .ab-cta-title { font-size: 34px !important; letter-spacing: -.04em !important; }
}
