/* ==========================================================================
   SK CHIT FUNDS — ABOUT PAGE
   ========================================================================== */

:root {
    --ab-ink: #0f2a20;
    --ab-muted: #4a6358;
    --ab-green: #0b6b3a;
    --ab-green-deep: #08432a;
    --ab-mint: #e8f6ee;
    --ab-mint-2: #f4fbf7;
    --ab-line: rgba(11, 107, 58, 0.18);
    --ab-gold: #b8892f;
    --ab-white: #ffffff;
    --ab-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --ab-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ab-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ab-header: 0px;
}

.about-page {
    font-family: var(--ab-sans);
    color: var(--ab-ink);
    background: var(--ab-white);
}

.about-page main { display: block; }

.ab-skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--ab-green-deep);
    color: #fff;
    border-radius: 6px;
}
.ab-skip:focus { top: 12px; }

/* ---------- shared type & layout ---------- */
.ab-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.ab-section { padding: clamp(56px, 7vw, 96px) 0; }

.ab-eyebrow {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ab-green);
}

.ab-h2 {
    margin: 0 0 24px;
    font-family: var(--ab-serif);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: var(--ab-ink);
}

.ab-body,
.ab-lead {
    margin: 0 0 18px;
    max-width: 62ch;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ab-muted);
}
.ab-lead { color: var(--ab-ink); font-size: 1.15rem; margin-top: 28px; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.ab-hero {
    position: relative;
    padding-top: var(--ab-header);
    min-height: 85vh;
    background: var(--ab-mint);
}

.ab-hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.ab-hero-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--ab-mint);
}

.ab-hero-reveal,
.ab-hero-parallax { position: absolute; inset: 0; }

.ab-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.ab-hero-img.is-broken { visibility: hidden; }

.ab-hero-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(7, 47, 45, 0.75) 0%,
        rgba(7, 47, 45, 0.55) 30%,
        rgba(7, 47, 45, 0.25) 50%,
        rgba(7, 47, 45, 0.1) 70%,
        rgba(7, 47, 45, 0) 85%
    );
}

.ab-hero-copy {
    position: relative;
    z-index: 2;
    padding: 22px 24px 8px;
    color: var(--ab-white);
}

.ab-hero-title {
    margin: 0;
    font-family: var(--ab-serif);
    font-weight: 400;
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.05;
    color: var(--ab-white);
}
.ab-hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.ab-hero-line > span { display: block; }

.ab-hero-rule {
    display: block;
    width: 110px;
    height: 3px;
    margin: 14px 0 14px;
    background: linear-gradient(90deg, var(--ab-green), var(--ab-gold));
    border-radius: 2px;
}

.ab-hero-sub {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.ab-eyebrow {
    margin: 0 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ab-green);
}

@media (min-width: 900px) {
    .ab-hero-copy {
        position: absolute;
        left: 5%;
        bottom: 12%;
        max-width: 52%;
        padding: 0;
    }
    .ab-hero-title { font-size: clamp(2rem, 4.4vw, 4.2rem); }
    .ab-hero-sub { font-size: clamp(0.85rem, 1.1vw, 1.02rem); }
    .ab-hero-img { object-position: center 40%; }
}

@media (min-width: 600px) and (max-width: 899px) {
    .ab-hero { min-height: 75vh; }
    .ab-hero-copy {
        padding: 24px;
        max-width: 100%;
    }
    .ab-hero-img { object-position: center 38%; }
    .ab-hero-veil {
        background: linear-gradient(
            to top,
            rgba(7, 47, 45, 0.7) 0%,
            rgba(7, 47, 45, 0.4) 40%,
            rgba(7, 47, 45, 0.15) 70%,
            rgba(7, 47, 45, 0) 90%
        );
    }
}

@media (max-width: 599px) {
    .ab-hero { min-height: 80vh; }
    .ab-hero-copy {
        padding: 20px;
        max-width: 100%;
        text-align: center;
    }
    .ab-hero-img { object-position: center 45%; }
    .ab-hero-veil {
        background: linear-gradient(
            to top,
            rgba(7, 47, 45, 0.65) 0%,
            rgba(7, 47, 45, 0.35) 50%,
            rgba(7, 47, 45, 0.1) 80%,
            rgba(7, 47, 45, 0) 95%
        );
    }
    .ab-hero-rule { margin: 14px auto; }
}

.ab-scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 0 22px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ab-green);
    text-decoration: none;
}
.ab-scroll-cue-line {
    position: relative;
    display: block;
    width: 1px;
    height: 34px;
    background: var(--ab-line);
    overflow: hidden;
}
.ab-scroll-cue-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -50%;
    width: 1px;
    height: 50%;
    background: var(--ab-green);
    animation: abCue 2.2s ease-in-out infinite;
}
@keyframes abCue { 0% { top: -50%; } 100% { top: 100%; } }

