/* =========================================================
   LEARN — About Us page styles
   Loads AFTER home.css — inherits all tokens, nav, footer,
   buttons, section head, impact counters, pillars, cards.
   ========================================================= */

/* ---------- HERO (about variant) ---------- */
.lc-about-hero {
    position: relative;
    padding: 180px var(--gutter) 32px;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: #ffffff;
}
@media (max-width: 900px) {
    .lc-about-hero {
        padding: 160px var(--gutter) 24px;
        min-height: 70vh;
    }
}
/* Background photo with entrance + idle Ken Burns animation */
.lc-about-hero::before {
    content: "";
    position: absolute;
    inset: -4%;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.10) 100%),
        url("../images/bg-slide-04.webp");
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    z-index: 0;
    transform: scale(1.25) translate3d(0, 4%, 0);
    opacity: 0;
    filter: blur(14px);
    animation:
        lcAboutHeroIn 1.8s cubic-bezier(0.22, 0.9, 0.28, 1) 0.15s forwards,
        lcAboutHeroDrift 22s ease-in-out 2s infinite alternate;
    will-change: transform, opacity, filter;
}
@keyframes lcAboutHeroIn {
    0% {
        opacity: 0;
        transform: scale(1.25) translate3d(0, 4%, 0);
        filter: blur(14px);
    }
    60% {
        opacity: 1;
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1.05) translate3d(0, 0, 0);
        filter: blur(0);
    }
}
@keyframes lcAboutHeroDrift {
    0%   { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.10) translate3d(-1.2%, -1.5%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .lc-about-hero::before {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
    }
}
.lc-about-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 62%;
    background: linear-gradient(180deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 55%,
        rgba(255,255,255,0.92) 82%,
        #fff 96%);
    z-index: 1;
    pointer-events: none;
    /* Stage the gradient in after the photo settles (opacity only — a
       vertical transform here would lift the gradient off the section
       edge and reveal a hard seam under the hero). */
    opacity: 0;
    animation: lcAboutHeroFade 1.4s cubic-bezier(0.22, 0.9, 0.28, 1) 1.1s forwards;
    will-change: opacity;
}
@keyframes lcAboutHeroFade {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-about-hero::after {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
.lc-about-hero__orb {
    position: absolute;
    width: 520px; height: 520px;
    left: -120px; top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.8;
    animation: lcFloat 16s var(--ease) infinite alternate;
    z-index: 0;
    pointer-events: none;
}
.lc-about-hero__inner {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
}
.lc-about-hero__eyebrow {
    margin-bottom: 24px;
}
.lc-about-hero__title {
    font-family: var(--font-display);
    font-size: var(--hero-title-size) !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 28px;
    color: var(--ink);
    max-width: 1000px;
    /* Reserve space so the lead doesn't jump while typewriter runs */
    min-height: 2.4em;
}
.lc-about-hero__title.is-typing::after {
    content: "_";
    display: inline-block;
    margin-left: 6px;
    color: var(--brand);
    font-weight: 700;
    animation: lc-caret 0.9s steps(1, end) infinite;
}
@media (prefers-reduced-motion: reduce) {
    .lc-about-hero__title.is-typing::after { display: none; }
    .lc-about-hero__title { min-height: 0; }
}
.lc-about-hero__title .lc-accent {
    color: var(--brand);
}
.lc-about-hero__lead {
    max-width: 820px;
    font-size: clamp(15.3px, 1.3vw, 18px);
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 0 0;
}

/* ---------- OUR STORY ---------- */
.lc-story {
    padding: 120px 0;
    background: var(--paper);
}
.lc-story__intro {
    max-width: 960px;
    margin: 0 auto 80px;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .lc-story__intro { grid-template-columns: 1fr; gap: 24px; }
}
.lc-story__intro p {
    margin: 0;
    font-size: 15.3px;
    line-height: 1.75;
    color: var(--ink-soft);
}
.lc-story__intro p strong {
    color: var(--brand);
    font-weight: 600;
}

/* Timeline */
.lc-timeline {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}
.lc-timeline__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.lc-timeline__track::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 50%, var(--accent) 100%);
    opacity: 0.25;
    z-index: 0;
}
@media (max-width: 900px) {
    .lc-timeline__track { grid-template-columns: 1fr; gap: 24px; }
    .lc-timeline__track::before {
        top: 0; bottom: 0;
        left: 23px; right: auto;
        width: 2px;
        height: auto;
        background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 50%, var(--accent) 100%);
    }
}

