/* =========================================================
   ABOUT US PAGE — enhanced styling & motion
   Extends company_registration.css (--cr-* tokens)
   ========================================================= */


/* ---------------------------------------------------------
   PAGE-LEVEL MOTION TOKENS
--------------------------------------------------------- */

.about-page {
    --about-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --about-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --about-duration: 0.55s;
}


/* ---------------------------------------------------------
   SCROLL REVEAL (JS toggles .is-revealed)
--------------------------------------------------------- */

.about-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity var(--about-duration) var(--about-ease),
        transform var(--about-duration) var(--about-ease);
    will-change: opacity, transform;
}

.about-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-reveal-delay-1 { transition-delay: 0.08s; }
.about-reveal-delay-2 { transition-delay: 0.16s; }
.about-reveal-delay-3 { transition-delay: 0.24s; }
.about-reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .about-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


/* ---------------------------------------------------------
   HERO — richer orbs + snapshot card
--------------------------------------------------------- */

.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero .cr-orb {
    animation: about-orb-float 12s ease-in-out infinite;
    opacity: 0.55;
}

.about-hero .cr-orb-two {
    animation-delay: -4s;
    animation-duration: 16s;
}

@keyframes about-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(18px, -22px) scale(1.06); }
    66%      { transform: translate(-14px, 12px) scale(0.96); }
}

.about-hero .cr-hero-content > * {
    animation: about-hero-in 0.7s var(--about-ease) both;
}

.about-hero .cr-eyebrow       { animation-delay: 0.05s; }
.about-hero h1                { animation-delay: 0.12s; }
.about-hero .cr-hero-description { animation-delay: 0.2s; }
.about-hero .cr-hero-points   { animation-delay: 0.28s; }
.about-hero .cr-hero-actions  { animation-delay: 0.36s; }
.about-hero .cr-trust         { animation-delay: 0.44s; }

@keyframes about-hero-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-hero .cr-orb { animation: none; }
    .about-hero .cr-hero-content > * {
        animation: none;
        opacity: 1;
        transform: none;
    }
}


/* Snapshot card */

.about-snapshot-card {
    position: relative;
    padding: 34px 30px;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow:
        0 4px 6px rgba(15, 23, 42, 0.03),
        0 18px 40px rgba(22, 118, 187, 0.1);
    overflow: hidden;
    animation: about-hero-in 0.75s var(--about-ease) 0.25s both;
    transition:
        transform 0.35s var(--about-ease),
        box-shadow 0.35s var(--about-ease),
        border-color 0.35s ease;
}

.about-snapshot-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 16px rgba(15, 23, 42, 0.04),
        0 28px 55px rgba(22, 118, 187, 0.16);
    border-color: color-mix(in srgb, var(--cr-blue) 35%, var(--cr-border));
}

.about-snapshot-card .cr-card-glow {
    opacity: 0.65;
    transition: opacity 0.4s ease;
}

.about-snapshot-card:hover .cr-card-glow {
    opacity: 1;
}

.about-snapshot-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--cr-blue-light);
    color: var(--cr-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.about-snapshot-card h2 {
    font-size: 22px;
    margin: 0 0 20px;
    color: var(--cr-text);
}

.about-snapshot-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.about-snapshot-list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--cr-border);
    transition: border-color 0.25s ease;
}

.about-snapshot-list > div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-snapshot-list span {
    font-size: 13px;
    color: var(--cr-text-soft);
}

.about-snapshot-list strong {
    font-size: 13.5px;
    color: var(--cr-text);
    text-align: right;
}

.about-snapshot-cta {
    width: 100%;
    justify-content: center;
    transition: transform 0.25s var(--about-ease), box-shadow 0.25s ease;
}

.about-snapshot-cta:hover {
    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   OUR JOURNEY — scroll-linked horizontal slide
--------------------------------------------------------- */

.about-journey {
    padding: 60px 0 20px;
}

.about-journey .cr-section-heading em {
    color: var(--cr-blue-dark);
    font-style: normal;
    font-weight: 600;
}

.about-journey-pin-wrap {
    position: relative;
    /* height set by JS to match exact scroll distance */
    height: calc(100vh + 900px);
}

.about-journey-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Soft edge fade so cards don’t hard-clip */
.about-journey-sticky::before,
.about-journey-sticky::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 72px;
    z-index: 2;
    pointer-events: none;
}