/* ==========================================================================
   2. INTRODUCTION
   ========================================================================== */
.ab-intro { background: var(--ab-white); }

.ab-scrub {
    margin: 0;
    max-width: 24em;
    font-family: var(--ab-serif);
    font-size: clamp(1.6rem, 3.2vw, 2.7rem);
    line-height: 1.28;
    color: var(--ab-ink);
}

/* ==========================================================================
   3. OUR STORY
   ========================================================================== */
.ab-story { background: var(--ab-mint-2); }

.ab-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
@media (min-width: 900px) {
    .ab-story-grid { grid-template-columns: 1.25fr 0.75fr; gap: 72px; align-items: start; }
}

.ab-counter-card {
    margin-top: 32px;
    padding: 18px 24px;
    border-left: 3px solid var(--ab-gold);
    background: var(--ab-white);
    box-shadow: 0 10px 30px rgba(11, 107, 58, 0.08);
    max-width: 360px;
}
.ab-counter-label {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ab-muted);
}
.ab-counter {
    margin: 0;
    font-family: var(--ab-serif);
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    line-height: 1.05;
    color: var(--ab-green);
}
.ab-counter-unit { font-size: 0.45em; color: var(--ab-muted); }

/* timeline */
.ab-timeline { position: relative; padding-left: 34px; --tl: 1; }
.ab-tl-line {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--ab-line);
}
.ab-tl-line i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--ab-green);
    transform-origin: 50% 0;
    transform: scaleY(var(--tl));
    transition: transform 0.6s var(--ab-ease);
}
.ab-tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
.ab-tl-node { 
    position: relative;
    transition: opacity 0.5s var(--ab-ease), transform 0.5s var(--ab-ease);
}
.ab-tl-node.is-on {
    opacity: 1;
    transform: translateX(0);
}
.ab-tl-node::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ab-white);
    border: 2px solid var(--ab-green);
    box-sizing: border-box;
    transition: background 0.4s var(--ab-ease), transform 0.4s var(--ab-ease);
}
.ab-tl-node.is-on::before {
    background: var(--ab-green);
    transform: scale(1.2);
}
.ab-tl-date {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ab-green);
}
.ab-tl-label {
    display: block;
    margin-top: 4px;
    font-family: var(--ab-serif);
    font-size: 1.5rem;
    line-height: 1.2;
}

/* ==========================================================================
   4. MISSION & VISION
   ========================================================================== */
.ab-mv-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 800px) {
    .ab-mv-grid { grid-template-columns: 1fr 1fr; }
}
.ab-mv-panel { display: flex; align-items: center; }
.ab-mv-inner {
    width: 100%;
    max-width: 560px;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 64px);
    box-sizing: border-box;
}
.ab-mv-mission { background: var(--ab-mint); justify-content: flex-end; }
.ab-mv-vision { background: var(--ab-green-deep); color: #fff; }
.ab-mv-vision .ab-eyebrow { color: #e6c27a; }
.ab-mv-title {
    margin: 0 0 18px;
    font-family: var(--ab-serif);
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.12;
}
.ab-mv-text { margin: 0; font-size: 1.02rem; line-height: 1.75; }
.ab-mv-mission .ab-mv-text { color: var(--ab-muted); }
.ab-mv-vision .ab-mv-text { color: rgba(255, 255, 255, 0.86); }
@media (max-width: 799px) {
    .ab-mv-mission { justify-content: flex-start; }
}

/* ==========================================================================
   5. FOUNDER
   ========================================================================== */
.ab-founder { background: var(--ab-white); }

.ab-founder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 900px) {
    .ab-founder-grid { grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
}

.ab-founder-media {
    margin: 0;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ab-mint);
    box-shadow: 0 24px 60px rgba(8, 67, 42, 0.18);
}
.ab-founder-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-founder-img.is-broken { visibility: hidden; }

.ab-founder-heading { margin-bottom: 4px; }
.ab-founder-role {
    margin: 0 0 28px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ab-muted);
}

.ab-quote {
    margin: 0;
    padding: 0 0 0 22px;
    border-left: 3px solid var(--ab-gold);
}
.ab-quote p {
    margin: 0 0 16px;
    font-family: var(--ab-serif);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.45;
    color: var(--ab-ink);
}
.ab-quote p:last-child { margin-bottom: 0; }

/* ==========================================================================
   6. CORE VALUES
   ========================================================================== */
.ab-values { background: var(--ab-mint-2); }

.ab-values-wrap { height: auto; }

