/* ================================================================
   10. ABOUT PAGE  —  static/css/about-effect.css
   Every About-page style lives here (nothing inline in about_us.html).
   Light design first, dark theme (default) at the end.
================================================================ */

/* ── Hero: transparent so the canvas stage runs up behind it ── */
.zk-about-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    background: transparent !important;
    padding: clamp(60px, 10vh, 120px) clamp(18px, 5vw, 55px) clamp(56px, 8vh, 92px);
}

/* soft mint glow, top-right */
.zk-about-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    z-index: 1;
    width: clamp(240px, 25vw, 480px);
    height: clamp(240px, 25vw, 480px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, .12) 0%, transparent 70%);
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

.zk-eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--zk-ink);
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(16, 51, 47, .12);
    border-radius: 30px;
    padding: 6px 18px;
    margin-bottom: 20px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.zk-eyebrow-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--zk-mint);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, .2);
    animation: zk-ping 2.6s var(--zk-ease) infinite;
}

.zk-about-hero h1 {
    font-size: clamp(2.2rem, 5.4vw, 4.1rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -2px;
    color: var(--zk-ink);
    margin: 0 0 18px;
}

.zk-about-hero h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(104deg, #0B7B6B 0%, #2DD4BF 40%, #8af2e5 60%, #0B7B6B 100%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: zk-shine 7s linear infinite;
}

.zk-about-hero p {
    font-size: clamp(.95rem, 1.2vw, 1.06rem);
    line-height: 1.8;
    color: rgba(16, 51, 47, .7);
    max-width: 58ch;
    margin: 0 auto;
}


/* ── Mission / Vision ──────────────────────────────────────── */
/* .mission-section / .vision-section = full-width band, .about-section = the grid inside */
.mission-section,
.vision-section {
    position: relative;
}

.mission-section {
    background: linear-gradient(180deg, #ffffff 0%, #FCFEFD 100%);
}

.vision-section {
    background: #FFF8F0;
}

.about-section {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 72px);
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(58px, 8vh, 100px) clamp(18px, 5vw, 55px);
}

/* desktop: mission = image | text, vision = text | image */
.mission-section .about-image {
    order: 1;
}

.mission-section .about-content {
    order: 2;
}

.vision-section .about-content {
    order: 1;
}

.vision-section .about-image {
    order: 2;
}

/* the canvases are injected as absolute children — lift the content */
.about-content,
.about-image {
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--zk-ink);
    margin: 0 0 20px;
}

.about-content h2::after {
    content: '';
    display: block;
    width: 58px;
    height: 4px;
    border-radius: 2px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--zk-teal), var(--zk-mint));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .8s var(--zk-ease) .2s;
}

.about-content h2.zk-in::after {
    transform: scaleX(1);
}

.about-content p {
    font-size: .95rem;
    line-height: 1.8;
    color: rgba(16, 51, 47, .72);
    max-width: 52ch;
    margin: 0 0 16px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-image {
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 36px 72px -40px rgba(16, 51, 47, .55);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .35s var(--zk-ease), box-shadow .35s var(--zk-ease);
}

.about-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1.1s var(--zk-ease);
}

.about-image:hover img {
    transform: scale(1.06);
}

/* inner hairline frame + glass sweep */
.about-image::before {
    content: '';
    position: absolute;
    inset: 14px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 16px;
    pointer-events: none;
}

.about-image::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .32) 50%, transparent 62%);
    transform: translateX(-120%);
    transition: transform .9s var(--zk-ease);
}

.about-image:hover::after {
    transform: translateX(120%);
}


/* ── Core values ───────────────────────────────────────────── */
.about-values {
    position: relative;
    overflow: hidden;
    padding: clamp(66px, 9vh, 110px) 0;
    background:
        radial-gradient(700px 360px at 100% 0%, rgba(45, 212, 191, .08), transparent 62%),
        linear-gradient(180deg, #F5FAF8 0%, #EEF7F4 100%);
}

.about-values-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(18px, 5vw, 55px);
}

.about-values h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -1px;
    text-align: center;
    color: var(--zk-ink);
    margin: 0 0 clamp(28px, 3vw, 48px);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.value-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 30px 26px;
    border-radius: 20px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(16, 51, 47, .08);
    box-shadow: 0 18px 40px -32px rgba(16, 51, 47, .35);
    transition: transform .35s var(--zk-spring), border-color .3s var(--zk-ease),
        box-shadow .35s var(--zk-ease);
}

