/* ══════════════════════
   SCROLL ANIMATIONS
══════════════════════ */
[data-anim] {
    opacity: 0;
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(150ms + var(--delay, 0ms));
}

[data-anim="fade-up"]    { transform: translateY(48px); }
[data-anim="fade-left"]  { transform: translateX(56px); }
[data-anim="fade-right"] { transform: translateX(-56px); }
[data-anim="fade-in"]    { transform: scale(0.95); }

[data-anim].in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ===== About Page ===== */

.about-page {
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Glow blobs ── */
.ap-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
}

.ap-glow--tl {
    top: -100px; left: -120px;
    width: 580px; height: 580px;
    background: radial-gradient(circle, rgba(0,168,150,0.08) 0%, transparent 65%);
}

.ap-glow--br {
    bottom: -80px; right: -100px;
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(0,168,150,0.06) 0%, transparent 65%);
}

/* ── Watermark ── */
.ap-watermark {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(60px, 14vw, 180px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: rgba(0,0,0,0.06);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* ── Header ── */
.ap-header {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ap-tag {
    display: inline-block;
    border: 1px solid rgba(0,168,150,0.4);
    color: #00A896;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(0,168,150,0.06);
}

.ap-title {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ap-sub {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    max-width: 560px;
}

/* ══════════════════════
   PHOTO MOSAIC
══════════════════════ */
.ap-mosaic {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1160px;
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 14px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
}

.ap-mosaic-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ap-mosaic-row--1 { transform: translateX(28px); }
.ap-mosaic-row--2 { transform: translateX(-20px); }

.ap-photo {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
    transform: rotate(var(--r, 0deg));
    flex-shrink: 0;
    background: #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ap-photo:hover {
    transform: rotate(0deg) scale(1.04);
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
    z-index: 5;
}

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

.ap-photo--sm  { width: 140px; height: 100px; }
.ap-photo--md  { width: 180px; height: 130px; }
.ap-photo--lg  { width: 230px; height: 160px; }

@media (max-width: 860px) {
    .ap-photo--sm  { width: 100px; height: 72px; }
    .ap-photo--md  { width: 130px; height: 94px; }
    .ap-photo--lg  { width: 160px; height: 116px; }
    .ap-mosaic-row { gap: 10px; }
    .ap-mosaic { gap: 10px; }
}

@media (max-width: 560px) {
    .ap-mosaic-row--2 { display: none; }
    .ap-mosaic-row--1 { transform: none; flex-wrap: wrap; justify-content: center; }
    .ap-photo--sm  { width: 90px;  height: 66px; }
    .ap-photo--md  { width: 110px; height: 80px; }
    .ap-photo--lg  { width: 140px; height: 100px; }
}

/* ══════════════════════
   SUPPORTED BY
══════════════════════ */
.ap-supported {
    width: 100%;
    background: #f8fafc;
    padding: 3.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.ap-supported-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ap-supported-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
    max-width: 1100px;
    width: 100%;
}

.ap-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.ap-logo-item:hover {
    opacity: 1;
}

.ap-logo-item img {
    height: 36px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

/* Fallback text shown when image fails to load */
.ap-logo-item span {
    display: none;
}

.ap-logo-item.ap-logo-text img {
    display: none;
}

.ap-logo-item.ap-logo-text span {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .ap-supported-logos {
        gap: 32px;
    }

    .ap-logo-item img {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .ap-supported-logos {
        gap: 24px;
    }
}


/* ══════════════════════
   MISSION SECTION
══════════════════════ */
.ap-mission {
    width: 100%;
    background: #f8fafc;
    padding: 0;
    overflow: hidden;
}

.ap-mission-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
}

/* ── Left panel ── */
.ap-mission-left {
    background: #f8fafc;
    padding: 5rem 4rem 5rem 5rem;
    position: relative;
    display: flex;
    align-items: center;
    border-right: 1px solid #e2e8f0;
}

.ap-mission-left-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ap-section-tag {
    display: inline-block;
    border: 1px solid rgba(0,168,150,0.4);
    color: #00A896;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    background: rgba(0,168,150,0.06);
    margin-bottom: 1.4rem;
    width: fit-content;
}

.ap-mission-title {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 1.5rem;
}

.ap-mission-body {
    font-size: 0.925rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 0.85rem;
}

/* Quote */
.ap-mission-quote {
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-quote-mark {
    width: 28px;
    height: auto;
    color: #00A896;
    opacity: 0.6;
    flex-shrink: 0;
}

.ap-mission-quote p {
    font-size: 1.05rem;
    font-style: italic;
    color: #0f172a;
    line-height: 1.65;
    font-weight: 500;
}

.ap-mission-quote em {
    font-style: normal;
    color: #00A896;
    font-weight: 700;
}

.ap-quote-author {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ── Right cards ── */
.ap-mission-right {
    background: #f8fafc;
    padding: 4rem 4rem 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.ap-mission-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
    overflow: hidden;
}

.ap-mission-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.25s;
}

.ap-mission-card--vision::before  { background: #00A896; }
.ap-mission-card--purpose::before { background: #6366f1; }
.ap-mission-card--promise::before { background: #f59e0b; }

.ap-mission-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    transform: translateX(4px);
    border-color: transparent;
}

.ap-mission-card:hover::before {
    opacity: 1;
}

.ap-mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.ap-mc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ap-mc-icon svg {
    width: 18px;
    height: 18px;
}

.ap-mission-card--vision  .ap-mc-icon { background: rgba(0,168,150,0.08); }
.ap-mission-card--purpose .ap-mc-icon { background: rgba(99,102,241,0.08); }
.ap-mission-card--promise .ap-mc-icon { background: rgba(245,158,11,0.08); }

.ap-mission-card--vision  .ap-mc-icon svg { stroke: #00A896; }
.ap-mission-card--purpose .ap-mc-icon svg { stroke: #6366f1; }
.ap-mission-card--promise .ap-mc-icon svg { stroke: #f59e0b; }

.ap-mc-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(0,0,0,0.04);
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.ap-mission-card h3 {
    font-size: 0.975rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.ap-mission-card p {
    font-size: 0.855rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ── Mission Responsive ── */
@media (max-width: 960px) {
    .ap-mission-inner {
        grid-template-columns: 1fr;
    }
    .ap-mission-left {
        padding: 4rem 2.5rem;
    }
    .ap-mission-right {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 600px) {
    .about-page { padding: 5rem 1.25rem 4rem; }
    .ap-title { font-size: 2rem; }
    .ap-watermark { font-size: 18vw; top: 8%; }
    .ap-mission-left { padding: 3rem 1.5rem; }
    .ap-mission-right { padding: 2.5rem 1.5rem; }
    .ap-mission-card { padding: 20px; }
}

/* ══════════════════════
   OUR VALUES
══════════════════════ */
.ap-values {
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 7rem 2rem;
}

.ap-values-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
    align-items: center;
}

/* Left text */
.ap-values-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ap-values-heading {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ap-values-sub {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.75;
    max-width: 280px;
}

/* 2x2 grid */
.ap-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Card base */
.ap-val-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.22s, transform 0.22s;
    cursor: default;
}

.ap-val-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

/* Active/highlighted card */
.ap-val-card--active {
    background: #00A896;
    border-color: #00A896;
}

.ap-val-card--active:hover {
    box-shadow: 0 12px 36px rgba(0,168,150,0.35);
}

/* Icon */
.ap-val-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ap-val-card--active .ap-val-icon {
    background: rgba(255,255,255,0.2);
}

.ap-val-icon svg {
    width: 20px;
    height: 20px;
    stroke: #475569;
}

.ap-val-card--active .ap-val-icon svg {
    stroke: #ffffff;
}

/* Description */
.ap-val-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.65;
    flex: 1;
}

.ap-val-card--active .ap-val-desc {
    color: rgba(255,255,255,0.85);
}

/* Divider line */
.ap-val-divider {
    height: 1px;
    background: #e2e8f0;
    width: 40px;
}

.ap-val-card--active .ap-val-divider {
    background: rgba(255,255,255,0.35);
}

/* Value name */
.ap-val-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.ap-val-card--active .ap-val-name {
    color: #ffffff;
}

/* ══════════════════════
   CTA SECTION
══════════════════════ */
.ap-cta-wrap {
    width: 100%;
    background: #ffffff;
    padding: 3rem 2rem 5rem;
}

.ap-cta {
    max-width: 1100px;
    margin: 0 auto;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.8rem 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

/* Glow blobs */
.ap-cta-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}
.ap-cta-glow--l {
    width: 280px; height: 280px;
    top: -100px; left: -60px;
    background: radial-gradient(circle, rgba(0,168,150,0.08) 0%, transparent 70%);
}
.ap-cta-glow--r {
    width: 240px; height: 240px;
    bottom: -100px; right: -40px;
    background: radial-gradient(circle, rgba(0,168,150,0.06) 0%, transparent 70%);
}

/* Left content */
.ap-cta-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
    flex: 1;
}

/* Badge */
.ap-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,168,150,0.08);
    border: 1px solid rgba(0,168,150,0.25);
    color: #00A896;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    width: fit-content;
}

.ap-cta-badge svg {
    width: 6px; height: 6px;
    animation: ap-pulse 2s ease-in-out infinite;
}

@keyframes ap-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.75); }
}

/* Heading */
.ap-cta-heading {
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.ap-cta-heading em {
    font-style: normal;
    color: #00A896;
}

/* Sub */
.ap-cta-sub {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.65;
    max-width: 480px;
}

/* Buttons */
.ap-cta-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ap-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.22s;
    white-space: nowrap;
}

.ap-cta-btn--primary {
    background: #00A896;
    color: #ffffff;
    border: 2px solid #00A896;
}
.ap-cta-btn--primary:hover {
    background: #008a7c;
    border-color: #008a7c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,168,150,0.3);
}

.ap-cta-btn--ghost {
    background: transparent;
    color: #475569;
    border: 2px solid #e2e8f0;
}
.ap-cta-btn--ghost:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .ap-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.2rem 2rem;
    }
    .ap-cta-wrap { padding: 2rem 1.25rem 4rem; }
}

/* Values Responsive */
@media (max-width: 900px) {
    .ap-values-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ap-values-heading { font-size: 2.8rem; }
    .ap-values-sub { max-width: 100%; }
}

@media (max-width: 520px) {
    .ap-values-grid {
        grid-template-columns: 1fr;
    }
    .ap-values { padding: 5rem 1.5rem; }
}
