:root {
  --paper: #eef1e8;
  --ink: #142322;
  --night: #111a16;
  --night-2: #17231d;
  --sage: #c2c7a5;
  --line: #526158;
  --muted: #aeb8b1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--paper); font-family: Arial, Helvetica, sans-serif; overflow-x: hidden; }
.bts-page { --r-line: var(--line); }
body.lightbox-open { overflow: hidden; }
body, button { font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }
h1, p { margin: 0; }
::selection { background: var(--sage); color: #111; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }

.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; background: white; color: black; padding: 15px; }
.skip-link:focus { top: 15px; }

.intro { padding: clamp(64px, 10vw, 150px) 4vw clamp(50px, 8vw, 110px); display: grid; grid-template-columns: 1.35fr .65fr; gap: 8vw; align-items: end; }
.kicker { font-size: .75rem; line-height: 1.6; letter-spacing: .13em; text-transform: uppercase; }
.intro h1 { margin-top: 28px; font-size: clamp(4.5rem, 10.5vw, 10.8rem); font-weight: 400; line-height: .79; letter-spacing: -.075em; }
.intro h1 em { color: var(--sage); font-style: normal; }
.intro-copy { padding-bottom: 1.5vw; }
.intro-copy > p { max-width: 420px; font-size: clamp(1.35rem, 2.2vw, 2.2rem); line-height: 1.25; letter-spacing: -.035em; }
.edition { display: block; margin-top: 36px; color: var(--muted); font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }

.gallery-heading { min-height: 76px; padding: 20px 4vw; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-heading > p:last-child:not(:first-child) { color: var(--muted); font-size: .875rem; }

.filters-wrap { position: sticky; top: 0; z-index: 20; min-height: 72px; padding: 12px 4vw; display: flex; align-items: center; justify-content: space-between; gap: 25px; background: rgba(17, 26, 22, .94); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
.filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 99px; background: transparent; font-size: .82rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.filter:hover { border-color: #839087; }
.filter.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.result-count { flex: 0 0 auto; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.gallery { padding: 4vw; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(14px, 2vw, 32px); scroll-margin-top: 90px; }
.frame { position: relative; min-width: 0; overflow: hidden; background: #0a0f0d; }
.frame[hidden] { display: none; }
.frame.feature { grid-column: span 8; }
.frame.wide { grid-column: span 7; }
.frame.mid { grid-column: span 5; }
.frame.tall, .frame.portrait { grid-column: span 4; }
.photo-trigger { display: block; position: relative; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.frame img { height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02); transition: transform .8s cubic-bezier(.2,.7,.3,1), filter .35s ease; }
.frame.feature .photo-trigger { aspect-ratio: 16 / 10; }
.frame.wide .photo-trigger { aspect-ratio: 16 / 10; }
.frame.mid .photo-trigger { aspect-ratio: 4 / 3; }
.frame.tall .photo-trigger { aspect-ratio: 3 / 4; }
.frame.portrait .photo-trigger { aspect-ratio: 4 / 5; }
.frame-info { position: absolute; inset: 0; padding: clamp(19px, 2.2vw, 35px); display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(180deg, transparent 25%, rgba(5, 9, 7, .16) 48%, rgba(5, 9, 7, .92) 100%); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.frame-info small { margin-bottom: 12px; color: #d8ded9; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.frame-info strong { max-width: 88%; font-size: clamp(1.65rem, 3vw, 3.6rem); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.project-link { margin-top: 21px; align-self: flex-start; border-bottom: 1px solid currentColor; padding-bottom: 8px; pointer-events: auto; font-size: .8rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.frame:hover img, .photo-trigger:focus-visible img { transform: scale(1.025); filter: saturate(1) contrast(1.04); }
.frame:hover .frame-info, .frame:focus-within .frame-info { opacity: 1; transform: none; }

.archive-note { margin: 6vw 4vw 10vw; padding: 28px 0 0; border-top: 1px solid var(--line); }
.archive-note > a { margin-top: 22px; display: flex; justify-content: space-between; align-items: end; gap: 35px; font-size: clamp(3rem, 8vw, 8rem); line-height: .9; letter-spacing: -.065em; }
.archive-note a span { flex: 0 0 auto; padding-bottom: 10px; font-size: .85rem; letter-spacing: 0; border-bottom: 1px solid; }

.lightbox { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 11, 9, .98); color: var(--paper); overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 7, 5, .96); }
.lightbox-shell { position: relative; width: 100%; height: 100%; min-height: 100dvh; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: 72px minmax(0, 1fr); }
.lightbox-topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 3vw, 48px); border-bottom: 1px solid rgba(238, 241, 232, .24); }
.lightbox-count { color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
.lightbox-close { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.lightbox-control { align-self: center; width: 52px; height: 52px; margin: 10px; border: 1px solid rgba(238, 241, 232, .42); border-radius: 50%; background: rgba(17, 26, 22, .72); cursor: pointer; font-size: 1.25rem; transition: background .2s ease, border-color .2s ease; }
.lightbox-control:hover { background: rgba(238, 241, 232, .12); border-color: var(--paper); }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-figure { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; margin: 0; padding: clamp(18px, 3vw, 44px) 0 clamp(18px, 2.5vw, 36px); display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 18px; }
.lightbox-media { min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-media img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 210px); object-fit: contain; filter: none; }
.lightbox figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 28px; align-items: end; }
.lightbox figcaption small { grid-column: 1; color: var(--muted); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.lightbox figcaption strong { grid-column: 1; font-size: clamp(1.25rem, 2vw, 2rem); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.lightbox-project-link { grid-column: 2; grid-row: 1 / 3; align-self: end; border-bottom: 1px solid currentColor; padding-bottom: 7px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; gap: 50px; padding-right: 22px; padding-left: 22px; }
  .intro h1 { font-size: clamp(4.6rem, 17.5vw, 7.2rem); }
  .intro-copy { padding-bottom: 0; }
  .gallery-heading { padding-right: 22px; padding-left: 22px; }
  .filters-wrap { padding-right: 22px; padding-left: 22px; }
  .gallery { padding: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .frame.feature, .frame.wide { grid-column: span 2; }
  .frame.mid, .frame.tall, .frame.portrait { grid-column: span 1; }
  .frame-info { position: static; min-height: 116px; padding: 15px 0 0; background: none; opacity: 1; transform: none; }
  .frame-info small { margin-bottom: 7px; color: var(--muted); font-size: .65rem; line-height: 1.45; }
  .frame-info strong { max-width: 100%; font-size: 1.35rem; line-height: 1.02; }
  .project-link { margin-top: 10px; padding-bottom: 5px; font-size: .68rem; }
  .photo-trigger, .frame.feature .photo-trigger, .frame.wide .photo-trigger, .frame.mid .photo-trigger, .frame.tall .photo-trigger, .frame.portrait .photo-trigger { height: auto; aspect-ratio: auto; overflow: visible; }
  .frame img { aspect-ratio: 4 / 3; }
  .frame.feature img, .frame.wide img { aspect-ratio: 16 / 10; }
  .frame.tall img, .frame.portrait img { aspect-ratio: 3 / 4; }
  .archive-note { margin: 70px 22px 100px; }
  .archive-note > a { display: block; font-size: clamp(4rem, 19vw, 7rem); }
  .archive-note a span { display: block; width: fit-content; margin-top: 30px; }
  .lightbox-shell { grid-template-columns: 58px minmax(0, 1fr) 58px; grid-template-rows: 64px minmax(0, 1fr); }
  .lightbox-topbar { padding: 0 20px; }
  .lightbox-control { width: 44px; height: 44px; margin: 7px; }
  .lightbox-figure { padding: 16px 0 22px; gap: 14px; }
  .lightbox-media img { max-height: calc(100dvh - 220px); }
  .lightbox figcaption { grid-template-columns: 1fr; gap: 6px; }
  .lightbox-project-link { grid-column: 1; grid-row: auto; width: fit-content; margin-top: 7px; }
}

@media (max-width: 520px) {
  .intro { padding-top: 58px; padding-bottom: 55px; }
  .intro h1 { margin-top: 22px; font-size: 17.5vw; }
  .intro-copy > p { font-size: 1.45rem; }
  .gallery-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
  .filters-wrap { align-items: stretch; flex-direction: column; gap: 7px; padding-top: 10px; padding-bottom: 9px; }
  .filters { margin-right: -22px; padding-right: 22px; }
  .result-count { padding-left: 4px; }
  .gallery { display: block; }
  .frame + .frame { margin-top: 42px; }
  .frame-info { min-height: 0; }
  .frame-info strong { font-size: 1.55rem; }
  .frame img, .frame.feature img, .frame.wide img, .frame.mid img { aspect-ratio: 4 / 3; }
  .frame.tall img, .frame.portrait img { aspect-ratio: 4 / 5; }
  .lightbox-shell { grid-template-columns: 52px minmax(0, 1fr) 52px; }
  .lightbox-control { width: 40px; height: 40px; margin: 6px; }
  .lightbox-figure { padding-top: 12px; }
  .lightbox-media img { max-height: calc(100dvh - 250px); }
}

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