@font-face {
    font-family: "PP Monument";
    src: url("assets/pp monument/PPMonumentNormal-Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "PP Monument";
    src: url("assets/pp monument/PPMonumentNormal-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Maison Mono";
    src: url("assets/maison mono/MaisonMono-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --black: #0e0f0f;
    --ink: #111212;
    --white: #fff;
    --paper: #d9d9cf;
    --line-dark: rgba(255, 255, 255, .18);
    --line-light: rgba(14, 15, 15, .24);
    --display: "PP Monument", Arial, sans-serif;
    --mono: "Maison Mono", "SFMono-Regular", Consolas, monospace;
    --pad: clamp(1.25rem, 3vw, 3.25rem);
    --header-h: 4.75rem;
    --header-gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); background: var(--black); }
body { margin: 0; overflow-x: hidden; background: var(--black); color: var(--white); font-family: var(--display); font-weight: 300; font-synthesis: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--paper); color: var(--ink); }
.skip-link { position: fixed; z-index: 1000; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--white); color: var(--ink); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.project-nav-backdrop { position: fixed; z-index: 90; top: 0; right: 0; left: 0; height: 7.75rem; pointer-events: none; background: rgba(255, 255, 255, .001); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .7) 64%, rgba(0, 0, 0, .26) 84%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 42%, rgba(0, 0, 0, .7) 64%, rgba(0, 0, 0, .26) 84%, transparent 100%); }
.project-header { position: fixed; z-index: 100; top: 0; left: 0; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.5rem var(--pad); }
.project-brand { display: inline-flex; width: clamp(7.4rem, 11vw, 10.8rem); mix-blend-mode: difference; }
.project-brand img { display: block; width: 100%; height: auto; filter: brightness(0) invert(1); }
.back-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; line-height: 1; text-decoration: none; text-transform: uppercase; mix-blend-mode: difference; }
.back-link span { font-variant-emoji: text; }

.project-hero { display: grid; grid-template-rows: auto 1fr auto; min-height: 100svh; padding: calc(var(--header-h) + var(--header-gap)) var(--pad) var(--header-gap); }
.project-kicker { display: flex; align-items: center; justify-content: space-between; min-height: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-dark); color: rgba(255, 255, 255, .5); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.project-hero h1 { max-width: 13ch; margin: 0; align-self: center; font-size: clamp(3.2rem, 7vw, 7.4rem); font-weight: 300; letter-spacing: -.04em; line-height: .88; text-wrap: balance; }
.project-intro { display: grid; grid-template-columns: minmax(18rem, 36rem) 1fr; gap: 3rem; align-items: end; align-self: end; }
.project-intro p { margin: 0; }
#projectDescription { color: rgba(255, 255, 255, .68); font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.55; }
#projectMeta { justify-self: end; color: rgba(255, 255, 255, .42); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; line-height: 1.55; text-align: right; text-transform: uppercase; white-space: pre-line; }

