:root {
  color-scheme: light;
  --paper: #f5f1e9;
  --ink: #24231f;
  --muted: #625e54;
  --night: #191917;
  --gold: #ebc78c;
  --line: #d5cfc2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 2px solid #a06c31; outline-offset: 4px; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.05em; }
h2 { font-size: clamp(3rem, 7vw, 6.2rem); }
h3 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
section[id] { scroll-margin-top: 6rem; }
.wrap { width: min(1440px, 90%); margin-inline: auto; }
.skip { position: fixed; z-index: 9; left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.25rem 5%; background: #191917f7; color: var(--paper); border-bottom: 1px solid #ffffff23; backdrop-filter: blur(12px); }
.header a { text-decoration: none; }
.header a:hover { color: var(--gold); }
.wordmark { font-size: clamp(1.4rem, 3vw, 2rem); white-space: nowrap; }
.wordmark i { color: var(--gold); }
.header nav { display: flex; gap: clamp(.7rem, 2.5vw, 2.5rem); }
.header nav a { font-size: .86rem; }
.hero { min-height: min(740px, 84svh); display: grid; grid-template-columns: 1fr 1fr; background: var(--night); color: var(--paper); }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: clamp(3rem, 8vw, 8rem) 4vw clamp(3rem, 8vw, 8rem) 10%; animation: enter .8s both; }
.eyebrow { color: #75512b; text-transform: uppercase; letter-spacing: .16em; font-weight: 650; font-size: .75rem; margin-bottom: 1.15rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(3rem, 7vw, 8rem); }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 28rem; margin: 1.5rem 0; color: #e1dace; }
.pill { display: inline-flex; align-items: center; gap: 1.1rem; text-decoration: none; font-size: .88rem; font-weight: 650; padding: .75rem 1.15rem; border-radius: 100vmax; color: var(--night); background: var(--gold); transition: background .2s, transform .2s; }
.pill:hover { background: #ffdb9d; transform: translateY(-2px); }
.hero-media { min-height: 100%; position: relative; overflow: hidden; background: #514336; }
.hero-media img { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: center 40%; animation: hero-in 1.2s both; }
.work, .featured, .films, .about { padding-block: clamp(3rem, 8vw, 8rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; margin-bottom: 2rem; }
.section-head p { max-width: 28rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; border-block: 1px solid var(--line); padding: 1rem 0; }
.filters button { cursor: pointer; border: 1px solid var(--line); background: transparent; border-radius: 100vmax; padding: .45rem .9rem; font-size: .85rem; transition: background .2s, color .2s; }
.filters button:hover, .filters [aria-pressed="true"] { background: var(--night); color: var(--paper); border-color: var(--night); }
.collection { padding-block: 2.6rem 1rem; scroll-margin-top: 6rem; }
.collection h3, .featured h2 { margin-bottom: 1.25rem; }
.photo-grid, .featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, 1.25vw, 1rem); }
.photo { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 4 / 5; cursor: zoom-in; overflow: hidden; background: #ded6c8; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.65,.25,1); }
.photo:hover img, .photo:focus-visible img { transform: scale(1.045); }
.photo::after { content: '↗'; position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink); opacity: 0; transition: opacity .2s; }
.photo:hover::after, .photo:focus-visible::after { opacity: 1; }
.featured { padding-top: 0; }
.featured h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.featured-photo { aspect-ratio: 4 / 3; }
.films { background: #e9e1d4; }
.film-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.film-layout img { width: 100%; max-height: 440px; object-fit: cover; }
.film-layout ul { list-style: none; padding: 0; margin: 0; }
.film-layout li { border-bottom: 1px solid #c9bdab; }
.film-layout a { display: flex; justify-content: space-between; gap: .75rem; padding: .8rem 0; text-decoration: none; }
.film-layout a:hover { text-decoration: underline; }
.about { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 590px); align-items: center; justify-content: center; gap: clamp(1.5rem, 6vw, 6rem); }
.about > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about h2 { margin-bottom: 1.25rem; }
.about p:not(.eyebrow) { max-width: 40ch; color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2rem; }
.footer { justify-content: space-between; padding-block: 1.35rem; font-size: .82rem; color: var(--muted); }
dialog { inset: 0; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 1rem; border: none; background: #151514f5; color: white; }
dialog[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.25rem, 2vw, 1.5rem); animation: fade .22s both; }
dialog figure { display: grid; justify-items: center; gap: .65rem; }
dialog img { width: auto; max-width: 100%; max-height: 78dvh; object-fit: contain; }
dialog button { border: 1px solid #ffffff66; background: #272724; border-radius: 50%; width: 2.5rem; height: 2.5rem; line-height: 1; cursor: pointer; font-size: 1.6rem; }
.viewer-close { position: absolute; right: 1rem; top: 1rem; z-index: 1; }
body:has(dialog[open]) { overflow: hidden; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: .25; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@supports (animation-timeline: view()) {
  .collection h3 { animation: enter both; animation-timeline: view(); animation-range: entry 0% cover 16%; }
}
@media (max-width: 720px) {
  .header { flex-wrap: wrap; justify-content: space-between; gap: .55rem 1rem; padding-block: .85rem; }
  .header nav { flex-basis: 100%; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 2.5rem 5%; }
  .hero-media { min-height: min(80vw, 430px); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-layout, .about { grid-template-columns: 1fr; }
  .about > img { max-width: 390px; }
  dialog { padding-inline: .35rem; }
  dialog button { width: 2rem; height: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
