/* ===========================
   ABOUT PAGE — HERO
=========================== */
.ap-hero {
    padding: 8rem 0 7rem;
    background: #faf9f7;
    position: relative;
    overflow: hidden;
}

/* Spinning mandala — decorative, right side of hero */
.ap-mandala-wrap {
    position: absolute;
    right: -100px;
    top: 58%;
    transform: translateY(-50%);
    width: 580px;
    height: 580px;
    pointer-events: none;
}

.ap-mandala {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.13;
    animation: mandalaSpin 35s linear infinite;
}

@keyframes mandalaSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ap-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(3.2rem, 6vw, 5.8rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1c1c1e;
    margin: 1.4rem 0 2.2rem;
}

.ap-hero-title em {
    font-style: italic;
    font-weight: 300;
}

.ap-hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #8a8480;
    line-height: 1.85;
    max-width: 500px;
}

/* ===========================
   STATS BAR
=========================== */
.ap-stats {
    background: #EDE6D8;
    padding: 4.5rem 0;
}

/* Override the global section:not(#hero) { padding: 9rem 0 } for sections that need different rhythm */

.ap-stats-row {
    display: flex;
    align-items: center;
}

.ap-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ap-stat-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3.8rem;
    color: #1C1A16;
    line-height: 1;
    letter-spacing: -0.02em;
}

.ap-stat-lbl {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #B0A090;
}

.ap-stat-divider {
    width: 1px;
    height: 56px;
    background: #D4C9B8;
    margin: 0 3.5rem;
    flex-shrink: 0;
}

/* ===========================
   WHO WE ARE
=========================== */
.ap-who {
    background: #ffffff;
    padding: 9rem 0;
}

.ap-who-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

/* Remove default section-title bottom-margin in this grid context */
.ap-who-title {
    margin-bottom: 0;
}

.ap-who-right p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #6A6058;
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

.ap-who-right p:last-child {
    margin-bottom: 0;
}

.ap-who-right strong {
    color: #1C1A16;
    font-weight: 400;
}

/* ===========================
   SECTORS
=========================== */
.ap-sectors {
    background: #faf9f7;
    padding: 0;
    border-top: 1px solid #e8e2da;
}

.ap-sectors .section-label {
    padding: 5rem 0 2.5rem;
    /* Space for the label since section padding is 0 */
}

/* --- SECTORS LIST (SIDE-BY-SIDE + PARALLAX) --- */
.ap-sectors-list {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ap-sector-item {
    display: flex;
    align-items: stretch;
    /* Stretch to keep items height consistent */
    gap: 0;
    padding: 0;
    margin: 0;
}

.ap-sector-item.alt {
    flex-direction: row-reverse;
}

.ap-sector-content {
    flex: 3.5;
    padding: 0 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ap-sector-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    color: #1c1c1e;
    letter-spacing: -0.01em;
    line-height: 1.05;
}

.ap-sector-visual {
    flex: 6.5;
}

.ap-sector-img-box {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #f0ece6;
}

.ap-sector-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    align-items: flex-end;
    /* Position text at bottom-left */
    justify-content: flex-start;
    padding: 3.5rem;
    z-index: 5;
    pointer-events: none;
}

.ap-sector-img-overlay p {
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    line-height: 1.5;
    text-align: left;
    max-width: 520px;
    margin: 0;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.ap-sector-img-box img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    /* Taller for movement */
    object-fit: cover;
    will-change: transform;
}

@media (max-width: 900px) {
    .ap-sectors-list {
        gap: 0;
    }

    .ap-sector-item {
        padding: 4rem 0;
    }

    .ap-sector-item,
    .ap-sector-item.alt {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .ap-sector-visual {
        width: 100%;
    }

    .ap-sector-name {
        font-size: 2.8rem;
    }
}

/* ===========================
   PEOPLE / TEAM — ALTERNATING LAYOUT
=========================== */
.ap-people {
    background: #EDE6D8;
    padding: 7rem 0 0;
}

.ap-people .section-label {
    color: #B0A090;
}

.ap-people .section-title {
    color: #1C1A16;
    margin-bottom: 1.5rem;
}

.ap-people-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: #6A6058;
    line-height: 1.85;
    max-width: 600px;
    margin-bottom: 5rem;
}

