/* About page: the intro at the top. Everything sits left on the page gutter, in line with the logo;
   from 1024px the supporting text moves to the right of the headline. While it's stacked under the
   headline, the gaps above and below the headline come from one token (--about-gap) and match
   visually (CLAUDE.md §16, "Equal spacing around a middle element"). */

:root {
    --about-gap: clamp(1.25rem, 0.875rem + 1.25vw, 2rem); /* 20px on phones to 32px at 1440px */
    --about-section-top: clamp(2.5rem, 1.75rem + 3vw, 4.5rem); /* space above "/ About": 40px on phones to 72px on desktop */
}

.about-intro {
    padding: var(--about-section-top) var(--gutter) 0;
}

/* 16px with a little less space under it on phones; 18px from 768px */
.about-intro__label {
    margin: 0 0 calc(var(--about-gap) - 0.25rem);
    font-weight: 400;
    color: #767676;
    font-family: "Geist", sans-serif;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
}

@media (min-width: 768px) {
    .about-intro__label {
        margin-bottom: calc(var(--about-gap) - 0.125rem); /* minus 2px, so the visible gap matches the one under the headline */
        font-size: 1.125rem;
    }
}

.about-intro__title {
    max-width: 22em;
    margin: 0;
    text-align: left;
    color: #0a0a0a;
    font-family: "Geist", sans-serif;
    font-size: clamp(2rem, 0.78rem + 4.34vw, 4.25rem); /* 32px on phones, 68px from 1280px */
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

/* Below 1024px the supporting text sits under the headline; from 1024px it moves to the right of it,
   in a narrow column on the far right (its right edge on the page gutter, in line with Get Started), its first
   line level with the top of the headline (design-refs/about.png). */
.about-intro__lede {
    max-width: 34rem;
    margin: calc(var(--about-gap) - 0.2em) 0 0; /* minus its own extra line spacing, so the visible gap matches the one above the headline */
    color: #1e2124;
    font-family: "Geist", sans-serif;
    font-size: 1.125rem;   /* 18px on phones and tablets; beside the headline 24px at 1024px growing to 34px from 1280px */
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

@media (min-width: 1024px) {
    .about-intro__row {
        display: grid;
        grid-template-columns: max-content minmax(0, min(32%, 28rem)); /* the headline keeps its two lines; the text takes about a third of the width, after design-refs/about.png */
        justify-content: space-between;
        column-gap: 3rem;
        align-items: start;
    }

    .about-intro__lede {
        max-width: none;
        margin: 0.25rem 0 0; /* 4px down, so the tops of its capitals line up with the headline's */
        font-size: clamp(1.5rem, 3.906vw - 1rem, 2.125rem); /* 24px at 1024px to 34px from 1280px */
        line-height: 1.25;
        letter-spacing: -0.01em;
    }
}

/* Black divider under the intro, across the content width (gutter to gutter, logo to Get Started) */
/* The team: starts under the logo animation with its "/ The team" label */
.about-team {
    padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) var(--gutter) clamp(4rem, 2.5rem + 6vw, 8rem); /* top: 28px on phones to 48px on desktop; bottom: 64px to 128px */
}

/* Typewriter labels (static/about.js). Hidden until the script sets them up, so the text doesn't
   flash in full first. The line keeps its height while empty, so nothing below moves. */
.js-typewriter [data-typewriter]:not(.is-ready) {
    visibility: hidden;
    animation: typewriter-fallback 0s 3s forwards; /* shows the label anyway if the script never runs */
}

@keyframes typewriter-fallback {
    to { visibility: visible; }
}

[data-typewriter].is-ready {
    min-height: 1.2em;
}

.typewriter__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Hidden until its own label starts typing, so the second label shows no caret while it waits. It stays
   solid while typing (no blink), then fades out once after the last letter. */
.typewriter__caret {
    display: none;
    width: 1px;
    height: 1em;
    margin-left: 2px;
    background: currentColor;
    vertical-align: -0.12em;
    transition: opacity 0.4s ease;
}

[data-typewriter].is-typing .typewriter__caret {
    display: inline-block;
}

[data-typewriter].is-done .typewriter__caret {
    opacity: 0;
}

/* Team heading: "The people building" in grey over "AI-native companies" in black; 32px on phones,
   like the intro headline, 45px from 1280px. Its supporting text sits under it on phones and tablets and, from 1024px, in
   the same right-hand column as the intro's text (.about-intro__row), tops of the capitals level. */
.about-team__title {
    margin: 0;
    color: #0a0a0a;
    font-family: "Geist", sans-serif;
    font-size: clamp(2rem, 1.561rem + 1.564vw, 2.8125rem); /* 32px on phones (the same as the intro headline), growing to 45px from 1280px */
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.about-team__title-muted {
    color: #767676;
}

.about-team__lede {
    max-width: 34rem;
    margin: calc(var(--about-gap) - 0.2em) 0 0; /* the same as the intro text, so on phones and tablets the two sections match */
    color: #1e2124;
    font-family: "Geist", sans-serif;
    font-size: 1.125rem;   /* 18px on phones and tablets (the same as the intro text), 20px beside the heading */
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

@media (min-width: 1024px) {
    .about-team__lede {
        max-width: none;
        margin: 0.15625rem 0 0; /* 2.5px down, so the tops of its capitals line up with the heading's */
        font-size: 1.25rem;
    }
}

/* Founders grid (design-refs/founder-ref.png): cells divided by thin black lines, each with a square photo
   slot and the name and role under it. The photo has the same space on
   its left and right. Two columns on phones, four from 768px (iPads and up); with two founders the last
   two cells are left empty, like the reference's grid. On phones the cells are narrow (about 164px at
   360px), so the padding and text are a size down, and long names or roles wrap. */
.founders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: clamp(3rem, 2rem + 3vw, 4.5rem) 0 0; /* 48px on phones to 72px on desktop */
    padding: 0;
    list-style: none;
    /* The outer border and the lines between cells are both 1px, the same as the blog page's cards, and the
       outer corners are rounded 4px like them. The inner lines are the black background showing
       through 1px gaps, so they stay continuous inside the rounded corners. */
    gap: 1px;
    border: 1px solid #000000;
    border-radius: 0.25rem;
    background: #000000;
    overflow: hidden;
}

@media (min-width: 768px) {
    .founders {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.founder {
    min-width: 0;
    padding: 10% 12% 12%;
    background: #ffffff;
}

.founder--empty {
    display: none;
}

/* Until there are headshots: the black post cover (static/post-covers.css) with the Altigrid symbol in
   the middle, a little larger than on the wide blog covers since the slot is square */
.founder__photo {
    aspect-ratio: 1 / 1;
    border-radius: 0.25rem; /* 4px, like the blog page's cover images */
}

.founder__photo.cover::after {
    width: max(1rem, 8%); /* about 30px at 1440px, 16px on phones */
}

.founder__name {
    margin: 1rem 0 0;
    color: #0a0a0a;
    font-family: "Geist", sans-serif;
    font-size: 0.9375rem;  /* 15px on phones, 18px from 640px */
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.founder__role {
    margin: 0.25rem 0 0;
    color: #767676;
    font-family: "Geist", sans-serif;
    font-size: 0.8125rem;  /* 13px on phones, 16px from 640px */
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    .founder {
        padding: 10% 20% 11%; /* the photo is 60% of the cell's width */
    }

    .founder__name {
        margin-top: 1.5rem;
        font-size: 1.125rem;
    }

    .founder__role {
        margin-top: 0.375rem;
        font-size: 1rem;
    }
}

/* Four across: a slim margin, so the photo is 84% of the cell's width */
@media (min-width: 768px) {
    .founder {
        padding: 8% 8% 1.5rem;
    }

    .founder--empty {
        display: block;
    }
}

@media (min-width: 1024px) {
    .founder {
        padding-bottom: 2rem;
    }
}
