/* ==========================================================================
   About page
   Uses the inner-page tokens from listings.css.
   ========================================================================== */
.ab {
    --ab-sky: #6795c8;
    --tint-sky: #e6eff9;
    --tint-sand: #f4eee4;
    --tint-mint: #e7f2ec;
    --tint-lilac: #edecf8;
    padding-bottom: clamp(4rem, 7vw, 6.5rem);
    background:
        radial-gradient(60rem 28rem at 85% 0%, rgba(103, 149, 200, .14), transparent 70%),
        radial-gradient(50rem 26rem at 0% 8%, rgba(237, 236, 248, .9), transparent 70%),
        var(--c-white);
}
.ab-crumb { padding-top: 1.75rem; margin-bottom: 1.25rem; }

.ab i,
.ab-heading i {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
}

/* ---------- Intro ---------- */
.ab-intro { max-width: 82rem; margin-inline: auto; }

.ab-hero {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 21 / 9;
    background: var(--c-field);
}
.ab-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 1.6s var(--ease-out);
}
.ab-hero.is-in img { transform: scale(1); }
.ab-hero figcaption {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    gap: .375rem;
}
.ab-hero figcaption span {
    padding: .375rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(6px);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-ink);
}

.ab-statement {
    position: relative;
    margin: -3.5rem clamp(.75rem, 4vw, 3.5rem) 0;
    padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4.5vw, 4rem);
    border: 1px solid var(--c-line);
    border-radius: 1.25rem;
    background: var(--c-white);
    box-shadow: 0 1.5rem 3rem -2rem rgba(20, 20, 20, .25);
}
.ab-pill {
    display: inline-flex;
    align-items: center;
    height: 1.875rem;
    margin-bottom: 1.25rem;
    padding: 0 .875rem;
    border: 1px solid var(--c-ink);
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--c-ink);
    transition: background-color .2s, color .2s;
}
.ab-pill:hover { background: var(--c-ink); color: var(--c-white); }

.ab-reveal {
    margin: 0;
    font-size: clamp(1.125rem, .9rem + .9vw, 1.75rem);
    line-height: 1.55;
    letter-spacing: -.01em;
    color: var(--c-subtle);
}
.ab-reveal + .ab-reveal { margin-top: 1.5rem; }
.ab-reveal em { font-style: normal; color: var(--c-ink); }

/* Word-by-word fill on scroll (words are wrapped by about.js) */
.ab-reveal .w { color: var(--c-subtle); transition: color .5s var(--ease-out); }
.ab-reveal .w.is-lit { color: var(--c-muted); }
.ab-reveal em .w.is-lit { color: var(--c-ink); }

/* ---------- Stats ---------- */
.ab-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 82rem;
    margin: clamp(3rem, 6vw, 5rem) auto 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--c-line);
    border-bottom: 1px solid var(--c-line);
}
.ab-stats li { padding: 1.75rem 1.25rem; }
.ab-stats li + li { border-left: 1px solid var(--c-line); }
.ab-stats strong {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--c-ink);
}
.ab-stats span { display: block; margin-top: .375rem; font-size: var(--fs-md); color: var(--c-muted); }

/* ---------- Shared headings ---------- */
.ab-kicker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .875rem;
    padding-bottom: .375rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #3f6aa0, #5b55a6 60%, #9a6b2f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Four-point spark, gently twinkling */
.ab-kicker::before {
    content: "";
    width: .75rem;
    height: .75rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6795c8, #8a80d0);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.4 5.6 11.4 12 12-6.4.6-11.4 5.6-12 12-.6-6.4-5.6-11.4-12-12C6.4 11.4 11.4 6.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.4 5.6 11.4 12 12-6.4.6-11.4 5.6-12 12-.6-6.4-5.6-11.4-12-12C6.4 11.4 11.4 6.4 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: ab-twinkle 3.2s ease-in-out infinite;
}
/* Fine underline that draws across when the section is hovered */
.ab-kicker::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, #6795c8, rgba(138, 128, 208, .15));
    transform: scaleX(.25);
    transform-origin: left;
    transition: transform .7s var(--ease-out);
}
section:hover .ab-kicker::after { transform: scaleX(1); }
@keyframes ab-twinkle {
    0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
    50% { transform: scale(.7) rotate(45deg); opacity: .6; }
}

