/*
 * About page (#2) — the company "decade timeline".
 * Loaded via @push('styles') — only on /about.
 *
 * Replaces the legacy JS swiper with an accessible, JS-free vertical timeline:
 * a decade quick-nav of real anchor links + one section per decade whose
 * entries are a semantic ordered list. Alternating two-column spine on desktop,
 * single column on mobile. All motion is prefers-reduced-motion safe.
 */

.about-page {
    --about-accent: var(--brand-primary, #ec1c8c);
    /* The accent AS TEXT on this page's light surfaces (WAVE, 2026-09-01:
       "Our Legacy" and the intro eyebrow). Slinky Pink on #faf8f5 is 3.4:1. */
    --about-accent-text: var(--brand-accent-text, var(--brand-link, #c00c7f));
    --about-ink: #1a1a1a;
    --about-muted: #5a5a5a;
    --about-line: #d9d4cc;
    --about-surface: #ffffff;
    color: var(--about-ink);
}

/* -- Editorial intro ------------------------------------------------------ */

.about-intro {
    padding: 3.5rem 0 2.5rem;
    text-align: center;
}

.about-intro__inner {
    max-width: 820px;
}

.about-intro__eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    /* Legacy h6 eyebrow: Medium, 12px, 5px tracking. */
    letter-spacing: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--about-accent-text);
}

.about-intro__title {
    margin: 0 0 1.25rem;
    /* Weight, case, tracking and leading come from the global heading rule
       (legacy h1: uppercase Black, tight). Capped at 3.5rem, not legacy 80px. */
    font-size: clamp(2.25rem, 1rem + 5.5vw, 3.5rem);
}

.about-intro__lead {
    font-size: var(--type-body-size);
    line-height: 1.6;
    color: var(--about-muted);
}

.about-intro__lead p {
    margin: 0 0 1rem;
}

/* -- "Our Legacy" founder band (EB) --------------------------------------- */
/* Two-column on desktop (quote + signature | portrait), single column on
 * mobile. Faithful to the legacy made-in-usa block. Image boxes reserve their
 * aspect ratio up front so there is no layout shift as the photo/signature
 * load or as the art-directed <picture> swaps crops at the 768px breakpoint. */

.about-legacy {
    padding: 3rem 0;
    background: #faf8f5;
    border-top: 1px solid var(--about-line);
    border-bottom: 1px solid var(--about-line);
}

.about-legacy__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.about-legacy__heading {
    margin: 0 0 1.25rem;
    font-size: clamp(1.5625rem, 0.9rem + 2.3vw, 3rem);
    color: var(--about-accent-text);
}

.about-legacy__quote {
    margin: 0;
    /* Legacy set this as plain roman body copy; the kit has no italics. */
    font-size: var(--type-body-size);
    font-style: normal;
    line-height: 1.6;
    color: var(--about-ink);
}

.about-legacy__quote p {
    margin: 0 0 0.75rem;
}

.about-legacy__quote p:last-child {
    margin-bottom: 0;
}

/* Signature sits beneath the quote as a right-aligned attribution (legacy). */
.about-legacy__signature {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 3 / 1;
    object-fit: contain;
    object-position: right center;
    margin: 1.25rem 0 0 auto;
}

.about-legacy__figure {
    margin: 0;
}

.about-legacy__photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #eae5dd;
    border-radius: 6px;
}

@media (min-width: 768px) {
    .about-legacy__inner {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .about-legacy__photo {
        aspect-ratio: 4 / 3;
    }
}

/* -- Timeline shell ------------------------------------------------------- */

.about-timeline {
    padding: 2.5rem 0 4rem;
    background: #f6f3ee;
}

.about-timeline__heading {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* -- Decade quick-nav (real anchor links) --------------------------------- */

.about-decades {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 2.5rem;
    padding: 0.75rem 0;
    background: rgba(246, 243, 238, 0.95);
    backdrop-filter: saturate(1.2) blur(4px);
}

.about-decades__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
}

.about-decades__link {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--about-line);
    border-radius: 999px;
    background: var(--about-surface);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--about-ink);
    text-decoration: none;
    white-space: nowrap;
}

.about-decades__link:hover,
.about-decades__link:focus-visible {
    border-color: var(--about-accent);
    color: var(--about-accent);
}

.about-decades__link:focus-visible {
    outline: 3px solid var(--about-accent);
    outline-offset: 2px;
}

/* -- Decade section ------------------------------------------------------- */

.about-decade {
    /* Clear the sticky quick-nav when jumped to via anchor. */
    scroll-margin-top: 5rem;
    margin: 0 0 3rem;
}

.about-decade:focus {
    outline: none;
}

.about-decade__label {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    color: var(--about-accent);
}

/* -- Vertical spine timeline ---------------------------------------------- */

.about-decade__entries {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The spine: left rail on mobile, centered on desktop. */
.about-decade__entries::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 9px;
    width: 2px;
    background: var(--about-line);
}

.about-entry {
    position: relative;
    padding: 0 0 2rem 2.5rem;
}

.about-entry:last-child {
    padding-bottom: 0;
}

.about-entry__marker {
    position: absolute;
    top: 0.4rem;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--about-accent);
    border: 3px solid var(--about-surface);
    box-shadow: 0 0 0 1px var(--about-line);
}

.about-entry__card {
    display: grid;
    gap: 1rem;
    background: var(--about-surface);
    border: 1px solid var(--about-line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.about-entry__figure {
    margin: 0;
}

.about-entry__image {
    display: block;
    width: 100%;
    height: auto;
    /* The whole photo, uncropped (Jesse, 2026-11-16): a 3:2 cover crop cut
       heads off the 5:6 archive portraits. Every entry is 500x600 today, so
       5 / 6 holds the space before the lazy image lands; `auto` lets any
       other shape show at its own ratio. */
    aspect-ratio: auto 5 / 6;
    background: #eae5dd;
}

.about-entry__body {
    padding: 0 1.25rem 1.25rem;
}

.about-entry__figure + .about-entry__body {
    padding-top: 0.25rem;
}

.about-entry__card > .about-entry__body:first-child {
    padding-top: 1.25rem;
}

.about-entry__year {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5625rem, 0.9rem + 2.3vw, 3rem);
    color: var(--about-accent-text);
}

.about-entry__title {
    margin: 0 0 0.5rem;
    /* Legacy h3: 16pt uppercase Black (global heading rule). */
    font-size: 1.3333rem;
}

@media (max-width: 414px) {
    .about-entry__title {
        font-size: 1rem;
    }
}

.about-entry__desc {
    margin: 0;
    font-size: var(--type-body-size);
    line-height: 1.6;
    color: var(--about-muted);
}

/* -- Desktop: alternating two-column spine -------------------------------- */

@media (min-width: 820px) {
    .about-decade__entries::before {
        left: 50%;
        transform: translateX(-1px);
    }

    .about-entry {
        width: 50%;
        padding: 0 0 2.5rem;
    }

    /* Odd entries on the left, even on the right. */
    .about-entry:nth-child(odd) {
        left: 0;
        padding-right: 2.75rem;
        text-align: right;
    }

    .about-entry:nth-child(even) {
        left: 50%;
        padding-left: 2.75rem;
    }

    .about-entry:nth-child(odd) .about-entry__marker {
        left: auto;
        right: -8px;
    }

    .about-entry:nth-child(even) .about-entry__marker {
        left: -8px;
    }

    .about-entry:nth-child(odd) .about-entry__card {
        text-align: left;
    }
}

/* -- Motion preferences --------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .about-entry__card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .about-entry__card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    }
}
