/* about.css — about page hero + stats grid. */

/* ─── About page — hero with monogram mark + story + stats ────── */
.about-hero {
    /* Mobile-first; tablet+ override below. */
    padding-block: var(--space-7) var(--space-6);
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%,
            color-mix(in srgb, var(--color-green) 14%, transparent) 0%,
            transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 100%,
            color-mix(in srgb, var(--color-gold) 10%, transparent) 0%,
            transparent 60%),
        var(--color-bg);
    position: relative;
}
.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--color-gold);
    opacity: .5;
}
.about-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
}
@media (min-width: 768px) {
    .about-hero { padding-block: var(--space-9) var(--space-7); }
}
@media (min-width: 900px) {
    .about-hero__grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        gap: var(--space-8);
    }
}
.about-hero__mark svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 16px 32px color-mix(in srgb, var(--color-green) 18%, transparent));
}

/* Featured photo for the About page hero. Replaces the SVG mark when an
   image is attached via /admin/pages/edit. Brand-green corner accent reads
   as a small framing flourish so the photo doesn't sit floating; soft drop-
   shadow lifts it off the warm background. */
.about-hero__photo {
    margin: 0 auto;
    max-width: 460px;
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    box-shadow:
        0 24px 60px -12px color-mix(in srgb, var(--color-green) 25%, transparent),
        0 6px 16px -4px rgba(0, 0, 0, 0.12);
    isolation: isolate;
}
.about-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s var(--ease, ease-out);
}
.about-hero__photo:hover img { transform: scale(1.04); }
/* Brand corner accent — thin two-edge stroke on the top-left, reads as a
   passport-style framing mark without dominating the photo. */
.about-hero__photo::before {
    content: '';
    position: absolute;
    top: 14px; left: 14px;
    width: 56px; height: 56px;
    border-top: 2px solid var(--color-gold);
    border-left: 2px solid var(--color-gold);
    border-top-left-radius: 8px;
    z-index: 2;
    pointer-events: none;
}
.about-hero__photo::after {
    content: '';
    position: absolute;
    bottom: 14px; right: 14px;
    width: 56px; height: 56px;
    border-bottom: 2px solid var(--color-green);
    border-right: 2px solid var(--color-green);
    border-bottom-right-radius: 8px;
    z-index: 2;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .about-hero__photo:hover img { transform: none; }
}

/* Hero-photo as showcase slideshow.
   Reuses .showcase-frame / .showcase-slides classes for behaviour (so
   showcase.js wires autoplay + arrows + dots), but strips the showcase
   chrome (green border, 10px padding, 4/3 ratio) so the frame fits the
   existing 4/5 portrait card with its gold/green corner accents.
   The frame fully fills .about-hero__photo via absolute positioning so
   the parent's aspect-ratio:4/5 stays in control of overall height. */
/* When the photo block is a slideshow, all children are position:absolute,
   so the figure has no intrinsic width to push the grid column open. The
   original single-<img> markup relied on the img's natural width to do
   that; force it explicitly here. aspect-ratio:4/5 (inherited) then
   yields the correct height. */
.about-hero__photo--gallery { padding: 0; width: 100%; }
.about-hero__photo--gallery .about-hero__frame {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: inherit;
    padding: 0;
    background: transparent;
    transform: none !important;       /* defeat the showcase hover lift */
    box-shadow: none !important;
    overflow: hidden;
}
.about-hero__photo--gallery .showcase-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;               /* parent's 4/5 already dictates size */
    border-radius: inherit;
    background: var(--color-green-mist, #F1F9F4);
}
.about-hero__photo--gallery .showcase-slide img {
    transition: transform 8s var(--ease, ease-out);  /* match still-photo zoom */
}
.about-hero__photo--gallery:hover .showcase-slide.is-active img {
    transform: scale(1.04);
}
/* Pull the dots inside the photo's bottom corner safely above the green
   accent — the existing ::after sits at bottom: 14px / right: 14px and
   we don't want it clashing with the slideshow dots. */
.about-hero__photo--gallery .showcase-dots { bottom: 18px; }
@media (prefers-reduced-motion: reduce) {
    .about-hero__photo--gallery:hover .showcase-slide.is-active img { transform: none; }
}

.about-story {
    max-width: 800px;
}
.content--lg {
    font-size: var(--fs-lg);
    line-height: 1.65;
    max-width: 70ch;
}
.content--lg p { max-width: none; }

/* ─── Stats grid — large numerical display ─────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    margin: var(--space-5) 0 0;
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-6);
    }
}
.stat {
    text-align: left;
    padding: var(--space-5) 0;
    position: relative;
}
@media (min-width: 768px) {
    .stat + .stat::before {
        content: '';
        position: absolute;
        top: var(--space-5); bottom: var(--space-5);
        left: calc(-0.5 * var(--space-6));
        width: 1px;
        background: color-mix(in srgb, var(--color-gold) 50%, transparent);
    }
}
.stat__value {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 1.8rem + 2.5vw, 3.75rem);
    font-weight: var(--fw-bold);
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-green-dark);
    margin: 0 0 var(--space-2);
    font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .stat__value { color: var(--color-green); }
.stat__label {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--color-muted);
    line-height: 1.4;
    max-width: 22ch;
}



/* About video — 16:9 YouTube embed (lazy iframe). */
.about-video .video-frame {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: var(--space-5) auto 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-tint);
    box-shadow: var(--shadow-md);
}
.about-video .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
