/* ============================================================
   About Page — Reference Design Replica
   Style: Clean editorial · Card-based · Brand red + Teal accents
   Layout: Hero 2col → Story 3col → Values 5col → Process 8step flow
   ============================================================ */

.about-page {
    background: #fff;
    color: #1a202c;
}

/* Override global body::before blueprint grid from style.css — not needed on About */
.about-page::before,
body.about-page::before {
    display: none !important;
}

/* ---------- shared label ---------- */
.ab-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e53e3e;
}
.ab-label::after {
    content: '';
    width: 28px;
    height: 2.5px;
    background: #e53e3e;
    border-radius: 2px;
}
.ab-label--sm { font-size: 11px; }
.ab-label--sm::after { width: 20px; }

/* ---------- section header ---------- */
.ab-section-head {
    text-align: center;
    margin-bottom: 48px;
}
.ab-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #1a202c;
    margin: 14px 0 0;
}


/* =====================================================
   HERO SECTION — Reference UI replica
   Left: label + title + desc + 2×2 stats + red CTA
   Right: factory + robot illustration
   ===================================================== */
.ab-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    overflow-x: clip;
}

.ab-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

/* --- left text --- */
.ab-hero-text {
    padding-right: 20px;
}

.ab-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(34px, 4.6vw, 48px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #1a202c;
    margin: 16px 0 20px;
}

.ab-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 32px;
    max-width: 460px;
}

/* --- 2×2 stats grid --- */
.ab-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
    margin-bottom: 34px;
    max-width: 420px;
}

.ab-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ab-stat-ico {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ab-stat-ico svg {
    width: 22px;
    height: 22px;
}

.si-red { background: #fef2f2; color: #e84954; }
.si-green { background: #ecfdf5; color: #10b981; }

.ab-stat-text strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    color: #1a202c;
}

.ab-stat-text span {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    color: #94a3b8;
    margin-top: 2px;
}

/* --- red CTA button --- */
.ab-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    background: #e84954;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 8px 20px rgba(232, 73, 84, 0.30);
}

.ab-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 73, 84, 0.38);
}

.ab-hero-btn-arrow {
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.ab-hero-btn:hover .ab-hero-btn-arrow {
    transform: translateX(4px);
}

/* --- right visual --- */
.ab-hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 460px;
}

.ab-hero-img {
    width: 100%;
    max-width: 640px;
    height: auto;
    object-fit: contain;
}


/* =====================================================
   STORY SECTION — three zones
   ===================================================== */
.ab-story {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    overflow-x: clip;   /* contain story column slide-in offsets */
}
.ab-story-grid {
    display: grid;
    grid-template-columns: 300px 1fr 260px;
    gap: 32px;
    align-items: start;
    perspective: 1400px;        /* enables 3D rotateY reveal on story columns */
}

/* --- location card (left) --- */
.ab-story-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(145deg, #f0fdf4, #dcfce7, #bbf7d0);
    display: flex;
    align-items: flex-end;
}
.ab-story-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ab-story-fallback {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0fdf4, #ecfdf5);
}
.ab-story-fallback svg { width: 64px; height: 64px; }

.ab-location-badge {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px;
    padding: 12px 18px;
    background: #ef4444;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}
.ab-location-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.ab-location-badge strong {
    font-weight: 700;
}

/* --- story body (center) --- */
.ab-story-body {
    padding: 8px 12px 0;
}
.ab-story-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #1a202c;
    margin: 14px 0 18px;
}
.ab-story-body p {
    font-size: 15px;
    line-height: 1.78;
    color: #4a5568;
    margin: 0;
}