.about-journey-sticky::before {
    left: 0;
    background: linear-gradient(to right, var(--cr-bg, #fff) 0%, transparent 100%);
}

.about-journey-sticky::after {
    right: 0;
    background: linear-gradient(to left, var(--cr-bg, #fff) 0%, transparent 100%);
}

.about-journey-progress {
    width: min(560px, 70vw);
    height: 4px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--cr-border);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.about-journey-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cr-blue), var(--cr-blue-dark));
    box-shadow: 0 0 12px color-mix(in srgb, var(--cr-blue) 50%, transparent);
    transition: width 0.06s linear;
}

.about-journey-counter {
    margin-bottom: 34px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--cr-muted);
    font-variant-numeric: tabular-nums;
    transition: color 0.25s ease;
}

.about-journey-track {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 var(--cr-gutter, 20px);
    width: 70%;
    will-change: transform;
}

.about-journey-item {
    flex: 0 0 auto;
    width: 280px;
    padding: 24px 22px;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow);
    position: relative;
    transform: scale(0.88) translateY(8px);
    opacity: 0.42;
    filter: saturate(0.65);
    transition:
        transform 0.4s var(--about-ease-out),
        opacity 0.4s var(--about-ease-out),
        filter 0.4s var(--about-ease-out),
        box-shadow 0.4s var(--about-ease-out),
        border-color 0.35s ease;
    will-change: transform, opacity;
}

.about-journey-item.is-active {
    transform: scale(1.07) translateY(-8px);
    opacity: 1;
    filter: saturate(1);
    border-color: var(--cr-blue);
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.04),
        0 24px 50px rgba(22, 118, 187, 0.2);
}

/* Neighbor cards slightly elevated for depth */
.about-journey-item.is-near {
    opacity: 0.72;
    filter: saturate(0.85);
    transform: scale(0.94) translateY(2px);
}

.about-journey-item::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cr-border);
    box-shadow: 0 0 0 4px var(--cr-bg-soft, #f8fafc);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s var(--about-ease);
}

.about-journey-item.is-active::before {
    background: var(--cr-blue);
    box-shadow:
        0 0 0 4px var(--cr-blue-light),
        0 0 0 8px color-mix(in srgb, var(--cr-blue) 18%, transparent);
    transform: scale(1.15);
}

.about-journey-date {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: var(--cr-blue-dark);
    margin-bottom: 10px;
}

.about-journey-item h3 {
    font-size: 17px;
    color: var(--cr-text);
    margin: 0 0 8px;
}

.about-journey-item p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--cr-text-soft);
    margin: 0;
}

.about-journey-note {
    max-width: var(--cr-container-width, 1180px);
    margin: 18px auto 0;
    padding: 0 20px;
    font-size: 12px;
    font-style: italic;
    color: var(--cr-muted);
    text-align: center;
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
    .about-journey-pin-wrap {
        height: auto !important;
    }

    .about-journey-sticky {
        position: static;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 12px;
    }

    .about-journey-sticky::before,
    .about-journey-sticky::after,
    .about-journey-progress,
    .about-journey-counter {
        display: none;
    }

    .about-journey-track {
        transform: none !important;
    }

    .about-journey-item,
    .about-journey-item.is-active,
    .about-journey-item.is-near {
        scroll-snap-align: start;
        width: 240px;
        transform: none;
        opacity: 1;
        filter: none;
    }
}


/* ---------------------------------------------------------
   HORIZONTAL AUTO-SCROLLING PHOTO STRIP
--------------------------------------------------------- */

.about-gallery {
    padding: 8px 0 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 60px,
        #000 calc(100% - 60px),
        transparent 100%
    );
}

.about-gallery-track {
    width: 100%;
    overflow: hidden;
}

.about-gallery-track-inner {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: about-marquee 32s linear infinite;
}

.about-gallery-track:hover .about-gallery-track-inner {
    animation-play-state: paused;
}

.about-gallery-item {
    flex: 0 0 auto;
    width: 220px;
    margin: 0;
}

.about-gallery-photo {
    width: 220px;
    height: 150px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cr-blue-light), var(--cr-bg-soft));
    border: 1px solid var(--cr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    overflow: hidden;
    transition: transform 0.35s var(--about-ease), box-shadow 0.35s ease;
}

.about-gallery-item:hover .about-gallery-photo {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(22, 118, 187, 0.15);
}

.about-gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-gallery-item figcaption {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cr-text-soft);
    text-align: center;
}

@keyframes about-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .about-gallery-track-inner {
        animation: none;
    }
}

@media (max-width: 560px) {
    .about-gallery-item,
    .about-gallery-photo {
        width: 170px;
    }
    .about-gallery-photo {
        height: 115px;
    }
}


/* ---------------------------------------------------------
   QUICK FACTS STRIP
--------------------------------------------------------- */

.about-facts {
    padding: 34px 0;
    border-top: 1px solid var(--cr-border);
    border-bottom: 1px solid var(--cr-border);
    background: var(--cr-bg-soft);
}

