:root {
  --bg: #0a0908;
  --paper: #f4ece0;
  --ink: #16110d;
  --muted: rgb(244 236 224 / 0.7);
  --gold: #c9a227;
  --mangrove: #9ad0c8;
  --font-display: Didot, "Bodoni 72", "Bodoni MT", serif;
  --font-body: Helvetica, "Helvetica Neue", "Trebuchet MS", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; margin: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 400; font-family: var(--font-display); }

.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; z-index: 80; background: var(--paper); color: var(--ink); padding: 8px 12px; }

.topnav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  height: 48px;
  padding: 0 var(--gutter);
  background: rgb(244 236 224 / 0.94);
  color: var(--ink);
  border-bottom: 1px solid rgb(22 17 13 / 0.12);
}
.logo {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.1em;
  transition: opacity 180ms ease;
}
.logo:hover { opacity: 0.7; }
.topnav-end { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }
.topnav nav { display: flex; gap: clamp(16px, 2.6vw, 32px); }
.topnav nav a {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}
.topnav nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.topnav nav a:hover,
.topnav nav a:focus-visible,
.topnav nav a[aria-current="page"] { opacity: 1; }
.topnav nav a:hover::after,
.topnav nav a:focus-visible::after,
.topnav nav a[aria-current="page"]::after { transform: scaleX(1); }
.topnav a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.menu-toggle { display: none; }
.nav-bag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
.nav-bag svg { width: 18px; height: 18px; }
.nav-bag:hover { opacity: 0.7; }
.nav-bag-count {
  position: absolute;
  top: 10px;
  right: 4px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 9px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
  display: none;
}
.nav-bag-count.is-on { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}
.btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-fill {
  background: var(--paper);
  color: var(--ink);
  border-color: rgb(244 236 224 / 0.9);
}
.btn-fill:hover { background: #fff; color: var(--ink); }

.hero {
  position: relative;
  height: min(88svh, 980px);
  min-height: 520px;
  overflow: hidden;
  background: #111;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.intro {
  position: relative;
  z-index: 1;
  margin-top: -28vh;
  padding: 0 var(--gutter) 72px;
  max-width: 920px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--mangrove);
}
.intro h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.lead {
  margin: 22px 0 32px;
  font-size: 18px;
  line-height: 1.55;
  max-width: 42ch;
  color: var(--paper);
}

.mural-pelicans .hero {
  margin-top: 48px;
  height: min(72svh, 56.25vw);
  min-height: 0;
}
.mural-pelicans .hero picture { display: block; height: 100%; }
.mural-pelicans .intro { margin-top: 0; padding-top: 40px; }
.mural-pelicans .gallery figure:nth-child(n) { min-height: 0; align-self: start; }
.mural-pelicans .gallery img { height: auto; }
@media (max-width: 720px) {
  .mural-pelicans .hero { height: min(76svh, 177.78vw); }
  .mural-pelicans .project-film-toggle { top: 16px; }
}

.hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.hero-film.is-playing { opacity: 1; }
.project-film-toggle {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: 64px;
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgb(244 236 224 / 0.35);
  border-radius: 50%;
  background: rgb(10 9 8 / 0.3);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.project-film-toggle svg { width: 20px; height: 20px; }
.project-film-toggle:hover { background: rgb(10 9 8 / 0.8); }
.project-film-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) {
  .hero-film { transition: none; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
  padding: 0 var(--gutter) 88px;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  background: #161210;
  min-height: 280px;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 800ms cubic-bezier(.16, 1, .3, 1);
}
.gallery figure.gallery-video {
  display: grid;
  place-items: center;
  min-height: 0 !important;
  align-self: start;
  cursor: default;
}
.gallery video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  background: transparent;
}
.gallery figure:hover img { transform: scale(1.03); }
.gallery figure:nth-child(1) { grid-column: span 8; min-height: 58vh; }
.gallery figure:nth-child(2) { grid-column: span 4; min-height: 58vh; }
.gallery figure:nth-child(3) { grid-column: span 5; min-height: 46vh; }
.gallery figure:nth-child(4) { grid-column: span 7; min-height: 46vh; }
.gallery figure:nth-child(5) { grid-column: span 4; min-height: 42vh; }
.gallery figure:nth-child(6) { grid-column: span 4; min-height: 42vh; }
.gallery figure:nth-child(7) { grid-column: span 4; min-height: 42vh; }
.gallery figure:nth-child(n + 8) { grid-column: span 6; min-height: 38vh; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter) 96px;
  border-top: 1px solid rgb(244 236 224 / 0.12);
  padding-top: 36px;
}
.pager a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 42%;
}
.pager a span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mangrove);
}
.pager a strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.pager a:last-child { text-align: right; align-items: flex-end; }
.pager a:hover strong { color: #fff; }

.pagefoot {
  padding: 28px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--bg); color: rgb(244 236 224 / 0.7);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  border-top: 1px solid rgb(244 236 224 / 0.12);
}
.pagefoot a:hover { color: var(--paper); }

