:root {
  color-scheme: light;
  --paper: #f2ede4;
  --paper-light: #faf6ee;
  --ink: #242523;
  --muted: #5c594f;
  --forest: #232824;
  --forest-deep: #121512;
  --olive: #e1bb85;
  --line: #d8cec0;
  --gallery: #151714;
  --gallery-text: #f4eee3;
  --gallery-muted: #c1bbae;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --masthead-height: 4.5rem;
  --masthead-content-top: calc(var(--masthead-height) + 1.25rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  font-synthesis: none;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: 0.23em; }
button, input { font: inherit; }
button { color: inherit; }
button, .button { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #697548; outline-offset: 5px; }
::selection { background: #dce0b5; color: var(--forest); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 0.98; }
h1 { font-size: clamp(4.25rem, 9.4vw, 9rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(3rem, 6.8vw, 6rem); letter-spacing: -0.024em; }
h3 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.012em; }
p { margin: 0; }
.shell { width: min(100% - clamp(2.5rem, 10vw, 10rem), 81rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section-tight { padding-block: clamp(3.4rem, 6vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(1.8rem, 4vw, 3.6rem); }
.section-title p { max-width: 33rem; margin-top: 0.85rem; color: var(--muted); }
.section-title .text-link { flex-shrink: 0; margin-bottom: 0.3rem; }
.text-link { text-decoration-thickness: 1px; font-weight: 600; }
.text-link:hover { color: #64714b; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 12; top: 0.5rem; left: 0.5rem; background: var(--paper-light); padding: 0.6rem 1rem; }

.masthead { position: relative; z-index: 4; background: var(--forest-deep); color: var(--paper); border-bottom: 1px solid #ffffff16; }
.masthead:has(+ main > :where(.hero, .field-banner, .about-story, .project-sequence):first-child) {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  border-bottom: 0;
}
.masthead:has(+ main > :where(.field-banner, .about-story, .project-sequence):first-child)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: calc(var(--masthead-height) + 4rem);
  background: linear-gradient(180deg, #121512c7, #121512a1 var(--masthead-height), transparent);
  pointer-events: none;
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--masthead-height); padding-inline: clamp(1.25rem, 5vw, 5rem);
}
.wordmark { text-decoration: none; font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -0.065em; white-space: nowrap; }
.wordmark span { color: var(--olive); }
#main-nav { display: flex; align-items: center; gap: clamp(1.2rem, 3.1vw, 3rem); }
#main-nav a { position: relative; color: #ecebe1; text-decoration: none; font-size: 0.92rem; font-weight: 500; white-space: nowrap; }
#main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.42rem;
  height: 1px; background: var(--olive); opacity: 0; transition: opacity 140ms ease;
}
#main-nav a:is(:hover, [aria-current])::after { opacity: 1; }
.menu-toggle { display: none; }

.hero {
  display: grid; grid-template-rows: 1fr auto; align-items: end; position: relative; isolation: isolate;
  min-height: clamp(36rem, calc(100svh - 4.5rem), 64rem);
  background: var(--forest-deep);
  color: #fffdf5;
}
.hero-photos, .hero-image, .hero-photos::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photos { z-index: -1; }
.hero-image { object-fit: cover; object-position: var(--photo-position, center); opacity: 0; transition: opacity 900ms ease; }
.hero-image.active { opacity: 1; }
.hero-photos::after { content: ""; background: linear-gradient(90deg, #1114139c, #1114133f 53%, transparent 80%), linear-gradient(0deg, #101211d4, transparent 57%); }
.hero-inner { padding-block: 5rem clamp(2.35rem, 6.5vh, 5.4rem); }
.hero h1 { font-size: clamp(5rem, 11.15vw, 11.5rem); line-height: 0.84; letter-spacing: -0.041em; }
.hero-location, .eyebrow { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.105em; text-transform: uppercase; }
.hero-location { margin-bottom: clamp(1.3rem, 3vw, 2.5rem); color: #f7ead7; }
.banner-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration-line: underline;
  text-decoration-color: var(--olive);
  text-underline-offset: .26em;
}
.banner-link:hover { color: var(--olive); }
.hero .banner-link { margin-top: clamp(1.7rem, 4vw, 3rem); }
.hero-footer { display: flex; justify-content: space-between; gap: 1.3rem; align-items: center; min-height: 4.45rem; padding-block: 0.5rem; border-top: 1px solid #fff4df5e; }
.hero-credit { color: #f1ebe1; font-size: 0.9rem; }
.hero-controls { display: flex; gap: 0.25rem; flex: 0 0 auto; }
.hero-control { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #ffffff00; background: transparent; cursor: pointer; }
.hero-control:is(:hover, :focus-visible) { border-color: #fff4df84; background: #0f120c44; }
.hero-control svg { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.button {
  display: inline-flex; justify-content: center; align-items: center;
  border: 1px solid var(--ink); min-height: 3rem; padding: 0.63rem 1.02rem;
  background: transparent; font-size: 0.92rem; text-decoration: none;
  font-weight: 600; text-align: center; cursor: pointer; transition: background 150ms ease, color 150ms ease;
}
.button:hover { background: var(--ink); color: var(--paper-light); }

.page-intro {
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3.8rem, 8vw, 8.1rem) clamp(2.4rem, 6vw, 5.1rem);
}
.page-intro h1 { max-width: 13ch; }
.page-intro p:not(.eyebrow) { margin-top: 1.05rem; max-width: 42rem; color: var(--muted); font-size: clamp(1.02rem, 1.7vw, 1.21rem); }
.page-intro .eyebrow { margin-bottom: 0.95rem; color: var(--muted); }
.page-intro .bread { display: inline-block; margin-bottom: 1.1rem; font-size: 0.95rem; }
.page-intro + .section { padding-top: clamp(2.6rem, 5vw, 5.5rem); }

.project-grid, .art-grid { display: grid; gap: clamp(1rem, 2.4vw, 2.1rem); }
.art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; row-gap: clamp(2rem, 5vw, 4rem); }
.project-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.project-grid > :nth-child(2) { margin-top: clamp(1.4rem, 6vw, 5.5rem); }
.project-grid > :nth-child(3) { width: min(100%, 55rem); grid-column: 1 / -1; justify-self: center; }
.tile { min-width: 0; }
.tile-link { display: block; text-decoration: none; }
.tile-link h3, .tile-link .tile-title { transition: color 160ms ease; }
.tile-link:hover h3, .tile-link:hover .tile-title { color: #596843; }
.tile-picture { position: relative; }
.tile-picture img {
  width: 100%; height: auto; object-fit: contain;
}
.tile-picture:empty { display: none; }
.art-grid h3 { font-size: clamp(1.8rem, 3.2vw, 2.85rem); }
.tile h3 { margin-top: 0.8rem; }
.tile-meta { color: var(--muted); font-size: 0.92rem; margin-top: 0.45rem; }
.tile-copy { margin-top: 0.55rem; color: var(--muted); max-width: 38ch; }
.project-grid h3 { font-size: clamp(2.3rem, 4.2vw, 4.2rem); }
.toned { background: #e9e1d4; }
.exhibitions-section { background: #e9dfd0; }
.poster-frame { padding: clamp(0.45rem, 1vw, 0.85rem); background: #1c1e19; }
.art-grid .tile-meta { max-width: 30ch; }
.feature-split { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); }
.feature-split.no-photo { grid-template-columns: minmax(0, 44rem); }
.feature-split p { margin-block: 1rem 1.3rem; max-width: 36rem; color: var(--muted); }
.feature-split h2 { max-width: 13ch; }

.home-portfolio, body[data-page="portfolio"] main { background: var(--gallery); color: var(--gallery-text); }
.home-portfolio .text-link:hover, .home-portfolio .tile-link:hover h3 { color: var(--olive); }
.home-portfolio :focus-visible, .portfolio-frames :focus-visible, .gallery-nav :focus-visible { outline-color: var(--olive); }
.home-portfolio + .section { border: 0; }
.collection-spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(0.9rem, 2.4vw, 2rem); row-gap: clamp(3rem, 9vw, 9.5rem); align-items: start; }
.collection-landscape { grid-column: 1 / 8; }
.collection-wildlife { grid-column: 9 / -1; margin-top: clamp(2.4rem, 7vw, 6.5rem); }
.collection-travel-adventure { grid-column: 1 / 5; }
.collection-night-skies { grid-column: 6 / -1; margin-top: clamp(2.4rem, 5.5vw, 5rem); }
.collection-caption { padding-top: 0.95rem; }
.collection-caption h3 { font-size: clamp(2rem, 4.4vw, 4.15rem); }
.gallery-heading { padding-block: clamp(3rem, 7vw, 7.5rem) clamp(2rem, 4vw, 4rem); }
.gallery-heading h1 { font-size: clamp(4.25rem, 9vw, 9.5rem); }
.gallery-nav { display: flex; flex-wrap: wrap; gap: 0 1.55rem; margin-top: clamp(1.35rem, 3vw, 2.6rem); border-bottom: 1px solid #f4eee337; }
.gallery-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; border-bottom: 1px solid transparent; margin-bottom: -1px;
  font-size: 0.94rem; text-decoration: none; color: var(--gallery-muted);
}
.gallery-nav a:is(:hover, [aria-current="page"]) { color: var(--gallery-text); border-color: var(--olive); }
.portfolio-frames { padding-bottom: clamp(4rem, 10vw, 10rem); }
.photo-grid { display: grid; gap: clamp(2.1rem, 8.5vw, 8.3rem); }
.photo-button { display: block; width: 100%; padding: 0; border: 0; text-align: left; background: transparent; cursor: zoom-in; }
.gallery-row { display: grid; gap: clamp(1.3rem, 6.5vw, 6.2rem); align-items: end; }
.gallery-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-wide-left { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.gallery-wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }
.gallery-portrait { width: min(100%, 36rem); margin-inline: auto; }
.photo-grid figcaption { margin-top: 0.64rem; color: var(--muted); font-size: 0.9rem; }
.portfolio-frames .photo-grid figcaption { color: var(--gallery-muted); }
.photo-empty { color: var(--muted); padding-block: 2rem; }
.photo-grid figure { margin: 0; min-width: 0; }
.project-lead { margin-bottom: clamp(2rem, 8.5vw, 8rem); }
.project-meta { color: var(--muted); margin-bottom: 1rem; }
.project-related { margin-top: 2rem; }

.event-list { border-top: 1px solid var(--line); padding: 0; margin: 0; list-style: none; }
.event-row {
  display: grid; grid-template-columns: minmax(7rem, 0.25fr) minmax(14rem, 1fr) minmax(10rem, 0.38fr);
  align-items: center; gap: 1.4rem; border-bottom: 1px solid var(--line); padding-block: 1.4rem;
}
.event-row.no-image { grid-template-columns: minmax(7rem, 0.25fr) minmax(0, 1.38fr); }
.event-row .eyebrow { color: var(--muted); }
.event-row h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.event-row p { margin-top: 0.45rem; max-width: 46ch; color: var(--muted); }
.event-row .text-link { display: inline-block; margin-top: 0.5rem; }
.copy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 8vw, 7.5rem); }
.body-copy p { max-width: 39rem; }
.body-copy p + p { margin-top: 1.15rem; }
.body-copy p + a { display: inline-block; margin-top: 1.3rem; }
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  margin-top: .7rem;
}
.contact-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.studio { background: var(--forest); color: var(--paper-light); }
.studio .shell { display: grid; gap: 2rem 5rem; align-items: end; grid-template-columns: 1fr 1fr; }
.studio h2 { color: var(--paper-light); }
.studio p { color: #e2e4d2; max-width: 32rem; margin-top: 0.78rem; }
.studio form { width: 100%; }
.studio label { display: block; color: var(--paper-light); margin-bottom: 0.45rem; font-size: 0.92rem; }
.studio .form-row { display: flex; align-items: stretch; }
.studio input[type="email"] {
  min-width: 0; width: 100%; color: var(--paper-light); border: 1px solid #838b75; border-right: 0;
  background: #222c23; border-radius: 0; padding: 0.74rem;
}
.studio input[type="email"]::placeholder { color: #afb8a3; }
.studio .button { background: var(--olive); border-color: var(--olive); color: var(--forest); white-space: nowrap; }
.studio .button:hover { background: #e2e6bb; }
.studio .button:disabled { color: #252e24; background: #a8ae89; border-color: #a8ae89; cursor: default; }
.studio :focus-visible, .masthead :focus-visible, .hero :focus-visible, .footer-bar :focus-visible { outline-color: #e0e6b8; }

.footer-bar { background: var(--forest-deep); color: #e8eadc; }
.footer-bar .shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.2rem; padding-block: 0.9rem; }
.footer-bar p, .footer-links { font-size: 0.88rem; }
.footer-links { display: flex; gap: 1.3rem; }

#photo-viewer {
  max-width: none; max-height: none; width: 100%; height: 100dvh; margin: 0;
  position: fixed; inset: 0; border: 0; padding: 0; background: #111611; color: #f6f6eb;
}
#photo-viewer::backdrop { background: #111611; }
.viewer-layout { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 0.8rem clamp(0.8rem, 3vw, 2.5rem); }
.viewer-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.viewer-header h2 { font: 500 1rem/1.35 var(--sans); letter-spacing: 0; }
.viewer-figure { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.viewer-stage { display: grid; place-items: center; flex: 1; min-height: 0; padding: 0.6rem clamp(2.4rem, 5vw, 4.2rem); touch-action: pan-y; }
.viewer-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-details { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 2.2rem; color: #e8ebde; font-size: 0.94rem; }
.viewer-count { white-space: nowrap; }
.viewer-layout button {
  display: grid; place-items: center; width: 2.8rem; height: 2.8rem; padding: 0;
  color: #f6f6eb; background: #1e281f; border: 1px solid #747e6c; cursor: pointer;
}
.viewer-layout button:is(:hover, :focus-visible) { background: #455343; outline-color: #e0e6b8; }
.viewer-close { font-size: 1.85rem; line-height: 1; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.25rem; line-height: 1; }
.viewer-prev { left: clamp(0.7rem, 3vw, 2.5rem); }
.viewer-next { right: clamp(0.7rem, 3vw, 2.5rem); }

@media (max-width: 800px) {
  :root { --masthead-height: 4.2rem; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main-nav { gap: 1.05rem; }
  .event-row { grid-template-columns: minmax(6rem, 0.24fr) minmax(9rem, 1fr) minmax(7rem, 0.45fr); gap: 0.9rem; }
  .event-row.no-image { grid-template-columns: minmax(6rem, 0.24fr) minmax(0, 1.45fr); }
}

@media (max-width: 620px) {
  :root { --masthead-height: 3.8rem; }
  .shell { width: calc(100% - 2.5rem); }
  .masthead:has(.menu-toggle[aria-expanded="true"]) {
    background: var(--forest-deep);
  }
  .masthead:has(.menu-toggle[aria-expanded="true"])::before {
    content: none;
  }
  .menu-toggle {
    display: grid; gap: 0.33rem; width: 2.75rem; height: 2.75rem; align-content: center; justify-content: center;
    padding: 0; border: 1px solid #687163; background: transparent; cursor: pointer;
  }
  .menu-toggle span:not(.visually-hidden) { width: 1.2rem; height: 1px; background: var(--paper); }
  #main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--forest-deep); padding: 0.55rem 1.25rem 1.25rem;
    align-items: stretch; gap: 0; flex-direction: column; border-bottom: 1px solid #66705b;
  }
  #main-nav.open { display: flex; }
  #main-nav a { display: block; min-height: 2.8rem; padding: 0.64rem 0.45rem; border-bottom: 1px solid #444c41; }
  #main-nav a[aria-current] { color: var(--olive); }
  #main-nav a::after { display: none; }
  .hero { min-height: 0; grid-template-rows: auto auto auto; }
  .hero-photos { position: relative; aspect-ratio: 3 / 2; height: auto; }
  .hero-image { object-fit: contain; }
  .hero-photos::after { background: linear-gradient(0deg, #121512ad, transparent 31%); }
  .hero h1 { font-size: clamp(4.25rem, 16vw, 6.25rem); }
  .hero-inner { padding-block: 1.65rem 1.9rem; }
  .hero-location { margin-bottom: 1.2rem; }
  .hero-footer { min-height: 4rem; }
  .section-title { align-items: start; flex-direction: column; gap: 0.65rem; }
  .collection-spread { column-gap: 0.7rem; row-gap: 2.7rem; }
  .collection-landscape, .collection-night-skies { grid-column: 1 / -1; margin-top: 0; }
  .collection-wildlife { grid-column: 3 / -1; margin-top: 0; }
  .collection-travel-adventure { grid-column: 1 / 11; }
  .art-grid { column-gap: 0.85rem; }
  .project-grid, .feature-split, .copy-grid, .studio .shell { grid-template-columns: 1fr; }
  .project-grid > :nth-child(2) { margin-top: 0; }
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-nav { column-gap: 1.1rem; }
  .gallery-heading h1 { font-size: clamp(3.8rem, 13vw, 6.25rem); }
  .event-row, .event-row.no-image { grid-template-columns: 1fr; gap: 0.5rem; }
  .event-row .tile-picture { margin-top: 0.55rem; }
  .studio .shell { gap: 1.2rem; }
  .footer-bar .shell { align-items: flex-start; justify-content: center; gap: 0.4rem; flex-direction: column; }
  .viewer-stage { padding-inline: 0; }
  .viewer-prev, .viewer-next { top: auto; bottom: 3.85rem; transform: none; }
}

@media (max-width: 350px) {
  .hero h1 { font-size: clamp(3.8rem, 14vw, 4.7rem); }
}
@media (max-width: 485px) {
  .art-grid { grid-template-columns: 1fr; gap: 2.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