/* ---- Team list ---- */
.ap-team-list {
    display: flex;
    flex-direction: column;
    /* Side breathing room — mirrors the container padding */
    padding: 0 3.5rem;
}

/* ---- Single member row ---- */
.ap-team-member {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    border-top: 1px solid #C9BEB0;
    /* scroll-reveal: hidden until JS fires */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.75s ease, transform 0.75s ease, background 0.35s ease;
}

.ap-team-member:last-child {
    border-bottom: 1px solid #C9BEB0;
}

.ap-team-member.ap-member-visible {
    opacity: 1;
    transform: translateY(0);
}

.ap-team-member:hover {
    background: rgba(180, 160, 130, 0.07);
}

/* Alt variant: photo left, text right — same grid, photo order swapped via order */
.ap-team-member.alt {
    grid-template-columns: 1fr 1fr;
}

/* ---- Text panel ---- */
.ap-team-text {
    padding: 5.5rem 5rem 5.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ap-team-member.alt .ap-team-text {
    padding: 5.5rem 2rem 5.5rem 5rem;
    order: 2;
}

/* Designation tag — small red uppercase label */
.ap-team-meta-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #b01c0a;
    margin-bottom: 1rem;
}

/* Large name */
.ap-team-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.6rem, 4vw, 3.8rem);
    color: #1C1A16;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin: 0 0 0.9rem;
}

/* Thin decorative rule under name */
.ap-team-name::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: #b01c0a;
    margin-top: 1.4rem;
    opacity: 0.7;
}

/* Detail rows: Key / Value table */
.ap-team-details {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    margin-top: 1.8rem;
}

.ap-team-detail-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.2rem;
    align-items: start;
    padding-bottom: 1.3rem;
    border-bottom: 1px solid rgba(176, 160, 144, 0.25);
}

.ap-team-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ap-detail-key {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.58rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #B0A090;
    padding-top: 0.2rem;
    flex-shrink: 0;
}

.ap-detail-val {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.83rem;
    color: #4A4038;
    line-height: 1.78;
}

/* ---- Photo panel ---- */
.ap-team-photo {
    height: 560px;
    overflow: hidden;
    position: relative;
    background: #C9BEB0;
}

.ap-team-member.alt .ap-team-photo {
    order: 1;
}

.ap-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.9s ease;
    filter: grayscale(5%);
}

.ap-team-member:hover .ap-team-photo img {
    transform: scale(1.05);
    filter: grayscale(0%);
}


/* ===========================
   PHILOSOPHY PULL QUOTE
=========================== */
.ap-quote {
    background: #111110;
    padding: 9rem 0;
}

.ap-pull-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    letter-spacing: -0.01em;
    margin: 0 0 2rem;
    max-width: 840px;
    border: none;
    padding: 0;
}

.ap-pull-cite {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
    font-style: normal;
}

/* ===========================
   STRENGTHS
=========================== */
.ap-strengths {
    background: #faf9f7;
    padding: 9rem 0;
}

.ap-strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.ap-strength-card {
    padding: 2.5rem 2.5rem 2.5rem 0;
    border-top: 1px solid #e8e2da;
    /* hidden until scroll-reveal fires */
    opacity: 0;
    transition: border-color 0.35s ease;
}

.ap-strength-card:nth-child(3n) {
    padding-right: 0;
}

/* Scroll reveal — class added by JS when section enters viewport */
.ap-strength-card.ap-strength-revealed {
    animation: strengthIn 0.6s ease forwards;
    animation-delay: calc(var(--si) * 90ms);
}