.ab-stage {
    --fig-w: min(1000px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    justify-items: center;
    row-gap: 18px;
    padding: 56px 20px 48px;
    box-sizing: border-box;
}

.ab-values-title {
    margin: 0;
    text-align: center;
    font-family: var(--ab-serif);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    color: var(--ab-ink);
}

.ab-figure {
    width: var(--fig-w);
    aspect-ratio: 1200 / 640;
    min-height: 0;
}
.ab-svg { display: block; width: 100%; height: 100%; overflow: visible; }

.ab-draw {
    fill: none;
    stroke: var(--ab-green);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1 2;
    stroke-dashoffset: 0;
    vector-effect: non-scaling-stroke;
}
.ab-draw.is-heavy { stroke-width: 2.2; }
.ab-draw.is-fine { stroke-width: 1; stroke: var(--ab-green); opacity: 0.8; }
.ab-draw.is-dim { stroke: var(--ab-muted); stroke-width: 1; }
.ab-draw.is-gold { stroke: var(--ab-gold); }
.ab-fillonly { fill: var(--ab-green); stroke: none; fill-opacity: 0; }
.ab-fillonly.is-gold { fill: var(--ab-gold); }
.ab-guide {
    fill: none;
    stroke: var(--ab-green);
    stroke-width: 1;
    stroke-dasharray: 3 7;
    opacity: 0;
    vector-effect: non-scaling-stroke;
}
.ab-svg.is-complete .ab-emblem { filter: drop-shadow(0 0 6px rgba(184, 137, 47, 0.55)); }

.ab-stepper-wrap {
    position: relative;
    width: var(--fig-w);
}
.ab-step-line {
    position: absolute;
    left: 20%;
    right: 20%;
    top: 16px;
    height: 2px;
    background: var(--ab-line);
}
.ab-step-line i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--ab-green);
    transform-origin: 0 50%;
    transform: scaleX(1);
}

.ab-stepper {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 75%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}
.ab-stepper li { display: flex; justify-content: center; }

.ab-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    text-align: center;
    cursor: pointer;
}
.ab-step:focus-visible { outline: 2px solid var(--ab-gold); outline-offset: 4px; border-radius: 6px; }

.ab-step-dot {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--ab-line);
    background: var(--ab-white);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ab-muted);
    transition: background 0.4s var(--ab-ease), color 0.4s var(--ab-ease), border-color 0.4s var(--ab-ease), transform 0.4s var(--ab-ease);
}
.ab-step[data-state='current'] .ab-step-dot {
    border-color: var(--ab-green);
    color: var(--ab-green);
    transform: scale(1.12);
}
.ab-step[data-state='done'] .ab-step-dot {
    background: var(--ab-green);
    border-color: var(--ab-green);
    color: #fff;
}
.ab-step[aria-pressed='true'] .ab-step-dot { box-shadow: 0 0 0 4px rgba(184, 137, 47, 0.35); }

.ab-step-title {
    display: none;
    margin-top: 10px;
    font-family: var(--ab-serif);
    font-size: 1.15rem;
    line-height: 1.15;
    color: var(--ab-ink);
}
.ab-step-desc {
    display: none;
    margin-top: 6px;
    max-width: 130px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--ab-muted);
}

.ab-value-card {
    width: min(520px, 100%);
    padding: 16px 20px;
    text-align: center;
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: 8px;
    box-sizing: border-box;
}
.ab-card-title { margin: 0 0 4px; font-family: var(--ab-serif); font-weight: 400; font-size: 1.5rem; }
.ab-card-desc { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--ab-muted); }

@media (min-width: 640px) {
    .ab-step-title { display: block; }
    .ab-step-dot { width: 38px; height: 38px; }
    .ab-step-line { top: 18px; }
}
@media (min-width: 1100px) {
    .ab-step-desc { display: block; }
    .ab-value-card { display: none; }
}

/* PINNED layout: Reduced height to remove empty space */
@media (min-width: 1024px) and (min-height: 600px) {
    html:not(.ab-static) .ab-values-wrap { height: 140svh; }

    html:not(.ab-static) .ab-stage {
        --fig-w: min(1100px, 100%, calc((100svh - 330px - var(--ab-header)) * 1.875));
        position: sticky;
        top: 0;
        height: 100svh;
        grid-template-rows: auto minmax(0, 1fr) auto auto;
        align-items: center;
        row-gap: 10px;
        padding: calc(var(--ab-header) + 20px) 32px 0; 
    }
    html:not(.ab-static) .ab-figure { align-self: center; }
}

/* ==========================================================================
   7. WHY SK CHIT FUNDS
   ========================================================================== */
.ab-why { background: var(--ab-white); }