.lc-timeline__item {
    position: relative;
    z-index: 1;
    padding: 0 8px;
}
@media (max-width: 900px) {
    .lc-timeline__item { padding-left: 60px; }
}
.lc-timeline__dot {
    position: relative;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--brand);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
@media (max-width: 900px) {
    .lc-timeline__dot {
        position: absolute;
        left: 0; top: 0;
        margin-bottom: 0;
    }
}
.lc-timeline__dot::before {
    content: "";
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--brand);
    transition: transform 0.5s var(--ease);
}
.lc-timeline__item:hover .lc-timeline__dot {
    transform: scale(1.1);
}
.lc-timeline__item:hover .lc-timeline__dot::before {
    transform: scale(1.3);
}
.lc-timeline__year {
    font-family: var(--font-display);
    font-size: 19.8px;
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}
.lc-timeline__body {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* ---------- VISION / MISSION / BELIEF ---------- */
.lc-vmb {
    padding: 120px 0;
    background: var(--paper-2);
    position: relative;
    overflow: hidden;
}
/* Match the home page's section title size */
.lc-vmb .lc-section__title {
    font-size: clamp(28px, 3.6vw, 46px);
}
.lc-vmb__group {
    max-width: calc(var(--max) - var(--gutter) * 4);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    overflow: hidden;
}
@media (max-width: 900px) {
    .lc-vmb__group { grid-template-columns: 1fr; }
}
.lc-vmb__card {
    position: relative;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}
.lc-vmb__icon {
    display: inline-flex;
    align-self: flex-start;
    margin: 0 0 22px;
    color: var(--brand);
    transition: transform 0.4s var(--ease);
}
.lc-vmb__icon svg {
    width: 40px;
    height: 40px;
}
.lc-vmb__card:hover .lc-vmb__icon {
    transform: translateY(-2px) rotate(-3deg);
}
.lc-vmb__card + .lc-vmb__card {
    border-left: 1px solid var(--line);
}
@media (max-width: 900px) {
    .lc-vmb__card + .lc-vmb__card {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

.lc-vmb__label {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.8vw, 25.2px);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 18px;
    font-weight: 700;
}
.lc-vmb__title {
    font-family: var(--font-display);
    font-size: 23.4px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 18px;
    line-height: 1.3;
}
.lc-vmb__body {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.7;
}

/* ---------- VMB Marquee (office photos) ---------- */
.lc-marquee {
    margin-top: 64px;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lc-marquee__track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: lc-marquee-scroll 50s linear infinite;
}
.lc-marquee:hover .lc-marquee__track {
    animation-play-state: paused;
}
.lc-marquee__item {
    flex: 0 0 auto;
    width: 420px;
    height: 300px;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
}
.lc-marquee__btn {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    border-radius: inherit;
}
.lc-marquee__btn img {
    transition: transform 0.5s var(--ease);
}
.lc-marquee__btn:hover img,
.lc-marquee__btn:focus-visible img {
    transform: scale(1.04);
}
.lc-marquee__btn:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px;
}
.lc-marquee__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
@media (max-width: 768px) {
    .lc-marquee__item { width: 280px; height: 220px; }
}
@keyframes lc-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .lc-marquee__track { animation: none; }
}

