/* ==========================================================================
   MICROCIL - About page (builds on the home.css tokens and section styles)
   ========================================================================== */

.ab-photo {
    width: 100%;
    height: clamp(300px, 30vw, 460px);
    object-fit: cover;
    border-radius: 18px;
    display: block;
    box-shadow: 0 14px 34px rgba(15, 42, 40, 0.14);
}

/* ---------- vision & mission ---------- */
.ab-vm-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px clamp(22px, 2.4vw, 36px);
    box-shadow: 0 6px 20px rgba(15, 42, 40, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-vm-card + .ab-vm-card {
    margin-top: 20px;
}

.ab-vm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 42, 40, 0.12);
}

.ab-vm-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--hm-ink);
    margin: 0;
}

/* ---------- principles ---------- */
.ab-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ab-principle {
    background: #ffffff;
    border: 1px solid var(--hm-line);
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 4px 6px 14px rgba(15, 42, 40, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-principle:hover {
    transform: translate(-3px, -4px);
    box-shadow: 8px 10px 18px rgba(0, 128, 128, 0.18);
}

.ab-principle h3 {
    font-size: clamp(19px, 1.5vw, 22px);
    font-weight: 700;
    color: var(--hm-primary);
    text-align: center;
    margin: 0 0 12px;
}

.ab-principle p {
    text-align: center;
    font-size: 14px;
    line-height: 1.65;
    color: var(--hm-ink);
    margin: 0;
}

/* ---------- engineering experience ---------- */
.ab-exp-list {
    list-style: none;
    margin: 0;
    padding: 6px 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(15, 42, 40, 0.06);
}

.ab-exp-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 260px) 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 18px 0;
    border-bottom: 1px solid var(--hm-line);
}

.ab-exp-list li:last-child {
    border-bottom: 0;
}

.ab-exp-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-primary);
}

.ab-exp-list h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-primary);
    margin: 0;
}

.ab-exp-list p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--hm-text);
    margin: 0;
}

/* ---------- culture (dark) ---------- */
.ab-culture .hm-title span {
    color: #14b8a6;
}
/* ---------- leadership team ---------- */
.ab-team-label {
    justify-content: center;
    margin-bottom: 28px;
}

.ab-team {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
}

.ab-member {
    width: min(100%, 320px);
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 4px 6px 16px rgba(15, 42, 40, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ab-member:hover {
    transform: translateY(-6px);
    box-shadow: 8px 14px 26px rgba(15, 42, 40, 0.16);
}

.ab-member-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f4f6;
}

.ab-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.ab-member:hover .ab-member-img img {
    transform: scale(1.04);
}

.ab-member-body {
    padding: 20px 22px 22px;
    text-align: center;
}

.ab-member-body h4 {
    font-size: 19px;
    font-weight: 700;
    color: var(--hm-primary);
    margin: 0 0 4px;
}

.ab-member-role {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hm-ink);
    margin-bottom: 10px;
}

.ab-member-body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hm-text);
    margin: 0 0 14px;
}

.ab-member-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.ab-member-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hm-primary);
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.25s ease;
}

.ab-member-social a:hover {
    background: var(--hm-primary-dark);
}

/* ---------- journey timeline ---------- */
.ab-journey {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* horizontal line through the dots */
.ab-journey::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(15, 42, 40, 0.18);
}

.ab-jitem {
    position: relative;
    display: grid;
    grid-template-rows: 1fr 22px 1fr;
}

.ab-jdot {
    grid-row: 2;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff7043;
    box-shadow: 0 0 0 5px rgba(255, 112, 67, 0.18);
    align-self: center;
    position: relative;
    z-index: 1;
    animation: abDotGlow 2.4s ease-in-out infinite;
}

/* stagger so the glow ripples along the timeline */
.ab-jitem:nth-child(2) .ab-jdot { animation-delay: 0.3s; }
.ab-jitem:nth-child(3) .ab-jdot { animation-delay: 0.6s; }
.ab-jitem:nth-child(4) .ab-jdot { animation-delay: 0.9s; }
.ab-jitem:nth-child(5) .ab-jdot { animation-delay: 1.2s; }

/* expanding ring */
.ab-jdot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 112, 67, 0.7);
    animation: abDotRing 2.4s ease-out infinite;
    animation-delay: inherit;
}

@keyframes abDotGlow {
    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(255, 112, 67, 0.18), 0 0 6px rgba(255, 112, 67, 0.4);
    }

    50% {
        box-shadow: 0 0 0 7px rgba(255, 112, 67, 0.28), 0 0 18px 4px rgba(255, 112, 67, 0.7);
    }
}

@keyframes abDotRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.ab-jitem:hover .ab-jdot {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.ab-jitem.is-up .ab-jcontent {
    grid-row: 1;
    align-self: end;
    padding-bottom: 22px;
}

.ab-jitem.is-down .ab-jcontent {
    grid-row: 3;
    align-self: start;
    padding-top: 22px;
}

.ab-jstage {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hm-ink);
    margin-bottom: 6px;
}

.ab-jcontent h4 {
    font-size: clamp(19px, 1.5vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hm-primary);
    margin: 0 0 8px;
}

.ab-jcontent p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--hm-ink);
    margin: 0;
}

/* ---------- CTA (dark) ---------- */
/* top-align two-column rows so every section title starts the same distance below the section edge */
.ab-top-row {
    align-items: flex-start !important;
}

.ab-cta-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.ab-cta .hm-eyebrow {
    justify-content: center;
}

.ab-cta .hm-title span {
    color: #14b8a6;
}

.ab-cta .hm-text {
    max-width: 680px;
    margin: 0 auto 22px;
}

.ab-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 10px;
    background: #ffffff;
    color: #111111 !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.35s ease;
}

.ab-cta-btn i {
    color: #ff7043;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.35s ease;
}

/* fill hover, matching the site's other CTAs */
.ab-cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #ff7043;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ab-cta-btn:hover {
    color: #ffffff !important;
}

.ab-cta-btn:hover::before {
    transform: scaleX(1);
}

.ab-cta-btn:hover i {
    color: #ffffff;
    transform: translateX(4px);
}

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
    .ab-principles {
        grid-template-columns: repeat(2, 1fr);
    }

    /* journey becomes a vertical timeline */
    .ab-journey {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 30px;
    }

    .ab-journey::before {
        left: 8px;
        right: auto;
        top: 6px;
        bottom: 6px;
        width: 2px;
        height: auto;
    }

    .ab-jitem {
        display: block;
        padding: 0 0 26px;
    }

    .ab-jdot {
        position: absolute;
        left: -30px;
        top: 4px;
    }

    .ab-jitem.is-up .ab-jcontent,
    .ab-jitem.is-down .ab-jcontent {
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .ab-exp-list {
        padding: 4px 18px;
    }

    .ab-exp-list li {
        grid-template-columns: 32px 1fr;
    }

    .ab-exp-list p {
        grid-column: 2;
    }
}

@media (max-width: 575.98px) {
    .ab-principles {
        grid-template-columns: 1fr;
    }
}
