@font-face {
  font-family: "Infini";
  src: url("assets/fonts/infini-regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --ink: #171613;
  --paper: #f7f4ed;
  --paper-deep: #e9e2d6;
  --accent: #a64d34;
  --muted: #706b62;
  --line: rgba(23, 22, 19, .16);
  --line-dark: rgba(247, 244, 237, .18);
  --sans: "Infini", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body, body *, body *::before, body *::after { font-family: var(--sans) !important; font-style: normal !important; font-weight: 400 !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.viewer-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 1rem; padding: .8rem 1rem; background: var(--ink); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* Header */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 82px;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 237, .9);
  backdrop-filter: blur(18px);
}
.wordmark { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.wordmark-mark { width: 42px; height: 42px; display: block; border: 1px solid var(--line); border-radius: 3px; object-fit: cover; box-shadow: 0 5px 16px rgba(23,22,19,.08); }
.wordmark-copy { display: grid; gap: .18rem; }
.wordmark-copy strong { letter-spacing: -.025em; font-size: .92rem; line-height: 1; }
.wordmark-copy small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .42rem; line-height: 1; }
.site-header nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.site-header nav a, footer a { text-transform: uppercase; letter-spacing: .14em; text-decoration: none; font-size: .61rem; }
.site-header nav a { position: relative; padding: .6rem 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 1px; background: currentColor; transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after, .site-header nav a[aria-current="page"]::after { right: 0; }
.menu-button { display: none; border: 0; padding: .6rem 0; background: none; text-transform: uppercase; letter-spacing: .13em; font-size: .62rem; cursor: pointer; }

/* Introduction */
.hero {
  width: min(1600px, 100%);
  min-height: min(760px, calc(100svh - 82px));
  margin: auto;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 6vw, 6rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(3.5rem, 8vw, 8rem);
}
.hero-kicker { padding-bottom: 1rem; display: flex; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: .58rem; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .45fr); gap: clamp(2rem, 7vw, 8rem); align-items: end; }
.hero h1 { margin: 0; max-width: 1050px; font-size: clamp(4.4rem, 10.2vw, 10rem); line-height: .79; letter-spacing: -.07em; }
.hero h1 em { color: var(--accent); }
.hero-intro { align-self: end; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.hero-intro p { margin: 0 0 2rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.6; }
.hero-link, .about-link { display: inline-flex; gap: .8rem; align-items: center; text-transform: uppercase; letter-spacing: .14em; text-underline-offset: .45em; font-size: .6rem; }
.hero-link span, .about-link span { font-size: 1rem; transition: transform .2s ease; }
.hero-link:hover span { transform: translateY(4px); }
.about-link:hover span { transform: translateX(5px); }

/* Work collection */
.collection { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 4vw, 4rem); background: var(--ink); color: var(--paper); }
.section-heading { max-width: 1480px; margin: auto; padding-bottom: clamp(2rem, 4vw, 3.5rem); display: flex; justify-content: space-between; align-items: end; gap: 2rem; border-bottom: 1px solid var(--line-dark); }
.eyebrow { margin: 0 0 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .2em; font-size: .58rem; }
.collection .eyebrow { color: #aaa399; }
.section-heading h2, .about h2 { margin: 0; font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .88; letter-spacing: -.05em; }
.collection-count { margin: 0; color: #aaa399; text-transform: uppercase; letter-spacing: .14em; font-size: .58rem; }
.controls {
  position: sticky;
  z-index: 12;
  top: 82px;
  max-width: 1480px;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(23,22,19,.94);
  backdrop-filter: blur(16px);
}
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.filter { min-height: 36px; padding: 0 .8rem; border: 1px solid rgba(247,244,237,.28); border-radius: 999px; background: transparent; color: var(--paper); text-transform: uppercase; letter-spacing: .11em; font-size: .55rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter:hover, .filter.is-active { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.search-label { width: min(270px, 100%); flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid rgba(247,244,237,.42); }
.search-label input { width: 100%; min-width: 0; border: 0; outline: 0; padding: .7rem 0; background: transparent; color: var(--paper); font-size: .78rem; }
.search-label input::placeholder { color: #938d83; }
.search-label > span:last-child { color: #938d83; text-transform: uppercase; letter-spacing: .12em; font-size: .48rem; }
.gallery-status { max-width: 1480px; min-height: 30vh; margin: auto; display: grid; place-items: center; color: #aaa399; text-transform: uppercase; letter-spacing: .16em; font-size: .6rem; }
.gallery { max-width: 1480px; margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 5rem) clamp(1rem, 2vw, 2rem); align-items: start; }
.work { min-width: 0; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.work:hover, .work:focus-within { transform: translateY(-4px); }
.work-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #282620; box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.media-trigger { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; overflow: hidden; background: none; color: inherit; text-align: left; cursor: pointer; }
.work-image, .work-preview, .inline-player { width: 100%; height: 100%; display: block; object-fit: cover; background: #111; }
.work-image { filter: saturate(.84) contrast(.96); transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .35s; }
.media-trigger:hover .work-image, .media-trigger:focus-visible .work-image { transform: scale(1.025); filter: saturate(1) contrast(1); }
.work-preview { position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.work-preview.is-ready { opacity: 1; }
.inline-player { object-fit: contain; }
.video-placeholder { position: absolute; inset: 0; background: radial-gradient(circle at 72% 25%, rgba(166,77,52,.55), transparent 32%), linear-gradient(145deg, #35322c, #1c1a17); }
.work-type { position: absolute; z-index: 3; top: .8rem; right: .8rem; padding: .4rem .55rem; background: rgba(23,22,19,.74); color: var(--paper); backdrop-filter: blur(8px); text-transform: uppercase; letter-spacing: .14em; font-size: .5rem; }
.play-badge { position: absolute; z-index: 3; left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%,-50%); border: 1px solid rgba(247,244,237,.88); border-radius: 50%; background: rgba(23,22,19,.35); backdrop-filter: blur(7px); transition: transform .25s, background .25s; }
.play-badge::after { content: ""; position: absolute; left: 21px; top: 17px; border-left: 11px solid var(--paper); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.media-trigger:hover .play-badge { transform: translate(-50%,-50%) scale(1.08); background: var(--accent); }
.work-info { padding-top: .9rem; display: grid; grid-template-columns: 2rem minmax(0,1fr) auto; gap: .55rem; align-items: baseline; border-top: 1px solid transparent; }
.work-number, .work-source { color: #8f897f; text-transform: uppercase; letter-spacing: .13em; font-size: .5rem; }
.work-title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(.82rem, 1vw, .98rem); }
.empty-state { max-width: 1480px; min-height: 34vh; margin: auto; display: grid; place-items: center; align-content: center; gap: 1rem; text-align: center; }
.empty-state p { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.empty-state button { border: 0; border-bottom: 1px solid; padding: .4rem 0; background: none; color: inherit; text-transform: uppercase; letter-spacing: .13em; font-size: .58rem; cursor: pointer; }

/* About and footer */
.about { max-width: 1480px; margin: auto; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 4rem); display: grid; grid-template-columns: minmax(160px, .45fr) minmax(0, 1.55fr); gap: clamp(3rem, 8vw, 9rem); }
.about > div { max-width: 900px; }
.about p:not(.eyebrow) { max-width: 670px; margin: 2rem 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.7; }
footer { min-height: 110px; padding: 2rem clamp(1.25rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: .6rem; }
.footer-links { display: flex; gap: 2rem; }

/* Media viewer */
.viewer { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; border: 0; padding: 0; background: var(--ink); color: var(--paper); }
.viewer::backdrop { background: rgba(0,0,0,.85); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; animation: reveal .25s ease-out; }
.viewer-bar, .viewer-meta { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 1.5rem; }
.viewer-bar { border-bottom: 1px solid var(--line-dark); }
.viewer-meta { border-top: 1px solid var(--line-dark); }
.viewer-bar > div { min-width: 0; display: flex; align-items: baseline; gap: 1rem; }
.viewer-bar h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.viewer-bar span, .viewer-meta { color: #aaa399; text-transform: uppercase; letter-spacing: .13em; font-size: .55rem; }
.close-button { border: 0; padding: .5rem; background: transparent; color: var(--paper); text-transform: uppercase; letter-spacing: .12em; font-size: .58rem; cursor: pointer; }
.close-button span { margin-left: .5rem; color: inherit; font-size: 1.3rem; }
.viewer-stage { min-height: 0; display: grid; place-items: center; overflow: hidden; background: #0c0c0b; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: calc(100vh - 125px); display: block; object-fit: contain; }
.viewer-stage video { width: 100%; height: 100%; }
.viewer-meta p { margin: 0; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: min(620px, calc(100% - 2rem)); padding: 1rem 1.2rem; background: var(--accent); color: #fff; box-shadow: 0 12px 45px rgba(0,0,0,.28); text-align: center; font-size: .75rem; line-height: 1.5; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1000px) {
  .hero { min-height: 680px; }
  .hero-main { grid-template-columns: 1fr; align-content: end; }
  .hero-intro { max-width: 540px; }
  .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .controls { align-items: stretch; flex-direction: column; gap: 1rem; }
  .search-label { width: 100%; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; }
  .wordmark-mark { width: 36px; height: 36px; }
  .wordmark-copy small { display: none; }
  .menu-button { display: block; }
  .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: 1.4rem; flex-direction: column; align-items: flex-start; gap: .5rem; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { width: 100%; padding: .7rem 0; }
  .hero { min-height: calc(100svh - 68px); padding-top: 1.5rem; gap: 3rem; }
  .hero-kicker span:last-child { display: none; }
  .hero h1 { font-size: clamp(3.8rem, 19vw, 6rem); }
  .controls { top: 68px; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .gallery { grid-template-columns: 1fr; gap: 3rem; }
  .work-visual { aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  footer { align-items: flex-start; flex-direction: column; }
  .viewer-bar, .viewer-meta { padding: .8rem 1rem; }
  .viewer-meta { gap: 1rem; }
  .viewer-stage img, .viewer-stage video { max-height: calc(100svh - 116px); }
}

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