.project-cover { position: relative; height: 100svh; overflow: hidden; margin: 0; background: #171818; container-type: size; }
.project-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover video { width: 100%; height: 100%; object-fit: contain; }

.project-gallery-section { padding: var(--header-gap) var(--pad) clamp(5rem, 9vw, 8rem); background: var(--paper); color: var(--ink); }
.project-section-label { display: flex; align-items: center; justify-content: space-between; min-height: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-light); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.gallery-heading { display: grid; grid-template-columns: 1.35fr minmax(17rem, .55fr); gap: 4rem; align-items: end; padding: clamp(3rem, 6vw, 5rem) 0; }
.gallery-heading h2 { margin: 0; font-size: clamp(2.7rem, 5.5vw, 6.1rem); font-weight: 300; letter-spacing: -.035em; line-height: .92; }
.gallery-heading p { max-width: 25rem; margin: 0; font-size: clamp(.95rem, 1.15vw, 1.1rem); line-height: 1.55; }
.project-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.7rem, 1.4vw, 1.5rem); align-items: stretch; }
.gallery-item { grid-column: span 6; overflow: hidden; margin: 0; background: #c9c9c0; }
.gallery-item--wide { grid-column: 1 / -1; }
.gallery-item--wide:has(video) { margin-inline: clamp(1.75rem, 8vw, 7rem); }
.gallery-item--wide:has(video)[data-orient="portrait"],
.gallery-item--solo { grid-column: 1 / -1; justify-self: center; width: min(24rem, 72%); margin-inline: auto; }
.gallery-item--portrait { grid-column: span 5; }
.gallery-item--offset { grid-column: 6 / -1; }
.gallery-item img, .gallery-item video { display: block; width: 100%; height: auto; }
.gallery-item video { background: #111; }

.next-project { padding: 0 var(--pad); background: var(--black); }
.next-project a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 1.5rem; align-items: center; min-height: calc(50svh - var(--header-h)); padding: calc(var(--header-h) + var(--header-gap)) 0 3rem; border-top: 1px solid var(--line-dark); text-decoration: none; }
.next-project span:first-child { grid-column: 1; grid-row: 1; margin: 0; color: rgba(255, 255, 255, .45); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.next-project strong { grid-column: 1; grid-row: 2; margin-top: .9rem; font-size: clamp(2.8rem, 6.4vw, 6.8rem); font-weight: 300; letter-spacing: -.04em; line-height: .9; }
.next-project span:last-child { display: grid; grid-column: 2; grid-row: 1 / span 2; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; font-family: var(--mono); font-size: .85rem; font-variant-emoji: text; transition: background .25s, color .25s, transform .25s; }
.next-project a:hover span:last-child, .next-project a:focus-visible span:last-child { background: var(--white); color: var(--ink); transform: none; }
.next-project a:focus-visible { outline: 1px solid rgba(255, 255, 255, .65); outline-offset: 5px; }

.project-footer { padding: 2.5rem var(--pad) 1.5rem; }
.project-footer > img { display: block; width: 100%; height: auto; margin-bottom: 3.25rem; filter: brightness(0) invert(1); }
.project-footer > div { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; min-height: 2.75rem; padding-top: 1rem; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; line-height: 1; text-transform: uppercase; }
.project-footer p { margin: 0; }
.project-footer a { justify-self: center; text-decoration: none; }
.project-footer p:last-child { justify-self: end; }

.project-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.project-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
    .gallery-heading { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
    .project-header { padding-top: 1.25rem; }
    .project-brand { width: 7.5rem; }
    .back-link { font-size: .54rem; }
    .project-hero { min-height: 100svh; }
    .project-kicker { gap: 1rem; }
    .project-kicker span:last-child { text-align: right; }
    .project-hero h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
    .project-intro { grid-template-columns: 1fr; gap: 1.5rem; }
    #projectMeta { justify-self: start; text-align: left; }
    .project-cover { height: 100svh; }
    .gallery-heading h2 { font-size: clamp(2.45rem, 10.7vw, 3.45rem); }
    .project-gallery { grid-template-columns: 1fr; gap: .8rem; }
    .gallery-item, .gallery-item--wide, .gallery-item--portrait, .gallery-item--offset, .gallery-item--solo { grid-column: 1; }
    .gallery-item--wide:has(video) { margin-inline: clamp(1rem, 6vw, 3rem); }
    .gallery-item--wide:has(video)[data-orient="portrait"],
    .gallery-item--solo { width: min(22rem, 86%); margin-inline: auto; }
    .next-project a { grid-template-columns: 1fr auto; }
    .next-project strong { font-size: clamp(2.7rem, 13vw, 4.3rem); }
    .project-footer > div { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
    .project-footer a { justify-self: end; }
    .project-footer p:last-child { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .project-reveal { opacity: 1; transform: none; }
}
