:root {
    --home-bg: #050505;
    --home-surface: #0b0b0b;
    --home-line: rgba(255, 255, 255, 0.13);
    --home-muted: rgba(255, 255, 255, 0.56);
}

html {
    scroll-behavior: smooth;
}

body.home-page {
    background: var(--home-bg);
}

.home-page main {
    position: relative;
    z-index: 2;
    background: var(--home-bg);
}

.selected-section,
.capabilities-section,
.home-footer {
    padding-left: clamp(20px, 3vw, 64px);
    padding-right: clamp(20px, 3vw, 64px);
}

.selected-section {
    padding-top: clamp(120px, 8vw, 150px);
    padding-bottom: clamp(100px, 10vw, 190px);
}

.section-intro {
    padding-bottom: clamp(48px, 5vw, 86px);
}

.section-kicker {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.section-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.55fr);
    align-items: end;
    gap: 8vw;
    margin-top: 36px;
}

.section-heading-row h2 {
    max-width: 1100px;
    color: #fff;
    font-size: clamp(3.1rem, 6.7vw, 8.8rem);
    font-weight: 500;
    letter-spacing: -0.068em;
    line-height: 0.87;
}

.section-heading-row h2 span {
    color: rgba(255, 255, 255, 0.24);
}

.section-heading-row p {
    max-width: 420px;
    padding-bottom: 0.55em;
    color: var(--home-muted);
    font-size: clamp(0.95rem, 1.05vw, 1.2rem);
    line-height: 1.8;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(18px, 1.7vw, 34px);
    row-gap: clamp(54px, 5vw, 96px);
}

.project-card {
    display: block;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.project-visual {
    --card-color: #171717;
    --card-highlight: #282828;
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1.34 / 1;
    padding: clamp(12px, 1.45vw, 28px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(145deg, var(--card-highlight) 0%, var(--card-color) 72%),
        var(--card-color);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -24px 50px rgba(0, 0, 0, 0.08);
    isolation: isolate;
}

.project-visual::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(0, 0, 0, 0.12));
    content: "";
    pointer-events: none;
}

.project-visual img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.4);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    will-change: transform;
}

.project-card:hover .project-visual img {
    transform: scale(1.025);
    filter: brightness(1.05);
}

.tone-orange img {
    object-position: center 12%;
}

.project-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
}

.project-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.project-title h3 {
    overflow: hidden;
    font-size: clamp(1rem, 1.1vw, 1.3rem);
    font-weight: 560;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-title small {
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-mark {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-tags {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.project-tags span {
    padding: 5px 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0.05em;
}

.all-work {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: clamp(90px, 9vw, 170px);
    padding: 36px 0 4px;
    border-top: 1px solid var(--home-line);
}

.all-work p {
    color: var(--home-muted);
    font-size: 0.9rem;
}

.all-work a {
    color: #fff;
    font-size: clamp(1.55rem, 2.6vw, 3.4rem);
    font-weight: 450;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.all-work a span,
.home-footer a span {
    display: inline-block;
    transition: transform 0.35s ease;
}

.all-work a:hover span,
.home-footer a:hover span {
    transform: translate(5px, -5px);
}

.capabilities-section {
    padding-top: clamp(90px, 9vw, 170px);
    padding-bottom: clamp(110px, 12vw, 220px);
    border-top: 1px solid var(--home-line);
}

.capabilities-list {
    margin-top: 34px;
}

.capability {
    display: grid;
    grid-template-columns: 60px minmax(220px, 1fr) minmax(260px, 0.62fr);
    align-items: baseline;
    gap: 28px;
    padding: 31px 0;
    border-bottom: 1px solid var(--home-line);
}

.capability > span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.72rem;
}

.capability h3 {
    font-size: clamp(2rem, 4.1vw, 5.2rem);
    font-weight: 450;
    letter-spacing: -0.055em;
    line-height: 1;
}

.capability p {
    color: var(--home-muted);
    font-size: 0.92rem;
}

.home-footer {
    background: #efefeb;
    color: #090909;
    padding-top: clamp(90px, 10vw, 180px);
    padding-bottom: 30px;
}

.home-footer > div:first-child p {
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.home-footer > div:first-child a {
    display: inline-block;
    margin-top: 18px;
    color: #090909;
    font-size: clamp(3.1rem, 8.6vw, 11rem);
    font-weight: 500;
    letter-spacing: -0.075em;
    line-height: 0.92;
    text-decoration: none;
}

.home-footer-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    margin-top: clamp(110px, 13vw, 230px);
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.18);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-footer-bottom span:nth-child(2) { text-align: center; }
.home-footer-bottom a { color: #090909; text-align: right; text-decoration: none; }

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 900px) {
    .section-heading-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .section-heading-row p {
        padding-bottom: 0;
    }

    .capability {
        grid-template-columns: 42px 1fr;
    }

    .capability p {
        grid-column: 2;
    }
}

@media (max-width: 680px) {
    .selected-section {
        padding-top: 102px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        row-gap: 58px;
    }

    .project-visual {
        aspect-ratio: 1.24 / 1;
    }

    .project-meta {
        padding-top: 14px;
    }

    .project-title small,
    .project-tags span:nth-child(2) {
        display: none;
    }

    .all-work {
        align-items: flex-start;
        flex-direction: column;
    }

    .capability {
        grid-template-columns: 32px 1fr;
        gap: 15px;
        padding: 24px 0;
    }

    .capability p {
        font-size: 0.82rem;
    }

    .home-footer-bottom {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .home-footer-bottom span:nth-child(2) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .project-visual img { transition: none; }
}
