/* ============================================================
   ABOUT PAGE -- dark "stage" treatment matching page-contact.php
   Same visual language as assets/css/contact.css: one dark panel
   (--card-public-bg-alt) holding the hero + intro, a single soft
   a soft radial glow top-right (--color-public-main-1/-2/-3), bold heading, eyebrow label.
   Builds on top of the base .about-intro-grid/.about-image rules
   already in page.css (grid shape + responsive collapse) rather
   than duplicating them -- this file only overrides color/spacing
   for the dark panel, plus the new pillars block and reveal
   mechanics. Loaded only on page-about.php.
   ============================================================ */

/* ---- Stage ---- */
.about-stage {
    position: relative;
    overflow: hidden;
    background: var(--card-public-bg-alt);
    border-radius: 28px;
    padding: 56px 48px 64px;
    margin-top: 24px;
    color: var(--static-page-container-text);
}

.about-stage-glow {
    position: absolute;
    right: -20%;
    top: -35%;
    width: 820px;
    height: 820px;
    border-radius: 50%;
    background: radial-gradient(circle,
        color-mix(in srgb, var(--color-public-main-1) 45%, transparent) 0%,
        color-mix(in srgb, var(--color-public-main-2) 20%, transparent) 45%,
        var(--color-public-main-3) 75%);
    filter: blur(100px);
    pointer-events: none;
    animation: about-glow-drift 16s ease-in-out infinite;
}

@keyframes about-glow-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 20px) scale(1.1); }
}

.about-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--public-text-special);
    margin-bottom: 14px;
    position: relative;
}

.about-stage h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 18px;
    position: relative;
}

.about-stage .breadcrumbs {
    margin-bottom: 22px;
    position: relative;
}

.about-stage .breadcrumbs a,
.about-stage .breadcrumbs span {
    color: rgba(255, 255, 255, 0.6);
}

.about-stage .breadcrumbs a:hover {
    color: #fff;
}

/* ---- Intro grid (base grid shape stays in page.css's
   .about-intro-grid -- these just recolor it for the dark panel) ---- */
.about-stage .about-intro-grid {
    position: relative;
    margin: 40px 0 0;
}

.about-stage .about-intro-text .page-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
    line-height: 1.8;
}

.about-stage .about-image {
    margin: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

/* ---- Pillars (How We Work / What We Do / Why It Matters / Who We
   Serve) -- same borderless icon+heading+text block used for
   Contact's left-column info list, in a 2x2 grid instead of a
   single stack. ---- */
.about-pillars {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.about-pillar {
    display: flex;
    flex-direction: column;
}

/* Icon + heading live in their own row so the icon centers against
   the heading's line specifically, matching the same fix on
   Contact's info blocks (assets/css/contact.css). */
.about-pillar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

/* Same approach as .services-card-icon (services.css): every file in
   the icon library declares width="1em" height="1em" on its own <svg>,
   so sizing the box via font-size lets each icon scale off that em
   unit at its own authored proportions -- no forced svg width/height
   or stroke override fighting whatever fill/stroke each file actually
   uses. That forced override is what made every size/stroke-width
   tweak here a guessing game across a library this mixed. */
.about-pillar-icon {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--card-public-border) 60%, transparent);
    color: var(--public-icon-color);
    font-size: 46px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-pillar-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

/* Scoped under .about-pillar (not just .about-pillar-text) so this
   beats main.css's .public-main p rule on specificity -- a single
   class alone loses to that class+tag selector regardless of which
   stylesheet loads last, same issue fixed on the nav BACK link. */
.about-pillar .about-pillar-text {
    margin: 0;
    color: var(--static-page-container-text);
    font-size: 16px;
    line-height: 1.6;
}

/* ---- Scroll reveal ----
   Progressive enhancement: elements are fully visible by default
   so a JS failure never hides content. assets/js/about-page.js
   adds .reveal-pending right before it starts observing, then
   swaps it for .is-visible as each element scrolls into view. ---- */
[data-reveal] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .about-stage-glow {
        animation: none;
    }

    [data-reveal] {
        transition: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .about-stage {
        padding: 40px 24px 48px;
        border-radius: 20px;
    }

    .about-stage h1 {
        font-size: 34px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