.about-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-fact {
    text-align: center;
    padding: 8px 4px;
    border-radius: 12px;
    transition: background 0.3s ease, transform 0.3s var(--about-ease);
}

.about-fact:hover {
    background: color-mix(in srgb, var(--cr-blue) 6%, transparent);
    transform: translateY(-2px);
}

.about-fact span {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--cr-blue);
    margin-bottom: 8px;
}

.about-fact strong {
    display: block;
    font-size: 17px;
    color: var(--cr-text);
    margin-bottom: 4px;
}

.about-fact small {
    font-size: 12.5px;
    color: var(--cr-muted);
}


/* ---------------------------------------------------------
   ABOUT SPLIT + FEATURE LIST
--------------------------------------------------------- */

.about-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 60px;
    align-items: start;
}

.about-feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 26px 0 28px;
}

.about-feature-list > div {
    padding: 16px 18px;
    background: var(--cr-bg-soft);
    border: 1px solid var(--cr-border);
    border-radius: 12px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s var(--about-ease);
}

.about-feature-list > div:hover {
    border-color: color-mix(in srgb, var(--cr-blue) 40%, var(--cr-border));
    box-shadow: 0 8px 24px rgba(22, 118, 187, 0.08);
    transform: translateX(4px);
}

.about-feature-list strong {
    display: block;
    font-size: 14.5px;
    color: var(--cr-text);
    margin-bottom: 4px;
}

.about-feature-list small {
    font-size: 13px;
    color: var(--cr-text-soft);
    line-height: 1.5;
}


/* ---------------------------------------------------------
   STATS CARD
--------------------------------------------------------- */

.about-stats-card {
    padding: 30px 26px;
    background: linear-gradient(145deg, var(--cr-text) 0%, #0f172a 100%);
    border-radius: var(--cr-radius);
    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.15),
        0 24px 48px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.about-stats-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--cr-blue) 35%, transparent) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.about-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
}

.about-stat:first-child {
    padding-top: 0;
}

.about-stat:last-of-type {
    border-bottom: none;
}

.about-stat strong {
    font-size: 26px;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.about-stat span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.65);
}

.about-stats-note {
    margin: 16px 0 0;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    position: relative;
    z-index: 1;
}


/* ---------------------------------------------------------
   MISSION / VISION CARDS
--------------------------------------------------------- */

.about-mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-mv-card {
    padding: 32px 28px;
    background: var(--cr-white);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    box-shadow: var(--cr-shadow);
    transition:
        transform 0.35s var(--about-ease),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.about-mv-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--cr-blue) 35%, var(--cr-border));
    box-shadow:
        0 8px 16px rgba(15, 23, 42, 0.04),
        0 28px 50px rgba(22, 118, 187, 0.12);
}

.about-mv-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--cr-blue-light);
    color: var(--cr-blue-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    margin-bottom: 16px;
}

.about-mv-card h3 {
    font-size: 20px;
    color: var(--cr-text);
    margin: 0 0 12px;
}

.about-mv-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--cr-text-soft);
    margin: 0;
}


/* ---------------------------------------------------------
   WHY / SERVICE / PROCESS — light polish on shared components
--------------------------------------------------------- */

.about-page .cr-why-card {
    transition:
        transform 0.35s var(--about-ease),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
}

.about-page .cr-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(22, 118, 187, 0.12);
}

.about-page .cr-service {
    transition:
        transform 0.3s var(--about-ease),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    text-decoration: none;
}

.about-page .cr-service:hover {
    transform: translateY(-4px);
}

.about-page .cr-process-step {
    transition: transform 0.3s var(--about-ease);
}

.about-page .cr-process-step:hover {
    transform: translateY(-3px);
}

.about-page .cr-process-step:hover .cr-step-number {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--cr-blue) 15%, transparent);
}


/* ---------------------------------------------------------
   DARK MODE
--------------------------------------------------------- */

body.dark-mode .about-snapshot-card {
    background: var(--cr-white);
    border-color: var(--cr-border);
}

body.dark-mode .about-journey-sticky::before {
    background: linear-gradient(to right, var(--cr-bg, #0b1220) 0%, transparent 100%);
}

body.dark-mode .about-journey-sticky::after {
    background: linear-gradient(to left, var(--cr-bg, #0b1220) 0%, transparent 100%);
}

body.dark-mode .about-journey-item {
    background: var(--cr-white);
}

body.dark-mode .about-stats-card {
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
}

body.dark-mode .about-fact:hover {
    background: color-mix(in srgb, var(--cr-blue) 12%, transparent);
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 980px) {
    .about-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }

    .about-split-grid {
        grid-template-columns: 1fr;
    }

    .about-mv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .about-facts-grid {
        grid-template-columns: 1fr;
    }

    .about-snapshot-card {
        padding: 26px 22px;
    }
}