/* Homepage composition. Shared typography, colours and themes live in site.css. */
.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.home-page .site-header {
    flex-shrink: 0;
}
/* Match case-study titles and their coloured category labels. */
.home-page .site-navigation {
    flex-wrap: wrap;
    padding-block: 16px;
}
.home-page .brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 24px;
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.12;
}
.home-page .brand span {
    color: var(--accent);
    font-family: var(--heading-font);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.65;
    text-transform: uppercase;
}
@media (max-width: 620px) {
    .home-page .brand {
        flex-direction: column;
        align-items: flex-start;
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .home-page .brand span {
        font-size: 0.6875rem;
        letter-spacing: 0.08em;
    }
}
.home-page .page-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    padding-block: 0;
}
.home-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 30px;
    align-items: center;
    font-size: 0.9375rem;
}
.home-navigation a {
    padding-block: 10px;
}
.home-navigation a:hover {
    color: var(--accent);
}
/* A single reading order keeps the introduction above the work at every size. */
.introduction {
    padding-block: clamp(32px, 3.5vw, 52px) clamp(28px, 3vw, 44px);
}
.introduction .eyebrow {
    margin-bottom: 16px;
    font-size: 0.75rem;
}
.introduction h1 {
    max-width: 100%;
    margin: 0 0 20px;
    font-family: var(--body-font);
    font-size: clamp(1.875rem, 2.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.18;
    text-wrap: balance;
}
.introduction__copy {
    max-width: 95ch;
}
.introduction__copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.75;
}
.introduction__copy p + p {
    margin-top: 12px;
}
.selected-work {
    padding-block: clamp(24px, 2.5vw, 36px) clamp(36px, 4vw, 64px);
    border-top: 1px solid var(--border);
}
.section-heading {
    margin-bottom: 26px;
}
.section-heading h2 {
    margin: 0 0 6px;
    font-size: 2rem;
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-weight: 600;
}
.section-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.project-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
    border-radius: var(--radius);
    background: var(--surface);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}
.project-tile:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}
.project-tile:focus-visible {
    outline-color: var(--accent);
}
/* Only the isolated header artwork is an image; the complete tile shell is HTML/CSS. */
.project-tile__art {
    aspect-ratio: 1294 / 628;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}
.project-tile__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-tile__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 17px 14px;
}
.project-tile h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}
.project-tile__body > p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}
.project-tile__footer {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-top: auto;
}
.project-tile__stack {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.project-tile__stack li {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(151, 167, 184, 0.04);
    color: var(--text-muted);
    font-size: 0.6875rem;
    line-height: 1.4;
    white-space: nowrap;
}
.project-tile__arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--accent);
}
@media (max-width: 1000px) {
    .project-grid {
        gap: 14px;
    }
    .project-tile__body {
        padding: 14px;
    }
    .project-tile h3 {
        font-size: 1.125rem;
    }
    .project-tile__body > p {
        font-size: 0.875rem;
    }
}
@media (max-width: 760px) {
    .project-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .project-tile h3 {
        font-size: 1.25rem;
    }
    .project-tile__body > p {
        font-size: 0.9375rem;
    }
    .project-tile__body {
        padding: 16px 17px;
    }
}
@media (max-width: 420px) {
    .home-page .site-navigation {
        gap: 8px 16px;
    }
    .home-navigation {
        gap: 8px 18px;
        font-size: 0.875rem;
    }
    .section-heading h2 {
        font-size: 1.75rem;
    }
}

/* Give tablet tags the whole footer width rather than reserving an arrow column. */
@media (min-width: 761px) and (max-width: 1000px) {
    .project-tile__footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }
    .project-tile__stack {
        gap: 6px;
    }
    .project-tile__stack li {
        padding-inline: 6px;
    }
    .project-tile__arrow {
        justify-self: end;
    }
}
@media (min-width: 1800px) {
    .project--adf .project-tile__stack {
        column-gap: 6px;
    }
}
@media (max-width: 420px) {
    .project--evnerd .project-tile__stack {
        max-width: 250px;
    }
}