/* ---------- CEO QUOTE ---------- */
.lc-ceo {
    position: relative;
    padding: 96px var(--gutter);
    background: radial-gradient(900px 600px at 15% 20%, rgba(122, 195, 234, 0.22), transparent 60%), linear-gradient(125deg, var(--brand-3) 0%, var(--brand) 50%, #034775 100%);
    color: #fff;
    overflow: hidden;
}
.lc-ceo::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background-image:
        linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px); */
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}
/* Floating shapes that rise from below and morph square → circle while rotating.
   Adapted from mohaiman's "Pure Css Animated Background" pen on CodePen. */
.lc-ceo__orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lc-ceo__orbs li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px; height: 20px;
    bottom: -150px;
    background: rgba(255, 255, 255, 0.18);
    animation: lcCeoFloat 25s linear infinite;
}
.lc-ceo__orbs li:nth-child(1)  { left: 25%; width:  80px; height:  80px; animation-delay:  0s; }
.lc-ceo__orbs li:nth-child(2)  { left: 10%; width:  20px; height:  20px; animation-delay:  2s; animation-duration: 12s; }
.lc-ceo__orbs li:nth-child(3)  { left: 70%; width:  20px; height:  20px; animation-delay:  4s; }
.lc-ceo__orbs li:nth-child(4)  { left: 40%; width:  60px; height:  60px; animation-delay:  0s; animation-duration: 18s; }
.lc-ceo__orbs li:nth-child(5)  { left: 65%; width:  20px; height:  20px; animation-delay:  0s; }
.lc-ceo__orbs li:nth-child(6)  { left: 75%; width: 110px; height: 110px; animation-delay:  3s; }
.lc-ceo__orbs li:nth-child(7)  { left: 35%; width: 150px; height: 150px; animation-delay:  7s; }
.lc-ceo__orbs li:nth-child(8)  { left: 50%; width:  25px; height:  25px; animation-delay: 15s; animation-duration: 45s; }
.lc-ceo__orbs li:nth-child(9)  { left: 20%; width:  15px; height:  15px; animation-delay:  2s; animation-duration: 35s; }
.lc-ceo__orbs li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay:  0s; animation-duration: 11s; }
@keyframes lcCeoFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lc-ceo__orbs li { animation: none; }
}
/* ---------- CEO — 2-up row of compact cards ---------- */
.lc-ceo__grid {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (max-width: 760px) {
    .lc-ceo__grid { grid-template-columns: 1fr; gap: 22px; }
}
.lc-ceo-card {
    margin: 0;
    display: grid;
    grid-template-columns: 70% 30%;
    align-items: center;
    gap: 24px;
    padding: 32px 30px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
/* Text column (quote + author) on the left */
.lc-ceo-card__main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}
.lc-ceo-card__photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
}
.lc-ceo-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
@media (max-width: 760px) {
    .lc-ceo-card { grid-template-columns: 1fr; gap: 20px; }
    .lc-ceo-card__photo {
        order: -1;
        width: 160px;
        aspect-ratio: 1 / 1;
        border-radius: 14px;
        justify-self: start;
    }
}
.lc-ceo-card__quote {
    margin: 0;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
}
.lc-ceo-card__author {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
    width: 100%;
    line-height: 1.5;
}
.lc-ceo-card__author strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15.3px;
    color: #fff;
}
.lc-ceo-card__author em {
    font-style: normal;
    font-size: 11.7px;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
}

/* ---------- TIMELINE IMAGE ---------- */
.lc-timeline-img {
    width: 100%;
    padding: 0;
    background: var(--paper);
}
.lc-timeline-img__figure {
    margin: 0;
}
.lc-timeline-img__figure img {
    width: 100%;
    height: auto;
    display: block;
}
/* When the figure lives inline inside .lc-story (after the timeline track),
   constrain it to the section's content max-width. */
.lc-story > .lc-timeline-img__figure {
    max-width: var(--max);
    margin: 64px auto 0;
    padding: 0 var(--gutter);
}