@keyframes strengthIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover — top border turns brand red, number and text warm up */
.ap-strength-card:hover {
    border-color: #b01c0a;
}

.ap-strength-num {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    color: #c8c0b4;
    margin-bottom: 1.2rem;
    transition: color 0.35s ease;
}

.ap-strength-card:hover .ap-strength-num {
    color: #b01c0a;
}

.ap-strength-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #1c1c1e;
    letter-spacing: 0.01em;
    margin-bottom: 0.8rem;
    transition: color 0.35s ease;
}

.ap-strength-card:hover h3 {
    color: #1C1A16;
}

.ap-strength-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #8a8480;
    line-height: 1.8;
    transition: color 0.35s ease;
}

.ap-strength-card:hover p {
    color: #6A6058;
}

/* ===========================
   VALUES & MISSION
=========================== */
.ap-values {
    background: #EDE6D8;
    padding: 9rem 0;
}

.ap-values-label {
    color: #B0A090;
}

.ap-values-display {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 0;
    margin: 0 0 5rem;
}

.ap-values-display span {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3.6rem);
    color: #1C1A16;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ap-values-sep {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem !important;
    color: #b01c0a !important;
    margin: 0 1.6rem;
    letter-spacing: 0 !important;
    font-weight: 300;
}

.ap-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    border-top: 1px solid #D4C9B8;
    padding-top: 3.5rem;
}

.ap-values-block h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: #1C1A16;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
}

.ap-values-block p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #6A6058;
    line-height: 1.85;
}

/* ===========================
   OPERATIONS
=========================== */
.ap-ops {
    background: #ffffff;
    padding: 9rem 0;
}

.ap-ops-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 4rem;
}

.ap-ops-card {
    padding: 2.5rem 2.5rem 2.5rem 0;
    border-top: 1px solid #e8e2da;
}

.ap-ops-card:last-child {
    padding-right: 0;
}

.ap-ops-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #1c1c1e;
    letter-spacing: 0.01em;
    margin-bottom: 0.8rem;
}

.ap-ops-card p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #8a8480;
    line-height: 1.8;
}

.ap-machinery {
    border-top: 1px solid #e8e2da;
    padding-top: 2.5rem;
}

.ap-machinery-label {
    margin-bottom: 1rem;
}

.ap-machinery-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #9e9890;
    line-height: 2.1;
}

/* ===========================
   BRAND LEGACY
=========================== */
.ap-brands {
    background: #faf9f7;
    padding: 9rem 0;
}

.ap-brands-intro {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #9e9890;
    letter-spacing: 0.02em;
    margin-top: -2rem;
    margin-bottom: 3.5rem;
}

/* Logo grid — mirrors the clients grid in index.html */
.ap-logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    border-top: 1px solid #EDEAE4;
    border-left: 1px solid #EDEAE4;
}

.ap-logo-item {
    border-right: 1px solid #EDEAE4;
    border-bottom: 1px solid #EDEAE4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    transition: background 0.25s ease;
    /* Hidden until revealed by IntersectionObserver */
    opacity: 0;
    transform: translateY(14px);
}

.ap-logo-item:hover {
    background: #f0ece6;
}

/* Staggered reveal — class added by JS when grid enters viewport */
.ap-logo-item.ap-logo-revealed {
    animation: apLogoIn 0.55s ease forwards;
    animation-delay: calc(var(--i) * 55ms);
}

