/* =========================================================
   About page
   ========================================================= */

/* ---------- Hero ---------- */
.about-hero { padding-bottom: 24px; }
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center; }
.about-hero h1 { font-size: clamp(38px, 3.9vw, 62px); max-width: 19ch; }
.about-hero .hero-lead { margin-top: 18px; max-width: 52ch; }
.about-hero .hero-ctas { margin-top: 30px; }
.about-btn-outline { border: 1.5px solid var(--violet); color: var(--violet-600); background: rgba(255, 255, 255, .5); }
.about-btn-outline .icon { color: var(--violet); }
.about-hero-art { position: relative; margin: -40px -20px -30px 0; }
.about-hero-art img { width: 100%; max-width: 760px; height: auto; margin-left: auto; filter: drop-shadow(0 40px 60px rgba(124, 58, 237, .18)); animation: float 9s ease-in-out infinite; }

/* ---------- Stats ---------- */
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.about-stats li { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: 22px; background: rgba(255, 255, 255, .5); }
.about-stats img { flex: none; width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(124, 58, 237, .25)); }
.about-stats p { min-width: 0; padding-left: 20px; border-left: 1px solid rgba(124, 58, 237, .25); }
.about-stats strong { display: block; font-family: var(--font-head); font-size: clamp(34px, 3vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--ink); }
.about-stats span { display: block; margin-top: 4px; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.3; color: var(--ink); }

/* ---------- Shared section headings ---------- */
.about-h2 { font-size: clamp(30px, 3vw, 48px); }

/* ---------- Story + timeline ---------- */
.about-story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 3fr); gap: 28px; align-items: center; margin-top: 24px; }
.about-story-text { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: #1E293B; }
.about-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; }
.about-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 16px 22px; border-radius: 22px; background: rgba(255, 255, 255, .5); text-align: center; }
.about-timeline li + li::before { /* dotted connector between steps */
    content: ""; position: absolute; left: -40px; top: 50%; width: 36px; height: 0;
    border-top: 4px dotted var(--violet); opacity: .8;
}
.about-timeline img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(124, 58, 237, .25)); }
.about-timeline div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.about-tag { display: inline-block; padding: 5px 18px; border-radius: 999px; background: linear-gradient(135deg, #8B5CF6, #6D28D9); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px; line-height: 1.2; box-shadow: 0 8px 18px -8px rgba(124, 58, 237, .7); }
.about-timeline p { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.3; color: var(--ink); }

/* ---------- What to expect ---------- */
.about-expect { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.about-expect .build-card { gap: 22px; padding: 18px 26px; }
.about-expect .build-card img { width: 104px; height: 104px; }
.about-expect .build-card > div { padding-left: 22px; border-left: 1px solid rgba(124, 58, 237, .25); }

/* ---------- Services strip ---------- */
.about-svc { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.about-svc a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 150px; padding: 14px 10px; border-radius: 20px; background: rgba(255, 255, 255, .5); text-align: center; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.15; transition: transform .2s ease, box-shadow .2s ease; }
.about-svc a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--violet); }
.about-svc img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(124, 58, 237, .22)); }
.about-svc-bar { display: none; }