.ab-heading {
    margin: 0;
    font-size: clamp(1.625rem, 1.15rem + 1.6vw, 2.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--c-ink);
}
.ab-heading i { color: var(--c-muted); }

.ab-section-head { max-width: 40rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.ab-section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    max-width: none;
}
.ab-section-note { max-width: 22rem; margin: 0; font-size: var(--fs-base); color: var(--c-muted); }

.ab-actions { display: flex; flex-wrap: wrap; gap: .625rem; margin-top: 1.75rem; }
.ab-actions .btn { height: 2.875rem; padding: 0 1.25rem; }

/* ---------- Story ---------- */
.ab-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(2rem, 6vw, 6rem);
    margin-top: clamp(4.5rem, 9vw, 8rem);
    scroll-margin-top: calc(var(--header-h) + 1rem);
}
.ab-story-media { position: relative; min-height: 28rem; }
.ab-story-media img {
    display: block;
    object-fit: cover;
    border-radius: var(--r-panel);
    background: var(--c-field);
}
.ab-story-media img:first-child { position: absolute; inset: 0 14% 0 0; width: 86%; height: 100%; }
.ab-story-media img:last-child {
    position: absolute;
    right: 0;
    bottom: 1.5rem;
    width: 40%;
    aspect-ratio: 1;
    border: .375rem solid var(--c-white);
    border-radius: 1.125rem;
    box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(20, 20, 20, .35);
}
.ab-story-text { display: flex; flex-direction: column; justify-content: center; padding-block: 1rem; }
.ab-story-text .ab-heading { margin-bottom: 1.25rem; }
.ab-story-text > p:not(.ab-kicker) { margin: 0 0 1rem; font-size: var(--fs-lg); line-height: 1.7; color: var(--c-muted); }
.ab-story-text .ab-kicker { align-self: flex-start; }