/* cursor glow (JS sets --mx / --my) */
.value-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s var(--zk-ease);
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
            rgba(45, 212, 191, .2), transparent 62%);
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: rgba(45, 212, 191, .42);
    box-shadow: 0 30px 56px -30px rgba(16, 51, 47, .4);
}

.value-card:hover::after {
    opacity: 1;
}

.value-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    font-size: 1.55rem;
    border-radius: 16px;
    margin: 0 auto 18px;
    background: rgba(45, 212, 191, .14);
    color: #0B7B6B;
    border: 1px solid rgba(45, 212, 191, .22);
    transition: transform .45s var(--zk-spring), background .3s;
}

.value-card:hover .value-icon {
    transform: rotate(-8deg) scale(1.08);
    background: rgba(45, 212, 191, .24);
}

.value-card h3 {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 700;
    color: var(--zk-ink);
    margin: 0 0 8px;
}

.value-card p {
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(16, 51, 47, .62);
    margin: 0;
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 991px) {
    .about-section {
        grid-template-columns: 1fr;
    }

    /* single column: text first, image second — both sections */
    .mission-section .about-content,
    .vision-section .about-content {
        order: 1;
    }

    .mission-section .about-image,
    .vision-section .about-image {
        order: 2;
    }

    .about-content p {
        max-width: 100%;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .about-section {
        gap: 22px;
        padding: 44px 16px;
    }

    .about-image::before {
        inset: 10px;
    }

    .values-grid {
        gap: 12px;
    }

    .value-card {
        padding: 20px 14px;
        border-radius: 16px;
    }

    .value-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .value-card h3 {
        font-size: .95rem;
        margin-bottom: 6px;
    }

    .value-card p {
        font-size: .8rem;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}


/* ── Dark theme (default) — applies unless <html data-theme="light"> ── */
html:not([data-theme="light"]) .zk-eyebrow-pill {
    color: #DDFBF6;
    background: rgba(9, 34, 30, .6);
    border-color: rgba(140, 240, 227, .18);
}

html:not([data-theme="light"]) .zk-about-hero h1,
html:not([data-theme="light"]) .about-content h2,
html:not([data-theme="light"]) .about-values h2,
html:not([data-theme="light"]) .value-card h3 {
    color: #F0FAF8;
}

html:not([data-theme="light"]) .zk-about-hero h1 span {
    background-image: linear-gradient(104deg, #2DD4BF 0%, #8CF0E3 40%, #DDFBF6 60%, #2DD4BF 100%);
}

html:not([data-theme="light"]) .zk-about-hero p,
html:not([data-theme="light"]) .about-content p {
    color: rgba(226, 240, 236, .72);
}

html:not([data-theme="light"]) .value-card p {
    color: rgba(226, 240, 236, .64);
}

/* mission sits flush on the page (like white-on-white in light); vision keeps a soft tinted band (like the cream one).
   Both stay opaque: .fade-in-section isolates its children, so the canvas below can only blend with this background. */
html:not([data-theme="light"]) .mission-section {
    background: #061A17;
}

html:not([data-theme="light"]) .vision-section {
    background: linear-gradient(180deg, #0A2723 0%, #08231F 100%);
}

/* the mission / vision effects draw for a white / cream section — invert and screen them in */
html:not([data-theme="light"]) .mission-section>canvas,
html:not([data-theme="light"]) .vision-section>canvas,
html:not([data-theme="light"]) .about-section>canvas {
    filter: invert(1) hue-rotate(180deg) brightness(1.3);
    mix-blend-mode: screen;
    opacity: .75;
}

html:not([data-theme="light"]) .about-image {
    box-shadow: 0 36px 72px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(140, 240, 227, .12);
}

/* values: deep teal band with glass cards */
html:not([data-theme="light"]) .about-values {
    background:
        radial-gradient(900px 500px at 8% 0%, rgba(18, 165, 143, .16), transparent 62%),
        radial-gradient(760px 480px at 96% 100%, rgba(45, 212, 191, .1), transparent 60%),
        linear-gradient(180deg, #082420 0%, #0A2A25 100%);
    box-shadow: inset 0 1px 0 rgba(140, 240, 227, .08);
}

html:not([data-theme="light"]) .value-card {
    background: linear-gradient(160deg, rgba(22, 74, 66, .46) 0%, rgba(9, 36, 32, .7) 100%);
    border-color: rgba(140, 240, 227, .12);
    box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

html:not([data-theme="light"]) .value-card:hover {
    border-color: rgba(45, 212, 191, .42);
    box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .9);
}

html:not([data-theme="light"]) .value-icon {
    color: #5FE3CF;
}