/* ---------- PROOF / IMPACT NUMBERS (about) ----------
   Light tone panel — visually distinct from the home grid.
   Each stat is a card with a giant ghost icon in the background,
   a brand-blue number, and supporting copy explaining the figure. */
.lc-about-impact {
    position: relative;
    padding: 68px 0 72px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(900px 600px at 12% 18%, rgba(122,195,234,0.18), transparent 60%),
        radial-gradient(700px 500px at 90% 90%, rgba(40,121,185,0.10), transparent 65%),
        linear-gradient(180deg, #f7fbff 0%, #eaf3fb 100%);
}
/* Soft grid backdrop, masked to the centre so it fades at the edges */
.lc-about-impact__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(40,121,185,0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(40,121,185,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.lc-about-impact__head {
    max-width: 880px;
    margin: 0 auto 36px;
    padding: 0 var(--gutter);
    text-align: center;
}
.lc-about-impact__head .lc-eyebrow {
    margin-bottom: 18px;
    color: var(--brand);
}
.lc-about-impact__title {
    font-family: var(--font-display);
    font-size: clamp(25.2px, 3.4vw, 45px);
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}
.lc-about-impact__title .lc-accent {
    color: var(--brand);
}
.lc-about-impact__lead {
    font-size: clamp(13.5px, 1vw, 15.3px);
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0;
}

.lc-about-impact__grid {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
@media (max-width: 700px) {
    .lc-about-impact__grid { grid-template-columns: 1fr; gap: 20px; }
    .lc-about-impact { padding: 72px 0 76px; }
}

/* ----- Stat card ----- */
.lc-stat-card {
    position: relative;
    padding: 32px 32px 30px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(40,121,185,0.10);
    box-shadow: 0 12px 40px rgba(11,15,26,0.05);
    overflow: hidden;
    isolation: isolate;
    /* Scroll-linked entrance — JS sets --stat-progress (0..1) on the grid
       and --stat-stagger (0..3) per card. Cards rise from below in a wave. */
    --_stat-ty: calc((1 - var(--stat-progress, 0)) * (100px + var(--stat-stagger, 0) * 60px));
    transform: translateY(var(--_stat-ty));
    opacity: calc(0.15 + 0.85 * var(--stat-progress, 0));
    transition: border-color 0.5s, box-shadow 0.5s;
}
.lc-stat-card:hover {
    transform: translateY(calc(var(--_stat-ty) - 4px));
    border-color: rgba(40,121,185,0.25);
    box-shadow: 0 24px 60px rgba(11,15,26,0.08);
}
@media (prefers-reduced-motion: reduce) {
    .lc-stat-card {
        --_stat-ty: 0px;
        transform: none !important;
        opacity: 1 !important;
    }
}
/* Giant faded icon sitting in the right side of the card as a watermark */
.lc-stat-card__icon {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s, transform 0.5s var(--ease);
}
.lc-stat-card__icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1;
}
.lc-stat-card:hover .lc-stat-card__icon {
    opacity: 0.13;
    transform: translateY(-50%) scale(1.04);
}
/* Foreground content sits above the watermark icon */
.lc-stat-card__num,
.lc-stat-card__label,
.lc-stat-card__desc {
    position: relative;
    z-index: 1;
}
.lc-stat-card__num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(38px, 4.2vw, 54px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.lc-stat-card__label {
    font-family: var(--font-display);
    font-size: 16.2px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 10px;
}
.lc-stat-card__desc {
    margin: 0;
    max-width: 80%;
    font-size: 13.1px;
    line-height: 1.7;
    color: var(--ink-soft);
}
@media (max-width: 700px) {
    .lc-stat-card { padding: 28px 24px 26px; }
    .lc-stat-card__icon { width: 180px; height: 180px; right: -30px; }
    .lc-stat-card__desc { max-width: 100%; }
}
