/* ============================================================
   ABOUT OVERLAY
   Global overlay displayed above the current page.
   Background: rgba(255,255,255,0.95) — underlying page remains
   subtly visible. Content (portrait + text) fully opaque.
   z-index: 50 — above page content, below header (z-index: 100).
   ============================================================ */

.about-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 50;
    display: none;
    overflow: hidden;
    pointer-events: none;
    will-change: clip-path;
}

/* is-open used as semantic state indicator; display/pointer-events managed by JS */
.about-overlay.is-open {
    display: block;
    pointer-events: auto;
}

/* Content grid — uses canonical .grid (12 cols, 20px gutter, 0px margin) */
.about-overlay__inner {
    align-items: start;
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Portrait — column 2, stretch (fills exactly one canonical column) */
.about-overlay__portrait {
    grid-column: 2;
    /* justify-self: stretch is the CSS Grid default — fills column 2 exactly */
}

.about-overlay__portrait img {
    width: 100%;
    height: auto;
    display: block;
}

/* Text column — columns 6–7 (grid lines 6–8) */
.about-overlay__text {
    grid-column: 6 / 8;
}

/* Title */
.about__title {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

/* Bio */
.about__bio {
    color: var(--color-text-secondary);
    margin-bottom: 42px;
}

/* Email + Instagram */
.about__links {
    margin-bottom: 42px;
}

.about__links a {
    display: block;
    color: var(--color-text-primary);
    font-weight: 500;
    line-height: 1.4;
}

/* Clients section */
.about__clients-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 14px;
}

.about__clients-list {
    list-style: none;
}

.about__clients-list li {
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Legal Notice — mobile entry point (the footer is hidden on mobile).
   Same URL as the desktop footer link; same style as that link. */
.about__legal {
    display: none;
}

/* ============================================================
   MOBILE (max-width: 768px)
   One column on the mobile inset instead of the 12-col grid
   (columns are ~14px wide on a phone). Content scrolls inside the
   overlay when taller than the screen. Typography and spacing
   between About blocks are the desktop ones.
   ============================================================ */

@media (max-width: 768px) {

    .about-overlay {
        overflow-y: auto;
    }

    /* Same top as the Single Work intro: header row + 52px. */
    .about-overlay__inner {
        display: flex;
        flex-direction: column;
        row-gap: 36px;
        padding: calc(var(--header-inset-top) + var(--pill-height) + 52px) var(--page-inset-x) calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Desktop portrait = one column of the 1728px reference (~126px). */
    .about-overlay__portrait {
        width: 126px;
    }

    .about-overlay__text {
        max-width: 400px;
    }

    .about__legal {
        display: inline-block;
        margin-top: 42px;
    }

}

/* ============================================================
   HEADER STATE — ABOUT OPEN
   ============================================================ */

/* X close button — hidden by default, shown when About is open.
   grid-row: 1 is required: without it, auto-placement bumps this element
   to row 2 because .site-header__project-controls occupies cols 4–8 in row 1
   (col 6 conflicts). Explicit row 1 forces correct vertical alignment. */
.site-header__about-close {
    grid-column: 6;
    grid-row: 1;
    justify-self: start;
    pointer-events: auto;
    display: none;
}

.is-about-open .site-header__about-close {
    display: inline-flex;
}

/* ABOUT pill sits in site-nav-under-layer (z-index 40), below the backdrop (z-index 50).
   It is naturally covered by the translucent white surface — no explicit hiding needed.
   pointer-events: none prevents interaction while About is open. */
.is-about-open .site-header__about {
    pointer-events: none;
}

/* Project controls sit in their own layer (z-index 40), below the About backdrop
   (z-index 50). They remain visible through the translucent white surface.
   pointer-events: none prevents interaction while About is open. */
.is-about-open .site-header__project-controls {
    pointer-events: none;
}