@keyframes apLogoIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ap-logo-item img {
    max-width: 120px;
    max-height: 60px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.ap-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ===========================
   RESPONSIVE — ≤ 768px
=========================== */
@media (max-width: 768px) {

    /* ---- Hero ---- */
    .ap-hero {
        padding: 5rem 0 4rem;
    }

    .ap-mandala-wrap {
        width: 300px;
        height: 300px;
        right: -80px;
        top: 65%;
    }

    /* ---- Stats bar ---- */
    .ap-stats {
        padding: 3rem 0;
    }

    .ap-stats-row {
        flex-wrap: wrap;
        gap: 0;
    }

    .ap-stat {
        flex: 1 1 45%;
        padding: 1.5rem 0;
        border-bottom: 1px solid #D4C9B8;
    }

    .ap-stat:nth-child(n+4) {
        border-bottom: none;
    }

    .ap-stat-num {
        font-size: 2.6rem;
    }

    .ap-stat-divider {
        display: none;
    }

    /* ---- Who We Are ---- */
    .ap-who {
        padding: 4.5rem 0;
    }

    .ap-who-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .ap-who-title {
        margin-bottom: 0;
    }

    .ap-who-right p {
        font-size: 0.95rem;
    }

    /* ---- Sectors ---- */
    .ap-sectors .section-label {
        padding: 3.5rem 0 2rem;
    }

    .ap-sector-item,
    .ap-sector-item.alt {
        flex-direction: column;
        padding: 2.5rem 0;
    }

    .ap-sector-content {
        padding: 0 1.4rem;
    }

    .ap-sector-name {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .ap-sector-img-box {
        height: 240px;
    }

    .ap-sector-img-overlay {
        padding: 1.8rem;
    }

    .ap-sector-img-overlay p {
        font-size: 1rem;
    }

    /* ---- People ---- */
    .ap-people {
        padding: 4rem 0 0;
    }

    .ap-people-intro {
        margin-bottom: 3rem;
    }

    .ap-team-list {
        padding: 0; /* remove desktop side padding; mobile has its own edge margins */
    }

    .ap-team-member,
    .ap-team-member.alt {
        grid-template-columns: 1fr;
    }

    .ap-team-member .ap-team-photo {
        height: 320px;
        order: 1 !important;
    }

    .ap-team-member .ap-team-text {
        order: 2 !important;
        padding: 2.5rem 1.4rem 2.5rem 1.4rem;
    }

    .ap-team-member.alt .ap-team-text {
        padding: 2.5rem 1.4rem 2.5rem 1.4rem;
    }

    .ap-team-name {
        font-size: 2.2rem;
        margin-bottom: 0.6rem;
    }

    .ap-team-name::after {
        margin-top: 1rem;
    }

    .ap-team-detail-row {
        grid-template-columns: 90px 1fr;
        gap: 0.8rem;
    }

    /* ---- Quote ---- */
    .ap-quote {
        padding: 4.5rem 0;
    }

    /* ---- Strengths ---- */
    .ap-strengths {
        padding: 4.5rem 0;
    }

    .ap-strengths-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ap-strength-card {
        padding: 1.8rem 1.4rem 1.8rem 0;
    }

    .ap-strength-card:nth-child(3n) {
        padding-right: 1.4rem;
    }

    .ap-strength-card:nth-child(2n) {
        padding-right: 0;
    }

    /* ---- Values ---- */
    .ap-values {
        padding: 4.5rem 0;
    }

    .ap-values-display {
        margin-bottom: 3rem;
        gap: 0.2rem 0;
    }

    .ap-values-sep {
        margin: 0 0.8rem;
    }

    .ap-values-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2.5rem;
    }

    /* ---- Operations ---- */
    .ap-ops {
        padding: 4.5rem 0;
    }

    .ap-ops-grid {
        grid-template-columns: 1fr;
        margin-bottom: 2.5rem;
    }

    .ap-ops-card {
        padding: 1.8rem 0;
    }

    .ap-ops-card:last-child {
        padding-right: 0;
    }

    /* ---- Brand Legacy ---- */
    .ap-brands {
        padding: 4.5rem 0;
    }

    .ap-logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ap-logo-item {
        padding: 1.4rem 1rem;
    }

    /* ---- Footer clearance for floating nav ---- */
    footer {
        padding-bottom: calc(3rem + 90px + env(safe-area-inset-bottom, 0px));
    }
}