/* --- feature sidebar (right) --- */
.ab-story-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fafbfc;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 24px 20px;
}
.sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}
.sidebar-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-ico svg { width: 18px; height: 18px; }
.si-red   { background: #fef2f2; color: #ef4444; }
.si-green { background: #ecfdf5; color: #10b981; }

.sidebar-item b {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2px;
}
.sidebar-item span {
    display: block;
    font-size: 12.5px;
    line-height: 1.45;
    color: #718096;
}


/* =====================================================
   CORE VALUES — Poker card stack / deal animation
   Default: fanned-out row. Initial-load: stacked deck.
   GSAP deals them into place on scroll.
   ===================================================== */
.ab-values {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 40px 90px;
    overflow-x: clip;   /* clip the -20px dot decoration; keep vertical hover lift visible */
}

/* Subtle dot pattern on right side (like reference) */
.ab-values::before {
    content: '';
    position: absolute;
    right: -20px;
    top: 10%;
    bottom: 10%;
    width: 120px;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #cbd5e1 1.1px, transparent 1.2px);
    background-size: 18px 18px;
    opacity: .3;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}

/* ---- Card deck container ---- */
.ab-values-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    position: relative;
    min-height: 400px;        /* reserve space for the stack */
    perspective: 1200px;      /* 3D depth for rotation effects */
}

/* ---- Individual value card ---- */
.ab-val-card {
    text-align: center;
    padding: 36px 16px 32px;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    flex: 1;
    max-width: 220px;
    min-width: 0;
    transition: box-shadow .35s cubic-bezier(.22,1,.36,1),
                border-color .35s ease;
    cursor: default;
    /* Initial state: set by JS/GSAP — stacked in center */
    opacity: 0;
    will-change: transform, opacity;
}
.ab-val-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.065), 0 8px 20px rgba(0,0,0,.04);
    border-color: #dddfe4;
}

/* Icon circle — larger, more prominent */
.ab-val-ico {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}
.ab-val-ico svg { width: 30px; height: 30px; }