.ab-why-steps {
    position: relative;
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    --why: 1;
}
.ab-why-line {
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 21px;
    height: 2px;
    background: var(--ab-line);
}
.ab-why-line i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--ab-green);
    transform-origin: 0 50%;
    transform: scaleX(var(--why));
}
.ab-why-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ab-why-num {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--ab-green);
    color: #fff;
    font-weight: 700;
}
.ab-why-label {
    margin-top: 12px;
    font-family: var(--ab-serif);
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    line-height: 1.2;
}
@media (max-width: 560px) {
    .ab-why-steps { grid-template-columns: 1fr; gap: 20px; }
    .ab-why-line { display: none; }
    .ab-why-step { flex-direction: row; gap: 14px; text-align: left; }
    .ab-why-label { margin-top: 0; }
}

/* ==========================================================================
   ANIMATION START STATES
   ========================================================================== */
html.ab-anim [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition: opacity 0.9s var(--ab-ease), transform 0.9s var(--ab-ease);
}
html.ab-anim [data-reveal].is-in { opacity: 1; transform: none; }

html.ab-anim [data-reveal='clip'] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.3s var(--ab-ease);
}
html.ab-anim [data-reveal='clip'].is-in { clip-path: inset(0 0 0 0); }

html.ab-anim .ab-hero-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.4s var(--ab-ease);
}
html.ab-anim .ab-hero.is-in .ab-hero-reveal { clip-path: inset(0 0 0 0); }
html.ab-anim .ab-hero-parallax {
    transform: scale(1.05);
    transition: transform 2.4s var(--ab-ease);
}
html.ab-anim .ab-hero.is-in .ab-hero-parallax { transform: scale(1); }

html.ab-anim .ab-hero-line > span {
    transform: translate3d(0, 110%, 0);
    transition: transform 1.1s var(--ab-ease);
}
html.ab-anim .ab-hero.is-in .ab-hero-line > span { transform: none; }
html.ab-anim .ab-hero.is-in .ab-hero-line:nth-child(2) > span { transition-delay: 0.14s; }

html.ab-anim .ab-hero-rule {
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1s var(--ab-ease) 0.5s;
}
html.ab-anim .ab-hero.is-in .ab-hero-rule { transform: scaleX(1); }

html.ab-anim .ab-hero-fade {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.9s var(--ab-ease) 0.7s, transform 0.9s var(--ab-ease) 0.7s;
}
html.ab-anim .ab-hero.is-in .ab-hero-fade { opacity: 1; transform: none; }

html.ab-anim .ab-w { color: rgba(15, 42, 32, 0.22); transition: color 0.35s ease; }
html.ab-anim .ab-w.on { color: var(--ab-ink); }

html.ab-anim .ab-tl-node { opacity: 0.35; transition: opacity 0.6s ease; }
html.ab-anim .ab-tl-node.is-on { opacity: 1; }
html.ab-anim .ab-tl-node::before { transition: background 0.5s ease; }
html.ab-anim .ab-tl-node.is-on::before { background: var(--ab-green); }

html.ab-anim .ab-why-steps { --why: 0; }
html.ab-anim .ab-why-line i { transition: transform 1.6s var(--ab-ease) 0.2s; }
html.ab-anim .ab-why-steps.is-in { --why: 1; }
html.ab-anim .ab-why-step {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.7s var(--ab-ease), transform 0.7s var(--ab-ease);
}
html.ab-anim .ab-why-steps.is-in .ab-why-step { opacity: 1; transform: none; }
html.ab-anim .ab-why-steps.is-in .ab-why-step:nth-child(2) { transition-delay: 0.15s; }
html.ab-anim .ab-why-steps.is-in .ab-why-step:nth-child(3) { transition-delay: 0.45s; }
html.ab-anim .ab-why-steps.is-in .ab-why-step:nth-child(4) { transition-delay: 0.75s; }
html.ab-anim .ab-why-steps.is-in .ab-why-step:nth-child(5) { transition-delay: 1.05s; }

/* Enhanced hover states for Mission/Vision cards */
.ab-mv-panel {
    transition: transform 0.4s var(--ab-ease), box-shadow 0.4s var(--ab-ease);
}
.ab-mv-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(8, 67, 42, 0.12);
}

/* Enhanced founder image hover */
.ab-founder-media {
    transition: transform 0.5s var(--ab-ease);
}
.ab-founder-media:hover {
    transform: scale(1.02);
}

/* FAILSAFE */
html.ab-failsafe .ab-step-dot { background: var(--ab-green); border-color: var(--ab-green); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .ab-scroll-cue-line::after { animation: none; }
    .ab-step-dot { transition: none; }
    .ab-mv-panel { transition: none; transform: none; }
    .ab-founder-media { transition: none; transform: none; }
}