@media (max-width: 720px) {
  .topnav nav { display: none; }
  .topnav.is-open nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    color: var(--ink);
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid rgb(22 17 13 / 0.12);
  }
  .topnav.is-open nav a { opacity: 0.62; color: var(--ink); }
  .topnav.is-open nav a:hover,
  .topnav.is-open nav a:focus-visible,
  .topnav.is-open nav a[aria-current="page"] { opacity: 1; color: var(--ink); }
  .menu-toggle {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: inherit;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11px;
  }
  .intro { margin-top: -18vh; padding-bottom: 48px; }
  .gallery figure,
  .gallery figure:nth-child(n) {
    grid-column: span 12;
    min-height: 42vh;
  }
  .pager { gap: 16px; }
  .pager a {
    flex: 1;
    min-width: 0;
    max-width: none;
  }
  .pager a strong {
    font-size: clamp(16px, 4.5vw, 22px);
    overflow-wrap: anywhere;
  }
}
body.lb-lock { overflow: hidden; }
/* Keep Rozy's portrait hero compact enough to introduce the mural on phones. */
@media (max-width: 720px) {
  .mural-rozy .logo { font-size: 22px; }
  .mural-rozy .hero {
    margin-top: 48px;
    height: min(76svh, 680px);
    min-height: 400px;
  }
  .mural-rozy .hero img { object-position: 54% center; }
  .mural-rozy .hero-shade {
    height: 62%;
    background: linear-gradient(transparent, rgb(10 9 8 / 0.6) 55%, var(--bg));
  }
  .mural-rozy .project-film-toggle { top: 16px; }
  .mural-rozy .intro { margin-top: -164px; padding-bottom: 40px; }
  .mural-rozy .eyebrow {
    max-width: 32ch;
    font-size: 9px;
    line-height: 1.6;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
  }
  .mural-rozy .intro h1 {
    font-size: clamp(38px, 10.5vw, 56px);
    line-height: 1.02;
    max-width: 13ch;
  }
  .mural-rozy .lead { margin: 24px 0; font-size: 16px; line-height: 1.65; }
  .mural-rozy .btn { width: 100%; }
  .mural-rozy .gallery { gap: 12px; padding-bottom: 48px; }
  .mural-rozy .gallery figure:nth-child(n) { min-height: 0; }
  .mural-rozy .gallery img { height: auto; }
  .mural-rozy .pager { padding-bottom: 48px; gap: 28px; }
  .mural-rozy .pagefoot { font-size: 10px; line-height: 1.8; }
}
.lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgb(10 9 8 / 0.94);
  padding: 56px 72px 72px;
}
.lb[hidden] { display: none; }
.lb figure {
  margin: 0;
  max-width: min(96vw, 1400px);
  max-height: 86svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lb img {
  max-width: 100%;
  max-height: 78svh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}
.lb figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 60ch;
}
.lb-count {
  position: absolute;
  left: var(--gutter);
  bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
}
.lb-close {
  top: 14px;
  right: var(--gutter);
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lb-close:hover { opacity: 1; }
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 36px;
  line-height: 1;
  opacity: 0.55;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev:hover,
.lb-next:hover { opacity: 1; }
.lb-close:focus-visible,
.lb-prev:focus-visible,
.lb-next:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 720px) {
  .lb { padding: 56px 16px 64px; }
  .lb-prev,
  .lb-next { display: none; }
}

@media (min-width: 721px) {
  .topnav .logo {
    font-size: 28px;
    line-height: 1;
    letter-spacing: 0.12em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery figure:hover img { transform: none; }
}

/* Match the mural photo viewer to the artwork modal shell. */
dialog.lb {
  width: 100%; height: 100dvh; max-width: 100%; max-height: 100dvh;
  margin: 0; padding: 96px 72px 72px; border: 0;
  background: #fbf6ea; color: #16110d; overflow: auto; overscroll-behavior: contain;
}
.lb::backdrop { background: rgb(10 9 8 / .7); }
.lb .artwork-modal-toolbar { position: fixed; inset: 0 0 auto; }
.lb figure { max-height: calc(100dvh - 176px); }
.lb img { max-height: calc(100dvh - 224px); }
.lb figcaption, .lb-count { color: #71675b; }
.lb-prev, .lb-next { color: #16110d; background: #f2ecdf; border-radius: 50%; width: 44px; height: 44px; opacity: 1; font-size: 28px; }
.lb-count { bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
@media (max-width: 720px) {
  dialog.lb { padding: calc(88px + env(safe-area-inset-top, 0px)) 20px max(64px, env(safe-area-inset-bottom, 0px)); }
}