/* ---------- Offices ---------- */
.about-offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.about-office { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.75fr); gap: 18px; align-items: center; padding: 14px 22px 14px 14px; border-radius: 24px; background: rgba(255, 255, 255, .5); }
.about-office-map { width: 100%; height: 100%; max-height: 160px; min-height: 120px; object-fit: cover; border-radius: 16px; }
.about-office-building { width: 100%; max-width: 140px; justify-self: center; filter: drop-shadow(0 14px 20px rgba(124, 58, 237, .25)); }
.about-office .office-info { gap: 10px; padding-left: 20px; border-left: 1px solid rgba(124, 58, 237, .25); }
.about-office .office-info h3 { font-size: clamp(19px, 1.5vw, 23px); }
.about-office .office-info .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Medium laptops ---------- */
@media (max-width: 1280px) {
    .about-story { grid-template-columns: minmax(0, 1fr); }
    .about-story-text { max-width: 70ch; }
    .about-svc { gap: 10px; }
    .about-svc img { width: 76px; height: 76px; }
    .about-office { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
    .about-office-building { display: none; }
}

@media (max-width: 1200px) {
    .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-expect { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-offices { grid-template-columns: minmax(0, 1fr); }
    .about-office { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr) minmax(0, 2fr); }
    .about-office-building { display: block; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .about-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .about-hero h1 { max-width: 18ch; }
    .about-hero-art { margin: 0 auto; width: 100%; max-width: 620px; }
    .about-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .about-timeline li + li::before { content: none; }
    .about-svc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
    .about-hero { padding-bottom: 8px; }
    .about-hero .crumbs li:nth-child(2) { display: inline-flex; }
    .about-hero h1 { font-size: clamp(32px, 9.4vw, 42px); }
    .about-hero-art { margin: 8px -8px -6px; width: auto; }

    .about-stats { gap: 10px; margin-top: 18px; }
    .about-stats li { gap: 10px; padding: 14px 12px; border-radius: 18px; }
    .about-stats img { width: 52px; height: 52px; }
    .about-stats p { padding-left: 0; border-left: 0; }
    .about-stats strong { font-size: 28px; }
    .about-stats span { font-size: 13.5px; }

    .about-h2 { font-size: clamp(26px, 7.6vw, 32px); }
    .about-story { gap: 18px; margin-top: 14px; }
    .about-story-text { font-size: 15.5px; }

    /* Timeline: vertical with dots */
    .about-timeline { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-left: 30px; position: relative; }
    .about-timeline::before { content: ""; position: absolute; left: 8px; top: 28px; bottom: 28px; border-left: 2px dotted var(--violet); }
    .about-timeline li { flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px; text-align: left; border-radius: 16px; }
    .about-timeline li::after { content: ""; position: absolute; left: -29px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--violet); }
    .about-timeline img { width: 88px; height: 72px; flex: none; }
    .about-timeline div { align-items: flex-start; gap: 4px; }
    .about-tag { font-size: 15px; padding: 3px 12px; }
    .about-timeline p { font-size: 15px; }

    /* Expect: two per row, titles only */
    .about-expect { gap: 10px; margin-top: 16px; }
    .about-expect .build-card { gap: 10px; padding: 12px; border-radius: 16px; }
    .about-expect .build-card img { width: 52px; height: 52px; }
    .about-expect .build-card > div { padding-left: 0; border-left: 0; }
    .about-expect .build-card h3 { margin: 0; font-size: 15px; line-height: 1.2; }
    .about-expect .build-card p { display: none; }

    /* Services: swipe row with a progress bar */
    .about-svc { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px -16px 0; padding: 4px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; }
    .about-svc::-webkit-scrollbar { display: none; }
    .about-svc li { flex: 0 0 27%; scroll-snap-align: start; }
    .about-svc a { min-height: 124px; padding: 10px 6px; font-size: 14px; border-radius: 16px; }
    .about-svc img { width: 60px; height: 60px; }
    .about-svc-bar { display: block; height: 4px; margin: 6px 0 0; border-radius: 4px; background: rgba(124, 58, 237, .15); overflow: hidden; }
    .about-svc-bar span { display: block; height: 100%; width: 30%; border-radius: 4px; background: var(--grad); }

    /* Offices: map, building, details */
    .about-offices { gap: 12px; margin-top: 16px; }
    .about-office { grid-template-columns: 82px 64px minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 18px; }
    .about-office-map { min-height: 110px; max-height: 130px; border-radius: 12px; }
    .about-office .office-info { gap: 6px; padding-left: 0; border-left: 0; }
    .about-office .office-info h3 { font-size: 16.5px; }
    .about-office .office-info address { gap: 6px; font-size: 13px; }
    .about-office .office-info .icon { width: 16px; height: 16px; }
    .about-office .office-info .btn { align-self: stretch; padding: 10px 12px; font-size: 14px; }
}

@media (max-width: 400px) {
    .about-office { grid-template-columns: 84px minmax(0, 1fr); }
    .about-office-building { display: none; }
}
