@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f3f1eb;
  --ink: #11110f;
  --acid: #d8ff3e;
  --muted: #6d6b65;
  --line: #cbc8bf;
  --pad: clamp(1.1rem, 3.5vw, 4rem);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 99; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { min-height: 4.75rem; padding: 0 var(--pad); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; font-weight: 900; letter-spacing: -.06em; font-size: 1.5rem; }
.brand span { margin-left: .15rem; font-size: .48rem; vertical-align: top; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.7rem); }
nav a, footer a { position: relative; text-decoration: none; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: currentColor; transition: right .2s; }
nav a:hover::after { right: 0; }

.eyebrow { margin: 0; font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero { min-height: calc(100svh - 4.75rem); padding: var(--pad); display: grid; grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr); gap: clamp(2rem, 5vw, 7rem); overflow: hidden; }
.hero-intro { padding-top: clamp(2rem, 7vh, 6rem); display: flex; flex-direction: column; min-width: 0; }
.hero h1 { margin: auto 0; font: 400 clamp(4rem, 7.3vw, 8.4rem)/.84 var(--serif); letter-spacing: -.075em; }
.hero h1 em { font-weight: 400; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.hero-copy { margin: 0; max-width: 29rem; font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.5; }
.scroll-cue { flex: 0 0 auto; padding-bottom: .15rem; text-decoration: none; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-gallery { position: relative; min-height: 630px; }
.hero-art { position: absolute; margin: 0; background: #ddd; box-shadow: 0 1rem 2.5rem rgba(20,20,15,.13); overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-main { z-index: 2; width: 50%; height: 73%; left: 7%; bottom: 3%; transform: rotate(-2.5deg); }
.hero-art-top { width: 42%; height: 48%; top: 2%; right: 1%; transform: rotate(4deg); }
.hero-art-bottom { z-index: 3; width: 34%; height: 38%; right: 5%; bottom: 4%; transform: rotate(2deg); }
.hero-index { position: absolute; z-index: 4; top: 9%; left: 0; margin: 0; padding: .8rem; background: var(--acid); font-size: .62rem; line-height: 1.25; text-transform: uppercase; letter-spacing: .11em; transform: rotate(-4deg); }

.work { padding: clamp(5rem, 9vw, 9rem) var(--pad); background: var(--ink); color: white; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 2.5rem; }
.section-heading h2, .about h2, .contact h2 { margin: .4rem 0 0; font: 400 clamp(3rem, 7vw, 7rem)/.88 var(--serif); letter-spacing: -.06em; }
.section-heading .eyebrow { color: #8e8e87; }
.section-heading > p { margin: 0; color: #8e8e87; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.filters { display: flex; gap: .45rem; overflow-x: auto; padding: .25rem 0 3rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-button { border: 1px solid #454540; color: #b4b4ad; background: transparent; padding: .66rem 1rem; border-radius: 99px; white-space: nowrap; cursor: pointer; font-size: .72rem; }
.filter-button[aria-pressed="true"] { background: var(--acid); color: var(--ink); border-color: var(--acid); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 7vw, 8rem) clamp(1rem, 2.8vw, 3rem); align-items: start; }
.project-card { min-width: 0; }
.project-card:nth-child(4n + 2) { margin-top: clamp(5rem, 10vw, 10rem); }
.project-card:nth-child(4n + 3) { grid-column: 1 / -1; width: 78%; margin-left: auto; }
.project-card[hidden] { display: none; }
.project-button { width: 100%; padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; }
.project-media { display: grid; grid-template-columns: 1fr; gap: .5rem; overflow: hidden; }
.project-card--collection .project-media { grid-template-columns: 1.45fr .75fr; align-items: stretch; }
.project-image-wrap { position: relative; min-height: 0; overflow: hidden; background: #292925; }
.project-image-wrap::after { content: "Open ↗"; position: absolute; right: .75rem; bottom: .75rem; padding: .58rem .7rem; background: var(--acid); color: var(--ink); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: 0; transform: translateY(.35rem); transition: .2s ease; }
.project-image { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: contain; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.project-card:not(.project-card--collection) .project-media { max-height: 760px; }
.project-button:hover .project-image { transform: scale(1.025); }
.project-button:hover .project-image-wrap:first-child::after { opacity: 1; transform: none; }
.project-info { display: grid; grid-template-columns: 2rem 1fr auto; gap: .35rem .75rem; padding-top: .95rem; border-top: 1px solid #4a4a45; }
.project-info h3 { margin: 0; font: 400 clamp(1.25rem, 2vw, 2rem)/1.1 var(--serif); letter-spacing: -.025em; }
.project-info p { margin: 0; color: #8e8e87; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; }
.project-info .project-number { grid-column: 1; grid-row: 1 / 3; color: var(--acid); }
.project-info .category { grid-column: 2; }
.project-info .year { grid-column: 3; grid-row: 1; }

.about, .contact { padding: clamp(6rem, 11vw, 11rem) var(--pad); display: grid; grid-template-columns: minmax(9rem, 1fr) 2.2fr; gap: 2rem; border-top: 1px solid var(--line); }
.about > div, .contact > div { max-width: 62rem; }
.about h2, .contact h2 { margin-bottom: 3rem; }
.about div > p { max-width: 42rem; font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.5; }
.contact { background: var(--acid); color: var(--ink); }
.contact .eyebrow { color: #4f5c14; }
.contact-link { display: inline-block; font: 400 clamp(1.45rem, 4.2vw, 4.4rem)/1 var(--serif); letter-spacing: -.04em; text-underline-offset: .2em; }
.social-links { margin: 2.5rem 0 0; }
.social-links a { font-size: .72rem; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.social-links a:hover { text-decoration: underline; text-underline-offset: .3rem; }
footer { min-height: 5rem; padding: 0 var(--pad); background: var(--ink); color: #999; border-top: 1px solid #333; display: flex; justify-content: space-between; align-items: center; font-size: .7rem; }

dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8,8,7,.88); backdrop-filter: blur(4px); }
.viewer { width: 100%; height: 100%; background: var(--paper); color: var(--ink); }
.viewer-shell { height: 100%; padding: 0 var(--pad); overflow-y: auto; overscroll-behavior: contain; }
.viewer-header { position: sticky; z-index: 5; top: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); background: rgba(243,241,235,.96); backdrop-filter: blur(10px); }
.viewer-header h2 { margin: .25rem 0 0; font: 400 clamp(1.8rem, 4vw, 3.8rem)/1 var(--serif); letter-spacing: -.045em; }
.viewer-meta, .viewer-description { margin: 0; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.viewer-description { max-width: 760px; margin: 1.25rem auto 0; text-transform: none; letter-spacing: 0; }
.icon-button { border: 0; background: transparent; padding: .65rem; cursor: pointer; }
.icon-button span { font-size: 1.4rem; margin-left: .35rem; }
.viewer-gallery { width: min(100%, 760px); display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 5.5rem); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 8rem); }
.viewer-artwork { position: relative; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: visible; }
.viewer-artwork img { width: 100%; height: auto; object-fit: contain; transition: transform .3s ease; }
.viewer-artwork span { position: absolute; right: 0; bottom: -1.45rem; color: var(--muted); font-size: .58rem; letter-spacing: .1em; }
.viewer-artwork:hover img { transform: scale(1.012); }
button:focus-visible, a:focus-visible { outline: 2px solid #376dff; outline-offset: 4px; }

.pswp { --pswp-bg: #080807; }
.pswp__counter { font-family: var(--sans); font-size: .7rem; letter-spacing: .1em; }
.pswp__button { color: white; }

@media (max-width: 760px) {
  .site-header { min-height: 4.2rem; }
  nav { gap: .85rem; }
  nav a { font-size: .65rem; }
  .hero { min-height: auto; padding-top: 1.75rem; padding-bottom: 2.5rem; grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-intro { min-height: auto; padding-top: 0; }
  .hero h1 { margin: 2.15rem 0 2.7rem; font-size: clamp(3.8rem, 18vw, 6.2rem); line-height: .86; }
  .hero-bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; }
  .hero-copy { max-width: 19rem; font-size: .88rem; line-height: 1.45; }
  .scroll-cue { padding-bottom: .12rem; white-space: nowrap; }
  .hero-gallery { min-height: clamp(350px, 94vw, 430px); margin: 0; }
  .hero-art img { object-fit: cover; }
  .hero-art-main { z-index: 3; width: 58%; height: auto; aspect-ratio: .846; left: 21%; bottom: 4%; transform: rotate(-1.5deg); }
  .hero-art-top { z-index: 1; width: 43%; height: auto; aspect-ratio: 1; top: 8%; left: 0; right: auto; transform: rotate(-4deg); }
  .hero-art-bottom { z-index: 2; width: 40%; height: auto; aspect-ratio: 1; right: 0; bottom: 8%; transform: rotate(4deg); }
  .hero-index { display: none; }
  .section-heading { align-items: end; }
  .project-grid { display: block; }
  .project-card, .project-card:nth-child(4n + 2), .project-card:nth-child(4n + 3) { width: auto; margin: 0 0 4.5rem; }
  .project-card--collection .project-media { grid-template-columns: 1.35fr .75fr; }
  .project-image-wrap::after { display: none; }
  .project-info { grid-template-columns: 1.7rem 1fr auto; }
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .viewer-shell { padding: 0 1rem; }
  .viewer-header { padding: .8rem 0; }
  .viewer-header h2 { font-size: 1.65rem; }
  .viewer-gallery { gap: 3rem; padding: 2rem 0 5rem; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.3rem; }
  .hero-intro { min-height: auto; }
  .hero h1 { margin: 1.85rem 0 2.45rem; font-size: clamp(3.55rem, 17.2vw, 4.5rem); }
  .hero-copy { max-width: 15.5rem; font-size: .82rem; }
  .scroll-cue { font-size: .6rem; }
  .hero-gallery { min-height: 350px; }
  .hero-art-main { width: 60%; left: 20%; }
  .hero-art-top { width: 42%; }
  .hero-art-bottom { width: 39%; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .hero { grid-template-columns: .8fr 1.2fr; gap: 2rem; }
  .hero h1 { font-size: clamp(4rem, 8vw, 6rem); }
  .hero-gallery { min-height: 600px; }
}

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