/* ---------- Bands (full-width tinted sections) ---------- */
.ab-band {
    margin-top: clamp(4.5rem, 9vw, 8rem);
    padding-block: clamp(3.5rem, 7vw, 6rem);
}
.ab-band-cool { background: linear-gradient(160deg, var(--tint-lilac) 0%, #f5f5fb 45%, var(--tint-mint) 100%); }
.ab-band + .lp-wrap .ab-cta,
.ab-band + .lp-wrap > section:first-child { margin-top: clamp(3.5rem, 7vw, 6rem); }

/* ---------- Values: centred cross ---------- */
.ab-values { background: #f6f5f2; }
.ab-values-head { max-width: 36rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.ab-values-head .ab-section-note { margin: 1rem auto 0; }

.ab-cross { position: relative; max-width: 62rem; margin-inline: auto; }
.ab-cross-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.ab-cross-grid li {
    --tone: #e3ecf7;
    position: relative;
    padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
    text-align: center;
    isolation: isolate;
}
.ab-cross-grid li:nth-child(2) { --tone: #f1e7d8; }
.ab-cross-grid li:nth-child(3) { --tone: #e1efe6; }
.ab-cross-grid li:nth-child(4) { --tone: #e8e6f6; }

/* Hairline cross */
.ab-cross-grid li:nth-child(odd)  { border-right: 1px solid var(--c-line-strong); }
.ab-cross-grid li:nth-child(-n+2) { border-bottom: 1px solid var(--c-line-strong); }

/* Soft colour that grows out of the centre point on hover */
.ab-cross-grid li::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    transition: opacity .5s var(--ease-out);
}
.ab-cross-grid li:nth-child(1)::before { background: radial-gradient(circle at 100% 100%, var(--tone), transparent 75%); }
.ab-cross-grid li:nth-child(2)::before { background: radial-gradient(circle at 0 100%, var(--tone), transparent 75%); }
.ab-cross-grid li:nth-child(3)::before { background: radial-gradient(circle at 100% 0, var(--tone), transparent 75%); }
.ab-cross-grid li:nth-child(4)::before { background: radial-gradient(circle at 0 0, var(--tone), transparent 75%); }
.ab-cross-grid li:hover::before { opacity: 1; }

.ab-cross-no {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--c-subtle);
    transition: color .3s;
}
.ab-cross-grid li:hover .ab-cross-no { color: var(--c-ink); }
.ab-cross-grid h3 {
    margin: 0 0 .75rem;
    font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.025em;
}
.ab-cross-grid h3 i { color: var(--c-muted); transition: color .3s; }
.ab-cross-grid li:hover h3 i { color: var(--c-ink); }
.ab-cross-grid p { max-width: 24rem; margin: 0 auto; font-size: var(--fs-base); line-height: 1.65; color: var(--c-muted); }


/* ---------- Journey ---------- */
.ab-journey { margin-top: clamp(3.5rem, 7vw, 6rem); }
.ab-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--c-line-strong);
}
.ab-timeline li { position: relative; padding-top: 1.75rem; }
.ab-timeline li::before {
    content: "";
    position: absolute;
    top: -.34375rem;
    left: 0;
    width: .625rem;
    height: .625rem;
    border-radius: 50%;
    background: var(--ab-sky);
    box-shadow: 0 0 0 .3125rem var(--c-white), 0 0 0 .375rem var(--ab-sky);
}
.ab-year {
    display: block;
    margin-bottom: .75rem;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    color: var(--c-ink);
}
.ab-timeline h3 { margin: 0 0 .375rem; font-size: var(--fs-base); font-weight: 600; }
.ab-timeline p { margin: 0; font-size: var(--fs-md); color: var(--c-muted); }

/* ---------- Team ---------- */
.ab-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ab-team-grid figure { margin: 0; }
.ab-team-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 6;
    object-fit: cover;
    border-radius: var(--r-panel);
    background: var(--c-field);
    filter: grayscale(1);
    transition: filter .5s var(--ease-out);
}
.ab-team-grid li:hover img { filter: grayscale(0); }
.ab-team-grid figcaption { padding-top: .875rem; }
.ab-team-grid strong { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--c-ink); }
.ab-team-grid span { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- CTA ---------- */
.ab-cta {
    position: relative;
    display: grid;
    min-height: 24rem;
    margin-top: clamp(4.5rem, 9vw, 8rem);
    overflow: hidden;
    border-radius: 1.5rem;
    background: var(--c-dark);
    isolation: isolate;
}
.ab-cta img {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ab-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(15, 15, 15, .82) 0%, rgba(15, 15, 15, .55) 55%, rgba(15, 15, 15, .15) 100%);
}
.ab-cta-body { align-self: center; max-width: 34rem; padding: clamp(1.75rem, 5vw, 4rem); color: rgba(255, 255, 255, .78); }
.ab-cta h2 {
    margin: 0 0 .75rem;
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.03em;
    color: #fff;
}
.ab-cta p { margin: 0; font-size: var(--fs-lg); }
.ab-btn-line { border-color: rgba(255, 255, 255, .45); color: #fff; }
.ab-btn-line:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Scroll-in ---------- */
.ab [data-fade] { opacity: 0; transform: translateY(1.25rem); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.ab [data-fade].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .ab-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; border-top: 0; }
    .ab-timeline li { border-top: 1px solid var(--c-line-strong); }
}

@media (max-width: 860px) {
    .ab-story { grid-template-columns: 1fr; }
    .ab-story-media { min-height: 0; aspect-ratio: 5 / 4; }
    .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-stats li:nth-child(3) { border-left: 0; }
    .ab-stats li:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
    .ab-section-head-row { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .ab-cross-grid { grid-template-columns: 1fr; }
    .ab-cross-grid li:nth-child(odd) { border-right: 0; }
    .ab-cross-grid li:not(:last-child) { border-bottom: 1px solid var(--c-line-strong); }
    .ab-cross-grid li::before { background: radial-gradient(circle at 50% 0, var(--tone), transparent 80%) !important; }
}

@media (max-width: 560px) {
    .ab-hero { aspect-ratio: 4 / 3; border-radius: 1rem; }
    .ab-hero figcaption { top: .75rem; right: .75rem; }
    .ab-statement { margin: -1.5rem 0 0; border-radius: 1rem; }
    .ab-stats li { padding: 1.25rem .75rem; }
    .ab-timeline { grid-template-columns: 1fr; row-gap: 2rem; }
    .ab-team-grid { gap: .75rem; }
    .ab-cta { min-height: 0; border-radius: 1rem; }
    .ab-cta::after { background: rgba(15, 15, 15, .72); }
    .ab-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-kicker::before { animation: none; }
    .ab-hero img,
    .ab [data-fade] { transform: none; transition: none; opacity: 1; }
    .ab-reveal .w { transition: none; }
}
