:root {
  color-scheme: dark;
  --ink: #181815;
  --ink-deep: #121210;
  --paper: #f2efe8;
  --lime: #d9fa82;
  --olive: #52652d;
  --dim: #c2c0b4;
  --heading: 'Space Grotesk', 'Arial', sans-serif;
  --body: 'DM Sans', 'Arial', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 1rem/1.55 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section { scroll-margin-top: 20px; }
.wrap { width: min(100% - 112px, 1320px); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1; transform: translateY(-200%); padding: 10px 16px; background: var(--lime); color: var(--ink); }
.skip-link:focus { transform: none; }

.topbar { border-bottom: 1px solid #373731; }
.topbar-inner { min-height: 77px; display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 700 1.65rem/.88 var(--heading); letter-spacing: -.065em; white-space: nowrap; }
.wordmark small { display: block; margin-top: 6px; font: 700 .56rem/1 var(--body); letter-spacing: .3em; }
.mark { color: var(--lime); font: 400 2.25rem/1 Arial, sans-serif; }
.period { color: var(--lime); }
.dark-period { color: var(--olive); }
nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 45px); font-size: .88rem; font-weight: 600; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #5c5b52; padding: 9px 15px; }
.nav-cta:hover { border-color: var(--lime); }

.hero { padding-block: 30px 34px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: stretch; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding-block: 55px; }
.kicker { text-transform: uppercase; letter-spacing: .15em; font-size: .875rem; font-weight: 700; }
.hero .kicker { color: var(--lime); display: flex; gap: 10px; align-items: center; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; letter-spacing: -.065em; }
h1 { font-size: clamp(3.15rem, 5.7vw, 5.75rem); line-height: .99; margin-block: 25px 23px; }
.hero-description { max-width: 32ch; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 50px; padding: 11px 18px; font-size: .9rem; font-weight: 700; text-align: center; border: 1px solid transparent; transition: background-color .18s, color .18s; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #ecffc1; }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: #414239; }
.button-dark:disabled { cursor: wait; opacity: .65; }
.button-outline { border-color: var(--ink); color: var(--ink); }
.button-outline:hover { background: #e7e3d7; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 700; text-underline-offset: 5px; }
.hero-link { color: var(--paper); }
.hero-image, .work-image { position: relative; overflow: hidden; }
.hero-image { min-height: 510px; height: min(43vw, 610px); background: #2b2c28; }
.hero-image img, .work-image img { height: 100%; }
.hero-image img { object-position: 50% 65%; }
.portrait-cover { object-position: 50% 28%; }
.event-cover { object-position: 50% 40%; }

.section-light { color-scheme: light; background: var(--paper); color: var(--ink); }
h2 { font-size: clamp(2.5rem, 5.3vw, 4.75rem); line-height: 1; }
.work { padding-block: 74px 82px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head .text-link { margin-bottom: 4px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.work-image { aspect-ratio: 1.46; background: #342c25; }
.card-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding-block: 18px; border-bottom: 1px solid #cac6bb; }
.card-copy h3 { font-size: clamp(1.85rem, 3vw, 2.9rem); line-height: 1.1; }
.card-copy p { color: #4d4d43; margin-top: 6px; }
.card-link { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; display: grid; place-items: center; padding: 9px 13px; border: 1px solid #76756b; font-size: .875rem; font-weight: 700; }
.card-link:hover { background: var(--ink); color: var(--paper); }

.about { padding-bottom: 84px; }
.about-grid { border-top: 1px solid #cac6bb; padding-top: 58px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.about-label { color: var(--olive); margin-bottom: 12px; }
.about-copy { align-self: center; max-width: 46ch; }
.about-copy p { font-size: clamp(1.06rem, 1.55vw, 1.32rem); margin-bottom: 12px; }
.about-copy .text-link { text-decoration: underline; }
.about-copy .text-link:hover { color: var(--olive); }

.contact { border-bottom: 1px solid #373731; padding-block: 67px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.contact p { color: var(--dim); font-size: 1.08rem; margin-top: 13px; }
.contact-actions { display: flex; flex-direction: column; align-items: start; gap: 12px; flex-shrink: 0; }
.footer-inner { min-height: 100px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 19px; }
.footer-mark { font-size: 1.35rem; }
.footer-mark .mark { font-size: 1.9rem; }
.photo-credit { color: var(--dim); font-size: .875rem; }

.gallery { padding-top: 62px; }
.gallery-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 25px; }
.gallery-heading h3 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; }
.gallery-heading p { color: #525044; font-size: .875rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; }
.gallery-photo { display: block; background: #d5d2c9; overflow: hidden; cursor: zoom-in; }
.gallery-photo img { height: auto; transition: transform .25s; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo:focus-visible { outline-offset: 4px; }

dialog.photo-viewer { color-scheme: dark; background: var(--ink-deep); color: var(--paper); width: min(100% - 24px, 1280px); height: min(100dvh - 24px, 1040px); max-height: calc(100dvh - 24px); }
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.viewer-toolbar p { font-size: 1rem; font-weight: 600; }
.viewer-button { background: transparent; color: var(--paper); border: 1px solid #5c5b52; padding: 9px 15px; min-height: 44px; font-size: .875rem; font-weight: 600; }
.viewer-button:hover { border-color: var(--lime); color: var(--lime); }
.viewer-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-caption { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 12px 16px 16px; }
#viewer-description { color: var(--dim); font-size: .875rem; }
.viewer-navigation { display: flex; gap: 8px; flex-shrink: 0; }

dialog { color-scheme: light; border: none; width: min(100% - 28px, 530px); max-height: calc(100dvh - 28px); padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 20px 100px #0006; }
dialog::backdrop { background: #11110dda; }
.dialog-inner { position: relative; padding: clamp(22px, 5vw, 36px); }
.dialog-inner h2 { font-size: clamp(2rem, 6vw, 3.15rem); padding-right: 30px; margin-bottom: 12px; }
.close-button { display: grid; place-items: center; position: absolute; right: 13px; top: 13px; width: 44px; height: 44px; padding: 0; border: none; background: transparent; color: var(--ink); font-size: 1.75rem; line-height: 1; }
.close-button:hover { background: #e4dfd2; }
#enquiry-form, #enquiry-result { display: grid; gap: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; min-width: 0; color: var(--ink); font-size: .88rem; font-weight: 700; }
.optional { color: #666356; font-weight: 500; }
select, input, textarea { width: 100%; display: block; margin-top: 5px; border: 1px solid #888374; border-radius: 0; background: #fffdf7; color: var(--ink); padding: 8px 10px; font-size: 1rem; font-weight: 500; }
select, input { min-height: 42px; }
select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #525044 50%), linear-gradient(135deg, #525044 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.form-note { font-size: .8rem; color: #525044; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plain-button { min-height: 44px; color: var(--ink); border: none; background: transparent; padding: 3px 0; text-align: left; text-decoration: underline; font-size: .88rem; font-weight: 700; justify-self: start; }
#copy-status:empty { display: none; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 72px); }
  .hero-image { min-height: 460px; }
  .hero-grid { gap: 23px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .topbar-inner { min-height: 66px; }
  .hero { padding-block: 0 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-block: 47px 30px; }
  h1 { font-size: clamp(2.7rem, 11.4vw, 4.9rem); margin-block: 16px; }
  .actions { margin-top: 23px; }
  .hero-image { min-height: 0; height: auto; aspect-ratio: 1.07; }
  .work, .contact { padding-block: 48px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 21px; }
  .work-grid { gap: 28px; }
  .about-grid { padding-top: 35px; }
  .about { padding-bottom: 48px; }
  .gallery { padding-top: 40px; }
  .gallery-grid { gap: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-heading { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 18px; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .wordmark { font-size: 1.37rem; gap: 7px; }
  .mark { font-size: 1.9rem; }
  nav a:not(.nav-cta) { display: none; }
  .work-grid, .about-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 16px; }
  .contact-inner { align-items: start; flex-direction: column; }
  .footer-inner { min-height: 84px; align-items: start; }
  .viewer-caption { align-items: start; flex-direction: column; }
}
@media (max-width: 360px) {
  .field-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
