* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --ink: #151515;
    --muted: #68645f;
    --paper: #f4f1ea;
    --white: #ffffff;
    --line: rgba(21, 21, 21, 0.16);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--white);
    background: #000000;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    min-height: 100vh;
}

.hero {
    min-height: auto;
    padding: 48px clamp(20px, 5vw, 72px) 112px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #000000;
    border-bottom: 0;
}

.topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: clamp(260px, 31vw, 430px);
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    color: #ffffff;
    font-size: clamp(1.15rem, 1.7vw, 1.55rem);
    font-weight: 800;
}

.nav-links a {
    padding-bottom: 4px;
}

.social-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.social-link svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 0;
    color: var(--white);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.hero-content {
    width: min(760px, 100%);
    padding-top: 0;
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.intro {
    width: min(540px, 100%);
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
}

.square-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.portfolio-square {
    position: relative;
    min-height: 360px;
    aspect-ratio: 1 / 1;
    padding: clamp(22px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    isolation: isolate;
    background: #222;
    color: var(--white);
}

.portfolio-square::before,
.portfolio-square::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    transition: transform 450ms ease, opacity 450ms ease;
}

.portfolio-square::after {
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.portfolio-square:hover::before {
    transform: scale(1.06);
}

.portfolio-square:hover::after {
    opacity: 0.62;
}

.photography::before {
    background: url("../images/home/card-photography.jpg") center / cover;
}

.design::before {
    background: url("../images/home/card-design.jpg") center / cover;
}

.studio::before {
    background: #001eff;
}

.section-number {
    position: absolute;
    top: clamp(22px, 3vw, 36px);
    left: clamp(22px, 3vw, 36px);
    font-size: 0.82rem;
    font-weight: 900;
}

.square-title {
    max-width: 14ch;
    min-height: 1.9em;
    display: flex;
    align-items: flex-end;
    font-size: clamp(2rem, 4vw, 4.5rem);
    line-height: 0.95;
    font-weight: 900;
}

.square-copy {
    display: block;
    max-width: 340px;
    min-height: 3.2em;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    line-height: 1.45;
}

.footer {
    padding: 28px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    color: var(--muted);
}

.footer p {
    margin: 0;
}

.footer a {
    font-weight: 800;
    color: var(--white);
}

.page-header {
    padding-bottom: 64px;
}

.page-intro {
    padding: 0 clamp(20px, 5vw, 72px) clamp(48px, 7vw, 96px);
}

.page-intro .section-number {
    position: static;
    display: block;
    margin: 0 0 18px;
}

.page-intro h1 {
    max-width: 980px;
    font-size: clamp(1.35rem, 2vw, 2.2rem);
    line-height: 1.05;
    font-weight: 800;
}

.page-intro p:last-child {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.55;
}

.category-links {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px clamp(18px, 3vw, 34px);
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.55;
}

.category-links a {
    color: inherit;
}

.category-links a:hover,
.category-links a[aria-current="page"] {
    color: var(--white);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.work-tile {
    min-height: 360px;
    aspect-ratio: 1 / 1;
    background: #111111;
    overflow: hidden;
}

.work-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-work-tile img {
    object-position: center 38%;
}

.text-tile,
.placeholder-tile {
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.text-tile span,
.placeholder-tile span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.text-tile h2 {
    max-width: 520px;
    margin: 18px 0 0;
    font-size: clamp(2rem, 3.5vw, 4rem);
    line-height: 0.98;
}

.photography-page .text-tile {
    background: #0008e6;
}

.design-page .text-tile {
    background: #ff0000;
}

.placeholder-tile {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
        #1b1b1b;
}

.accent-red {
    background: #a8362d;
}

.dark-tile {
    background: #080808;
}

.photo-gallery {
    padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 112px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
}

.photo-gallery figure {
    margin: 0;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #111111;
}

.products-page .photo-gallery figure,
.portraits-page .photo-gallery figure {
    aspect-ratio: 2 / 3;
}

.photo-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.design-gallery {
    padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 112px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px);
}

.design-gallery figure {
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111111;
}

.design-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-gallery figure {
    aspect-ratio: 1 / 1;
}

.construction-panel {
    margin: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 112px);
    min-height: clamp(280px, 38vw, 430px);
    padding: clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 22px;
    background: #111111;
}

.construction-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.construction-panel h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 4.8rem);
    line-height: 0.98;
}

.construction-contact {
    width: fit-content;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
}

@media (max-width: 900px) {
    .hero {
        padding: 40px clamp(20px, 5vw, 72px) 88px;
    }

    .square-grid {
        grid-template-columns: 1fr;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .design-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-square {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .hero {
        padding: 28px 20px 64px;
    }

    .page-header {
        padding-bottom: 48px;
    }

    .page-intro {
        padding-inline: 20px;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        padding-inline: 20px;
    }

    .design-gallery {
        grid-template-columns: 1fr;
        padding-inline: 20px;
    }

    .topbar {
        align-items: center;
    }

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

    .brand {
        width: clamp(180px, 58vw, 250px);
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 16px);
        right: 0;
        z-index: 10;
        min-width: 170px;
        padding: 16px;
        display: none;
        flex-direction: column;
        gap: 12px;
        border: 0;
        background: #000000;
        font-size: 1.1rem;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 6px 0;
    }

    .home-page .menu-toggle {
        display: none;
    }

    .home-page .nav-links {
        position: static;
        z-index: auto;
        min-width: auto;
        padding: 0;
        display: flex;
        flex-direction: row;
        border: 0;
        background: transparent;
    }

    .home-page .nav-links a {
        padding: 0;
    }

    .portfolio-square {
        padding: 24px;
    }

    .work-tile {
        min-height: 0;
    }

    .square-title {
        font-size: clamp(2.35rem, 13vw, 4rem);
    }
}