/* Color variants for icon circles */
.av-green { background: linear-gradient(135deg, #f0fdf6, #dcfce7); color: #059669; }
.av-red   { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #dc2626; }
.av-teal  { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); color: #0d9488; }

/* Card title */
.ab-val-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 17px;
    font-weight: 650;
    color: #1a202c;
    margin: 0 0 12px;
    position: relative;
    display: inline-block;
}

/* Red underline accent under title (Quality & Collaboration) */
.ab-val-line {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -4px;
    width: 24px;
    height: 2.5px;
    background: #ef4444;
    border-radius: 2px;
}

/* Description text */
.ab-val-card p {
    font-size: 13.2px;
    line-height: 1.68;
    color: #7a8599;
    margin: 0;
}

/* Learn more link */
.ab-val-link {
    text-align: center;
    margin-top: 36px;
}
.ab-more-btn {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 600;
    color: #e53e3e;
    text-decoration: none;
    border-bottom: 1.5px solid #fecaca;
    padding-bottom: 3px;
    transition: border-color .25s;
}
.ab-more-btn:hover { border-color: #e53e3e; }


/* =====================================================
   PROCESS — 7-step horizontal flow (matching reference)
   ===================================================== */
.ab-process {
    max-width: 1240px;
    margin: 0 auto;
    padding: 50px 40px 110px;
    overflow-x: clip;   /* contain step slide-in; inner track still scrolls */
}
.ab-process-track {
    position: relative;
    overflow-x: auto;
    padding: 30px 0 56px;
    scrollbar-width: thin;
}
.ab-process-track::-webkit-scrollbar { height: 4px; }
.ab-process-track::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.ab-process-track::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Dashed connecting line — runs through icon centers */
.ab-process-line {
    position: absolute;
    top: 54px;           /* aligned with center of icon circle */
    left: 40px;
    right: 40px;
    height: 0;
    border-top: 2px dashed #d8dde6;
    z-index: 0;
}

.ab-process-list {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    gap: 0;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    min-width: 960px;
}

.ab-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 4px;
    position: relative;
}

/* Step number — small, above icon */
.ab-step-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

/* Icon circle with dashed outer ring */
.ab-step-ico {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    background: #fff;
}
/* Dashed outer ring around icon */
.ab-step-ico::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1.8px dashed #d8dde6;
    transition: border-color .3s ease;
}
.ab-step:hover .ab-step-ico::before {
    border-color: #b8c4d4;
}
.ab-step-ico svg { width: 24px; height: 24px; }

/* Color variants for process icons */
.as-green { background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: #059669; }
.as-red   { background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #dc2626; }
.as-teal  { background: linear-gradient(135deg, #f0fdfa, #ccfbf1); color: #0d9488; }

/* Step title */
.ab-step b {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.35;
}

/* Step description */
.ab-step span {
    display: block;
    font-size: 11.5px;
    line-height: 1.55;
    color: #94a3b8;
    max-width: 115px;
}


/* =====================================================
   SCROLL REVEAL (toggled by main.js)
   ===================================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .ab-robot-img { animation: none; }
    .od { animation: none; opacity: 1; transform: translate(-50%,-50%) scale(1); }
    .dot-map { animation: none; }
    /* No motion: show cards already dealt/expanded, no folded stack */
    .ab-val-card { opacity: 1 !important; transform: none !important; }
}


/* =====================================================
   BRAND ARCHITECTURE — Two Brands, One Supply Chain
   ===================================================== */
.ab-brand {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 40px 92px;
    overflow-x: clip;
}
.ab-brand-sub {
    max-width: 620px;
    margin: 16px auto 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
}

/* ---- two brand cards + center connector ---- */
.ab-brand-cards {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 44px;
}
.ab-brand-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s cubic-bezier(.22,1,.36,1), border-color .3s ease;
}
.ab-brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(15,23,42,.08);
}
.ab-brand-card.td { border-top: 4px solid #e84954; }
.ab-brand-card.hx { border-top: 4px solid #6366f1; }

.ab-brand-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.ab-brand-ico {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ab-brand-ico svg { width: 26px; height: 26px; }
.td-ico { background: #fef2f2; color: #e84954; }
.hx-ico { background: #eef2ff; color: #4f46e5; }

.ab-brand-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #94a3b8;
    text-transform: uppercase;
}
.ab-brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px;
    letter-spacing: -.01em;
}
.ab-brand-red { color: #e84954; }
.ab-brand-blue { color: #4f46e5; }

.ab-brand-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 22px;
}
.ab-brand-list {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ab-brand-list li {
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}
.ab-brand-list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 1px;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
.ab-brand-card.td .ab-brand-list li::before { background: #fef2f2; color: #e84954; }
.ab-brand-card.hx .ab-brand-list li::before { background: #eef2ff; color: #4f46e5; }

.ab-brand-link {
    align-self: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e8ecf1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-shrink: 0;
}
.ab-brand-link svg { width: 22px; height: 22px; }

/* ---- flow strip: customer → ToyDirect → Hatchx → delivery ---- */
.ab-brand-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    padding: 26px 24px;
}
.ab-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 96px;
}
.ab-flow-ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px solid #e8ecf1;
    color: #64748b;
    margin-bottom: 10px;
}
.ab-flow-ico svg { width: 22px; height: 22px; }
.ab-flow-ico.td { background: #fef2f2; color: #e84954; border-color: #fee2e2; }
.ab-flow-ico.hx { background: #eef2ff; color: #4f46e5; border-color: #e0e7ff; }
.ab-flow-node b { font-size: 15px; font-weight: 700; color: #1a202c; }
.ab-flow-node span { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.ab-flow-arrow { color: #cbd5e1; flex-shrink: 0; }
.ab-flow-arrow svg { width: 20px; height: 20px; }


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1080px) {
    .ab-values-grid { gap: 20px; }
    .ab-val-card { max-width: 190px; padding: 30px 14px 26px; }
    .ab-story-grid { grid-template-columns: 240px 1fr 220px; gap: 24px; }
}

@media (max-width: 900px) {
    .ab-hero { padding: 120px 28px 60px; }
    .ab-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .ab-hero-visual { order: -1; min-height: 320px; }
    .ab-hero-img { max-width: 420px; }
    .ab-desc { max-width: 520px; }
    .ab-stats { max-width: 440px; }

    .ab-story-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .ab-story-card { aspect-ratio: 16/10; order: -1; grid-column: span 2; max-height: 220px; }
    .ab-story-sidebar { flex-direction: row; flex-wrap: wrap; grid-column: span 2; }
    .sidebar-item { flex: 1; min-width: 180px; }

    .ab-values { padding: 64px 28px 72px; }
    .ab-values-grid { gap: 16px; min-height: 340px; flex-wrap: wrap; justify-content: center; }
    .ab-val-card { padding: 28px 14px 24px; max-width: 200px; flex: 0 1 calc(33% - 12px); }
    .ab-val-ico { width: 60px; height: 60px; margin-bottom: 16px; }

    .ab-process { padding: 40px 28px 90px; }
    .ab-process-list { min-width: 800px; }
}

@media (max-width: 640px) {
    .ab-hero { padding: 110px 20px 48px; }
    .ab-title { font-size: 30px; }
    .ab-stats { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
    .ab-stat-ico { width: 42px; height: 42px; }
    .ab-stat-ico svg { width: 20px; height: 20px; }
    .ab-stat-text strong { font-size: 19px; }
    .ab-stat-text span { font-size: 11.5px; }
    .ab-hero-btn { width: 100%; max-width: 320px; justify-content: center; }
    .ab-hero-visual { min-height: 260px; }
    .ab-hero-img { max-width: 100%; }

    .ab-story { padding: 40px 20px 56px; }
    .ab-story-grid { grid-template-columns: 1fr; }
    .ab-story-card { aspect-ratio: 2/1; grid-column: auto; max-height: none; }
    .ab-story-sidebar { grid-column: auto; flex-direction: column; }

    .ab-values { padding: 48px 20px 64px; }
    .ab-values-grid { gap: 14px; min-height: 300px; flex-wrap: wrap; }
    .ab-val-card { padding: 24px 14px 20px; flex: 0 1 calc(50% - 8px); max-width: none; }
    .ab-val-ico { width: 56px; height: 56px; margin-bottom: 14px; }
    .ab-val-ico svg { width: 26px; height: 26px; }

    .ab-process { padding: 32px 20px 72px; }
    .ab-process-list { min-width: 680px; padding: 0 8px; }
    .ab-step { padding: 0 2px; }
    .ab-step-ico { width: 44px; height: 44px; }
    .ab-step-ico::before { inset: -4px; }
    .ab-step-ico svg { width: 21px; height: 21px; }
    .ab-step b { font-size: 12.5px; }
    .ab-step span { font-size: 11px; }
}

/* Mobile swipe hint for the horizontal process flow */
.ab-process-hint { display: none; }
@media (max-width: 640px) {
    .ab-process-hint {
        display: block;
        text-align: center;
        margin: 2px 0 12px;
        font-size: 12px;
        letter-spacing: .05em;
        color: #94a3b8;
    }
}

/* ---- Brand architecture responsive ---- */
@media (max-width: 900px) {
    .ab-brand { padding: 20px 28px 64px; }
    .ab-brand-cards { grid-template-columns: 1fr; gap: 22px; }
    .ab-brand-link { transform: rotate(90deg); margin: -2px auto; }
}
@media (max-width: 640px) {
    .ab-brand { padding: 16px 20px 48px; }
    .ab-brand-cards { gap: 18px; }
    .ab-brand-card { padding: 28px 22px; }
    .ab-brand-flow { gap: 4px; padding: 22px 14px; }
    .ab-flow-node { min-width: 78px; }
    .ab-flow-arrow { display: none; }
}
